tests: fix unportable assumption on sys/wait.h
[pspp] / ChangeLog
1 2010-09-17  Eric Blake  <eblake@redhat.com>
2
3         tests: fix unportable assumption on sys/wait.h
4         * tests/test-sys_wait.c (main): Relax test.
5         * tests/test-stdlib.c (main): Likewise.
6
7         init.sh: accomodate directory with no .exes
8         * tests/init.sh: Accomodate directory containing only scripts.
9
10         tests: avoid compiler warning
11         * tests/test-stdlib.c (main): Use the variable.
12
13         fdutimens, fdutimensat: update signature, again
14         * lib/utimens.h (gl_futimens): Delete, and move signature...
15         (fdutimens): ...here.
16         (fdutimensat): Rearrange signature.
17         (lutimensat): Rename variable for clarity.
18         * lib/fdutimensat.c (fdutimensat): Update signature.
19         * lib/utimens.c (fdutimens): Likewise.
20         (gl_futimens): Delete.
21         (utimens, lutimens): Update callers.
22         * lib/futimens.c (futimens): Likewise.
23         * tests/test-fdutimensat.c: Likewise.
24         * tests/test-utimens.c: Likewise.
25         * tests/test-futimens.h: Update comment.
26         * NEWS: Mention this.
27         Suggested by Paul Eggert.
28
29 2010-09-17  Bruno Haible  <bruno@clisp.org>
30
31         Take over the maintenance of some older macros from Autoconf.
32         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
33         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
34         GNU Autoconf.
35         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
36         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
37
38 2010-09-17  Eric Blake  <eblake@redhat.com>
39
40         fdutimensat: drop atflag validation
41         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
42         with valid fd, to close a race scenario where futimens is
43         unsupported and FILE was replaced by a symlink.
44         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
45         accordingly.
46         Suggested by Paul Eggert.
47
48 2010-09-16  Bruno Haible  <bruno@clisp.org>
49
50         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
51         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
52
53 2010-09-16  Bruno Haible  <bruno@clisp.org>
54
55         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
56         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
57         login_tty exists.
58         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59
60 2010-09-16  Bruno Haible  <bruno@clisp.org>
61
62         login_tty: Make the replacement code work on BSD systems.
63         * lib/login_tty.c: Include <sys/ioctl.h>.
64         (login_tty): Use ioctl TIOCSCTTY when available.
65         * modules/login_tty (Depends-on): Add sys_ioctl.
66         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
67
68 2010-09-16  Bruno Haible  <bruno@clisp.org>
69
70         login_tty: Stricter unit test.
71         * modules/login_tty-tests (Depends-on): Add tcgetsid.
72         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
73         and tcgetsid() after login_tty.
74         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
75
76 2010-09-16  Bruno Haible  <bruno@clisp.org>
77
78         New module 'tcgetsid'.
79         * lib/tcgetsid.c: New file.
80         * m4/tcgetsid.m4: New file.
81         * modules/tcgetsid: New file.
82         * modules/termios (Depends-on): Add c++defs, warn-on-use.
83         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
84         GNULIB_TCGETSID, HAVE_TCGETSID.
85         * lib/termios.in.h: Include <sys/types.h>.
86         (tcgetsid): New declaration.
87         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
88         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
89         * doc/posix-functions/tcgetsid.texi: Mention the new module.
90         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
91
92 2010-09-16  Bruno Haible  <bruno@clisp.org>
93
94         Tests for module 'termios'.
95         * modules/termios-c++-tests: New file.
96         * modules/termios-tests: New file.
97         * tests/test-termios-c++.cc: New file.
98         * tests/test-termios.c: New file.
99
100         New module 'termios'.
101         * modules/termios: New file.
102         * lib/termios.in.h: New file.
103         * m4/termios_h.m4: New file.
104         * doc/posix-headers/termios.texi: Mention the new module.
105
106 2010-09-16  Eric Blake  <eblake@redhat.com>
107
108         fdutimensat: add an atflag parameter
109         * lib/fdutimensat.c (fdutimensat): Add new parameter.
110         * lib/utimens.h (fdutimensat): Update prototype.
111         * tests/test-fdutimensat.c: Adjust test to match.
112         * NEWS: Document the change.
113         Suggested by Paul Eggert.
114
115 2010-09-16  Bruno Haible  <bruno@clisp.org>
116
117         Fix typos in comments.
118         * lib/striconveh.h: Fix typo in comment.
119         * lib/login_tty.c (login_tty): Likewise.
120
121 2010-09-15  Bruno Haible  <bruno@clisp.org>
122
123         stdlib: clarify MirBSD WEXITSTATUS bug
124         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
125         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
126
127 2010-09-15  Eric Blake  <eblake@redhat.com>
128
129         stdlib: work around MirBSD WEXITSTATUS bug
130         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
131         * modules/stdlib (Depends-on): Add sys_wait.
132         * tests/test-sys_wait.c (main): Enhance test.
133         * tests/test-stdlib.c (main): Likewise.
134         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
135
136         docs: mention MacOS issue with WEXITSTATUS(constant)
137         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
138         issue.
139         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
140
141         strnlen: add tests
142         * modules/strnlen-tests: New file.
143         * tests/test-strnlen.c: Likewise.
144
145 2010-09-14  Bruno Haible  <bruno@clisp.org>
146
147         unistr/base: Avoid link errors when module 'libunistring' is also used.
148         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
149         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
150         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
151         Declare also when HAVE_LIBUNISTRING is set.
152         Reported by Pádraig Brady <P@draigbrady.com>.
153
154 2010-09-14  Eric Blake  <eblake@redhat.com>
155
156         test-rawmemchr: make more robust
157         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
158         (Depends-on, configure.ac): Add needed prerequisites to use it.
159         * modules/memchr-tests (Files, Depends-on, configure.ac):
160         Likewise, to avoid implicit reliance on memchr module prereqs.
161         * tests/test-memchr.c (main): Ensure proper masking.
162         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
163         reads.
164
165         memchr: detect glibc Alpha bug
166         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
167         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
168         Alpha.
169         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
170         * tests/test-memchr.c (main): Enhance test.
171         Reported by Nelson H. F. Beebe.
172
173 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
174
175         fts, getcwd, glob: audit for dirfd returning -1
176         * lib/fts.c (opendir): Remove #define; no longer used.
177         (opendirat): New arg PDIR_FD.  All callers changed.
178         (fts_build, _opendir2): Use new opendirat to avoid the need for
179         dirfd, or for checking whether dirfd returns a negative value.
180         Don't use opendir; always use openat followed by fdopendir.
181         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
182         it.
183         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
184         returns -1 here.
185         * modules/fts (Depends-on): Remove dirfd.
186         * modules/getcwd (Depends-on): Likewise.
187
188 2010-09-13  Eric Blake  <eblake@redhat.com>
189
190         float: fix broken MirBSD header
191         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
192         * doc/posix-headers/float.texi (float.h): Document it.
193
194 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
195
196         fts: use O_NOFOLLOW to avoid race condition when opening a directory
197         * lib/fts.c (opendirat): New arg extra_flags.
198         (__opendir2): Use it to avoid following symlinks when opening
199         a directory, if symlinks are not supposed to be followed.  See
200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
201
202         fdopendir: preserve argument fd before returning
203         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
204         (fdopendir_with_dup, fd_clone_opendir): New static functions.
205         (fdopendir): Use them, arranging for FD to be open to the same
206         directory that it was when it started.  (It might be temporarily
207         closed while fdopendir is running, so this not thread- or
208         signal-safe.)  Be careful to do the right thing even when file
209         descriptors are scarce and dup fails with errno == EMFILE.  See
210         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
211
212 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
213
214         regex: Pass the system regex if its only problem is 32-bit regoff_t.
215         * NEWS: Document change.
216         * m4/regex.m4: Disable test for regoff_t size.
217
218 2010-09-13  Jim Meyering  <meyering@redhat.com>
219
220         fts: don't operate on an invalid file descriptor after failed dup
221         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
222         negative file descriptor.
223
224 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
225
226         savedir: add streamsavedir, deprecate fdsavedir
227         * NEWS: Mention deprecation of fdsavedir.
228         * lib/savedir.c (streamsavedir): New extern function, whose name
229         ends in "savedir" to be consistent with the others.  This differs
230         from savedirstream in that it doesn't close its argument.  The
231         next version of GNU tar will use this instead of fdsavedir, to
232         avoid some race conditions and conserve file descriptors.
233         (savedirstream): Reimplement as a wrapper around streamsavedir.
234         (fdsavedir): Add a comment deprecating this function.  As far as
235         I know, only GNU tar used it, and GNU tar doesn't need it any more.
236         * lib/savedir.h (streamsavedir): New decl.
237         (fdsavedir): Add a comment deprecating this.
238
239 2010-09-10  Bruno Haible  <bruno@clisp.org>
240
241         langinfo: Fix last commit.
242         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
243         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
245
246 2010-09-10  Bruno Haible  <bruno@clisp.org>
247
248         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
249         * lib/progreloc.c (O_EXEC): Define fallback.
250
251 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
252
253         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
254         * NEWS: Document recent changes to fcntl-h.
255         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
256         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
257         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
258         Similarly for O_SEARCH; this last was already true, but not documented.
259         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
260         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
261         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
262         Likewise.
263         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
264         is zero, not whether it is defined.
265         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
266         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
267         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
268
269 2010-09-10  Bruno Haible  <bruno@clisp.org>
270
271         langinfo, nl_langinfo: Fix for IRIX 5.3.
272         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
273         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
274         HAVE_LANGINFO_YESEXPR.
275         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
276         HAVE_LANGINFO_YESEXPR.
277         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
278         HAVE_LANGINFO_T_FMT_AMPM is 0.
279         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
280         HAVE_LANGINFO_YESEXPR is 0.
281         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
282         NOEXPR.
283         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
284         * doc/posix-functions/nl_langinfo.texi: Likewise.
285         Reported by Eric Blake.
286
287 2010-09-10  Bruno Haible  <bruno@clisp.org>
288
289         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
290         * doc/glibc-functions/login_tty.texi: Mention the include file problem
291         on FreeBSD 8.0 and OpenBSD 4.6.
292         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
293         * m4/pty_h.m4 (gl_PTY_H): Likewise.
294         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
295         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
296         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
297         ac_includes_default.
298         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
299
300 2010-09-09  Eric Blake  <eblake@redhat.com>
301
302         strsignal: work around NetBSD bug
303         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
304         * lib/string.in.h (includes): Likewise.
305         * doc/posix-functions/strsignal.texi (strsignal): Document the
306         bug.
307         Reported by Nelson H. F. Beebe.
308
309         gnulib-tool: work with NetBSD /bin/sh
310         * gnulib-tool (func_cache_var, func_cache_lookup_module)
311         (func_get_description, func_get_comment, func_get_status)
312         (func_get_notice, func_get_applicability, func_get_filelist)
313         (func_get_dependencies, func_get_autoconf_early_snippet)
314         (func_get_autoconf_snippet, func_get_automake_snippet)
315         (func_get_include_directive, func_get_link_directive)
316         (func_get_license, func_get_maintainer, func_import): Avoid
317         shell syntax errors from parsing syntax extensions.
318
319 2010-09-09  Bruno Haible  <bruno@clisp.org>
320
321         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
322         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
323         a reliable way to determine whether the 'alias' command works.
324
325 2010-09-08  Jim Meyering  <meyering@redhat.com>
326
327         init.sh: penalize a set-x-impaired shell; don't disqualify it
328         * tests/init.sh: Too many shells corrupt application stderr when
329         you set -x, so we can't afford to disqualify them, since at least
330         on Irix-6.5, that would disqualify all bourne shells.
331         Instead, use a two-pass approach.
332         On the first pass, try to find a shell that meets the stricter
333         condition that set -x does not corrupt stderr.
334         If no shell meets the stricter condition, retest each candidate
335         shell, but without that extra condition.  Finally, when
336         VERBOSE=yes is requested and set -x might cause trouble, simply
337         issue a warning and refrain from enabling debug output.
338
339 2010-09-08  Eric Blake  <eblake@redhat.com>
340
341         unsetenv: fix OpenBSD bug
342         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
343         * doc/posix-functions/unsetenv.texi (unsetenv): Update
344         documentation.
345         Reported by Jim Meyering.
346
347         strtod: work around IRIX 6.5 bug
348         * lib/strtod.c (strtod): Reparse number on shorter string if
349         exponent parse was invalid.
350         * tests/test-strtod.c (main): Add check for "0x1p 2".
351         Reported by Tom G. Christensen.
352
353         getopt: optimize previous patch
354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
355         empty variable.  Speed up awk script.
356         Reported by Paolo Bonzini.
357
358 2010-09-08  Jim Meyering  <meyering@redhat.com>
359
360         test.sh: disqualify shells for which set -x corrupts stderr
361         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
362         and OpenBSD 4.7.  They make it so with "set -x", environment settings
363         appear in stderr output.  For example, this command:
364             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
365         prints "P=1" on those two systems:
366
367 2010-09-08  Bruno Haible  <bruno@clisp.org>
368
369         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
370         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
371         commands, because some shells ignore redirections when there is an
372         error in the command lookup.
373         Reported by Eric Blake.
374
375 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
376
377         * lib/regex.h: Fix a mention of `regex_compile' (should be
378         `re_compile_pattern').
379         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
380         (re_set_registers): Correct name of parameter in comment.
381
382         * doc/regex.texi: Add documentation for missing syntax flags.
383         Remove commented-out documentation of defunct syntax option
384         RE_NO_EMPTY_ALTS.
385         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
386         Add documentation of re_set_registers.
387         Document trick to re-use a pattern buffer by setting fastmap manually.
388         Update documentation of struct re_pattern_buffer per public members.
389         Uncomment documentation of equivalence class operators and
390         collating symbol operators, since they are now implemented,
391         Explain leftmost-longest matching in relation to alternatives.
392         Tidy documentation of substring matching.
393         Remove POSIX documentation, which is done better in
394         glibc, and refer the reader there. Keep BSD API documentation, as
395         that is not readily available elsewhere.
396
397 2010-09-07  Eric Blake  <eblake@redhat.com>
398
399         getopt: handle POSIXLY_CORRECT set but not exported
400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
401         export state of POSIXLY_CORRECT, due to bash set -o posix.
402         Reported by Dustin J. Mitchell.
403
404 2010-09-05  Bruno Haible  <bruno@clisp.org>
405
406         gnulib-tool: Highlight the changed options.
407         * gnulib-tool (func_usage): Display the --import, --add-import,
408         --remove-import explanations in bold font.
409
410 2010-09-06  Karl Berry  <karl@gnu.org>
411
412         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
413
414 2010-09-05  Bruno Haible  <bruno@clisp.org>
415
416         uniwidth/width: Update comment.
417         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
418         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
419
420 2010-09-05  Bruno Haible  <bruno@clisp.org>
421
422         isinf, isnan: Relax license.
423         * modules/isinf (License): Change from GPL to LGPL, with consent from
424         Ben Pfaff.
425         * modules/isnan (License): Likewise.
426         Requested by Ludovic Courtès.
427
428 2010-09-04  Bruno Haible  <bruno@clisp.org>
429
430         gnulib-tool: Help migration from --import to --add-import or --update.
431         * gnulib-tool: Emit a verbose error message when --import is used
432         without any module name.
433
434 2010-09-04  Bruno Haible  <bruno@clisp.org>
435
436         Update doc about gnulib-tool.
437         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
438         'gnulib-tool --update' in more detail.
439         Reported by Eric Blake.
440
441 2010-09-04  Bruno Haible  <bruno@clisp.org>
442
443         gnulib-tool: Change --import. New options --add/remove-import.
444         * gnulib-tool: New options --add-import, --remove-import.
445         (func_usage): Document them.
446         (have_associative): Define always.
447         (func_import): In import mode, don't merge the specified settings with
448         the cached settings. Implement remove-import mode.
449         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
450         Explain when to use them versus --import.
451         (Simple update): Use --add-import instead of --import.
452         * NEWS: Mention the change.
453
454 2010-09-04  Bruno Haible  <bruno@clisp.org>
455
456         * doc/gnulib-tool.texi (Initial import): Update paragraph about
457         separate gnulib.mk.
458
459 2010-09-04  Bruno Haible  <bruno@clisp.org>
460
461         gnulib-tool: Don't talk about CVS any more.
462         * gnulib-tool (func_usage, func_import): Write "version control"
463         instead of CVS.
464
465 2010-09-04  Jim Meyering  <meyering@redhat.com>
466
467         maint.mk: avoid obscure sc_copyright_check failure in coreutils
468         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
469         false positives (whose names may be ill-chosen) when searching
470         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
471         would cause a false-positive.
472
473         avoid coreutils "make distcheck" failure
474         Coreutils tests with an absolute build directory name that contains
475         a space.  Not quoting this directory name caused a failure.
476         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
477         * tests/test-vc-list-files-cvs.sh: Likewise.
478
479 2010-09-04  Bruno Haible  <bruno@clisp.org>
480
481         gnulib-tool: Avoid error when run in a package without Makefile.am.
482         * gnulib-tool: When collecting the m4dirs in a package that does not
483         have a Makefile.am, eliminate those directories that contain no
484         gnulib-cache.m4. Fix expression that counts these directories.
485
486 2010-09-04  Bruno Haible  <bruno@clisp.org>
487
488         update-copyright test: Improve output when perl is missing or too old.
489         * tests/test-update-copyright.sh: Move test of Perl version down after
490         the test whether Perl exists. Provide an explanation relating Perl's
491         error message to Automake's SKIP: message.
492
493 2010-09-04  Bruno Haible  <bruno@clisp.org>
494
495         Don't augment PATH in TESTS_ENVIRONMENT.
496         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
497         set abs_aux_dir instead of augmenting PATH.
498         * modules/vc-list-files-tests (Makefile.am): Likewise.
499         * tests/test-update-copyright.sh: Augment PATH here.
500         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
501         path_prepend_.
502         * tests/test-vc-list-files-git.sh: Likewise.
503
504 2010-09-04  Jim Meyering  <meyering@redhat.com>
505
506         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
507         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
508
509 2010-09-04  Bruno Haible  <bruno@clisp.org>
510
511         strdup: Fix compilation error in C++ mode.
512         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
513         the macro.
514
515 2010-09-04  Bruno Haible  <bruno@clisp.org>
516
517         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
518         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
519         macro into a function.
520         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
521
522 2010-09-04  Bruno Haible  <bruno@clisp.org>
523
524         Set PATH_SEPARATOR the same way autoconf does.
525         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
526         the value of PATH_SEPARATOR the same way autoconf-generated configure
527         scripts do.
528         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
529         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
530
531 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
532
533         Set PATH_SEPARATOR the same way autoconf does.
534         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
535         the same way autoconf-generated configure scripts do.
536         * posix-modules: Likewise.
537
538 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
539
540         hash: fix safe_hasher const typo
541         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
542         const; otherwise, there is a type error later.
543
544 2010-09-02  Jim Meyering  <meyering@redhat.com>
545
546         test-update-copyright.sh: require perl 5.8.0
547         * tests/test-update-copyright.sh: Require 5.8.0,
548         which Tom G. Christensen has confirmed is adequate,
549         while 5.6.1 is not.
550
551 2010-09-02  Eric Blake  <eblake@redhat.com>
552
553         tests: init.sh improvements for re-exec'ing with zsh
554         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
555         -vx through shell re-exec.
556         Reported by Tom G. Christensen.
557
558         wctype: fix typo in previous commit
559         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
560         Reported by Ludovic Courtès.
561
562 2010-09-02  Jim Meyering  <meyering@redhat.com>
563
564         test-update-copyright.sh: skip test if Perl is too old
565         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
566         Reported by Tom G. Christensen.
567
568 2010-09-02  Bruno Haible  <bruno@clisp.org>
569
570         wctype: Avoid compilation error on IRIX 6.5.30.
571         * lib/wctype.in.h (iswblank): Declare with a replacement if
572         REPLACE_ISWBLANK is set.
573         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
574         declared. Set REPLACE_ISWBLANK.
575         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
576         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
577         * doc/posix-headers/wctype.texi: Likewise.
578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
579
580 2010-09-01  Bruno Haible  <bruno@clisp.org>
581
582         New module 'socketlib'.
583         * modules/socketlib: New file.
584         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
585         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
586         * modules/sockets (Depends-on): Add socketlib.
587         Suggested by Sam Steingold <sds@gnu.org>.
588
589 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
590
591         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
592
593         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
594         when one needs search access to a directory but not read access.
595         On systems where it is available, it works in some cases where
596         O_RDONLY does not, namely on directories that are searchable but
597         not readable, and which need only to be searchable.  If O_SEARCH
598         is not available, fall back to the traditional method of using
599         O_RDONLY.
600
601         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
602         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
603         when opening a directory that needs only to be searchable.
604         * lib/chdir-safer.c (chdir_no_follow): Likewise.
605         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
606         * lib/openat-proc.c (openat_proc_name): Likewise.
607         * lib/openat.c (openat_needs_fchdir): Likewise.
608         * lib/save-cwd.c (save_cwd): Likewise.
609         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
610
611 2010-08-28  Bruno Haible  <bruno@clisp.org>
612
613         New module 'host-cpu-c-abi'.
614         * modules/host-cpu-c-abi: New file.
615         * m4/host-cpu-c-abi.m4: New file, based on part of
616         clisp/src/m4/general.m4.
617         Requested by Sam Steingold <sds@gnu.org>.
618
619 2010-08-31  Eric Blake  <eblake@redhat.com>
620         and Jim Meyering  <meyering@redhat.com>
621
622         hash: factor, and guard against misbehaving hasher function
623         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
624         of table->hasher's return value.  Also protect against a hash value
625         so large that adding it to table->bucket results in a NULL pointer.
626         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
627         Use it in place of open-coded check-and-abort.
628
629 2010-08-30  Bruno Haible  <bruno@clisp.org>
630
631         hash: silence spurious clang warning
632         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
633         Reported by Eric Blake.
634
635 2010-08-30  Eric Blake  <eblake@redhat.com>
636
637         strstr, memmem, strcasestr: avoid leaked shell message
638         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
639         FreeBSD.
640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
642
643         tests: silence clang warning
644         * tests/test-malloca.c (do_allocation): Avoid dead store.
645
646 2010-08-29  Bruno Haible  <bruno@clisp.org>
647
648         gettext: Fix recent mistake.
649         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
650
651 2010-08-29  Bruno Haible  <bruno@clisp.org>
652
653         selinux-h: Offer a --without-selinux option.
654         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
655         --without-selinux was specified, skip all tests and define
656         HAVE_SELINUX_SELINUX_H to 0.
657         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
658         set LIB_SELINUX to empty.
659         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
660         gl_LIBSELINUX. If --without-selinux was specified, replace
661         selinux/context.h.
662         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
663
664 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
665             Bruno Haible  <bruno@clisp.org>
666
667         Make the module 'realloc-gnu' work again on AIX and OSF/1.
668         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
669         of HAVE_REALLOC.
670         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
671         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
672         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
673         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
674
675 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
676             Bruno Haible  <bruno@clisp.org>
677
678         Make the module 'calloc-gnu' work again on AIX and OSF/1.
679         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
680         HAVE_CALLOC.
681         * lib/xmalloc.c: Update accordingly.
682         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
683         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
684         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
685
686 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
687             Bruno Haible  <bruno@clisp.org>
688
689         Make the module 'malloc-gnu' work again on AIX and OSF/1.
690         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
691         HAVE_MALLOC.
692         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
693         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
694         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
695
696 2010-08-29  Bruno Haible  <bruno@clisp.org>
697
698         Update modules list.
699         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
700         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
701         (String handling <string.h>): Add astrxfrm.
702         (File system functions): Add readlinkat.
703
704 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
705
706         Tests for module 'realloc-gnu'.
707         * modules/realloc-gnu-tests: New file.
708         * tests/test-realloc-gnu.c: New file.
709
710         Tests for module 'calloc-gnu'.
711         * modules/calloc-gnu-tests: New file.
712         * tests/test-calloc-gnu.c: New file.
713
714         Tests for module 'malloc-gnu'.
715         * modules/malloc-gnu-tests: New file.
716         * tests/test-malloc-gnu.c: New file.
717
718 2010-08-28  Bruno Haible  <bruno@clisp.org>
719
720         Rename module 'realloc' -> 'realloc-gnu'.
721         * modules/realloc-gnu: New file, copied from modules/realloc.
722         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
723         obsolete.
724         * modules/mgetgroups (Depends-on): Update.
725         * doc/posix-functions/realloc.texi: Update.
726         * NEWS: Mention the change.
727
728         Rename module 'calloc' -> 'calloc-gnu'.
729         * modules/calloc-gnu: New file, copied from modules/calloc.
730         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
731         obsolete.
732         * doc/posix-functions/calloc.texi: Update.
733         * NEWS: Mention the change.
734
735         Rename module 'malloc' -> 'malloc-gnu'.
736         * modules/malloc-gnu: New file, copied from modules/malloc.
737         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
738         obsolete.
739         * modules/argp (Depends-on): Update.
740         * modules/regex (Depends-on): Update.
741         * doc/posix-functions/malloc.texi: Update.
742         * NEWS: Mention the change.
743
744 2010-08-28  Eric Blake  <eblake@redhat.com>
745
746         pread, pwrite: add missing dependency
747         * modules/pread (Depends-on): Add extensions.
748         * modules/pwrite (Depends-on): Likewise.
749
750 2010-08-28  Bruno Haible  <bruno@clisp.org>
751
752         unistr/u*-strchr: Fix tests dependencies.
753         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
754         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
755         Reported by Ian Beckwith <ianb@erislabs.net>.
756
757 2010-08-28  Bruno Haible  <bruno@clisp.org>
758
759         read-file: Don't occupy too much unused memory.
760         * lib/read-file.c (fread_file): Shrink the buffer at the end.
761
762 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
763             Eric Blake  <eblake@redhat.com>
764             Bruno Haible  <bruno@clisp.org>
765
766         read-file: Avoid memory reallocations with regular files.
767         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
768         (fread_file): With regular files, use the remaining length as the
769         initial buffer size.  Check against overflow.
770         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
771         sys_stat.
772
773 2010-08-28  Bruno Haible  <bruno@clisp.org>
774
775         ftello: Relax license.
776         * modules/ftello (License): Relax to LGPLv2+.
777         Reported by Eric Blake.
778
779 2010-08-28  Bruno Haible  <bruno@clisp.org>
780
781         Avoid relocwrapper link errors due to gnulib replacement functions.
782         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
783         function.
784         Reported by Ben Pfaff <blp@cs.stanford.edu>.
785
786 2010-08-28  Bruno Haible  <bruno@clisp.org>
787
788         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
789         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
790         defined.
791         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
792         Suggested by Eric Blake.
793
794 2010-08-28  Bruno Haible  <bruno@clisp.org>
795
796         sys_socket, netdb: Ensure socklen_t gets defined.
797         * modules/sys_socket (Depends-on): Add socklen.
798         * modules/netdb (Depends-on): Likewise.
799         * modules/getaddrinfo (Depends-on): Remove socklen.
800         * modules/getsockopt (Depends-on): Likewise.
801         * modules/setsockopt (Depends-on): Likewise.
802         * tests/test-sys_socket.c: Check that socklen_t is defined.
803         * tests/test-netdb.c: Likewise.
804         * m4/socklen.m4: Update comments.
805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
806
807 2010-08-27  Eric Blake  <eblake@redhat.com>
808
809         login_tty: add missing dependency
810         * modules/login_tty (Depends-on): Add pty.
811
812 2010-08-26  Eric Blake  <eblake@redhat.com>
813
814         lib-symbol-versions: fix m4 quoting
815         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
816         format for AC_LINK_IFELSE.
817
818         glob: fix compile test
819         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
820
821         btowc: fix missing file
822         * modules/btowc (Files): Also ship locale-fr.m4.
823
824         lseek: fix link test
825         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
826         AC_LINK_IFELSE.
827
828         include_next: silence autoconf 2.68 warning
829         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
830         AC_COMPILE_IFELSE as special.
831         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
832         autoconf < 2.68.
833
834         acl: fix compilation test
835         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
836         AC_COMPILE_IFELSE.
837
838 2010-08-26  Bruno Haible  <bruno@clisp.org>
839
840         Modernize AC_TRY_RUN invocations.
841         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
842         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
843         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
844         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
845         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
846         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
849         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
850         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
851         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
852         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
853         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
856         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
857         gl_MBRLEN_NUL_RETVAL): Likewise.
858         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
859         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
860         Likewise.
861         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
862         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
863         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
864         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
865         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
866         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
867         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
868         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
869         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
870         Likewise.
871         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
872         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
874         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
875         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
876         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
877         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
878         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
879         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
881
882 2010-08-26  Bruno Haible  <bruno@clisp.org>
883
884         Modernize AC_TRY_LINK invocations.
885         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
886         AC_TRY_LINK.
887         * m4/argp.m4 (gl_ARGP): Likewise.
888         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
889         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
890         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
891         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
892         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
893         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
894         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
895         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
896         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
897         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
898         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
899         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
900         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
901         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
902         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
903         * m4/hostent.m4 (gl_HOSTENT): Likewise.
904         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
905         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
906         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
907         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
908         Likewise.
909         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
910         Likewise.
911         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
912         Likewise.
913         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
915         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
916         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
917         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
918         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
919         * m4/servent.m4 (gl_SERVENT): Likewise.
920         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
921         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
922         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
923         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
924         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
925         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
926         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
927         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
928         * modules/tsearch-tests (configure.ac): Likewise.
929
930 2010-08-26  Bruno Haible  <bruno@clisp.org>
931
932         Modernize AC_TRY_COMPILE invocations.
933         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
934         AC_TRY_COMPILE.
935         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
936         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
937         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
938         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
939         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
940         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
941         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
942         * m4/lock.m4 (gl_LOCK): Likewise.
943         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
944         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
945         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
946         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
947         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
948         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
949         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
951         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
952         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
953         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
954         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
955         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
956         extraneous semicolon.
957
958 2010-08-26  Jim Meyering  <meyering@redhat.com>
959
960         stat-time: relax license LGPL
961         * modules/stat-time (License): Change from GPL to LGPL,
962         with consent from all contributors, for use in libguile.
963         Requested by Ludovic Courtès.
964
965 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
966
967         poll: return immediately on POLLHUP.
968         * lib/poll.c (poll): Always set timeout before wait_timeout is
969         computed.
970
971 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
972
973         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
974         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
975         rmdir ("dir/.//"), unlinkat.
976
977 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
978
979         stdbool: avoid spurious failure with modern xlc
980         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
981
982 2010-08-24  Bruno Haible  <bruno@clisp.org>
983
984         getloadavg: simplify code
985         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
986         gl_have_func. Update comments.
987
988 2010-08-24  Eric Blake  <eblake@redhat.com>
989
990         getloadavg: don't define SVR4 on cygwin
991         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
992         only define SVR4 when -lkvm is required.
993         Reported by Yaakov Selkowitz.
994
995 2010-08-24  Bruno Haible  <bruno@clisp.org>
996
997         priv-set: fix comment
998         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
999
1000 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         priv-set: fix comments
1003         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1004         to match code, as suggested by David Bartley in:
1005         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1006
1007 2010-08-23  Eric Blake  <eblake@redhat.com>
1008
1009         stdbool: avoid rejecting clang
1010         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1011         * tests/test-stdbool.c: Enable more tests if using the system
1012         <stdbool.h> instead of the gnulib replacement.
1013         (main): Move xlc bug test to a runtime test for all compilers.
1014         Reported by Anders Kaseorg.
1015
1016         argz: fix shell quoting issue
1017         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1018         Reported by Charles Wilson.
1019
1020 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1021             Erik Faye-Lund <kusmabite@gmail.com>
1022
1023         poll, select: handle ERROR_BROKEN_PIPE.
1024         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1025         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1026         * lib/select.c (win32_compute_revents): Do not mark a pipe
1027         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1028
1029 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1030
1031         fts: allow compilation with C++
1032         * lib/fts_.h: Specify extern "C" linkage with C++.
1033
1034 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1035
1036         Fix gnulib-tool sed script de-commentation for AIX sed.
1037         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1038         sed.
1039
1040 2010-08-17  Eric Blake  <eblake@redhat.com>
1041
1042         test-stddef: test for (some) offsetof bugs
1043         * tests/test-stddef.c: Enhance test to ensure correct type of
1044         offsetof.
1045         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1046         that we are not fixing at this time.
1047
1048 2010-08-15  Bruno Haible  <bruno@clisp.org>
1049
1050         stpncpy: Allow stpncpy to be defined as a macro.
1051         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1052         if it's already correctly declared.
1053         * lib/string.in.h (stpncpy): Undefine before redefining.
1054         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1055
1056 2010-08-14  Bruno Haible  <bruno@clisp.org>
1057
1058         Rename module 'memxfrm' to 'amemxfrm'.
1059         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1060         (amemxfrm): Renamed from memxfrm.
1061         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1062         (amemxfrm): Renamed from memxfrm.
1063         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1064         * NEWS: Mention the change.
1065         * MODULES.html.sh (String handling <string.h>): Update.
1066         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1067         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1068         * lib/unicase/u16-casexfrm.c: Likewise.
1069         * lib/unicase/u32-casexfrm.c: Likewise.
1070         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1071         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1072         * lib/uninorm/u16-normxfrm.c: Likewise.
1073         * lib/uninorm/u32-normxfrm.c: Likewise.
1074         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1075         memxfrm.
1076         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1077         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1078         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1079         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1080         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1081         Suggested by Paul Eggert.
1082
1083 2010-08-14  Bruno Haible  <bruno@clisp.org>
1084
1085         Tests for module 'astrxfrm'.
1086         * modules/astrxfrm-tests: New file.
1087         * tests/test-astrxfrm.c: New file.
1088
1089         New module 'astrxfrm'.
1090         * lib/astrxfrm.h: New file.
1091         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1092         * modules/astrxfrm: New file.
1093
1094 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1095
1096         regex: Tweak doc.
1097         * doc/regex.texi (Overview): Don't mention regex.c.
1098         (GNU Regular Expression Compiling): Likewise.
1099         (Match-end-of-line Operator): Mention 'not_eol'.
1100
1101 2010-08-14  Brian Gough  <bjg@gnu.org>
1102             Bruno Haible  <bruno@clisp.org>
1103
1104         git-merge-changelog: add doc relating to use with bzr and hg.
1105         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1106
1107 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1108
1109         pthread: fix pthread.h creation for srcdir != builddir
1110         * modules/pthread (Makefile.am): Fix the rule to work also in a
1111         non-srcdir build.
1112
1113 2010-08-13  Karl Berry  <karl@gnu.org>
1114
1115         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1116         * doc/posix-*/*: force line break before @url of POSIX
1117         specifications.
1118         Suggested by Werner Lemberg.
1119
1120 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1121
1122         strtod: fix const diagnostic
1123         * lib/strtod.c (strtod): Don't assign const char * to char *,
1124         as this elicits a warning from GCC when warnings are enabled.
1125
1126 2010-08-10  Pádraig Brady <P@draigbrady.com>
1127         and Eric Blake  <eblake@redhat.com>
1128
1129         copy-acl: ignore ENOTSUP on HP-UX
1130         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1131         so that it is available for HP-UX.
1132         * lib/copy-acl.c (qcopy_acl): Use it.
1133         Reported by Patrick M. Callahan.
1134
1135 2010-08-10  Eric Blake  <eblake@redhat.com>
1136
1137         open, chown: relax license
1138         * modules/open (License): Change to LGPLv2+, with consent by all
1139         authors, for use in augeas.
1140         * modules/chown (License): Likewise.
1141         * modules/lchown (Likewise): Likewise.
1142         Requested by Adam Stokes.
1143
1144 2010-08-09  Karl Berry  <karl@gnu.org>
1145
1146         * build-aux/ar-lib: new file, import from Automake.
1147         * config/srclist.txt: autocheck for updates.
1148
1149 2010-08-09  Eric Blake  <eblake@redhat.com>
1150
1151         readlinkat: adjust client modules
1152         * modules/areadlinkat (Depends-on): Use readlinkat, not
1153         symlinkat.
1154         * modules/areadlinkat-with-size (Depends-on): Likewise.
1155
1156         mknod: be more vocal about danger of running tests as root
1157         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1158         root, since that is just asking for problems.
1159         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1160
1161         readlinkat: split into its own module
1162         * modules/symlinkat: Split readlinkat...
1163         * modules/readlinkat: ...into separate module.
1164         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1165         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1166         * lib/symlinkat.c (readlinkat): Move...
1167         * lib/readlinkat.c: ...into new file.
1168         * modules/symlinkat-tests: Split readlinkat test...
1169         * modules/readlinkat-tests: ...into separate module.
1170         * tests/test-symlinkat.c: Split...
1171         * tests/test-readlinkat.c: ...into new file.
1172         * NEWS: Document the split.
1173         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1174         * lib/unistd.in.h (readlinkat): Likewise.
1175         Suggested by Bruno Haible.
1176
1177 2010-08-08  Bruno Haible  <bruno@clisp.org>
1178
1179         memxfrm: Speed up.
1180         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1181         that usually only one call to strxfrm is necessary for each string
1182         part.
1183         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1184
1185 2010-08-07  Karl Berry  <karl@gnu.org>
1186
1187         * doc/posix-headers/limits.texi,
1188         * doc/posix-functions/malloc.texi,
1189         * doc/posix-functions/strsignal.texi: missing @item.
1190         * doc/ld-version-script.texi: spurious leading i.
1191         * doc/regex.texi (Interval Operators): no commas inside @var.
1192
1193 2010-08-01  Bruno Haible  <bruno@clisp.org>
1194
1195         Integrate the regex documentation.
1196         * doc/gnulib.texi: Define 'cn' index.
1197         (Regular expressions): New a chapter that includes regex.texi and
1198         regexprops-generic.texi.
1199         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1200         syntax.
1201
1202         Whitespace cleanup.
1203         * doc/regex.texi: Remove trailing spaces.
1204
1205         Add regex documentation.
1206         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1207         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1208         Written by Kathy A. Hargreaves and Karl Berry.
1209
1210 2010-08-01  Bruno Haible  <bruno@clisp.org>
1211
1212         link: Update documentation.
1213         * doc/posix-functions/link.texi: Update regarding Solaris.
1214
1215 2010-07-31  Bruno Haible  <bruno@clisp.org>
1216
1217         Update modules list.
1218         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1219         (String handling <string.h>): Add memcmp2, memxfrm.
1220         (Container data structures): Add xlist, xsublist, xoset.
1221         (Core language properties): Add alignof, unused-parameter.
1222         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1223         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1224         (Unibyte characters <ctype.h>): New section.
1225         (String handling <string.h>): New section.
1226         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1227         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1228         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1229         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1230         tan, tanh, tanl, y0, y1, yn.
1231         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1232         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1233         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1234         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1235         unlockpt, vdprintf, vdprintf-posix.
1236         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1237         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1238         xconcat-filename.
1239         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1240         getdtablesize, pipe2, pipe2-safer.
1241         (Security): New section.
1242         (Networking functions): Add accept4.
1243         (Signal handling): Add sigpipe.
1244         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1245         mbmemcasecoll.
1246         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1247         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1248         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1249         pipe-filter-ii.
1250         (Misc): Add argp-version-etc, login_tty, parse-duration.
1251
1252 2010-07-31  Bruno Haible  <bruno@clisp.org>
1253
1254         Improve doc in MODULES.html.
1255         * modules/linkat (Description): Add the word "function".
1256         * modules/mkfifo (Description): Likewise.
1257         * modules/mknod (Description): Likewise.
1258         * modules/remove (Description): Likewise.
1259         * modules/renameat (Description): Likewise.
1260         * modules/stat (Description): Likewise.
1261         * modules/symlink (Description): Likewise.
1262         * modules/unlink (Description): Likewise.
1263
1264 2010-07-31  Bruno Haible  <bruno@clisp.org>
1265
1266         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1267         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1268         option --enable/disable-c++ instead of --enable/disable-cxx.
1269         * NEWS: Mention the change.
1270
1271 2010-07-31  Bruno Haible  <bruno@clisp.org>
1272
1273         readlink, areadlink: Relax test a bit.
1274         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1275         alternative to ENOTDIR.
1276         * tests/test-areadlink.h (test_areadlink): Likewise.
1277         Reported by Rainer Tammer.
1278
1279 2010-07-31  Bruno Haible  <bruno@clisp.org>
1280
1281         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1282         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1283         character, perform the search using U_STRCHR.
1284         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1285         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1286         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1287         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1288         Suggested by Paolo Bonzini.
1289
1290 2010-07-31  Bruno Haible  <bruno@clisp.org>
1291
1292         unistr/u*-strstr: Fix dependencies.
1293         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1294         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1295         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1296
1297 2010-07-31  Bruno Haible  <bruno@clisp.org>
1298
1299         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1300         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1301         the beginning of the loop.
1302         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1303         cases in 'switch' statement.
1304
1305         unistr/u8-strchr: Fix several bugs.
1306         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1307         the string. When not found, return NULL, not a pointer near the end.
1308
1309         More tests for unistr/u8-strchr.
1310         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1311         that the function does not read past the first occurrence of the byte
1312         being searched.
1313         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1314         * tests/unistr/test-u16-strchr.c (main): New function.
1315         * tests/unistr/test-u32-strchr.c (main): New function.
1316
1317 2010-07-31  Bruno Haible  <bruno@clisp.org>
1318
1319         posix-modules: Ignore backup files of documentation files.
1320         * posix-modules: grep only through files named *.texi.
1321
1322 2010-07-31  Bruno Haible  <bruno@clisp.org>
1323
1324         symlinkat: Fix documentation.
1325         * doc/posix-functions/readlinkat.texi: Fix module name.
1326
1327 2010-07-31  Bruno Haible  <bruno@clisp.org>
1328
1329         fchownat: Replace also when chown has the trailing slash bug.
1330         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1331         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1332         introduced on 2010-04-10.
1333         Reported by Rainer Tammer.
1334
1335 2010-07-31  Bruno Haible  <bruno@clisp.org>
1336
1337         linkat: Work around AIX 7.1 bug.
1338         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1339         whether linkat handles trailing slash correctly. If not, replace linkat
1340         and define LINKAT_TRAILING_SLASH_BUG.
1341         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1342         check whether (fd1,file1) points to a directory if file1 or file2 ends
1343         in a slash. Code taken from lib/link.c.
1344         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1345         Reported by Rainer Tammer.
1346
1347 2010-07-31  Bruno Haible  <bruno@clisp.org>
1348
1349         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1350         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1351         This disables an xlc optimization that was causing wrong test results.
1352         Reported by Rainer Tammer.
1353
1354 2010-07-31  Bruno Haible  <bruno@clisp.org>
1355
1356         iconv: Work around AIX 6.1..7.1 bug.
1357         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1358         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1359         cross-compiling, guess no on all versions of AIX.
1360         Reported by Rainer Tammer.
1361
1362 2010-07-31  Bruno Haible  <bruno@clisp.org>
1363
1364         readlink: Relax test a bit.
1365         * tests/test-readlink.h (test_readlink): Allow different errno value
1366         when readlink is called with a file name that ends in / and refers to
1367         a file.
1368         Suggested by Eric Blake.
1369         Reported by Rainer Tammer.
1370
1371 2010-07-31  Bruno Haible  <bruno@clisp.org>
1372
1373         copysign: Does not require -lm on glibc systems.
1374         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1375         gl_COMMON_DOUBLE_MATHFUNC.
1376         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1377
1378 2010-07-31  Bruno Haible  <bruno@clisp.org>
1379
1380         duplocale: Work around AIX 7.1 bug.
1381         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1382         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1383         * lib/duplocale.c (rpl_duplocale): Update comment.
1384         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1385         Reported by Rainer Tammer.
1386
1387 2010-07-30  Bruno Haible  <bruno@clisp.org>
1388
1389         dirfd: Avoid link error on AIX 7.1.
1390         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1391         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1392         exist, set REPLACE_DIRFD.
1393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1394         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1395         * doc/posix-functions/dirfd.texi: Update.
1396         Reported by Rainer Tammer.
1397
1398 2010-07-30  Eric Blake  <eblake@redhat.com>
1399
1400         strtod: next round of AIX fixes
1401         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1402         exponent.
1403         * tests/test-strtod.c (main): Enhance tests.
1404         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1405         Reported by Rainer Tammer.
1406
1407         futimens: fix configure check
1408         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1409         Reported by Bruno Haible.
1410
1411 2010-07-30  Bruno Haible  <bruno@clisp.org>
1412
1413         getline: Update regarding AIX.
1414         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1415         Reported by Rainer Tammer.
1416
1417 2010-07-30  Bruno Haible  <bruno@clisp.org>
1418
1419         wcwidth: Drop replacement on AIX 7.
1420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1421         AIX 7.
1422         Reported by Rainer Tammer.
1423
1424 2010-07-30  Bruno Haible  <bruno@clisp.org>
1425
1426         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1428         a 'char *'.
1429         Reported by Rainer Tammer.
1430
1431 2010-07-30  Bruno Haible  <bruno@clisp.org>
1432
1433         unlink: Update regarding AIX.
1434         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1435         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1436         Reported by Rainer Tammer.
1437
1438 2010-07-30  Bruno Haible  <bruno@clisp.org>
1439
1440         symlink: Update regarding AIX.
1441         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1442         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1443         Reported by Rainer Tammer.
1444
1445 2010-07-30  Bruno Haible  <bruno@clisp.org>
1446
1447         strndup: Update regarding AIX.
1448         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1449         AIX 7.
1450         Reported by Rainer Tammer.
1451
1452 2010-07-30  Bruno Haible  <bruno@clisp.org>
1453
1454         stat: Update regarding AIX.
1455         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1456         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1457         Reported by Rainer Tammer.
1458
1459 2010-07-30  Bruno Haible  <bruno@clisp.org>
1460
1461         truncl: Fix autoconf test.
1462         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1463         whether truncl works.
1464         Reported by Rainer Tammer.
1465
1466 2010-07-30  Bruno Haible  <bruno@clisp.org>
1467
1468         round: Update regarding AIX.
1469         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1470         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1471         Reported by Rainer Tammer.
1472
1473 2010-07-30  Bruno Haible  <bruno@clisp.org>
1474
1475         rename: Update regarding AIX.
1476         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1477         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1478         Reported by Rainer Tammer.
1479
1480 2010-07-30  Bruno Haible  <bruno@clisp.org>
1481
1482         printf.m4: Update regarding AIX.
1483         * m4/printf.m4: Update comments regarding AIX.
1484         Reported by Rainer Tammer.
1485
1486 2010-07-30  Bruno Haible  <bruno@clisp.org>
1487
1488         iconv: Update regarding AIX.
1489         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1490         AIX 7.
1491         Reported by Rainer Tammer.
1492
1493 2010-07-30  Bruno Haible  <bruno@clisp.org>
1494
1495         getopt: Update regarding AIX.
1496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1497         no on AIX.
1498         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1499         Reported by Rainer Tammer.
1500
1501 2010-07-30  Bruno Haible  <bruno@clisp.org>
1502
1503         ldexpl; Update regarding AIX.
1504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1505         on AIX 7.
1506         Reported by Rainer Tammer.
1507
1508 2010-07-30  Bruno Haible  <bruno@clisp.org>
1509
1510         frexpl: Update regarding AIX.
1511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1512         on AIX 7.
1513         Reported by Rainer Tammer.
1514
1515 2010-07-30  Bruno Haible  <bruno@clisp.org>
1516
1517         open, fopen: Update regarding AIX.
1518         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1519         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1520         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1521         * doc/posix-functions/fopen.texi: Likewise.
1522         Reported by Rainer Tammer.
1523
1524 2010-07-30  Bruno Haible  <bruno@clisp.org>
1525
1526         chown: Update doc regarding AIX.
1527         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1528         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1529         Reported by Rainer Tammer.
1530
1531 2010-07-30  Eric Blake  <eblake@redhat.com>
1532
1533         strtod: fix bug in replacement function on AIX
1534         * lib/strtod.c (strtod): Special case broken "0x" parse in
1535         underlying strtod.
1536         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1537         * doc/posix-functions/strtod.texi (strtod): Likewise.
1538         Reported by Rainer Tammer.
1539
1540 2010-07-30  Bruno Haible  <bruno@clisp.org>
1541
1542         mbrlen: Fix cross-compilation guess for AIX.
1543         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1544         guess. Leftover from 2008-12-22.
1545
1546 2010-07-30  Bruno Haible  <bruno@clisp.org>
1547
1548         mbrtowc: Fix cross-compilation guess for AIX.
1549         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1550         guess. Leftover from 2008-12-21.
1551
1552 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1553
1554         init.sh: work around trap limitation of some shells
1555         * tests/init.sh (setup_): Move exit trap outside of shell function.
1556
1557 2010-07-29  Eric Blake  <eblake@redhat.com>
1558
1559         strtod: aid debugging
1560         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1561         understanding why strtod is rejected.
1562
1563 2010-07-28  Bruno Haible  <bruno@clisp.org>
1564
1565         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1566         * lib/unistr/u8-chr.c: Include <string.h>.
1567         * tests/unistr/test-u8-chr.c: Likewise.
1568         * tests/unistr/test-u16-chr.c: Likewise.
1569         * tests/unistr/test-u32-chr.c: Likewise.
1570         * tests/unistr/test-u8-strchr.c: Likewise.
1571         * tests/unistr/test-u16-strchr.c: Likewise.
1572         * tests/unistr/test-u32-strchr.c: Likewise.
1573         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1574         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1575         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1576         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1577
1578 2010-07-28  Bruno Haible  <bruno@clisp.org>
1579
1580         Use spaces for indentation, not tabs.
1581         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1582
1583 2010-07-27  Bruno Haible  <bruno@clisp.org>
1584
1585         mbspcasecmp: Fix function specification.
1586         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1587         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1588         Reported by Eric Blake <eblake@redhat.com>.
1589
1590 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1591
1592         timespec: use cast and not conditional, as truncation isn't possible
1593         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1594         instead of a conditional.  Comment about the situation in more detail.
1595         This undoes most of the 2009-10-29 patch.
1596
1597 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1598
1599         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1600         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1601         * lib/unistr/u8-strchr.c: Likewise.
1602         * modules/unistr/u8-chr: Depend on memchr.
1603
1604         unistr/u*-strchr: add tests
1605         * modules/unistr/u8-strchr-tests: New file.
1606         * modules/unistr/u16-strchr-tests: New file.
1607         * modules/unistr/u32-strchr-tests: New file.
1608         * tests/unistr/test-strchr.h: New file.
1609         * tests/unistr/test-u8-strchr.c: New file.
1610         * tests/unistr/test-u16-strchr.c: New file.
1611         * tests/unistr/test-u32-strchr.c: New file.
1612
1613         unistr/u*-chr: test multibyte sequences more
1614         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1615         test vector.
1616         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1617         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1618         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1619
1620         unistr/u*-chr: test multibyte sequences
1621         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1622
1623         unistr/u*-chr: prepare for multibyte tests
1624         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1625         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1626         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1627         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1628         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1629         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1630
1631 2010-07-18  Bruno Haible  <bruno@clisp.org>
1632
1633         unistr/u8-strchr: Optimize non-ASCII argument case.
1634         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1635         because the first byte often matches anyway.
1636         Reported by Pádraig Brady <P@draigbrady.com>.
1637
1638 2010-07-15  Karl Berry  <karl@gnu.org>
1639
1640         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1641
1642 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1643
1644         getcwd: on Solaris, work better if ancestors are inaccessible
1645         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1646         buffer and size, try again with a large buffer.  This works better
1647         on Solaris, since its getcwd succeeds even if the path to the root
1648         is inaccessible, and this is helpful in common cases such as .zfs
1649         hidden directories.  Problem reported by J Chapman Flack in
1650         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1651         Use system getcwd if it's declared, not merely if it's partly
1652         working; use the partly-working test only to avoid needless effort
1653         if the system getcwd fails.
1654         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1655         comment that was already obsolete and is now even more obsolete.
1656         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1657         now might call strdup.
1658
1659 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1660
1661         pthread: Add enough so that coreutils/src/sort.c compiles.
1662         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1663         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1664         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1665         Include <sys/types.h>, in case it defines pthread_t.
1666         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1667         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1668         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1669         (pthread_rwlockattr_t, pthread_spinlock_t):
1670         New typedefs, if HAVE_PTHREAD_T is not defined.
1671         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1672         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1673         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1674         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1675         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1676         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1677         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1678         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1679         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1680         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1681         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1682         New macros.
1683         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1684         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1685         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1686         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1687         (pthread_spin_unlock): New dummy functions.
1688         (pthread_create): Return EAGAIN; don't set errno.
1689         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1690         require AC_C_INLINE.
1691         * modules/pthread (Depends-on): Add sched, time.
1692         (pthread.h): Use AM_V_GEN.
1693
1694 2010-07-13  Bruno Haible  <bruno@clisp.org>
1695
1696         striconveh: Don't malloc memory if the result buffer is sufficient.
1697         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1698         buffer if its size is sufficient.
1699         Reported by Ludovic Courtès <ludo@gnu.org>.
1700
1701 2010-07-13  Bruno Haible  <bruno@clisp.org>
1702
1703         strtod: Add safety check.
1704         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1705
1706 2010-07-12  Bruno Haible  <bruno@clisp.org>
1707
1708         Unify tests that set gl_cv_func_ldexpl_no_libm.
1709         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1710         gl_FUNC_LDEXPL.
1711         (gl_FUNC_LDEXPL): Invoke it.
1712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1713
1714 2010-07-12  Bruno Haible  <bruno@clisp.org>
1715
1716         Unify tests that set gl_cv_func_ldexp_no_libm.
1717         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1718         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1719         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1720         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1721         * modules/strtod (Files): Add m4/ldexp.m4.
1722
1723 2010-07-12  Bruno Haible  <bruno@clisp.org>
1724
1725         Unify tests that set gl_cv_func_frexpl_no_libm.
1726         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1727         gl_FUNC_FREXPL_NO_LIBM.
1728         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1729         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1730
1731 2010-07-12  Bruno Haible  <bruno@clisp.org>
1732
1733         Unify tests that set gl_cv_func_frexp_no_libm.
1734         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1735         gl_FUNC_FREXP_NO_LIBM.
1736         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1737         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1738
1739 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1740
1741         memcoll: clarify sizes versus lengths, document better, and tweak perf
1742         * lib/memcoll.c (strcoll_loop, memcoll0):
1743         Improve quality of descriptive comments.  Name variables
1744         consistently as to whether they are lengths (which do not include
1745         terminating null) versus sizes (which do).
1746         * lib/xmemcoll.c (xmemcoll0): Likewise.
1747         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1748         returned when s1size == 0; this is easier to compile and saves
1749         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1750
1751 2010-07-12  Bruno Haible  <bruno@clisp.org>
1752
1753         Tests for module '_Exit'.
1754         * modules/_Exit-tests: New file.
1755         * tests/test-_Exit.sh: New file.
1756         * tests/test-_Exit.c: New file.
1757
1758         New module '_Exit'.
1759         * lib/stdlib.in.h (__attribute__): New macro.
1760         (_Exit): New declaration.
1761         * lib/_Exit.c: New file.
1762         * m4/_Exit.m4: New file.
1763         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1764         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1765         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1766         * modules/_Exit: New file.
1767         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1768         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1769
1770 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1771
1772         strtod: make it more-accurate typically, and don't require libm
1773         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1774         Include limits.h.  Don't include string.h.
1775         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1776         (locale_isspace): New function, so that no casts are needed to
1777         check whether *s is a space.
1778         (ldexp): Provide an unused dummy if not available.
1779         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1780         (strtod): Use them.  This implementation prefers to use the
1781         underlying strtod if available, falling back on our own code
1782         only to fix known bugs.  This is more likely to produce an
1783         accurate result.  Also, it avoids the use of libm functions.
1784         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1785         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1786         was absent, but it caused a test failure with coreutils.
1787         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1788         with libm.
1789         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1790         * modules/strtod-tests (Makefile.am): Likewise.
1791
1792 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1793             Bruno Haible  <bruno@clisp.org>
1794
1795         unistr/u8-strchr: Optimize ASCII argument case.
1796         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1797
1798 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1799
1800         (x)memcoll: minor tweaks
1801         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1802         is after the type that it qualifies.
1803         (memcoll0): Likewise.
1804         * lib/memcoll.h (memcoll0): Likewise.
1805         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1806         * lib/xmemcoll.h (xmemcoll0): Likewise.
1807         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1808         differs from memcoll in that the NUL byte is part of the argument.
1809         Omit the abort-checks, as performance is a real issue here.  Plus,
1810         the checks were wrong anyway (an off-by-one error).  Omit local
1811         variable 'diff', as it's a bit clearer that way.
1812         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1813         no longer needed.
1814
1815 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1816
1817         (x)memcoll: speedup when input is known to be NUL delimited
1818         * lib/memcoll.c: Include stdlib.
1819         (memcoll0) New function.
1820         (strcoll_loop) New function, refactored for use in both memcoll
1821         and memcoll0.
1822         * lib/memcoll.h: Add prototype for memcoll0.
1823         * lib/xmemcoll.c: (xmemcoll0) New function.
1824         (collate_error) New function, refactored for use in both xmemcoll
1825         and xmemcoll0.
1826         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1827         * m4/memcoll.m4: add inline invocation.
1828
1829 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1830
1831         * build-aux/bootstrap: Remove any local translations
1832         from the translation project synchronization directory,
1833         so that local only translations are not distributed.
1834
1835 2010-07-04  Bruno Haible  <bruno@clisp.org>
1836
1837         fsusage: Clarify which code applies to which platforms.
1838         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1839         platform.
1840         * lib/fsusage.c (get_fs_usage): Likewise.
1841
1842 2010-07-04  Bruno Haible  <bruno@clisp.org>
1843
1844         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1845         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1846         Reported by Martin Lambers <marlam@marlam.de>.
1847
1848 2010-07-04  Jim Meyering  <meyering@redhat.com>
1849
1850         hash: once again explicitly disallow insertion of NULL
1851         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1852         inserting a NULL pointer cannot work with these functions.
1853         Add a comment with details.
1854         This reverts part of the 2010-07-01 commit, 5bef1a35
1855         "hash: extend module to deal with non-pointer keys".
1856
1857 2010-07-01  Bruno Haible  <bruno@clisp.org>
1858
1859         stdbool: Update doc.
1860         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1861         Info from Christian Weisgerber <naddy@mips.inka.de>.
1862
1863 2010-07-01  Jim Meyering  <meyering@redhat.com>
1864
1865         hash: extend module to deal with non-pointer keys
1866         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1867         but that allows insertion of non-pointer entries.
1868         Do not disallow an ENTRY value of NULL.
1869         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1870         * lib/hash.h (hash_insert0): Declare.
1871
1872 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1873
1874         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1875         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1876         not present (i.e. with autoconf 2.59 and when using gettextize, not
1877         gnulib), require AC_GNU_SOURCE instead.
1878
1879 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1880
1881         idpriv-drop: Fix tests.
1882         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1883         not to the test-idpriv-droptemp program.
1884
1885 2010-06-29  Bruno Haible  <bruno@clisp.org>
1886
1887         string: Fix syntax error with g++ 2.96.
1888         * lib/string.in.h (__pure__): Remove definition.
1889         (_GL_ATTRIBUTE_PURE): New macro.
1890         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1891         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1892         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1893
1894 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1895
1896         unitypes: Fix bug introduced on 2010-05-18.
1897         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1898
1899 2010-06-22  Eric Blake  <eblake@redhat.com>
1900
1901         memmem: slight optimization
1902         * lib/str-two-way.h (critical_factorization): Update comments.
1903         Reduce work during factorization phase.
1904         Reported by Carlos Bueno <carlos@bueno.org>.
1905
1906 2010-06-21  Bruno Haible  <bruno@clisp.org>
1907
1908         Fix HAVE_CALLOC_POSIX misnomer.
1909         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1910         !HAVE_CALLOC_POSIX.
1911         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1912         HAVE_CALLOC_POSIX.
1913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1914         instead of HAVE_CALLOC_POSIX.
1915         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1916         HAVE_CALLOC_POSIX.
1917
1918         Use modern idiom for calloc() replacement.
1919         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1920         AC_FUNC_CALLOC.
1921         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1922         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1923         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1924         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1925         (gl_REPLACE_CALLOC): New macro.
1926
1927 2010-06-21  Bruno Haible  <bruno@clisp.org>
1928
1929         Fix HAVE_REALLOC_POSIX misnomer.
1930         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1931         !HAVE_REALLOC_POSIX.
1932         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1933         HAVE_REALLOC_POSIX.
1934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1935         instead of HAVE_REALLOC_POSIX.
1936         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1937         HAVE_REALLOC_POSIX.
1938
1939         Use modern idiom for realloc() replacement.
1940         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1941         AC_FUNC_REALLOC.
1942         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1943         Autoconf's AC_FUNC_REALLOC.
1944         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1945         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1946         (gl_REPLACE_REALLOC): New macro.
1947         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1948
1949 2010-06-21  Bruno Haible  <bruno@clisp.org>
1950
1951         Fix HAVE_MALLOC_POSIX misnomer.
1952         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1953         !HAVE_MALLOC_POSIX.
1954         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1955         HAVE_MALLOC_POSIX.
1956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
1957         instead of HAVE_MALLOC_POSIX.
1958         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
1959         HAVE_MALLOC_POSIX.
1960
1961         Use modern idiom for malloc() replacement.
1962         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
1963         AC_FUNC_MALLOC.
1964         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
1965         Autoconf's AC_FUNC_MALLOC.
1966         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1967         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
1968         (gl_REPLACE_MALLOC): New macro.
1969         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1970
1971 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
1972
1973         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
1974         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
1975         This macro takes 3 arguments, not 4.
1976
1977 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
1978
1979         ipv6: fix detection under mingw
1980         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
1981         in6_addr.
1982
1983 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
1984
1985         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
1986         that strtod() works when cross-compiling to a glibc version known
1987         to work.
1988
1989 2010-06-15  Bruno Haible  <bruno@clisp.org>
1990
1991         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
1992
1993 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
1994
1995         select: Correct timeout.
1996         * lib/select.c (rpl_select): Compute wait_timeout correctly.
1997
1998 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1999
2000         git-version-gen: init shell var to avoid env var influence
2001         * build-aux/git-version-gen (v): Init shell var to empty.
2002
2003 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         priv-set: Don't assume that priv.h exists merely because getppriv does.
2006         See Jan Andersen's bug report about AIX 5L in
2007         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2008         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2009         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2010         * lib/priv-set.h: Likewise.
2011         * tests/test-priv-set.c: Likewise.
2012
2013 2010-06-13  Bruno Haible  <bruno@clisp.org>
2014
2015         relocatable: Make it easier to test whether to install wrappers.
2016         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2017         RELOCATABLE_VIA_WRAPPER.
2018
2019 2010-06-13  Bruno Haible  <bruno@clisp.org>
2020
2021         gnulib-tool: Display specified modules and dependencies differently.
2022         * gnulib-tool (func_show_module_list): New function.
2023         (func_import, func_create_testdir): Invoke it.
2024         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2025
2026 2010-06-13  Bruno Haible  <bruno@clisp.org>
2027
2028         gnulib-tool: Align code of func_import and func_create_testdir.
2029         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2030         specified_modules.
2031
2032 2010-06-12  Jim Meyering  <meyering@redhat.com>
2033
2034         test-inttostr: avoid spurious failure on Solaris 9
2035         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2036         to accept "%ju".  Reported by Bruno Haible.
2037
2038 2010-06-11  Jim Meyering  <meyering@redhat.com>
2039
2040         test-sys_socket: mark variables as used more readably
2041         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2042         as "used" explicitly via (void) statement casts.  This is more
2043         readable than using them in an artificial return expression.
2044         Suggestion from Bruno Haible.
2045
2046 2010-06-11  Bruno Haible  <bruno@clisp.org>
2047
2048         Avoid some more warnings from "gcc -Wwrite-strings".
2049         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2050         to 'const char *'.
2051         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2052         * tests/test-c-strcasestr.c (main): Likewise.
2053         * tests/test-mbscasestr1.c (main): Likewise.
2054         * tests/test-mbscasestr2.c (main): Likewise.
2055         * tests/test-memmem.c (main): Likewise.
2056         * tests/test-strstr.c (main): Likewise.
2057         * tests/test-strcasestr.c (main): Likewise.
2058
2059 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2060
2061         init.sh: change framework_failure_ to fail with status 99, not 1
2062         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2063         automake's parallel-tests rule that this is an unexpected failure,
2064         even if the test is listed in XFAIL_TESTS.
2065
2066 2010-06-11  Jim Meyering  <meyering@redhat.com>
2067
2068         test-inttostr: avoid warnings about 4-6KB literal strings
2069         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2070         Include "macros.h", for its definition of ASSERT.
2071         (CK): s/assert/ASSERT/
2072         * modules/inttostr-tests (Files): Add macros.h.
2073
2074         init.sh: don't use $ME_ or skip_ before they are defined
2075         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2076         their first uses.  Also hoist their companions: warn_, fail_,
2077         framework_failure_, $stderr_fileno.  Prompted by a patch from
2078         Stefano Lattarini.
2079
2080         test-sys_socket: avoid set-but-not-used warnings from gcc
2081         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2082         avoid warning about set-but-not-used variables.
2083
2084         test-xvasprintf: avoid 'const' discard warnings
2085         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2086         "const" when assigning from literal strings.
2087         (test_xasprintf): Add "void" in function argument list to placate
2088         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2089
2090         tests: avoid compilation warnings in argmatch and exclude tests...
2091         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2092         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2093         Since it always exits, declare with the "noreturn" attribute.
2094         * tests/test-argmatch.c: Likewise.
2095
2096         tests: avoid 'const' discard warnings in mbsstr tests
2097         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2098         * tests/test-mbsstr2.c (main): Likewise.
2099
2100         test-verify: avoid warning from gcc's -Wmissing-declarations
2101         * tests/test-verify.c (function): Declare to be static.
2102
2103         test-inttostr.c: include <string.h> for use of strcmp
2104         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2105
2106         test-linkat: avoid failed assertion on "other" architectures
2107         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2108         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2109         sparc: https://bugs.launchpad.net/bugs/591968
2110
2111 2010-06-11  Jim Meyering  <meyering@redhat.com>
2112
2113         printf.m4: avoid autoconf's "Expanded Before Required" warning
2114         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2115         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2116         autoconf warning.
2117
2118 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2119
2120         Replacement header templates are now named with ".in", not "_".
2121         * doc/gnulib-intro.texi: Correct.
2122
2123 2010-06-10  Jim Meyering  <meyering@redhat.com>
2124
2125         inttostr-tests: depend on snprintf, not snprintf-posix
2126         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2127         snprintf-posix, to avoid this aclocal failure:
2128           missing file gnulib-tests/vasnprintf.c
2129           configure.ac:45: error: expected source file, required through \
2130           AC_LIBSOURCES, not found
2131
2132 2010-06-10  Jim Meyering  <meyering@redhat.com>
2133
2134         inttostr: add a new function, inttostr, and tests
2135         The namesake function was not available.  The existence of the
2136         template file, inttostr.c makes its addition nontrivial.
2137         * lib/anytostr.c: Rename from inttostr.c.
2138         (anytostr): Rename from inttostr.
2139         * lib/inttostr.c: New file.
2140         * modules/inttostr (Files): Add anytostr.c.
2141         (Makefile.am): Set lib_SOURCES instead of ...
2142         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2143         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2144         * lib/offtostr.c: Likewise.
2145         * lib/uinttostr.c: Likewise.
2146         * lib/umaxtostr.c: Likewise.
2147         * modules/inttostr-tests: New file.
2148         * tests/test-inttostr.c: New file.  Test these functions.
2149
2150 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2151             Bruno Haible  <bruno@clisp.org>
2152
2153         Add "Extending Gnulib" chapter to manual.
2154         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2155         chapter.
2156         (Extending Gnulib): New chapter.
2157         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2158         chapter.
2159
2160 2010-06-09  Bruno Haible  <bruno@clisp.org>
2161
2162         Avoid relocwrapper link errors due to gnulib replacement functions.
2163         * lib/areadlink.c: Use the system's malloc, realloc functions.
2164         (areadlink): Set errno to ENOMEM explicitly.
2165         * modules/areadlink (Depends-on): Remove malloc-posix.
2166         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2167
2168 2010-06-09  Bruno Haible  <bruno@clisp.org>
2169
2170         Avoid relocwrapper link errors due to gnulib replacement functions.
2171         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2172         * lib/malloca.c: Likewise.
2173         * lib/relocatable.c: Likewise.
2174         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2175         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2176         * lib/setenv.c: Use the system's malloc, realloc functions.
2177         * lib/strerror.c: Use the system's sprintf function.
2178         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2179
2180 2010-06-04  Bruno Haible  <bruno@clisp.org>
2181
2182         Prefer documented low-level autoconf macro names.
2183         * m4/lib-link.m4: Use m4_translit instead of translit.
2184         * m4/environ.m4: Likewise.
2185         * m4/mathfunc.m4: Likewise.
2186         * m4/onceonly.m4: Likewise.
2187         * m4/stdint.m4: Likewise.
2188         Suggested by Eric Blake.
2189
2190 2010-06-04  Martin Lambers  <marlam@marlam.de>
2191             Bruno Haible  <bruno@clisp.org>
2192
2193         havelib: Allow library names with '+' characters.
2194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2195         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2196
2197 2010-06-09  Bruno Haible  <bruno@clisp.org>
2198
2199         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2200         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2201         realloc failed.
2202
2203 2010-06-08  Peter Simons  <simons@cryp.to>
2204
2205         maint.mk: make the news-check rule more configurable
2206         * top/maint.mk (news-check-lines-spec) New variable.
2207         (news-check): Use "sed -n 1,10p" in place of "head".
2208
2209 2010-06-07  Jim Meyering  <meyering@redhat.com>
2210
2211         do-release-commit-and-tag: fix typo in --help
2212         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2213
2214         regex: avoid new dead-code warning with gcc-4.6.0
2215         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2216         if-block containing a while-loop.  It's been unused for at least
2217         5 years.
2218
2219 2010-06-05  Bruno Haible  <bruno@clisp.org>
2220
2221         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2222         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2223
2224 2010-06-04  Bruno Haible  <bruno@clisp.org>
2225
2226         Update to GNU gettext 0.18.1.
2227         * modules/gettext (configure.ac): Require gettext infrastructure from
2228         version 0.18.1.
2229
2230 2010-06-03  Bruno Haible  <bruno@clisp.org>
2231
2232         Don't use AC_LIBOBJ with file names in subdirectories.
2233         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2234         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2235         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2236         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2237         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2238         gl_LIBUNISTRING_LIBSOURCE.
2239         (Makefile.am): Augment lib_SOURCES here, conditionally.
2240         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2241
2242 2010-06-03  Bruno Haible  <bruno@clisp.org>
2243
2244         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2245         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2246         expansion does not end with a newline.
2247         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2248         unnecessary newline.
2249
2250 2010-06-03  Bruno Haible  <bruno@clisp.org>
2251
2252         Reduce dependencies.
2253         * tests/test-quotearg.h: New file, extracted from
2254         tests/test-quotearg.c.
2255         * tests/test-quotearg-simple.c: New file, extracted from
2256         tests/test-quotearg.c.
2257         * tests/test-quotearg.c: Don't include <ctype.h>.
2258         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2259         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2260         use_quote_double_quotes, use_quotearg_colon): Moved to
2261         tests/test-quotearg.h.
2262         (results_g, flag_results, custom_quotes, custom_results): Moved
2263         to tests/test-quotearg-simple.c.
2264         (main): Moved the part that does not depend on gettext to
2265         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2266         performed.
2267         * modules/quotearg-simple: New file.
2268         * modules/quotearg-simple-tests: New file.
2269         * modules/quotearg (Depends-on): Add quotearg-simple.
2270         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2271         (Files): Add tests/test-quotearg.h.
2272         Reported by Paolo Bonzini.
2273
2274 2010-06-03  Bruno Haible  <bruno@clisp.org>
2275
2276         Reduce dependencies.
2277         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2278
2279 2010-06-03  Bruno Haible  <bruno@clisp.org>
2280
2281         time: Undefine more broken macros.
2282         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2283         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2284         Reported by Eric Blake.
2285
2286 2010-06-03  Bruno Haible  <bruno@clisp.org>
2287
2288         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2289         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2290         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2291         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2292         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2293         Reported by Ludovic Courtès <ludo@gnu.org>.
2294
2295 2010-06-02  Eric Blake  <eblake@redhat.com>
2296
2297         time: work with mingw + pthreads-win32 library
2298         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2299         if timespec is defined only in pthread.h.
2300         * modules/time (Makefile.am): Substitute it.
2301         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2302         <pthread.h>, when needed.
2303         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2304         from the library.
2305
2306 2010-05-31  Bruno Haible  <bruno@clisp.org>
2307
2308         Avoid expanding two macros in the wrong order.
2309         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2310         gl_LIBUNISTRING if it is defined.
2311         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2312         autoconf >= 2.64.
2313         Reported by Ludovic Courtès <ludo@gnu.org>.
2314
2315 2010-05-27  Jim Meyering  <meyering@redhat.com>
2316
2317         maint.mk: also prohibit "#undef" of always-defined symbols
2318         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2319         Allow more than one space before the symbol name.
2320         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2321         the regexp uses alternation.
2322
2323 2010-05-26  Eric Blake  <eblake@redhat.com>
2324
2325         maint.mk: avoid echo -e
2326         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2327         Convert all uses of echo -* to printf.
2328         Reported by Matthias Bolte.
2329
2330 2010-05-25  Bruno Haible  <bruno@clisp.org>
2331
2332         Update to GNU gettext 0.18, part 2.
2333         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2334         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2335
2336 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2337
2338         Add missing include in test-pwrite.c.
2339         * tests/test-pwrite.c: Include string.h, for strcmp.
2340
2341 2010-05-24  Bruno Haible  <bruno@clisp.org>
2342
2343         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2344
2345 2010-05-24  Bruno Haible  <bruno@clisp.org>
2346
2347         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2348         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2349         iconveh_error argument.
2350         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2351         U_STRCONV_TO_LOCALE.
2352         * lib/unistr/u16-strcoll.c: Likewise.
2353         * lib/unistr/u32-strcoll.c: Likewise.
2354         * modules/unistr/u8-strcoll (Depends-on): Add
2355         uniconv/u8-strconv-to-enc, localcharset. Remove
2356         uniconv/u8-strconv-to-locale.
2357         (configure.ac): Bump version number.
2358         * modules/unistr/u16-strcoll (Depends-on): Add
2359         uniconv/u16-strconv-to-enc, localcharset. Remove
2360         uniconv/u16-strconv-to-locale.
2361         (configure.ac): Bump version number.
2362         * modules/unistr/u32-strcoll (Depends-on): Add
2363         uniconv/u32-strconv-to-enc, localcharset. Remove
2364         uniconv/u32-strconv-to-locale.
2365         (configure.ac): Bump version number.
2366
2367 2010-05-24  Bruno Haible  <bruno@clisp.org>
2368
2369         Avoid a test failure on NetBSD 5.0.
2370         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2371         an iconv() bug.
2372
2373 2010-05-24  Bruno Haible  <bruno@clisp.org>
2374
2375         Adjust #include directive style.
2376         * modules/regex (Includes): Recommend to write <regex.h>.
2377
2378 2010-05-24  Bruno Haible  <bruno@clisp.org>
2379
2380         regex: Don't require alloca.
2381         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2382         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2383         only inside if (0).
2384
2385 2010-05-23  Jim Meyering  <meyering@redhat.com>
2386
2387         test-renameat.c: include <sys/stat.h>
2388         * tests/test-renameat.c: Include <sys/stat.h>; required for
2389         definition of S_IS* macros.
2390
2391 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2392
2393         Update maintainer documentation for 'relocatable-prog' module.
2394         * doc/relocatable-maint.texi: Update.
2395         Comments by Bruno Haible.
2396
2397 2010-05-23  Bruno Haible  <bruno@clisp.org>
2398
2399         git-merge-changelog: Enable --split-merged-entry by default.
2400         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2401         (usage): Don't mention this option any more.
2402         Reported by Ralf Wildenhues.
2403
2404 2010-05-23  Jim Meyering  <meyering@redhat.com>
2405
2406         test-pwrite: do not leave behind a test file named "out"
2407         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2408         The trivial-looking use of init.sh is really necessary.
2409         It ensures that the temporary file, "out", is created in
2410         a temporary directory, and removed upon termination.
2411         * tests/test-pwrite.sh: Re-add file.
2412         * modules/pwrite-tests: Reference it.
2413
2414 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2415
2416         Fix output redirection buglet in init.sh.
2417         * tests/init.sh: Fix redirection of stderr.
2418
2419 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2420
2421         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2422
2423 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2424
2425         * modules/valgrind-tests: New file.
2426         * m4/valgrind-tests.m4: New file.
2427         * doc/valgrind-tests.texi: New file.
2428         * doc/gnulib.texi (Running self-tests under valgrind): New
2429         section.
2430
2431 2010-05-19  Bruno Haible  <bruno@clisp.org>
2432
2433         Clean up dead code in recent commit.
2434         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2435         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2436         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2437         Suggested by Paolo Bonzini.
2438
2439 2010-05-19  Bruno Haible  <bruno@clisp.org>
2440
2441         Avoid valgrind error reports from libunistring.
2442         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2443         * modules/libunistring (Files): Add it.
2444         * modules/libunistring-optional (Files): Likewise.
2445
2446 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2447             Bruno Haible  <bruno@clisp.org>
2448
2449         New module 'libunistring-optional'.
2450         * modules/libunistring-optional: New file.
2451         * m4/libunistring-base.m4: New file.
2452         * m4/libunistring-optional.m4: New file.
2453         * lib/unicase.in.h: Renamed from lib/unicase.h.
2454         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2455         * lib/unictype.in.h: Renamed from lib/unictype.h.
2456         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2457         * lib/uniname.in.h: Renamed from lib/uniname.h.
2458         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2459         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2460         * lib/unistr.in.h: Renamed from lib/unistr.h.
2461         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2462         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2463         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2464         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2465         gl_LIBUNISTRING. If the library was found, determine the installed
2466         version and set LIBUNISTRING_VERSION.
2467         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2468         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2469         handle a configuration option --with-included-libunistring.
2470         * modules/libunistring (Files): Add m4/absolute-header.m4.
2471         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2472         Add m4/libunistring-base.m4.
2473         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2474         (Makefile.am): Build unicase.h from unicase.in.h.
2475         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2476         Add m4/libunistring-base.m4.
2477         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2478         (Makefile.am): Build uniconv.h from uniconv.in.h.
2479         * modules/unictype/base (Files): Use unictype.in.h instead of
2480         unictype.h. Add m4/libunistring-base.m4.
2481         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2482         (Makefile.am): Build unictype.h from unictype.in.h.
2483         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2484         Add m4/libunistring-base.m4.
2485         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2486         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2487         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2488         Add m4/libunistring-base.m4.
2489         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2490         (Makefile.am): Build uniname.h from uniname.in.h.
2491         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2492         Add m4/libunistring-base.m4.
2493         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2494         (Makefile.am): Build uninorm.h from uninorm.in.h.
2495         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2496         unistdio.h. Add m4/libunistring-base.m4.
2497         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2498         (Makefile.am): Build unistdio.h from unistdio.in.h.
2499         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2500         Add m4/libunistring-base.m4.
2501         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2502         (Makefile.am): Build unistr.h from unistr.in.h.
2503         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2504         Add m4/libunistring-base.m4.
2505         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2506         (Makefile.am): Build unitypes.h from unitypes.in.h.
2507         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2508         Add m4/libunistring-base.m4.
2509         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2510         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2511         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2512         uniwidth.h. Add m4/libunistring-base.m4.
2513         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2514         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2515         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2516         instead of augmenting lib_SOURCES.
2517         * modules/unicase/empty-suffix-context: Likewise.
2518         * modules/unicase/locale-language: Likewise.
2519         * modules/unicase/tolower: Likewise.
2520         * modules/unicase/totitle: Likewise.
2521         * modules/unicase/toupper: Likewise.
2522         * modules/unicase/u8-casecmp: Likewise.
2523         * modules/unicase/u8-casecoll: Likewise.
2524         * modules/unicase/u8-casefold: Likewise.
2525         * modules/unicase/u8-casexfrm: Likewise.
2526         * modules/unicase/u8-ct-casefold: Likewise.
2527         * modules/unicase/u8-ct-tolower: Likewise.
2528         * modules/unicase/u8-ct-totitle: Likewise.
2529         * modules/unicase/u8-ct-toupper: Likewise.
2530         * modules/unicase/u8-is-cased: Likewise.
2531         * modules/unicase/u8-is-casefolded: Likewise.
2532         * modules/unicase/u8-is-lowercase: Likewise.
2533         * modules/unicase/u8-is-titlecase: Likewise.
2534         * modules/unicase/u8-is-uppercase: Likewise.
2535         * modules/unicase/u8-prefix-context: Likewise.
2536         * modules/unicase/u8-suffix-context: Likewise.
2537         * modules/unicase/u8-tolower: Likewise.
2538         * modules/unicase/u8-totitle: Likewise.
2539         * modules/unicase/u8-toupper: Likewise.
2540         * modules/unicase/u16-casecmp: Likewise.
2541         * modules/unicase/u16-casecoll: Likewise.
2542         * modules/unicase/u16-casefold: Likewise.
2543         * modules/unicase/u16-casexfrm: Likewise.
2544         * modules/unicase/u16-ct-casefold: Likewise.
2545         * modules/unicase/u16-ct-tolower: Likewise.
2546         * modules/unicase/u16-ct-totitle: Likewise.
2547         * modules/unicase/u16-ct-toupper: Likewise.
2548         * modules/unicase/u16-is-cased: Likewise.
2549         * modules/unicase/u16-is-casefolded: Likewise.
2550         * modules/unicase/u16-is-lowercase: Likewise.
2551         * modules/unicase/u16-is-titlecase: Likewise.
2552         * modules/unicase/u16-is-uppercase: Likewise.
2553         * modules/unicase/u16-prefix-context: Likewise.
2554         * modules/unicase/u16-suffix-context: Likewise.
2555         * modules/unicase/u16-tolower: Likewise.
2556         * modules/unicase/u16-totitle: Likewise.
2557         * modules/unicase/u16-toupper: Likewise.
2558         * modules/unicase/u32-casecmp: Likewise.
2559         * modules/unicase/u32-casecoll: Likewise.
2560         * modules/unicase/u32-casefold: Likewise.
2561         * modules/unicase/u32-casexfrm: Likewise.
2562         * modules/unicase/u32-ct-casefold: Likewise.
2563         * modules/unicase/u32-ct-tolower: Likewise.
2564         * modules/unicase/u32-ct-totitle: Likewise.
2565         * modules/unicase/u32-ct-toupper: Likewise.
2566         * modules/unicase/u32-is-cased: Likewise.
2567         * modules/unicase/u32-is-casefolded: Likewise.
2568         * modules/unicase/u32-is-lowercase: Likewise.
2569         * modules/unicase/u32-is-titlecase: Likewise.
2570         * modules/unicase/u32-is-uppercase: Likewise.
2571         * modules/unicase/u32-prefix-context: Likewise.
2572         * modules/unicase/u32-suffix-context: Likewise.
2573         * modules/unicase/u32-tolower: Likewise.
2574         * modules/unicase/u32-totitle: Likewise.
2575         * modules/unicase/u32-toupper: Likewise.
2576         * modules/unicase/ulc-casecmp: Likewise.
2577         * modules/unicase/ulc-casecoll: Likewise.
2578         * modules/unicase/ulc-casexfrm: Likewise.
2579         * modules/uniconv/u8-conv-from-enc: Likewise.
2580         * modules/uniconv/u8-conv-to-enc: Likewise.
2581         * modules/uniconv/u8-strconv-from-enc: Likewise.
2582         * modules/uniconv/u8-strconv-from-locale: Likewise.
2583         * modules/uniconv/u8-strconv-to-enc: Likewise.
2584         * modules/uniconv/u8-strconv-to-locale: Likewise.
2585         * modules/uniconv/u16-conv-from-enc: Likewise.
2586         * modules/uniconv/u16-conv-to-enc: Likewise.
2587         * modules/uniconv/u16-strconv-from-enc: Likewise.
2588         * modules/uniconv/u16-strconv-from-locale: Likewise.
2589         * modules/uniconv/u16-strconv-to-enc: Likewise.
2590         * modules/uniconv/u16-strconv-to-locale: Likewise.
2591         * modules/uniconv/u32-conv-from-enc: Likewise.
2592         * modules/uniconv/u32-conv-to-enc: Likewise.
2593         * modules/uniconv/u32-strconv-from-enc: Likewise.
2594         * modules/uniconv/u32-strconv-from-locale: Likewise.
2595         * modules/uniconv/u32-strconv-to-enc: Likewise.
2596         * modules/uniconv/u32-strconv-to-locale: Likewise.
2597         * modules/unictype/bidicategory-byname: Likewise.
2598         * modules/unictype/bidicategory-name: Likewise.
2599         * modules/unictype/bidicategory-of: Likewise.
2600         * modules/unictype/bidicategory-test: Likewise.
2601         * modules/unictype/block-list: Likewise.
2602         * modules/unictype/block-test: Likewise.
2603         * modules/unictype/category-C: Likewise.
2604         * modules/unictype/category-Cc: Likewise.
2605         * modules/unictype/category-Cf: Likewise.
2606         * modules/unictype/category-Cn: Likewise.
2607         * modules/unictype/category-Co: Likewise.
2608         * modules/unictype/category-Cs: Likewise.
2609         * modules/unictype/category-L: Likewise.
2610         * modules/unictype/category-Ll: Likewise.
2611         * modules/unictype/category-Lm: Likewise.
2612         * modules/unictype/category-Lo: Likewise.
2613         * modules/unictype/category-Lt: Likewise.
2614         * modules/unictype/category-Lu: Likewise.
2615         * modules/unictype/category-M: Likewise.
2616         * modules/unictype/category-Mc: Likewise.
2617         * modules/unictype/category-Me: Likewise.
2618         * modules/unictype/category-Mn: Likewise.
2619         * modules/unictype/category-N: Likewise.
2620         * modules/unictype/category-Nd: Likewise.
2621         * modules/unictype/category-Nl: Likewise.
2622         * modules/unictype/category-No: Likewise.
2623         * modules/unictype/category-P: Likewise.
2624         * modules/unictype/category-Pc: Likewise.
2625         * modules/unictype/category-Pd: Likewise.
2626         * modules/unictype/category-Pe: Likewise.
2627         * modules/unictype/category-Pf: Likewise.
2628         * modules/unictype/category-Pi: Likewise.
2629         * modules/unictype/category-Po: Likewise.
2630         * modules/unictype/category-Ps: Likewise.
2631         * modules/unictype/category-S: Likewise.
2632         * modules/unictype/category-Sc: Likewise.
2633         * modules/unictype/category-Sk: Likewise.
2634         * modules/unictype/category-Sm: Likewise.
2635         * modules/unictype/category-So: Likewise.
2636         * modules/unictype/category-Z: Likewise.
2637         * modules/unictype/category-Zl: Likewise.
2638         * modules/unictype/category-Zp: Likewise.
2639         * modules/unictype/category-Zs: Likewise.
2640         * modules/unictype/category-and: Likewise.
2641         * modules/unictype/category-and-not: Likewise.
2642         * modules/unictype/category-byname: Likewise.
2643         * modules/unictype/category-name: Likewise.
2644         * modules/unictype/category-none: Likewise.
2645         * modules/unictype/category-of: Likewise.
2646         * modules/unictype/category-or: Likewise.
2647         * modules/unictype/category-test: Likewise.
2648         * modules/unictype/combining-class: Likewise.
2649         * modules/unictype/ctype-alnum: Likewise.
2650         * modules/unictype/ctype-alpha: Likewise.
2651         * modules/unictype/ctype-blank: Likewise.
2652         * modules/unictype/ctype-cntrl: Likewise.
2653         * modules/unictype/ctype-digit: Likewise.
2654         * modules/unictype/ctype-graph: Likewise.
2655         * modules/unictype/ctype-lower: Likewise.
2656         * modules/unictype/ctype-print: Likewise.
2657         * modules/unictype/ctype-punct: Likewise.
2658         * modules/unictype/ctype-space: Likewise.
2659         * modules/unictype/ctype-upper: Likewise.
2660         * modules/unictype/ctype-xdigit: Likewise.
2661         * modules/unictype/decimal-digit: Likewise.
2662         * modules/unictype/digit: Likewise.
2663         * modules/unictype/mirror: Likewise.
2664         * modules/unictype/numeric: Likewise.
2665         * modules/unictype/property-alphabetic: Likewise.
2666         * modules/unictype/property-ascii-hex-digit: Likewise.
2667         * modules/unictype/property-bidi-arabic-digit: Likewise.
2668         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2669         * modules/unictype/property-bidi-block-separator: Likewise.
2670         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2671         * modules/unictype/property-bidi-common-separator: Likewise.
2672         * modules/unictype/property-bidi-control: Likewise.
2673         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2674         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2675         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2676         * modules/unictype/property-bidi-european-digit: Likewise.
2677         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2678         * modules/unictype/property-bidi-left-to-right: Likewise.
2679         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2680         * modules/unictype/property-bidi-other-neutral: Likewise.
2681         * modules/unictype/property-bidi-pdf: Likewise.
2682         * modules/unictype/property-bidi-segment-separator: Likewise.
2683         * modules/unictype/property-bidi-whitespace: Likewise.
2684         * modules/unictype/property-byname: Likewise.
2685         * modules/unictype/property-combining: Likewise.
2686         * modules/unictype/property-composite: Likewise.
2687         * modules/unictype/property-currency-symbol: Likewise.
2688         * modules/unictype/property-dash: Likewise.
2689         * modules/unictype/property-decimal-digit: Likewise.
2690         * modules/unictype/property-default-ignorable-code-point: Likewise.
2691         * modules/unictype/property-deprecated: Likewise.
2692         * modules/unictype/property-diacritic: Likewise.
2693         * modules/unictype/property-extender: Likewise.
2694         * modules/unictype/property-format-control: Likewise.
2695         * modules/unictype/property-grapheme-base: Likewise.
2696         * modules/unictype/property-grapheme-extend: Likewise.
2697         * modules/unictype/property-grapheme-link: Likewise.
2698         * modules/unictype/property-hex-digit: Likewise.
2699         * modules/unictype/property-hyphen: Likewise.
2700         * modules/unictype/property-id-continue: Likewise.
2701         * modules/unictype/property-id-start: Likewise.
2702         * modules/unictype/property-ideographic: Likewise.
2703         * modules/unictype/property-ids-binary-operator: Likewise.
2704         * modules/unictype/property-ids-trinary-operator: Likewise.
2705         * modules/unictype/property-ignorable-control: Likewise.
2706         * modules/unictype/property-iso-control: Likewise.
2707         * modules/unictype/property-join-control: Likewise.
2708         * modules/unictype/property-left-of-pair: Likewise.
2709         * modules/unictype/property-line-separator: Likewise.
2710         * modules/unictype/property-logical-order-exception: Likewise.
2711         * modules/unictype/property-lowercase: Likewise.
2712         * modules/unictype/property-math: Likewise.
2713         * modules/unictype/property-non-break: Likewise.
2714         * modules/unictype/property-not-a-character: Likewise.
2715         * modules/unictype/property-numeric: Likewise.
2716         * modules/unictype/property-other-alphabetic: Likewise.
2717         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2718         * modules/unictype/property-other-grapheme-extend: Likewise.
2719         * modules/unictype/property-other-id-continue: Likewise.
2720         * modules/unictype/property-other-id-start: Likewise.
2721         * modules/unictype/property-other-lowercase: Likewise.
2722         * modules/unictype/property-other-math: Likewise.
2723         * modules/unictype/property-other-uppercase: Likewise.
2724         * modules/unictype/property-paired-punctuation: Likewise.
2725         * modules/unictype/property-paragraph-separator: Likewise.
2726         * modules/unictype/property-pattern-syntax: Likewise.
2727         * modules/unictype/property-pattern-white-space: Likewise.
2728         * modules/unictype/property-private-use: Likewise.
2729         * modules/unictype/property-punctuation: Likewise.
2730         * modules/unictype/property-quotation-mark: Likewise.
2731         * modules/unictype/property-radical: Likewise.
2732         * modules/unictype/property-sentence-terminal: Likewise.
2733         * modules/unictype/property-soft-dotted: Likewise.
2734         * modules/unictype/property-space: Likewise.
2735         * modules/unictype/property-terminal-punctuation: Likewise.
2736         * modules/unictype/property-test: Likewise.
2737         * modules/unictype/property-titlecase: Likewise.
2738         * modules/unictype/property-unassigned-code-value: Likewise.
2739         * modules/unictype/property-unified-ideograph: Likewise.
2740         * modules/unictype/property-uppercase: Likewise.
2741         * modules/unictype/property-variation-selector: Likewise.
2742         * modules/unictype/property-white-space: Likewise.
2743         * modules/unictype/property-xid-continue: Likewise.
2744         * modules/unictype/property-xid-start: Likewise.
2745         * modules/unictype/property-zero-width: Likewise.
2746         * modules/unictype/scripts: Likewise.
2747         * modules/unictype/syntax-c-ident: Likewise.
2748         * modules/unictype/syntax-c-whitespace: Likewise.
2749         * modules/unictype/syntax-java-ident: Likewise.
2750         * modules/unictype/syntax-java-whitespace: Likewise.
2751         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2752         * modules/unilbrk/u8-width-linebreaks: Likewise.
2753         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2754         * modules/unilbrk/u16-width-linebreaks: Likewise.
2755         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2756         * modules/unilbrk/u32-width-linebreaks: Likewise.
2757         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2758         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2759         * modules/uniname/uniname: Likewise.
2760         * modules/uninorm/canonical-decomposition: Likewise.
2761         * modules/uninorm/composition: Likewise.
2762         * modules/uninorm/decomposing-form: Likewise.
2763         * modules/uninorm/decomposition: Likewise.
2764         * modules/uninorm/filter: Likewise.
2765         * modules/uninorm/nfc: Likewise.
2766         * modules/uninorm/nfd: Likewise.
2767         * modules/uninorm/nfkc: Likewise.
2768         * modules/uninorm/nfkd: Likewise.
2769         * modules/uninorm/u8-normalize: Likewise.
2770         * modules/uninorm/u8-normcmp: Likewise.
2771         * modules/uninorm/u8-normcoll: Likewise.
2772         * modules/uninorm/u8-normxfrm: Likewise.
2773         * modules/uninorm/u16-normalize: Likewise.
2774         * modules/uninorm/u16-normcmp: Likewise.
2775         * modules/uninorm/u16-normcoll: Likewise.
2776         * modules/uninorm/u16-normxfrm: Likewise.
2777         * modules/uninorm/u32-normalize: Likewise.
2778         * modules/uninorm/u32-normcmp: Likewise.
2779         * modules/uninorm/u32-normcoll: Likewise.
2780         * modules/uninorm/u32-normxfrm: Likewise.
2781         * modules/unistdio/u8-asnprintf: Likewise.
2782         * modules/unistdio/u8-asprintf: Likewise.
2783         * modules/unistdio/u8-snprintf: Likewise.
2784         * modules/unistdio/u8-sprintf: Likewise.
2785         * modules/unistdio/u8-u8-asnprintf: Likewise.
2786         * modules/unistdio/u8-u8-asprintf: Likewise.
2787         * modules/unistdio/u8-u8-snprintf: Likewise.
2788         * modules/unistdio/u8-u8-sprintf: Likewise.
2789         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2790         * modules/unistdio/u8-u8-vasprintf: Likewise.
2791         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2792         * modules/unistdio/u8-u8-vsprintf: Likewise.
2793         * modules/unistdio/u8-vasnprintf: Likewise.
2794         * modules/unistdio/u8-vasprintf: Likewise.
2795         * modules/unistdio/u8-vsnprintf: Likewise.
2796         * modules/unistdio/u8-vsprintf: Likewise.
2797         * modules/unistdio/u16-asnprintf: Likewise.
2798         * modules/unistdio/u16-asprintf: Likewise.
2799         * modules/unistdio/u16-snprintf: Likewise.
2800         * modules/unistdio/u16-sprintf: Likewise.
2801         * modules/unistdio/u16-u16-asnprintf: Likewise.
2802         * modules/unistdio/u16-u16-asprintf: Likewise.
2803         * modules/unistdio/u16-u16-snprintf: Likewise.
2804         * modules/unistdio/u16-u16-sprintf: Likewise.
2805         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2806         * modules/unistdio/u16-u16-vasprintf: Likewise.
2807         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2808         * modules/unistdio/u16-u16-vsprintf: Likewise.
2809         * modules/unistdio/u16-vasnprintf: Likewise.
2810         * modules/unistdio/u16-vasprintf: Likewise.
2811         * modules/unistdio/u16-vsnprintf: Likewise.
2812         * modules/unistdio/u16-vsprintf: Likewise.
2813         * modules/unistdio/u32-asnprintf: Likewise.
2814         * modules/unistdio/u32-asprintf: Likewise.
2815         * modules/unistdio/u32-snprintf: Likewise.
2816         * modules/unistdio/u32-sprintf: Likewise.
2817         * modules/unistdio/u32-u32-asnprintf: Likewise.
2818         * modules/unistdio/u32-u32-asprintf: Likewise.
2819         * modules/unistdio/u32-u32-snprintf: Likewise.
2820         * modules/unistdio/u32-u32-sprintf: Likewise.
2821         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2822         * modules/unistdio/u32-u32-vasprintf: Likewise.
2823         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2824         * modules/unistdio/u32-u32-vsprintf: Likewise.
2825         * modules/unistdio/u32-vasnprintf: Likewise.
2826         * modules/unistdio/u32-vasprintf: Likewise.
2827         * modules/unistdio/u32-vsnprintf: Likewise.
2828         * modules/unistdio/u32-vsprintf: Likewise.
2829         * modules/unistdio/ulc-asnprintf: Likewise.
2830         * modules/unistdio/ulc-asprintf: Likewise.
2831         * modules/unistdio/ulc-fprintf: Likewise.
2832         * modules/unistdio/ulc-snprintf: Likewise.
2833         * modules/unistdio/ulc-sprintf: Likewise.
2834         * modules/unistdio/ulc-vasnprintf: Likewise.
2835         * modules/unistdio/ulc-vasprintf: Likewise.
2836         * modules/unistdio/ulc-vfprintf: Likewise.
2837         * modules/unistdio/ulc-vsnprintf: Likewise.
2838         * modules/unistdio/ulc-vsprintf: Likewise.
2839         * modules/unistr/u8-check: Likewise.
2840         * modules/unistr/u8-chr: Likewise.
2841         * modules/unistr/u8-cmp: Likewise.
2842         * modules/unistr/u8-cmp2: Likewise.
2843         * modules/unistr/u8-cpy: Likewise.
2844         * modules/unistr/u8-cpy-alloc: Likewise.
2845         * modules/unistr/u8-endswith: Likewise.
2846         * modules/unistr/u8-mblen: Likewise.
2847         * modules/unistr/u8-mbsnlen: Likewise.
2848         * modules/unistr/u8-mbtouc: Likewise.
2849         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2850         * modules/unistr/u8-mbtoucr: Likewise.
2851         * modules/unistr/u8-move: Likewise.
2852         * modules/unistr/u8-next: Likewise.
2853         * modules/unistr/u8-prev: Likewise.
2854         * modules/unistr/u8-set: Likewise.
2855         * modules/unistr/u8-startswith: Likewise.
2856         * modules/unistr/u8-stpcpy: Likewise.
2857         * modules/unistr/u8-stpncpy: Likewise.
2858         * modules/unistr/u8-strcat: Likewise.
2859         * modules/unistr/u8-strchr: Likewise.
2860         * modules/unistr/u8-strcmp: Likewise.
2861         * modules/unistr/u8-strcoll: Likewise.
2862         * modules/unistr/u8-strcpy: Likewise.
2863         * modules/unistr/u8-strcspn: Likewise.
2864         * modules/unistr/u8-strdup: Likewise.
2865         * modules/unistr/u8-strlen: Likewise.
2866         * modules/unistr/u8-strmblen: Likewise.
2867         * modules/unistr/u8-strmbtouc: Likewise.
2868         * modules/unistr/u8-strncat: Likewise.
2869         * modules/unistr/u8-strncmp: Likewise.
2870         * modules/unistr/u8-strncpy: Likewise.
2871         * modules/unistr/u8-strnlen: Likewise.
2872         * modules/unistr/u8-strpbrk: Likewise.
2873         * modules/unistr/u8-strrchr: Likewise.
2874         * modules/unistr/u8-strspn: Likewise.
2875         * modules/unistr/u8-strstr: Likewise.
2876         * modules/unistr/u8-strtok: Likewise.
2877         * modules/unistr/u8-to-u16: Likewise.
2878         * modules/unistr/u8-to-u32: Likewise.
2879         * modules/unistr/u8-uctomb: Likewise.
2880         * modules/unistr/u16-check: Likewise.
2881         * modules/unistr/u16-chr: Likewise.
2882         * modules/unistr/u16-cmp: Likewise.
2883         * modules/unistr/u16-cmp2: Likewise.
2884         * modules/unistr/u16-cpy: Likewise.
2885         * modules/unistr/u16-cpy-alloc: Likewise.
2886         * modules/unistr/u16-endswith: Likewise.
2887         * modules/unistr/u16-mblen: Likewise.
2888         * modules/unistr/u16-mbsnlen: Likewise.
2889         * modules/unistr/u16-mbtouc: Likewise.
2890         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2891         * modules/unistr/u16-mbtoucr: Likewise.
2892         * modules/unistr/u16-move: Likewise.
2893         * modules/unistr/u16-next: Likewise.
2894         * modules/unistr/u16-prev: Likewise.
2895         * modules/unistr/u16-set: Likewise.
2896         * modules/unistr/u16-startswith: Likewise.
2897         * modules/unistr/u16-stpcpy: Likewise.
2898         * modules/unistr/u16-stpncpy: Likewise.
2899         * modules/unistr/u16-strcat: Likewise.
2900         * modules/unistr/u16-strchr: Likewise.
2901         * modules/unistr/u16-strcmp: Likewise.
2902         * modules/unistr/u16-strcoll: Likewise.
2903         * modules/unistr/u16-strcpy: Likewise.
2904         * modules/unistr/u16-strcspn: Likewise.
2905         * modules/unistr/u16-strdup: Likewise.
2906         * modules/unistr/u16-strlen: Likewise.
2907         * modules/unistr/u16-strmblen: Likewise.
2908         * modules/unistr/u16-strmbtouc: Likewise.
2909         * modules/unistr/u16-strncat: Likewise.
2910         * modules/unistr/u16-strncmp: Likewise.
2911         * modules/unistr/u16-strncpy: Likewise.
2912         * modules/unistr/u16-strnlen: Likewise.
2913         * modules/unistr/u16-strpbrk: Likewise.
2914         * modules/unistr/u16-strrchr: Likewise.
2915         * modules/unistr/u16-strspn: Likewise.
2916         * modules/unistr/u16-strstr: Likewise.
2917         * modules/unistr/u16-strtok: Likewise.
2918         * modules/unistr/u16-to-u32: Likewise.
2919         * modules/unistr/u16-to-u8: Likewise.
2920         * modules/unistr/u16-uctomb: Likewise.
2921         * modules/unistr/u32-check: Likewise.
2922         * modules/unistr/u32-chr: Likewise.
2923         * modules/unistr/u32-cmp: Likewise.
2924         * modules/unistr/u32-cmp2: Likewise.
2925         * modules/unistr/u32-cpy: Likewise.
2926         * modules/unistr/u32-cpy-alloc: Likewise.
2927         * modules/unistr/u32-endswith: Likewise.
2928         * modules/unistr/u32-mblen: Likewise.
2929         * modules/unistr/u32-mbsnlen: Likewise.
2930         * modules/unistr/u32-mbtouc: Likewise.
2931         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2932         * modules/unistr/u32-mbtoucr: Likewise.
2933         * modules/unistr/u32-move: Likewise.
2934         * modules/unistr/u32-next: Likewise.
2935         * modules/unistr/u32-prev: Likewise.
2936         * modules/unistr/u32-set: Likewise.
2937         * modules/unistr/u32-startswith: Likewise.
2938         * modules/unistr/u32-stpcpy: Likewise.
2939         * modules/unistr/u32-stpncpy: Likewise.
2940         * modules/unistr/u32-strcat: Likewise.
2941         * modules/unistr/u32-strchr: Likewise.
2942         * modules/unistr/u32-strcmp: Likewise.
2943         * modules/unistr/u32-strcoll: Likewise.
2944         * modules/unistr/u32-strcpy: Likewise.
2945         * modules/unistr/u32-strcspn: Likewise.
2946         * modules/unistr/u32-strdup: Likewise.
2947         * modules/unistr/u32-strlen: Likewise.
2948         * modules/unistr/u32-strmblen: Likewise.
2949         * modules/unistr/u32-strmbtouc: Likewise.
2950         * modules/unistr/u32-strncat: Likewise.
2951         * modules/unistr/u32-strncmp: Likewise.
2952         * modules/unistr/u32-strncpy: Likewise.
2953         * modules/unistr/u32-strnlen: Likewise.
2954         * modules/unistr/u32-strpbrk: Likewise.
2955         * modules/unistr/u32-strrchr: Likewise.
2956         * modules/unistr/u32-strspn: Likewise.
2957         * modules/unistr/u32-strstr: Likewise.
2958         * modules/unistr/u32-strtok: Likewise.
2959         * modules/unistr/u32-to-u16: Likewise.
2960         * modules/unistr/u32-to-u8: Likewise.
2961         * modules/unistr/u32-uctomb: Likewise.
2962         * modules/uniwbrk/u8-wordbreaks: Likewise.
2963         * modules/uniwbrk/u16-wordbreaks: Likewise.
2964         * modules/uniwbrk/u32-wordbreaks: Likewise.
2965         * modules/uniwbrk/ulc-wordbreaks: Likewise.
2966         * modules/uniwbrk/wordbreak-property: Likewise.
2967         * modules/uniwidth/u8-strwidth: Likewise.
2968         * modules/uniwidth/u8-width: Likewise.
2969         * modules/uniwidth/u16-strwidth: Likewise.
2970         * modules/uniwidth/u16-width: Likewise.
2971         * modules/uniwidth/u32-strwidth: Likewise.
2972         * modules/uniwidth/u32-width: Likewise.
2973         * modules/uniwidth/width: Likewise.
2974         * modules/unicase/cased-tests (Makefile.am): Link all test programs
2975         with $(LIBUNISTRING).
2976         * modules/unicase/ignorable-tests: Likewise.
2977         * modules/unicase/locale-language-tests: Likewise.
2978         * modules/unicase/tolower-tests: Likewise.
2979         * modules/unicase/totitle-tests: Likewise.
2980         * modules/unicase/toupper-tests: Likewise.
2981         * modules/unicase/u8-casecmp-tests: Likewise.
2982         * modules/unicase/u8-casecoll-tests: Likewise.
2983         * modules/unicase/u8-casefold-tests: Likewise.
2984         * modules/unicase/u8-is-cased-tests: Likewise.
2985         * modules/unicase/u8-is-casefolded-tests: Likewise.
2986         * modules/unicase/u8-is-lowercase-tests: Likewise.
2987         * modules/unicase/u8-is-titlecase-tests: Likewise.
2988         * modules/unicase/u8-is-uppercase-tests: Likewise.
2989         * modules/unicase/u8-tolower-tests: Likewise.
2990         * modules/unicase/u8-totitle-tests: Likewise.
2991         * modules/unicase/u8-toupper-tests: Likewise.
2992         * modules/unicase/u16-casecmp-tests: Likewise.
2993         * modules/unicase/u16-casecoll-tests: Likewise.
2994         * modules/unicase/u16-casefold-tests: Likewise.
2995         * modules/unicase/u16-is-cased-tests: Likewise.
2996         * modules/unicase/u16-is-casefolded-tests: Likewise.
2997         * modules/unicase/u16-is-lowercase-tests: Likewise.
2998         * modules/unicase/u16-is-titlecase-tests: Likewise.
2999         * modules/unicase/u16-is-uppercase-tests: Likewise.
3000         * modules/unicase/u16-tolower-tests: Likewise.
3001         * modules/unicase/u16-totitle-tests: Likewise.
3002         * modules/unicase/u16-toupper-tests: Likewise.
3003         * modules/unicase/u32-casecmp-tests: Likewise.
3004         * modules/unicase/u32-casecoll-tests: Likewise.
3005         * modules/unicase/u32-casefold-tests: Likewise.
3006         * modules/unicase/u32-is-cased-tests: Likewise.
3007         * modules/unicase/u32-is-casefolded-tests: Likewise.
3008         * modules/unicase/u32-is-lowercase-tests: Likewise.
3009         * modules/unicase/u32-is-titlecase-tests: Likewise.
3010         * modules/unicase/u32-is-uppercase-tests: Likewise.
3011         * modules/unicase/u32-tolower-tests: Likewise.
3012         * modules/unicase/u32-totitle-tests: Likewise.
3013         * modules/unicase/u32-toupper-tests: Likewise.
3014         * modules/unicase/ulc-casecmp-tests: Likewise.
3015         * modules/unicase/ulc-casecoll-tests: Likewise.
3016         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3017         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3018         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3019         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3020         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3021         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3022         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3023         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3024         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3025         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3026         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3027         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3028         * modules/unictype/bidicategory-byname-tests: Likewise.
3029         * modules/unictype/bidicategory-name-tests: Likewise.
3030         * modules/unictype/bidicategory-of-tests: Likewise.
3031         * modules/unictype/bidicategory-test-tests: Likewise.
3032         * modules/unictype/block-list-tests: Likewise.
3033         * modules/unictype/block-of-tests: Likewise.
3034         * modules/unictype/block-test-tests: Likewise.
3035         * modules/unictype/category-C-tests: Likewise.
3036         * modules/unictype/category-Cc-tests: Likewise.
3037         * modules/unictype/category-Cf-tests: Likewise.
3038         * modules/unictype/category-Cn-tests: Likewise.
3039         * modules/unictype/category-Co-tests: Likewise.
3040         * modules/unictype/category-Cs-tests: Likewise.
3041         * modules/unictype/category-L-tests: Likewise.
3042         * modules/unictype/category-Ll-tests: Likewise.
3043         * modules/unictype/category-Lm-tests: Likewise.
3044         * modules/unictype/category-Lo-tests: Likewise.
3045         * modules/unictype/category-Lt-tests: Likewise.
3046         * modules/unictype/category-Lu-tests: Likewise.
3047         * modules/unictype/category-M-tests: Likewise.
3048         * modules/unictype/category-Mc-tests: Likewise.
3049         * modules/unictype/category-Me-tests: Likewise.
3050         * modules/unictype/category-Mn-tests: Likewise.
3051         * modules/unictype/category-N-tests: Likewise.
3052         * modules/unictype/category-Nd-tests: Likewise.
3053         * modules/unictype/category-Nl-tests: Likewise.
3054         * modules/unictype/category-No-tests: Likewise.
3055         * modules/unictype/category-P-tests: Likewise.
3056         * modules/unictype/category-Pc-tests: Likewise.
3057         * modules/unictype/category-Pd-tests: Likewise.
3058         * modules/unictype/category-Pe-tests: Likewise.
3059         * modules/unictype/category-Pf-tests: Likewise.
3060         * modules/unictype/category-Pi-tests: Likewise.
3061         * modules/unictype/category-Po-tests: Likewise.
3062         * modules/unictype/category-Ps-tests: Likewise.
3063         * modules/unictype/category-S-tests: Likewise.
3064         * modules/unictype/category-Sc-tests: Likewise.
3065         * modules/unictype/category-Sk-tests: Likewise.
3066         * modules/unictype/category-Sm-tests: Likewise.
3067         * modules/unictype/category-So-tests: Likewise.
3068         * modules/unictype/category-Z-tests: Likewise.
3069         * modules/unictype/category-Zl-tests: Likewise.
3070         * modules/unictype/category-Zp-tests: Likewise.
3071         * modules/unictype/category-Zs-tests: Likewise.
3072         * modules/unictype/category-and-not-tests: Likewise.
3073         * modules/unictype/category-and-tests: Likewise.
3074         * modules/unictype/category-byname-tests: Likewise.
3075         * modules/unictype/category-name-tests: Likewise.
3076         * modules/unictype/category-none-tests: Likewise.
3077         * modules/unictype/category-of-tests: Likewise.
3078         * modules/unictype/category-or-tests: Likewise.
3079         * modules/unictype/category-test-withtable-tests: Likewise.
3080         * modules/unictype/combining-class-tests: Likewise.
3081         * modules/unictype/ctype-alnum-tests: Likewise.
3082         * modules/unictype/ctype-alpha-tests: Likewise.
3083         * modules/unictype/ctype-blank-tests: Likewise.
3084         * modules/unictype/ctype-cntrl-tests: Likewise.
3085         * modules/unictype/ctype-digit-tests: Likewise.
3086         * modules/unictype/ctype-graph-tests: Likewise.
3087         * modules/unictype/ctype-lower-tests: Likewise.
3088         * modules/unictype/ctype-print-tests: Likewise.
3089         * modules/unictype/ctype-punct-tests: Likewise.
3090         * modules/unictype/ctype-space-tests: Likewise.
3091         * modules/unictype/ctype-upper-tests: Likewise.
3092         * modules/unictype/ctype-xdigit-tests: Likewise.
3093         * modules/unictype/decimal-digit-tests: Likewise.
3094         * modules/unictype/digit-tests: Likewise.
3095         * modules/unictype/mirror-tests: Likewise.
3096         * modules/unictype/numeric-tests: Likewise.
3097         * modules/unictype/property-alphabetic-tests: Likewise.
3098         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3099         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3100         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3101         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3102         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3103         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3104         * modules/unictype/property-bidi-control-tests: Likewise.
3105         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3106         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3107         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3108         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3109         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3110         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3111         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3112         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3113         * modules/unictype/property-bidi-pdf-tests: Likewise.
3114         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3115         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3116         * modules/unictype/property-byname-tests: Likewise.
3117         * modules/unictype/property-combining-tests: Likewise.
3118         * modules/unictype/property-composite-tests: Likewise.
3119         * modules/unictype/property-currency-symbol-tests: Likewise.
3120         * modules/unictype/property-dash-tests: Likewise.
3121         * modules/unictype/property-decimal-digit-tests: Likewise.
3122         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3123         * modules/unictype/property-deprecated-tests: Likewise.
3124         * modules/unictype/property-diacritic-tests: Likewise.
3125         * modules/unictype/property-extender-tests: Likewise.
3126         * modules/unictype/property-format-control-tests: Likewise.
3127         * modules/unictype/property-grapheme-base-tests: Likewise.
3128         * modules/unictype/property-grapheme-extend-tests: Likewise.
3129         * modules/unictype/property-grapheme-link-tests: Likewise.
3130         * modules/unictype/property-hex-digit-tests: Likewise.
3131         * modules/unictype/property-hyphen-tests: Likewise.
3132         * modules/unictype/property-id-continue-tests: Likewise.
3133         * modules/unictype/property-id-start-tests: Likewise.
3134         * modules/unictype/property-ideographic-tests: Likewise.
3135         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3136         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3137         * modules/unictype/property-ignorable-control-tests: Likewise.
3138         * modules/unictype/property-iso-control-tests: Likewise.
3139         * modules/unictype/property-join-control-tests: Likewise.
3140         * modules/unictype/property-left-of-pair-tests: Likewise.
3141         * modules/unictype/property-line-separator-tests: Likewise.
3142         * modules/unictype/property-logical-order-exception-tests: Likewise.
3143         * modules/unictype/property-lowercase-tests: Likewise.
3144         * modules/unictype/property-math-tests: Likewise.
3145         * modules/unictype/property-non-break-tests: Likewise.
3146         * modules/unictype/property-not-a-character-tests: Likewise.
3147         * modules/unictype/property-numeric-tests: Likewise.
3148         * modules/unictype/property-other-alphabetic-tests: Likewise.
3149         * modules/unictype/property-other-default-ignorable-code-point-tests:
3150         Likewise.
3151         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3152         * modules/unictype/property-other-id-continue-tests: Likewise.
3153         * modules/unictype/property-other-id-start-tests: Likewise.
3154         * modules/unictype/property-other-lowercase-tests: Likewise.
3155         * modules/unictype/property-other-math-tests: Likewise.
3156         * modules/unictype/property-other-uppercase-tests: Likewise.
3157         * modules/unictype/property-paired-punctuation-tests: Likewise.
3158         * modules/unictype/property-paragraph-separator-tests: Likewise.
3159         * modules/unictype/property-pattern-syntax-tests: Likewise.
3160         * modules/unictype/property-pattern-white-space-tests: Likewise.
3161         * modules/unictype/property-private-use-tests: Likewise.
3162         * modules/unictype/property-punctuation-tests: Likewise.
3163         * modules/unictype/property-quotation-mark-tests: Likewise.
3164         * modules/unictype/property-radical-tests: Likewise.
3165         * modules/unictype/property-sentence-terminal-tests: Likewise.
3166         * modules/unictype/property-soft-dotted-tests: Likewise.
3167         * modules/unictype/property-space-tests: Likewise.
3168         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3169         * modules/unictype/property-test-tests: Likewise.
3170         * modules/unictype/property-titlecase-tests: Likewise.
3171         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3172         * modules/unictype/property-unified-ideograph-tests: Likewise.
3173         * modules/unictype/property-uppercase-tests: Likewise.
3174         * modules/unictype/property-variation-selector-tests: Likewise.
3175         * modules/unictype/property-white-space-tests: Likewise.
3176         * modules/unictype/property-xid-continue-tests: Likewise.
3177         * modules/unictype/property-xid-start-tests: Likewise.
3178         * modules/unictype/property-zero-width-tests: Likewise.
3179         * modules/unictype/scripts-tests: Likewise.
3180         * modules/unictype/syntax-c-ident-tests: Likewise.
3181         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3182         * modules/unictype/syntax-java-ident-tests: Likewise.
3183         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3184         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3185         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3186         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3187         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3188         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3189         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3190         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3191         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3192         * modules/uniname/uniname-tests: Likewise.
3193         * modules/uninorm/canonical-decomposition-tests: Likewise.
3194         * modules/uninorm/compat-decomposition-tests: Likewise.
3195         * modules/uninorm/composition-tests: Likewise.
3196         * modules/uninorm/decomposing-form-tests: Likewise.
3197         * modules/uninorm/decomposition-tests: Likewise.
3198         * modules/uninorm/filter-tests: Likewise.
3199         * modules/uninorm/nfc-tests: Likewise.
3200         * modules/uninorm/nfd-tests: Likewise.
3201         * modules/uninorm/nfkc-tests: Likewise.
3202         * modules/uninorm/nfkd-tests: Likewise.
3203         * modules/uninorm/u8-normcmp-tests: Likewise.
3204         * modules/uninorm/u8-normcoll-tests: Likewise.
3205         * modules/uninorm/u16-normcmp-tests: Likewise.
3206         * modules/uninorm/u16-normcoll-tests: Likewise.
3207         * modules/uninorm/u32-normcmp-tests: Likewise.
3208         * modules/uninorm/u32-normcoll-tests: Likewise.
3209         * modules/unistdio/u8-asnprintf-tests: Likewise.
3210         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3211         * modules/unistdio/u8-vasprintf-tests: Likewise.
3212         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3213         * modules/unistdio/u8-vsprintf-tests: Likewise.
3214         * modules/unistdio/u16-asnprintf-tests: Likewise.
3215         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3216         * modules/unistdio/u16-vasprintf-tests: Likewise.
3217         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3218         * modules/unistdio/u16-vsprintf-tests: Likewise.
3219         * modules/unistdio/u32-asnprintf-tests: Likewise.
3220         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3221         * modules/unistdio/u32-vasprintf-tests: Likewise.
3222         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3223         * modules/unistdio/u32-vsprintf-tests: Likewise.
3224         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3225         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3226         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3227         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3228         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3229         * modules/unistr/u8-check-tests: Likewise.
3230         * modules/unistr/u8-chr-tests: Likewise.
3231         * modules/unistr/u8-cmp-tests: Likewise.
3232         * modules/unistr/u8-cmp2-tests: Likewise.
3233         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3234         * modules/unistr/u8-cpy-tests: Likewise.
3235         * modules/unistr/u8-mblen-tests: Likewise.
3236         * modules/unistr/u8-mbsnlen-tests: Likewise.
3237         * modules/unistr/u8-mbtouc-tests: Likewise.
3238         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3239         * modules/unistr/u8-mbtoucr-tests: Likewise.
3240         * modules/unistr/u8-move-tests: Likewise.
3241         * modules/unistr/u8-next-tests: Likewise.
3242         * modules/unistr/u8-prev-tests: Likewise.
3243         * modules/unistr/u8-set-tests: Likewise.
3244         * modules/unistr/u8-stpcpy-tests: Likewise.
3245         * modules/unistr/u8-stpncpy-tests: Likewise.
3246         * modules/unistr/u8-strcat-tests: Likewise.
3247         * modules/unistr/u8-strcmp-tests: Likewise.
3248         * modules/unistr/u8-strcoll-tests: Likewise.
3249         * modules/unistr/u8-strcpy-tests: Likewise.
3250         * modules/unistr/u8-strdup-tests: Likewise.
3251         * modules/unistr/u8-strlen-tests: Likewise.
3252         * modules/unistr/u8-strmblen-tests: Likewise.
3253         * modules/unistr/u8-strmbtouc-tests: Likewise.
3254         * modules/unistr/u8-strncat-tests: Likewise.
3255         * modules/unistr/u8-strncmp-tests: Likewise.
3256         * modules/unistr/u8-strncpy-tests: Likewise.
3257         * modules/unistr/u8-strnlen-tests: Likewise.
3258         * modules/unistr/u8-to-u16-tests: Likewise.
3259         * modules/unistr/u8-to-u32-tests: Likewise.
3260         * modules/unistr/u8-uctomb-tests: Likewise.
3261         * modules/unistr/u16-check-tests: Likewise.
3262         * modules/unistr/u16-chr-tests: Likewise.
3263         * modules/unistr/u16-cmp-tests: Likewise.
3264         * modules/unistr/u16-cmp2-tests: Likewise.
3265         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3266         * modules/unistr/u16-cpy-tests: Likewise.
3267         * modules/unistr/u16-mblen-tests: Likewise.
3268         * modules/unistr/u16-mbsnlen-tests: Likewise.
3269         * modules/unistr/u16-mbtouc-tests: Likewise.
3270         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3271         * modules/unistr/u16-mbtoucr-tests: Likewise.
3272         * modules/unistr/u16-move-tests: Likewise.
3273         * modules/unistr/u16-next-tests: Likewise.
3274         * modules/unistr/u16-prev-tests: Likewise.
3275         * modules/unistr/u16-set-tests: Likewise.
3276         * modules/unistr/u16-stpcpy-tests: Likewise.
3277         * modules/unistr/u16-stpncpy-tests: Likewise.
3278         * modules/unistr/u16-strcat-tests: Likewise.
3279         * modules/unistr/u16-strcmp-tests: Likewise.
3280         * modules/unistr/u16-strcoll-tests: Likewise.
3281         * modules/unistr/u16-strcpy-tests: Likewise.
3282         * modules/unistr/u16-strdup-tests: Likewise.
3283         * modules/unistr/u16-strlen-tests: Likewise.
3284         * modules/unistr/u16-strmblen-tests: Likewise.
3285         * modules/unistr/u16-strmbtouc-tests: Likewise.
3286         * modules/unistr/u16-strncat-tests: Likewise.
3287         * modules/unistr/u16-strncmp-tests: Likewise.
3288         * modules/unistr/u16-strncpy-tests: Likewise.
3289         * modules/unistr/u16-strnlen-tests: Likewise.
3290         * modules/unistr/u16-to-u32-tests: Likewise.
3291         * modules/unistr/u16-to-u8-tests: Likewise.
3292         * modules/unistr/u16-uctomb-tests: Likewise.
3293         * modules/unistr/u32-check-tests: Likewise.
3294         * modules/unistr/u32-chr-tests: Likewise.
3295         * modules/unistr/u32-cmp-tests: Likewise.
3296         * modules/unistr/u32-cmp2-tests: Likewise.
3297         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3298         * modules/unistr/u32-cpy-tests: Likewise.
3299         * modules/unistr/u32-mblen-tests: Likewise.
3300         * modules/unistr/u32-mbsnlen-tests: Likewise.
3301         * modules/unistr/u32-mbtouc-tests: Likewise.
3302         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3303         * modules/unistr/u32-mbtoucr-tests: Likewise.
3304         * modules/unistr/u32-move-tests: Likewise.
3305         * modules/unistr/u32-next-tests: Likewise.
3306         * modules/unistr/u32-prev-tests: Likewise.
3307         * modules/unistr/u32-set-tests: Likewise.
3308         * modules/unistr/u32-stpcpy-tests: Likewise.
3309         * modules/unistr/u32-stpncpy-tests: Likewise.
3310         * modules/unistr/u32-strcat-tests: Likewise.
3311         * modules/unistr/u32-strcmp-tests: Likewise.
3312         * modules/unistr/u32-strcoll-tests: Likewise.
3313         * modules/unistr/u32-strcpy-tests: Likewise.
3314         * modules/unistr/u32-strdup-tests: Likewise.
3315         * modules/unistr/u32-strlen-tests: Likewise.
3316         * modules/unistr/u32-strmblen-tests: Likewise.
3317         * modules/unistr/u32-strmbtouc-tests: Likewise.
3318         * modules/unistr/u32-strncat-tests: Likewise.
3319         * modules/unistr/u32-strncmp-tests: Likewise.
3320         * modules/unistr/u32-strncpy-tests: Likewise.
3321         * modules/unistr/u32-strnlen-tests: Likewise.
3322         * modules/unistr/u32-to-u16-tests: Likewise.
3323         * modules/unistr/u32-to-u8-tests: Likewise.
3324         * modules/unistr/u32-uctomb-tests: Likewise.
3325         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3326         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3327         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3328         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3329         * modules/uniwidth/u8-strwidth-tests: Likewise.
3330         * modules/uniwidth/u8-width-tests: Likewise.
3331         * modules/uniwidth/u16-strwidth-tests: Likewise.
3332         * modules/uniwidth/u16-width-tests: Likewise.
3333         * modules/uniwidth/u32-strwidth-tests: Likewise.
3334         * modules/uniwidth/u32-width-tests: Likewise.
3335         * modules/uniwidth/width-tests: Likewise.
3336
3337 2010-05-18  Richard Jones  <rjones@redhat.com>
3338
3339         doc: users.txt: list hivex
3340         * users.txt: Add hivex.
3341
3342 2010-05-18  Richard Jones  <rjones@redhat.com>
3343
3344         doc: users.txt: list febootstrap
3345         * users.txt: Add febootstrap.
3346
3347 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3348
3349         bootstrap: fix an error when gnulib is not used as a git submodule
3350         * build-aux/bootstrap (gnulib_path): If its length is zero then
3351         assign "gnulib" to it.
3352         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3353
3354 2010-05-16  Bruno Haible  <bruno@clisp.org>
3355
3356         Avoid autoconf warnings about AM_ICONV.
3357         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3358         2.64.
3359
3360 2010-05-16  Bruno Haible  <bruno@clisp.org>
3361
3362         absolute-header: Make the macro usable in more situations.
3363         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3364         from gl_ABSOLUTE_HEADER.
3365         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3366
3367 2010-05-16  James Youngman  <jay@gnu.org>
3368
3369         doc: update users.txt
3370         * users.txt: Add CSSC.
3371
3372 2010-05-16  Jim Meyering  <meyering@redhat.com>
3373
3374         init.sh: fix an error in the previous change; add more comments
3375         * tests/init.sh: Compare exit code in loop against 9, not 2.
3376         Patch by Bruno Haible.
3377         Make the two tests more similar by adding an empty "then" clause.
3378         Add comments.
3379
3380         init.sh: avoid unnecessary shell re-exec
3381         * tests/init.sh: Improve the re-exec-required check to first test the
3382         current shell.  If it passes the test, do not search for a shell that
3383         does pass, and do not re-exec.  This test is particularly contorted to
3384         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3385         of $(...) evokes a syntax error and causes immediate shell exit with
3386         status 2.  Bruno Haible reported that the re-exec made it impossible
3387         to single-step through any init.sh-using script.
3388
3389 2010-05-16  Bruno Haible  <bruno@clisp.org>
3390
3391         Fix collision between gnulib's and libintl's printf replacements.
3392         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3393         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3394         (printf): When using GNU C, map the __printf__ function to rpl_printf
3395         via __asm__. When not using GNU C, define rpl_printf instead of
3396         __printf__.
3397         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3398         commit.
3399         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3400         commit.
3401         * m4/asm-underscore.m4: New file.
3402         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3403         * modules/stdio (Files): Add m4/asm-underscore.m4.
3404         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3405         Reported by Ben Pfaff.
3406
3407 2010-05-16  Bruno Haible  <bruno@clisp.org>
3408
3409         verify: Avoid skipping the test on openSUSE 11.0.
3410         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3411
3412 2010-05-13  Bruno Haible  <bruno@clisp.org>
3413
3414         Avoid useless warnings from G++.
3415         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3416         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3417         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3418
3419 2010-05-11  Jim Meyering  <meyering@redhat.com>
3420
3421         maint.mk: tweak preceding change
3422         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3423         regexps tighter by anchoring at EOL, and make the new group "shy"
3424         for slightly decreased overhead.
3425
3426 2010-05-11  Eric Blake  <eblake@redhat.com>
3427
3428         maint.mk: gnulib doesn't guarantee NSIG
3429         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3430
3431 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3432
3433         test-pwrite.c: Remove unused variable declaration.
3434         * tests/test-pwrite.c (main): Remove read_buf declaration.
3435
3436         Remove useless test-pwrite.sh file.
3437         * tests/test-pwrite.sh: Delete file.
3438         * modules/pwrite-tests: Remove references.
3439         Reported by Bruno Haible.
3440
3441 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3442
3443         init.sh: fix a typo
3444         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3445
3446 2010-05-10  Jim Meyering  <meyering@redhat.com>
3447
3448         maint.mk: avoid using a temporary file in the always-defined-macros check
3449         * top/maint.mk (.re-defmac): Remove rule.
3450         (gl_trap_): Remove definition.
3451         (sc_prohibit_always-defined_macros): Rewrite not to create and
3452         depend on a temporary file.  Instead, depend on GNU grep's ability
3453         to read a list of regular expressions from stdin when given "-f -".
3454
3455 2010-05-09  Bruno Haible  <bruno@clisp.org>
3456
3457         Update to GNU gettext 0.18, part 1.
3458         * m4/gettext.m4: Update to GNU gettext 0.18.
3459         * m4/intl.m4: Likewise.
3460         * m4/po.m4: Likewise.
3461         * modules/gettext (Files): Add m4/fcntl-o.m4.
3462         (configure.ac): Require gettext infrastructure from version 0.18.
3463
3464 2010-05-09  Jim Meyering  <meyering@redhat.com>
3465
3466         init.sh: enable MALLOC_PERTURB_
3467         * tests/init.sh: Enable glibc's malloc-perturbing option.
3468
3469         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3470         With my recent change in init.sh from the two-line form:
3471             -#   : ${srcdir=.}
3472             -#   . "$srcdir/init.sh"; path_prepend_ .
3473             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3474         I noticed that using the one-line form would cause this test
3475         to fail with a false-positive, or to stop working altogether,
3476         depending on whether help-version changed or all the tests did.
3477         * top/maint.mk (_hv_regex): Remove this definition.
3478         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3479         (_hv_regex_strong): Use a stronger regex to check for conformance.
3480         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3481         Give a separate diagnostic for lack of conforming use.
3482
3483         maint.mk: prohibit definition of symbols defined by gnulib
3484         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3485         definition of symbols defined by gnulib.
3486
3487 2010-05-09  Bruno Haible  <bruno@clisp.org>
3488
3489         acl: Avoid test failure on Cygwin-hosted mingw.
3490         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3491
3492 2010-05-09  Bruno Haible  <bruno@clisp.org>
3493
3494         error: Use system's fcntl function.
3495         * lib/error.c (fcntl): Undefine.
3496
3497 2010-05-09  Jim Meyering  <meyering@redhat.com>
3498
3499         verify: adjust formatting to be more consistent
3500         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3501         argument-list '('s, and after one comma.
3502
3503 2010-05-09  Bruno Haible  <bruno@clisp.org>
3504
3505         error: More reliable output on mingw.
3506         * lib/error.c: Include <windows.h>.
3507         (is_open): New function.
3508         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3509         defined.
3510
3511 2010-05-09  Bruno Haible  <bruno@clisp.org>
3512
3513         vasnprintf: Fix syntax errors in libintl build on mingw.
3514         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3515         pad_ourselves and prec_ourselves after use.
3516
3517 2010-05-08  Bruno Haible  <bruno@clisp.org>
3518
3519         * lib/config.charset: Update comments for Cygwin 1.7.
3520         * lib/localcharset.c: Likewise.
3521
3522 2010-05-07  Jim Meyering  <meyering@redhat.com>
3523
3524         init.sh: improve comments
3525         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3526         . "${srcdir=.}/init.sh"; path_prepend_ .
3527         Add a note about path_prepend_ and the alternative of using
3528         TESTS_ENVIRONMENT.
3529
3530 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3531
3532         exclude: Unescape hashed patterns in wildcard mode.
3533         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3534         to the hash list.
3535         * tests/test-exclude8.sh: New test case.
3536         * modules/exclude-tests: Add new test.
3537
3538 2010-05-05  Eric Blake  <eblake@redhat.com>
3539
3540         verify: automate tests
3541         * modules/verify-tests: New module.
3542         * tests/test-verify.sh: New file.
3543         * tests/test-verify.c: Guard each negative test with a unique id.
3544         Also avoid warning about unused left hand of comma expressions.
3545
3546 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3547
3548         Further improvements to verify.h, suggested by Eric Blake.
3549         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3550         the GL_* versions, to avoid collision with OpenGL.
3551         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3552         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3553         than testing merely whether it's defined.
3554
3555         Modify verify.h to pacify gcc -Wredundant_decls.
3556         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3557         These use the prefix "GL_" since they're likely to be useful elsewhere.
3558         We may need to break them out into a different .h file.
3559         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3560         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3561         of verify_function__.
3562
3563 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3564
3565         Tests for module pwrite.
3566         * modules/pwrite-tests: New file.
3567         * tests/test-pwrite.sh: New file.
3568         * tests/test-pwrite.c: New file.
3569
3570         New module pwrite.
3571         * lib/unistd.in.h (pwrite): New declaration.
3572         * lib/pwrite.c: New file, from glibc with modifications.
3573         * m4/pwrite.m4: New file.
3574         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3575         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3576         REPLACE_PWRITE.
3577         * modules/pwrite: New file.
3578         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3579         REPLACE_PWRITE.
3580         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3581         * doc/posix-functions/pwrite.texi: Mention the new module.
3582
3583 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3584
3585         pread: Update documentation.
3586         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3587
3588 2010-05-04  Eric Blake  <eblake@redhat.com>
3589
3590         docs: update cygwin progress
3591         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3592         this bug.
3593         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3594         Added in cygwin 1.7.2.
3595         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3596         Likewise.
3597         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3598         Likewise.
3599         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3600         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3601         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3602         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3603         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3604         Mention nproc module.
3605         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3606         bug in cygwin 1.7.5 addition.
3607         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3608         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3609         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3610         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3611         1.7.5.
3612         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3613         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3614         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3615         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3616         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3617         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3618         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3619         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3620         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3621         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3622         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3623         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3624         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3625         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3626         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3627         Likewise.
3628         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3629         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3630         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3631         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3632         Likewise.
3633         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3634         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3635         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3636         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3637         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3638         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3639         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3640         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3641         Likewise.
3642         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3643         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3644         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3645         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3646         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3647         Likewise.
3648         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3649         Likewise.
3650         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3651         Likewise.
3652         * doc/glibc-functions/xdrrec_endofrecord.texi
3653         (xdrrec_endofrecord): Likewise.
3654         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3655         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3656         Likewise.
3657         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3658         Likewise.
3659
3660 2010-05-04  Jim Meyering  <meyering@redhat.com>
3661
3662         gendocs.sh: make its "-s FILE" option more useful
3663         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3664         $PACKAGE to reflect the probably-different basename of "FILE".
3665
3666 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3667
3668         bootstrap: don't ignore download_po_files failure
3669         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3670         failure.
3671
3672 2010-05-03  Jim Meyering  <meyering@redhat.com>
3673
3674         maint.mk: allow to pass options to gendocs.sh
3675         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3676         (gendocs_options_): New overridable variable.
3677
3678         gnu-web-doc-update: don't ignore configure or build failure
3679         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3680
3681         announce-gen: backslash-escape '@'s in --help output
3682         * build-aux/announce-gen: Fix syntax errors.
3683
3684         maint.mk, announce-gen: allow project-specific announcement mail headers
3685         * top/maint.mk (translation_project_): Define default.
3686         (announcement_Cc_, announcement_mail_headers_): Likewise.
3687         (announcement): Invoke announce-gen with new --mail-headers option.
3688         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3689
3690         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3691         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3692         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3693         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3694         line in the "err2" output file when running "make check" in verbose
3695         mode (i.e., with set -x enabled).
3696
3697 2010-05-03  Bruno Haible  <bruno@clisp.org>
3698
3699         wctob: Fix for weird platforms.
3700         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3701         argument value.
3702
3703 2010-05-03  Jim Meyering  <meyering@redhat.com>
3704
3705         maint.mk: prohibit unwarranted use of <strings.h>
3706         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3707         strings.h in a file that does not also use strcasecmp, strncasecmp,
3708         ffs or ffsll.
3709
3710         maint.mk: remove obsolete comments
3711         * top/maint.mk: Remove stale, commented-out rules.
3712
3713 2010-05-02  Bruno Haible  <bruno@clisp.org>
3714
3715         wcwidth: Declare also when it's aliased.
3716         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3717         macro.
3718
3719 2010-05-02  Bruno Haible  <bruno@clisp.org>
3720
3721         Fix regression from 2010-04-25.
3722         * gnulib-tool (func_modules_transitive_closure): Check the status of
3723         all modules, not only of the tests that are of the form foo-tests where
3724         foo is a module.
3725
3726 2010-05-02  Bruno Haible  <bruno@clisp.org>
3727
3728         wctob: Work around nasty Cygwin 1.7.2 bug.
3729         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3730         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3731
3732 2010-05-01  Bruno Haible  <bruno@clisp.org>
3733
3734         fpurge: Sharper test.
3735         * tests/test-fpurge.c (main): Add one more ftell check.
3736         * modules/fpurge-tests (Depends-on): Add ftell.
3737         Suggested by Eric Blake.
3738
3739 2010-05-01  Bruno Haible  <bruno@clisp.org>
3740
3741         ftello: Another test.
3742         * tests/test-ftello3.c: New file.
3743         * modules/ftello-tests (Files): Add it.
3744         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3745         MOSTLYCLEANFILES.
3746
3747         ftell: Another test.
3748         * tests/test-ftell3.c: New file.
3749         * modules/ftell-tests (Files): Add it.
3750         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3751         MOSTLYCLEANFILES.
3752
3753 2010-05-01  Bruno Haible  <bruno@clisp.org>
3754
3755         ftell, ftello: Work around Solaris bug.
3756         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3757         * lib/ftello.c: Include stdio-impl.h.
3758         (ftello): On Solaris, when _IOWRT is set, compute the result without
3759         looking at _IOREAD.
3760         * modules/ftello (Files): Add lib/stdio-impl.h.
3761         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3762         * doc/posix-functions/ftello.texi: Likewise.
3763         Reported by Eric Blake.
3764
3765 2010-05-01  Bruno Haible  <bruno@clisp.org>
3766
3767         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3768         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3769         the _IOWRT flag is also set.
3770
3771 2010-05-01  Bruno Haible  <bruno@clisp.org>
3772
3773         Fix doc about a HP-UX stdio bug.
3774         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3775         * doc/posix-functions/ftello.texi: Likewise.
3776
3777 2010-05-01  Bruno Haible  <bruno@clisp.org>
3778
3779         lseek test: Fix failure on Solaris.
3780         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3781         output.
3782
3783 2010-04-30  Jim Meyering  <meyering@redhat.com>
3784
3785         bootstrap: don't ignore failure to generate po*/Makevars
3786         * build-aux/bootstrap (with_gettext): Don't ignore failure
3787         to create po/Makevars or runtime-po/Makevars.
3788
3789 2010-04-29  Eric Blake  <eblake@redhat.com>
3790
3791         headers: relax license to LGPLv2+
3792         * modules/fcntl-h (License): Relax license.
3793         * modules/getopt-posix (License): Likewise.
3794         * modules/locale (License): Likewise.
3795         * modules/math (License): Likewise.
3796         * modules/pty (License): Likewise.
3797         * modules/sched (License): Likewise.
3798         * modules/search (License): Likewise.
3799         * modules/spawn (License): Likewise.
3800         * modules/stdarg (License): Likewise.
3801         * modules/sysexits (License): Likewise.
3802
3803 2010-04-29  Jim Meyering  <meyering@redhat.com>
3804
3805         inttypes: relax license to LGPLv2+
3806         * modules/inttypes (License): Relax license.
3807
3808 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3809
3810         * top/maint.mk (indent): Run twice to produce idempotent results.
3811
3812 2010-04-28  Bruno Haible  <bruno@clisp.org>
3813
3814         getdate: Generate getdate.c in the source directory.
3815         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3816         MOSTLYCLEANFILES.
3817         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3818
3819 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3820
3821         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3822         is not declared as a const *; avoid warnings in that case.
3823
3824 2010-04-28  Eric Blake  <eblake@redhat.com>
3825
3826         canonicalize-lgpl: avoid compiler warning
3827         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3828         declaration' / 'extraneous semicolon' warning with some compilers.
3829         Reported by Andreas Gruenbacher.
3830
3831 2010-04-28  Jim Meyering  <meyering@redhat.com>
3832
3833         init.sh: ensure a more reliable exit status when exiting via trap
3834         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3835         Inspired by patches from Dmitry V. Levin.
3836         Also trap on signal 3 (SIGQUIT).
3837
3838 2010-04-27  Bruno Haible  <bruno@clisp.org>
3839
3840         Update doc about utimes().
3841         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3842         'utimens' module.
3843         Reported by Andreas Gruenbacher <agruen@suse.de>.
3844
3845 2010-04-27  Eric Blake  <eblake@redhat.com>
3846
3847         full-read, full-write: relax license
3848         * modules/full-read (License): Drop to LGPLv2+.
3849         * modules/full-write (License): Likewise.
3850         * modules/safe-read (License): Likewise.
3851         * modules/safe-write (License): Likewise.
3852
3853         pthread: mention library for linking
3854         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3855
3856 2010-04-27  Jim Meyering  <meyering@redhat.com>
3857
3858         maint.mk: fix a bug introduced in last change
3859         * top/maint.mk (gl_assured_headers_): Now that all names are on
3860         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3861         is not anchored to end of word, it should be adequate.
3862
3863         maint.mk: avoid side-effect in latest syntax-check
3864         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3865         to run commands via $(shell...), and hence to incur cost only when
3866         the new rule is actually run.
3867
3868         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3869         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3870         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3871         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3872         (gl_assured_headers_, az_, AZ_): Define.
3873         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3874
3875 2010-04-26  Jim Meyering  <jim@meyering.net>
3876             Bruno Haible  <bruno@clisp.org>
3877
3878         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3879         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3880         Prompted by an exchange with Gilles Espinasse.
3881
3882 2010-04-26  Jim Meyering  <meyering@redhat.com>
3883
3884         git-version-gen: aesthetic tweak
3885         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3886         so that the command remains on a single line.
3887
3888 2010-04-26  Eric Blake  <eblake@redhat.com>
3889
3890         git-version-gen: allow use on EBCDIC hosts
3891         * build-aux/git-version-gen (dirty): Use literal rather than tying
3892         ourselves to ascii.
3893         Reported by Steve Goetze.
3894
3895 2010-04-25  Bruno Haible  <bruno@clisp.org>
3896
3897         netdb: Add support for GNULIB_POSIXCHECK.
3898         * lib/netdb.in.h: Include warn-on-use.h.
3899         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3900         functions are used when GNULIB_POSIXCHECK is defined and the
3901         getaddrinfo module is not in use.
3902         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3903         freeaddrinfo, gai_strerror, getnameinfo are declared.
3904         * modules/netdb (Depends-on): Add warn-on-use.
3905         (Makefile.am): Include warn-on-use.h in netdb.h.
3906
3907 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3908
3909         build: avoid "make check" failure without .git/ directory
3910         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3911         there is no .git/ directory.
3912
3913 2010-04-25  Bruno Haible  <bruno@clisp.org>
3914
3915         ptsname: Fix misuse of ttyname_r.
3916         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3917         of errno.
3918
3919 2010-04-25  Bruno Haible  <bruno@clisp.org>
3920
3921         ttyname_r: Make it work on Solaris 10.
3922         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3923         if the system function has the POSIX declaration. Test whether the
3924         function fails if the buffer is less than 128 bytes large.
3925         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3926         system's ttyname_r function. Provide a reasonably large buffer.
3927         * modules/ttyname_r (Depends-on): Add extensions.
3928         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3929
3930 2010-04-25  Bruno Haible  <bruno@clisp.org>
3931
3932         Use the 'extensions' module for some more functions on Solaris.
3933         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3934         module.
3935         * doc/posix-functions/ctime_r.texi: Likewise.
3936         * doc/posix-functions/getgrgid_r.texi: Likewise.
3937         * doc/posix-functions/getgrnam_r.texi: Likewise.
3938         * doc/posix-functions/getpwnam_r.texi: Likewise.
3939         * doc/posix-functions/getpwuid_r.texi: Likewise.
3940         * doc/posix-functions/readdir_r.texi: Likewise.
3941         * doc/posix-functions/sigwait.texi: Likewise.
3942         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3943         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3944
3945 2010-04-25  Bruno Haible  <bruno@clisp.org>
3946
3947         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3948         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3949         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3950         * lib/ttyname_r.c: Include <limits.h>.
3951         (ttyname_r): Define using the system's ttyname_r function, if it exists
3952         and not on Solaris.
3953         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3954         set.
3955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3956         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
3957         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
3958         Reported by Simon Josefsson.
3959
3960 2010-04-25  Bruno Haible  <bruno@clisp.org>
3961
3962         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
3963         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
3964         * doc/posix-functions/ctime_r.texi: Likewise.
3965         * doc/posix-functions/getgrgid_r.texi: Likewise.
3966         * doc/posix-functions/getgrnam_r.texi: Likewise.
3967         * doc/posix-functions/getlogin_r.texi: Likewise.
3968         * doc/posix-functions/getpwnam_r.texi: Likewise.
3969         * doc/posix-functions/getpwuid_r.texi: Likewise.
3970         * doc/posix-functions/readdir_r.texi: Likewise.
3971         * doc/posix-functions/sigwait.texi: Likewise.
3972         * doc/posix-functions/ttyname_r.texi: Likewise.
3973         Reported by Simon Josefsson.
3974
3975 2010-04-25  Bruno Haible  <bruno@clisp.org>
3976
3977         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
3978         * gnulib-tool (func_usage): Document that --with-*-tests options apply
3979         also to --create-testdir.
3980         (func_acceptable): Don't consider the status of *-tests modules here.
3981         (func_modules_transitive_closure): Consider it here, before including a
3982         test module.
3983         (func_import, func_create_testdir): Set inc_all_direct_tests,
3984         inc_all_indirect_tests.
3985         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
3986         --create-testdir and --create-megatestdir.
3987
3988 2010-04-25  Bruno Haible  <bruno@clisp.org>
3989
3990         gnulib-tool: Add --without-*-tests options.
3991         * gnulib-tool (func_usage): Document the --without-*-tests options.
3992         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
3993         excl_unportable_tests): New variables.
3994         Fail if they are specified with --import or --update.
3995         (func_acceptable): Respect the excl_*_tests variables.
3996         (func_import): Set the excl_*_tests variables to empty.
3997
3998 2010-04-25  Simon Josefsson  <simon@josefsson.org>
3999             Bruno Haible  <bruno@clisp.org>
4000
4001         Work around a MacOS X 10.4 bug with openpty.
4002         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4003         * tests/test-openpty.c (main): Close the master side explicitly.
4004
4005 2010-04-25  Bruno Haible  <bruno@clisp.org>
4006
4007         strnlen: Fix a C++ test error on MacOS X and Solaris.
4008         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4009         the function is not declared.
4010         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4011         Simon Josefsson.
4012
4013 2010-04-24  Bruno Haible  <bruno@clisp.org>
4014
4015         Avoid a gcc warning.
4016         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4017         of correct type for %08lx directive.
4018         Reported by Eric Blake.
4019
4020 2010-04-24  Bruno Haible  <bruno@clisp.org>
4021
4022         vasnprintf: Correct errno value in case of out-of-memory.
4023         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4024         or sprintf. Use the errno value from SNPRINTF or sprintf.
4025         Reported by Ian Beckwith <ianb@erislabs.net>.
4026
4027 2010-04-24  Bruno Haible  <bruno@clisp.org>
4028
4029         ansi-c++-opt: Find correct compiler when cross-compiling.
4030         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4031         AC_CHECK_PROGS.
4032         Reported by Simon Josefsson.
4033
4034 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4035
4036         vc-list-files: Add support for subversion
4037         * build-aux/vc-list-files: Use "svn list" to generate the list of
4038         files controlled by subversion.
4039
4040 2010-04-23  Jim Meyering  <meyering@redhat.com>
4041
4042         vc-list-files tests: convert to use init.sh
4043         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4044         path_prepend_.
4045         Use Exit, not exit.
4046         Use skip_ rather than open coding it.
4047         Remove trap set-up and compare definitions.
4048         * tests/test-vc-list-files-git.sh: Likewise.
4049         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4050
4051 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4052
4053         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4054         backup files.
4055
4056 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4057
4058         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4059
4060 2010-04-20  Eric Blake  <eblake@redhat.com>
4061
4062         tests: be robust to ignored SIGPIPE
4063         * tests/test-select-in.sh: Consume all output.
4064         * tests/test-lseek.sh: Check correct exit status, while avoiding
4065         EPIPE.
4066
4067 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4068             Bruno Haible  <bruno@clisp.org>
4069
4070         visibility: Don't use -fvisibility if it leads to a warning.
4071         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4072         yes, don't pretend that visibility works if it leads to a warning.
4073         Reported by Mike Gran <spk121@yahoo.com>.
4074
4075 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4076
4077         * build-aux/bootstrap: Use "git -h" for testing for supported options
4078         instead of "git --help".  The short-form option only shows a summary,
4079         and doesn't layout the full man page.  Grep for the full option name
4080         in the summary, too.
4081
4082 2010-04-19  Bruno Haible  <bruno@clisp.org>
4083
4084         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4085         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4086         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4087         mention of RELOCATABLE_STRIP.
4088         Reported by Sylvain Beucler <beuc@beuc.net>.
4089
4090 2010-04-19  Bruno Haible  <bruno@clisp.org>
4091
4092         * lib/diffseq.h: Fix typo in comment.
4093         Reported by Eric Blake.
4094
4095 2010-04-19  Bruno Haible  <bruno@clisp.org>
4096
4097         ioctl: Move autoconf macro to a .m4 file.
4098         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4099         * modules/ioctl (Files): Add it.
4100         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4101         Reported by Ian Beckwith <ianb@erislabs.net>.
4102
4103 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4104             Bruno Haible  <bruno@clisp.org>
4105
4106         diffseq: Accommodate use-case with abstract arrays.
4107         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4108         is not defined.
4109         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4110         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4111
4112 2010-04-18  Bruno Haible  <bruno@clisp.org>
4113
4114         * doc/posix-headers/stdbool.texi: More precise wording.
4115
4116 2010-04-17  Jim Meyering  <meyering@redhat.com>
4117
4118         maint.mk: use gnu-style indentation in an embedded perl script
4119         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4120         Rename variable: s/two/last_two_bytes/
4121
4122 2010-04-16  Eric Blake  <eblake@redhat.com>
4123
4124         test-stdbool: skip test that fails with Solaris CC
4125         * tests/test-stdbool.c (f): Skip test that causes compilation
4126         error under buggy C++ compiler.
4127         * lib/stdbool.in.h: Document the limitation.
4128         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4129
4130         setenv: allow compilation with C++
4131         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4132         register keyword.
4133
4134         stdint: allow test to pass with C++
4135         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4136
4137         getopt: allow compilation with C++
4138         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4139         struct.
4140         * lib/getopt.c (_getopt_internal_r): Use correct type.
4141         Reported by Dagobert Michelson, via Joel E. Denny.
4142
4143 2010-04-16  Bruno Haible  <bruno@clisp.org>
4144
4145         Override netdb.h always.
4146         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4147         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4148         Reported by Ludovic Courtès <ludo@gnu.org>.
4149
4150 2010-04-15  Bruno Haible  <bruno@clisp.org>
4151
4152         openpty: Fix mistake from 2010-03-21.
4153         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4154         Reported by Simon Josefsson.
4155
4156 2010-04-15  Eric Blake  <eblake@redhat.com>
4157
4158         test-forkpty: fix expected signature
4159         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4160         Reported by Simon Josefsson.
4161
4162 2010-04-15  Jim Meyering  <meyering@redhat.com>
4163
4164         maint.mk: texinfo_suffix_re_: correct the default regexp
4165         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4166
4167         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4168         make it configurable via texinfo_suffix_re_.
4169
4170 2010-04-14  Eric Blake  <eblake@redhat.com>
4171
4172         strtok_r: relax license to LGPLv2+
4173         * modules/strtok_r (License): Relax license.
4174         Reported by Matthias Bolte.
4175
4176 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4177
4178         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4179         version 1.4.4 by default instead of requiring the libgcrypt
4180         version used during build.  This makes it possible to use the
4181         application with older but still binary compatible libgcrypt
4182         versions.
4183
4184 2010-04-13  Eric Blake  <eblake@redhat.com>
4185
4186         getopt-gnu: match recent glibc fixes and posix ruling
4187         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4188         '+' handling, when requesting extensions.
4189         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4190         'W;' handling.
4191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4192         * doc/posix-functions/getopt.texi (getopt): Document this.
4193         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4194         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4195         Likewise.
4196
4197         getopt: merge bug fixes from glibc
4198         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4199         diagnostics.  Honor '+:' correctly.  Reject ';'.
4200
4201         getopt-posix: detect MacOS bug
4202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4203         optind when missing a required argument.
4204         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4205         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4206         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4207         Likewise.
4208
4209         getopt-posix: avoid spurious failure on Solaris
4210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4211         an indicator that setting optind=1 is sufficient for reset.
4212
4213         getopt-posix: avoid spurious failure on FreeBSD
4214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4215         in POSIX mode, since the m4 test uses it.
4216
4217         gnulib-tool: silence warning on BSD sh
4218         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4219
4220 2010-04-13  Jim Meyering  <meyering@redhat.com>
4221
4222         doc: users.txt: GNU patch now uses gnulib
4223         * users.txt: Add patch.
4224
4225 2010-04-12  Jim Meyering  <meyering@redhat.com>
4226
4227         maint.mk: generate more concise timing data for syntax-check rules
4228         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4229         " done" from each line that reports a syntax-check test duration.
4230
4231 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4232
4233         git-version-gen: use "git update-index..." rather than "git status"
4234         * build-aux/git-version-gen: Use git update-index --refresh, not
4235         "git status".  With some versions of git, "git status" would fail
4236         to update the index and result in an unwarranted "-dirty" suffix.
4237
4238 2010-04-11  Jim Meyering  <meyering@redhat.com>
4239
4240         openat: correct formatting (no semantic change)
4241         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4242         Suggested by Bruno Haible.
4243
4244 2010-04-11  Bruno Haible  <bruno@clisp.org>
4245
4246         Stricter declaration checking in testdirs.
4247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4248         If for_tests is true, augment AM_CPPFLAGS to define
4249         GNULIB_STRICT_CHECKING.
4250         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4251         GNULIB_STRICT_CHECKING is defined, verify that the function is
4252         declared.
4253
4254 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4255             Bruno Haible  <bruno@clisp.org>
4256
4257         libunistring: Improve configure output.
4258         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4259         Don't say "consider installing GNU libunistring" when checking again
4260         with libiconv.
4261
4262 2010-04-11  Bruno Haible  <bruno@clisp.org>
4263
4264         libunistring: Correct value of $LTLIBUNISTRING.
4265         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4266         correct the value of $LTLIBUNISTRING.
4267
4268 2010-04-11  Bruno Haible  <bruno@clisp.org>
4269
4270         havelib: Add static libraries to LIBS in the right order.
4271         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4272         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4273
4274 2010-04-11  Bruno Haible  <bruno@clisp.org>
4275
4276         libunistring: Detect libunistring also when it depends on libiconv.
4277         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4278         the second AC_LIB_HAVE_LINKFLAGS invocation.
4279
4280 2010-04-11  James Youngman  <jay@gnu.org>
4281
4282         close-stream: declare local scalars to be "const"
4283         * lib/close-stream.c (close_stream): Make boolean variables const
4284         to document the fact that we set but do not change them.
4285
4286 2010-04-11  Bruno Haible  <bruno@clisp.org>
4287
4288         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4289
4290 2010-04-11  Jim Meyering  <meyering@redhat.com>
4291
4292         maint.mk: don't include dist-check.mk
4293         * top/maint.mk: Remove bogus include directive.
4294
4295         maint.mk: improve empty-line-at-EOF check
4296         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4297         solution, rather than tail+Perl-based one.  The latter would read
4298         a few kilobytes from the end of each file, and did not handle empty
4299         files properly.
4300
4301         maint.mk: print the elapsed time for each syntax-check rule
4302         * top/maint.mk (sc_m_rules_): Save start time in a file.
4303         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4304         (local-check): Interpose the .z rules
4305
4306 2010-04-11  Jim Meyering  <meyering@redhat.com>
4307
4308         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4309         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4310         empty file with one that ends in an empty line.
4311
4312 2010-04-10  Bruno Haible  <bruno@clisp.org>
4313
4314         mkdir: Make it work on mingw64.
4315         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4316         * lib/mkdir.c: Update comment.
4317         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4318
4319 2010-04-10  Bruno Haible  <bruno@clisp.org>
4320
4321         Don't override improved macro from newer autoconf.
4322         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4323         autoconf >= 2.62.
4324         Reported by Joel E. Denny <jdenny@clemson.edu>.
4325
4326 2010-04-10  Jim Meyering  <meyering@redhat.com>
4327
4328         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4329         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4330
4331         maint.mk: correct a diagnostic
4332         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4333         in diagnostic; now use $prohibit.
4334
4335 2010-04-10  Bruno Haible  <address@hidden>
4336
4337         fchownat: Fix a C++ test error on Solaris 8.
4338         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4339         the function does not exist.
4340
4341 2010-04-10  Bruno Haible  <bruno@clisp.org>
4342
4343         vasnprintf: Add more tests.
4344         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4345         (test_function): Test converting an invalid wide string.
4346
4347         vasnprintf: Correct handling of unconvertible wide string arguments.
4348         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4349         VASNPRINTF.
4350         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4351         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4352         smaller than the expected maximum need for the directive. Set errno to
4353         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4354         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4356         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4357         * modules/vasnprintf (Files): Add m4/printf.m4.
4358         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4359
4360 2010-04-10  Bruno Haible  <bruno@clisp.org>
4361
4362         vasnprintf: Fix crash in %ls directive.
4363         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4364         string is passed as argument to %ls, with no precision and no width.
4365         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4366
4367 2010-04-10  Bruno Haible  <bruno@clisp.org>
4368
4369         vasnprintf: Fix multiple test failures on mingw.
4370         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4371         _snprintf, or snwprintf, not _snwprintf.
4372
4373 2010-04-10  Bruno Haible  <bruno@clisp.org>
4374
4375         write: Fix a C++ test error on mingw.
4376         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4377
4378 2010-04-10  Bruno Haible  <bruno@clisp.org>
4379
4380         vasnprintf test: Reduce code duplication.
4381         * tests/test-vasnprintf.c (test_function): New function, extracted from
4382         test_vasnprintf.
4383         (test_vasnprintf, test_asnprintf): Invoke it.
4384
4385 2010-04-10  Bruno Haible  <bruno@clisp.org>
4386
4387         strnlen: Fix warning in C++ mode on MacOS X.
4388         * lib/string.in.h (strnlen): Use the modern idiom.
4389         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4390         defining strnlen as a macro already in <config.h>.
4391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4392         REPLACE_STRNLEN.
4393         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4394         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4395
4396 2010-04-08  James Youngman  <jay@gnu.org>
4397
4398         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4399         the example.
4400
4401 2010-04-09  Jim Meyering  <meyering@redhat.com>
4402
4403         maint.mk: print better diagnostic when there is no $(_hv_file)
4404         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4405         announce that when $(_hv_file) (aka help-version) does not exist.
4406
4407         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4408         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4409         not try to interpret its random input bytes.  Jarno Rajahalme reported
4410         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4411         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4412         (mktempd_): Likewise, just in case.
4413
4414         ftruncate: add two years to projected module removal date: 2012
4415         * m4/ftruncate.m4: Adjust comments.
4416
4417         ftruncate: mark module as obsolete; even MinGW provides it, now
4418         * modules/ftruncate (Status): Obsolete.
4419         (Notice): Say that.
4420         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4421         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4422
4423 2010-04-08  Bruno Haible  <bruno@clisp.org>
4424
4425         Fix side effects from tests-related modules.
4426         * modules/dprintf-posix (Comment): New section.
4427         * modules/fprintf-posix (Comment): Likewise.
4428         * modules/obstack-printf-posix (Comment): Likewise.
4429         * modules/printf-posix (Comment): Likewise.
4430         * modules/snprintf-posix (Comment): Likewise.
4431         * modules/sprintf-posix (Comment): Likewise.
4432         * modules/vasnprintf-posix (Comment): Likewise.
4433         * modules/vasprintf-posix (Comment): Likewise.
4434         * modules/vdprintf-posix (Comment): Likewise.
4435         * modules/vfprintf-posix (Comment): Likewise.
4436         * modules/vprintf-posix (Comment): Likewise.
4437         * modules/vsnprintf-posix (Comment): Likewise.
4438         * modules/vsprintf-posix (Comment): Likewise.
4439         * modules/xprintf-posix (Comment): Likewise.
4440         * modules/xvasprintf-posix (Comment): Likewise.
4441         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4442         * modules/floorf-tests (Depends-on): Likewise.
4443         * modules/round-tests (Depends-on): Likewise.
4444         * modules/roundf-tests (Depends-on): Likewise.
4445         * modules/trunc-tests (Depends-on): Likewise.
4446         * modules/truncf-tests (Depends-on): Likewise.
4447         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4448         'fprintf-posix' module is not present.
4449         * tests/test-floorf2.c (check): Likewise.
4450         * tests/test-trunc2.c (check): Likewise.
4451         * tests/test-truncf2.c (check): Likewise.
4452         * tests/test-round2.c (equal): Likewise.
4453         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4454
4455 2010-04-07  Karl Berry  <karl@gnu.org>
4456
4457         * config/srclist.txt,
4458         * config/srclistvars.sh,
4459         * config/srclist-update: doc fixes.
4460
4461 2010-04-07  Jim Meyering  <meyering@redhat.com>
4462
4463         maint.mk: add a PATH crosschecking syntax-check rule
4464         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4465         Useful if you use a test like the one in help-version (coreutils,
4466         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4467         printed by prog --version.
4468
4469 2010-04-06  Bruno Haible  <bruno@clisp.org>
4470
4471         Fix link error on mingw.
4472         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4473         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4474
4475 2010-04-06  Bruno Haible  <bruno@clisp.org>
4476
4477         Assume rmdir exists.
4478         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4479
4480 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4481
4482         doc: update users.txt
4483         * users.txt: Add gcal.
4484
4485 2010-04-06  Jim Meyering  <meyering@redhat.com>
4486
4487         init.sh: simply unset TMPDIR rather than risking env -i
4488         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4489         although it probably works fine on all Unix-based systems, some
4490         systems (Cygwin?) cannot tolerate a totally cleared environment.
4491         Suggestion from Eric Blake.
4492
4493 2010-04-06  Jim Meyering  <meyering@redhat.com>
4494
4495         init.sh: portability fix: use env's POSIX-specified -i option not -u
4496         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4497         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4498
4499 2010-04-05  Bruno Haible  <bruno@clisp.org>
4500
4501         btowc: Work around Cygwin 1.7.2 bug.
4502         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4503         does not map NUL to 0.
4504         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4505
4506 2010-04-05  Bruno Haible  <bruno@clisp.org>
4507
4508         Make the multithread modules work on Cygwin 1.7.2.
4509         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4510         imported symbols can be declared weak, so that it returns "no" on
4511         Cygwin 1.7.2.
4512
4513 2010-04-05  Bruno Haible  <bruno@clisp.org>
4514
4515         Use the module 'strncat'.
4516         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4517
4518         Tests for module 'strncat'.
4519         * modules/strncat-tests: New file.
4520         * tests/test-strncat.c: New file.
4521
4522         New module 'strncat'.
4523         * lib/string.in.h (strncat): New declaration.
4524         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4525         * m4/strncat.m4: New file, based on m4/memchr.m4.
4526         * modules/strncat: New file.
4527         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4528         is declared.
4529         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4530         REPLACE_STRNCAT.
4531         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4532         REPLACE_STRNCAT.
4533         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4534         module.
4535         * tests/test-string-c++.cc: Check signature of strncat.
4536
4537 2010-04-05  Jim Meyering  <meyering@redhat.com>
4538
4539         xstrtoumax-tests: convert to use init.sh
4540         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4541         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4542         Use Exit, not exit.
4543         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4544
4545         xstrtoimax-tests: convert to use init.sh
4546         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4547         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4548         Use Exit, not exit.
4549         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4550
4551 2010-04-05  Bruno Haible  <bruno@clisp.org>
4552
4553         sys_socket: Avoid #define replacements in C++ mode.
4554         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4555         warning to the function if possible, rather than #defining the symbol
4556         to a dysfunctional alias.
4557
4558 2010-04-05  Bruno Haible  <bruno@clisp.org>
4559
4560         fseeko: Fix C++ test error on mingw.
4561         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4562         gl_FUNC_FSEEKO.
4563         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4564         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4565         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4566         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4567
4568 2010-04-05  Bruno Haible  <bruno@clisp.org>
4569
4570         duplocale: Improve test output.
4571         * tests/test-duplocale.c (main): Print reason for skipped test.
4572
4573 2010-04-05  Bruno Haible  <bruno@clisp.org>
4574
4575         Assume rmdir exists.
4576         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4577         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4578
4579 2010-04-05  Bruno Haible  <bruno@clisp.org>
4580
4581         Fix link error on Solaris 8 with cc.
4582         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4583
4584 2010-04-05  Bruno Haible  <bruno@clisp.org>
4585
4586         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4587         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4588
4589 2010-04-05  Bruno Haible  <bruno@clisp.org>
4590
4591         vasprintf: Update documentation.
4592         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4593
4594 2010-04-05  Bruno Haible  <bruno@clisp.org>
4595
4596         ptsname: Improve test.
4597         * tests/test-ptsname.c (main): Also try the various master names of BSD
4598         systems.
4599
4600 2010-04-05  Bruno Haible  <bruno@clisp.org>
4601
4602         memchr: Avoid a possible C++ test error.
4603         * lib/string.in.h (memchr): Provide declaration if function is missing.
4604         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4605         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4607         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4608
4609 2010-04-05  Bruno Haible  <bruno@clisp.org>
4610
4611         strtok_r: Improve idiom.
4612         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4613         AC_LIBOBJ is used.
4614
4615 2010-04-05  Bruno Haible  <bruno@clisp.org>
4616
4617         strdup: Improve idiom.
4618         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4619         AC_LIBOBJ is used.
4620         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4621         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4622         when AC_LIBOBJ is used.
4623
4624 2010-04-05  Bruno Haible  <bruno@clisp.org>
4625
4626         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4627         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4628         don't set REPLACE_MBSINIT to 1.
4629         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4630         don't set REPLACE_MBRTOWC to 1.
4631         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4632         exist, don't set REPLACE_MBSRTOWCS to 1.
4633         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4634         exist, don't set REPLACE_MBSNRTOWCS to 1.
4635         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4636         don't set REPLACE_WCRTOMB to 1.
4637         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4638         exist, don't set REPLACE_WCSRTOMBS to 1.
4639         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4640         exist, don't set REPLACE_WCSNRTOMBS to 1.
4641
4642 2010-04-05  Bruno Haible  <bruno@clisp.org>
4643
4644         ldexpl: Improve idiom.
4645         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4646         make sure to set HAVE_DECL_LDEXPL to 0.
4647
4648 2010-04-05  Jim Meyering  <meyering@redhat.com>
4649
4650         xstrtol-tests: convert to use init.sh
4651         * modules/xstrtol-tests (Files): Add tests/init.sh.
4652         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4653         Use Exit, not exit.
4654         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4655
4656         atexit-tests: convert to use init.sh
4657         * modules/atexit-tests (Files): Add tests/init.sh.
4658         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4659         Use Exit, not exit.
4660         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4661
4662         init.sh: fix typo
4663         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4664
4665         init.sh: make it easier for a test script to write to the tty, ...
4666         when using automake's parallel-tests mode.
4667         * tests/init.sh (stderr_fileno_): Define overridable variable.
4668         (warn_): New function, to use it.
4669         (fail_, skip_, framework_failure_): Use warn_.
4670
4671 2010-04-04  Bruno Haible  <bruno@clisp.org>
4672
4673         btowc: Avoid warning.
4674         * lib/btowc.c: Include <stdlib.h>.
4675         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4676
4677 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4678             Bruno Haible  <bruno@clisp.org>
4679
4680         wchar: Port to NetBSD 1.5.
4681         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4682         * lib/wctype.in.h (WEOF): Likewise.
4683
4684 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4685             Bruno Haible  <bruno@clisp.org>
4686
4687         Port extended stdio to NetBSD 1.5.
4688         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4689         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4690         older.
4691
4692 2010-04-04  Bruno Haible  <bruno@clisp.org>
4693
4694         string: Remove unused substitution.
4695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4696         HAVE_DECL_STRERROR.
4697         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4698
4699 2010-04-04  Bruno Haible  <bruno@clisp.org>
4700
4701         strtod: Avoid a possible C++ test error.
4702         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4703         set REPLACE_STRTOD.
4704
4705 2010-04-04  Bruno Haible  <bruno@clisp.org>
4706
4707         strerror: Update documentation.
4708         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4709
4710 2010-04-04  Bruno Haible  <bruno@clisp.org>
4711
4712         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4713         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4714         _GL_CXXALIAS_SYS_CAST.
4715
4716 2010-04-04  Bruno Haible  <bruno@clisp.org>
4717
4718         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4719         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4720         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4721         REPLACE_FREXPL to 1.
4722         * doc/posix-functions/frexpl.texi: Update documentation.
4723
4724 2010-04-04  Bruno Haible  <bruno@clisp.org>
4725
4726         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4727         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4728
4729 2010-04-04  Bruno Haible  <bruno@clisp.org>
4730
4731         Implement nanosleep for native Windows.
4732         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4733
4734 2010-04-04  Bruno Haible  <bruno@clisp.org>
4735
4736         math: Fix some C++ test errors on Solaris 8.
4737         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4738
4739 2010-04-04  Bruno Haible  <bruno@clisp.org>
4740
4741         math: Fix some C++ test errors on Cygwin.
4742         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4743         truncl): Provide declaration if the system does not have it.
4744         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4745         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4746         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4747         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4748         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4749         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4750         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4751         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4752         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4753         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4754         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4755         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4756         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4757         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4758         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4759         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4761         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4762         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4763         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4764         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4765         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4766
4767 2010-04-04  Bruno Haible  <bruno@clisp.org>
4768
4769         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4770         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4771         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4772         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4773         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4774         * m4/isinf.m4 (gl_ISINF): Likewise.
4775         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4776
4777 2010-04-04  Bruno Haible  <bruno@clisp.org>
4778
4779         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4780         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4781
4782 2010-04-04  Bruno Haible  <bruno@clisp.org>
4783
4784         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4785         * modules/tmpfile (configure.ac): Update.
4786
4787         tmpfile: Fix C++ test error on mingw.
4788         * lib/stdio.in.h (tmpfile): New declaration.
4789         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4790         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4791         * modules/tmpfile (Depends-on): Add stdio.
4792         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4793         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4794         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4795         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4796         REPLACE_TMPFILE.
4797         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4798
4799 2010-04-04  Bruno Haible  <bruno@clisp.org>
4800
4801         ioctl: Fix C++ test error on mingw.
4802         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4803         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4804         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4805
4806 2010-04-03  Bruno Haible  <bruno@clisp.org>
4807
4808         wcwidth: Fix C++ test error on mingw.
4809         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4811         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4812
4813 2010-04-03  Bruno Haible  <bruno@clisp.org>
4814
4815         nanosleep: Fix C++ test error on mingw.
4816         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4817         * lib/time.in.h (nanosleep): Use modern idiom.
4818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4819         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4820         REPLACE_NANOSLEEP to 1.
4821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4822         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4823
4824 2010-04-03  Bruno Haible  <bruno@clisp.org>
4825
4826         strptime: Fix C++ test error on mingw.
4827         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4828         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4829         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4830         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4831         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4832         not REPLACE_STRPTIME.
4833         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4834         REPLACE_STRPTIME.
4835
4836 2010-04-03  Bruno Haible  <bruno@clisp.org>
4837
4838         timegm: Fix C++ test error on mingw.
4839         * lib/time.in.h (timegm): Use modern idiom.
4840         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4841         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4843         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4844
4845 2010-04-03  Bruno Haible  <bruno@clisp.org>
4846
4847         timegm: Assume declaration if function exists.
4848         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4849         if it exists. Don't clobber ac_cv_func_timegm.
4850
4851 2010-04-03  Bruno Haible  <bruno@clisp.org>
4852
4853         time_r: Fix C++ test error on mingw.
4854         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4855         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4856         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4858         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4859
4860 2010-04-03  Bruno Haible  <bruno@clisp.org>
4861
4862         time_r: Minor updates.
4863         * modules/time_r (Description): Mention the provided functions.
4864         * lib/time_r.c: Don't include <string.h>.
4865         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4866         * doc/posix-functions/localtime_r.texi: Likewise.
4867
4868 2010-04-03  Bruno Haible  <bruno@clisp.org>
4869
4870         time: Fix regression introduced on 2010-03-08.
4871         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4872         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4873
4874 2010-04-03  Jim Meyering  <meyering@redhat.com>
4875
4876         maint.mk: don't silently disable project-specific syntax-check rules
4877         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4878         that they need to convert their project-specific syntax-check rules
4879         to use the new _sc_search_regexp.
4880
4881 2010-04-03  Bruno Haible  <bruno@clisp.org>
4882
4883         fchdir: Fix regression introduced on 2010-03-08.
4884         * lib/unistd.in.h (fchdir): Fix declaration.
4885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4887         REPLACE_FCHDIR.
4888         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4889         REPLACE_FCHDIR.
4890
4891 2010-04-03  Bruno Haible  <bruno@clisp.org>
4892
4893         getpagesize: Fix C++ test error on mingw.
4894         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4895         system does not declare the function.
4896         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4897         declared.
4898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4899         HAVE_DECL_GETPAGESIZE.
4900         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4901
4902 2010-04-03  Bruno Haible  <bruno@clisp.org>
4903
4904         stdio: Make C++ tests work on mingw.
4905         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4906         does not declare the function.
4907
4908 2010-04-03  Bruno Haible  <bruno@clisp.org>
4909
4910         ftello: Fix C++ test error on mingw.
4911         * lib/stdio.in.h (ftello): Use modern idiom.
4912         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4913         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4914         is missing and that it needs to be replaced.
4915         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4917         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4918
4919 2010-04-03  Bruno Haible  <bruno@clisp.org>
4920
4921         fseeko: Fix C++ test error on mingw.
4922         * lib/stdio.in.h (fseeko): Use modern idiom.
4923         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4924         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4925         is missing and that it needs to be replaced.
4926         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4928         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4929
4930 2010-04-03  Bruno Haible  <bruno@clisp.org>
4931
4932         mkstemp: Fix C++ test error on mingw.
4933         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4934         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4935         function is missing and that it needs to be replaced.
4936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4937         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4938
4939 2010-04-03  Bruno Haible  <bruno@clisp.org>
4940
4941         stpncpy: Fix C++ test error on mingw.
4942         * lib/string.in.h (stpncpy): Use modern idiom.
4943         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4944         function is missing and that it needs to be replaced.
4945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4946         REPLACE_STPNCPY.
4947         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4948
4949 2010-04-03  Bruno Haible  <bruno@clisp.org>
4950
4951         sys_stat: Fix C++ test error on mingw.
4952         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4953         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4954
4955 2010-04-03  Bruno Haible  <bruno@clisp.org>
4956
4957         pty: Update doc.
4958         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
4959
4960 2010-04-03  Bruno Haible  <bruno@clisp.org>
4961
4962         unistd: Fix C++ test error on mingw.
4963         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
4964
4965 2010-04-03  Bruno Haible  <bruno@clisp.org>
4966
4967         Update doc regarding mingw.
4968         * doc/glibc-functions/openpty.texi: Update regarding mingw.
4969         * doc/glibc-functions/login_tty.texi: Likewise.
4970         * doc/glibc-functions/forkpty.texi: Likewise.
4971
4972 2010-04-03  Bruno Haible  <bruno@clisp.org>
4973
4974         stdlib: Avoid compilation failure of c-strtold on mingw.
4975         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
4976
4977 2010-04-03  Bruno Haible  <bruno@clisp.org>
4978
4979         locale: Make C++ tests work on Cygwin and mingw.
4980         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
4981         cannot provide the function.
4982         Reported by Simon Josefsson.
4983
4984 2010-04-03  Bruno Haible  <bruno@clisp.org>
4985
4986         localename: Port to MacOS X 10.6.
4987         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
4988         memory layout of the locales in MacOS X 10.6 as well.
4989         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
4990
4991 2010-04-02  Bruno Haible  <bruno@clisp.org>
4992
4993         gnulib-tool: Ensure that long-running tests are executed last.
4994         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
4995         running tests after the one for the other tests.
4996
4997 2010-04-02  Bruno Haible  <bruno@clisp.org>
4998
4999         gnulib-tool: Ensure the tests in the main directory are executed first.
5000         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5001         start with the current directory.
5002
5003 2010-04-02  Bruno Haible  <bruno@clisp.org>
5004
5005         Tests for module 'havelib', moved here from GNU gettext.
5006         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5007         modifications.
5008         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5009         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5010         with modifications.
5011         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5012         modifications.
5013         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5014         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5015         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5016         with modifications.
5017         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5018         with modifications.
5019         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5020         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5021         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5022         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5023         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5024         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5025         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5026         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5027         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5028         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5029         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5030         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5031         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5032         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5033         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5034         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5035         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5036         with modifications.
5037         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5038         with modifications.
5039         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5040         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5041         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5042         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5043         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5044         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5045         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5046         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5047         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5048         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5049         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5050         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5051         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5052         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5053         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5054         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5055         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5056         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5057         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5058         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5059         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5060         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5061         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5062         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5063         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5064         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5065         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5066         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5067         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5068         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5069         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5070         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5071         * tests/havelib/rpathx/rpathx.c: New file, from
5072         gettext/autoconf-lib-link.
5073         * tests/havelib/rpathx/Makefile.am: New file, from
5074         gettext/autoconf-lib-link.
5075         * tests/havelib/rpathx/configure.ac: New file, from
5076         gettext/autoconf-lib-link with modifications.
5077         * tests/havelib/rpathy/rpathy.c: New file, from
5078         gettext/autoconf-lib-link.
5079         * tests/havelib/rpathy/Makefile.am: New file, from
5080         gettext/autoconf-lib-link.
5081         * tests/havelib/rpathy/configure.ac: New file, from
5082         gettext/autoconf-lib-link with modifications.
5083         * tests/havelib/rpathz/rpathz.c: New file, from
5084         gettext/autoconf-lib-link.
5085         * tests/havelib/rpathz/Makefile.am: New file, from
5086         gettext/autoconf-lib-link.
5087         * tests/havelib/rpathz/configure.ac: New file, from
5088         gettext/autoconf-lib-link with modifications.
5089         * tests/havelib/rpathlx/usex.c: New file, from
5090         gettext/autoconf-lib-link.
5091         * tests/havelib/rpathlx/Makefile.am: New file, from
5092         gettext/autoconf-lib-link.
5093         * tests/havelib/rpathlx/configure.ac: New file, from
5094         gettext/autoconf-lib-link with modifications.
5095         * tests/havelib/rpathly/usey.c: New file, from
5096         gettext/autoconf-lib-link.
5097         * tests/havelib/rpathly/Makefile.am: New file, from
5098         gettext/autoconf-lib-link.
5099         * tests/havelib/rpathly/configure.ac: New file, from
5100         gettext/autoconf-lib-link with modifications.
5101         * tests/havelib/rpathlz/usez.c: New file, from
5102         gettext/autoconf-lib-link.
5103         * tests/havelib/rpathlz/Makefile.am: New file, from
5104         gettext/autoconf-lib-link.
5105         * tests/havelib/rpathlz/configure.ac: New file, from
5106         gettext/autoconf-lib-link with modifications.
5107         * tests/havelib/rpathlyx/usey.c: New file, from
5108         gettext/autoconf-lib-link.
5109         * tests/havelib/rpathlyx/Makefile.am: New file, from
5110         gettext/autoconf-lib-link.
5111         * tests/havelib/rpathlyx/configure.ac: New file, from
5112         gettext/autoconf-lib-link with modifications.
5113         * tests/havelib/rpathlzyx/usez.c: New file, from
5114         gettext/autoconf-lib-link.
5115         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5116         gettext/autoconf-lib-link.
5117         * tests/havelib/rpathlzyx/configure.ac: New file, from
5118         gettext/autoconf-lib-link with modifications.
5119         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5120         with modifications.
5121
5122 2010-04-02  Bruno Haible  <bruno@clisp.org>
5123
5124         gnulib-tool: Create distributed built sources also for the tests.
5125         * gnulib-tool (func_create_testdir): Also generate distributed built
5126         sources in the tests directory.
5127
5128 2010-04-02  Bruno Haible  <bruno@clisp.org>
5129
5130         gnulib-tool: Obey user's environment variables.
5131         * gnulib-tool (func_create_testdir): When creating built sources,
5132         respect the environment variables for autoconf, automake, etc. given by
5133         the user.
5134
5135 2010-04-02  Bruno Haible  <bruno@clisp.org>
5136
5137         gnulib-tool: Provide the value of --m4-base to modules.
5138         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5139         of gl_m4_base.
5140
5141 2010-04-02  Eric Blake  <eblake@redhat.com>
5142
5143         maint.mk: fix some fallout
5144         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5145         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5146
5147 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5148
5149         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5150         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5151         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5152         (sc_cast_of_x_alloc_return_value): Likewise.
5153         (sc_cast_of_alloca_return_value): Likewise.
5154         (sc_space_tab): Likewise.
5155         (sc_prohibit_atoi_atof): Likewise.
5156         (sc_prohibit_magic_number_exit): Likewise.
5157         (sc_error_exit_success): Likewise.
5158         (sc_file_system): Likewise.
5159         (sc_prohibit_have_config_h): Likewise.
5160         (sc_require_config_h): Likewise.
5161         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5162         (sc_obsolete_symbols): Likewise.
5163         (sc_changelog): Likewise.
5164         (sc_program_name): Likewise.
5165         (sc_the_the): Likewise.
5166         (sc_trailing_blank): Likewise.
5167         (sc_two_space_separator_in_usage): Likewise.
5168         (sc_useless_cpp_parens): Likewise.
5169         (sc_GPL_version): Likewise.
5170         (sc_GFDL_version): Likewise.
5171         (sc_texinfo_acronym): Likewise.
5172         (sc_prohibit_cvs_keyword): Likewise.
5173         (sc_prohibit_stat_st_blocks): Likewise.
5174         (sc_prohibit_S_IS_definition): Likewise.
5175         (sc_redundant_const): Likewise.
5176         (sc_makefile_TAB_only_indentation): Likewise.
5177         (sc_m4_quote_check): Likewise.
5178         (sc_makefile_path_separator_check): Likewise.
5179         (sc_copyright_check): Likewise.
5180         (sc_Wundef_boolean): Likewise.
5181         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5182
5183         maint.mk: match 0 or more whitespace-before-function-call '('
5184         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5185         that have zero or two-and-more spaces between the function name
5186         and the open parenthesis.
5187         (sc_error_message_warn_fatal): Likewise.
5188         (sc_error_message_uppercase): Likewise.
5189         (sc_error_message_period): Likewise.
5190
5191 2010-03-31  Eric Blake  <eblake@redhat.com>
5192
5193         maint.mk: check for [ as well as test
5194         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5195         Based on a libvirt report by Matthias Bolte.
5196
5197         gnumakefile: don't squelch _version output
5198         * top/GNUmakefile (_version): Create one-shot dependency rather
5199         than using $(shell) when version must be regenerated.
5200         (_autoreconf): Run verbosely, by default.
5201
5202         sys_time: avoid compiler warnings
5203         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5204         unconditional, fixing regression from 2010-03-29.
5205         Reported by Simon Josefsson.
5206
5207 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5208
5209         maint.mk: s/_header_without_use/_sc_header_without_use/
5210         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5211         (sc_prohibit_assert_without_use): Use the new name.
5212         (sc_prohibit_close_stream_without_use): Likewise.
5213         (sc_prohibit_getopt_without_use): Likewise.
5214         (sc_prohibit_quotearg_without_use): Likewise.
5215         (sc_prohibit_quote_without_use): Likewise.
5216         (sc_prohibit_long_options_without_use): Likewise.
5217         (sc_prohibit_inttostr_without_use): Likewise.
5218         (sc_prohibit_ignore_value_without_use): Likewise.
5219         (sc_prohibit_error_without_use): Likewise.
5220         (sc_prohibit_xalloc_without_use): Likewise.
5221         (sc_prohibit_hash_without_use): Likewise.
5222         (sc_prohibit_hash_pjw_without_use): Likewise.
5223         (sc_prohibit_safe_read_without_use): Likewise.
5224         (sc_prohibit_argmatch_without_use): Likewise.
5225         (sc_prohibit_canonicalize_without_use): Likewise.
5226         (sc_prohibit_root_dev_ino_without_use): Likewise.
5227         (sc_prohibit_openat_without_use): Likewise.
5228         (sc_prohibit_c_ctype_without_use): Likewise.
5229         (sc_prohibit_signal_without_use): Likewise.
5230         (sc_prohibit_intprops_without_use): Likewise.
5231
5232 2010-03-30  Eric Blake  <eblake@redhat.com>
5233
5234         maint: improve module indicators
5235         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5236         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5237         columns, and avoid extra macro expansion.
5238
5239         fdopendir: work around FreeBSD bug
5240         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5241         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5242         * modules/dirent (Makefile.am): Substitute it.
5243         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5244         declaration.
5245         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5246         fix.
5247         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5248
5249 2010-03-29  Bruno Haible  <bruno@clisp.org>
5250
5251         Emit #pragma system_header after the inclusion guard, not before.
5252         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5253         guard that spans the entire file, not before. This enables an
5254         optimization in GCC's preprocessor.
5255         * lib/ctype.in.h: Likewise.
5256         * lib/dirent.in.h: Likewise.
5257         * lib/errno.in.h: Likewise.
5258         * lib/float.in.h: Likewise.
5259         * lib/getopt.in.h: Likewise.
5260         * lib/iconv.in.h: Likewise.
5261         * lib/langinfo.in.h: Likewise.
5262         * lib/locale.in.h: Likewise.
5263         * lib/math.in.h: Likewise.
5264         * lib/netdb.in.h: Likewise.
5265         * lib/netinet_in.in.h: Likewise.
5266         * lib/pty.in.h: Likewise.
5267         * lib/sched.in.h: Likewise.
5268         * lib/se-selinux.in.h: Likewise.
5269         * lib/search.in.h: Likewise.
5270         * lib/spawn.in.h: Likewise.
5271         * lib/stdarg.in.h: Likewise.
5272         * lib/stdint.in.h: Likewise.
5273         * lib/string.in.h: Likewise.
5274         * lib/strings.in.h: Likewise.
5275         * lib/sys_file.in.h: Likewise.
5276         * lib/sys_ioctl.in.h: Likewise.
5277         * lib/sys_time.in.h: Likewise.
5278         * lib/sys_times.in.h: Likewise.
5279         * lib/sys_utsname.in.h: Likewise.
5280         * lib/sys_wait.in.h: Likewise.
5281         * lib/sysexits.in.h: Likewise.
5282         * lib/wctype.in.h: Likewise.
5283
5284 2010-03-28  James Youngman  <jay@gnu.org>
5285
5286         save-cwd: don't leak a file descriptor when the caller execs.
5287         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5288         saved file descriptor.
5289         * modules/save-cwd (Depends-on): Depend on cloexec.
5290
5291 2010-03-29  Bruno Haible  <bruno@clisp.org>
5292
5293         Remove vestiges of fts-lgpl module.
5294         * lib/fts_.h: Assume GNULIB_FTS is 1.
5295         * lib/fts.c: Likewise.
5296         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5297
5298 2010-03-28  Bruno Haible  <bruno@clisp.org>
5299
5300         Fix definition of tests witness macro.
5301         * gnulib-tool (func_import): Fix definition of witness macro.
5302
5303 2010-03-28  Bruno Haible  <bruno@clisp.org>
5304
5305         Fix ioctl's protoype on glibc systems.
5306         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5307         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5308         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5309         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5310         signature. If not, arrange to replace the ioctl function.
5311         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5312         REPLACE_IOCTL.
5313         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5314         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5315         Reported by Ludovic Courtès <ludo@gnu.org>.
5316
5317 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5318
5319         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5320         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5321         made it so grep -r --include=GLOB* ... did not work.
5322
5323 2010-03-26  Jim Meyering  <meyering@redhat.com>
5324             Eric Blake  <eblake@redhat.com>
5325
5326         maint.mk: prohibit use of test's -o and -a operators
5327         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5328
5329 2010-03-28  Bruno Haible  <bruno@clisp.org>
5330
5331         Remove unused GNULIB_XYZ macro definitions.
5332         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5333         invocation.
5334
5335 2010-03-28  Bruno Haible  <bruno@clisp.org>
5336
5337         Mark privileged tests modules.
5338         * modules/idpriv-drop-tests (Status): New section.
5339         * modules/idpriv-droptemp-tests (Status): New section.
5340
5341 2010-03-28  Bruno Haible  <bruno@clisp.org>
5342
5343         Split C++ tests into separate tests modules.
5344         * modules/dirent-c++-tests: New file, extracted from
5345         modules/dirent-tests.
5346         * modules/dirent-tests: Depend on it.
5347         * modules/fcntl-h-c++-tests: New file, extracted from
5348         modules/fcntl-h-tests.
5349         * modules/fcntl-h-tests: Depend on it.
5350         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5351         * modules/glob-tests: Depend on it.
5352         * modules/iconv-h-c++-tests: New file, extracted from
5353         modules/iconv-h-tests.
5354         * modules/iconv-h-tests: Depend on it.
5355         * modules/langinfo-c++-tests: New file, extracted from
5356         modules/langinfo-tests.
5357         * modules/langinfo-tests: Depend on it.
5358         * modules/locale-c++-tests: New file, extracted from
5359         modules/locale-tests.
5360         * modules/locale-tests: Depend on it.
5361         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5362         * modules/math-tests: Depend on it.
5363         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5364         * modules/pty-tests: Depend on it.
5365         * modules/search-c++-tests: New file, extracted from
5366         modules/search-tests.
5367         * modules/search-tests: Depend on it.
5368         * modules/signal-c++-tests: New file, extracted from
5369         modules/signal-tests.
5370         * modules/signal-tests: Depend on it.
5371         * modules/spawn-c++-tests: New file, extracted from
5372         modules/spawn-tests.
5373         * modules/spawn-tests: Depend on it.
5374         * modules/stdio-c++-tests: New file, extracted from
5375         modules/stdio-tests.
5376         * modules/stdio-tests: Depend on it.
5377         * modules/stdlib-c++-tests: New file, extracted from
5378         modules/stdlib-tests.
5379         * modules/stdlib-tests: Depend on it.
5380         * modules/string-c++-tests: New file, extracted from
5381         modules/string-tests.
5382         * modules/string-tests: Depend on it.
5383         * modules/sys_ioctl-c++-tests: New file, extracted from
5384         modules/sys_ioctl-tests.
5385         * modules/sys_ioctl-tests: Depend on it.
5386         * modules/sys_select-c++-tests: New file, extracted from
5387         modules/sys_select-tests.
5388         * modules/sys_select-tests: Depend on it.
5389         * modules/sys_socket-c++-tests: New file, extracted from
5390         modules/sys_socket-tests.
5391         * modules/sys_socket-tests: Depend on it.
5392         * modules/sys_stat-c++-tests: New file, extracted from
5393         modules/sys_stat-tests.
5394         * modules/sys_stat-tests: Depend on it.
5395         * modules/sys_time-c++-tests: New file, extracted from
5396         modules/sys_time-tests.
5397         * modules/sys_time-tests: Depend on it.
5398         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5399         * modules/time-tests: Depend on it.
5400         * modules/unistd-c++-tests: New file, extracted from
5401         modules/unistd-tests.
5402         * modules/unistd-tests: Depend on it.
5403         * modules/wchar-c++-tests: New file, extracted from
5404         modules/wchar-tests.
5405         * modules/wchar-tests: Depend on it.
5406         * modules/wctype-c++-tests: New file, extracted from
5407         modules/wctype-tests.
5408         * modules/wctype-tests: Depend on it.
5409         Reported by Simon Josefsson.
5410
5411 2010-03-28  Bruno Haible  <bruno@clisp.org>
5412
5413         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5414         * gnulib-tool (func_exists_module): New function, extracted from
5415         func_verify_module.
5416         (func_verify_module): Use it.
5417         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5418         'foo' only if 'foo' exists.
5419         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5420         module.
5421
5422 2010-03-28  Bruno Haible  <bruno@clisp.org>
5423
5424         gnulib-tool: Add support for special categories of tests.
5425         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5426         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5427         (func_usage): Document them.
5428         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5429         inc_unportable_tests, inc_all_tests): New variables.
5430         (func_acceptable): Consider these variables.
5431         (func_modules_transitive_closure): Make it work when the 'Status' field
5432         consists of multiple words.
5433         (func_import): Store and restore the values of inc_cxx_tests,
5434         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5435         inc_all_tests in gnulib-comp.m4.
5436         (func_create_testdir): Set inc_all_tests to true.
5437         * doc/gnulib.texi (Extra tests modules): New section.
5438         Suggested by Jim Meyering.
5439
5440 2010-03-28  Bruno Haible  <bruno@clisp.org>
5441
5442         ansi-c++-opt: Allow turning off the C++ build by default.
5443         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5444         gl_CXX_CHOICE_DEFAULT_NO is defined.
5445         Requested by Eric Blake.
5446
5447 2010-03-28  Bruno Haible  <bruno@clisp.org>
5448
5449         unistd: Avoid #define replacements in C++ mode.
5450         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5451         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5452         setsockopt, shutdown, select): In C++, attach a warning to the function
5453         if possible, rather than #defining the symbol to a dysfunctional alias.
5454         Reported by John W. Eaton <jwe@gnu.org>.
5455
5456 2010-03-28  Bruno Haible  <bruno@clisp.org>
5457
5458         Fix link errors on mingw.
5459         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5460         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5461         $(LIBSOCKET).
5462         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5463         $(LIBSOCKET).
5464
5465 2010-03-28  Bruno Haible  <bruno@clisp.org>
5466             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5467
5468         lib-ignore: Determine different options for different compilers.
5469         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5470         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5471         Add comments.
5472         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5473         * NEWS: Mention the change.
5474
5475 2010-03-27  Bruno Haible  <bruno@clisp.org>
5476
5477         Remove unused GNULIB_XYZ macro definitions.
5478         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5479         * modules/fseek (configure.ac): Likewise.
5480         * modules/ioctl (configure.ac): Likewise.
5481         * modules/open (configure.ac): Likewise.
5482         * modules/stdlib-safer (configure.ac): Likewise.
5483
5484 2010-03-27  Bruno Haible  <bruno@clisp.org>
5485
5486         Add a remark about certain modules.
5487         * modules/malloc (Comment): New section.
5488         * modules/realloc (Comment): Likewise.
5489         * modules/sigpipe (Comment): Likewise.
5490
5491 2010-03-27  Bruno Haible  <bruno@clisp.org>
5492
5493         Resolve conflict between the two kinds of module indicators.
5494         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5495         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5496         * modules/canonicalize (configure.ac): Invoke
5497         gl_MODULE_INDICATOR_FOR_TESTS.
5498         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5499         GNULIB_XYZ.
5500         * tests/test-dirent-c++.cc: Likewise.
5501         * tests/test-dirent-safer.c: Likewise.
5502         * tests/test-dup2.c: Likewise.
5503         * tests/test-fchdir.c: Likewise.
5504         * tests/test-fcntl-h-c++.cc: Likewise.
5505         * tests/test-getopt.c: Likewise.
5506         * tests/test-getopt.h: Likewise.
5507         * tests/test-langinfo-c++.cc: Likewise.
5508         * tests/test-locale-c++.cc: Likewise.
5509         * tests/test-math-c++.cc: Likewise.
5510         * tests/test-pty-c++.cc: Likewise.
5511         * tests/test-search-c++.cc: Likewise.
5512         * tests/test-signal-c++.cc: Likewise.
5513         * tests/test-spawn-c++.cc: Likewise.
5514         * tests/test-stdio-c++.cc: Likewise.
5515         * tests/test-stdlib-c++.cc: Likewise.
5516         * tests/test-string-c++.cc: Likewise.
5517         * tests/test-sys_ioctl-c++.cc: Likewise.
5518         * tests/test-sys_select-c++.cc: Likewise.
5519         * tests/test-sys_socket-c++.cc: Likewise.
5520         * tests/test-sys_stat-c++.cc: Likewise.
5521         * tests/test-sys_time-c++.cc: Likewise.
5522         * tests/test-time-c++.cc: Likewise.
5523         * tests/test-unistd-c++.cc: Likewise.
5524         * tests/test-wchar-c++.cc: Likewise.
5525         * tests/uninorm/test-u8-nfc.c: Likewise.
5526         * tests/uninorm/test-u8-nfd.c: Likewise.
5527         * tests/uninorm/test-u8-nfkc.c: Likewise.
5528         * tests/uninorm/test-u8-nfkd.c: Likewise.
5529         * tests/uninorm/test-u16-nfc.c: Likewise.
5530         * tests/uninorm/test-u16-nfd.c: Likewise.
5531         * tests/uninorm/test-u16-nfkc.c: Likewise.
5532         * tests/uninorm/test-u16-nfkd.c: Likewise.
5533         * tests/uninorm/test-u32-nfc.c: Likewise.
5534         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5535         * tests/uninorm/test-u32-nfd.c: Likewise.
5536         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5537         * tests/uninorm/test-u32-nfkc.c: Likewise.
5538         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5539         * tests/uninorm/test-u32-nfkd.c: Likewise.
5540         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5541         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5542
5543 2010-03-27  Bruno Haible  <bruno@clisp.org>
5544
5545         Distinguish two kinds of module indicators.
5546         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5547         gl_MODULE_INDICATOR.
5548         (gl_MODULE_INDICATOR): New macro.
5549         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5550         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5551         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5552         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5553         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5554         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5555         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5556         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5557         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5558         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5559         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5560         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5563         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5564         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5565         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5566         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5567         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5568         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5569         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5570         * modules/cloexec (configure.ac): Likewise.
5571         * modules/getopt-gnu (configure.ac): Likewise.
5572         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5573         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5574         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5575         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5576
5577 2010-03-27  Bruno Haible  <bruno@clisp.org>
5578
5579         New module description field 'Comment'.
5580         * gnulib-tool: New option --extract-comment.
5581         (func_usage): Document it.
5582         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5583         (func_get_comment): New function.
5584         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5585
5586 2010-03-27  Bruno Haible  <bruno@clisp.org>
5587
5588         Addendum to 2010-02-07 commit.
5589         * gnulib-tool (func_usage): Document --extract-applicability option.
5590
5591 2010-03-27  Bruno Haible  <bruno@clisp.org>
5592
5593         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5594         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5595         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5596         rather than link errors.
5597
5598 2010-03-27  Bruno Haible  <bruno@clisp.org>
5599
5600         Avoid side effects from tests-related modules on the compilation of lib.
5601         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5602         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5603         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5604         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5605         macro.
5606         (func_import): Define a witness macro. Assign it a value that depends
5607         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5608         tests-related modules.
5609         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5610         Reported by Jim Meyering.
5611
5612 2010-03-27  Bruno Haible  <bruno@clisp.org>
5613
5614         Factorize common .m4 code.
5615         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5616         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5617         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5618         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5619         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5620         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5621         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5622         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5623         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5624         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5625         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5626         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5627         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5628         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5629         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5630         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5631         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5632         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5634         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5635         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5636         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5637         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5638         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5639         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5640         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5641         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5642         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5643         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5644         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5645         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5646         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5647
5648 2010-03-27  Bruno Haible  <bruno@clisp.org>
5649
5650         Fix a compilation error on Cygwin with g++ >= 4.3.
5651         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5652         if it is undefined or if we alias it to chmod.
5653         (lstat): Don't warn about the use of this function if it is undefined
5654         or if we alias it to stat.
5655         Reported by Simon Josefsson.
5656
5657 2010-03-27  Bruno Haible  <bruno@clisp.org>
5658
5659         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5660         * modules/getlogin (configure.ac): Update.
5661
5662         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5663         * modules/getlogin_r (configure.ac): Update.
5664
5665         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5667         * modules/inet_ntop (configure.ac): Update.
5668
5669         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5670         * modules/inet_pton (configure.ac): Update.
5671
5672         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5673         * modules/mbslen (configure.ac): Update.
5674
5675         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5676         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5677         * modules/forkpty (configure.ac): Update.
5678         * modules/openpty (configure.ac): Update.
5679
5680 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5681
5682         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5683         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5684
5685 2010-03-25  Eric Blake  <eblake@redhat.com>
5686
5687         maint: use pragma consistently across replacement headers
5688         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5689         * lib/dirent.in.h (system_header): Likewise.
5690         * lib/errno.in.h (system_header): Likewise.
5691         * lib/float.in.h (system_header): Likewise.
5692         * lib/getopt.in.h (system_header): Likewise.
5693         * lib/iconv.in.h (system_header): Likewise.
5694         * lib/inttypes.in.h (system_header): Likewise.
5695         * lib/langinfo.in.h (system_header): Likewise.
5696         * lib/locale.in.h (system_header): Likewise.
5697         * lib/math.in.h (system_header): Likewise.
5698         * lib/netdb.in.h (system_header): Likewise.
5699         * lib/netinet_in.in.h (system_header): Likewise.
5700         * lib/pty.in.h (system_header): Likewise.
5701         * lib/sched.in.h (system_header): Likewise.
5702         * lib/se-selinux.in.h (system_header): Likewise.
5703         * lib/search.in.h (system_header): Likewise.
5704         * lib/spawn.in.h (system_header): Likewise.
5705         * lib/stdarg.in.h (system_header): Likewise.
5706         * lib/stdint.in.h (system_header): Likewise.
5707         * lib/string.in.h (system_header): Likewise.
5708         * lib/strings.in.h (system_header): Likewise.
5709         * lib/sys_file.in.h (system_header): Likewise.
5710         * lib/sys_ioctl.in.h (system_header): Likewise.
5711         * lib/sys_socket.in.h (system_header): Likewise.
5712         * lib/sys_times.in.h (system_header): Likewise.
5713         * lib/sys_utsname.in.h (system_header): Likewise.
5714         * lib/sys_wait.in.h (system_header): Likewise.
5715         * lib/sysexits.in.h (system_header): Likewise.
5716         * lib/unistd.in.h (system_header): Likewise.
5717         * lib/wctype.in.h (system_header): Likewise.
5718
5719         arpa/inet: fix mingw compilation warning
5720         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5721         Reported by Matthew Bolte.
5722
5723 2010-03-25  Bruno Haible  <bruno@clisp.org>
5724
5725         Avoid collision between gnulib wrapper and libintl wrapper.
5726         * lib/printf.c (printf): Don't define if a printf wrapper is already
5727         defined in intl/printf.c.
5728         Reported by Michel Boaventura <michel@michelboaventura.com>.
5729
5730 2010-03-25  Bruno Haible  <bruno@clisp.org>
5731
5732         Use ANSI C.
5733         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5734
5735 2010-03-25  Bruno Haible  <bruno@clisp.org>
5736
5737         Minor formatting changes.
5738         * lib/acosl.c: Insert space before function argument list.
5739         * lib/argz.c: Likewise.
5740         * lib/asinl.c: Likewise.
5741         * lib/expl.c: Likewise.
5742         * lib/gen-uni-tables.c: Likewise.
5743         * lib/gettext.h: Likewise.
5744         * lib/glthread/lock.h: Likewise.
5745         * lib/tanl.c: Likewise.
5746         * lib/uniname/uniname.c: Likewise.
5747         * tests/test-idpriv-drop.c: Likewise.
5748         * tests/test-idpriv-droptemp.c: Likewise.
5749         * tests/test-lock.c: Likewise.
5750         * tests/test-tls.c: Likewise.
5751         * lib/argp-help.c: Insert space before function-like macro argument
5752         list.
5753         * lib/memcmp.c: Likewise.
5754         * tests/test-base64.c: Likewise.
5755         * lib/localename.c: Insert space before sizeof's argument list.
5756         * lib/safe-alloc.h: Likewise.
5757         * lib/file-set.h: Insert space before macro argument list.
5758         * tests/test-argp.c: Likewise.
5759         * lib/argp-namefrob.h: Insert space before function parameter list.
5760         * lib/getaddrinfo.c: Likewise.
5761         * lib/netdb.in.h: Likewise.
5762         * lib/parse-duration.h: Likewise.
5763         * lib/parse-duration.c: Likewise.
5764         * lib/poll.c: Likewise.
5765         * lib/select.c: Likewise.
5766         * lib/trim.h: Likewise.
5767         * tests/test-usleep.c: Likewise.
5768         * lib/ldexpl.c: Insert space before function parameter list and before
5769         function argument list.
5770         * lib/logl.c: Likewise.
5771         * lib/sqrtl.c: Likewise.
5772         * lib/trim.c: Likewise.
5773         * lib/cosl.c: Use GNU style indentation. Insert space before function
5774         argument list.
5775         * lib/sinl.c: Likewise.
5776         * lib/tsearch.c: Insert space after 'for'.
5777         Reported by Jim Meyering.
5778
5779 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5780
5781         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5782         config header before grepping, as it's not present before
5783         autoreconf/configure are run.  Reported by Simon Josefsson.
5784
5785 2010-03-23  Bruno Haible  <bruno@clisp.org>
5786
5787         pt_chown: Make it work with automake < 1.11.
5788         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5789         Reported by Simon Josefsson.
5790
5791 2010-03-23  Bruno Haible  <bruno@clisp.org>
5792
5793         pt_chown: Don't depend on GPLed modules.
5794         * lib/pt_chown.c: Don't include idpriv.h.
5795         (main): Don't drop privileges.
5796         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5797         Reported by Simon Josefsson.
5798
5799 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5800
5801         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5802         suggestions from karl@freefriends.org (Karl Berry).
5803
5804 2010-03-22  Eric Blake  <eblake@redhat.com>
5805
5806         gethostname: further tweaks
5807         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5808         are overriding gethostname.
5809         Suggested by Bruno Haible.
5810
5811 2010-03-21  Bruno Haible  <bruno@clisp.org>
5812
5813         Fix comments.
5814         * lib/forkpty.c (rpl_forkpty): Fix comment.
5815         * lib/openpty.c (rpl_openpty): Likewise.
5816         Reported by Eric Blake.
5817
5818 2010-03-22  Eric Blake  <eblake@redhat.com>
5819
5820         gethostname: fix build on mingw
5821         * lib/unistd.in.h (includes): Work around fact that mingw
5822         <winsock2.h> re-includes <unistd.h>, by avoiding any
5823         redeclarations if we are being included by <winsock2.h>.
5824         Reported by Matthias Bolte.
5825
5826 2010-03-21  Bruno Haible  <bruno@clisp.org>
5827
5828         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5829         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5830         modifications.
5831         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5832         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5833         provide the replacement.
5834         * modules/forkpty (Depends-on): Add openpty, login_tty.
5835         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5836         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5837         * doc/glibc-functions/forkpty.texi: More supported platforms.
5838         * config/srclist.txt: Add forkpty.c (commented).
5839
5840 2010-03-21  Bruno Haible  <bruno@clisp.org>
5841
5842         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5843         (Makefile.am): Verify that PTY_LIB is defined.
5844
5845         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5846
5847 2010-03-21  Bruno Haible  <bruno@clisp.org>
5848
5849         Tests for module 'login_tty'.
5850         * modules/login_tty-tests: New file.
5851         * tests/test-login_tty.c: New file.
5852
5853         New module 'login_tty'.
5854         * lib/login_tty.c: New file.
5855         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5856         * modules/login_tty: New file.
5857         * doc/glibc-functions/login_tty.texi: Mention the new module.
5858
5859 2010-03-21  Bruno Haible  <bruno@clisp.org>
5860
5861         login_tty: Documentation.
5862         * doc/glibc-functions/login_tty.texi: New file.
5863         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5864
5865 2010-03-21  Bruno Haible  <bruno@clisp.org>
5866
5867         pty: Consistent macro naming.
5868         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5869         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5870         * modules/pty (configure.ac): Update.
5871
5872 2010-03-21  Bruno Haible  <bruno@clisp.org>
5873
5874         Tests for openpty: Make stricter.
5875         * tests/test-openpty.c (main): Add test of canonical processing and
5876         erase.
5877         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5878
5879         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5880         * lib/openpty.c (openpty): New replacement function.
5881         * lib/pty.in.h: Include <termios.h>.
5882         (openpty): Update declaration. Add comments.
5883         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5884         is not declared, arrange to provide the replacement. Check for _getpty
5885         and posix_openpt.
5886         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5887         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5888         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5889         * modules/pty-tests (test_pty_c___LDADD): New variable.
5890         * doc/glibc-functions/openpty.texi: More supported platforms.
5891
5892 2010-03-21  Bruno Haible  <bruno@clisp.org>
5893
5894         setenv: Tweaks.
5895         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5896         the test program.
5897         * doc/posix-functions/setenv.texi: Update platforms list.
5898
5899 2010-03-21  Bruno Haible  <bruno@clisp.org>
5900
5901         New module 'unlockpt'.
5902         * lib/unlockpt.c: New file, from glibc with modifications.
5903         * m4/unlockpt.m4: New file.
5904         * modules/unlockpt: New file.
5905         * lib/stdlib.in.h (unlockpt): New declaration.
5906         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5907         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5908         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5909         HAVE_UNLOCKPT.
5910         * doc/posix-functions/unlockpt.texi: Mention the new module.
5911         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5912         * config/srclist.txt: Add unlockpt.c (commented).
5913
5914 2010-03-21  Jim Meyering  <meyering@redhat.com>
5915
5916         maint.mk: prohibit inclusion of "intprops.h" without use
5917         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5918
5919 2010-03-21  Bruno Haible  <bruno@clisp.org>
5920
5921         New module 'grantpt'.
5922         * lib/grantpt.c: New file, from glibc with modifications.
5923         * m4/grantpt.m4: New file.
5924         * modules/grantpt: New file.
5925         * lib/stdlib.in.h (grantpt): New declaration.
5926         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5927         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5928         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5929         HAVE_GRANTPT.
5930         * doc/posix-functions/grantpt.texi: Mention the new module.
5931         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5932         * config/srclist.txt: Add grantpt.c (commented).
5933
5934 2010-03-21  Bruno Haible  <bruno@clisp.org>
5935
5936         New module 'pt_chown'.
5937         * lib/pt_chown.c: New file, from glibc with modifications.
5938         * lib/pty-private.h: New file, from glibc with modifications.
5939         * modules/pt_chown: New file.
5940         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5941
5942 2010-03-21  Bruno Haible  <bruno@clisp.org>
5943
5944         Tests for module 'ptsname'.
5945         * modules/ptsname-tests: New file.
5946         * tests/test-ptsname.c: New file.
5947
5948         New module 'ptsname'.
5949         * lib/ptsname.c: New file, from glibc with modifications.
5950         * m4/ptsname.m4: New file.
5951         * modules/ptsname: New file.
5952         * lib/stdlib.in.h (ptsname): New declaration.
5953         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5954         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5955         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5956         HAVE_PTSNAME.
5957         * doc/posix-functions/ptsname.texi: Mention the new module.
5958         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
5959         * config/srclist.txt: Add ptsname.c (commented).
5960
5961 2010-03-21  Bruno Haible  <bruno@clisp.org>
5962
5963         Tests for module 'ttyname_r'.
5964         * modules/ttyname_r-tests: New file.
5965         * tests/test-ttyname_r.c: New file.
5966
5967         New module 'ttyname_r'.
5968         * lib/ttyname_r.c: New file.
5969         * m4/ttyname_r.m4: New file.
5970         * modules/ttyname_r: New file.
5971         * lib/unistd.in.h (ttyname_r): New declaration.
5972         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
5973         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
5974         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
5975         HAVE_TTYNAME_R.
5976         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
5977         * doc/posix-functions/ttyname_r.texi: Mention the new module.
5978
5979 2010-03-20  Bruno Haible  <bruno@clisp.org>
5980
5981         signal: Undefine macro definitions in C++ mode.
5982         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
5983         sigfillset): Undefine macro definitions from the system header in C++
5984         mode.
5985         Reported by John W. Eaton <jwe@gnu.org>.
5986
5987 2010-03-20  Bruno Haible  <bruno@clisp.org>
5988
5989         Ensure no #include statements inside extern "C" { ... }.
5990         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
5991         contain #include statements.
5992         * lib/time.in.h: Likewise.
5993
5994 2010-03-20  Bruno Haible  <bruno@clisp.org>
5995
5996         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
5997         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
5998         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
5999         Reported by John W. Eaton <jwe@gnu.org>.
6000
6001 2010-03-20  Bruno Haible  <bruno@clisp.org>
6002
6003         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6004         Reported by Jim Meyering.
6005
6006 2010-03-20  Bruno Haible  <bruno@clisp.org>
6007
6008         pipe: Set errno upon failure.
6009         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6010         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6011         errno value in error message.
6012
6013 2010-03-20  Bruno Haible  <bruno@clisp.org>
6014             Jim Meyering  <meyering@redhat.com>
6015
6016         lchown: Avoid "unused variable" warning.
6017         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6018
6019 2010-03-20  Bruno Haible  <bruno@clisp.org>
6020
6021         Work around unlink() bug on MacOS X 10.5.6.
6022         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6023         attempting to unlink a parent directory.
6024         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6025         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6026         activate for the replacement function.
6027         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6028
6029 2010-03-20  Bruno Haible  <bruno@clisp.org>
6030
6031         Fix link errors on Solaris 8.
6032         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6033         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6034
6035 2010-03-19  Jim Meyering  <meyering@redhat.com>
6036
6037         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6038         The _LIBC implementation of build_range_exp correctly honors the
6039         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6040         However, the non-_LIBC implementation would ignore that syntax-bit
6041         flag and return REG_ERANGE unconditionally.
6042         This change makes it honor that flag.
6043         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6044         Make two pointer parameters "const".
6045         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6046         (parse_bracket_exp): Update caller.
6047
6048         regex.m4: correct the reversed range endpoint ([b-a]) test
6049         * m4/regex.m4: When requiring that [b-a] evoke failure,
6050         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6051         test pass once again for x86-based systems.
6052
6053 2010-03-19  Bruno Haible  <bruno@clisp.org>
6054
6055         scandir: Fix link error on Solaris 8.
6056         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6057         macros.
6058
6059 2010-03-19  Bruno Haible  <bruno@clisp.org>
6060
6061         getusershell: Fix documentation.
6062         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6063         module.
6064         * doc/glibc-functions/setusershell.texi: Likewise.
6065
6066         getusershell: Provide declaration, missing on Solaris 9.
6067         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6068         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6069         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6070         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6072         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6073         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6074         HAVE_GETUSERSHELL.
6075         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6076
6077 2010-03-19  Bruno Haible  <bruno@clisp.org>
6078
6079         wctype: Provide iswblank function.
6080         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6081         exists and is fine.
6082         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6083         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6084         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6085         * doc/posix-functions/iswblank.texi: Update.
6086
6087 2010-03-19  Bruno Haible  <bruno@clisp.org>
6088
6089         Tests of module 'pty' in C++ mode.
6090         * modules/pty-tests: New file.
6091         * tests/test-pty-c++.cc: New file.
6092         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6093
6094 2010-03-19  Eric Blake  <eblake@redhat.com>
6095
6096         logb: fix documentation
6097         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6098         1.5 declaration bug.
6099
6100         forkpty, openpty: prefer glibc's const-safe prototype
6101         * lib/forkpty.c (rpl_forkpty): New file.
6102         * lib/openpty.c (rpl_openpty): Likewise.
6103         * modules/forkpty (Files): Distribute it.
6104         * modules/openpty (Files): Likewise.
6105         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6106         check...
6107         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6108         replacement for for non-const BSD signature.
6109         * modules/pty (Makefile.am): Substitute witnesses.
6110         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6111         * tests/test-forkpty.c: Update signature check.
6112         * tests/test-openpty.c: Likewise.
6113         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6114         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6115
6116         forkpty, openpty: split functions into new modules
6117         * modules/pty (Makefile.am): Substitute new witnesses.
6118         (Libraries): Move library detection...
6119         * modules/forkpty: ...into new module.
6120         * modules/openpty: Another new module.
6121         * modules/pty-tests: Rename and split...
6122         * modules/forkpty-tests: ...to this...
6123         * modules/openpty-tests: ...and this.
6124         * tests/test-pty.c: Rename and split...
6125         * tests/test-forkpty.c: ...to this...
6126         * tests/test-openpty.c: ...and this.
6127         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6128         (gl_PTY): Split library searching...
6129         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6130         (gl_FORKPTY, gl_OPENPTY): New macros.
6131         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6132         * NEWS: Mention the split.
6133         * MODULES.html.sh (Misc): Document the modules.
6134         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6135         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6136
6137         pty: improve replacement header
6138         * lib/pty.in.h: New file.
6139         * modules/pty (Files): Ship it.
6140         (Makefile.am): Always build replacement.
6141         * m4/pty.m4: Rename...
6142         * m4/pty_h.m4: ...to this.
6143         (gl_PTY): Modernize setting of witness macros; update check of
6144         forkpty to take proper advantage of cache.
6145         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6146
6147         getopt: avoid compiler warning
6148         * lib/getopt.c (attribute_hidden): Remove unused macro.
6149
6150 2010-03-18  Bruno Haible  <bruno@clisp.org>
6151
6152         Fix link errors on Solaris 8.
6153         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6154         * modules/search-tests (test_search_c___LDADD): Likewise.
6155         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6156         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6157         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6158         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6159         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6160         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6161         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6162
6163 2010-03-18  Bruno Haible  <bruno@clisp.org>
6164
6165         Fix bug introduced on 2010-03-14.
6166         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6167         (gl_SPAWN_H): Require it.
6168         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6169         Reported by Simon Josefsson.
6170
6171 2010-03-18  Bruno Haible  <bruno@clisp.org>
6172
6173         Fix typo introduced on 2009-12-31.
6174         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6175         posix_spawn_file_actions_adddup2.
6176
6177 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6178         and Eric Blake  <eblake@redhat.com>
6179
6180         test-vc-list-files-git: make more robust
6181         * tests/test-vc-list-files-git.sh: Unset problematic environment
6182         variables.  Chain commands together.
6183
6184 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6185
6186         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6187         `AC_CHECK_DECL' invocation.
6188
6189 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6190
6191         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6192         appears before executable statements. Suggested by Petr Sumbera
6193         <Petr.Sumbera@Sun.COM>.
6194
6195 2010-03-14  Bruno Haible  <bruno@clisp.org>
6196
6197         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6198         portability problems. Instead use a simpler test.
6199         (main): Check that invalid arguments are rejected only on Linux.
6200
6201 2010-03-14  Bruno Haible  <bruno@clisp.org>
6202
6203         Fix bug introduced on 2009-12-31.
6204         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6205         gl_PREREQ_SYS_H_WINSOCK2 always.
6206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6207         SYS_SOCKET_H variable.
6208         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6209         Update comments.
6210         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6211         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6212         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6213         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6214         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6215
6216 2010-03-14  Bruno Haible  <bruno@clisp.org>
6217
6218         Fix values returned by sinl, cosl.
6219         * lib/trigl.h: Add specification comments.
6220         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6221         that combines the values from the precomputed table with the values of
6222         the Chebyshev polynomials.
6223
6224 2010-03-14  Bruno Haible  <bruno@clisp.org>
6225
6226         Fix compilation error when modules 'posix_spawn[p]' are not used.
6227         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6228         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6229
6230 2010-03-14  Bruno Haible  <bruno@clisp.org>
6231
6232         Fix compilation error on mingw when module 'time_r' is not used.
6233         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6234         is 1.
6235         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6236         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6237         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6238         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6239
6240 2010-03-14  Bruno Haible  <bruno@clisp.org>
6241
6242         Fix compilation error with Sun C.
6243         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6244         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6245         instead of GCC specific ULONG_LONG_MAX.
6246         * lib/xstrtoll.c: Likewise.
6247         * lib/xstrtoull.c: Likewise.
6248
6249 2010-03-13  Bruno Haible  <bruno@clisp.org>
6250
6251         Allow the user to disable C++ code and tests.
6252         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6253         (gl_PROG_ANSI_CXX): Require it.
6254
6255 2010-03-13  Bruno Haible  <bruno@clisp.org>
6256
6257         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6258         cases.
6259
6260 2010-03-13  Bruno Haible  <bruno@clisp.org>
6261
6262         Test that gnulib does not break the standard C++ headers.
6263         * tests/test-locale-c++2.cc: New file.
6264         * modules/locale-tests (Files): Add it.
6265         (Makefile.am): Compile it for test-locale-c++.
6266         * tests/test-math-c++2.cc: New file.
6267         * modules/math-tests (Files): Add it.
6268         (Makefile.am): Compile it for test-math-c++.
6269         * tests/test-signal-c++2.cc: New file.
6270         * modules/signal-tests (Files): Add it.
6271         (Makefile.am): Compile it for test-signal-c++.
6272         * tests/test-stdio-c++2.cc: New file.
6273         * modules/stdio-tests (Files): Add it.
6274         (Makefile.am): Compile it for test-stdio-c++.
6275         * tests/test-stdlib-c++2.cc: New file.
6276         * modules/stdlib-tests (Files): Add it.
6277         (Makefile.am): Compile it for test-stdlib-c++.
6278         * tests/test-string-c++2.cc: New file.
6279         * modules/string-tests (Files): Add it.
6280         (Makefile.am): Compile it for test-string-c++.
6281         * tests/test-time-c++2.cc: New file.
6282         * modules/time-tests (Files): Add it.
6283         (Makefile.am): Compile it for test-time-c++.
6284         Reported by John W. Eaton <jwe@gnu.org>.
6285
6286 2010-03-13  Bruno Haible  <bruno@clisp.org>
6287
6288         * gnulib-tool (func_usage): Clarify which options are available for
6289         --create-testdir and --create-megatestdir.
6290
6291 2010-03-13  Bruno Haible  <bruno@clisp.org>
6292
6293         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6294         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6295         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6296         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6297         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6298         when appropriate.
6299         Reported by Jim Meyering.
6300
6301 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6302
6303         * gnulib-tool (func_import): Explain origin of code.
6304
6305 2010-03-12  Bruno Haible  <bruno@clisp.org>
6306
6307         Fix problem with automake's definition of CXXLINK.
6308         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6309         Reported by Simon Josefsson and Ludovic Courtès.
6310
6311 2010-03-12  Bruno Haible  <bruno@clisp.org>
6312
6313         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6314         stable releases.
6315
6316 2010-03-11  Bruno Haible  <bruno@clisp.org>
6317
6318         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6319         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6320         whether the system provides one variant or multiple variants of the
6321         function.
6322         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6323         C++ compilers.
6324         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6325         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6326         Reported by Jim Meyering.
6327
6328 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6329
6330         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6331
6332 2010-03-08  Bruno Haible  <bruno@clisp.org>
6333
6334         gnulib-tool: Add support for --libtool in --create-testdir.
6335         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6336         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6337
6338 2010-03-08  Eric Blake  <eblake@redhat.com>
6339
6340         gnulib-tool.texi: mention possibility of git submodule
6341         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6342         submodules.
6343         * doc/.gitignore: Ignore another generated file.
6344
6345 2010-03-08  Karl Berry  <karl@gnu.org>
6346
6347         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6348         of committing gnulib files while skipping others.
6349
6350 2010-03-07  Bruno Haible  <bruno@clisp.org>
6351
6352         Tests of module 'wctype' in C++ mode.
6353         * tests/test-wctype-c++.cc: New file.
6354         * modules/wctype-tests (Files): Add it and tests/signature.h.
6355         (Depends-on): Add ansi-c++-opt.
6356         (Makefile.am): Arrange to compile and run test-wctype-c++.
6357
6358         Tests of module 'wchar' in C++ mode.
6359         * tests/test-wchar-c++.cc: New file.
6360         * modules/wchar-tests (Files): Add it and tests/signature.h.
6361         (Depends-on): Add ansi-c++-opt.
6362         (Makefile.am): Arrange to compile and run test-wchar-c++.
6363         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6364         gl_MODULE_INDICATOR.
6365
6366         Tests of module 'unistd' in C++ mode.
6367         * tests/test-unistd-c++.cc: New file.
6368         * modules/unistd-tests (Files): Add it and tests/signature.h.
6369         (Depends-on): Add ansi-c++-opt.
6370         (Makefile.am): Arrange to compile and run test-unistd-c++.
6371         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6372         gl_MODULE_INDICATOR.
6373
6374         Tests of module 'time' in C++ mode.
6375         * tests/test-time-c++.cc: New file.
6376         * modules/time-tests (Files): Add it and tests/signature.h.
6377         (Depends-on): Add ansi-c++-opt.
6378         (Makefile.am): Arrange to compile and run test-time-c++.
6379         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6380
6381         Tests of module 'sys_time' in C++ mode.
6382         * tests/test-sys_time-c++.cc: New file.
6383         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6384         (Depends-on): Add ansi-c++-opt.
6385         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6386         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6387         gl_MODULE_INDICATOR.
6388
6389         Tests of module 'sys_stat' in C++ mode.
6390         * tests/test-sys_stat-c++.cc: New file.
6391         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6392         (Depends-on): Add ansi-c++-opt.
6393         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6394         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6395         gl_MODULE_INDICATOR.
6396
6397         Tests of module 'sys_socket' in C++ mode.
6398         * tests/test-sys_socket-c++.cc: New file.
6399         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6400         (Depends-on): Add ansi-c++-opt.
6401         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6402         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6403         gl_MODULE_INDICATOR.
6404
6405         Tests of module 'sys_select' in C++ mode.
6406         * tests/test-sys_select-c++.cc: New file.
6407         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6408         (Depends-on): Add ansi-c++-opt.
6409         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6410         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6411         gl_MODULE_INDICATOR.
6412
6413         Tests of module 'sys_ioctl' in C++ mode.
6414         * tests/test-sys_ioctl-c++.cc: New file.
6415         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6416         (Depends-on): Add ansi-c++-opt.
6417         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6418         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6419         gl_MODULE_INDICATOR.
6420
6421         Tests of module 'string' in C++ mode.
6422         * tests/test-string-c++.cc: New file.
6423         * modules/string-tests (Files): Add it and tests/signature.h.
6424         (Depends-on): Add ansi-c++-opt.
6425         (Makefile.am): Arrange to compile and run test-string-c++.
6426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6427         gl_MODULE_INDICATOR.
6428
6429         Tests of module 'stdlib' in C++ mode.
6430         * tests/test-stdlib-c++.cc: New file.
6431         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6432         (Depends-on): Add ansi-c++-opt.
6433         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6434         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6435         gl_MODULE_INDICATOR.
6436
6437         Tests of module 'stdio' in C++ mode.
6438         * tests/test-stdio-c++.cc: New file.
6439         * modules/stdio-tests (Files): Add it and tests/signature.h.
6440         (Depends-on): Add ansi-c++-opt.
6441         (Makefile.am): Arrange to compile and run test-stdio-c++.
6442         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6443         gl_MODULE_INDICATOR.
6444
6445         Tests of module 'spawn' in C++ mode.
6446         * tests/test-spawn-c++.cc: New file.
6447         * modules/spawn-tests (Files): Add it and tests/signature.h.
6448         (Depends-on): Add ansi-c++-opt.
6449         (Makefile.am): Arrange to compile and run test-spawn-c++.
6450         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6451         gl_MODULE_INDICATOR.
6452
6453         Tests of module 'signal' in C++ mode.
6454         * tests/test-signal-c++.cc: New file.
6455         * modules/signal-tests (Files): Add it and tests/signature.h.
6456         (Depends-on): Add ansi-c++-opt.
6457         (Makefile.am): Arrange to compile and run test-signal-c++.
6458         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6459         gl_MODULE_INDICATOR.
6460
6461         Tests of module 'search' in C++ mode.
6462         * tests/test-search-c++.cc: New file.
6463         * modules/search-tests (Files): Add it and tests/signature.h.
6464         (Depends-on): Add ansi-c++-opt.
6465         (Makefile.am): Arrange to compile and run test-search-c++.
6466         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6467         gl_MODULE_INDICATOR.
6468
6469         Tests of module 'math' in C++ mode.
6470         * tests/test-math-c++.cc: New file.
6471         * modules/math-tests (Files): Add it and tests/signature.h.
6472         (Depends-on): Add ansi-c++-opt.
6473         (Makefile.am): Arrange to compile and run test-math-c++.
6474         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6475
6476         Tests of module 'locale' in C++ mode.
6477         * tests/test-locale-c++.cc: New file.
6478         * modules/locale-tests (Files): Add it and tests/signature.h.
6479         (Depends-on): Add ansi-c++-opt.
6480         (Makefile.am): Arrange to compile and run test-locale-c++.
6481         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6482         gl_MODULE_INDICATOR.
6483
6484         Tests of module 'langinfo' in C++ mode.
6485         * tests/test-langinfo-c++.cc: New file.
6486         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6487         (Depends-on): Add ansi-c++-opt.
6488         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6489         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6490         gl_MODULE_INDICATOR.
6491
6492         Tests of module 'iconv-h' in C++ mode.
6493         * tests/test-iconv-h-c++.cc: New file.
6494         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6495         (Depends-on): Add ansi-c++-opt.
6496         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6497
6498         Tests of module 'glob' in C++ mode.
6499         * tests/test-glob-c++.cc: New file.
6500         * modules/glob-tests (Files): Add it.
6501         (Depends-on): Add ansi-c++-opt.
6502         (Makefile.am): Arrange to compile and run test-glob-c++.
6503
6504         Tests of module 'fcntl-h' in C++ mode.
6505         * tests/test-fcntl-h-c++.cc: New file.
6506         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6507         (Depends-on): Add ansi-c++-opt.
6508         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6509         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6510         gl_MODULE_INDICATOR.
6511
6512         Tests of module 'dirent' in C++ mode.
6513         * tests/test-dirent-c++.cc: New file.
6514         * modules/dirent-tests (Files): Add it and tests/signature.h.
6515         (Depends-on): Add ansi-c++-opt.
6516         (Makefile.am): Arrange to compile and run test-dirent-c++.
6517         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6518         gl_MODULE_INDICATOR.
6519
6520         New module 'ansi-c++-opt'.
6521         * modules/ansi-c++-opt: New file.
6522         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6523
6524         Document C++ namespace mode.
6525         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6526
6527         wctype: Avoid #define replacements in C++ mode.
6528         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6529         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6530         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6531         In C++, define a namespaced alias symbol.
6532         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6533         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6534         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6535         rule.
6536
6537         wchar: Avoid #define replacements in C++ mode.
6538         * lib/wchar.in.h: Include c++defs.h.
6539         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6540         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6541         symbol.
6542         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6543         * modules/wchar (Depends-on): Add c++defs.
6544         (Makefile.am): Update wchar.h rule.
6545
6546         unistd: Avoid #define replacements in C++ mode.
6547         * lib/unistd.in.h: Include c++defs.h.
6548         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6549         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6550         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6551         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6552         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6553         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6554         symbol.
6555         (environ): Update.
6556         * modules/unistd (Depends-on): Add c++defs.
6557         (Makefile.am): Update unistd.h rule.
6558
6559         time: Avoid #define replacements in C++ mode.
6560         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6561         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6562         define a namespaced alias symbol.
6563         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6564         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6565         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6566         * modules/time (Depends-on): Add c++defs, warn-on-use.
6567         (Makefile.am): Update time.h rule.
6568         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6569         * modules/nanosleep (configure.ac): Likewise.
6570         * modules/strptime (configure.ac): Likewise.
6571         * modules/timegm (configure.ac): Likewise.
6572
6573         sys_time: Avoid #define replacements in C++ mode.
6574         * lib/sys_time.in.h: Include c++defs.h.
6575         (gettimeofday): In C++, define a namespaced alias symbol.
6576         * modules/sys_time (Depends-on): Add c++defs.
6577         (Makefile.am): Update sys/time.h rule.
6578
6579         sys_stat: Avoid #define replacements in C++ mode.
6580         * lib/sys_stat.in.h: Include c++defs.h.
6581         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6582         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6583         namespaced alias symbol.
6584         In C++, define a namespaced alias symbol.
6585         * modules/sys_stat (Depends-on): Add c++defs.
6586         (Makefile.am): Update sys/stat.h rule.
6587
6588         sys_socket: Avoid #define replacements in C++ mode.
6589         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6590         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6591         definitions also when the system has a <sys/socket.h>.
6592         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6593         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6594         In C++, define a namespaced alias symbol.
6595         * modules/sys_socket (Depends-on): Add c++defs.
6596         (Makefile.am): Update sys/socket.h rule.
6597
6598         sys_select: Avoid #define replacements in C++ mode.
6599         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6600         definitions also when the system has a <sys/select.h>.
6601         (select): In C++, define a namespaced alias symbol.
6602         * modules/sys_select (Depends-on): Add c++defs.
6603         (Makefile.am): Update sys/select.h rule.
6604
6605         sys_ioctl: Avoid #define replacements in C++ mode.
6606         * lib/sys_ioctl.in.h: Include c++defs.h.
6607         (ioctl): In C++, define a namespaced alias symbol.
6608         * modules/sys_ioctl (Depends-on): Add c++defs.
6609         (Makefile.am): Update sys/ioctl.h rule.
6610
6611         string: Avoid #define replacements in C++ mode.
6612         * lib/string.in.h: Include c++defs.h.
6613         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6614         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6615         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6616         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6617         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6618         * modules/string (Depends-on): Add c++defs.
6619         (Makefile.am): Update string.h rule.
6620
6621         stdlib: Avoid #define replacements in C++ mode.
6622         * lib/stdlib.in.h: Include c++defs.h.
6623         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6624         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6625         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6626         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6627         symbol.
6628         * modules/stdlib (Depends-on): Add c++defs.
6629         (Makefile.am): Update stdlib.h rule.
6630
6631         stdio: Avoid #define replacements in C++ mode.
6632         * lib/stdio.in.h: Include c++defs.h.
6633         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6634         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6635         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6636         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6637         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6638         namespaced alias symbol.
6639         * modules/stdio (Depends-on): Add c++defs.
6640         (Makefile.am): Update stdio.h rule.
6641
6642         spawn: Avoid #define replacements in C++ mode.
6643         * lib/spawn.in.h: Include c++defs.h.
6644         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6645         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6646         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6647         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6648         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6649         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6650         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6651         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6652         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6653         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6654         In C++, define a namespaced alias symbol.
6655         * modules/spawn (Depends-on): Add c++defs.
6656         (Makefile.am): Update spawn.h rule.
6657
6658         signal: Avoid #define replacements in C++ mode.
6659         * lib/signal.in.h: Include c++defs.h.
6660         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6661         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6662         namespaced alias symbol.
6663         * modules/signal (Depends-on): Add c++defs.
6664         (Makefile.am): Update signal.h rule.
6665
6666         search: Avoid #define replacements in C++ mode.
6667         * lib/search.in.h: Include c++defs.h.
6668         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6669         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6670         symbol.
6671         * modules/search (Depends-on): Add c++defs.
6672         (Makefile.am): Update search.h rule.
6673
6674         math: Avoid #define replacements in C++ mode.
6675         * lib/math.in.h: Include c++defs.h.
6676         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6677         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6678         trunc, truncl): In C++, define a namespaced alias symbol.
6679         * modules/math (Depends-on): Add c++defs.
6680         (Makefile.am): Update math.h rule.
6681
6682         locale: Avoid #define replacements in C++ mode.
6683         * lib/locale.in.h: Include c++defs.h.
6684         (duplocale): In C++, define a namespaced alias symbol.
6685         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6686         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6687         * modules/locale (Depends-on): Add c++defs.
6688         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6689
6690         langinfo: Avoid #define replacements in C++ mode.
6691         * lib/langinfo.in.h: Include c++defs.h.
6692         (nl_langinfo): In C++, define a namespaced alias symbol.
6693         * modules/langinfo (Depends-on): Add c++defs.
6694         (Makefile.am): Update langinfo.h rule.
6695
6696         iconv-h: Avoid #define replacements in C++ mode.
6697         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6698         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6699         symbol.
6700         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6701         whenever iconv is present.
6702         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6703         (Makefile.am): Update iconv.h rule.
6704
6705         glob: Avoid #define replacements in C++ mode.
6706         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6707         (_gl_glob_errfunc_fn): New type.
6708         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6709         symbol.
6710         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6711         (Makefile.am): Update glob.h rule.
6712
6713         fcntl-h: Avoid #define replacements in C++ mode.
6714         * lib/fcntl.in.h: Include c++defs.h.
6715         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6716         * modules/fcntl-h (Depends-on): Add c++defs.
6717         (Makefile.am): Update fcntl.h rule.
6718
6719         dirent: Avoid #define replacements in C++ mode.
6720         * lib/dirent.in.h: Include c++defs.h.
6721         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6722         namespaced alias symbol.
6723         (dirfd): Update declaration.
6724         * modules/dirent (Depends-on): Add c++defs.
6725         (Makefile.am): Update dirent.h rule.
6726
6727         ctype: Make it usable in C++ code.
6728         * lib/ctype.in.h: Include c++defs.h.
6729         (isblank): Declare as extern "C".
6730         * modules/ctype (Depends-on): Add c++defs.
6731         (Makefile.am): Update ctype.h rule.
6732
6733         New module 'c++defs'.
6734         * modules/c++defs: New file.
6735         * build-aux/c++defs.h: New file.
6736         Reported by John W. Eaton <jwe@gnu.org>.
6737
6738 2010-03-07  Bruno Haible  <bruno@clisp.org>
6739
6740         logb: Provide missing declaration for Cygwin.
6741         * lib/math.in.h (logb): New declaration.
6742         * m4/logb.m4: New file.
6743         * modules/logb (Files): Add m4/logb.m4.
6744         (Depends-on): Add math.
6745         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6746         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6748         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6749         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6750
6751 2010-03-07  Bruno Haible  <bruno@clisp.org>
6752
6753         Fix test-cond link error.
6754         * tests/test-cond.c: Include <stdio.h>.
6755
6756 2010-03-07  Bruno Haible  <bruno@clisp.org>
6757
6758         Fix test-dirent-safer link error.
6759         * modules/dirent-safer-tests (Makefile.am): Define
6760         test_dirent_safer_LDADD.
6761
6762 2010-03-07  Bruno Haible  <bruno@clisp.org>
6763
6764         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6765         among default module list.
6766
6767 2010-03-07  Bruno Haible  <bruno@clisp.org>
6768
6769         Fix link error on platforms with GNU libiconv.
6770         * modules/unistr/u8-strcoll-tests (Makefile): Define
6771         test_u8_strcoll_LDADD.
6772         * modules/unistr/u16-strcoll-tests (Makefile): Define
6773         test_u16_strcoll_LDADD.
6774         * modules/unistr/u32-strcoll-tests (Makefile): Define
6775         test_u32_strcoll_LDADD.
6776
6777 2010-03-07  Bruno Haible  <bruno@clisp.org>
6778
6779         Use POSIX declarations for socket functions.
6780         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6781         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6782         rpl_sendto): Change declaration to match POSIX.
6783         * lib/connect.c (rpl_connect): Likewise.
6784         * lib/accept.c (rpl_accept): Likewise.
6785         * lib/bind.c (rpl_bind): Likewise.
6786         * lib/getpeername.c (rpl_getpeername): Likewise.
6787         * lib/getsockname.c (rpl_getsockname): Likewise.
6788         * lib/recv.c (rpl_recv): Likewise.
6789         * lib/send.c (rpl_send): Likewise.
6790         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6791         * lib/sendto.c (rpl_sendto): Likewise.
6792
6793 2010-03-06  Bruno Haible  <bruno@clisp.org>
6794
6795         Clarify access, euidaccess, faccessat.
6796         * doc/posix-functions/faccessat.texi: Mention security problem under
6797         "Other problems", not "Portability problems".
6798         * doc/posix-functions/access.texi: Likewise. Mention a related security
6799         problem.
6800         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6801         * lib/euidaccess.c: Add comments about platforms.
6802         * lib/unistd.in.h (access, euidaccess): Add warnings.
6803
6804 2010-03-07  Bruno Haible  <bruno@clisp.org>
6805
6806         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6807         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6808         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6809         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6810         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6811         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6812         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6813         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6814         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6816         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6817         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6818         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6819         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6820         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6821         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6822         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6823         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6824         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6825         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6826         Likewise.
6827         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6828         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6829         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6830         Likewise.
6831         * tests/test-spawn.c (main): Make it work when
6832         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6833
6834 2010-03-07  Bruno Haible  <bruno@clisp.org>
6835
6836         Fix incorrect Makefile.am generation in German locale.
6837         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6838         Execute sed command with character range in C locale.
6839
6840 2010-03-06  Bruno Haible  <bruno@clisp.org>
6841
6842         Tests for module 'iconv-h'.
6843         * modules/iconv-h-tests: New file.
6844         * tests/test-iconv-h.c: New file.
6845
6846         New module 'iconv-h'.
6847         * modules/iconv-h: New file.
6848         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6849         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6850         (configure.ac): Remove gl_ICONV_H.
6851         (Makefile.am): Remove rule for iconv.h.
6852
6853 2010-03-06  Bruno Haible  <bruno@clisp.org>
6854
6855         More consistent naming of *.m4 files.
6856         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6857         * modules/wctype (Files): Update.
6858
6859         More consistent naming of *.m4 files.
6860         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6861         * modules/wchar (Files): Update.
6862
6863 2010-03-06  Jim Meyering  <meyering@redhat.com>
6864
6865         euidaccess: relax license to LGPLv2+
6866         * modules/euidaccess (License): Relax to LGPLv2+.
6867
6868 2010-03-06  Bruno Haible  <bruno@clisp.org>
6869
6870         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6871         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6872         (Makefile.am): Augment lib_SOURCES instead.
6873
6874 2010-03-04  Jim Meyering  <meyering@redhat.com>
6875
6876         utime: remove obsolete module
6877         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6878         unnecessary for years, and has been marked as obsolete for 10 months.
6879         * modules/utime: Remove file.
6880         * lib/utime.c: Remove file.
6881         * m4/utime.m4: Remove file.
6882         * m4/utimes-null.m4: Remove file.
6883         * doc/posix-functions/utime.texi (utime): Remove reference to
6884         the module.  Move the sole "fixed by gnulib" item into the
6885         "problems not fixed by Gnulib" list.
6886         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6887
6888 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6889
6890         * modules/exit (License): Relax license to LGPLv2+.
6891         (Status): Mark as obsolete.
6892         * NEWS: Mention deprecated 'exit' module.
6893         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6894         of now obsolete 'exit'.
6895
6896 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6897
6898         fts-lgpl: remove unused module
6899         * modules/fts-lgpl: Remove.
6900         * MODULES.html.sh (func_all_modules): Adjust.
6901         * check-module (find_included_lib_files): Adjust.
6902         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6903
6904 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6905
6906         copy-acl: enhance Solaris ACL error handling
6907         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6908         * lib/set-mode-acl.c (qset_acl): Likewise.
6909
6910 2010-03-02  Bruno Haible  <bruno@clisp.org>
6911
6912         spawn: Don't override the system defined values on FreeBSD 8.
6913         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6914         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6915         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6916         if HAVE_POSIX_SPAWN is 1.
6917         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6918
6919 2010-03-01  Bruno Haible  <bruno@clisp.org>
6920
6921         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6922         regarding Automake.
6923
6924 2010-02-25  Bruno Haible  <bruno@clisp.org>
6925
6926         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6927         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6928         setting, not afterwards.
6929         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6930
6931 2010-02-24  Eric Blake  <eblake@redhat.com>
6932
6933         bootstrap, git-version-gen: use timestamp
6934         * build-aux/git-version-gen (scriptversion): Force UTC.
6935         * build-aux/bootstrap (scriptversion): New variable.
6936
6937         bootstrap: allow older git
6938         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6939         older than 1.6.4.  Requested by the libvirt project.
6940
6941 2010-02-23  Eric Blake  <eblake@redhat.com>
6942
6943         warn-on-use: work with old autoconf
6944         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6945         AS_VAR semantics of autoconf 2.60.
6946         Reported by Bruno Haible.
6947
6948         bootstrap: improve some comments
6949         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6950         clarification comments.
6951
6952         gettimeofday: provide correct function
6953         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6954         when replacement is declared, otherwise provide gettimeofday.
6955         Reported by Michael Goffioul.
6956
6957 2010-02-23  Jim Meyering  <meyering@redhat.com>
6958
6959         lib-ignore: relax license to "unlimited", not LGPLv2+
6960         * modules/lib-ignore (License): Relax to "unlimited".
6961
6962 2010-02-23  Jim Meyering  <meyering@redhat.com>
6963
6964         lib-ignore: relax license to LGPLv2+
6965         * modules/lib-ignore (License): Relax to LGPLv2+.
6966
6967 2010-02-22  Eric Blake  <eblake@redhat.com>
6968
6969         lseek: avoid bash 3.2 broken pipe bug
6970         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
6971         warning from bash 3.2.
6972         Reported by Ben Pfaff, with analysis from Bruno Haible.
6973
6974         bootstrap: support non-FSF copyright holder
6975         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
6976         bootstrap.conf override of COPYRIGHT_HOLDER.
6977         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
6978
6979         bootstrap: interoperate with gettext 0.14.1
6980         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
6981
6982         bootstrap: allow for alternate submodule location
6983         * build-aux/bootstrap (gnulib_path): New variable; use instead of
6984         hardcoding submodule location.
6985         (gnulib_mk): Allow direct use of Makefile.am.
6986
6987         bootstrap: use GNULIB_SRCDIR to reduce disk usage
6988         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
6989         rather than reconfiguring where the submodule points.
6990
6991         gettimeofday: restore support for platforms that lack function
6992         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
6993         replacement if function is missing.
6994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
6995         * modules/sys_time (Makefile.am): Substitute it.
6996         * lib/sys_time.in.h (gettimeofday): Check it.
6997         Reported by Michael Goffioul.
6998
6999 2010-02-21  Bruno Haible  <bruno@clisp.org>
7000
7001         * lib/stdio.in.h (obstack_printf): Fix typo.
7002
7003 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7004
7005         vc-list-files: use bzr ls's -R option
7006         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7007         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7008
7009 2010-02-21  Jim Meyering  <meyering@redhat.com>
7010
7011         init.sh: fix EXEEXT shims to work also for names like test-prog
7012         * tests/init.sh: Re-exec a better shell, when needed.
7013         If the current shell lacks support for posix $(...), an init.sh-using
7014         test will now try to find a shell that supports that.  If EXEEXT is
7015         nonempty, we also require support for hyphen-in-alias-name and shell
7016         substitutions like ${var#glob}.  Failure to find such a shell results
7017         in a skipped test.
7018
7019 2010-02-21  Bruno Haible  <bruno@clisp.org>
7020
7021         Really work around around "broken pipe" error message from bash 3.2.
7022         * gnulib-tool (func_reset_sigpipe): Remove function.
7023         (echo): In bash 3.2, define to a function that uses printf.
7024         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7025
7026 2010-02-20  Bruno Haible  <bruno@clisp.org>
7027
7028         Restore support for automake 1.9.6 with autoconf 2.61.
7029         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7030         Reported by James Youngman <jay@gnu.org>.
7031
7032 2010-02-20  Bruno Haible  <bruno@clisp.org>
7033
7034         Improve *printf warning condition.
7035         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7036         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7037         and the function is overridden due to SIGPIPE emulation.
7038
7039 2010-02-20  Bruno Haible  <bruno@clisp.org>
7040
7041         * lib/stdio.in.h: Tweak comments.
7042
7043 2010-02-19  Bruno Haible  <bruno@clisp.org>
7044
7045         Make it easier to find modules. New gnulib-tool option '--find'.
7046         * gnulib-tool: New option --find.
7047         (func_usage): Document it.
7048         (func_sanitize_modulelist): New function, extracted from
7049         func_all_modules.
7050         (func_all_modules): Invoke it.
7051         * doc/gnulib-tool.texi (Which modules?): New node.
7052
7053 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7054
7055         * lib/sys_select.in.h: Provide select replacement even if
7056         sys/select.h exists on a system, for Interix.
7057
7058 2010-02-18  Jim Meyering  <meyering@redhat.com>
7059
7060         init.sh: don't use $(...) just yet
7061         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7062         to accommodate e.g., Solaris' /bin/sh.
7063
7064 2010-02-17  Bruno Haible  <bruno@clisp.org>
7065
7066         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7067         Reported by Ludovic Courtès <ludo@gnu.org>.
7068
7069 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7070
7071         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7072         linking with -lintl.
7073
7074 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7075
7076         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7077         if not provided by the system's netdb.h.  Reported by
7078         ludo@gnu.org (Ludovic Courtès).
7079
7080 2010-02-15  Jim Meyering  <meyering@redhat.com>
7081
7082         init.sh: improve portability and efficiency
7083         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7084         "dummy" in a for loop.
7085         Use '!', not '^' to select the complement of a character set used
7086         in a "case" statement.
7087         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7088         Suggestions from Eric Blake.
7089
7090         init.sh: automatically accommodate programs with the .exe suffix
7091         Automatically arrange for an invocation of "prog" to execute the
7092         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7093         may use the simpler "prog", yet still work when built on a system
7094         that requires specifying the added suffix.
7095         Do this by constructing a function named "prog" that invokes
7096         "prog.exe" for each .exe file in selected directories.
7097         * tests/init.sh (find_exe_basenames_): New function.
7098         (create_exe_shim_functions_): New function.
7099         (path_prepend_): Use it.
7100
7101         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7102         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7103         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7104
7105 2010-02-14  Jim Meyering  <meyering@redhat.com>
7106
7107         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7108         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7109         (sc_prohibit_hash_pjw_without_use): New rule.
7110
7111         maint.mk: allow the default upload destination dir to be overridden
7112         * top/maint.mk (upload_dest_dir_): Define with a default that
7113         preserves the status quo.
7114         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7115         Reported by Peter Simons.
7116
7117         maint.mk: prohibit inclusion of "hash.h" without_use
7118         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7119
7120 2010-02-10  Jim Meyering  <meyering@redhat.com>
7121
7122         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7123         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7124
7125 2010-02-09  Eric Blake  <ebb9@byu.net>
7126         and Bruno Haible  <bruno@clisp.org>
7127
7128         obstack-printf-posix: ensure declaration
7129         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7130         extracted from gl_FUNC_OBSTACK_PRINTF.
7131         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7132         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7133         Likewise.
7134         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7135         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7136         0.
7137
7138 2010-02-08  Bruno Haible  <bruno@clisp.org>
7139
7140         gnulib-tool: Fix typo in 2010-02-07 commit.
7141         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7142         Reported by Eric Blake.
7143
7144 2010-02-07  Bruno Haible  <bruno@clisp.org>
7145
7146         gnulib-tool: Fix up caching patches.
7147         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7148         option --no-cache. Use associative arrays when supported by the shell.
7149         (sed_comments): New variable.
7150         (modcache): Renamed from do_cache.
7151         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7152         abbreviate unnecessarily.
7153         (have_associative): New variable.
7154         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7155         way also for ksh and zsh.
7156         (func_init_sed_convert_to_cache_statements): New function, extracted
7157         from func_cache_lookup_module. Add support for associative arrays.
7158         Don't set the c_MODULE_cached variable here. Ignore all lines before
7159         the first field header. Remove only the final newline, not all trailing
7160         newlines. Support empty fields correctly. Limit the use of 'eval' to
7161         assignments.
7162         (func_get_description, func_get_status, func_get_notice,
7163         func_get_applicability, func_get_filelist, func_get_dependencies,
7164         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7165         func_get_automake_snippet, func_get_include_directive,
7166         func_get_link_directive, func_get_license, func_get_maintainer):
7167         Update documentation. List the unoptimized code first. Add support for
7168         associative arrays. Limit the use of 'eval' to assignments.
7169         (func_get_applicability): Undo stylistic pessimisations.
7170         (func_get_automake_snippet, func_get_include_directive): Reduce code
7171         duplication.
7172         (func_modules_transitive_closure, func_modules_add_dummy,
7173         func_modules_notice, func_modules_to_filelist, func_add_file,
7174         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7175         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7176         func_create_testdir, func_create_megatestdir): Update documentation.
7177
7178 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7179
7180         * gnulib-tool (func_cache_lookup_module): Store the module name
7181         belonging to the cache variable; error out if two different
7182         module names map to the same cache variable name.
7183
7184 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7185
7186         gnulib-tool: Make caching optional.
7187         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7188         Update matching short versions of --no-changelog.
7189         (func_usage): Update.
7190         (sed_extract_cache_prog): Renamed from ...
7191         (sed_extract_prog): ... this; revert to old extraction script.
7192         (func_get_description, func_get_status)
7193         (func_get_notice, func_get_applicability, func_get_filelist)
7194         (func_get_dependencies, func_get_autoconf_early_snippet)
7195         (func_get_autoconf_snippet, func_get_automake_snippet)
7196         (func_get_include_directive, func_get_link_directive)
7197         (func_get_license, func_get_maintainer): If $do_cache is false,
7198         use old, non-caching extraction scripts.
7199         Suggestion by Bruno Haible.
7200
7201 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7202
7203         gnulib-tool: cache module metainformation.
7204         * gnulib-tool (sed_extract_prog): Match newline before each
7205         header, and rewrite header to a shell variable suffix.
7206         (func_cache_var, func_cache_lookup_module): New functions,
7207         to turn a module name into a cache variable prefix, and to
7208         look up and cache module metainformation.
7209         (func_get_description, func_get_status)
7210         (func_get_notice, func_get_applicability, func_get_filelist)
7211         (func_get_dependencies, func_get_autoconf_early_snippet)
7212         (func_get_autoconf_snippet, func_get_automake_snippet)
7213         (func_get_include_directive, func_get_link_directive)
7214         (func_get_license, func_get_maintainer): Use
7215         func_cache_lookup_module.
7216
7217 2010-02-07  Bruno Haible  <bruno@clisp.org>
7218
7219         fnctl: Fix missing dependency.
7220         * modules/fcntl (Depends-on): Add getdtablesize.
7221         Reported by John W. Eaton <jwe@gnu.org>.
7222
7223 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7224
7225         Argp: fix recognition of short alias options.
7226
7227         * lib/argp-parse.c (convert_options): Fix improper use of
7228         `|' between character values.
7229         * tests/test-argp.c (group1_option): New alias option
7230         --read (-r).
7231         (group1_parser): Special handling for 'r'.
7232         (test15): New test case.
7233         (test_fun): Add test15.
7234         * tests/test-argp-2.sh: Update expected --help and --usage
7235         outputs.
7236
7237 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7238
7239         * tests/test-argp.c: Fix indentation.
7240
7241 2010-02-04  Eric Blake  <ebb9@byu.net>
7242
7243         gettimeofday: expose type of second argument
7244         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7245         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7246         * tests/test-gettimeofday.c: Use it to silence warning.
7247         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7248         the issue.
7249
7250 2010-02-03  Jim Meyering  <meyering@redhat.com>
7251
7252         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7253         * lib/regcomp.c (TYPE_SIGNED): Define.
7254         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7255
7256         regcomp.c: avoid a new -Wshadow warning
7257         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7258
7259 2010-02-01  Jim Meyering  <meyering@redhat.com>
7260
7261         removing useless parentheses in cpp #define directives
7262         For motivation, see commit c0221df4, "define STREQ(a,b)
7263         consistently, removing useless parentheses"
7264         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7265         * lib/mountlist.c (MNT_IGNORE): Likewise.
7266         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7267
7268 2010-02-01  Eric Blake  <ebb9@byu.net>
7269
7270         sys_time: use link-warning
7271         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7272         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7273         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7274         * modules/sys_time (Depends-on): Add warn-on-use.
7275         (Makefile.am): Always build replacement.
7276         (configure.ac): Update substitutions.
7277         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7278         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7279         bother with SYS_TIME_H.
7280         * modules/gettimeofday (configure.ac): Declare indicator.
7281         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7282         in use.
7283
7284         closein-tests: silence compiler warning
7285         * tests/test-closein.c (main): Ignore fread result.
7286         * modules/closein-tests (Depends-on): Add ignore-value.
7287
7288         tests: silence warning about system return
7289         * tests/test-areadlink-with-size.c (main): Ignore system result.
7290         * tests/test-areadlink.c (main): Likewise.
7291         * tests/test-areadlinkat-with-size.c (main): Likewise.
7292         * tests/test-areadlinkat.c (main): Likewise.
7293         * tests/test-canonicalize-lgpl.c (main): Likewise.
7294         * tests/test-canonicalize.c (main): Likewise.
7295         * tests/test-chown.c (main): Likewise.
7296         * tests/test-fchownat.c (main): Likewise.
7297         * tests/test-fdutimensat.c (main): Likewise.
7298         * tests/test-fstatat.c (main): Likewise.
7299         * tests/test-futimens.c (main): Likewise.
7300         * tests/test-lchown.c (main): Likewise.
7301         * tests/test-link.c (main): Likewise.
7302         * tests/test-linkat.c (main): Likewise.
7303         * tests/test-lstat.c (main): Likewise.
7304         * tests/test-mkdir.c (main): Likewise.
7305         * tests/test-mkdirat.c (main): Likewise.
7306         * tests/test-mkfifo.c (main): Likewise.
7307         * tests/test-mkfifoat.c (main): Likewise.
7308         * tests/test-mknod.c (main): Likewise.
7309         * tests/test-readlink.c (main): Likewise.
7310         * tests/test-remove.c (main): Likewise.
7311         * tests/test-rename.c (main): Likewise.
7312         * tests/test-renameat.c (main): Likewise.
7313         * tests/test-rmdir.c (main): Likewise.
7314         * tests/test-symlink.c (main): Likewise.
7315         * tests/test-symlinkat.c (main): Likewise.
7316         * tests/test-unlink.c (main): Likewise.
7317         * tests/test-unlinkat.c (main): Likewise.
7318         * tests/test-utimens.c (main): Likewise.
7319         * tests/test-utimensat.c (main): Likewise.
7320         * modules/areadlink-tests (Depends-on): Add ignore-value.
7321         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7322         * modules/areadlinkat-tests (Depends-on): Likewise.
7323         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7324         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7325         * modules/canonicalize-tests (Depends-on): Likewise.
7326         * modules/chown-tests (Depends-on): Likewise.
7327         * modules/fdutimensat-tests (Depends-on): Likewise.
7328         * modules/futimens-tests (Depends-on): Likewise.
7329         * modules/lchown-tests (Depends-on): Likewise.
7330         * modules/link-tests (Depends-on): Likewise.
7331         * modules/linkat-tests (Depends-on): Likewise.
7332         * modules/lstat-tests (Depends-on): Likewise.
7333         * modules/mkdir-tests (Depends-on): Likewise.
7334         * modules/mkfifo-tests (Depends-on): Likewise.
7335         * modules/mkfifoat-tests (Depends-on): Likewise.
7336         * modules/mknod-tests (Depends-on): Likewise.
7337         * modules/openat-tests (Depends-on): Likewise.
7338         * modules/readlink-tests (Depends-on): Likewise.
7339         * modules/remove-tests (Depends-on): Likewise.
7340         * modules/rename-tests (Depends-on): Likewise.
7341         * modules/renameat-tests (Depends-on): Likewise.
7342         * modules/rmdir-tests (Depends-on): Likewise.
7343         * modules/symlink-tests (Depends-on): Likewise.
7344         * modules/symlinkat-tests (Depends-on): Likewise.
7345         * modules/unlink-tests (Depends-on): Likewise.
7346         * modules/utimens-tests (Depends-on): Likewise.
7347         * modules/utimensat-tests (Depends-on): Likewise.
7348
7349 2010-01-31  Bruno Haible  <bruno@clisp.org>
7350
7351         Perform the same test for many <math.h> functions.
7352         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7353         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7354         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7355         of gl_MATHFUNC.
7356         * modules/acos (configure.ac): Likewise.
7357         * modules/asin (configure.ac): Likewise.
7358         * modules/atan (configure.ac): Likewise.
7359         * modules/atan2 (configure.ac): Likewise.
7360         * modules/cbrt (configure.ac): Likewise.
7361         * modules/copysign (configure.ac): Likewise.
7362         * modules/cos (configure.ac): Likewise.
7363         * modules/cosh (configure.ac): Likewise.
7364         * modules/erf (configure.ac): Likewise.
7365         * modules/erfc (configure.ac): Likewise.
7366         * modules/exp (configure.ac): Likewise.
7367         * modules/fmod (configure.ac): Likewise.
7368         * modules/hypot (configure.ac): Likewise.
7369         * modules/j0 (configure.ac): Likewise.
7370         * modules/j1 (configure.ac): Likewise.
7371         * modules/jn (configure.ac): Likewise.
7372         * modules/lgamma (configure.ac): Likewise.
7373         * modules/log (configure.ac): Likewise.
7374         * modules/log10 (configure.ac): Likewise.
7375         * modules/log1p (configure.ac): Likewise.
7376         * modules/pow (configure.ac): Likewise.
7377         * modules/remainder (configure.ac): Likewise.
7378         * modules/sin (configure.ac): Likewise.
7379         * modules/sinh (configure.ac): Likewise.
7380         * modules/tan (configure.ac): Likewise.
7381         * modules/tanh (configure.ac): Likewise.
7382         * modules/y0 (configure.ac): Likewise.
7383         * modules/y1 (configure.ac): Likewise.
7384         * modules/yn (configure.ac): Likewise.
7385         Suggested by Paolo Bonzini.
7386
7387 2010-01-31  Bruno Haible  <bruno@clisp.org>
7388
7389         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7390
7391 2010-01-31  Bruno Haible  <bruno@clisp.org>
7392
7393         Work around getdelim() bug on FreeBSD 8.0.
7394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7395         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7396         not work.
7397         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7398         is 1.
7399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7400         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7401         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7402         a non-zero size.
7403         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7404
7405 2010-01-31  Bruno Haible  <bruno@clisp.org>
7406
7407         Work around getline() bug on FreeBSD 8.0.
7408         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7409         and a non-zero size.
7410         * tests/test-getline.c (main): Likewise.
7411         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7412         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7413
7414 2010-01-28  Eric Blake  <ebb9@byu.net>
7415
7416         regex: fix build failure
7417         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7418         platforms.
7419
7420 2010-01-28  Jim Meyering  <meyering@redhat.com>
7421
7422         regex: do not ignore memory allocation failure
7423         * lib/regex_internal.c (create_cd_newstate): Detect
7424         re_node_set_init_copy failure.   Extracted from glibc commit
7425         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7426
7427         regex: sync more white-space changes from libc
7428         * lib/regex_internal.c: White-space only changes.
7429         * lib/regexec.c: Likewise.
7430
7431         regex: add many uses of __attribute_warn_unused_result__
7432         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7433         * lib/regexec.c: Likewise.
7434         Extracted from a messy glibc commit.
7435
7436         regcomp.c: spelling and merge-artifact from glibc
7437         * lib/regcomp.c: Merge remainder of glibc's
7438         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7439
7440         regcomp.c: sync white-space changes from glibc
7441         * lib/regcomp.c: Merge to accommodate white space
7442         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7443
7444         regcomp.c: do not ignore internal return values
7445         * lib/regcomp.c: Do not ignore internal return values.
7446         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7447         but without its white-space changes and spelling fixes.
7448
7449         regex_internal.h: define __attribute_warn_unused_result__
7450         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7451
7452         maint: add a syntax-check rule to check for vulnerable Makefile.in
7453         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7454
7455 2010-01-27  Jim Meyering  <meyering@redhat.com>
7456
7457         ncftpput-ftp: clean up spaces
7458         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7459         Remove trailing blanks.
7460
7461 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7462
7463         * build-aux/git-version-gen: Fix copyright statement.
7464         * build-aux/gnupload: Likewise.
7465         * tests/test-arcfour.c: Likewise.
7466         * tests/test-arctwo.c: Likewise.
7467         * tests/test-count-one-bits.c: Likewise.
7468         * tests/test-crc.c: Likewise.
7469         * tests/test-des.c: Likewise.
7470         * tests/test-gc-arcfour.c: Likewise.
7471         * tests/test-gc-arctwo.c: Likewise.
7472         * tests/test-gc-des.c: Likewise.
7473         * tests/test-gc-hmac-md5.c: Likewise.
7474         * tests/test-gc-hmac-sha1.c: Likewise.
7475         * tests/test-gc-md2.c: Likewise.
7476         * tests/test-gc-md4.c: Likewise.
7477         * tests/test-gc-md5.c: Likewise.
7478         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7479         * tests/test-gc-rijndael.c: Likewise.
7480         * tests/test-gc-sha1.c: Likewise.
7481         * tests/test-gc.c: Likewise.
7482         * tests/test-gethostname.c: Likewise.
7483         * tests/test-gettimeofday.c: Likewise.
7484         * tests/test-hash.c: Likewise.
7485         * tests/test-hmac-md5.c: Likewise.
7486         * tests/test-hmac-sha1.c: Likewise.
7487         * tests/test-md2.c: Likewise.
7488         * tests/test-md4.c: Likewise.
7489         * tests/test-md5.c: Likewise.
7490         * tests/test-memchr.c: Likewise.
7491         * tests/test-memchr2.c: Likewise.
7492         * tests/test-memcmp.c: Likewise.
7493         * tests/test-memmem.c: Likewise.
7494         * tests/test-memrchr.c: Likewise.
7495         * tests/test-rawmemchr.c: Likewise.
7496         * tests/test-read-file.c: Likewise.
7497         * tests/test-rijndael.c: Likewise.
7498         * tests/test-sockets.c: Likewise.
7499         * tests/test-strchrnul.c: Likewise.
7500         * tests/test-strstr.c: Likewise.
7501         * tests/test-strtod.c: Likewise.
7502         * build-aux/ncftpput-ftp: Likewise.
7503
7504 2010-01-26  Eric Blake  <ebb9@byu.net>
7505
7506         ignore-value: update recommended header name
7507         * modules/ignore-value (Include): Only use <> for headers that
7508         exist in glibc.
7509
7510 2010-01-26  Jim Meyering  <meyering@redhat.com>
7511
7512         test-userspec.c: avoid compiler warnings
7513         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7514         and "initialization discards qualifiers..." warnings.
7515         Put the first "uid" in its own scope, and make char* members "const".
7516
7517 2010-01-25  Bruno Haible  <bruno@clisp.org>
7518
7519         gnulib-tool: Make warning diagnostics consistent.
7520         * gnulib-tool (func_warning): New function.
7521         Use it everywhere where gnulib-tool produces output to stderr and it is
7522         not a fatal error.
7523
7524 2010-01-25  Bruno Haible  <bruno@clisp.org>
7525
7526         Fix test dependencies.
7527         * modules/xstrtol-tests (Depends-on): Add inttypes.
7528         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7529
7530 2010-01-25 Pádraig Brady <P@draigBrady.com>
7531
7532         syntax-check: detect incorrect boolean macro values in config.h
7533         * modules/maintainer-makefile (configure.ac): Parameterize the location
7534         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7535         The logic is from Eric Blake and the location indicated by Jim Meyering.
7536         Note the more natural CONFIG_HEADER name is prohibited by automake
7537         for backwards compatibility reasons.
7538         * top/maint.mk (sc_Wundef_boolean): New rule.
7539
7540 2010-01-25  Jim Meyering  <meyering@redhat.com>
7541
7542         bootstrap: detect MacOS 10.6's shasum, too
7543         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7544         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7545
7546 2010-01-23  Jim Meyering  <meyering@redhat.com>
7547
7548         xstrtoll: new module
7549         * modules/xstrtoll: New file.
7550         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7551         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7552         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7553         ./configure fails if you use this module and lack "long long".
7554         * modules/xstrtoll-tests: New module.
7555         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7556         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7557         new init.sh-based test framework.
7558
7559 2010-01-24  Bruno Haible  <bruno@clisp.org>
7560
7561         Tests for module 'yn'.
7562         * modules/yn-tests: New file.
7563         * tests/test-yn.c: New file.
7564
7565         Tests for module 'y1'.
7566         * modules/y1-tests: New file.
7567         * tests/test-y1.c: New file.
7568
7569         Tests for module 'y0'.
7570         * modules/y0-tests: New file.
7571         * tests/test-y0.c: New file.
7572
7573         Tests for module 'tanh'.
7574         * modules/tanh-tests: New file.
7575         * tests/test-tanh.c: New file.
7576
7577         Tests for module 'tan'.
7578         * modules/tan-tests: New file.
7579         * tests/test-tan.c: New file.
7580
7581         Tests for module 'sqrt'.
7582         * modules/sqrt-tests: New file.
7583         * tests/test-sqrt.c: New file.
7584
7585         Tests for module 'sinh'.
7586         * modules/sinh-tests: New file.
7587         * tests/test-sinh.c: New file.
7588
7589         Tests for module 'sin'.
7590         * modules/sin-tests: New file.
7591         * tests/test-sin.c: New file.
7592
7593         Tests for module 'rint'.
7594         * modules/rint-tests: New file.
7595         * tests/test-rint.c: New file.
7596
7597         Tests for module 'remainder'.
7598         * modules/remainder-tests: New file.
7599         * tests/test-remainder.c: New file.
7600
7601         Tests for module 'pow'.
7602         * modules/pow-tests: New file.
7603         * tests/test-pow.c: New file.
7604
7605         Tests for module 'nextafter'.
7606         * modules/nextafter-tests: New file.
7607         * tests/test-nextafter.c: New file.
7608
7609         Tests for module 'modf'.
7610         * modules/modf-tests: New file.
7611         * tests/test-modf.c: New file.
7612
7613         Tests for module 'logb'.
7614         * modules/logb-tests: New file.
7615         * tests/test-logb.c: New file.
7616
7617         Tests for module 'log1p'.
7618         * modules/log1p-tests: New file.
7619         * tests/test-log1p.c: New file.
7620
7621         Tests for module 'log10'.
7622         * modules/log10-tests: New file.
7623         * tests/test-log10.c: New file.
7624
7625         Tests for module 'log'.
7626         * modules/log-tests: New file.
7627         * tests/test-log.c: New file.
7628
7629         Tests for module 'lgamma'.
7630         * modules/lgamma-tests: New file.
7631         * tests/test-lgamma.c: New file.
7632
7633         Tests for module 'ldexp'.
7634         * modules/ldexp-tests: New file.
7635         * tests/test-ldexp.c: New file.
7636
7637         Tests for module 'jn'.
7638         * modules/jn-tests: New file.
7639         * tests/test-jn.c: New file.
7640
7641         Tests for module 'j1'.
7642         * modules/j1-tests: New file.
7643         * tests/test-j1.c: New file.
7644
7645         Tests for module 'j0'.
7646         * modules/j0-tests: New file.
7647         * tests/test-j0.c: New file.
7648
7649         Tests for module 'hypot'.
7650         * modules/hypot-tests: New file.
7651         * tests/test-hypot.c: New file.
7652
7653         Tests for module 'fmod'.
7654         * modules/fmod-tests: New file.
7655         * tests/test-fmod.c: New file.
7656
7657         Tests for module 'fabs'.
7658         * modules/fabs-tests: New file.
7659         * tests/test-fabs.c: New file.
7660
7661         Tests for module 'exp'.
7662         * modules/exp-tests: New file.
7663         * tests/test-exp.c: New file.
7664
7665         Tests for module 'erfc'.
7666         * modules/erfc-tests: New file.
7667         * tests/test-erfc.c: New file.
7668
7669         Tests for module 'erf'.
7670         * modules/erf-tests: New file.
7671         * tests/test-erf.c: New file.
7672
7673         Tests for module 'cosh'.
7674         * modules/cosh-tests: New file.
7675         * tests/test-cosh.c: New file.
7676
7677         Tests for module 'cos'.
7678         * modules/cos-tests: New file.
7679         * tests/test-cos.c: New file.
7680
7681         Tests for module 'copysign'.
7682         * modules/copysign-tests: New file.
7683         * tests/test-copysign.c: New file.
7684
7685         Tests for module 'cbrt'.
7686         * modules/cbrt-tests: New file.
7687         * tests/test-cbrt.c: New file.
7688
7689         Tests for module 'atan2'.
7690         * modules/atan2-tests: New file.
7691         * tests/test-atan2.c: New file.
7692
7693         Tests for module 'atan'.
7694         * modules/atan-tests: New file.
7695         * tests/test-atan.c: New file.
7696
7697         Tests for module 'asin'.
7698         * modules/asin-tests: New file.
7699         * tests/test-asin.c: New file.
7700
7701         Tests for module 'acos'.
7702         * modules/acos-tests: New file.
7703         * tests/test-acos.c: New file.
7704
7705 2010-01-24  Bruno Haible  <bruno@clisp.org>
7706
7707         Fix tests for common <math.h> functions.
7708         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7709         code snippet that references the function pointer, rather than merely
7710         calling the function. Substitute the FUNC_LIBM variable.
7711         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7712         * modules/acos (configure.ac): Likewise.
7713         * modules/asin (configure.ac): Likewise.
7714         * modules/atan (configure.ac): Likewise.
7715         * modules/atan2 (configure.ac): Likewise.
7716         * modules/cbrt (configure.ac): Likewise.
7717         * modules/copysign (configure.ac): Likewise.
7718         * modules/cos (configure.ac): Likewise.
7719         * modules/cosh (configure.ac): Likewise.
7720         * modules/erf (configure.ac): Likewise.
7721         * modules/erfc (configure.ac): Likewise.
7722         * modules/exp (configure.ac): Likewise.
7723         * modules/fabs (configure.ac): Likewise.
7724         * modules/fmod (configure.ac): Likewise.
7725         * modules/hypot (configure.ac): Likewise.
7726         * modules/j0 (configure.ac): Likewise.
7727         * modules/j1 (configure.ac): Likewise.
7728         * modules/jn (configure.ac): Likewise.
7729         * modules/ldexp (configure.ac): Likewise.
7730         * modules/lgamma (configure.ac): Likewise.
7731         * modules/log (configure.ac): Likewise.
7732         * modules/log10 (configure.ac): Likewise.
7733         * modules/log1p (configure.ac): Likewise.
7734         * modules/logb (configure.ac): Likewise.
7735         * modules/modf (configure.ac): Likewise.
7736         * modules/nextafter (configure.ac): Likewise.
7737         * modules/pow (configure.ac): Likewise.
7738         * modules/remainder (configure.ac): Likewise.
7739         * modules/rint (configure.ac): Likewise.
7740         * modules/sin (configure.ac): Likewise.
7741         * modules/sinh (configure.ac): Likewise.
7742         * modules/tan (configure.ac): Likewise.
7743         * modules/tanh (configure.ac): Likewise.
7744         * modules/y0 (configure.ac): Likewise.
7745         * modules/y1 (configure.ac): Likewise.
7746         * modules/yn (configure.ac): Likewise.
7747
7748 2010-01-24  Bruno Haible  <bruno@clisp.org>
7749
7750         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7751         * tests/test-acosl.c (x): New variable.
7752         (main): Store argument in x and fetch it from x.
7753         * tests/test-asinl.c (x): New variable.
7754         (main): Store argument in x and fetch it from x.
7755         * tests/test-atanl.c (x): New variable.
7756         (main): Store argument in x and fetch it from x.
7757         * tests/test-cosl.c (x): New variable.
7758         (main): Store argument in x and fetch it from x.
7759         * tests/test-expl.c (x): New variable.
7760         (main): Store argument in x and fetch it from x.
7761         * tests/test-logl.c (x): New variable.
7762         (main): Store argument in x and fetch it from x.
7763         * tests/test-sinl.c (x): New variable.
7764         (main): Store argument in x and fetch it from x.
7765         * tests/test-sqrtl.c (x): New variable.
7766         (main): Store argument in x and fetch it from x.
7767         * tests/test-tanl.c (x): New variable.
7768         (main): Store argument in x and fetch it from x.
7769
7770 2010-01-24  Bruno Haible  <bruno@clisp.org>
7771
7772         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7773         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7774         assignments to the initial TESTS_ENVIRONMENT.
7775         * doc/gnulib.texi (Unit test modules): Document it.
7776         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7777         TESTS_ENVIRONMENT.
7778         * modules/btowc-tests (Makefile.am): Likewise.
7779         * modules/c-stack-tests (Makefile.am): Likewise.
7780         * modules/c-strcase-tests (Makefile.am): Likewise.
7781         * modules/copy-file-tests (Makefile.am): Likewise.
7782         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7783         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7784         * modules/mbrtowc-tests (Makefile.am): Likewise.
7785         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7786         * modules/mbscasestr-tests (Makefile.am): Likewise.
7787         * modules/mbschr-tests (Makefile.am): Likewise.
7788         * modules/mbscspn-tests (Makefile.am): Likewise.
7789         * modules/mbsinit-tests (Makefile.am): Likewise.
7790         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7791         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7792         * modules/mbspbrk-tests (Makefile.am): Likewise.
7793         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7794         * modules/mbsrchr-tests (Makefile.am): Likewise.
7795         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7796         * modules/mbsspn-tests (Makefile.am): Likewise.
7797         * modules/mbsstr-tests (Makefile.am): Likewise.
7798         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7799         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7800         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7801         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7802         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7803         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7804         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7805         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7806         * modules/wcrtomb-tests (Makefile.am): Likewise.
7807         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7808         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7809         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7810         assignments from TESTS_ENVIRONMENT.
7811         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7812         augmentation.
7813         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7814         * modules/atexit-tests (Makefile.am): Likewise.
7815         * modules/binary-io-tests (Makefile.am): Likewise.
7816         * modules/closein-tests (Makefile.am): Likewise.
7817         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7818         * modules/exclude-tests (Makefile.am): Likewise.
7819         * modules/fflush-tests (Makefile.am): Likewise.
7820         * modules/fpending-tests (Makefile.am): Likewise.
7821         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7822         * modules/freadahead-tests (Makefile.am): Likewise.
7823         * modules/freadptr-tests (Makefile.am): Likewise.
7824         * modules/freadseek-tests (Makefile.am): Likewise.
7825         * modules/fseek-tests (Makefile.am): Likewise.
7826         * modules/fseeko-tests (Makefile.am): Likewise.
7827         * modules/ftell-tests (Makefile.am): Likewise.
7828         * modules/ftello-tests (Makefile.am): Likewise.
7829         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7830         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7831         * modules/lseek-tests (Makefile.am): Likewise.
7832         * modules/parse-duration-tests (Makefile.am): Likewise.
7833         * modules/perror-tests (Makefile.am): Likewise.
7834         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7835         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7836         * modules/pipe-tests (Makefile.am): Likewise.
7837         * modules/pread-tests (Makefile.am): Likewise.
7838         * modules/printf-posix-tests (Makefile.am): Likewise.
7839         * modules/select-tests (Makefile.am): Likewise.
7840         * modules/sigpipe-tests (Makefile.am): Likewise.
7841         * modules/tsearch-tests (Makefile.am): Likewise.
7842         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7843         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7844         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7845         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7846         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7847         * modules/version-etc-tests (Makefile.am): Likewise.
7848         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7849         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7850         * modules/xalloc-die-tests (Makefile.am): Likewise.
7851         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7852         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7853         * modules/xstrtol-tests (Makefile.am): Likewise.
7854         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7855         * modules/yesno-tests (Makefile.am): Likewise.
7856         Suggested by Jim Meyering.
7857
7858 2010-01-24  Bruno Haible  <bruno@clisp.org>
7859
7860         More documentation.
7861         * doc/gnulib.texi (Writing modules): New chapter.
7862         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7863         the new chapter.
7864
7865 2010-01-24  Jim Meyering  <meyering@redhat.com>
7866
7867         maint.mk: do not prepend "./" after filtering
7868         * top/maint.mk (_prepend_srcdir_prefix): New variable
7869         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7870         "./" when $(srcdir) is ".".
7871
7872         define STREQ(a,b) consistently, removing useless parentheses
7873         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7874         since the only risk is that "a" or "b" contains an unparenthesized
7875         comma, but if either did that, STREQ would have 3 or more arguments.
7876         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7877         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7878         * lib/hash-triple.c (STREQ): Likewise.
7879         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7880         * lib/getugroups.c (STREQ): Likewise.
7881
7882 2010-01-23  Jim Meyering  <meyering@redhat.com>
7883
7884         maint.mk: fix syntax-check in a non-srcdir build directory
7885         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7886         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7887
7888 2010-01-22  Jim Meyering  <meyering@redhat.com>
7889
7890         userspec: add unit tests
7891         * tests/test-userspec.c: New file.
7892         * modules/userspec-tests: Likewise.
7893
7894 2010-01-21  Jim Meyering  <meyering@redhat.com>
7895
7896         maint.mk: handle source file names containing "." robustly
7897         * top/maint.mk (_dot_escaped_srcdir): Define.
7898         (VC_LIST): Use it in LHS of sed substitution.
7899
7900 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7901
7902         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7903         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7904         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7905         from a non-srcdir build.
7906
7907 2010-01-20  Eric Blake  <ebb9@byu.net>
7908
7909         warn-on-use: use instead of link-warning
7910         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7911         * modules/unistd (Depends-on, Makefile.am): Likewise.
7912         * modules/arpa_inet (Depends-on): Replace link-warning with
7913         warn-on-use.
7914         (Makefile.am): Update rules accordingly.
7915         * modules/ctype (Depends-on, Makefile.am): Likewise.
7916         * modules/dirent (Depends-on, Makefile.am): Likewise.
7917         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7918         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7919         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7920         * modules/locale (Depends-on, Makefile.am): Likewise.
7921         * modules/math (Depends-on, Makefile.am): Likewise.
7922         * modules/search (Depends-on, Makefile.am): Likewise.
7923         * modules/signal (Depends-on, Makefile.am): Likewise.
7924         * modules/spawn (Depends-on, Makefile.am): Likewise.
7925         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7926         * modules/string (Depends-on, Makefile.am): Likewise.
7927         * modules/strings (Depends-on, Makefile.am): Likewise.
7928         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7929         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7930         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7931         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7932         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7933         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7934         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7935         * modules/wchar (Depends-on, Makefile.am): Likewise.
7936         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7937         should be poisoned.
7938         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7939         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7940         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7941         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7942         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7943         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7944         * m4/math_h.m4 (gl_MATH_H): Likewise.
7945         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7946         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7947         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7948         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7949         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7950         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7951         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7952         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7955         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7957         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7959         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7960         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7961         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
7962         GL_LINK_WARNING.
7963         * lib/ctype.in.h: Likewise.
7964         * lib/dirent.in.h: Likewise.
7965         * lib/fcntl.in.h: Likewise.
7966         * lib/inttypes.in.h: Likewise.
7967         * lib/langinfo.in.h: Likewise.
7968         * lib/locale.in.h: Likewise.
7969         * lib/math.in.h: Likewise.
7970         * lib/search.in.h: Likewise.
7971         * lib/signal.in.h: Likewise.
7972         * lib/spawn.in.h: Likewise.
7973         * lib/stdio.in.h: Likewise.
7974         * lib/stdlib.in.h: Likewise.
7975         * lib/string.in.h: Likewise.
7976         * lib/strings.in.h: Likewise.
7977         * lib/sys_file.in.h: Likewise.
7978         * lib/sys_ioctl.in.h: Likewise.
7979         * lib/sys_select.in.h: Likewise.
7980         * lib/sys_socket.in.h: Likewise.
7981         * lib/sys_stat.in.h: Likewise.
7982         * lib/sys_times.in.h: Likewise.
7983         * lib/sys_utsname.in.h: Likewise.
7984         * lib/unistd.in.h: Likewise.
7985         * lib/wchar.in.h: Likewise.
7986
7987 2010-01-20  Bruno Haible  <bruno@clisp.org>
7988
7989         Avoid duplicate -lm.
7990         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
7991         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
7992         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
7993         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
7994         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
7995         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
7996         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
7997         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
7998         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
7999         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8000         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8001         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8002         Reported by Paolo Bonzini.
8003
8004 2010-01-19  Bruno Haible  <bruno@clisp.org>
8005
8006         langinfo, nl_langinfo: Relicense under LGPLv2+.
8007         * modules/langinfo (License): Change to LGPLv2+.
8008         * modules/nl_langinfo (License): Likewise.
8009         Patch by David Lutterkort <lutter@redhat.com>.
8010
8011 2010-01-19  Bruno Haible  <bruno@clisp.org>
8012
8013         Avoid compilation error with cc on OSF/1 5.1.
8014         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8015         statement, not before.
8016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8017
8018 2010-01-18  Bruno Haible  <bruno@clisp.org>
8019
8020         Avoid a link error due to the __printf__ symbol.
8021         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8022         and 2.6.x.
8023         (__format__, __printf__): Remove definitions.
8024         * lib/argp-fmtstream.h: Likewise.
8025         * lib/argp.h: Likewise.
8026         * lib/error.h: Likewise.
8027         * lib/vasnprintf.h: Likewise.
8028         * lib/xprintf.h: Likewise.
8029         * lib/xvasprintf.h: Likewise.
8030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8031
8032 2010-01-18  Bruno Haible  <bruno@clisp.org>
8033
8034         Tests for module 'tanl'.
8035         * modules/tanl-tests: New file.
8036         * tests/test-tanl.c: New file.
8037
8038         Tests for module 'sqrtl'.
8039         * modules/sqrtl-tests: New file.
8040         * tests/test-sqrtl.c: New file.
8041
8042         Tests for module 'sinl'.
8043         * modules/sinl-tests: New file.
8044         * tests/test-sinl.c: New file.
8045
8046         Tests for module 'logl'.
8047         * modules/logl-tests: New file.
8048         * tests/test-logl.c: New file.
8049
8050         Tests for module 'expl'.
8051         * modules/expl-tests: New file.
8052         * tests/test-expl.c: New file.
8053
8054         Tests for module 'cosl'.
8055         * modules/cosl-tests: New file.
8056         * tests/test-cosl.c: New file.
8057
8058         Tests for module 'atanl'.
8059         * modules/atanl-tests: New file.
8060         * tests/test-atanl.c: New file.
8061
8062         Tests for module 'asinl'.
8063         * modules/asinl-tests: New file.
8064         * tests/test-asinl.c: New file.
8065
8066         Tests for module 'acosl'.
8067         * modules/acosl-tests: New file.
8068         * tests/test-acosl.c: New file.
8069
8070         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8071         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8072         tanl): Use the standard gnulib idiom.
8073         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8074         * lib/sinl.c: Likewise.
8075         * lib/tanl.c: Don't include trigl.c.
8076         (kernel_tanl): Make static.
8077         * lib/sincosl.c: Include trigl.h first.
8078         * lib/trigl.c: Likewise.
8079         * m4/acosl.m4: New file.
8080         * m4/asinl.m4: New file.
8081         * m4/atanl.m4: New file.
8082         * m4/cosl.m4: New file.
8083         * m4/expl.m4: New file.
8084         * m4/logl.m4: New file.
8085         * m4/sinl.m4: New file.
8086         * m4/sqrtl.m4: New file.
8087         * m4/tanl.m4: New file.
8088         * m4/mathl.m4: Remove file.
8089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8090         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8091         Don't initialize GNULIB_MATHL.
8092         * modules/acosl: New file.
8093         * modules/asinl: New file.
8094         * modules/atanl: New file.
8095         * modules/cosl: New file.
8096         * modules/expl: New file.
8097         * modules/logl: New file.
8098         * modules/sinl: New file.
8099         * modules/sqrtl: New file.
8100         * modules/tanl: New file.
8101         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8102         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8103         substitute GNULIB_MATHL.
8104         * modules/mathl: Rewritten.
8105         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8106         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8107         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8108         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8109         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8110         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8111         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8112         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8113         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8114
8115 2010-01-18  Bruno Haible  <bruno@clisp.org>
8116
8117         sqrt: Make gl_FUNC_SQRT requirable.
8118         * m4/sqrt.m4: New file.
8119         * modules/sqrt (Files): Add it.
8120         (configure.ac): Invoke gl_FUNC_SQRT.
8121
8122 2010-01-18  Bruno Haible  <bruno@clisp.org>
8123
8124         New modules for common <math.h> functions.
8125         * m4/mathfunc.m4: New file.
8126         * modules/acos: New file.
8127         * modules/asin: New file.
8128         * modules/atan: New file.
8129         * modules/atan2: New file.
8130         * modules/cbrt: New file.
8131         * modules/copysign: New file.
8132         * modules/cos: New file.
8133         * modules/cosh: New file.
8134         * modules/erf: New file.
8135         * modules/erfc: New file.
8136         * modules/exp: New file.
8137         * modules/fabs: New file.
8138         * modules/fmod: New file.
8139         * modules/hypot: New file.
8140         * modules/j0: New file.
8141         * modules/j1: New file.
8142         * modules/jn: New file.
8143         * modules/ldexp: New file.
8144         * modules/lgamma: New file.
8145         * modules/log: New file.
8146         * modules/log10: New file.
8147         * modules/log1p: New file.
8148         * modules/logb: New file.
8149         * modules/modf: New file.
8150         * modules/nextafter: New file.
8151         * modules/pow: New file.
8152         * modules/remainder: New file.
8153         * modules/rint: New file.
8154         * modules/sin: New file.
8155         * modules/sinh: New file.
8156         * modules/sqrt: New file.
8157         * modules/tan: New file.
8158         * modules/tanh: New file.
8159         * modules/y0: New file.
8160         * modules/y1: New file.
8161         * modules/yn: New file.
8162         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8163         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8164         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8165         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8166         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8167         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8168         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8169         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8170         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8171         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8172         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8173         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8174         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8175         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8176         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8177         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8178         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8179         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8180         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8181         * doc/posix-functions/log.texi: Mention the 'log' module.
8182         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8183         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8184         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8185         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8186         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8187         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8188         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8189         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8190         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8191         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8192         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8193         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8194         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8195         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8196         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8197         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8198
8199 2010-01-18  Jim Meyering  <meyering@redhat.com>
8200
8201         ignore-value: relax license to LGPLv2+
8202         * modules/ignore-value (License): Relax to LGPLv2+.
8203
8204         getdate: don't leak when TZ contains two or more '"'s
8205         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8206         double quote in TZ after the first one.
8207
8208         readtokens: do not leak internal token_lengths buffer
8209         * lib/readtokens.c (readtokens): Free the local, lengths,
8210         when the supplied "token_lengths" parameter is NULL.
8211
8212 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8213
8214         Fix a couple of missing LIBTHREAD link failures on AIX.
8215         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8216         $(LIBTHREAD).
8217         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8218
8219         Link test-poll against INET_PTON_LIB.
8220         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8221         for inet_pton on Solaris 10.
8222
8223 2010-01-17  Bruno Haible  <bruno@clisp.org>
8224
8225         unistdio/*-sprintf: Fix typo in module description.
8226         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8227         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8228         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8229         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8230         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8231         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8232         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8233         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8234
8235 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8236
8237         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8238         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8239         variables in shell case patterns, for AIX and HP-UX ksh.
8240
8241         Split large sed scripts, for HP-UX sed.
8242         * modules/stdio: Split sed scripts around 50 sed commands,
8243         to avoid HP-UX limit of 99 commands, in the near future.
8244         * modules/string: Likewise.
8245         * modules/unistd: Likewise.
8246
8247         gnulib-tool: avoid writing in the current directory.
8248         * gnulib-tool (func_emit_lib_Makefile_am)
8249         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8250         not in the current directory, so concurrent gnulib-tool
8251         instances do not interfere.
8252
8253 2010-01-16  Jim Meyering  <meyering@redhat.com>
8254
8255         doc: update users.txt
8256         * users.txt: Add grep.
8257         (diffutils, gzip): Update URLs.
8258
8259 2010-01-12  Bruno Haible  <bruno@clisp.org>
8260
8261         posix_spawn: Avoid test failure on Cygwin.
8262         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8263         characters.
8264         Reported by Simon Josefsson.
8265
8266 2010-01-12  Bruno Haible  <bruno@clisp.org>
8267
8268         * tests/test-cond.c (main): When skipping the test, show the reason.
8269
8270 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8271
8272         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8273
8274 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8275
8276         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8277         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8278
8279 2010-01-12  Eric Blake  <ebb9@byu.net>
8280
8281         build: guarantee AS_VAR_IF
8282         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8283         (gl_AS_VAR_IF): Move...
8284         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8285         Reported by Simon Josefsson.
8286
8287 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8288
8289         * lib/stdio.in.h: Fix typo.
8290
8291 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8292
8293         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8294         libgpg-error.
8295
8296 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8297
8298         * tests/test-xalloc-die.sh: Use $EXEEXT.
8299
8300 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8301             Bruno Haible  <bruno@clisp.org>
8302
8303         getlogin, getlogin_r: Avoid test failure.
8304         * tests/test-getlogin.c: Include <stdio.h>.
8305         (main): Skip the test when the function fails because stdin is not a
8306         tty.
8307         * tests/test-getlogin_r.c: Include <stdio.h>.
8308         (main): Skip the test when the function fails because stdin is not a
8309         tty.
8310
8311 2010-01-11  Eric Blake  <ebb9@byu.net>
8312
8313         tests: avoid more large file warnings
8314         * tests/test-fflush.c: Avoid warning about ftell use.
8315         * tests/test-fseek.c: Avoid warning about fseek use.
8316
8317 2010-01-10  Bruno Haible  <bruno@clisp.org>
8318
8319         nproc: Work better on Linux when /proc and /sys are not mounted.
8320         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8321         as lower bound when, on glibc/Linux systems,
8322         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8323         Suggested by Pádraig Brady <P@draigbrady.com>.
8324         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8325
8326         nproc: Refactor.
8327         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8328         extracted from num_processors.
8329         (num_processors): Call it.
8330
8331 2010-01-11  Jim Meyering  <meyering@redhat.com>
8332
8333         utimecmp: avoid new warning from upcoming gcc-4.5.0
8334         * lib/utimecmp.c (BILLION): Define using #define rather than an
8335         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8336
8337 2010-01-11  Eric Blake  <ebb9@byu.net>
8338
8339         math: add portability warnings for classification macros
8340         * modules/math (Depends-on): Add warn-on-use.
8341         (Makefile.am): Provide new substitutions.
8342         * m4/math_h.m4 (gl_MATH_H): Require inline.
8343         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8344         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8345         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8346         implement warnings.
8347
8348         unistd: warn on use of environ without module
8349         * modules/unistd (Depends-on): Add warn-on-use.
8350         (Makefile.am): Provide new substitutions.
8351         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8352         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8353
8354         stdio: warn on suspicious uses
8355         * modules/stdio (Depends-on): Add warn-on-use.
8356         (Makefile.am): Provide new substitutions.
8357         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8358         fseeko.
8359         * lib/stdio.in.h (gets): Always warn on use.
8360         (fseek, ftell): Adjust when warnings are issued, and honor
8361         _GL_NO_LARGE_FILES as a way to silence the warning.
8362         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8363         any warning about large file offsets.
8364         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8365         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8366         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8367         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8368         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8369         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8370         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8371         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8372
8373         warn-on-use: new module
8374         * modules/warn-on-use: New file.
8375         * build-aux/warn-on-use.h: Likewise.
8376         * m4/warn-on-use.m4: Likewise.
8377         * MODULES.html.sh (Support for building): Mention it.
8378
8379 2010-01-10  Bruno Haible  <bruno@clisp.org>
8380
8381         Tests for module 'unistr/u32-strdup'.
8382         * modules/unistr/u32-strdup-tests: New file.
8383         * tests/unistr/test-u32-strdup.c: New file.
8384
8385         Tests for module 'unistr/u16-strdup'.
8386         * modules/unistr/u16-strdup-tests: New file.
8387         * tests/unistr/test-u16-strdup.c: New file.
8388
8389         Tests for module 'unistr/u8-strdup'.
8390         * modules/unistr/u8-strdup-tests: New file.
8391         * tests/unistr/test-u8-strdup.c: New file.
8392         * tests/unistr/test-strdup.h: New file.
8393
8394         Tests for module 'unistr/u32-strncmp'.
8395         * modules/unistr/u32-strncmp-tests: New file.
8396         * tests/unistr/test-u32-strncmp.c: New file.
8397
8398         Tests for module 'unistr/u16-strncmp'.
8399         * modules/unistr/u16-strncmp-tests: New file.
8400         * tests/unistr/test-u16-strncmp.c: New file.
8401
8402         Tests for module 'unistr/u8-strncmp'.
8403         * modules/unistr/u8-strncmp-tests: New file.
8404         * tests/unistr/test-u8-strncmp.c: New file.
8405         * tests/unistr/test-strncmp.h: New file.
8406
8407         Tests for module 'unistr/u32-strcoll'.
8408         * modules/unistr/u32-strcoll-tests: New file.
8409         * tests/unistr/test-u32-strcoll.c: New file.
8410
8411         Tests for module 'unistr/u16-strcoll'.
8412         * modules/unistr/u16-strcoll-tests: New file.
8413         * tests/unistr/test-u16-strcoll.c: New file.
8414
8415         Tests for module 'unistr/u8-strcoll'.
8416         * modules/unistr/u8-strcoll-tests: New file.
8417         * tests/unistr/test-u8-strcoll.c: New file.
8418
8419         Tests for module 'unistr/u32-strcmp'.
8420         * modules/unistr/u32-strcmp-tests: New file.
8421         * tests/unistr/test-u32-strcmp.c: New file.
8422         * tests/unistr/test-u32-strcmp.h: New file.
8423
8424         Tests for module 'unistr/u16-strcmp'.
8425         * modules/unistr/u16-strcmp-tests: New file.
8426         * tests/unistr/test-u16-strcmp.c: New file.
8427         * tests/unistr/test-u16-strcmp.h: New file.
8428
8429         Tests for module 'unistr/u8-strcmp'.
8430         * modules/unistr/u8-strcmp-tests: New file.
8431         * tests/unistr/test-u8-strcmp.c: New file.
8432         * tests/unistr/test-u8-strcmp.h: New file.
8433         * tests/unistr/test-strcmp.h: New file.
8434
8435         Tests for module 'unistr/u32-strncat'.
8436         * modules/unistr/u32-strncat-tests: New file.
8437         * tests/unistr/test-u32-strncat.c: New file.
8438
8439         Tests for module 'unistr/u16-strncat'.
8440         * modules/unistr/u16-strncat-tests: New file.
8441         * tests/unistr/test-u16-strncat.c: New file.
8442
8443         Tests for module 'unistr/u8-strncat'.
8444         * modules/unistr/u8-strncat-tests: New file.
8445         * tests/unistr/test-u8-strncat.c: New file.
8446         * tests/unistr/test-strncat.h: New file.
8447
8448         Tests for module 'unistr/u32-strcat'.
8449         * modules/unistr/u32-strcat-tests: New file.
8450         * tests/unistr/test-u32-strcat.c: New file.
8451
8452         Tests for module 'unistr/u16-strcat'.
8453         * modules/unistr/u16-strcat-tests: New file.
8454         * tests/unistr/test-u16-strcat.c: New file.
8455
8456         Tests for module 'unistr/u8-strcat'.
8457         * modules/unistr/u8-strcat-tests: New file.
8458         * tests/unistr/test-u8-strcat.c: New file.
8459         * tests/unistr/test-strcat.h: New file.
8460
8461         Tests for module 'unistr/u32-stpncpy'.
8462         * modules/unistr/u32-stpncpy-tests: New file.
8463         * tests/unistr/test-u32-stpncpy.c: New file.
8464
8465         Tests for module 'unistr/u16-stpncpy'.
8466         * modules/unistr/u16-stpncpy-tests: New file.
8467         * tests/unistr/test-u16-stpncpy.c: New file.
8468
8469         Tests for module 'unistr/u8-stpncpy'.
8470         * modules/unistr/u8-stpncpy-tests: New file.
8471         * tests/unistr/test-u8-stpncpy.c: New file.
8472         * tests/unistr/test-stpncpy.h: New file.
8473
8474         Tests for module 'unistr/u32-strncpy'.
8475         * modules/unistr/u32-strncpy-tests: New file.
8476         * tests/unistr/test-u32-strncpy.c: New file.
8477
8478         Tests for module 'unistr/u16-strncpy'.
8479         * modules/unistr/u16-strncpy-tests: New file.
8480         * tests/unistr/test-u16-strncpy.c: New file.
8481
8482         Tests for module 'unistr/u8-strncpy'.
8483         * modules/unistr/u8-strncpy-tests: New file.
8484         * tests/unistr/test-u8-strncpy.c: New file.
8485         * tests/unistr/test-strncpy.h: New file.
8486
8487         Tests for module 'unistr/u32-stpcpy'.
8488         * modules/unistr/u32-stpcpy-tests: New file.
8489         * tests/unistr/test-u32-stpcpy.c: New file.
8490
8491         Tests for module 'unistr/u16-stpcpy'.
8492         * modules/unistr/u16-stpcpy-tests: New file.
8493         * tests/unistr/test-u16-stpcpy.c: New file.
8494
8495         Tests for module 'unistr/u8-stpcpy'.
8496         * modules/unistr/u8-stpcpy-tests: New file.
8497         * tests/unistr/test-u8-stpcpy.c: New file.
8498         * tests/unistr/test-stpcpy.h: New file.
8499
8500         Tests for module 'unistr/u32-strcpy'.
8501         * modules/unistr/u32-strcpy-tests: New file.
8502         * tests/unistr/test-u32-strcpy.c: New file.
8503
8504         Tests for module 'unistr/u16-strcpy'.
8505         * modules/unistr/u16-strcpy-tests: New file.
8506         * tests/unistr/test-u16-strcpy.c: New file.
8507
8508         Tests for module 'unistr/u8-strcpy'.
8509         * modules/unistr/u8-strcpy-tests: New file.
8510         * tests/unistr/test-u8-strcpy.c: New file.
8511         * tests/unistr/test-strcpy.h: New file.
8512
8513         Tests for module 'unistr/u32-strnlen'.
8514         * modules/unistr/u32-strnlen-tests: New file.
8515         * tests/unistr/test-u32-strnlen.c: New file.
8516
8517         Tests for module 'unistr/u16-strnlen'.
8518         * modules/unistr/u16-strnlen-tests: New file.
8519         * tests/unistr/test-u16-strnlen.c: New file.
8520
8521         Tests for module 'unistr/u8-strnlen'.
8522         * modules/unistr/u8-strnlen-tests: New file.
8523         * tests/unistr/test-u8-strnlen.c: New file.
8524         * tests/unistr/test-strnlen.h: New file.
8525
8526         Tests for module 'unistr/u32-strlen'.
8527         * modules/unistr/u32-strlen-tests: New file.
8528         * tests/unistr/test-u32-strlen.c: New file.
8529
8530         Tests for module 'unistr/u16-strlen'.
8531         * modules/unistr/u16-strlen-tests: New file.
8532         * tests/unistr/test-u16-strlen.c: New file.
8533
8534         Tests for module 'unistr/u8-strlen'.
8535         * modules/unistr/u8-strlen-tests: New file.
8536         * tests/unistr/test-u8-strlen.c: New file.
8537
8538         Tests for module 'unistr/u32-prev'.
8539         * modules/unistr/u32-prev-tests: New file.
8540         * tests/unistr/test-u32-prev.c: New file.
8541
8542         Tests for module 'unistr/u16-prev'.
8543         * modules/unistr/u16-prev-tests: New file.
8544         * tests/unistr/test-u16-prev.c: New file.
8545
8546         Tests for module 'unistr/u8-prev'.
8547         * modules/unistr/u8-prev-tests: New file.
8548         * tests/unistr/test-u8-prev.c: New file.
8549
8550         Tests for module 'unistr/u32-next'.
8551         * modules/unistr/u32-next-tests: New file.
8552         * tests/unistr/test-u32-next.c: New file.
8553
8554         Tests for module 'unistr/u16-next'.
8555         * modules/unistr/u16-next-tests: New file.
8556         * tests/unistr/test-u16-next.c: New file.
8557
8558         Tests for module 'unistr/u8-next'.
8559         * modules/unistr/u8-next-tests: New file.
8560         * tests/unistr/test-u8-next.c: New file.
8561
8562         Tests for module 'unistr/u32-strmbtouc'.
8563         * modules/unistr/u32-strmbtouc-tests: New file.
8564         * tests/unistr/test-u32-strmbtouc.c: New file.
8565
8566         Tests for module 'unistr/u16-strmbtouc'.
8567         * modules/unistr/u16-strmbtouc-tests: New file.
8568         * tests/unistr/test-u16-strmbtouc.c: New file.
8569
8570         Tests for module 'unistr/u8-strmbtouc'.
8571         * modules/unistr/u8-strmbtouc-tests: New file.
8572         * tests/unistr/test-u8-strmbtouc.c: New file.
8573
8574         Tests for module 'unistr/u32-strmblen'.
8575         * modules/unistr/u32-strmblen-tests: New file.
8576         * tests/unistr/test-u32-strmblen.c: New file.
8577
8578         Tests for module 'unistr/u16-strmblen'.
8579         * modules/unistr/u16-strmblen-tests: New file.
8580         * tests/unistr/test-u16-strmblen.c: New file.
8581
8582         Tests for module 'unistr/u8-strmblen'.
8583         * modules/unistr/u8-strmblen-tests: New file.
8584         * tests/unistr/test-u8-strmblen.c: New file.
8585
8586         Tests for module 'unistr/u32-cpy-alloc'.
8587         * modules/unistr/u32-cpy-alloc-tests: New file.
8588         * tests/unistr/test-u32-cpy-alloc.c: New file.
8589
8590         Tests for module 'unistr/u16-cpy-alloc'.
8591         * modules/unistr/u16-cpy-alloc-tests: New file.
8592         * tests/unistr/test-u16-cpy-alloc.c: New file.
8593
8594         Tests for module 'unistr/u8-cpy-alloc'.
8595         * modules/unistr/u8-cpy-alloc-tests: New file.
8596         * tests/unistr/test-u8-cpy-alloc.c: New file.
8597         * tests/unistr/test-cpy-alloc.h: New file.
8598
8599         Tests for module 'unistr/u32-mbsnlen'.
8600         * modules/unistr/u32-mbsnlen-tests: New file.
8601         * tests/unistr/test-u32-mbsnlen.c: New file.
8602
8603         Tests for module 'unistr/u16-mbsnlen'.
8604         * modules/unistr/u16-mbsnlen-tests: New file.
8605         * tests/unistr/test-u16-mbsnlen.c: New file.
8606
8607         Tests for module 'unistr/u8-mbsnlen'.
8608         * modules/unistr/u8-mbsnlen-tests: New file.
8609         * tests/unistr/test-u8-mbsnlen.c: New file.
8610
8611         Tests for module 'unistr/u32-chr'.
8612         * modules/unistr/u32-chr-tests: New file.
8613         * tests/unistr/test-u32-chr.c: New file.
8614
8615         Tests for module 'unistr/u16-chr'.
8616         * modules/unistr/u16-chr-tests: New file.
8617         * tests/unistr/test-u16-chr.c: New file.
8618
8619         Tests for module 'unistr/u8-chr'.
8620         * modules/unistr/u8-chr-tests: New file.
8621         * tests/unistr/test-u8-chr.c: New file.
8622         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8623
8624         Tests for module 'unistr/u32-cmp2'.
8625         * modules/unistr/u32-cmp2-tests: New file.
8626         * tests/unistr/test-u32-cmp2.c: New file.
8627
8628         Tests for module 'unistr/u16-cmp2'.
8629         * modules/unistr/u16-cmp2-tests: New file.
8630         * tests/unistr/test-u16-cmp2.c: New file.
8631
8632         Tests for module 'unistr/u8-cmp2'.
8633         * modules/unistr/u8-cmp2-tests: New file.
8634         * tests/unistr/test-u8-cmp2.c: New file.
8635         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8636
8637         Tests for module 'unistr/u32-cmp'.
8638         * modules/unistr/u32-cmp-tests: New file.
8639         * tests/unistr/test-u32-cmp.c: New file.
8640
8641         Tests for module 'unistr/u16-cmp'.
8642         * modules/unistr/u16-cmp-tests: New file.
8643         * tests/unistr/test-u16-cmp.c: New file.
8644
8645         Tests for module 'unistr/u8-cmp'.
8646         * modules/unistr/u8-cmp-tests: New file.
8647         * tests/unistr/test-u8-cmp.c: New file.
8648         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8649
8650         Tests for module 'unistr/u32-set'.
8651         * modules/unistr/u32-set-tests: New file.
8652         * tests/unistr/test-u32-set.c: New file.
8653
8654         Tests for module 'unistr/u16-set'.
8655         * modules/unistr/u16-set-tests: New file.
8656         * tests/unistr/test-u16-set.c: New file.
8657
8658         Tests for module 'unistr/u8-set'.
8659         * modules/unistr/u8-set-tests: New file.
8660         * tests/unistr/test-u8-set.c: New file.
8661         * tests/unistr/test-set.h: New file.
8662
8663         Tests for module 'unistr/u32-move'.
8664         * modules/unistr/u32-move-tests: New file.
8665         * tests/unistr/test-u32-move.c: New file.
8666
8667         Tests for module 'unistr/u16-move'.
8668         * modules/unistr/u16-move-tests: New file.
8669         * tests/unistr/test-u16-move.c: New file.
8670
8671         Tests for module 'unistr/u8-move'.
8672         * modules/unistr/u8-move-tests: New file.
8673         * tests/unistr/test-u8-move.c: New file.
8674         * tests/unistr/test-move.h: New file.
8675
8676         Tests for module 'unistr/u32-cpy'.
8677         * modules/unistr/u32-cpy-tests: New file.
8678         * tests/unistr/test-u32-cpy.c: New file.
8679
8680         Tests for module 'unistr/u16-cpy'.
8681         * modules/unistr/u16-cpy-tests: New file.
8682         * tests/unistr/test-u16-cpy.c: New file.
8683
8684         Tests for module 'unistr/u8-cpy'.
8685         * modules/unistr/u8-cpy-tests: New file.
8686         * tests/unistr/test-u8-cpy.c: New file.
8687         * tests/unistr/test-cpy.h: New file.
8688
8689 2010-01-09  Bruno Haible  <bruno@clisp.org>
8690
8691         Tests for module 'unistr/u32-uctomb'.
8692         * modules/unistr/u32-uctomb-tests: New file.
8693         * tests/unistr/test-u32-uctomb.c: New file.
8694
8695         Tests for module 'unistr/u16-uctomb'.
8696         * modules/unistr/u16-uctomb-tests: New file.
8697         * tests/unistr/test-u16-uctomb.c: New file.
8698
8699         Tests for module 'unistr/u8-uctomb'.
8700         * modules/unistr/u8-uctomb-tests: New file.
8701         * tests/unistr/test-u8-uctomb.c: New file.
8702
8703         Tests for module 'unistr/u32-mbtoucr'.
8704         * modules/unistr/u32-mbtoucr-tests: New file.
8705         * tests/unistr/test-u32-mbtoucr.c: New file.
8706
8707         Tests for module 'unistr/u16-mbtoucr'.
8708         * modules/unistr/u16-mbtoucr-tests: New file.
8709         * tests/unistr/test-u16-mbtoucr.c: New file.
8710
8711         Tests for module 'unistr/u8-mbtoucr'.
8712         * modules/unistr/u8-mbtoucr-tests: New file.
8713         * tests/unistr/test-u8-mbtoucr.c: New file.
8714
8715         Tests for module 'unistr/u32-mbtouc'.
8716         * modules/unistr/u32-mbtouc-tests: New file.
8717         * tests/unistr/test-u32-mbtouc.c: New file.
8718
8719         Tests for module 'unistr/u16-mbtouc'.
8720         * modules/unistr/u16-mbtouc-tests: New file.
8721         * tests/unistr/test-u16-mbtouc.c: New file.
8722
8723         Tests for module 'unistr/u8-mbtouc'.
8724         * modules/unistr/u8-mbtouc-tests: New file.
8725         * tests/unistr/test-u8-mbtouc.c: New file.
8726
8727         Tests for module 'unistr/u32-mbtouc-unsafe'.
8728         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8729         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8730         * tests/unistr/test-u32-mbtouc.h: New file.
8731
8732         Tests for module 'unistr/u16-mbtouc-unsafe'.
8733         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8734         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8735         * tests/unistr/test-u16-mbtouc.h: New file.
8736
8737         Tests for module 'unistr/u8-mbtouc-unsafe'.
8738         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8739         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8740         * tests/unistr/test-u8-mbtouc.h: New file.
8741
8742         Tests for module 'unistr/u32-mblen'.
8743         * modules/unistr/u32-mblen-tests: New file.
8744         * tests/unistr/test-u32-mblen.c: New file.
8745
8746         Tests for module 'unistr/u16-mblen'.
8747         * modules/unistr/u16-mblen-tests: New file.
8748         * tests/unistr/test-u16-mblen.c: New file.
8749
8750         Tests for module 'unistr/u8-mblen'.
8751         * modules/unistr/u8-mblen-tests: New file.
8752         * tests/unistr/test-u8-mblen.c: New file.
8753
8754         Tests for module 'unistr/u32-to-u16'.
8755         * modules/unistr/u32-to-u16-tests: New file.
8756         * tests/unistr/test-u32-to-u16.c: New file.
8757
8758         Tests for module 'unistr/u32-to-u8'.
8759         * modules/unistr/u32-to-u8-tests: New file.
8760         * tests/unistr/test-u32-to-u8.c: New file.
8761
8762         Tests for module 'unistr/u16-to-u32'.
8763         * modules/unistr/u16-to-u32-tests: New file.
8764         * tests/unistr/test-u16-to-u32.c: New file.
8765
8766         Tests for module 'unistr/u16-to-u8'.
8767         * modules/unistr/u16-to-u8-tests: New file.
8768         * tests/unistr/test-u16-to-u8.c: New file.
8769
8770         Tests for module 'unistr/u8-to-u32'.
8771         * modules/unistr/u8-to-u32-tests: New file.
8772         * tests/unistr/test-u8-to-u32.c: New file.
8773
8774         Tests for module 'unistr/u8-to-u16'.
8775         * modules/unistr/u8-to-u16-tests: New file.
8776         * tests/unistr/test-u8-to-u16.c: New file.
8777
8778         Tests for module 'unistr/u32-check'.
8779         * modules/unistr/u32-check-tests: New file.
8780         * tests/unistr/test-u32-check.c: New file.
8781
8782         Tests for module 'unistr/u16-check'.
8783         * modules/unistr/u16-check-tests: New file.
8784         * tests/unistr/test-u16-check.c: New file.
8785
8786         Tests for module 'unistr/u8-check'.
8787         * modules/unistr/u8-check-tests: New file.
8788         * tests/unistr/test-u8-check.c: New file.
8789
8790         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8791         (category_equals): New function.
8792         (main): Add more tests.
8793         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8794
8795         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8796
8797 2010-01-10  Bruno Haible  <bruno@clisp.org>
8798
8799         unistr/u*-strcoll: Try harder to distinguish different strings.
8800         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8801         compare s1 and s2 to see if they are different.
8802
8803 2010-01-10  Bruno Haible  <bruno@clisp.org>
8804
8805         unistr/u*-stpncpy: Fix the return value.
8806         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8807         description of the return value consistent with stpncpy in glibc.
8808         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8809         written non-NUL unit.
8810
8811 2010-01-10  Bruno Haible  <bruno@clisp.org>
8812
8813         unistr/u*-next: Add missing dependencies.
8814         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8815         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8816         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8817
8818 2010-01-10  Bruno Haible  <bruno@clisp.org>
8819
8820         unistr/u8-mbsnlen: Fix return value for incomplete character.
8821         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8822         u8_mblen.
8823         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8824         Remove unistr/u8-mblen.
8825         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8826         u16_mblen.
8827         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8828         Remove unistr/u16-mblen.
8829
8830 2010-01-10  Bruno Haible  <bruno@clisp.org>
8831
8832         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8833         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8834         Reported by Brian Gough <bjg@gnu.org> and
8835         Chris Clayton <chris2553@googlemail.com> via
8836         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8837
8838 2010-01-09  Bruno Haible  <bruno@clisp.org>
8839
8840         unistr/u16-to-u32: Reject invalid input.
8841         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8842         u16_mbtouc.
8843         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8844         Remove unistr/u16-mbtouc.
8845
8846         unistr/u16-to-u8: Reject invalid input.
8847         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8848         u16_mbtouc.
8849         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8850         Remove unistr/u16-mbtouc.
8851
8852         unistr/u8-to-u32: Reject invalid input.
8853         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8854         u8_mbtouc.
8855         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8856         Remove unistr/u8-mbtouc.
8857
8858         unistr/u8-to-u16: Reject invalid input.
8859         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8860         u8_mbtouc.
8861         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8862         Remove unistr/u8-mbtouc.
8863
8864 2010-01-09  Bruno Haible  <bruno@clisp.org>
8865
8866         Tests for module 'getlogin'.
8867         * modules/getlogin-tests: New file.
8868         * tests/test-getlogin.c: New file.
8869
8870         New module 'getlogin'.
8871         * lib/unistd.in.h (getlogin): New declaration.
8872         * lib/getlogin.c: New file.
8873         * m4/getlogin.m4: New file.
8874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8875         HAVE_GETLOGIN.
8876         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8877         HAVE_GETLOGIN.
8878         * modules/getlogin: New file.
8879         * doc/posix-functions/getlogin.texi: Mention the new module.
8880         Reported by John W. Eaton <jwe@gnu.org>.
8881
8882 2010-01-09  Bruno Haible  <bruno@clisp.org>
8883
8884         getlogin_r: Support for native Windows.
8885         * lib/getlogin_r.c: Include <windows.h>
8886         (getlogin_r): Implement for native Windows.
8887         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8888         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8889         via John W. Eaton <jwe@gnu.org>.
8890
8891 2010-01-09  Bruno Haible  <bruno@clisp.org>
8892
8893         getlogin_r: Small fixes.
8894         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8895         succeeds.
8896         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8897         before testing whether getlogin_r is declared. No need to set
8898         HAVE_DECL_GETLOGIN_R to 1.
8899         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8900
8901 2010-01-09  Bruno Haible  <bruno@clisp.org>
8902
8903         * lib/unistd.in.h (getlogin_r): Add comment.
8904
8905 2010-01-09  Bruno Haible  <bruno@clisp.org>
8906
8907         Tests for module 'getlogin_r'.
8908         * modules/getlogin_r-tests: New file.
8909         * tests/test-getlogin_r.c: New file.
8910
8911 2010-01-09  Jim Meyering  <meyering@redhat.com>
8912
8913         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8914         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8915         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8916
8917 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8918
8919         * lib/dup2.c (rpl_dup2): Improve comment.
8920
8921 2010-01-08  Eric Blake  <ebb9@byu.net>
8922
8923         maint.mk: allow packages to add makefile @@ exceptions
8924         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8925         (sc_makefile_check): Rename...
8926         (sc_makefile_at_at_check): ...to this, and use hook.
8927
8928         dup2: work around mingw bug
8929         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8930         Reported by Simon Josefsson.
8931
8932 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8933
8934         glob: Fix C++ compilation.
8935         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8936         C++.
8937
8938 2010-01-07  Bruno Haible  <bruno@clisp.org>
8939
8940         Fix indentation of wctype.in.h, broken since 2007-01-06.
8941         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8942
8943 2010-01-07  Bruno Haible  <bruno@clisp.org>
8944
8945         mbslen: Avoid collision with system function.
8946         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8947         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8948         * m4/mbslen.m4: New file.
8949         * modules/mbslen (Files): Add it.
8950         (configure.ac): Invoke gl_MBSLEN.
8951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8952         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8953         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8954         via Ian Beckwith <ianb@erislabs.net>.
8955
8956 2010-01-07  Bruno Haible  <bruno@clisp.org>
8957
8958         dirent: Document the last fix.
8959         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
8960
8961 2010-01-07  Bruno Haible  <bruno@clisp.org>
8962
8963         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
8964         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
8965         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
8966         va_list are defined.
8967         * doc/posix-headers/stdio.texi: Document the bug of missing types.
8968         Reported by Eric Blake.
8969
8970 2010-01-07  Bruno Haible  <bruno@clisp.org>
8971
8972         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
8973         * modules/xlist (Depends-on): Add 'list',
8974         * modules/xoset (Depends-on): Add 'oset'.
8975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8976
8977 2010-01-07  Bruno Haible  <bruno@clisp.org>
8978
8979         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
8980         * doc/posix-functions/strncasecmp.texi: Likewise.
8981
8982 2010-01-07  Bruno Haible  <bruno@clisp.org>
8983
8984         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
8985
8986 2010-01-07  John W. Eaton  <jwe@octave.org>
8987
8988         wctype: allow C++ use
8989         * lib/wctype.in.h: Add extern "C" block for C++.
8990
8991 2010-01-06  Eric Blake  <ebb9@byu.net>
8992
8993         maint.mk: detect incorrect GFDL usage
8994         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
8995
8996 2010-01-06  Jim Meyering  <meyering@redhat.com>
8997         and Eric Blake  <ebb9@byu.net>
8998
8999         maint.mk: ignore multi-line copyright in NEWS
9000         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9001
9002 2010-01-06  Eric Blake  <ebb9@byu.net>
9003
9004         select: add missing dependency
9005         * modules/select-tests (Depends-on): Move sockets dependency...
9006         * modules/select (Depends-on): ...here.
9007         Reported by Ian Beckwith.
9008
9009         doc: regenerate INSTALL
9010         * doc/INSTALL: Reflect recent autoconf update.
9011         * doc/INSTALL.ISO: Likewise.
9012         * doc/INSTALL.UTF-8: Likewise.
9013
9014         pread: fix compilation on glibc
9015         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9016         Reported by Ralf Wildenhues.
9017
9018         dirent: fix test failure
9019         * lib/dirent.in.h (includes): Guarantee ino_t.
9020         Reported by Ralf Wildenhues.
9021
9022 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9023
9024         linkat, renameat: avoid bad free
9025         * lib/at-func2.c (at_func2): Fix typo.
9026         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9027
9028 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9029
9030         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9031         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9032         to avoid failure of symlink test later.
9033
9034 2010-01-06  Eric Blake  <ebb9@byu.net>
9035
9036         stdio, unistd: guarantee ssize_t
9037         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9038         2008 are exposed when needed.
9039         * lib/stdio.in.h (includes): Likewise.
9040         Reported by Ralf Wildenhues.
9041
9042 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9043
9044         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9045         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9046         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9047
9048 2010-01-06  Jim Meyering  <meyering@redhat.com>
9049
9050         readtokens: this module *does* require xalloc.h
9051         It uses only functions that were omitted by the old syntax-check rule.
9052         * lib/readtokens.c: Include "xalloc.h" once again.
9053         * modules/readtokens (Depends-on): Add xalloc.
9054         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9055
9056 2010-01-05  Eric Blake  <ebb9@byu.net>
9057
9058         maint: support 'make announcement' from a VPATH build
9059         * top/maint.mk (announcement): Look for correct NEWS file.
9060
9061 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9062
9063         utimens (fdutimens): ignore a negative FD, per contract
9064         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9065         when we have a valid file descriptor.  Otherwise, using a brand
9066         new glibc (with just-patched futimens that now fails with EBADF)
9067         would cause this function to fail with ENOSYS.
9068         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9069         See also http://bugzilla.redhat.com/552320.
9070
9071 2010-01-05  Eric Blake  <ebb9@byu.net>
9072
9073         strcase: document what it provides
9074         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9075         gnulib module.
9076         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9077         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9078
9079 2010-01-05  Jim Meyering  <meyering@redhat.com>
9080
9081         maint: remove useless inclusions of "xalloc.h"
9082         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9083         * lib/readtokens.c: Likewise.
9084         * lib/same.c: Likewise.
9085         * modules/getloadavg (Depends-on): Remove xalloc.
9086         * modules/readtokens: Likewise.
9087         * modules/same: Likewise.
9088
9089         maint.mk: include 4 more function names in alloca.h-checking regexp
9090         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9091         regexp.  Before, we would give a false-positive (saying alloca.h
9092         is included unnecessarily) when the only uses involved omitted symbols.
9093
9094         xalloc.h: use consistent formatting
9095         * lib/xalloc.h: Move declarations to start in the first column.
9096
9097 2010-01-05  Eric Blake  <ebb9@byu.net>
9098
9099         mkdir: avoid xalloc
9100         * lib/mkdir.c (includes): Drop unused header.
9101         Reported by John W. Eaton.
9102
9103 2010-01-04  Jim Meyering  <meyering@redhat.com>
9104
9105         nl_langinfo: avoid configure-time syntax error
9106         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9107         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9108         the empty string.  Don't let that provoke a shell syntax error.
9109
9110         regcomp, regexec, fnmatch: avoid array bounds read error
9111         * lib/regcomp.c (build_equiv_class): From glibc:
9112         Use only the low 24 bits of a findidx return value as an index
9113         into the weights array.  Patch by Ulrich Drepper:
9114         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9115         * lib/regexec.c (check_node_accept_bytes): Likewise.
9116         * lib/fnmatch_loop.c (FCT): Likewise.
9117
9118         regcomp: skip collseq lookup when there are no rules
9119         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9120         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9121
9122         regcomp: recognize ill-formed { } expressions
9123         * lib/regcomp.c (parse_dup_op): From glibc:
9124         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9125
9126         regcomp: fix typo in comment
9127         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9128         s/satisfy/satisfies/.
9129
9130         regcomp: sync from glibc: remove dead store
9131         * lib/regcomp.c (duplicate_node_closure): Remove useless
9132         search_duplicated_node call and dead store.
9133
9134         regcomp: sync from glibc; always use nl_langinfo
9135         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9136         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9137         * modules/regex (Depends-on): Add nl_langinfo.
9138
9139 2010-01-04  Eric Blake  <ebb9@byu.net>
9140
9141         fdopendir: fix configure test
9142         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9143
9144 2010-01-01  Bruno Haible  <bruno@clisp.org>
9145
9146         wchar: Remove unused configure check.
9147         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9148
9149 2010-01-01  Eric Blake  <ebb9@byu.net>
9150
9151         headers: make check of system header explicit
9152         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9153         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9154         ourselves.
9155         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9157         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9158         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9159         internals.
9160         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9161         missing.
9162         Suggested by Bruno Haible.
9163
9164 2010-01-01  Jim Meyering  <meyering@redhat.com>
9165
9166         ChangeLog: tweak to eliminate unnecessary copyright line
9167         * ChangeLog: Remove a copyright line that was mistakenly updated
9168         by today's update-copyright run.  Reported by Eric Blake.
9169
9170         test-update-copyright: don't let envvar setting cause test failure
9171         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9172
9173 2010-01-01  Bruno Haible  <bruno@clisp.org>
9174
9175         localename: Avoid gcc warning.
9176         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9177         function if it is not used.
9178
9179 2010-01-01  Jim Meyering  <meyering@redhat.com>
9180
9181         update nearly all FSF copyright year lists to include 2010
9182         Use the same procedure as for 2009, outlined in
9183         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9184
9185         version-etc: set COPYRIGHT_YEAR to 2010
9186         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9187
9188 2009-12-31  Eric Blake  <ebb9@byu.net>
9189
9190         doc: correct availability of cygwin 1.5.x getopt
9191         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9192         variables.
9193         * doc/posix-functions/opterr.texi (opterr): Likewise.
9194         * doc/posix-functions/optind.texi (optind): Likewise.
9195         * doc/posix-functions/optopt.texi (optopt): Likewise.
9196         * doc/posix-functions/tzname.texi (tzname): Likewise.
9197
9198         openat: update maintainer
9199         * modules/openat (Maintainer): Add myself.
9200
9201         utimens: avoid shadowing warning
9202         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9203         buffers into one, to avoid shadowing, as well as avoiding a
9204         redundant stat.
9205         Reported by Jim Meyering.
9206
9207         test-dup2: avoid compiler warning
9208         * tests/test-dup2.c (is_inheritable): Only define if used.
9209
9210 2010-01-01  Bruno Haible  <bruno@clisp.org>
9211
9212         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9213         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9214         defined, use wctomb instead of wcrtomb.
9215
9216 2010-01-01  Bruno Haible  <bruno@clisp.org>
9217
9218         iconv: Reject native Solaris iconv.
9219         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9220         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9221
9222 2009-12-31  Bruno Haible  <bruno@clisp.org>
9223
9224         * tests/test-signal.c (main): Remove test of 'SIG'.
9225
9226 2009-12-31  Bruno Haible  <bruno@clisp.org>
9227
9228         spawn: Fix incomplete fix.
9229         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9230         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9231         warnings for GNULIB_POSIXCHECK again.
9232         Reported by Eric Blake.
9233
9234 2009-12-31  Bruno Haible  <bruno@clisp.org>
9235
9236         Avoid namespace pollution on glibc systems.
9237         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9238         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9239         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9240         glibc systems.
9241
9242 2009-12-31  Bruno Haible  <bruno@clisp.org>
9243
9244         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9245         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9246         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9247         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9248         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9249         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9250         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9251
9252 2009-12-31  Bruno Haible  <bruno@clisp.org>
9253
9254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9255         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9256         afterwards.
9257
9258 2009-12-31  Bruno Haible  <bruno@clisp.org>
9259
9260         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9261         SYS_UTSNAME_H.
9262
9263 2009-12-31  Bruno Haible  <bruno@clisp.org>
9264
9265         spawn: Fix misapplied patch.
9266         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9267         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9268         warnings for GNULIB_POSIXCHECK.
9269
9270 2009-12-31  Bruno Haible  <bruno@clisp.org>
9271
9272         times: Update after sys_times changed.
9273         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9274         * modules/times (Files): Add it.
9275         (configure.ac): Invoke gl_FUNC_TIMES.
9276
9277 2009-12-31  Bruno Haible  <bruno@clisp.org>
9278
9279         Use AC_C_INLINE where necessary.
9280         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9281         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9282         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9283         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9284         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9285         * m4/mbiter.m4 (gl_MBITER): Likewise.
9286         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9287         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9288         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9289         * modules/u64 (configure.ac): Likewise.
9290
9291 2009-12-31  Bruno Haible  <bruno@clisp.org>
9292
9293         Use AC_C_INLINE instead of module 'inline' where possible.
9294         * modules/inline (Description): Clarify purpose.
9295         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9296         * modules/count-one-bits (Depends-on): Remove inline.
9297         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9298         * modules/openat (Depends-on): Remove inline.
9299         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9300         instead of depending on module 'inline'.
9301         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9302         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9303         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9304         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9305         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9306         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9307         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9308         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9309         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9310         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9311         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9312         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9313         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9314         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9315         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9316         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9317         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9318         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9319         Likewise.
9320         * modules/unictype/property-ascii-hex-digit (Depends-on,
9321         configure.ac): Likewise.
9322         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9323         configure.ac): Likewise.
9324         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9325         configure.ac): Likewise.
9326         * modules/unictype/property-bidi-block-separator (Depends-on,
9327         configure.ac): Likewise.
9328         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9329         configure.ac): Likewise.
9330         * modules/unictype/property-bidi-common-separator (Depends-on,
9331         configure.ac): Likewise.
9332         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9333         Likewise.
9334         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9335         configure.ac): Likewise.
9336         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9337         configure.ac): Likewise.
9338         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9339         configure.ac): Likewise.
9340         * modules/unictype/property-bidi-european-digit (Depends-on,
9341         configure.ac): Likewise.
9342         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9343         configure.ac): Likewise.
9344         * modules/unictype/property-bidi-left-to-right (Depends-on,
9345         configure.ac): Likewise.
9346         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9347         configure.ac): Likewise.
9348         * modules/unictype/property-bidi-other-neutral (Depends-on,
9349         configure.ac): Likewise.
9350         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9351         Likewise.
9352         * modules/unictype/property-bidi-segment-separator (Depends-on,
9353         configure.ac): Likewise.
9354         * modules/unictype/property-bidi-whitespace (Depends-on,
9355         configure.ac): Likewise.
9356         * modules/unictype/property-combining (Depends-on, configure.ac):
9357         Likewise.
9358         * modules/unictype/property-composite (Depends-on, configure.ac):
9359         Likewise.
9360         * modules/unictype/property-currency-symbol (Depends-on,
9361         configure.ac): Likewise.
9362         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9363         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9364         Likewise.
9365         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9366         configure.ac): Likewise.
9367         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9368         Likewise.
9369         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9370         Likewise.
9371         * modules/unictype/property-extender (Depends-on, configure.ac):
9372         Likewise.
9373         * modules/unictype/property-format-control (Depends-on, configure.ac):
9374         Likewise.
9375         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9376         Likewise.
9377         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9378         Likewise.
9379         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9380         Likewise.
9381         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9382         Likewise.
9383         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9384         Likewise.
9385         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9386         Likewise.
9387         * modules/unictype/property-id-start (Depends-on, configure.ac):
9388         Likewise.
9389         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9390         Likewise.
9391         * modules/unictype/property-ids-binary-operator (Depends-on,
9392         configure.ac): Likewise.
9393         * modules/unictype/property-ids-trinary-operator (Depends-on,
9394         configure.ac): Likewise.
9395         * modules/unictype/property-ignorable-control (Depends-on,
9396         configure.ac): Likewise.
9397         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9398         Likewise.
9399         * modules/unictype/property-join-control (Depends-on, configure.ac):
9400         Likewise.
9401         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9402         Likewise.
9403         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9404         Likewise.
9405         * modules/unictype/property-logical-order-exception (Depends-on,
9406         configure.ac): Likewise.
9407         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9408         Likewise.
9409         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9410         * modules/unictype/property-non-break (Depends-on, configure.ac):
9411         Likewise.
9412         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9413         Likewise.
9414         * modules/unictype/property-numeric (Depends-on, configure.ac):
9415         Likewise.
9416         * modules/unictype/property-other-alphabetic (Depends-on,
9417         configure.ac): Likewise.
9418         * modules/unictype/property-other-default-ignorable-code-point
9419         (Depends-on, configure.ac): Likewise.
9420         * modules/unictype/property-other-grapheme-extend (Depends-on,
9421         configure.ac): Likewise.
9422         * modules/unictype/property-other-id-continue (Depends-on,
9423         configure.ac): Likewise.
9424         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9425         Likewise.
9426         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9427         Likewise.
9428         * modules/unictype/property-other-math (Depends-on, configure.ac):
9429         Likewise.
9430         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9431         Likewise.
9432         * modules/unictype/property-paired-punctuation (Depends-on,
9433         configure.ac): Likewise.
9434         * modules/unictype/property-paragraph-separator (Depends-on,
9435         configure.ac): Likewise.
9436         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9437         Likewise.
9438         * modules/unictype/property-pattern-white-space (Depends-on,
9439         configure.ac): Likewise.
9440         * modules/unictype/property-private-use (Depends-on, configure.ac):
9441         Likewise.
9442         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9443         Likewise.
9444         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9445         Likewise.
9446         * modules/unictype/property-radical (Depends-on, configure.ac):
9447         Likewise.
9448         * modules/unictype/property-sentence-terminal (Depends-on,
9449         configure.ac): Likewise.
9450         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9451         Likewise.
9452         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9453         * modules/unictype/property-terminal-punctuation (Depends-on,
9454         configure.ac): Likewise.
9455         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9456         Likewise.
9457         * modules/unictype/property-unassigned-code-value (Depends-on,
9458         configure.ac): Likewise.
9459         * modules/unictype/property-unified-ideograph (Depends-on,
9460         configure.ac): Likewise.
9461         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9462         Likewise.
9463         * modules/unictype/property-variation-selector (Depends-on,
9464         configure.ac): Likewise.
9465         * modules/unictype/property-white-space (Depends-on, configure.ac):
9466         Likewise.
9467         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9468         Likewise.
9469         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9470         Likewise.
9471         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9472         Likewise.
9473         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9474         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9475         Likewise.
9476
9477 2009-12-31  Bruno Haible  <bruno@clisp.org>
9478
9479         Remove unnecessary AC_C_INLINE invocation.
9480         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9481         since 2009-08-21.
9482
9483 2009-12-31  Jim Meyering  <meyering@redhat.com>
9484
9485         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9486         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9487         With this change, we can all remove the gpg_key_ID = ... definition
9488         from our respective cfg.mk files.
9489
9490         maint.mk: create announcement template in ~/, not in /tmp
9491         * top/maint.mk (emit_upload_commands): Adjust.
9492         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9493         Remove temporary file, .ci-msg.
9494
9495 2009-12-31  Eric Blake  <ebb9@byu.net>
9496
9497         link-warning: always build headers with link warnings
9498         * modules/arpa_inet (Makefile.am): Always build replacement
9499         header.
9500         * modules/ctype (Makefile.am): Likewise.
9501         * modules/dirent (Makefile.am): Likewise.
9502         * modules/inttypes (Makefile.am): Likewise.
9503         * modules/langinfo (Makefile.am): Likewise.
9504         * modules/locale (Makefile.am): Likewise.
9505         * modules/spawn (Makefile.am): Likewise.
9506         * modules/sys_file (Makefile.am): Likewise.
9507         * modules/sys_ioctl (Makefile.am): Likewise.
9508         * modules/sys_select (Makefile.am): Likewise.
9509         * modules/sys_socket (Makefile.am): Likewise.
9510         * modules/sys_times (Makefile.am): Likewise.
9511         * modules/sys_utsname (Makefile.am): Likewise.
9512         * modules/sys_wait (Makefile.am): Likewise.
9513         * modules/wchar (Makefile.am): Likewise.
9514         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9515         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9516         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9517         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9518         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9519         Likewise.
9520         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9521         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9522         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9523         Likewise.
9524         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9525         Likewise.
9526         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9527         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9528         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9530         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9532         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9533         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9534         (gl_WCHAR_H_DEFAULTS): Likewise.
9535
9536 2009-12-31  Eric Blake  <ebb9@byu.net>
9537
9538         signal, spawn: use link warnings
9539         * lib/signal.in.h (sigset_t): Make unconditional.
9540         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9541         (sigpending, sigprocmask, sigaction): Add link warnings.
9542         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9543         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9544         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9545         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9546         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9547         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9548         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9549         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9550         (posix_spawn_file_actions_destroy)
9551         (posix_spawn_file_actions_addopen)
9552         (posix_spawn_file_actions_addclose)
9553         (posix_spawn_file_actions_adddup2): Likewise.
9554         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9555         * tests/test-signal.c (main): Enhance test.
9556
9557         spawn: improve wrapper support
9558         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9559         (gl_SPAWN_H_DEFAULTS): New defaults.
9560         * modules/spawn (Makefile.am): Substitute them.
9561         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9562         Only declare if missing or broken.
9563
9564         sys_times, sys_utsname: use include_next
9565         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9566         header.
9567         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9568         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9569         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9570         * modules/sys_times (Depends-on): Add include_next.
9571         (Makefile.am): Substitute additional values.
9572         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9573         * lib/sys_times.in.h (includes): Include native header, if
9574         available.
9575         * lib/sys_utsname.in.h (includes): Likewise.
9576         * tests/test-sys_times.c (main): Enhance test.
9577
9578         fdutimensat: revert prior patch
9579         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9580         utimens.h.
9581         Reported by Bruno Haible.
9582
9583 2009-12-30  Eric Blake  <ebb9@byu.net>
9584
9585         sys_wait: drop link-warning dependency
9586         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9587         link-warning efforts.
9588         * lib/sys_wait.in.h: Likewise.
9589
9590         fdutimensat: remove bogus dependency
9591         * modules/fdutimensat (Depends-on): Drop inline.
9592
9593         unistd: fix typo
9594         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9595
9596 2009-12-30  Bruno Haible  <bruno@clisp.org>
9597
9598         Fix compilation error with Solaris cc.
9599         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9600         * lib/unicase/u16-is-invariant.c: Likewise.
9601         * lib/unicase/u32-is-invariant.c: Likewise.
9602         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9603
9604 2009-12-30  Bruno Haible  <bruno@clisp.org>
9605
9606         Fix test crash.
9607         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9608         locales.
9609         Reported by Simon Josefsson <simon@josefsson.org>.
9610
9611 2009-12-30  Bruno Haible  <bruno@clisp.org>
9612
9613         Fix compilation error on most platforms.
9614         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9615         Reported by Simon Josefsson <simon@josefsson.org>
9616         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9617
9618 2009-12-30  Eric Blake  <ebb9@byu.net>
9619
9620         futimens, utimensat: work around ntfs-3g bug
9621         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9622         a ctime bug is present, and expand workaround to cover ntfs-3g.
9623         * lib/utimens.c (fdutimens, lutimens): Likewise.
9624         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9625         (validate_timespec): Adjust return value.
9626         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9627         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9628         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9629
9630 2009-12-29  Eric Blake  <ebb9@byu.net>
9631
9632         link-warning: make usage consistent
9633         * modules/ctype (Depends-on): Add link-warning.
9634         (Makefile.am): Update rules accordingly.
9635         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9636         * modules/locale (Depends-on, Makefile.am): Likewise.
9637         * modules/sys_file (Makefile.am): Likewise.
9638         * modules/getopt-posix (Makefile.am): Delete unused link warning
9639         efforts.
9640         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9641         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9642         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9643         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9644
9645         stdio: remove unused variables
9646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9647         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9648         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9649
9650         tests: test more substitute headers
9651         * modules/ctype-tests: New file.
9652         * modules/dirent-tests: Likewise.
9653         * modules/spawn-tests: Likewise.
9654         * modules/sys_file-tests: Likewise.
9655         * modules/sys_ioctl-tests: Likewise.
9656         * modules/sys_wait-tests: Likewise.
9657         * tests/test-ctype.c: Likewise.
9658         * tests/test-dirent.c: Likewise.
9659         * tests/test-spawn.c: Likewise.
9660         * tests/test-sys_file.c: Likewise.
9661         * tests/test-sys_ioctl.c: Likewise.
9662         * tests/test-sys_wait.c: Likewise.
9663         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9664         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9665         whether or not flock is in use.
9666
9667         tests: remove License section from module
9668         * modules/arpa_inet-tests: Remove unneeded section.
9669         * modules/byteswap-tests: Likewise.
9670         * modules/ceilf-tests: Likewise.
9671         * modules/ceill-tests: Likewise.
9672         * modules/crypto/des-tests: Likewise.
9673         * modules/crypto/gc-arcfour-tests: Likewise.
9674         * modules/crypto/gc-arctwo-tests: Likewise.
9675         * modules/crypto/gc-des-tests: Likewise.
9676         * modules/crypto/gc-hmac-md5-tests: Likewise.
9677         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9678         * modules/crypto/gc-md2-tests: Likewise.
9679         * modules/crypto/gc-md4-tests: Likewise.
9680         * modules/crypto/gc-md5-tests: Likewise.
9681         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9682         * modules/crypto/gc-rijndael-tests: Likewise.
9683         * modules/crypto/gc-sha1-tests: Likewise.
9684         * modules/crypto/gc-tests: Likewise.
9685         * modules/crypto/md2-tests: Likewise.
9686         * modules/crypto/md4-tests: Likewise.
9687         * modules/fcntl-h-tests: Likewise.
9688         * modules/floorf-tests: Likewise.
9689         * modules/floorl-tests: Likewise.
9690         * modules/frexp-nolibm-tests: Likewise.
9691         * modules/frexp-tests: Likewise.
9692         * modules/frexpl-nolibm-tests: Likewise.
9693         * modules/frexpl-tests: Likewise.
9694         * modules/getaddrinfo-tests: Likewise.
9695         * modules/inttypes-tests: Likewise.
9696         * modules/isfinite-tests: Likewise.
9697         * modules/isinf-tests: Likewise.
9698         * modules/ldexpl-tests: Likewise.
9699         * modules/locale-tests: Likewise.
9700         * modules/math-tests: Likewise.
9701         * modules/netdb-tests: Likewise.
9702         * modules/netinet_in-tests: Likewise.
9703         * modules/printf-frexp-tests: Likewise.
9704         * modules/printf-frexpl-tests: Likewise.
9705         * modules/priv-set-tests: Likewise.
9706         * modules/random_r-tests: Likewise.
9707         * modules/round-tests: Likewise.
9708         * modules/roundf-tests: Likewise.
9709         * modules/roundl-tests: Likewise.
9710         * modules/search-tests: Likewise.
9711         * modules/select-tests: Likewise.
9712         * modules/signal-tests: Likewise.
9713         * modules/stdbool-tests: Likewise.
9714         * modules/stddef-tests: Likewise.
9715         * modules/stdint-tests: Likewise.
9716         * modules/stdio-tests: Likewise.
9717         * modules/stdlib-tests: Likewise.
9718         * modules/string-tests: Likewise.
9719         * modules/strings-tests: Likewise.
9720         * modules/sys_select-tests: Likewise.
9721         * modules/sys_socket-tests: Likewise.
9722         * modules/sys_stat-tests: Likewise.
9723         * modules/sys_time-tests: Likewise.
9724         * modules/sys_utsname-tests: Likewise.
9725         * modules/sysexits-tests: Likewise.
9726         * modules/time-tests: Likewise.
9727         * modules/trunc-tests: Likewise.
9728         * modules/truncf-tests: Likewise.
9729         * modules/truncl-tests: Likewise.
9730         * modules/tsearch-tests: Likewise.
9731         * modules/unistd-tests: Likewise.
9732         * modules/wchar-tests: Likewise.
9733         * modules/wctype-tests: Likewise.
9734
9735         tests: fix license on several tests
9736         * tests/test-des.c: Update to GPLv3+.
9737         * tests/test-flock.c: Likewise.
9738         * tests/test-fsync.c: Likewise.
9739         * tests/test-futimens.h: Likewise.
9740         * tests/test-gc-arcfour.c: Likewise.
9741         * tests/test-gc-arctwo.c: Likewise.
9742         * tests/test-gc-des.c: Likewise.
9743         * tests/test-gc-hmac-md5.c: Likewise.
9744         * tests/test-gc-hmac-sha1.c: Likewise.
9745         * tests/test-gc-md2.c: Likewise.
9746         * tests/test-gc-md4.c: Likewise.
9747         * tests/test-gc-md5.c: Likewise.
9748         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9749         * tests/test-gc-rijndael.c: Likewise.
9750         * tests/test-gc-sha1.c: Likewise.
9751         * tests/test-gc.c: Likewise.
9752         * tests/test-getcwd.c: Likewise.
9753         * tests/test-link.c: Likewise.
9754         * tests/test-link.h: Likewise.
9755         * tests/test-lutimens.h: Likewise.
9756         * tests/test-md2.c: Likewise.
9757         * tests/test-md4.c: Likewise.
9758         * tests/test-mkdir.h: Likewise.
9759         * tests/test-rename.c: Likewise.
9760         * tests/test-rename.h: Likewise.
9761         * tests/test-safe-alloc.c: Likewise.
9762         * tests/test-utimens-common.h: Likewise.
9763         * tests/test-utimens.h: Likewise.
9764
9765         maint: sync license texts
9766         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9767         * doc/gpl-3.0.texi: Revert copyright year update.
9768         * doc/lgpl-3.0.texi: Likewise.
9769
9770 2009-12-29  Jim Meyering  <meyering@redhat.com>
9771
9772         update nearly all FSF copyright year lists to include 2009
9773         The files named by the following are exempted:
9774             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9775               test -f "$dst" && { echo "$dst"; continue; }
9776               test -d "$dst" || continue
9777               echo "$dst"/$(basename "$src")
9778             done > exempt
9779             git ls-files tests/unictype >> exempt
9780         In the remaining files, convert to all-interval notation if
9781         - there is already at least one year interval like 2000-2003
9782         - the file is maintained by me
9783         - the file is in lib/uni*/, where that style already prevails
9784         Otherwise, use update-copyright's default.
9785
9786 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9787         and Eric Blake  <ebb9@byu.net>
9788
9789         tests: don't require debug system() to pass
9790         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9791         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9792         * tests/test-unlink.h (test_unlink_func): Likewise.
9793         * tests/test-fstatat.c (main): ...into callers.
9794         * tests/test-lstat.c (main): Likewise.
9795         * tests/test-rmdir.c (main): Likewise.
9796         * tests/test-unlink.c (main): Likewise.
9797         * tests/test-unlinkat.c (main): Likewise.
9798         * tests/test-areadlink-with-size.c (main): Don't require a
9799         debug-only system call to pass, aiding cross-testing to mingw.
9800         * tests/test-areadlink.c (main): Likewise.
9801         * tests/test-areadlinkat-with-size.c (main): Likewise.
9802         * tests/test-areadlinkat.c (main): Likewise.
9803         * tests/test-canonicalize-lgpl.c (main): Likewise.
9804         * tests/test-canonicalize.c (main): Likewise.
9805         * tests/test-chown.c (main): Likewise.
9806         * tests/test-fchownat.c (main): Likewise.
9807         * tests/test-lchown.c (main): Likewise.
9808         * tests/test-fdutimensat.c (main): Likewise.
9809         * tests/test-futimens.c (main): Likewise.
9810         * tests/test-link.c (main): Likewise.
9811         * tests/test-linkat.c (main): Likewise.
9812         * tests/test-mkdir.c (main): Likewise.
9813         * tests/test-mkdirat.c (main): Likewise.
9814         * tests/test-mkfifo.c (main): Likewise.
9815         * tests/test-mkfifoat.c (main): Likewise.
9816         * tests/test-mknod.c (main): Likewise.
9817         * tests/test-readlink.c (main): Likewise.
9818         * tests/test-remove.c (main): Likewise.
9819         * tests/test-rename.c (main): Likewise.
9820         * tests/test-renameat.c (main): Likewise.
9821         * tests/test-symlink.c (main): Likewise.
9822         * tests/test-symlinkat.c (main): Likewise.
9823         * tests/test-utimens.c (main): Likewise.
9824         * tests/test-utimensat.c (main): Likewise.
9825
9826 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9827
9828         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9829         on $(UNUSED_PARAMETER_H) to avoid build failure.
9830
9831 2009-12-28  Jim Meyering  <meyering@redhat.com>
9832
9833         update-copyright: you may specify a max. line length other than 72
9834         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9835
9836         maint: use consistent FSF copyright line syntax
9837         * lib/posixtm.c: Add missing comma in FSF copyright line.
9838         * lib/posixtm.h: Likewise.
9839         * lib/getugroups.c: Add missing ", Inc.".
9840
9841         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9842         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9843         FSF copyright line.  Remove trailing blanks.
9844
9845 2009-12-28  Eric Blake  <ebb9@byu.net>
9846
9847         test-dup2: reduce dependencies
9848         * modules/cloexec (Configure.ac): Set witness.
9849         * modules/dup2-tests (Depends-on): Drop cloexec.
9850         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9851         not present.
9852         Suggested by Bruno Haible.
9853
9854 2009-12-26  Bruno Haible  <bruno@clisp.org>
9855
9856         Remove an unneeded dependency.
9857         * modules/fseterr (Depends-on): Remove dup2.
9858
9859 2009-12-26  Eric Blake  <ebb9@byu.net>
9860
9861         tests: use macros.h in more places
9862         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9863         (ASSERT_STREAM): Provide default of stderr.
9864         * tests/test-dirent-safer.c: Include macros.h, using alternate
9865         stream for assertions.
9866         * tests/test-dup-safer.c: Likewise.
9867         * tests/test-freopen-safer.c: Likewise.
9868         * tests/test-getopt.c: Likewise.
9869         * tests/test-openat-safer.c: Likewise.
9870         * tests/test-pipe.c: Likewise.
9871         * tests/test-popen-safer.c: Likewise.
9872         * modules/dirent-safer-tests (Files): Include macros.h.
9873         * modules/unistd-safer-tests (Files): Likewise.
9874         * modules/freopen-safer-tests (Files): Likewise.
9875         * modules/getopt-posix-tests (Files): Likewise.
9876         * modules/openat-safer-tests (Files): Likewise.
9877         * modules/pipe-tests (Files): Likewise.
9878
9879 2009-12-26  Bruno Haible  <bruno@clisp.org>
9880
9881         javacomp: Portability fix.
9882         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9883         that it also works on Solaris.
9884
9885 2009-12-26  Bruno Haible  <bruno@clisp.org>
9886
9887         localename: Fix storage allocation of gl_locale_name_thread's result.
9888         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9889         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9890         all platforms that have 'uselocale'.
9891         (gl_locale_name_thread_unsafe): New function, extracted from
9892         gl_locale_name_thread.
9893         (gl_locale_name_thread): Call struniq on all platforms that have
9894         'uselocale'.
9895         * tests/test-localename.c (test_locale_name_thread): Check that the
9896         resulting strings are permanently allocated.
9897         * modules/localename-tests (Depends-on): Add strdup.
9898
9899 2009-12-26  Bruno Haible  <bruno@clisp.org>
9900
9901         * tests/test-localename.c (categories): Fill in the strings.
9902
9903 2009-12-26  Jim Meyering  <meyering@redhat.com>
9904
9905         isdir: complete the removal of m4/isdir.m4
9906         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9907
9908         isdir: clean up, since at least grep still uses it
9909         * lib/isdir.c: Include "isdir.h".
9910         (S_ISDIR): Remove now-unneeded definition.
9911         * modules/isdir (Files): Add lib/isdir.h.
9912         * lib/isdir.h: New file, with declaration.
9913         * m4/isdir.m4: Remove file -- unneeded.
9914
9915 2009-12-25  Bruno Haible  <bruno@clisp.org>
9916
9917         selinux-h: Make generated .h files standalone.
9918         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9919         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9920         * lib/se-selinux.in.h: Likewise.
9921         * modules/selinux-h (Depends-on): Add unused-parameter.
9922         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9923         selinux/selinux.h and selinux/context.h.
9924         Suggested by Eric Blake.
9925
9926 2009-12-25  Bruno Haible  <bruno@clisp.org>
9927
9928         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9929         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9930         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9931         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9932         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9933
9934 2009-12-24  Bruno Haible  <bruno@clisp.org>
9935
9936         openat: Fix warning.
9937         * lib/openat-proc.c: Include <unistd.h>.
9938
9939 2009-12-24  Bruno Haible  <bruno@clisp.org>
9940
9941         New module 'unused-parameter'.
9942         * build-aux/unused-parameter.h: New file, extracted from earlier
9943         gnulib-common.m4.
9944         * modules/unused-parameter: New file.
9945         * lib/unistr.h: Include unused-parameter.h.
9946         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9947         _GL_UNUSED.
9948         * modules/unistr/base (Depends-on): Add unused-parameter.
9949
9950 2009-12-24  Bruno Haible  <bruno@clisp.org>
9951
9952         Add missing dependencies to 'extensions' module.
9953         * m4/extensions.m4: Add comment.
9954         * modules/accept4 (Depends-on): Add extensions.
9955         * modules/dup3 (Depends-on): Likewise.
9956         * modules/fcntl (Depends-on): Likewise.
9957         * modules/futimens (Depends-on): Likewise.
9958         * modules/mknod (Depends-on): Likewise.
9959         * modules/pipe2 (Depends-on): Likewise.
9960         * modules/stat-time (Depends-on): Likewise.
9961         * modules/strcasestr-simple (Depends-on): Likewise.
9962         * modules/strsignal (Depends-on): Likewise.
9963         * modules/utimensat (Depends-on): Likewise.
9964         * modules/localcharset (Depends-on): Likewise. Needed because of
9965         gl_FCNTL_O_FLAGS.
9966         * modules/wcrtomb (Depends-on): Likewise. Needed because of
9967         AC_TYPE_MBSTATE_T.
9968         * modules/wcsnrtombs (Depends-on): Likewise.
9969         * modules/wcsrtombs (Depends-on): Likewise.
9970
9971 2009-12-24  Bruno Haible  <bruno@clisp.org>
9972
9973         binary-io: Avoid gcc warning due to SET_BINARY.
9974         * lib/binary-io.h (SET_BINARY): Cast the result to void.
9975         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
9976
9977 2009-12-24  Bruno Haible  <bruno@clisp.org>
9978
9979         Avoid future namespace pollution on glibc systems.
9980         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
9981         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
9982         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
9983         glibc systems.
9984
9985 2009-12-24  Bruno Haible  <bruno@clisp.org>
9986
9987         Refactor common macros used in tests.
9988         * tests/macros.h: New file.
9989         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
9990         and/or <stdlib.h>, if appropriate.
9991         (ASSERT, SIZEOF): Remove macros.
9992         * tests/test-areadlink-with-size.c: Likewise.
9993         * tests/test-areadlinkat.c: Likewise.
9994         * tests/test-areadlinkat-with-size.c: Likewise.
9995         * tests/test-argmatch.c: Likewise.
9996         * tests/test-argv-iter.c: Likewise.
9997         * tests/test-array-mergesort.c: Likewise.
9998         * tests/test-array_list.c: Likewise.
9999         * tests/test-array_oset.c: Likewise.
10000         * tests/test-avltree_list.c: Likewise.
10001         * tests/test-avltree_oset.c: Likewise.
10002         * tests/test-avltreehash_list.c: Likewise.
10003         * tests/test-base64.c: Likewise.
10004         * tests/test-binary-io.c: Likewise.
10005         * tests/test-bitrotate.c: Likewise.
10006         * tests/test-btowc.c: Likewise.
10007         * tests/test-byteswap.c: Likewise.
10008         * tests/test-c-ctype.c: Likewise.
10009         * tests/test-c-stack.c: Likewise.
10010         * tests/test-c-strcasecmp.c: Likewise.
10011         * tests/test-c-strcasestr.c: Likewise.
10012         * tests/test-c-strncasecmp.c: Likewise.
10013         * tests/test-c-strstr.c: Likewise.
10014         * tests/test-canonicalize-lgpl.c: Likewise.
10015         * tests/test-canonicalize.c: Likewise.
10016         * tests/test-carray_list.c: Likewise.
10017         * tests/test-ceilf1.c: Likewise.
10018         * tests/test-ceilf2.c: Likewise.
10019         * tests/test-ceill.c: Likewise.
10020         * tests/test-chown.c: Likewise.
10021         * tests/test-cloexec.c: Likewise.
10022         * tests/test-copy-acl.c: Likewise.
10023         * tests/test-copy-file.c: Likewise.
10024         * tests/test-count-one-bits.c: Likewise.
10025         * tests/test-dprintf-posix.c: Likewise.
10026         * tests/test-dup2.c: Likewise.
10027         * tests/test-dup3.c: Likewise.
10028         * tests/test-duplocale.c: Likewise.
10029         * tests/test-fbufmode.c: Likewise.
10030         * tests/test-fchdir.c: Likewise.
10031         * tests/test-fchownat.c: Likewise.
10032         * tests/test-fcntl-safer.c: Likewise.
10033         * tests/test-fcntl.c: Likewise.
10034         * tests/test-fdopendir.c: Likewise.
10035         * tests/test-fdutimensat.c: Likewise.
10036         * tests/test-fflush2.c: Likewise.
10037         * tests/test-file-has-acl.c: Likewise.
10038         * tests/test-filevercmp.c: Likewise.
10039         * tests/test-flock.c: Likewise.
10040         * tests/test-floorf1.c: Likewise.
10041         * tests/test-floorf2.c: Likewise.
10042         * tests/test-floorl.c: Likewise.
10043         * tests/test-fnmatch.c: Likewise.
10044         * tests/test-fopen.h: Likewise.
10045         * tests/test-fpending.c: Likewise.
10046         * tests/test-fprintf-posix.c: Likewise.
10047         * tests/test-fpurge.c: Likewise.
10048         * tests/test-freadable.c: Likewise.
10049         * tests/test-freadahead.c: Likewise.
10050         * tests/test-freading.c: Likewise.
10051         * tests/test-freadptr.c: Likewise.
10052         * tests/test-freadptr2.c: Likewise.
10053         * tests/test-freadseek.c: Likewise.
10054         * tests/test-freopen.c: Likewise.
10055         * tests/test-frexp.c: Likewise.
10056         * tests/test-frexpl.c: Likewise.
10057         * tests/test-fseek.c: Likewise.
10058         * tests/test-fseeko.c: Likewise.
10059         * tests/test-fstatat.c: Likewise.
10060         * tests/test-fstrcmp.c: Likewise.
10061         * tests/test-fsync.c: Likewise.
10062         * tests/test-ftell.c: Likewise.
10063         * tests/test-ftello.c: Likewise.
10064         * tests/test-func.c: Likewise.
10065         * tests/test-futimens.c: Likewise.
10066         * tests/test-fwritable.c: Likewise.
10067         * tests/test-fwriting.c: Likewise.
10068         * tests/test-getcwd.c: Likewise.
10069         * tests/test-getdate.c: Likewise.
10070         * tests/test-getdelim.c: Likewise.
10071         * tests/test-getdtablesize.c: Likewise.
10072         * tests/test-getgroups.c: Likewise.
10073         * tests/test-getline.c: Likewise.
10074         * tests/test-getndelim2.c: Likewise.
10075         * tests/test-glob.c: Likewise.
10076         * tests/test-hash.c: Likewise.
10077         * tests/test-i-ring.c: Likewise.
10078         * tests/test-iconv-utf.c: Likewise.
10079         * tests/test-iconv.c: Likewise.
10080         * tests/test-idpriv-drop.c: Likewise.
10081         * tests/test-idpriv-droptemp.c: Likewise.
10082         * tests/test-inet_ntop.c: Likewise.
10083         * tests/test-inet_pton.c: Likewise.
10084         * tests/test-isblank.c: Likewise.
10085         * tests/test-isfinite.c: Likewise.
10086         * tests/test-isinf.c: Likewise.
10087         * tests/test-isnan.c: Likewise.
10088         * tests/test-isnand.h: Likewise.
10089         * tests/test-isnanf.h: Likewise.
10090         * tests/test-isnanl.h: Likewise.
10091         * tests/test-lchown.c: Likewise.
10092         * tests/test-ldexpl.c: Likewise.
10093         * tests/test-link.c: Likewise.
10094         * tests/test-linkat.c: Likewise.
10095         * tests/test-linked_list.c: Likewise.
10096         * tests/test-linkedhash_list.c: Likewise.
10097         * tests/test-localename.c: Likewise.
10098         * tests/test-lseek.c: Likewise.
10099         * tests/test-lstat.c: Likewise.
10100         * tests/test-mbmemcasecmp.c: Likewise.
10101         * tests/test-mbmemcasecoll.c: Likewise.
10102         * tests/test-mbrtowc.c: Likewise.
10103         * tests/test-mbscasecmp.c: Likewise.
10104         * tests/test-mbscasestr1.c: Likewise.
10105         * tests/test-mbscasestr2.c: Likewise.
10106         * tests/test-mbscasestr3.c: Likewise.
10107         * tests/test-mbscasestr4.c: Likewise.
10108         * tests/test-mbschr.c: Likewise.
10109         * tests/test-mbscspn.c: Likewise.
10110         * tests/test-mbsinit.c: Likewise.
10111         * tests/test-mbsncasecmp.c: Likewise.
10112         * tests/test-mbsnrtowcs.c: Likewise.
10113         * tests/test-mbspbrk.c: Likewise.
10114         * tests/test-mbspcasecmp.c: Likewise.
10115         * tests/test-mbsrchr.c: Likewise.
10116         * tests/test-mbsrtowcs.c: Likewise.
10117         * tests/test-mbsspn.c: Likewise.
10118         * tests/test-mbsstr1.c: Likewise.
10119         * tests/test-mbsstr2.c: Likewise.
10120         * tests/test-mbsstr3.c: Likewise.
10121         * tests/test-memchr.c: Likewise.
10122         * tests/test-memchr2.c: Likewise.
10123         * tests/test-memcmp.c: Likewise.
10124         * tests/test-memmem.c: Likewise.
10125         * tests/test-memrchr.c: Likewise.
10126         * tests/test-mkdir.c: Likewise.
10127         * tests/test-mkdirat.c: Likewise.
10128         * tests/test-mkfifo.c: Likewise.
10129         * tests/test-mkfifoat.c: Likewise.
10130         * tests/test-mknod.c: Likewise.
10131         * tests/test-nanosleep.c: Likewise.
10132         * tests/test-nl_langinfo.c: Likewise.
10133         * tests/test-obstack-printf.c: Likewise.
10134         * tests/test-open.c: Likewise.
10135         * tests/test-openat.c: Likewise.
10136         * tests/test-pipe-filter-gi1.c: Likewise.
10137         * tests/test-pipe-filter-gi2-main.c: Likewise.
10138         * tests/test-pipe-filter-ii1.c: Likewise.
10139         * tests/test-pipe-filter-ii2-main.c: Likewise.
10140         * tests/test-pipe2.c: Likewise.
10141         * tests/test-popen.h: Likewise.
10142         * tests/test-posixtm.c: Likewise.
10143         * tests/test-pread.c: Likewise.
10144         * tests/test-printf-frexp.c: Likewise.
10145         * tests/test-printf-frexpl.c: Likewise.
10146         * tests/test-printf-posix.c: Likewise.
10147         * tests/test-priv-set.c: Likewise.
10148         * tests/test-quotearg.c: Likewise.
10149         * tests/test-random_r.c: Likewise.
10150         * tests/test-rawmemchr.c: Likewise.
10151         * tests/test-rbtree_list.c: Likewise.
10152         * tests/test-rbtree_oset.c: Likewise.
10153         * tests/test-rbtreehash_list.c: Likewise.
10154         * tests/test-readlink.c: Likewise.
10155         * tests/test-remove.c: Likewise.
10156         * tests/test-rename.c: Likewise.
10157         * tests/test-renameat.c: Likewise.
10158         * tests/test-rmdir.c: Likewise.
10159         * tests/test-round1.c: Likewise.
10160         * tests/test-roundf1.c: Likewise.
10161         * tests/test-roundl.c: Likewise.
10162         * tests/test-safe-alloc.c: Likewise.
10163         * tests/test-sameacls.c: Likewise.
10164         * tests/test-set-mode-acl.c: Likewise.
10165         * tests/test-setenv.c: Likewise.
10166         * tests/test-sigaction.c: Likewise.
10167         * tests/test-signbit.c: Likewise.
10168         * tests/test-sleep.c: Likewise.
10169         * tests/test-snprintf-posix.c: Likewise.
10170         * tests/test-snprintf.c: Likewise.
10171         * tests/test-sprintf-posix.c: Likewise.
10172         * tests/test-stat-time.c: Likewise.
10173         * tests/test-stat.c: Likewise.
10174         * tests/test-strcasestr.c: Likewise.
10175         * tests/test-strchrnul.c: Likewise.
10176         * tests/test-strerror.c: Likewise.
10177         * tests/test-striconv.c: Likewise.
10178         * tests/test-striconveh.c: Likewise.
10179         * tests/test-striconveha.c: Likewise.
10180         * tests/test-strsignal.c: Likewise.
10181         * tests/test-strstr.c: Likewise.
10182         * tests/test-strtod.c: Likewise.
10183         * tests/test-strverscmp.c: Likewise.
10184         * tests/test-symlink.c: Likewise.
10185         * tests/test-symlinkat.c: Likewise.
10186         * tests/test-trunc1.c: Likewise.
10187         * tests/test-trunc2.c: Likewise.
10188         * tests/test-truncf1.c: Likewise.
10189         * tests/test-truncf2.c: Likewise.
10190         * tests/test-truncl.c: Likewise.
10191         * tests/test-uname.c: Likewise.
10192         * tests/test-unlink.c: Likewise.
10193         * tests/test-unlinkat.c: Likewise.
10194         * tests/test-unsetenv.c: Likewise.
10195         * tests/test-usleep.c: Likewise.
10196         * tests/test-utimens.c: Likewise.
10197         * tests/test-utimensat.c: Likewise.
10198         * tests/test-vasnprintf-posix.c: Likewise.
10199         * tests/test-vasnprintf-posix2.c: Likewise.
10200         * tests/test-vasnprintf.c: Likewise.
10201         * tests/test-vasprintf-posix.c: Likewise.
10202         * tests/test-vasprintf.c: Likewise.
10203         * tests/test-vdprintf-posix.c: Likewise.
10204         * tests/test-vfprintf-posix.c: Likewise.
10205         * tests/test-vprintf-posix.c: Likewise.
10206         * tests/test-vsnprintf-posix.c: Likewise.
10207         * tests/test-vsnprintf.c: Likewise.
10208         * tests/test-vsprintf-posix.c: Likewise.
10209         * tests/test-wcrtomb.c: Likewise.
10210         * tests/test-wcsnrtombs.c: Likewise.
10211         * tests/test-wcsrtombs.c: Likewise.
10212         * tests/test-wctype.c: Likewise.
10213         * tests/test-wcwidth.c: Likewise.
10214         * tests/test-xfprintf-posix.c: Likewise.
10215         * tests/test-xmemdup0.c: Likewise.
10216         * tests/test-xprintf-posix.c: Likewise.
10217         * tests/test-xvasprintf.c: Likewise.
10218         * tests/unicase/test-locale-language.c: Likewise.
10219         * tests/unicase/test-mapping-part1.h: Likewise.
10220         * tests/unicase/test-predicate-part1.h: Likewise.
10221         * tests/unicase/test-u8-casecmp.c: Likewise.
10222         * tests/unicase/test-u8-casecoll.c: Likewise.
10223         * tests/unicase/test-u8-casefold.c: Likewise.
10224         * tests/unicase/test-u8-is-cased.c: Likewise.
10225         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10226         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10227         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10228         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10229         * tests/unicase/test-u8-tolower.c: Likewise.
10230         * tests/unicase/test-u8-totitle.c: Likewise.
10231         * tests/unicase/test-u8-toupper.c: Likewise.
10232         * tests/unicase/test-u16-casecmp.c: Likewise.
10233         * tests/unicase/test-u16-casecoll.c: Likewise.
10234         * tests/unicase/test-u16-casefold.c: Likewise.
10235         * tests/unicase/test-u16-is-cased.c: Likewise.
10236         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10237         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10238         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10239         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10240         * tests/unicase/test-u16-tolower.c: Likewise.
10241         * tests/unicase/test-u16-totitle.c: Likewise.
10242         * tests/unicase/test-u16-toupper.c: Likewise.
10243         * tests/unicase/test-u32-casecmp.c: Likewise.
10244         * tests/unicase/test-u32-casecoll.c: Likewise.
10245         * tests/unicase/test-u32-casefold.c: Likewise.
10246         * tests/unicase/test-u32-is-cased.c: Likewise.
10247         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10248         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10249         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10250         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10251         * tests/unicase/test-u32-tolower.c: Likewise.
10252         * tests/unicase/test-u32-totitle.c: Likewise.
10253         * tests/unicase/test-u32-toupper.c: Likewise.
10254         * tests/unicase/test-ulc-casecmp.c: Likewise.
10255         * tests/unicase/test-ulc-casecoll.c: Likewise.
10256         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10257         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10258         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10259         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10260         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10261         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10262         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10263         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10264         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10265         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10268         * tests/unictype/test-bidi_byname.c: Likewise.
10269         * tests/unictype/test-bidi_name.c: Likewise.
10270         * tests/unictype/test-bidi_of.c: Likewise.
10271         * tests/unictype/test-bidi_test.c: Likewise.
10272         * tests/unictype/test-block_list.c: Likewise.
10273         * tests/unictype/test-block_of.c: Likewise.
10274         * tests/unictype/test-block_test.c: Likewise.
10275         * tests/unictype/test-categ_and.c: Likewise.
10276         * tests/unictype/test-categ_and_not.c: Likewise.
10277         * tests/unictype/test-categ_byname.c: Likewise.
10278         * tests/unictype/test-categ_name.c: Likewise.
10279         * tests/unictype/test-categ_none.c: Likewise.
10280         * tests/unictype/test-categ_of.c: Likewise.
10281         * tests/unictype/test-categ_or.c: Likewise.
10282         * tests/unictype/test-categ_test_withtable.c: Likewise.
10283         * tests/unictype/test-combining.c: Likewise.
10284         * tests/unictype/test-decdigit.c: Likewise.
10285         * tests/unictype/test-digit.c: Likewise.
10286         * tests/unictype/test-mirror.c: Likewise.
10287         * tests/unictype/test-numeric.c: Likewise.
10288         * tests/unictype/test-pr_byname.c: Likewise.
10289         * tests/unictype/test-pr_test.c: Likewise.
10290         * tests/unictype/test-predicate-part1.h: Likewise.
10291         * tests/unictype/test-scripts.c: Likewise.
10292         * tests/unictype/test-sy_c_ident.c: Likewise.
10293         * tests/unictype/test-sy_java_ident.c: Likewise.
10294         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10295         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10296         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10297         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10298         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10299         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10300         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10301         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10302         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10303         * tests/uninorm/test-compat-decomposition.c: Likewise.
10304         * tests/uninorm/test-composition.c: Likewise.
10305         * tests/uninorm/test-decomposing-form.c: Likewise.
10306         * tests/uninorm/test-decomposition.c: Likewise.
10307         * tests/uninorm/test-u8-nfc.c: Likewise.
10308         * tests/uninorm/test-u8-nfd.c: Likewise.
10309         * tests/uninorm/test-u8-nfkc.c: Likewise.
10310         * tests/uninorm/test-u8-nfkd.c: Likewise.
10311         * tests/uninorm/test-u8-normcmp.c: Likewise.
10312         * tests/uninorm/test-u8-normcoll.c: Likewise.
10313         * tests/uninorm/test-u16-nfc.c: Likewise.
10314         * tests/uninorm/test-u16-nfd.c: Likewise.
10315         * tests/uninorm/test-u16-nfkc.c: Likewise.
10316         * tests/uninorm/test-u16-nfkd.c: Likewise.
10317         * tests/uninorm/test-u16-normcmp.c: Likewise.
10318         * tests/uninorm/test-u16-normcoll.c: Likewise.
10319         * tests/uninorm/test-u32-nfc.c: Likewise.
10320         * tests/uninorm/test-u32-nfd.c: Likewise.
10321         * tests/uninorm/test-u32-nfkc.c: Likewise.
10322         * tests/uninorm/test-u32-nfkd.c: Likewise.
10323         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10324         * tests/uninorm/test-u32-normcmp.c: Likewise.
10325         * tests/uninorm/test-u32-normcoll.c: Likewise.
10326         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10327         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10328         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10329         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10330         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10331         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10332         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10333         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10334         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10335         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10336         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10337         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10338         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10339         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10340         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10341         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10342         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10343         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10344         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10345         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10346         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10347         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10348         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10349         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10350         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10351         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10352         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10353         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10354         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10355         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10356         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10357         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10358         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10359         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10360         * tests/uniwidth/test-u8-width.c: Likewise.
10361         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10362         * tests/uniwidth/test-u16-width.c: Likewise.
10363         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10364         * tests/uniwidth/test-u32-width.c: Likewise.
10365         * tests/uniwidth/test-uc_width.c: Likewise.
10366         * tests/uniwidth/test-uc_width2.c: Likewise.
10367         * modules/acl-tests (Files): Add tests/macros.h.
10368         * modules/areadlink-tests (Files): Likewise.
10369         * modules/areadlink-with-size-tests (Files): Likewise.
10370         * modules/areadlinkat-tests (Files): Likewise.
10371         * modules/areadlinkat-with-size-tests (Files): Likewise.
10372         * modules/argmatch-tests (Files): Likewise.
10373         * modules/argv-iter-tests (Files): Likewise.
10374         * modules/array-list-tests (Files): Likewise.
10375         * modules/array-mergesort-tests (Files): Likewise.
10376         * modules/array-oset-tests (Files): Likewise.
10377         * modules/avltree-list-tests (Files): Likewise.
10378         * modules/avltree-oset-tests (Files): Likewise.
10379         * modules/avltreehash-list-tests (Files): Likewise.
10380         * modules/base64-tests (Files): Likewise.
10381         * modules/binary-io-tests (Files): Likewise.
10382         * modules/bitrotate-tests (Files): Likewise.
10383         * modules/btowc-tests (Files): Likewise.
10384         * modules/byteswap-tests (Files): Likewise.
10385         * modules/c-ctype-tests (Files): Likewise.
10386         * modules/c-stack-tests (Files): Likewise.
10387         * modules/c-strcase-tests (Files): Likewise.
10388         * modules/c-strcasestr-tests (Files): Likewise.
10389         * modules/c-strstr-tests (Files): Likewise.
10390         * modules/canonicalize-lgpl-tests (Files): Likewise.
10391         * modules/canonicalize-tests (Files): Likewise.
10392         * modules/carray-list-tests (Files): Likewise.
10393         * modules/ceilf-tests (Files): Likewise.
10394         * modules/ceill-tests (Files): Likewise.
10395         * modules/chown-tests (Files): Likewise.
10396         * modules/cloexec-tests (Files): Likewise.
10397         * modules/copy-file-tests (Files): Likewise.
10398         * modules/count-one-bits-tests (Files): Likewise.
10399         * modules/dprintf-posix-tests (Files): Likewise.
10400         * modules/dup2-tests (Files): Likewise.
10401         * modules/dup3-tests (Files): Likewise.
10402         * modules/duplocale-tests (Files): Likewise.
10403         * modules/fbufmode-tests (Files): Likewise.
10404         * modules/fchdir-tests (Files): Likewise.
10405         * modules/fcntl-safer-tests (Files): Likewise.
10406         * modules/fcntl-tests (Files): Likewise.
10407         * modules/fdopendir-tests (Files): Likewise.
10408         * modules/fdutimensat-tests (Files): Likewise.
10409         * modules/fflush-tests (Files): Likewise.
10410         * modules/filevercmp-tests (Files): Likewise.
10411         * modules/flock-tests (Files): Likewise.
10412         * modules/floorf-tests (Files): Likewise.
10413         * modules/floorl-tests (Files): Likewise.
10414         * modules/fnmatch-tests (Files): Likewise.
10415         * modules/fopen-safer-tests (Files): Likewise.
10416         * modules/fopen-tests (Files): Likewise.
10417         * modules/fpending-tests (Files): Likewise.
10418         * modules/fprintf-posix-tests (Files): Likewise.
10419         * modules/fpurge-tests (Files): Likewise.
10420         * modules/freadable-tests (Files): Likewise.
10421         * modules/freadahead-tests (Files): Likewise.
10422         * modules/freading-tests (Files): Likewise.
10423         * modules/freadptr-tests (Files): Likewise.
10424         * modules/freadseek-tests (Files): Likewise.
10425         * modules/freopen-tests (Files): Likewise.
10426         * modules/frexp-nolibm-tests (Files): Likewise.
10427         * modules/frexp-tests (Files): Likewise.
10428         * modules/frexpl-nolibm-tests (Files): Likewise.
10429         * modules/frexpl-tests (Files): Likewise.
10430         * modules/fseek-tests (Files): Likewise.
10431         * modules/fseeko-tests (Files): Likewise.
10432         * modules/fstrcmp-tests (Files): Likewise.
10433         * modules/fsync-tests (Files): Likewise.
10434         * modules/ftell-tests (Files): Likewise.
10435         * modules/ftello-tests (Files): Likewise.
10436         * modules/func-tests (Files): Likewise.
10437         * modules/futimens-tests (Files): Likewise.
10438         * modules/fwritable-tests (Files): Likewise.
10439         * modules/fwriting-tests (Files): Likewise.
10440         * modules/getcwd-tests (Files): Likewise.
10441         * modules/getdate-tests (Files): Likewise.
10442         * modules/getdelim-tests (Files): Likewise.
10443         * modules/getdtablesize-tests (Files): Likewise.
10444         * modules/getgroups-tests (Files): Likewise.
10445         * modules/getline-tests (Files): Likewise.
10446         * modules/getndelim2-tests (Files): Likewise.
10447         * modules/glob-tests (Files): Likewise.
10448         * modules/hash-tests (Files): Likewise.
10449         * modules/i-ring-tests (Files): Likewise.
10450         * modules/iconv-tests (Files): Likewise.
10451         * modules/iconv_open-utf-tests (Files): Likewise.
10452         * modules/idpriv-drop-tests (Files): Likewise.
10453         * modules/idpriv-droptemp-tests (Files): Likewise.
10454         * modules/inet_ntop-tests (Files): Likewise.
10455         * modules/inet_pton-tests (Files): Likewise.
10456         * modules/isblank-tests (Files): Likewise.
10457         * modules/isfinite-tests (Files): Likewise.
10458         * modules/isinf-tests (Files): Likewise.
10459         * modules/isnan-tests (Files): Likewise.
10460         * modules/isnand-nolibm-tests (Files): Likewise.
10461         * modules/isnand-tests (Files): Likewise.
10462         * modules/isnanf-nolibm-tests (Files): Likewise.
10463         * modules/isnanf-tests (Files): Likewise.
10464         * modules/isnanl-nolibm-tests (Files): Likewise.
10465         * modules/isnanl-tests (Files): Likewise.
10466         * modules/lchown-tests (Files): Likewise.
10467         * modules/ldexpl-tests (Files): Likewise.
10468         * modules/link-tests (Files): Likewise.
10469         * modules/linkat-tests (Files): Likewise.
10470         * modules/linked-list-tests (Files): Likewise.
10471         * modules/linkedhash-list-tests (Files): Likewise.
10472         * modules/localename-tests (Files): Likewise.
10473         * modules/lseek-tests (Files): Likewise.
10474         * modules/lstat-tests (Files): Likewise.
10475         * modules/mbmemcasecmp-tests (Files): Likewise.
10476         * modules/mbmemcasecoll-tests (Files): Likewise.
10477         * modules/mbrtowc-tests (Files): Likewise.
10478         * modules/mbscasecmp-tests (Files): Likewise.
10479         * modules/mbscasestr-tests (Files): Likewise.
10480         * modules/mbschr-tests (Files): Likewise.
10481         * modules/mbscspn-tests (Files): Likewise.
10482         * modules/mbsinit-tests (Files): Likewise.
10483         * modules/mbsncasecmp-tests (Files): Likewise.
10484         * modules/mbsnrtowcs-tests (Files): Likewise.
10485         * modules/mbspbrk-tests (Files): Likewise.
10486         * modules/mbspcasecmp-tests (Files): Likewise.
10487         * modules/mbsrchr-tests (Files): Likewise.
10488         * modules/mbsrtowcs-tests (Files): Likewise.
10489         * modules/mbsspn-tests (Files): Likewise.
10490         * modules/mbsstr-tests (Files): Likewise.
10491         * modules/memchr-tests (Files): Likewise.
10492         * modules/memchr2-tests (Files): Likewise.
10493         * modules/memcmp-tests (Files): Likewise.
10494         * modules/memmem-tests (Files): Likewise.
10495         * modules/memrchr-tests (Files): Likewise.
10496         * modules/mkdir-tests (Files): Likewise.
10497         * modules/mkfifo-tests (Files): Likewise.
10498         * modules/mkfifoat-tests (Files): Likewise.
10499         * modules/mknod-tests (Files): Likewise.
10500         * modules/nanosleep-tests (Files): Likewise.
10501         * modules/nl_langinfo-tests (Files): Likewise.
10502         * modules/obstack-printf-tests (Files): Likewise.
10503         * modules/open-tests (Files): Likewise.
10504         * modules/openat-tests (Files): Likewise.
10505         * modules/pipe-filter-gi-tests (Files): Likewise.
10506         * modules/pipe-filter-ii-tests (Files): Likewise.
10507         * modules/pipe2-tests (Files): Likewise.
10508         * modules/popen-safer-tests (Files): Likewise.
10509         * modules/popen-tests (Files): Likewise.
10510         * modules/posixtm-tests (Files): Likewise.
10511         * modules/pread-tests (Files): Likewise.
10512         * modules/printf-frexp-tests (Files): Likewise.
10513         * modules/printf-frexpl-tests (Files): Likewise.
10514         * modules/printf-posix-tests (Files): Likewise.
10515         * modules/priv-set-tests (Files): Likewise.
10516         * modules/quotearg-tests (Files): Likewise.
10517         * modules/random_r-tests (Files): Likewise.
10518         * modules/rawmemchr-tests (Files): Likewise.
10519         * modules/rbtree-list-tests (Files): Likewise.
10520         * modules/rbtree-oset-tests (Files): Likewise.
10521         * modules/rbtreehash-list-tests (Files): Likewise.
10522         * modules/readlink-tests (Files): Likewise.
10523         * modules/remove-tests (Files): Likewise.
10524         * modules/rename-tests (Files): Likewise.
10525         * modules/renameat-tests (Files): Likewise.
10526         * modules/rmdir-tests (Files): Likewise.
10527         * modules/round-tests (Files): Likewise.
10528         * modules/roundf-tests (Files): Likewise.
10529         * modules/roundl-tests (Files): Likewise.
10530         * modules/safe-alloc-tests (Files): Likewise.
10531         * modules/setenv-tests (Files): Likewise.
10532         * modules/sigaction-tests (Files): Likewise.
10533         * modules/signbit-tests (Files): Likewise.
10534         * modules/sleep-tests (Files): Likewise.
10535         * modules/snprintf-posix-tests (Files): Likewise.
10536         * modules/snprintf-tests (Files): Likewise.
10537         * modules/sprintf-posix-tests (Files): Likewise.
10538         * modules/stat-tests (Files): Likewise.
10539         * modules/stat-time-tests (Files): Likewise.
10540         * modules/strcasestr-tests (Files): Likewise.
10541         * modules/strchrnul-tests (Files): Likewise.
10542         * modules/strerror-tests (Files): Likewise.
10543         * modules/striconv-tests (Files): Likewise.
10544         * modules/striconveh-tests (Files): Likewise.
10545         * modules/striconveha-tests (Files): Likewise.
10546         * modules/strsignal-tests (Files): Likewise.
10547         * modules/strstr-tests (Files): Likewise.
10548         * modules/strtod-tests (Files): Likewise.
10549         * modules/strverscmp-tests (Files): Likewise.
10550         * modules/symlink-tests (Files): Likewise.
10551         * modules/symlinkat-tests (Files): Likewise.
10552         * modules/trunc-tests (Files): Likewise.
10553         * modules/truncf-tests (Files): Likewise.
10554         * modules/truncl-tests (Files): Likewise.
10555         * modules/uname-tests (Files): Likewise.
10556         * modules/unicase/cased-tests (Files): Likewise.
10557         * modules/unicase/ignorable-tests (Files): Likewise.
10558         * modules/unicase/locale-language-tests (Files): Likewise.
10559         * modules/unicase/tolower-tests (Files): Likewise.
10560         * modules/unicase/totitle-tests (Files): Likewise.
10561         * modules/unicase/toupper-tests (Files): Likewise.
10562         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10563         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10564         * modules/unicase/u8-casefold-tests (Files): Likewise.
10565         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10566         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10567         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10568         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10569         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10570         * modules/unicase/u8-tolower-tests (Files): Likewise.
10571         * modules/unicase/u8-totitle-tests (Files): Likewise.
10572         * modules/unicase/u8-toupper-tests (Files): Likewise.
10573         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10574         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10575         * modules/unicase/u16-casefold-tests (Files): Likewise.
10576         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10577         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10578         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10579         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10580         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10581         * modules/unicase/u16-tolower-tests (Files): Likewise.
10582         * modules/unicase/u16-totitle-tests (Files): Likewise.
10583         * modules/unicase/u16-toupper-tests (Files): Likewise.
10584         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10585         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10586         * modules/unicase/u32-casefold-tests (Files): Likewise.
10587         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10588         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10589         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10590         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10591         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10592         * modules/unicase/u32-tolower-tests (Files): Likewise.
10593         * modules/unicase/u32-totitle-tests (Files): Likewise.
10594         * modules/unicase/u32-toupper-tests (Files): Likewise.
10595         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10596         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10597         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10598         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10599         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10600         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10601         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10602         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10603         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10604         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10605         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10606         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10607         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10608         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10609         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10610         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10611         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10612         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10613         * modules/unictype/block-list-tests (Files): Likewise.
10614         * modules/unictype/block-of-tests (Files): Likewise.
10615         * modules/unictype/block-test-tests (Files): Likewise.
10616         * modules/unictype/category-C-tests (Files): Likewise.
10617         * modules/unictype/category-Cc-tests (Files): Likewise.
10618         * modules/unictype/category-Cf-tests (Files): Likewise.
10619         * modules/unictype/category-Cn-tests (Files): Likewise.
10620         * modules/unictype/category-Co-tests (Files): Likewise.
10621         * modules/unictype/category-Cs-tests (Files): Likewise.
10622         * modules/unictype/category-L-tests (Files): Likewise.
10623         * modules/unictype/category-Ll-tests (Files): Likewise.
10624         * modules/unictype/category-Lm-tests (Files): Likewise.
10625         * modules/unictype/category-Lo-tests (Files): Likewise.
10626         * modules/unictype/category-Lt-tests (Files): Likewise.
10627         * modules/unictype/category-Lu-tests (Files): Likewise.
10628         * modules/unictype/category-M-tests (Files): Likewise.
10629         * modules/unictype/category-Mc-tests (Files): Likewise.
10630         * modules/unictype/category-Me-tests (Files): Likewise.
10631         * modules/unictype/category-Mn-tests (Files): Likewise.
10632         * modules/unictype/category-N-tests (Files): Likewise.
10633         * modules/unictype/category-Nd-tests (Files): Likewise.
10634         * modules/unictype/category-Nl-tests (Files): Likewise.
10635         * modules/unictype/category-No-tests (Files): Likewise.
10636         * modules/unictype/category-P-tests (Files): Likewise.
10637         * modules/unictype/category-Pc-tests (Files): Likewise.
10638         * modules/unictype/category-Pd-tests (Files): Likewise.
10639         * modules/unictype/category-Pe-tests (Files): Likewise.
10640         * modules/unictype/category-Pf-tests (Files): Likewise.
10641         * modules/unictype/category-Pi-tests (Files): Likewise.
10642         * modules/unictype/category-Po-tests (Files): Likewise.
10643         * modules/unictype/category-Ps-tests (Files): Likewise.
10644         * modules/unictype/category-S-tests (Files): Likewise.
10645         * modules/unictype/category-Sc-tests (Files): Likewise.
10646         * modules/unictype/category-Sk-tests (Files): Likewise.
10647         * modules/unictype/category-Sm-tests (Files): Likewise.
10648         * modules/unictype/category-So-tests (Files): Likewise.
10649         * modules/unictype/category-Z-tests (Files): Likewise.
10650         * modules/unictype/category-Zl-tests (Files): Likewise.
10651         * modules/unictype/category-Zp-tests (Files): Likewise.
10652         * modules/unictype/category-Zs-tests (Files): Likewise.
10653         * modules/unictype/category-and-not-tests (Files): Likewise.
10654         * modules/unictype/category-and-tests (Files): Likewise.
10655         * modules/unictype/category-byname-tests (Files): Likewise.
10656         * modules/unictype/category-name-tests (Files): Likewise.
10657         * modules/unictype/category-none-tests (Files): Likewise.
10658         * modules/unictype/category-of-tests (Files): Likewise.
10659         * modules/unictype/category-or-tests (Files): Likewise.
10660         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10661         * modules/unictype/combining-class-tests (Files): Likewise.
10662         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10663         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10664         * modules/unictype/ctype-blank-tests (Files): Likewise.
10665         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10666         * modules/unictype/ctype-digit-tests (Files): Likewise.
10667         * modules/unictype/ctype-graph-tests (Files): Likewise.
10668         * modules/unictype/ctype-lower-tests (Files): Likewise.
10669         * modules/unictype/ctype-print-tests (Files): Likewise.
10670         * modules/unictype/ctype-punct-tests (Files): Likewise.
10671         * modules/unictype/ctype-space-tests (Files): Likewise.
10672         * modules/unictype/ctype-upper-tests (Files): Likewise.
10673         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10674         * modules/unictype/decimal-digit-tests (Files): Likewise.
10675         * modules/unictype/digit-tests (Files): Likewise.
10676         * modules/unictype/mirror-tests (Files): Likewise.
10677         * modules/unictype/numeric-tests (Files): Likewise.
10678         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10679         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10680         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10681         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10682         Likewise.
10683         * modules/unictype/property-bidi-block-separator-tests (Files):
10684         Likewise.
10685         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10686         Likewise.
10687         * modules/unictype/property-bidi-common-separator-tests (Files):
10688         Likewise.
10689         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10690         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10691         Likewise.
10692         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10693         Likewise.
10694         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10695         Likewise.
10696         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10697         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10698         Likewise.
10699         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10700         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10701         Likewise.
10702         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10703         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10704         * modules/unictype/property-bidi-segment-separator-tests (Files):
10705         Likewise.
10706         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10707         * modules/unictype/property-byname-tests (Files): Likewise.
10708         * modules/unictype/property-combining-tests (Files): Likewise.
10709         * modules/unictype/property-composite-tests (Files): Likewise.
10710         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10711         * modules/unictype/property-dash-tests (Files): Likewise.
10712         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10713         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10714         Likewise.
10715         * modules/unictype/property-deprecated-tests (Files): Likewise.
10716         * modules/unictype/property-diacritic-tests (Files): Likewise.
10717         * modules/unictype/property-extender-tests (Files): Likewise.
10718         * modules/unictype/property-format-control-tests (Files): Likewise.
10719         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10720         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10721         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10722         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10723         * modules/unictype/property-hyphen-tests (Files): Likewise.
10724         * modules/unictype/property-id-continue-tests (Files): Likewise.
10725         * modules/unictype/property-id-start-tests (Files): Likewise.
10726         * modules/unictype/property-ideographic-tests (Files): Likewise.
10727         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10728         * modules/unictype/property-ids-trinary-operator-tests (Files):
10729         Likewise.
10730         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10731         * modules/unictype/property-iso-control-tests (Files): Likewise.
10732         * modules/unictype/property-join-control-tests (Files): Likewise.
10733         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10734         * modules/unictype/property-line-separator-tests (Files): Likewise.
10735         * modules/unictype/property-logical-order-exception-tests (Files):
10736         Likewise.
10737         * modules/unictype/property-lowercase-tests (Files): Likewise.
10738         * modules/unictype/property-math-tests (Files): Likewise.
10739         * modules/unictype/property-non-break-tests (Files): Likewise.
10740         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10741         * modules/unictype/property-numeric-tests (Files): Likewise.
10742         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10743         * modules/unictype/property-other-default-ignorable-code-point-tests
10744         (Files): Likewise.
10745         * modules/unictype/property-other-grapheme-extend-tests (Files):
10746         Likewise.
10747         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10748         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10749         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10750         * modules/unictype/property-other-math-tests (Files): Likewise.
10751         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10752         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10753         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10754         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10755         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10756         * modules/unictype/property-private-use-tests (Files): Likewise.
10757         * modules/unictype/property-punctuation-tests (Files): Likewise.
10758         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10759         * modules/unictype/property-radical-tests (Files): Likewise.
10760         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10761         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10762         * modules/unictype/property-space-tests (Files): Likewise.
10763         * modules/unictype/property-terminal-punctuation-tests (Files):
10764         Likewise.
10765         * modules/unictype/property-test-tests (Files): Likewise.
10766         * modules/unictype/property-titlecase-tests (Files): Likewise.
10767         * modules/unictype/property-unassigned-code-value-tests (Files):
10768         Likewise.
10769         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10770         * modules/unictype/property-uppercase-tests (Files): Likewise.
10771         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10772         * modules/unictype/property-white-space-tests (Files): Likewise.
10773         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10774         * modules/unictype/property-xid-start-tests (Files): Likewise.
10775         * modules/unictype/property-zero-width-tests (Files): Likewise.
10776         * modules/unictype/scripts-tests (Files): Likewise.
10777         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10778         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10779         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10780         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10781         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10782         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10783         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10784         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10785         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10786         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10787         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10788         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10789         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10790         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10791         * modules/uninorm/composition-tests (Files): Likewise.
10792         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10793         * modules/uninorm/decomposition-tests (Files): Likewise.
10794         * modules/uninorm/filter-tests (Files): Likewise.
10795         * modules/uninorm/nfc-tests (Files): Likewise.
10796         * modules/uninorm/nfd-tests (Files): Likewise.
10797         * modules/uninorm/nfkc-tests (Files): Likewise.
10798         * modules/uninorm/nfkd-tests (Files): Likewise.
10799         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10800         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10801         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10802         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10803         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10804         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10805         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10806         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10807         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10808         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10809         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10810         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10811         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10812         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10813         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10814         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10815         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10816         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10817         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10818         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10819         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10820         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10821         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10822         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10823         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10824         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10825         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10826         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10827         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10828         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10829         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10830         * modules/uniwidth/u8-width-tests (Files): Likewise.
10831         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10832         * modules/uniwidth/u16-width-tests (Files): Likewise.
10833         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10834         * modules/uniwidth/u32-width-tests (Files): Likewise.
10835         * modules/uniwidth/width-tests (Files): Likewise.
10836         * modules/unlink-tests (Files): Likewise.
10837         * modules/unsetenv-tests (Files): Likewise.
10838         * modules/usleep-tests (Files): Likewise.
10839         * modules/utimens-tests (Files): Likewise.
10840         * modules/utimensat-tests (Files): Likewise.
10841         * modules/vasnprintf-posix-tests (Files): Likewise.
10842         * modules/vasnprintf-tests (Files): Likewise.
10843         * modules/vasprintf-posix-tests (Files): Likewise.
10844         * modules/vasprintf-tests (Files): Likewise.
10845         * modules/vdprintf-posix-tests (Files): Likewise.
10846         * modules/vfprintf-posix-tests (Files): Likewise.
10847         * modules/vprintf-posix-tests (Files): Likewise.
10848         * modules/vsnprintf-posix-tests (Files): Likewise.
10849         * modules/vsnprintf-tests (Files): Likewise.
10850         * modules/vsprintf-posix-tests (Files): Likewise.
10851         * modules/wcrtomb-tests (Files): Likewise.
10852         * modules/wcsnrtombs-tests (Files): Likewise.
10853         * modules/wcsrtombs-tests (Files): Likewise.
10854         * modules/wctype-tests (Files): Likewise.
10855         * modules/wcwidth-tests (Files): Likewise.
10856         * modules/xmemdup0-tests (Files): Likewise.
10857         * modules/xprintf-posix-tests (Files): Likewise.
10858         * modules/xvasprintf-tests (Files): Likewise.
10859
10860 2009-12-24  Eric Blake  <ebb9@byu.net>
10861
10862         test-nanosleep: fix typo
10863         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10864         patch.
10865         Reported by Bruno Haible.
10866
10867 2009-12-24  Bruno Haible  <bruno@clisp.org>
10868
10869         Reduce namespace pollution on glibc systems.
10870         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10871         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10872         systems.
10873         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10874         <getopt.h> on glibc systems.
10875         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10876         systems.
10877         * lib/fcntl.c: Include <unistd.h> here instead.
10878
10879 2009-12-24  Bruno Haible  <bruno@clisp.org>
10880
10881         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10882
10883 2009-12-24  Eric Blake  <ebb9@byu.net>
10884
10885         tests: add signature checks
10886         * tests/signature.h (SIGNATURE_CHECK): New file.
10887         * modules/atexit-tests (Files): Use it.
10888         * modules/btowc-tests (Files): Likewise.
10889         * modules/canonicalize-lgpl-tests (Files): Likewise.
10890         * modules/ceilf-tests (Files): Likewise.
10891         * modules/ceill-tests (Files): Likewise.
10892         * modules/chown-tests (Files): Likewise.
10893         * modules/dprintf-posix-tests (Files): Likewise.
10894         * modules/dup2-tests (Files): Likewise.
10895         * modules/dup3-tests (Files): Likewise.
10896         * modules/duplocale-tests (Files): Likewise.
10897         * modules/fchdir-tests (Files): Likewise.
10898         * modules/fcntl-tests (Files): Likewise.
10899         * modules/fdopendir-tests (Files): Likewise.
10900         * modules/fflush-tests (Files): Likewise.
10901         * modules/flock-tests (Files): Likewise.
10902         * modules/floorf-tests (Files): Likewise.
10903         * modules/floorl-tests (Files): Likewise.
10904         * modules/fnmatch-tests (Files): Likewise.
10905         * modules/fopen-tests (Files): Likewise.
10906         * modules/fprintf-posix-tests (Files): Likewise.
10907         * modules/freopen-tests (Files): Likewise.
10908         * modules/frexp-nolibm-tests (Files): Likewise.
10909         * modules/frexp-tests (Files): Likewise.
10910         * modules/frexpl-nolibm-tests (Files): Likewise.
10911         * modules/frexpl-tests (Files): Likewise.
10912         * modules/fseek-tests (Files): Likewise.
10913         * modules/fseeko-tests (Files): Likewise.
10914         * modules/fsync-tests (Files): Likewise.
10915         * modules/ftell-tests (Files): Likewise.
10916         * modules/ftello-tests (Files): Likewise.
10917         * modules/futimens-tests (Files): Likewise.
10918         * modules/getaddrinfo-tests (Files): Likewise.
10919         * modules/getcwd-tests (Files): Likewise.
10920         * modules/getdelim-tests (Files): Likewise.
10921         * modules/getdtablesize-tests (Files): Likewise.
10922         * modules/getgroups-tests (Files): Likewise.
10923         * modules/gethostname-tests (Files): Likewise.
10924         * modules/getline-tests (Files): Likewise.
10925         * modules/getopt-posix-tests (Files): Likewise.
10926         * modules/gettimeofday-tests (Files): Likewise.
10927         * modules/glob-tests (Files): Likewise.
10928         * modules/iconv-tests (Files): Likewise.
10929         * modules/inet_ntop-tests (Files): Likewise.
10930         * modules/inet_pton-tests (Files): Likewise.
10931         * modules/isblank-tests (Files): Likewise.
10932         * modules/lchown-tests (Files): Likewise.
10933         * modules/ldexpl-tests (Files): Likewise.
10934         * modules/link-tests (Files): Likewise.
10935         * modules/linkat-tests (Files): Likewise.
10936         * modules/lseek-tests (Files): Likewise.
10937         * modules/lstat-tests (Files): Likewise.
10938         * modules/mbrtowc-tests (Files): Likewise.
10939         * modules/mbsinit-tests (Files): Likewise.
10940         * modules/mbsnrtowcs-tests (Files): Likewise.
10941         * modules/mbsrtowcs-tests (Files): Likewise.
10942         * modules/memchr-tests (Files): Likewise.
10943         * modules/memcmp-tests (Files): Likewise.
10944         * modules/memmem-tests (Files): Likewise.
10945         * modules/memrchr-tests (Files): Likewise.
10946         * modules/mkdir-tests (Files): Likewise.
10947         * modules/mkfifo-tests (Files): Likewise.
10948         * modules/mkfifoat-tests (Files): Likewise.
10949         * modules/mknod-tests (Files): Likewise.
10950         * modules/nanosleep-tests (Files): Likewise.
10951         * modules/nl_langinfo-tests (Files): Likewise.
10952         * modules/obstack-printf-tests (Files): Likewise.
10953         * modules/open-tests (Files): Likewise.
10954         * modules/openat-tests (Files): Likewise.
10955         * modules/perror-tests (Files): Likewise.
10956         * modules/pipe2-tests (Files): Likewise.
10957         * modules/poll-tests (Files): Likewise.
10958         * modules/popen-tests (Files): Likewise.
10959         * modules/posix_spawn-tests (Files): Likewise.
10960         * modules/posix_spawnp-tests (Files): Likewise.
10961         * modules/pread-tests (Files): Likewise.
10962         * modules/printf-posix-tests (Files): Likewise.
10963         * modules/pty-tests (Files): Likewise.
10964         * modules/random_r-tests (Files): Likewise.
10965         * modules/rawmemchr-tests (Files): Likewise.
10966         * modules/readlink-tests (Files): Likewise.
10967         * modules/remove-tests (Files): Likewise.
10968         * modules/rename-tests (Files): Likewise.
10969         * modules/renameat-tests (Files): Likewise.
10970         * modules/rmdir-tests (Files): Likewise.
10971         * modules/round-tests (Files): Likewise.
10972         * modules/roundf-tests (Files): Likewise.
10973         * modules/roundl-tests (Files): Likewise.
10974         * modules/select-tests (Files): Likewise.
10975         * modules/setenv-tests (Files): Likewise.
10976         * modules/sigaction-tests (Files): Likewise.
10977         * modules/sleep-tests (Files): Likewise.
10978         * modules/snprintf-posix-tests (Files): Likewise.
10979         * modules/snprintf-tests (Files): Likewise.
10980         * modules/sprintf-posix-tests (Files): Likewise.
10981         * modules/stat-tests (Files): Likewise.
10982         * modules/strcasestr-tests (Files): Likewise.
10983         * modules/strchrnul-tests (Files): Likewise.
10984         * modules/strerror-tests (Files): Likewise.
10985         * modules/strsignal-tests (Files): Likewise.
10986         * modules/strstr-tests (Files): Likewise.
10987         * modules/strtod-tests (Files): Likewise.
10988         * modules/strverscmp-tests (Files): Likewise.
10989         * modules/symlink-tests (Files): Likewise.
10990         * modules/symlinkat-tests (Files): Likewise.
10991         * modules/times-tests (Files): Likewise.
10992         * modules/trunc-tests (Files): Likewise.
10993         * modules/truncf-tests (Files): Likewise.
10994         * modules/truncl-tests (Files): Likewise.
10995         * modules/tsearch-tests (Files): Likewise.
10996         * modules/uname-tests (Files): Likewise.
10997         * modules/unlink-tests (Files): Likewise.
10998         * modules/unsetenv-tests (Files): Likewise.
10999         * modules/usleep-tests (Files): Likewise.
11000         * modules/utimensat-tests (Files): Likewise.
11001         * modules/vasprintf-tests (Files): Likewise.
11002         * modules/vdprintf-posix-tests (Files): Likewise.
11003         * modules/vfprintf-posix-tests (Files): Likewise.
11004         * modules/vprintf-posix-tests (Files): Likewise.
11005         * modules/vsnprintf-posix-tests (Files): Likewise.
11006         * modules/vsnprintf-tests (Files): Likewise.
11007         * modules/vsprintf-posix-tests (Files): Likewise.
11008         * modules/wcrtomb-tests (Files): Likewise.
11009         * modules/wcsnrtombs-tests (Files): Likewise.
11010         * modules/wcsrtombs-tests (Files): Likewise.
11011         * modules/wcwidth-tests (Files): Likewise.
11012         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11013         * tests/test-isinf.c (isinf): Likewise.
11014         * tests/test-isnan.c (isnan): Likewise.
11015         * tests/test-signbit.c (signbit): Likewise.
11016         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11017         declaration, either as macro or with correct signature.
11018         (select): Ensure function under test is declared with correct
11019         signature in correct header.
11020         * tests/test-atexit.c (atexit): Likewise.
11021         * tests/test-btowc.c (btowc): Likewise.
11022         * tests/test-canonicalize-lgpl.c (realpath)
11023         (canonicalize_file_name): Likewise.
11024         * tests/test-ceilf1.c (ceilf): Likewise.
11025         * tests/test-ceill.c (ceill): Likewise.
11026         * tests/test-chown.c (chown): Likewise.
11027         * tests/test-dprintf-posix.c (dprintf): Likewise.
11028         * tests/test-dup2.c (dup2): Likewise.
11029         * tests/test-dup3.c (dup3): Likewise.
11030         * tests/test-duplocale.c (duplocale): Likewise.
11031         * tests/test-fchdir.c (fchdir): Likewise.
11032         * tests/test-fchownat.c (fchownat): Likewise.
11033         * tests/test-fcntl.c (fcntl): Likewise.
11034         * tests/test-fdopendir.c (fdopendir): Likewise.
11035         * tests/test-fflush.c (fflush): Likewise.
11036         * tests/test-flock.c (flock): Likewise.
11037         * tests/test-floorf1.c (floorf): Likewise.
11038         * tests/test-floorl.c (floorl): Likewise.
11039         * tests/test-fnmatch.c (fnmatch): Likewise.
11040         * tests/test-fopen.c (fopen): Likewise.
11041         * tests/test-fprintf-posix.c (fprintf): Likewise.
11042         * tests/test-freopen.c (freopen): Likewise.
11043         * tests/test-frexp.c (frexp): Likewise.
11044         * tests/test-frexpl.c (frexpl): Likewise.
11045         * tests/test-fseek.c (fseek): Likewise.
11046         * tests/test-fseeko.c (fseeko): Likewise.
11047         * tests/test-fstatat.c (fstatat): Likewise.
11048         * tests/test-fsync.c (fsync): Likewise.
11049         * tests/test-ftell.c (ftell): Likewise.
11050         * tests/test-ftello.c (ftello): Likewise.
11051         * tests/test-futimens.c (futimens): Likewise.
11052         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11053         (gai_strerror): Likewise.
11054         * tests/test-getcwd.c (getcwd): Likewise.
11055         * tests/test-getdelim.c (getdelim): Likewise.
11056         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11057         * tests/test-getgroups.c (getgroups): Likewise.
11058         * tests/test-gethostname.c (gethostname): Likewise.
11059         * tests/test-getline.c (getline): Likewise.
11060         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11061         Likewise.
11062         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11063         * tests/test-glob.c (glob, globfree): Likewise.
11064         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11065         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11066         * tests/test-inet_pton.c (inet_pton): Likewise.
11067         * tests/test-isblank.c (isblank): Likewise.
11068         * tests/test-lchown.c (lchown): Likewise.
11069         * tests/test-ldexpl.c (ldexpl): Likewise.
11070         * tests/test-link.c (link): Likewise.
11071         * tests/test-linkat.c (linkat): Likewise.
11072         * tests/test-lseek.c (lseek): Likewise.
11073         * tests/test-lstat.c (lstat): Likewise.
11074         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11075         * tests/test-mbsinit.c (mbsinit): Likewise.
11076         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11077         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11078         * tests/test-memchr.c (memchr): Likewise.
11079         * tests/test-memcmp.c (memcmp): Likewise.
11080         * tests/test-memmem.c (memmem): Likewise.
11081         * tests/test-memrchr.c (memrchr): Likewise.
11082         * tests/test-mkdir.c (mkdir): Likewise.
11083         * tests/test-mkdirat.c (mkdirat): Likewise.
11084         * tests/test-mkfifo.c (mkfifo): Likewise.
11085         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11086         * tests/test-mknod.c (mknod): Likewise.
11087         * tests/test-nanosleep.c (nanosleep): Likewise.
11088         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11089         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11090         Likewise.
11091         * tests/test-open.c (open): Likewise.
11092         * tests/test-openat.c (openat): Likewise.
11093         * tests/test-perror.c (perror): Likewise.
11094         * tests/test-pipe2.c (pipe2): Likewise.
11095         * tests/test-poll.c (poll): Likewise.
11096         * tests/test-popen.c (popen, pclose): Likewise.
11097         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11098         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11099         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11100         (posix_spawn_file_actions_destroy)
11101         (posix_spawn_file_actions_addclose)
11102         (posix_spawn_file_actions_addopen)
11103         (posix_spawn_file_actions_adddup2): Likewise.
11104         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11105         * tests/test-pread.c (pread): Likewise.
11106         * tests/test-printf-posix.c (printf): Likewise.
11107         * tests/test-pty.c (openpty, forkpty): Likewise.
11108         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11109         (random_r): Likewise.
11110         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11111         * tests/test-readlink.c (readlink): Likewise.
11112         * tests/test-remove.c (remove): Likewise.
11113         * tests/test-rename.c (rename): Likewise.
11114         * tests/test-renameat.c (renameat): Likewise.
11115         * tests/test-rmdir.c (rmdir): Likewise.
11116         * tests/test-round1.c (round): Likewise.
11117         * tests/test-roundf1.c (roundf): Likewise.
11118         * tests/test-roundl.c (roundl): Likewise.
11119         * tests/test-setenv.c (setenv): Likewise.
11120         * tests/test-sigaction.c (sigaction): Likewise.
11121         * tests/test-sleep.c (sleep): Likewise.
11122         * tests/test-snprintf.c (snprintf): Likewise.
11123         * tests/test-sprintf-posix.c (sprintf): Likewise.
11124         * tests/test-stat.c (stat): Likewise.
11125         * tests/test-stpncpy.c (stpncpy): Likewise.
11126         * tests/test-strcasestr.c (strcasestr): Likewise.
11127         * tests/test-strchrnul.c (strchrnul): Likewise.
11128         * tests/test-strerror.c (strerror): Likewise.
11129         * tests/test-strsignal.c (strsignal): Likewise.
11130         * tests/test-strstr.c (strstr): Likewise.
11131         * tests/test-strtod.c (strtod): Likewise.
11132         * tests/test-strverscmp.c (strverscmp): Likewise.
11133         * tests/test-symlink.c (symlink): Likewise.
11134         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11135         * tests/test-times.c (times): Likewise.
11136         * tests/test-trunc1.c (trunc): Likewise.
11137         * tests/test-truncf1.c (truncf): Likewise.
11138         * tests/test-truncl.c (truncl): Likewise.
11139         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11140         Likewise.
11141         * tests/test-uname.c (uname): Likewise.
11142         * tests/test-unlink.c (unlink): Likewise.
11143         * tests/test-unlinkat.c (unlinkat): Likewise.
11144         * tests/test-unsetenv.c (unsetenv): Likewise.
11145         * tests/test-usleep.c (usleep): Likewise.
11146         * tests/test-utimensat.c (utimensat): Likewise.
11147         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11148         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11149         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11150         * tests/test-vprintf-posix.c (vprintf): Likewise.
11151         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11152         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11153         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11154         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11155         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11156         * tests/test-wcwidth.c (wcwidth): Likewise.
11157
11158         build: pull in conditional headers during GNULIB_POSIXCHECK
11159         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11160         definitions from any conditionally-included headers.
11161         * lib/stdlib.in.h (includes): Likewise.
11162         * lib/unistd.in.h (includes): Likewise.
11163
11164 2009-12-24  Bruno Haible  <bruno@clisp.org>
11165
11166         * tests/test-argv-iter.c: Include header file being tested immediately
11167         after config.h.
11168         * tests/test-base64.c: Likewise.
11169         * tests/test-flock.c: Likewise.
11170         * tests/test-fsync.c: Likewise.
11171         * tests/test-getdate.c: Likewise.
11172         * tests/test-getndelim2.c: Likewise.
11173         * tests/test-isfinite.c: Likewise.
11174         * tests/test-isinf.c: Likewise.
11175         * tests/test-strerror.c: Likewise.
11176         * tests/test-strsignal.c: Likewise.
11177
11178 2009-12-23  Eric Blake  <ebb9@byu.net>
11179
11180         unistd: work around cygwin bug
11181         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11182         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11183         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11184
11185 2009-12-23  Bruno Haible  <bruno@clisp.org>
11186
11187         localename: More tests.
11188         * tests/test-localename.c (SIZEOF): New macro.
11189         (categories): New variable.
11190         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11191         test_locale_name_default): Add test w.r.t. thread locale.
11192         (test_locale_name_thread): New function.
11193         (main): Invoke it.
11194
11195         localename: Make aware of thread locale.
11196         * lib/localename.h (gl_locale_name_thread): New declaration.
11197         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11198         behaviour with respect to thread locale.
11199         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11200         <langinfo.h>, glthread/lock.h.
11201         (SIZE_BITS): New macro.
11202         (string_hash): New function.
11203         (struct hash_node): New type.
11204         (HASH_TABLE_SIZE): New macro.
11205         (struniq_hash_table, struniq_lock): New variables.
11206         (struniq): New function.
11207         (gl_locale_name_thread): New function.
11208         (gl_locale_name): Invoke it.
11209         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11210         * modules/localename (Depends-on): Add lock.
11211         Reported by Mike Gran <spk121@yahoo.com>.
11212
11213 2009-12-23  Eric Blake  <ebb9@byu.net>
11214
11215         va-args: new module
11216         * modules/va-args: New file.
11217         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11218         * MODULES.html.sh (Core language properties): Mention it.
11219
11220         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11221         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11222         named alias for __attribute__((__unused__)).
11223         * lib/chown.c: Update client.
11224         * lib/fchmodat.c: Likewise.
11225         * lib/fts.c: Likewise.
11226         * lib/getdate.y: Likewise.
11227         * lib/getgroups.c: Likewise.
11228         * lib/getopt.c: Likewise.
11229         * lib/getugroups.c: Likewise.
11230         * lib/mkdir.c: Likewise.
11231         * lib/mkfifo.c: Likewise.
11232         * lib/mkfifoat.c: Likewise.
11233         * lib/mknod.c: Likewise.
11234         * lib/mknodat.c: Likewise.
11235         * lib/readlink.c: Likewise.
11236         * lib/se-context.in.h: Likewise.
11237         * lib/se-selinux.in.h: Likewise.
11238         * lib/sockets.c: Likewise.
11239         * lib/symlink.c: Likewise.
11240         * lib/symlinkat.c: Likewise.
11241         * lib/unicodeio.c: Likewise.
11242         * lib/unistr.h: Likewise.
11243         * tests/test-areadlink.c: Likewise.
11244         * tests/test-areadlinkat.c: Likewise.
11245         * tests/test-filenamecat.c: Likewise.
11246         * tests/test-fseeko.c: Likewise.
11247         * tests/test-ftello.c: Likewise.
11248         * tests/test-getdate.c: Likewise.
11249         * tests/test-getgroups.c: Likewise.
11250         * tests/test-gethostname.c: Likewise.
11251         * tests/test-quotearg.c: Likewise.
11252         * tests/test-version-etc.c: Likewise.
11253         * tests/test-xalloc-die.c: Likewise.
11254         * tests/test-xfprintf-posix.c: Likewise.
11255         * tests/test-xprintf-posix.c: Likewise.
11256         * tests/test-xvasprintf.c: Likewise.
11257
11258         tests: avoid compiler warnings
11259         * tests/test-fcntl.c (main): Delete unused parameters.
11260         * tests/test-freopen-safer.c (main): Likewise.
11261         * tests/test-xalloc-die.c (main): Mark unused parameters.
11262         * tests/test-fseeko.c (main): Likewise.
11263         * tests/test-ftello.c (main): Likewise.
11264         * tests/test-nanosleep.c (main): Avoid declaration warning.
11265         * tests/test-sleep.c (main): Likewise.
11266         * tests/test-unsetenv.c (main): Silence warning about string
11267         literal.
11268         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11269
11270 2009-12-23  Bruno Haible  <bruno@clisp.org>
11271
11272         * tests/test-localename.c (test_locale_name): New function, extracted
11273         from main. Also test mixed situations.
11274         (test_locale_name_posix, test_locale_name_environ,
11275         test_locale_name_default): New functions.
11276         (main): Invoke them all.
11277         * modules/localename-tests (configure.ac): Test for newlocale.
11278
11279 2009-12-23  Bruno Haible  <bruno@clisp.org>
11280
11281         unistd: Ensure getcwd gets declared before being overridden.
11282         * lib/unistd.in.h: Conditionally include <io.h>.
11283
11284 2009-12-22  Bruno Haible  <bruno@clisp.org>
11285
11286         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11287         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11288         (gl_WCHAR_H): Invoke it.
11289         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11290         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11291         Reported by Karl Berry <karl@freefriends.org>.
11292
11293 2009-12-22  Eric Blake  <ebb9@byu.net>
11294
11295         math, unistd: avoid redundant includes
11296         * lib/math.in.h (isnan): No need to re-include <math.h>.
11297         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11298
11299         getsubopt: work around cygwin bug
11300         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11301         avoid conflicting with system getsubopt.
11302         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11303         bug.
11304
11305         getopt: synchronize from glibc
11306         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11307         parameter order.  Adjust all callers.
11308         (_getopt_internal_r, main): Adjust quoting in error messages.
11309         Drop considerations for outdated POSIX 1003.2 error message.
11310         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11311         callers.
11312         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11313
11314         test-getopt: test stderr behavior
11315         * modules/getopt-posix-tests (Depends-on): Add dup2.
11316         * tests/test-getopt.c (ASSERT): Avoid stderr.
11317         (main): Move stderr to a temporary file.
11318         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11319         Instead, add parameter to inform caller if output occurred.
11320         (test_getopt): Adjust all existing tests to expect silence, and
11321         add new tests of leading ":".
11322         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11323         glibc shortcomings with leading "-:" or "+:" in optstring.
11324         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11325         Likewise.
11326         * doc/posix-functions/getopt.texi (getopt): Likewise.
11327
11328         test-getopt: enhance test
11329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11330         supports optind=0.
11331         * tests/test-getopt.c (OPTIND_MIN): Move...
11332         * tests/test-getopt.h (OPTIND_MIN): ...here.
11333         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11334         Require that optind=0 works, since modern BSD supports it in
11335         addition to optreset, and since coreutils expects it.
11336         (test_getopt_long_only): New test.
11337         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11338         glibc shortcomings with 'W;', and enforcement of optind=0.
11339         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11340         Likewise.
11341
11342 2009-12-21  Bruno Haible  <bruno@clisp.org>
11343
11344         localename: Improvements for MacOS X and Cygwin.
11345         * lib/localename.h (gl_locale_name_environ): New declaration.
11346         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11347         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11348         (gl_locale_name_posix): Invoke it.
11349         (gl_locale_name_default): Add comments. Use Windows native API also on
11350         Cygwin.
11351
11352 2009-12-21  Bruno Haible  <bruno@clisp.org>
11353
11354         Update list of Win32 locale ids.
11355         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11356         (LANG_SAMI): Renamed from LANG_SAAMI.
11357         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11358         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11359         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11360         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11361         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11362         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11363         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11364         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11365         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11366         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11367         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11368         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11369         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11370         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11371         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11372         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11373         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11374         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11375         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11376         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11377         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11378         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11379         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11380         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11381         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11382         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11383         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11384         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11385         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11386         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11387         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11388         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11389         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11390         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11391         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11392         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11393         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11394         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11395         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11396         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11397         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11398         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11399         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11400         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11401         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11402         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11403         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11404         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11405         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11406         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11407         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11408         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11409         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11410         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11411         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11412         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11413         Add more languages and countries for Sami, Sorbian. Add more countries
11414         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11415         for Pashto. Change country for Syriac, Tswana.
11416
11417 2009-12-21  Eric Blake  <ebb9@byu.net>
11418
11419         test-utimens: avoid spurious failure
11420         * tests/test-chown.h (nap): Factor...
11421         * tests/nap.h: ...into new file.
11422         * tests/test-lchown.h (nap): Avoid duplication.
11423         * tests/test-utimens-common.h (nap): Use shared implementation,
11424         necessary on file systems with 1-second resolution.
11425         * modules/chown-tests (Files): Include new file.
11426         * modules/fdutimensat-tests (Files): Likewise.
11427         * modules/futimens-tests (Files): Likewise.
11428         * modules/lchown-tests (Files): Likewise.
11429         * modules/openat-tests (Files): Likewise.
11430         * modules/utimens-tests (Files): Likewise.
11431         * modules/utimensat-tests (Files): Likewise.
11432
11433 2009-12-19  Eric Blake  <ebb9@byu.net>
11434
11435         futimens, utimensat: work around Linux bug
11436         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11437         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11438         * lib/utimensat.c (rpl_utimensat): Work around it.
11439         * lib/futimens.c (rpl_futimens): Adjust comment.
11440
11441         utimens: work around Linux ctime bug
11442         * lib/utimens.c (detect_ctime_bug): New helper function.
11443         (update_timespec): Differentiate between workaround needed for
11444         this bug vs. what is needed for systems that lack utimensat.
11445         (fdutimens, lutimens): Work around bug.
11446
11447         utimens: check for ctime update
11448         * tests/test-utimens-common.h (check_ctime): Define.
11449         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11450         * tests/test-futimens.h (test_futimens): Likewise.
11451         * tests/test-lutimens.h (test_lutimens): Likewise.
11452         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11453         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11454
11455 2009-12-19  Bruno Haible  <bruno@clisp.org>
11456
11457         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11458         * tests/test-dprintf-posix2.sh: New file.
11459         * tests/test-dprintf-posix2.c: New file.
11460         * modules/dprintf-posix-tests (Files): Add them.
11461         (configure.ac): Check for getrlimit and setrlimit.
11462         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11463
11464 2009-12-19  Bruno Haible  <bruno@clisp.org>
11465
11466         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11467         * tests/test-fprintf-posix3.sh: New file.
11468         * tests/test-fprintf-posix3.c: New file.
11469         * modules/fprintf-posix-tests (Files): Add them.
11470         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11471
11472 2009-12-19  Eric Blake  <ebb9@byu.net>
11473
11474         dirfd: fix prototype
11475         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11476         * lib/dirfd.c (dirfd): Likewise.
11477
11478         canonicalize: reduce memory usage
11479         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11480         allocation to size.
11481         Reported by Solar Designer <solar@openwall.com>.
11482
11483 2009-12-19  Bruno Haible  <bruno@clisp.org>
11484
11485         New module attribute 'Applicability'.
11486         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11487         * gnulib-tool: New option --extract-applicability.
11488         (func_usage): Document it.
11489         (sed_extract_prog): Recognize it.
11490         (func_get_applicability): New function.
11491         (func_import): Generalize handling of 'link-warning' module.
11492         * modules/link-warning (Applicability): New section.
11493         * modules/arg-nonnull (Applicability): New section.
11494         Repoted by Simon Josefsson <simon@josefsson.org>.
11495
11496 2009-12-19  Bruno Haible  <bruno@clisp.org>
11497
11498         fflush: tweak
11499         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11500         * lib/fseeko.c (rpl_fseeko): Likewise.
11501
11502 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11503
11504         * lib/gl_list.h: Fix typo in comment.
11505
11506 2009-12-16  Eric Blake  <ebb9@byu.net>
11507
11508         fcntl: use to simplify other modules
11509         * modules/cloexec (Depends-on): Add fcntl.
11510         * modules/fchdir (Depends-on): Likewise.
11511         * modules/fd-safer-flag (Depends-on): Likewise.
11512         * modules/unistd-safer (Depends-on): Likewise.
11513         * modules/dup3 (configure.ac): Set module indicator.
11514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11515         missing.
11516         * lib/fchdir.c (_gl_register_dup): Fix comment.
11517         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11518         * lib/dup-safer.c (dup_safer): Likewise.
11519         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11520         * lib/dup3.c (dup3): Likewise.
11521         * tests/test-fchdir.c (main): Enhance test.
11522         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11523
11524         fcntl: port portions of fcntl to mingw
11525         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11526         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11527         replacement for mingw.
11528         * modules/fcntl (Description): Update.
11529         (Depends-on): Add dup2.
11530         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11531         * modules/fcntl-h (Makefile.am): Substitute it.
11532         * lib/fcntl.in.h (fcntl): Update declaration.
11533         (F_DUPFD, F_GETFD): New macros, when needed.
11534         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11535         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11536         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11537         we now guarantee.
11538
11539         fcntl: work around cygwin bug in F_DUPFD
11540         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11541         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11542         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11543         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11544         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11545
11546         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11547         * modules/fcntl (Files): List new files.
11548         (configure.ac): Run a test.
11549         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11550         * lib/fcntl.c (rpl_fcntl): Likewise.
11551         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11552         (gl_FCNTL_H): Always replace fcntl.h.
11553         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11554         * lib/fcntl.in.h (fcntl): Declare replacement.
11555         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11556         needed, plus a witness.
11557         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11558         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11559         * tests/test-fcntl.c: New file.
11560         * modules/fcntl-tests: Likewise.
11561
11562         binary-io: avoid potential compilation warning
11563         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11564         directives.
11565
11566         fflush: avoid compilation error on NetBSD
11567         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11568         between off_t and fpos_t, since the latter is sometimes a struct.
11569         * lib/fseeko.c (rpl_fseeko): Likewise.
11570         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11571
11572 2009-12-15  Eric Blake  <ebb9@byu.net>
11573
11574         fcntl-h, stdio, sys_ioctl: fix declarations
11575         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11576         function must not take arguments.
11577         * lib/sys_ioctl.in.h (ioctl): Likewise.
11578         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11579         (open): Add a link warning.
11580
11581 2009-12-15  Jim Meyering  <meyering@redhat.com>
11582
11583         areadlink, areadlink-with-size: relax license to LGPLv2+
11584         * modules/areadlink (License): Relax to LGPLv2+.
11585         * modules/areadlink-with-size (License): Likewise.
11586
11587 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11588             Bruno Haible  <bruno@clisp.org>
11589
11590         *printf: Fix memory leak.
11591         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11592         * lib/vfprintf.c (vfprintf): Likewise.
11593         * lib/dprintf.c (dprintf): Likewise.
11594         * lib/vdprintf.c (vdprintf): Likewise.
11595
11596 2009-12-14  Eric Blake  <ebb9@byu.net>
11597
11598         accept4: adjust module dependencies
11599         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11600
11601         utimens: one more try at avoiding compiler warning
11602         * lib/utimens.c (lutimens): Lower scope of result.
11603
11604 2009-12-13  Bruno Haible  <bruno@clisp.org>
11605
11606         Move the malloc checking from module 'list' to new module 'xlist'.
11607         * modules/xlist: New file.
11608         * lib/gl_xlist.h: New file.
11609         * lib/gl_xlist.c: New file.
11610         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11611         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11612         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11613         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11614         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11615         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11616         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11617         gl_sortedlist_nx_add): New declarations.
11618         (struct gl_list_implementation): Rename and change methods accordingly.
11619         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11620         (gl_list_nx_create): Renamed from gl_list_create.
11621         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11622         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11623         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11624         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11625         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11626         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11627         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11628         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11629         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11630         gl_list_create_empty.
11631         (gl_list_nx_create): Renamed from gl_list_create.
11632         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11633         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11634         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11635         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11636         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11637         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11638         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11639         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11640         * lib/gl_array_list.c: Don't include xalloc.h.
11641         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11642         NULL upon out-of-memory.
11643         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11644         out-of-memory.
11645         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11646         Change return type to 'int'.
11647         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11648         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11649         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11650         upon out-of-memory.
11651         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11652         upon out-of-memory.
11653         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11654         upon out-of-memory.
11655         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11656         upon out-of-memory.
11657         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11658         out-of-memory.
11659         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11660         Update.
11661         (gl_array_list_implementation): Update.
11662         * lib/gl_carray_list.c: Don't include xalloc.h.
11663         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11664         Return NULL upon out-of-memory.
11665         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11666         out-of-memory.
11667         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11668         Change return type to 'int'.
11669         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11670         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11671         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11672         upon out-of-memory.
11673         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11674         upon out-of-memory.
11675         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11676         out-of-memory.
11677         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11678         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11679         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11680         Update.
11681         (gl_carray_list_implementation): Update.
11682         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11683         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11684         gl_linked_create_empty. Return NULL upon out-of-memory.
11685         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11686         out-of-memory.
11687         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11688         Change return type to 'int'. Return -1 upon out-of-memory.
11689         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11690         out-of-memory.
11691         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11692         upon out-of-memory.
11693         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11694         upon out-of-memory.
11695         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11696         NULL upon out-of-memory.
11697         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11698         upon out-of-memory.
11699         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11700         out-of-memory.
11701         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11702         Update.
11703         * lib/gl_linked_list.c: Don't include xalloc.h.
11704         (gl_linked_list_implementation): Update.
11705         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11706         (add_to_bucket): Change return type to 'int'.
11707         (gl_linkedhash_list_implementation): Update.
11708         * lib/gl_anytree_list1.h (free_subtree): New function.
11709         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11710         gl_tree_create_empty. Return NULL upon out-of-memory.
11711         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11712         Change return type to 'int'. Return -1 upon out-of-memory.
11713         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11714         out-of-memory.
11715         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11716         (gl_tree_remove_node): New function, moved here from
11717         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11718         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11719         Update.
11720         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11721         malloc, not xmalloc. Return NULL upon out-of-memory.
11722         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11723         out-of-memory.
11724         (gl_tree_remove_node_from_tree): New function, extracted from
11725         gl_tree_remove_node.
11726         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11727         upon out-of-memory.
11728         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11729         out-of-memory.
11730         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11731         upon out-of-memory.
11732         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11733         upon out-of-memory.
11734         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11735         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11736         not xmalloc. Return NULL upon out-of-memory.
11737         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11738         out-of-memory.
11739         (gl_tree_remove_node_from_tree): New function, extracted from
11740         gl_tree_remove_node.
11741         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11742         upon out-of-memory.
11743         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11744         out-of-memory.
11745         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11746         upon out-of-memory.
11747         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11748         upon out-of-memory.
11749         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11750         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11751         gl_anytree_list1.h before gl_anyavltree_list2.h.
11752         (gl_avltree_list_implementation): Update.
11753         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11754         gl_anytree_list1.h before gl_anyavltree_list2.h.
11755         (gl_rbtree_list_implementation): Update.
11756         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11757         Change return type to 'int'. Return -1 upon out-of-memory. Use
11758         __builtin_expect.
11759         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11760         (gl_avltreehash_list_implementation): Update.
11761         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11762         (gl_rbtreehash_list_implementation): Update.
11763         * modules/array-list (Depends-on): Remove xalloc.
11764         * modules/carray-list (Depends-on): Likewise.
11765         * modules/linked-list (Depends-on): Likewise.
11766         * modules/linkedhash-list (Depends-on): Likewise.
11767         * modules/avltree-list (Depends-on): Likewise.
11768         * modules/rbtree-list (Depends-on): Likewise.
11769         * modules/avltreehash-list (Depends-on): Likewise.
11770         * modules/rbtreehash-list (Depends-on): Likewise.
11771
11772         * modules/xsublist: New file.
11773         * lib/gl_xsublist.h: New file.
11774         * lib/gl_xsublist.c: New file.
11775         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11776         (gl_sublist_nx_create): New declaration.
11777         * lib/gl_sublist.c: Don't include xalloc.h.
11778         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11779         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11780         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11781         Change return type to 'int'. Return -1 upon out-of-memory.
11782         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11783         upon out-of-memory.
11784         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11785         NULL upon out-of-memory.
11786         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11787         upon out-of-memory.
11788         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11789         NULL upon out-of-memory.
11790         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11791         NULL upon out-of-memory.
11792         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11793         upon out-of-memory.
11794         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11795         (gl_sublist_list_implementation): Update.
11796         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11797         upon out-of-memory.
11798         * modules/sublist (Depends-on): Remove xalloc.
11799
11800         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11801         * tests/test-carray_list.c: Likewise.
11802         * tests/test-linked_list.c: Likewise.
11803         * tests/test-linkedhash_list.c: Likewise.
11804         * tests/test-avltree_list.c: Likewise.
11805         * tests/test-rbtree_list.c: Likewise.
11806         * tests/test-avltreehash_list.c: Likewise.
11807         * tests/test-rbtreehash_list.c: Likewise.
11808         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11809         * modules/carray-list-tests (Makefile.am): Likewise.
11810         * modules/linked-list-tests (Makefile.am): Likewise.
11811         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11812         * modules/avltree-list-tests (Makefile.am): Likewise.
11813         * modules/rbtree-list-tests (Makefile.am): Likewise.
11814         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11815         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11816
11817         * NEWS: Mention the changes.
11818
11819         * lib/clean-temp.c: Include gl_xlist.h.
11820         * modules/clean-temp (Depends-on): Add xlist.
11821
11822         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11823         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11824
11825         * tests/test-array_oset.c: Include gl_xlist.h.
11826         * modules/array-oset-tests (Depends-on): Add xlist.
11827
11828         Reported by José E. Marchesi <jemarch@gnu.org>.
11829
11830 2009-12-13  Bruno Haible  <bruno@clisp.org>
11831
11832         Move the malloc checking from module 'oset' to new module 'xoset'.
11833         * modules/xoset: New file.
11834         * lib/gl_xoset.h: New file.
11835         * lib/gl_xoset.c: New file.
11836         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11837         declarations.
11838         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11839         (struct gl_oset_implementation): Rename and change methods accordingly.
11840         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11841         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11842         'int'. Mark as __warn_unused_result__.
11843         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11844         gl_oset_create_empty.
11845         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11846         'int'.
11847         * lib/gl_array_oset.c: Don't include xalloc.h.
11848         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11849         malloc, not xmalloc.
11850         (grow): Change return type to 'int'. Don't call xalloc_die.
11851         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11852         to 'int'.
11853         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11854         'int'.
11855         (gl_array_oset_implementation): Update.
11856         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11857         gl_tree_create_empty.
11858         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11859         'int'.
11860         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11861         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11862         xmalloc.
11863         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11864         not xmalloc.
11865         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11866         xmalloc.
11867         (gl_avltree_oset_implementation): Update.
11868         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11869         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11870         xmalloc.
11871         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11872         not xmalloc.
11873         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11874         xmalloc.
11875         (gl_rbtree_oset_implementation): Update.
11876         * modules/array-oset (Depends-on): Remove xalloc.
11877         * modules/avltree-oset (Depends-on): Likewise.
11878         * modules/rbtree-oset (Depends-on): Likewise.
11879         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11880         * tests/test-avltree_oset.c: Likewise.
11881         * tests/test-rbtree_oset.c: Likewise.
11882         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11883         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11884         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11885         * NEWS: Mention the change.
11886
11887 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11888
11889         maint.mk: allow a project to override release-prep commands
11890         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11891         commands into a new rule.
11892         (release-prep): New rule.
11893         (release-prep-hook): New overridable variable.
11894
11895 2009-12-13  Bruno Haible  <bruno@clisp.org>
11896
11897         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11898
11899 2009-12-13  Jim Meyering  <meyering@redhat.com>
11900
11901         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11902         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11903
11904 2009-12-12  Bruno Haible  <bruno@clisp.org>
11905
11906         duplocale: Tweak.
11907         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11908
11909 2009-12-12  Karl Berry  <karl@gnu.org>
11910
11911         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11912
11913 2009-12-12  Bruno Haible  <bruno@clisp.org>
11914
11915         * m4/po.m4: Undo incorrect untabification.
11916
11917 2009-12-12  Bruno Haible  <bruno@clisp.org>
11918
11919         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11920         * modules/c-strtod (Depends-on): Add locale.
11921         * modules/c-strtold (Depends-on): Likewise.
11922
11923 2009-12-12  Bruno Haible  <bruno@clisp.org>
11924
11925         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11926
11927 2009-12-11  Eric Blake  <ebb9@byu.net>
11928
11929         setenv: relax requirement in light of POSIX ruling
11930         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11931         not NULL.
11932         * tests/test-setenv.c (main): Relax test.
11933         * tests/test-unsetenv.c (main): Likewise.
11934         * doc/posix-functions/setenv.texi (setenv): Document this.
11935         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11936
11937 2009-12-11  Bruno Haible  <bruno@clisp.org>
11938
11939         New module 'fd-safer-flag'.
11940         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11941         * lib/dup-safer.c (dup_safer_flag): Remove function.
11942         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11943         * lib/fd-safer.c (fd_safer_flag): Remove function.
11944         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11945         * modules/cloexec (configure.ac): Drop indicator macro.
11946         * modules/fd-safer-flag: New file.
11947         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11948         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11949         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11950
11951 2009-12-11  Bruno Haible  <bruno@clisp.org>
11952
11953         Tests for module 'nl_langinfo'.
11954         * modules/nl_langinfo-tests: New file.
11955         * tests/test-nl_langinfo.sh: New file.
11956         * tests/test-nl_langinfo.c: New file.
11957
11958         New module 'nl_langinfo'.
11959         * lib/nl_langinfo.c: New file.
11960         * m4/nl_langinfo.m4: New file.
11961         * modules/nl_langinfo: New file.
11962         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
11963
11964 2009-12-11  Bruno Haible  <bruno@clisp.org>
11965
11966         Tests for module 'langinfo'.
11967         * modules/langinfo-tests: New file.
11968         * tests/test-langinfo.c: New file.
11969
11970         New module 'langinfo'.
11971         * lib/langinfo.in.h: New file.
11972         * m4/langinfo_h.m4: New file.
11973         * modules/langinfo: New file.
11974         * doc/posix-headers/langinfo.texi: Mention the new module.
11975
11976 2009-12-11  Bruno Haible  <bruno@clisp.org>
11977
11978         * lib/config.charset: Untabify.
11979
11980 2009-12-11  Bruno Haible  <bruno@clisp.org>
11981
11982         * modules/unistd-safer (configure.ac): Drop indicator macro.
11983
11984 2009-12-11  Bruno Haible  <bruno@clisp.org>
11985
11986         Move pipe2-safer code to its own file.
11987         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
11988         * lib/pipe-safer.c (pipe2_safer): Remove function.
11989         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
11990         (Makefile.am): Add it to lib_SOURCES.
11991
11992 2009-12-10  Bruno Haible  <bruno@clisp.org>
11993
11994         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
11995
11996 2009-12-10  Bruno Haible  <bruno@clisp.org>
11997
11998         Declare which arguments expect non-NULL values, for GCC and clang.
11999         * build-aux/arg-nonnull.h: New file.
12000         * modules/arg-nonnull: New file.
12001         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12002         (inet_ntop, inet_pton): Use it.
12003         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12004         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12005         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12006         (open, openat): Use it.
12007         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12008         (fnmatch): Use it.
12009         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12010         (getopt, getopt_long, getopt_long_only): Use it.
12011         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12012         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12013         Use it.
12014         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12015         (iconv_open): Use it.
12016         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12017         (strtoimax, strtoumax): Use it.
12018         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12019         (duplocale): Use it.
12020         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12021         (frexp, frexpl): Use it.
12022         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12023         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12024         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12025         (tsearch, tfind, tdelete, twalk): Use it.
12026         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12027         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12028         sigpending): Use it.
12029         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12030         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12031         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12032         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12033         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12034         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12035         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12036         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12037         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12038         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12039         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12040         Use it.
12041         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12042         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12043         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12044         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12045         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12046         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12047         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12048         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12049         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12050         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12051         strtoull, unsetenv): Use it.
12052         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12053         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12054         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12055         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12056         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12057         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12058         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12059         (strcasecmp, strncasecmp): Use it.
12060         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12061         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12062         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12063         rpl_setsockopt): Use it.
12064         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12065         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12066         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12067         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12068         (gettimeofday): Use it.
12069         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12070         (times): Use it.
12071         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12072         (uname): Use it.
12073         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12074         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12075         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12076         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12077         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12078         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12079         unlinkat, write): Use it.
12080         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12081         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12082         * lib/argv-iter.h: Include arg-nonnull.h.
12083         (_ATTRIBUTE_NONNULL_): Remove macro.
12084         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12085         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12086         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12087         optimization.
12088         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12089         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12090         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12091         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12092         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12093         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12094         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12095         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12096         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12097         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12098         * modules/dirent (Depends-on): Add arg-nonnull.
12099         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12100         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12101         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12102         * modules/fnmatch (Depends-on): Add arg-nonnull.
12103         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12104         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12105         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12106         * modules/glob (Depends-on): Add arg-nonnull.
12107         (Makefile.am): Insert arg-nonnull.h into glob.h.
12108         * modules/iconv_open (Depends-on): Add arg-nonnull.
12109         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12110         * modules/inttypes (Depends-on): Add arg-nonnull.
12111         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12112         * modules/locale (Depends-on): Add arg-nonnull.
12113         (Makefile.am): Insert arg-nonnull.h into locale.h.
12114         * modules/math (Depends-on): Add arg-nonnull.
12115         (Makefile.am): Insert arg-nonnull.h into math.h.
12116         * modules/netdb (Depends-on): Add arg-nonnull.
12117         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12118         * modules/search (Depends-on): Add arg-nonnull.
12119         (Makefile.am): Insert arg-nonnull.h into search.h.
12120         * modules/signal (Depends-on): Add arg-nonnull.
12121         (Makefile.am): Insert arg-nonnull.h into signal.h.
12122         * modules/spawn (Depends-on): Add arg-nonnull.
12123         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12124         * modules/stdio (Depends-on): Add arg-nonnull.
12125         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12126         * modules/stdlib (Depends-on): Add arg-nonnull.
12127         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12128         * modules/string (Depends-on): Add arg-nonnull.
12129         (Makefile.am): Insert arg-nonnull.h into string.h.
12130         * modules/strings (Depends-on): Add arg-nonnull.
12131         (Makefile.am): Insert arg-nonnull.h into strings.h.
12132         * modules/sys_socket (Depends-on): Add arg-nonnull.
12133         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12134         * modules/sys_stat (Depends-on): Add arg-nonnull.
12135         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12136         * modules/sys_time (Depends-on): Add arg-nonnull.
12137         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12138         * modules/sys_times (Depends-on): Add arg-nonnull.
12139         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12140         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12141         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12142         * modules/time (Depends-on): Add arg-nonnull.
12143         (Makefile.am): Insert arg-nonnull.h into time.h.
12144         * modules/unistd (Depends-on): Add arg-nonnull.
12145         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12146         * modules/wchar (Depends-on): Add arg-nonnull.
12147         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12148         * modules/argv-iter (Depends-on): Add arg-nonnull.
12149         * tests/test-canonicalize.c (null_ptr): New function.
12150         (main): Use it.
12151         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12152         (main): Use it.
12153         * tests/test-memmem.c (null_ptr): New function.
12154         (main): Use it.
12155         Reported by Jim Meyering.
12156
12157 2009-12-10  Bruno Haible  <bruno@clisp.org>
12158
12159         Use spaces for indentation, not tabs.
12160         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12161         * m4/*.m4: Untabify.
12162         * build-aux/*.h: Untabify.
12163         * tests/**/*.[hc]: Untabify.
12164         * README: New section "Indent with spaces, not TABs", based on
12165         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12166         * NEWS: Mention the change.
12167
12168 2009-12-10  Bruno Haible  <bruno@clisp.org>
12169
12170         pty test: Fix link error.
12171         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12172         test_pty_LDADD.
12173
12174 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12175
12176         * modules/pty: New file.
12177         * modules/pty-tests: New file.
12178         * m4/pty.m4: New file.
12179         * tests/test-pty.c: New file.
12180         * doc/glibc-headers/pty.texi: Modified.
12181         * doc/glibc-functions/forkpty.texi: Modified.
12182         * doc/glibc-functions/openpty.texi: Modified.
12183
12184 2009-12-10  Bruno Haible  <bruno@clisp.org>
12185
12186         Avoid syntax error in C++ mode.
12187         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12188
12189 2009-12-10  Bruno Haible  <bruno@clisp.org>
12190
12191         Use sed with option -e.
12192         * gnulib-tool (func_version, func_emit_copyright_notice,
12193         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12194         option -e to sed.
12195         * modules/link-warning (Makefile.am): Likewise.
12196
12197 2009-12-10  Jim Meyering  <meyering@redhat.com>
12198
12199         mgetgroups: do not write bytes beyond end of malloc'd buffer
12200         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12201         username, we call getgroups with a one-element-shorter buffer,
12202         but still told it the length was original, max_n_groups.
12203
12204 2009-12-09  Eric Blake  <ebb9@byu.net>
12205
12206         cloexec: relax license
12207         * modules/cloexec (Maintainer): Add myself.
12208         (License): Use LGPL, not GPL.
12209
12210         link-warning: optimize generation
12211         * modules/link-warning (Makefile.am): Reduce process usage.
12212
12213 2009-12-09  Bruno Haible  <bruno@clisp.org>
12214
12215         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12216         workaround was added on 2009-11-17.
12217
12218 2009-12-09  Jim Meyering  <meyering@redhat.com>
12219             Bruno Haible  <bruno@clisp.org>
12220
12221         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12222         * modules/link-warning (Makefile.am): Make the comment-removing sed
12223         command more robust in the face of bootstrap-prepended comment lines.
12224
12225 2009-12-09  Bruno Haible  <bruno@clisp.org>
12226
12227         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12228         most one group.
12229
12230 2009-12-09  Simon Josefsson <simon@josefsson.org>
12231             Bruno Haible  <bruno@clisp.org>
12232
12233         * build-aux/link-warning.h: Add copyright notice.
12234         * modules/link-warning (Makefile.am): Generate link-warning.h from
12235         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12236         * NEWS: Mention change in link-warning module.
12237         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12238         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12239         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12240         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12241         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12242         * modules/math (Makefile.am): Add dependency to math.h.
12243         * modules/search (Makefile.am): Add dependency to search.h.
12244         * modules/signal (Makefile.am): Add dependency to signal.h.
12245         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12246         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12247         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12248         * modules/string (Makefile.am): Add dependency to string.h.
12249         * modules/strings (Makefile.am): Add dependency to strings.h.
12250         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12251         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12252         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12253         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12254         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12255         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12256         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12257         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12258         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12259
12260 2009-12-09  Bruno Haible  <bruno@clisp.org>
12261
12262         fchdir: Optimize away rpl_fstat when possible.
12263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12264         REPLACE_OPEN_DIRECTORY.
12265         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12266
12267 2009-12-09  Bruno Haible  <bruno@clisp.org>
12268
12269         * lib/fchdir.c: Update comment.
12270
12271 2009-12-09  Bruno Haible  <bruno@clisp.org>
12272
12273         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12274
12275 2009-12-08  Eric Blake  <ebb9@byu.net>
12276
12277         fchdir: avoid memory leak on re-registration.
12278         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12279
12280 2009-12-08  Jim Meyering  <meyering@redhat.com>
12281
12282         init.sh: avoid Solaris 10 /bin/sh portability problem
12283         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12284         sourced script:
12285           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12286           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12287           bar
12288         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12289         and two tests used that idiom.
12290         * tests/init.sh: Update suggested usage comments.
12291         (path_prepend_): New function, to be used in place
12292         of the --src-path=DIR option.
12293         (setup_): Move PATH-prepending code into path_prepend_.
12294         * tests/test-pread.sh: Adapt to new usage.
12295         * tests/test-xalloc-die.sh: Likewise.
12296
12297 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12298
12299         * doc/gnulib.texi (Glibc pty.h): Add.
12300         * doc/glibc-functions/forkpty.texi: Add.
12301         * doc/glibc-functions/openpty.texi: Add.
12302         Suggested by Bruno Haible.
12303
12304 2009-12-08  Eric Blake  <ebb9@byu.net>
12305
12306         fchdir: fix logic bugs
12307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12308         * tests/test-fchdir.c (main): Enhance test.
12309         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12310         is in use.
12311
12312         dup2: fix logic bugs
12313         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12314         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12315         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12316         exists.
12317         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12318
12319 2009-12-07  Eric Blake  <ebb9@byu.net>
12320
12321         unlink: fix m4 detection
12322         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12323
12324         unistd-safer: add unit test
12325         * modules/unistd-safer-tests: New file.
12326         * tests/test-dup-safer.c: Likewise.
12327         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12328         * tests/test-dup2.c (setmode): Likewise.
12329         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12330
12331         cloexec: preserve text vs. binary across dup_cloexec
12332         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12333         mode.
12334         * modules/dup2-tests (Depends-on): Add binary-io.
12335         * modules/cloexec-tests (Depends-on): Likewise.
12336         * tests/test-dup2.c (setmode, is_mode): New helpers.
12337         (main): Add tests that translation mode is preserved.
12338         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12339         Reported by Bruno Haible.
12340
12341         mgetgroups: reduce duplicate listings
12342         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12343         resulting array.
12344         * tests/test-chown.h (test_chown): Simplify client.
12345         * tests/test-lchown.h (test_lchown): Likewise.
12346
12347 2009-12-06  Bruno Haible  <bruno@clisp.org>
12348
12349         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12350         value.
12351
12352 2009-12-06  Bruno Haible  <bruno@clisp.org>
12353
12354         * lib/progname.c: Include stdio.h, stdlib.h.
12355         (set_program_name): Reject a NULL argument.
12356
12357 2009-12-05  Eric Blake  <ebb9@byu.net>
12358
12359         pipe2-safer: new module
12360         * modules/pipe2-safer: New file.
12361         * lib/unistd-safer.h (pipe2_safer): New prototype.
12362         * lib/unistd--.h (pipe2): New wrapper.
12363         * lib/pipe-safer.c (pipe2_safer): New function.
12364         * modules/pipe (Depends-on): Add pipe2-safer.
12365         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12366
12367         stdlib-safer: preserve cloexec flag for mkostemp[s]
12368         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12369         fd_safer_flag.
12370
12371         unistd-safer: allow preservation of cloexec status via flag
12372         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12373         prototypes.
12374         * lib/dup-safer.c (dup_safer_flag): New function.
12375         * lib/fd-safer.c (fd_safer_flag): Likewise.
12376         * modules/cloexec (configure.ac): Set witness.
12377
12378         test-dup2: enhance test
12379         * modules/dup2-tests (Depends-on): Add cloexec.
12380         * tests/test-dup2.c (main): Enhance test.
12381
12382         cloexec: add dup_cloexec
12383         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12384         header and comments.
12385         * lib/cloexec.c (set_cloexec_flag): Add comments.
12386         (dup_cloexec): New function, with mingw implementation borrowed
12387         from...
12388         * lib/w32spawn.h (dup_noinherit): ...here.
12389         * modules/execute (Depends-on): Add cloexec.
12390         * modules/pipe (Depends-on): Likewise.
12391         * modules/cloexec (Depends-on): Add dup2.
12392         * modules/cloexec-tests (Files): New file.
12393         * tests/test-cloexec.c: Likewise.
12394
12395         test-xalloc-die: fix test for mingw
12396         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12397         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12398         directory and .exe suffix off argv[0] output.
12399
12400         test-fseeko: fix test for mingw
12401         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12402         than undefining fseek, so test will pass on mingw.
12403
12404 2009-12-05  Bruno Haible  <bruno@clisp.org>
12405
12406         * lib/progname.h (set_program_name): Clarify specification.
12407         * lib/progname.c (set_program_name): Likewise.
12408         Reported by Jim Meyering.
12409
12410 2009-12-05  Jim Meyering  <meyering@redhat.com>
12411
12412         maint.mk: backslash-escape parens in default regexp
12413         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12414         backslash-escape the literal parentheses.
12415
12416         maint.mk: news-date-check: use grep -E
12417         * top/maint.mk (today): Define a Make variable, not a...
12418         (news-date-check): ...shell variable.
12419         (news-date-regexp): Use the Make variable.
12420         Use grep's -E option.  Change the failing diagnostic to mention
12421         the variable, $(news-date-regexp).
12422
12423 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12424
12425         maintainer-makefile: allow customization of NEWS entry format
12426         * top/maint.mk (news-date-regexp): New overridable variable.
12427         (news-date-check): Use it.
12428
12429 2009-12-04  Eric Blake  <ebb9@byu.net>
12430
12431         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12432         * lib/mgetgroups.h (xgetgroups): New prototype.
12433         * lib/mgetgroups.c (xgetgroups): New wrapper.
12434         (mgetgroups): Handle ENOSYS.
12435         * modules/mgetgroups (Depends-on): Add realloc.
12436         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12437
12438         mgetgroups: avoid argument promotion issues with -1
12439         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12440         for invalid gid_t.
12441         * tests/test-chown.h (getegid, test_chown): Likewise.
12442         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12443
12444 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12445
12446         exclude: Fix header file problems.
12447         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12448
12449 2009-12-01  Jim Meyering  <meyering@redhat.com>
12450
12451         fts: fts_open: do not let an empty string cause immediate failure
12452         This is required in support of GNU rm, for which the command
12453         "rm A '' B" must process and remove both A and B, in spite of
12454         the empty string argument.
12455         * lib/fts.c (fts_open): Do not let the presence of an empty string
12456         cause fts_open to fail immediately.  Most fts-using tools must be
12457         able to process all arguments, in order, and can be expected to
12458         diagnose such arguments themselves.
12459
12460 2009-11-30  Eric Blake  <ebb9@byu.net>
12461
12462         utimens: fix compilation error
12463         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12464         Declare variable at right scope.
12465
12466 2009-11-29  Jim Meyering  <meyering@redhat.com>
12467
12468         bootstrap: handle perl-5.11's changed --version output
12469         * build-aux/bootstrap (get_version): Handle perl separately,
12470         since perl-5.11's --version output is different.
12471
12472 2009-11-28  Jim Meyering  <meyering@redhat.com>
12473
12474         userspec: depend on the inttostr module, too
12475         * modules/userspec (Depends-on): Add inttostr.
12476
12477         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12478         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12479         number of MAXUID when it evaluates to (uid_t) -1.
12480         Likewise for group ID.  Reported by Matt McCutchen in
12481         <http://savannah.gnu.org/bugs/?28113>
12482
12483         userspec: reformat to use spaces, not TABs
12484         * lib/userspec.c: Expand TABs to spaces.
12485         Add Emacs' "indent-tabs-mode: nil" hint.
12486
12487 2009-11-27  Eric Blake  <ebb9@byu.net>
12488
12489         getopt-gnu: flush out another BSD bug
12490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12491         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12492         flush out BSD bug.
12493         * tests/test-getopt.h (test_getopt): End lists with NULL.
12494         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12495         (test_getopt_long_posix): Enhance test.
12496         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12497         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12498         getopt-gnu.
12499         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12500         Likewise.
12501
12502 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12503
12504         * modules/idpriv-droptemp-tests (Notice): Fix text.
12505
12506 2009-11-27  Jim Meyering  <meyering@redhat.com>
12507
12508         test-xalloc-die: avoid spurious failure due to libtool argv difference
12509         In a libtool-enabled project, this test would fail due to a difference
12510         in the emitted program name, e.g.,
12511         -test-xalloc-die: memory exhausted
12512         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12513         Use program to avoid that.
12514         * modules/xalloc-die-tests (Depends-on): Add progname.
12515         * tests/test-xalloc-die.c: Include progname.h".
12516         (program_name): Remove decl.
12517         (main): Call set_program_name.
12518         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12519
12520 2009-11-26  Richard Jones  <rjones@redhat.com>
12521
12522         w32sock: leave win32 error in place.
12523         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12524
12525 2009-11-26  Eric Blake  <ebb9@byu.net>
12526
12527         init.sh: suggest to use skip_ and fail_ functions in comments
12528         * tests/init.sh: Add a sentence.
12529
12530 2009-11-25  Bruno Haible  <bruno@clisp.org>
12531
12532         init.sh: add documentation in comments
12533         * tests/init.sh: Add some developer and user documentation.
12534
12535 2009-11-26  Jim Meyering  <meyering@redhat.com>
12536
12537         init.sh: accommodate even those who specify bogus srcdir manually
12538         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12539         configure-time tests to be sanitized, so that there is no need to
12540         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12541         (with no double quotes) suffices.  However, since tests may be
12542         invoked manually, and since you may explicitly set srcdir to the
12543         name of a directory containing spaces, do quote its uses here.
12544         * tests/test-pread.sh: Likewise.
12545         Suggested by Bruno Haible.
12546
12547         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12548         * tests/test-pread.sh: Write no data into the pipe, because
12549         test-pread actually reads none.  This avoids a diagnostic,
12550         "bash: echo: write error: Broken pipe", that arises in the unusual
12551         event something is ignoring SIGPIPE, and might be interpreted
12552         as some sort of failure.  Reported by Bruno Haible.
12553
12554 2009-11-25  Jim Meyering  <meyering@redhat.com>
12555
12556         test-pread: cover failure with ESPIPE and EINVAL
12557         * tests/test-pread.c (main): Test for failure, too.
12558         * tests/test-pread.sh: Invoke with stdin on a pipe.
12559         Suggested by Eric Blake.
12560
12561         pread: improvement and fix
12562         * modules/pread (Depends-on): Depend on lseek, for portability to
12563         e.g., mingw.  Suggested by Eric Blake.
12564         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12565
12566         unistd.in.h: correct declaration of pread
12567         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12568         Reported by Richard W.M. Jones.
12569
12570         test-pread.sh: distribute the test script
12571         * modules/pread-tests (Files): Include test-pread.sh.
12572
12573         test-pread.sh: clean up
12574         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12575         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12576         That is unnecessary, since it's always ".".
12577         Suggestion from Eric Blake.
12578
12579         test-pread.sh: make executable
12580         * tests/test-pread.sh: Set executable bit.
12581         Reported by Eric Blake.
12582
12583         correct typo in test-pread.sh
12584         * tests/test-pread.sh: Add #! line.
12585
12586         test pread
12587         * tests/test-pread.c: New file.
12588         * tests/test-pread.sh: Likewise.
12589         * modules/pread-tests: Likewise.
12590
12591         pread: new module
12592         * modules/pread: New file.
12593         * lib/unistd.in.h (pread): Define/declare.
12594         * lib/pread.c (pread): New file.
12595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12596         * modules/unistd (Makefile.am): Substitute witnesses.
12597         * doc/posix-functions/pread.texi (pread): Update.
12598         * MODULES.html.sh: Add pread.
12599
12600 2009-11-25  Jim Meyering  <meyering@redhat.com>
12601
12602         tests/init.sh: new file to be used via most *.sh tests
12603         * tests/init.sh: New file.
12604
12605 2009-11-25  Eric Blake  <ebb9@byu.net>
12606
12607         utimens: work around older Linux failure with symlinks
12608         * lib/utimens.c (lutimensat_works_really): New variable.
12609         (fdutimens, lutimens): Use it to manage kernels that support
12610         nanosecond times on files, but not on symlinks.
12611         Reported by Ondřej Vašík.
12612
12613         utimes: fix configure grammar
12614         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12615
12616 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12617
12618         regex: Fix fastmap for multibyte character ranges.
12619         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12620         characters when a multibyte character range is included.
12621
12622 2009-11-22  Andy Wingo  <wingo@pobox.com>
12623
12624         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12625         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12626
12627 2009-11-24  Bruno Haible  <bruno@clisp.org>
12628
12629         doc: Most *_l functions exist in MacOS X 10.5.
12630         * doc/posix-functions/duplocale.texi: Update platforms list.
12631         * doc/posix-functions/freelocale.texi: Likewise.
12632         * doc/posix-functions/newlocale.texi: Likewise.
12633         * doc/posix-functions/uselocale.texi: Likewise.
12634         * doc/posix-functions/isalnum_l.texi: Likewise.
12635         * doc/posix-functions/isalpha_l.texi: Likewise.
12636         * doc/posix-functions/isblank_l.texi: Likewise.
12637         * doc/posix-functions/iscntrl_l.texi: Likewise.
12638         * doc/posix-functions/isdigit_l.texi: Likewise.
12639         * doc/posix-functions/isgraph_l.texi: Likewise.
12640         * doc/posix-functions/islower_l.texi: Likewise.
12641         * doc/posix-functions/isprint_l.texi: Likewise.
12642         * doc/posix-functions/ispunct_l.texi: Likewise.
12643         * doc/posix-functions/isspace_l.texi: Likewise.
12644         * doc/posix-functions/isupper_l.texi: Likewise.
12645         * doc/posix-functions/iswalnum_l.texi: Likewise.
12646         * doc/posix-functions/iswalpha_l.texi: Likewise.
12647         * doc/posix-functions/iswblank_l.texi: Likewise.
12648         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12649         * doc/posix-functions/iswctype_l.texi: Likewise.
12650         * doc/posix-functions/iswdigit_l.texi: Likewise.
12651         * doc/posix-functions/iswgraph_l.texi: Likewise.
12652         * doc/posix-functions/iswlower_l.texi: Likewise.
12653         * doc/posix-functions/iswprint_l.texi: Likewise.
12654         * doc/posix-functions/iswpunct_l.texi: Likewise.
12655         * doc/posix-functions/iswspace_l.texi: Likewise.
12656         * doc/posix-functions/iswupper_l.texi: Likewise.
12657         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12658         * doc/posix-functions/isxdigit_l.texi: Likewise.
12659         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12660         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12661         * doc/posix-functions/strcoll_l.texi: Likewise.
12662         * doc/posix-functions/strfmon_l.texi: Likewise.
12663         * doc/posix-functions/strftime_l.texi: Likewise.
12664         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12665         * doc/posix-functions/strxfrm_l.texi: Likewise.
12666         * doc/posix-functions/tolower_l.texi: Likewise.
12667         * doc/posix-functions/toupper_l.texi: Likewise.
12668         * doc/posix-functions/towctrans_l.texi: Likewise.
12669         * doc/posix-functions/towlower_l.texi: Likewise.
12670         * doc/posix-functions/towupper_l.texi: Likewise.
12671         * doc/posix-functions/wcscoll_l.texi: Likewise.
12672         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12673         * doc/posix-functions/wctrans_l.texi: Likewise.
12674         * doc/posix-functions/wctype_l.texi: Likewise.
12675         * doc/glibc-functions/strptime_l.texi: Likewise.
12676         * doc/glibc-functions/strtod_l.texi: Likewise.
12677         * doc/glibc-functions/strtof_l.texi: Likewise.
12678         * doc/glibc-functions/strtol_l.texi: Likewise.
12679         * doc/glibc-functions/strtold_l.texi: Likewise.
12680         * doc/glibc-functions/strtoll_l.texi: Likewise.
12681         * doc/glibc-functions/strtoul_l.texi: Likewise.
12682         * doc/glibc-functions/strtoull_l.texi: Likewise.
12683         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12684         * doc/glibc-functions/wcstod_l.texi: Likewise.
12685         * doc/glibc-functions/wcstof_l.texi: Likewise.
12686         * doc/glibc-functions/wcstol_l.texi: Likewise.
12687         * doc/glibc-functions/wcstold_l.texi: Likewise.
12688         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12689         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12690         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12691
12692 2009-11-24  Bruno Haible  <bruno@clisp.org>
12693
12694         duplocale: Fix logic bug.
12695         * lib/duplocale.c: Don't include <langinfo.h>.
12696         (_NL_LOCALE_NAME): Remove macro.
12697         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12698         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12699
12700 2009-11-23  Jim Meyering  <meyering@redhat.com>
12701
12702         test-update-copyright: don't hard-code /usr/bin/perl
12703         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12704         perl to print the current year.  Gilles Espinasse reported that
12705         the replaced use of perl was hard-coded as /usr/bin/perl.
12706
12707 2009-11-23  Bruno Haible  <bruno@clisp.org>
12708
12709         duplocale: Add support for glibc 2.3.x.
12710         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12711
12712 2009-11-22  Bruno Haible  <bruno@clisp.org>
12713
12714         vasnprintf: Tiny optimization.
12715         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12716         MacOS X.
12717
12718 2009-11-22  Bruno Haible  <bruno@clisp.org>
12719
12720         Tests for module 'duplocale'.
12721         * modules/duplocale-tests: New file.
12722         * tests/test-duplocale.c: New file.
12723
12724         New module 'duplocale'.
12725         * m4/duplocale.m4: New file.
12726         * lib/locale.in.h (duplocale): New declaration.
12727         * lib/duplocale.c: New file.
12728         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12729         gl_LOCALE_H_DEFAULTS): New macros.
12730         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12731         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12732         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12733         REPLACE_DUPLOCALE.
12734         * modules/duplocale: New file.
12735         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12736
12737 2009-11-22  Bruno Haible  <bruno@clisp.org>
12738
12739         * modules/locale-tests (configure.ac): Test for newlocale function.
12740         * tests/test-locale.c: When the system has extended locale functions,
12741         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12742
12743         locale: Make locale_t available when possible.
12744         * lib/locale.in.h: Include <xlocale.h> when it exists.
12745         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12746         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12747         * modules/locale (Depends-on): Add extensions.
12748         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12749         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12750
12751 2009-11-22  Bruno Haible  <bruno@clisp.org>
12752
12753         Add comments.
12754         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12755         invocation.
12756         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12757         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12758         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12759
12760 2009-11-22  Bruno Haible  <bruno@clisp.org>
12761
12762         error: account for the possibility of freopen (stdout).
12763         * lib/error.c: Include <unistd.h>.
12764         (flush_stdout): New function, extracted from error and error_at_line.
12765         Determine stdout's fd dynamically.
12766         (error, error_at_line): Invoke flush_stdout.
12767         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12768         * modules/error (Depends-on): Add unistd.
12769
12770 2009-11-22  Bruno Haible  <bruno@clisp.org>
12771
12772         diffseq: Add comment.
12773         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12774
12775 2009-11-22  Jim Meyering  <meyering@redhat.com>
12776
12777         c-stack: avoid defining an unused static function
12778         * lib/c-stack.c (find_stack_direction): Do not define this function
12779         when it will not be used.
12780
12781         diffseq: avoid spurious gcc warnings
12782         * lib/diffseq.h (IF_LINT2): Define.
12783         (compareseq): Use it to initialize two members of "part".
12784         This avoids two used-uninitialized warnings.
12785
12786 2009-11-21  Jim Meyering  <meyering@redhat.com>
12787
12788         c-stack: avoid "ignoring return value of `write'" warning
12789         * lib/c-stack.c: Include "ignore-value.h".
12790         (die): Explicitly ignore each write return value.
12791         * modules/c-stack (Depends-on): Add ignore-value.
12792
12793 2009-11-21  Bruno Haible  <bruno@clisp.org>
12794
12795         diffseq: reduce scope of variable 'best'.
12796         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12797         variable, earlier used for two different purposes.
12798
12799 2009-11-21  Jim Meyering  <meyering@redhat.com>
12800
12801         diffseq: remove useless assignment to "best"
12802         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12803         assignment.  At that point "best" is already guaranteed to be zero.
12804
12805 2009-11-20  Eric Blake  <ebb9@byu.net>
12806
12807         build: mention ftp redirector in release announcements
12808         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12809         values that used to come from cfg.mk; mention FTP redirect URL.
12810         * build-aux/announce-gen: Mention the mirror list.
12811         Suggested by Karl Berry.
12812
12813         nanosleep: improve port to mingw
12814         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12816         LIB_NANOSLEEP, but only when needed.
12817         * modules/select (Link): Document LIBSOCKET.
12818         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12819         enough.
12820
12821         nanosleep: work around cygwin bug
12822         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12823         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12824         bug.
12825         (getnow): Delete, not needed.
12826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12827         LIB_CLOCK_GETTIME.
12828         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12829         clock-time, gettime.
12830         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12831         bug.
12832         * modules/nanosleep-tests: New test.
12833         * tests/test-nanosleep.c: New file.
12834
12835         sleep: work around cygwin bug
12836         * lib/sleep.c (rpl_sleep): Work around the bug.
12837         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12838         (gl_PREREQ_SLEEP): Delete unused macro.
12839         * modules/sleep (Depends-on): Add verify.
12840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12841         * modules/unistd (Makefile.am): Substitute witness.
12842         * lib/unistd.in.h (sleep): Update prototype.
12843         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12844         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12845         * modules/sleep-tests (Depends-on): Check for alarm.
12846
12847 2009-11-20  Jim Meyering  <meyering@redhat.com>
12848
12849         maint.mk: improve sc_prohibit_magic_number_exit
12850         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12851         so it does not match uses like System.exit(1).
12852         Add comments showing how to correct all offenders.
12853
12854 2009-11-19  Eric Blake  <ebb9@byu.net>
12855
12856         xalloc-die-tests: add missing library
12857         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12858
12859         test-xvasprintf: silence compiler warnings
12860         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12861         empty string from gcc.
12862
12863 2009-11-19  Jim Meyering  <meyering@redhat.com>
12864
12865         xfreopen: new module, from coreutils
12866         * modules/xfreopen: New module.
12867         * lib/xfreopen.c: New file.
12868         * lib/xfreopen.h: New file.
12869         * MODULES.html.sh (File stream based Input/Output"): Add it.
12870
12871 2009-11-19  Eric Blake  <ebb9@byu.net>
12872
12873         manywarnings: depend on warnings
12874         * modules/manywarnings (Depends-on): Add warnings.
12875
12876         build: avoid compiler warnings
12877         * lib/select.c (rpl_select): Delete unused variable.
12878         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12879
12880 2009-11-18  Eric Blake  <ebb9@byu.net>
12881
12882         tests: avoid false negative with --with-packager
12883         * tests/test-version-etc.sh: Discard packager information.
12884         * tests/test-argp-version-etc-1.sh: Likewise.
12885         Reported by Mike Frysinger.
12886
12887         utimens: fix regression on Solaris
12888         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12889         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12890         can only change fd timestamps via futimesat.  Instead, use an
12891         additional witness macro to avoid BSD bug.
12892         Reported by Jim Meyering.
12893
12894 2009-11-17  Eric Blake  <ebb9@byu.net>
12895
12896         usleep: use it to simplify tests
12897         * modules/stat-time-tests (Depends-on): Add usleep.
12898         (configure.ac): Drop usleep check.
12899         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12900         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12901         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12902         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12903         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12904         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12905         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12906         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12907         Likewise.
12908         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12909         * tests/test-lchown.h (nap): Likewise.
12910         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12911         * tests/test-stat-time.c (nap): Likewise.
12912         * tests/test-utimens-common.h (nap): Update comments.
12913
12914         usleep: new module
12915         * modules/usleep: New file.
12916         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12917         * lib/usleep.c (usleep): Likewise.
12918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12919         * modules/unistd (Makefile.am): Substitute witnesses.
12920         * lib/unistd.in.h (usleep): Add declaration.
12921         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12922         * MODULES.html.sh (Date and time): Likewise.
12923         * modules/usleep-tests (Depends-on): New test.
12924         * tests/test-usleep.c: New file.
12925
12926         chown: work around OpenBSD bug
12927         * lib/chown.c (rpl_chown): Work around the bug.
12928         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12929         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12930         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12931         * modules/chown (Depends-on): Add stdbool.
12932         * modules/lchown (Depends-on): Likewise.
12933         * doc/posix-functions/chown.texi (chown): Document the bug.
12934         * doc/posix-functions/lchown.texi (lchown): Likewise.
12935         * tests/test-lchown.h (test_chown): Relax test.
12936
12937         mkstemp: avoid conflict with C++ keyword template
12938         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12939         * lib/mkostemp.c (mkostemp): Likewise.
12940         * lib/mkostemps.c (mkostemps): Likewise.
12941         * lib/mkstemp.c (mkstemp): Likewise.
12942         * lib/mkstemps.c (mkstemps): Likewise.
12943
12944         xalloc-die-tests: optimize
12945         * tests/test-xalloc-die.sh: Reduce number of processes.
12946
12947 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12948
12949         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12950         patch from ludo@gnu.org (Ludovic Courtès).
12951
12952 2009-11-17  Jim Meyering  <meyering@redhat.com>
12953
12954         version-etc: use proper license string
12955         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12956         * modules/version-etc-fsf: Likewise.
12957
12958 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12959
12960         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
12961         printed to stdout.  Deal with EOL differences.
12962
12963 2009-11-17  Eric Blake  <ebb9@byu.net>
12964
12965         unsetenv: work around Solaris bug
12966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
12967         * lib/unsetenv.c (rpl_unsetenv): Work around it.
12968         Reported by Jim Meyering.
12969
12970         vasnprintf: avoid compiler warnings
12971         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
12972         variables.
12973         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
12974
12975 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12976
12977         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
12978         settings since xalloc-die is no longer the self test,
12979         xalloc-die.sh is.
12980
12981 2009-11-17  Jim Meyering  <meyering@redhat.com>
12982
12983         test-xalloc-die.sh: make the code agree with the commit log
12984         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
12985         at the end, just in case you happen to have a test-xalloc-die
12986         program in some other PATH directory.
12987
12988         test-xalloc-die.sh: fix a portability bug
12989         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
12990         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
12991         Otherwise, argv[0] (as often seen in diagnostics) would be too
12992         system-dependent, sometimes with, and sometimes without the leading "./".
12993
12994         version-etc-fsf: relax license to LGPLv3+
12995         * modules/version-etc-fsf (License): Relax license.
12996
12997 2009-11-16  Eric Blake  <ebb9@byu.net>
12998
12999         xalloc-die-tests: avoid printing null pointer
13000         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13001         shell script.
13002         * tests/test-xalloc-die.c (program_name): Declare.
13003         * tests/test-xalloc-die.sh (tmpfiles): New file.
13004
13005         setenv, unsetenv: work around various bugs
13006         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13007         (setenv) [HAVE_SETENV]: Work around bugs.
13008         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13010         for bugs.
13011         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13012         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13014         * modules/stdlib (Makefile.am): Update substitutions.
13015         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13016         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13017         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13018         * modules/setenv-tests: New test.
13019         * modules/unsetenv-tests: Likewise.
13020         * tests/test-setenv.c: New file.
13021         * tests/test-unsetenv.c: Likewise.
13022
13023 2009-11-16  Jim Meyering  <meyering@redhat.com>
13024
13025         version-etc: relax license to LGPLv3+
13026         * modules/version-etc (License): Relax license.
13027
13028         better AC_REQUIRE expanded-before-required-warning avoidance
13029         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13030         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13031         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13032         which is no longer needed.
13033
13034 2009-11-16  Eric Blake  <ebb9@byu.net>
13035
13036         test-freading: clean up temporary file
13037         * tests/test-freading.c (main): Remove file on success, and use
13038         ASSERT more liberally.
13039         Reported by Jim Meyering.
13040
13041 2009-11-16  Jim Meyering  <meyering@redhat.com>
13042
13043         avoid new AC_REQUIRE expanded-before-required warnings
13044         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13045         merely using it.
13046         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13047         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13048
13049 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13050
13051         * tests/test-xalloc-die.c: New file.
13052         * modules/xalloc-die-tests: New file.
13053         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13054         XFAIL_TESTS so it can be appended by modules.
13055
13056 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13057
13058         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13059         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13060
13061 2009-11-14  Eric Blake  <ebb9@byu.net>
13062
13063         fnmatch: avoid compiler warning
13064         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13065         to silence compiler warning about mismatch signedness in ?:.
13066         Reported by Robert Millan.
13067
13068         intprops: add double-inclusion guard
13069         * lib/intprops.h: Allow idempotent includes.
13070         Suggested by Bruce Korb.
13071
13072         openat: detect Solaris fchownat bug
13073         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13074         penalizing glibc chownat when only lchownat is broken.
13075         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13076         trailing slash bugs.
13077         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13078         * modules/openat-tests (Files): Include more files.
13079         (Depends-on): Add mgetgroups, sleep, stat-time.
13080         (configure.ac): Add additional checks.
13081         (Makefile.am): Build new test.
13082         * tests/test-fchownat.c: New file.
13083
13084         lchown: detect Solaris and FreeBSD bug
13085         * lib/lchown.c (rpl_lchown): Work around bug.
13086         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13088         * modules/unistd (Makefile.am): Populate it.
13089         * lib/unistd.in.h (lchown): Update declaration.
13090         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13091         * modules/lchown-tests: New file.
13092         * tests/test-lchown.h (test_lchown): Likewise.
13093         * tests/test-lchown.c (main): Likewise.
13094
13095         chown: detect Solaris and FreeBSD bug
13096         * lib/chown.c (rpl_chown): Work around bug.
13097         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13098         (gl_PREREQ_CHOWN): Delete.
13099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13100         * modules/unistd (Makefile.am): Populate it.
13101         * lib/unistd.in.h (chown): Update declaration.
13102         * lib/lchown.c (chown): Update client.
13103         * modules/lchown (Depends-on): Add lstat.
13104         * doc/posix-functions/chown.texi (chown): Document the bug.
13105         * doc/posix-functions/getgroups.texi (getgroups): Document
13106         getgroups pitfall.
13107         * modules/chown-tests: New file.
13108         * tests/test-chown.h (test_chown): Likewise.
13109         * tests/test-chown.c (main): Likewise.
13110
13111 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13112
13113         gnulib-tool: correctly detect absence of m4 directories
13114         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13115
13116 2009-11-14  Jim Meyering  <meyering@redhat.com>
13117
13118         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13119         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13120
13121 2009-11-14  John W. Eaton  <jwe@gnu.org>
13122
13123         strftime.h: wrap funtion declaration in extern "C" block
13124         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13125
13126 2009-11-13  Eric Blake  <ebb9@byu.net>
13127
13128         getgroups: avoid compiler warning
13129         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13130
13131         getgroups: work around FreeBSD bug
13132         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13133         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13134         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13135         * tests/test-getgroups.c (main): Fix buffer overrun.
13136
13137         getgroups: avoid compilation failure
13138         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13139         * modules/getgroups (Depends-on): Add stdint.
13140
13141 2009-11-13  Jim Meyering  <meyering@redhat.com>
13142
13143         test-getgroups: avoid compilation failure
13144         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13145
13146 2009-11-13  Eric Blake  <ebb9@byu.net>
13147
13148         mgetgroups: new module, taken from coreutils
13149         * modules/mgetgroups: New file.
13150         * lib/mgetgroups.h: Likewise.
13151         * lib/mgetgroups.c (mgetgroups): Likewise.
13152         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13153         * MODULES.html.sh (Users and groups): Mention it.
13154
13155         getgroups: don't expose GETGROUPS_T to user
13156         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13157         an element at a time if GETGROUPS_T is wrong size.
13158         * lib/getugroups.h (getugroups): Change signature.
13159         * lib/unistd.in.h (getgroups): Likewise.
13160         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13161         signature needs fixing.
13162         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13163         AC_TYPE_GETGROUPS.
13164         * modules/group-member (Depends-on): Add getgroups.
13165         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13166         (group_member): Rely on getgroups replacement.
13167         * lib/getugroups.c (getugroups): Use gid_t.
13168         * tests/test-getgroups.c (main): Likewise.
13169         * NEWS: Mention the signature change.
13170         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13171         problem with signature.
13172         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13173         GETGROUPS_T is still useful for setgroups.
13174
13175         getgroups, getugroups: provide stubs for mingw
13176         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13177         * lib/getugroups.c (getugroups): Likewise.
13178         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13179         function.  Modernize replacement scheme.
13180         (gl_PREREQ_GETGROUPS): Delete.
13181         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13182         * modules/getgroups (configure.ac): Declare witness.
13183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13184         * modules/unistd (Depends-on): Substitute witness.
13185         * lib/unistd.in.h (getgroups): Declare replacement.
13186
13187         getgroups: avoid calling exit
13188         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13189         drop xalloc.
13190         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13191         dependencies.
13192         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13193         exiting, in the rare case of malloc failure.
13194
13195         getgroups: fix logic error
13196         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13197         has more than 20 groups.
13198         * modules/getgroups-tests: New test.
13199         * tests/test-getgroups.c: New file.
13200
13201 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13202
13203         * tests/test-base64.c: Improve.
13204
13205 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13206
13207         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13208         Blake <ebb9@byu.net>.
13209
13210 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13211
13212         * tests/test-xvasprintf.c: Add %s%s related checks.
13213
13214 2009-11-12  Eric Blake  <ebb9@byu.net>
13215
13216         version-etc: match standards.texi style
13217         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13218         and use <> only for URLs.
13219
13220 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13221
13222         fts: do not fail on a submount during traversal
13223         * lib/fts.c (fts_build): Read the stat info again after opening
13224         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13225         Original report at http://bugzilla.redhat.com/501848.
13226
13227 2009-11-12  Jim Meyering  <meyering@redhat.com>
13228
13229         bootstrap: sync from coreutils
13230         * build-aux/bootstrap (bootstrap_epilogue): New function.
13231         Use git_modules_config in one more place.  This make bootstrap's
13232         --gnulib-srcdir option more useful for testing.
13233
13234         bootstrap: generalize autoheader check
13235         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13236         AC_CONFIG_HEADERS.
13237
13238 2009-11-11  Eric Blake  <ebb9@byu.net>
13239
13240         mkfifoat: use new modules for Solaris and BSD bugs
13241         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13242         * lib/mkfifoat.c (mknodat): Split...
13243         * lib/mknodat.c (mknodat): ...into new file.
13244         * modules/mkfifoat (Files): Ship new file.
13245         (Depends-on): Add mkfifo, mknod.
13246         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13247         (Depends-on): Add symlink.
13248         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13249         redundant with test_mkfifo.h.
13250         (do_mkfifoat, do_mknodat): New helpers.
13251
13252         mknod: new module
13253         * modules/mknod: New file.
13254         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13255         * lib/mknod.c (mknod): Likewise.
13256         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13257         defaults.
13258         * modules/sys_stat (Makefile.am): Substitute them.
13259         * lib/sys_stat.in.h (mknod): Declare replacement.
13260         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13261         Document it.
13262         * doc/posix-functions/mknod.texi (mknod): Likewise.
13263         * modules/mknod-tests: New test.
13264         * tests/test-mknod.c: Likewise.
13265
13266         mkfifo: new module
13267         * modules/mkfifo: New file.
13268         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13269         * lib/mkfifo.c (mkfifo): Likewise.
13270         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13271         defaults.
13272         * modules/sys_stat (Makefile.am): Substitute them.
13273         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13274         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13275         Document it.
13276         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13277         * modules/mkfifo-tests: New test.
13278         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13279         from test-mkfifoat.c.
13280         * tests/test-mkfifo.c: New file.
13281
13282         readlink: detect FreeBSD bug
13283         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13284         slash on symlink.
13285         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13286         * tests/test-readlink.h (test_readlink): Enhance test.
13287
13288         symlink: detect FreeBSD bug
13289         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13290         slash on symlink.
13291         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13292         * tests/test-symlink.h (test_symlink): Enhance test.
13293
13294 2009-11-10  Eric Blake  <ebb9@byu.net>
13295
13296         link: detect FreeBSD bug
13297         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13298         symlink.
13299         * doc/posix-functions/link.texi (link): Document the bug.
13300         * tests/test-link.h (test_link): Enhance test.
13301         * tests/test-linkat.c (main): Update caller.
13302
13303         unlink, remove: detect FreeBSD bug
13304         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13305         slash on symlink.
13306         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13307         * doc/posix-functions/remove.texi (remove): Likewise.
13308         * tests/test-unlink.h (test_unlink): Enhance test.
13309         * tests/test-remove.c (main): Likewise.
13310
13311 2009-11-09  Eric Blake  <ebb9@byu.net>
13312
13313         rename: detect FreeBSD bug
13314         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13315         slash on symlink.
13316         * modules/renameat-tests (Depends-on): Add filenamecat.
13317         * tests/test-rename.h (test_rename): Allow one more errno.
13318         * tests/test-renameat.c (main): Likewise.
13319         * doc/posix-functions/rename.texi (rename): Document the bug.
13320
13321         open: detect FreeBSD bug
13322         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13323         symlink.
13324         * doc/posix-functions/open.texi (open): Document the bug.
13325         * doc/posix-functions/utimes.texi (utimes): Likewise.
13326         * tests/test-open.h (test_open): Add parameters, and test symlink
13327         handling.
13328         * tests/test-open.c (main): Adjust caller.
13329         * tests/test-fcntl-safer.c (main): Likewise.
13330         * modules/open-tests (Depends-on): Add stdbool, symlink.
13331         * modules/fcntl-safer-tests (Depends-on): Likewise.
13332         * tests/test-openat.c (main): Add test-open tests.
13333
13334         stat: detect FreeBSD bug
13335         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13336         symlink.
13337         * doc/posix-functions/stat.texi (stat): Document the bug.
13338         * tests/test-stat.h (test_stat_func): Add argument.
13339         * tests/test-stat.c (main): Adjust caller.
13340         * tests/test-fstatat.c (main): Likewise.
13341         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13342         Reported by Jim Meyering.
13343
13344 2009-11-09  James Youngman  <jay@gnu.org>
13345
13346         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13347         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13348
13349 2009-11-08  Jim Meyering  <meyering@redhat.com>
13350
13351         utimens: remove invalid futimesat call
13352         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13353         It used the file descriptor of the target file as the DIR_FD
13354         parameter and NULL as the file name.  That caused failure with
13355         errno == EFAULT on FreeBSD-8.0-rc2
13356
13357 2009-11-07  Eric Blake  <ebb9@byu.net>
13358
13359         fflush, freadseek: use fseeko, not fseek
13360         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13361         (clear_ungetc_buffer): Avoid potential problems on large files.
13362         * lib/freadseek.c (freadseek): Likewise.
13363         * modules/freadseek (Depends-on): Add fseeko.
13364         * modules/fseek (configure.ac): Set a witness.
13365         * tests/test-fflush.c (main): Use fseeko.
13366         * tests/test-fpurge.c (fseek): Disable link warning.
13367         * tests/test-freadable.c (fseek): Likewise.
13368         * tests/test-freading.c (fseek): Likewise.
13369         * tests/test-fseeko.c (fseek): Likewise.
13370         * tests/test-ftell.c (fseek): Likewise.
13371         * tests/test-ftello.c (fseek): Likewise.
13372         * tests/test-fwritable.c (fseek): Likewise.
13373         * tests/test-fwriting.c (fseek): Likewise.
13374
13375 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13376
13377         * modules/memchr (Depends-on): Drop getpagesize dependency.
13378
13379 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13380
13381         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13382         Reported by Ludovic Courtès.
13383         * build-aux/pmccabe2html: Improve example usage.
13384         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13385
13386 2009-11-06  Jim Meyering  <meyering@redhat.com>
13387
13388         do-release-commit-and-tag: New module.
13389         Automate the release-commit and tag process.
13390         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13391         * modules/do-release-commit-and-tag: New file.
13392         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13393
13394 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13395
13396         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13397         because test-select.c uses inet_pton.
13398
13399 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13400
13401         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13402         GETADDRINFO_LIB.  Bump serial number.
13403         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13404         Suggested by Eric Blake <ebb9@byu.net>.
13405
13406 2009-11-05  Eric Blake  <ebb9@byu.net>
13407
13408         strtod: detect darwin bug
13409         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13410         Reported by Leo Davis.
13411
13412         freopen-safer: new module
13413         * modules/freopen-safer: New module.
13414         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13415         * lib/freopen-safer.c (freopen_safer): New file.
13416         * lib/stdio-safer.h (freopen_safer): New declaration.
13417         * lib/stdio--.h (freopen): New override.
13418         * MODULES.html.sh (File stream based Input/Output): Mention it.
13419         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13420         freopen-safer module.
13421         * doc/posix-functions/stderr.texi (stderr): Likewise.
13422         * doc/posix-functions/stdin.texi (stdin): Likewise.
13423         * doc/posix-functions/stdout.texi (stdout): Likewise.
13424         * modules/freopen-safer-tests: New test.
13425         * tests/test-reopen-safer.c: New file.
13426
13427 2009-11-05  Jim Meyering  <meyering@redhat.com>
13428
13429         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13430         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13431
13432 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13433
13434         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13435
13436 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13437
13438         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13439
13440 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13441
13442         Fix link error.
13443         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13444         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13445
13446 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13447
13448         * tests/test-func.c: Also test value of __func__.
13449
13450 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13451
13452         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13453         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13454
13455 2009-11-05  Bruno Haible  <bruno@clisp.org>
13456
13457         Fix link error.
13458         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13459         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13460         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13461
13462 2009-11-05  Bruno Haible  <bruno@clisp.org>
13463
13464         Tests for module 'inet_pton'.
13465         * modules/inet_pton-tests: New file.
13466         * tests/test-inet_pton.c: New file.
13467
13468 2009-11-05  Bruno Haible  <bruno@clisp.org>
13469
13470         Tests for module 'inet_ntop'.
13471         * modules/inet_ntop-tests: New file.
13472         * tests/test-inet_ntop.c: New file.
13473
13474 2009-11-04  Eric Blake  <ebb9@byu.net>
13475
13476         stdlib-safer: wrap all mkstemp variants
13477         * modules/mkostemp (configure.ac): Set witness.
13478         * modules/mkostemps (configure.ac): Likewise.
13479         * modules/mkstemps (configure.ac): Likewise.
13480         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13481         (mkstemps_safer): Wrap more functions.
13482         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13483         wrapping.
13484         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13485         (mkstemps_safer): Implement the wrappers.
13486
13487         mkstemps, mkostemps: new modules
13488         * modules/mkostemps: New module.
13489         * modules/mkstemps: Likewise.
13490         * lib/mkostemps.c (mkostemps): New file.
13491         * lib/mkstemps.c (mkstemps): Likewise.
13492         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13493         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13495         * modules/stdlib (Makefile.am): Substitute them.
13496         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13497         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13498         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13499         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13500         * MODULES.html.sh (File system functions): Mention them.
13501
13502         tempname: resync from glibc
13503         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13504         same values for __GT_FILE as glibc.  Abort even when assertions
13505         are disabled.
13506         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13507         match its value otherwise.  Allow idempotent inclusion.
13508         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13509         * lib/mkostemp.c (mkostemp): Likewise.
13510         * lib/mkstemp.c (mkstemp): Likewise.
13511         * lib/tmpfile.c (tmpfile): Likewise.
13512         * NEWS: Document this.
13513
13514         utimens: fix use of futimens on older Linux
13515         * lib/utimens.c (fdutimens): Use updated, rather than original,
13516         timespec to avoid bug in older Linux kernel.
13517         Reported by Simon Josefsson.
13518
13519 2009-11-04  Bruno Haible  <bruno@clisp.org>
13520
13521         Make num_processors more flexible and consistent.
13522         * lib/nproc.h (enum nproc_query): New type.
13523         (num_processors): Add a 'query' argument.
13524         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13525         (num_processors): Add a 'query' argument. Test the value of the
13526         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13527         mingw, count the number of CPUs available for the current process.
13528         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13529         Check for sched_getaffinity and sched_getaffinity_np.
13530         * modules/nproc (Depends-on): Add c-ctype, extensions.
13531         * NEWS: Mention the change.
13532
13533 2009-11-03  Bruno Haible  <bruno@clisp.org>
13534
13535         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13536
13537 2009-11-03  Jim Meyering  <meyering@redhat.com>
13538
13539         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13540         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13541         if it is defined.
13542
13543 2009-11-02  Eric Blake  <ebb9@byu.net>
13544
13545         mktime, timegm: share common declaration
13546         * lib/mktime-internal.h: New file.
13547         * lib/mktime.c: Use it rather than open-coding a declaration.
13548         * lib/timegm.c: Likewise.
13549         * modules/mktime (Files): Ship it.
13550         * modules/timegm (Files): Likewise.
13551         Suggested by Bruno Haible.
13552
13553         test-update-copyright: update test to match script changes
13554         * tests/test-update-copyright.sh: Avoid hard-coding perl
13555         location.  Don't update *.bak created by earlier runs.
13556
13557 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13558             Simon Josefsson  <simon@josefsson.org>
13559             Bruno Haible  <bruno@clisp.org>
13560
13561         Fix link error on Solaris 8.
13562         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13563         also in libnsl. Define also INET_PTON_LIB.
13564         * modules/inet_pton (Link): New section.
13565
13566 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13567             Bruno Haible  <bruno@clisp.org>
13568
13569         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13570         * modules/inet_ntop (Link): New section.
13571         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13572
13573 2009-11-02  Eric Blake  <ebb9@byu.net>
13574
13575         maint: avoid compiler warnings in m4 macros
13576         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13577         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13578
13579 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13580
13581         * m4/pmccabe2html.m4: Remove file.
13582         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13583         function.  Change maintainer.
13584         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13585         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13586         Courtès).
13587
13588 2009-10-31  Eric Blake  <ebb9@byu.net>
13589
13590         fseeko: fix m4 regression
13591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13592         regression from 2009-10-27.
13593         Reported by Ralf Wildenhues.
13594
13595 2009-10-31  Jim Meyering  <meyering@redhat.com>
13596
13597         inttostr: aesthetics and improved (compile-time) safety
13598         Define inttype_is_signed rather than inttype_is_unsigned,
13599         since the sole use is via "#if inttype_is_signed".
13600         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13601         inttype_is_unsigned.
13602         * lib/offtostr.c (inttype_is_signed): Likewise.
13603         * lib/uinttostr.c (inttype_is_signed): Likewise.
13604         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13605         * lib/inttostr.c (inttostr): Use verify to cross-check the
13606         inttype_is_signed value and the signedness of the actual type.
13607         * modules/inttostr (Depends-on): Add verify.
13608
13609 2009-10-30  Eric Blake  <ebb9@byu.net>
13610
13611         build: avoid compiler warnings
13612         * lib/fchmodat.c (lchmod): Mark unused variables.
13613         * lib/getopt.c (_getopt_initialize): Likewise.
13614         * lib/mktime.c (__mktime_internal): Provide prototype.
13615         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13616         older gcc that do not understand #pragma GCC diagnostic.
13617         * lib/uinttostr.c (inttype_is_unsigned): Define.
13618         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13619
13620 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13621
13622         stat: fix compilation on AIX
13623         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13624         only see struct stat64.
13625
13626 2009-10-30  Eric Blake  <ebb9@byu.net>
13627
13628         exclude: make more robust
13629         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13630         rather than masking a coding bug.
13631         Suggested by Bruno Haible.
13632
13633 2009-10-30  Jim Meyering  <meyering@redhat.com>
13634
13635         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13636         Rather than putting #!/usr/bin/perl on the first line,
13637         start with a variant of what's recommended by "man perlrun" that
13638         invokes the first "perl" program from your shell's search path.
13639         * build-aux/gitlog-to-changelog: Replace #!... as above.
13640         Add a "Local Variables" perl mode setting.
13641         Prompted by a patch from Ludovic Courtès.
13642         Improved by Eric Blake.
13643         * build-aux/useless-if-before-free: Likewise.
13644         * build-aux/announce-gen: Likewise.
13645         * build-aux/update-copyright: Likewise.
13646
13647 2009-10-29  Eric Blake  <ebb9@byu.net>
13648
13649         filenamecat-lgpl: adjust clients
13650         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13651         filenamecat.
13652         * modules/renameat (Depends-on): Likewise.
13653
13654         filenamecat: split into filenamecat-lgpl
13655         * modules/filenamecat-lgpl: New module.
13656         * modules/filenamecat (Files): Move library-safe files into
13657         filenamecat-lgpl.
13658         (Depends-on): Add filenamecat-lgpl.
13659         (configure.ac): Declare witness.
13660         * lib/filenamecat.h (file_name_concat): Only declare when using
13661         GPL module.
13662         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13663         Move...
13664         * lib/filenamecat-lgpl.c: ...into new file.
13665         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13666         (gl_FILE_NAME_CONCAT): Use it.
13667         * MODULES.html.sh (File system functions): Mention new module.
13668
13669         argp: avoid memory leak
13670         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13671         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13672         base_name, since the latter malloc()s and can call exit().
13673         Leak introduced 2006-07-03.
13674
13675         dirname-lgpl: adjust clients that don't need full dirname
13676         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13677         * modules/filenamecat (Depends-on): Likewise.
13678         * modules/linkat (Depends-on): Likewise.
13679         * modules/mkancesdirs (Depends-on): Likewise.
13680         * modules/mkdir (Depends-on): Likewise.
13681         * modules/openat (Depends-on): Likewise.
13682         * modules/savewd (Depends-on): Likewise.
13683         * modules/rename (Depends-on): Likewise.
13684         (License): Relax license.
13685         * modules/mkdir-tests (Depends-on): Drop progname.
13686         (Makefile.am): Delete unneeded LDADD.
13687         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13688
13689         dirname: split into dirname-lgpl
13690         * modules/dirname-lgpl: New module.
13691         * modules/dirname (Files): Move library-safe files into
13692         dirname-lgpl.
13693         (Depends-on): Add dirname-lgpl.
13694         (configure.ac): Declare witness.
13695         * modules/double-slash-root (License): Relax license.
13696         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13697         module.
13698         * lib/dirname.c (dir_len, mdir_name): Move...
13699         * lib/dirname-lgpl.c: ...into new file.
13700         * lib/basename.c (last_component, base_len): Move...
13701         * lib/basename-lgpl.c: ...into new file.
13702         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13703         (gl_DIRNAME): Use it.
13704         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13705         Mention new module.
13706         * modules/dirname-tests (Depends-on): Add progname.
13707         * tests/test-dirname.c (program_name): Delete.
13708
13709         mkdir: make safe for libraries
13710         * modules/mkdir (Depends-on): Drop xalloc.
13711         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13712         exit.
13713
13714         tests: avoid some compiler warnings
13715         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13716         literals.
13717         * tests/test-memchr.c (main): Avoid type mismatch.
13718         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13719         * tests/test-base64.c (main): Likewise.
13720         * tests/test-getdelim.c (main): Likewise.
13721         * tests/test-gethostname.c (main): Likewise.
13722         * tests/test-getline.c (main): Likewise.
13723         * tests/test-netinet_in.c (main): Likewise.
13724         * tests/test-select.c (open_server_socket, main): Likewise.
13725         * tests/test-select-stdin.c (main): Likewise.
13726         * tests/test-sockets.c (main): Likewise.
13727         * tests/test-strsignal.c (main): Likewise.
13728         * tests/test-sys_select.c (main): Likewise.
13729         * tests/test-sys_socket.c (main): Likewise.
13730         * tests/test-u64.c (main): Likewise.
13731         * tests/test-xfprintf-posix.c (main): Likewise.
13732         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13733
13734         sockets: avoid compiler warning
13735         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13736
13737         maint: detect usage(1) and other suspicious exits
13738         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13739
13740 2009-10-29  Jim Meyering  <meyering@redhat.com>
13741
13742         timespec: long-to-int truncation could make timespec_cmp malfunction
13743         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13744         a multiple of 2^32 nanoseconds as no difference.
13745
13746 2009-10-28  Jim Meyering  <meyering@redhat.com>
13747
13748         fprintftime: wrap macro code argument in "do {...} while(0)"
13749         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13750         cpy macro must be a statement that can be followed by a semicolon.
13751         Now that the else clause contains a comment and is hence longer
13752         than one line, I require curly braces.  That in turn requires
13753         that we wrap this code block in the standard do...while(0).
13754
13755         fprintftime: remove stray semicolon from previous change
13756         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13757
13758         fprintftime: avoid a warning about ignored fwrite return value
13759         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13760         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13761         that is unsafe.
13762         * modules/fprintftime (Depends-on): Add ignore-value.
13763
13764         exclude: avoid an unwarranted warning
13765         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13766
13767 2009-10-27  Eric Blake  <ebb9@byu.net>
13768
13769         fseek: avoid compilation failure when fflush is replaced
13770         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13771         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13772         module is in use.
13773         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13774         module is not in use; since REPLACE_FSEEK worked otherwise.
13775         (GNULIB_FTELLO): Likewise for ftell.
13776         Reported by Ian Beckwith and others.
13777
13778 2009-10-27  Bruno Haible  <bruno@clisp.org>
13779
13780         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13781         Reported by Jim Meyering.
13782
13783 2009-10-27  Jim Meyering  <jim@meyering.net>
13784             Bruno Haible  <bruno@clisp.org>
13785
13786         Avoid warning despite dropping the return value of fwrite.
13787         * lib/unicodeio.c: Include ignore-value.h.
13788         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13789         * modules/unicodeio (Depends-on): Add ignore-value.
13790
13791 2009-10-26  Eric Blake  <ebb9@byu.net>
13792
13793         areadlinkat: fix fallback path
13794         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13795         pointer and zero.
13796
13797 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13798
13799         Use a better IO block size for modern systems
13800         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13801         * lib/md2.c: Likewise.
13802         * lib/md4.c: Likewise.
13803         * lib/md5.c: Likewise.
13804         * lib/sha1.c: Likewise.
13805         * lib/sha256.c: Likewise.
13806         * lib/sha512.c: Likewise.
13807
13808 2009-10-22  Eric Blake  <ebb9@byu.net>
13809
13810         tests: avoid several compiler warnings
13811         * tests/test-getcwd.c (main): Avoid buffer underflow.
13812         * tests/test-getdate.c (main): String literals are not safe with
13813         putenv, so use setenv.  Declare unused argument.
13814         * modules/getdate-tests (Depends-on): Add setenv.
13815         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13816         problems with string literals in char *.
13817         * tests/test-hash.c (main): Avoid shadowing declaration.
13818         (insert_new): Treat string literals as char const *.
13819         * tests/test-getopt.h (test_getopt): Likewise.
13820         (getopt_loop): Alter types to minimize casting elsewhere.
13821         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13822         (test_getopt_long_posix): Likewise.
13823         (do_getopt_long): Add wrapper to minimize casting.
13824         * tests/test-atexit.c (clear_temp_file): Use void.
13825         * tests/test-areadlink-with-size.c (main): Declare unused
13826         arguments.
13827         * tests/test-areadlink.c (main): Likewise.
13828         * tests/test-areadlinkat-with-size.c (main): Likewise.
13829         * tests/test-areadlinkat.c (main): Likewise.
13830         * tests/test-canonicalize-lgpl.c (main): Likewise.
13831         * tests/test-canonicalize.c (main): Likewise.
13832         * tests/test-dirent-safer.c (main): Likewise.
13833         * tests/test-dirname.c (main): Likewise.
13834         * tests/test-dup2.c (main): Likewise.
13835         * tests/test-fchdir.c (main): Likewise.
13836         * tests/test-fcntl-h.c (main): Likewise.
13837         * tests/test-fcntl-safer.c (main): Likewise.
13838         * tests/test-fdopendir.c (main): Likewise.
13839         * tests/test-fdutimensat.c (main): Likewise.
13840         * tests/test-fflush.c (main): Likewise.
13841         * tests/test-filenamecat.c (main): Likewise.
13842         * tests/test-filevercmp.c (main): Likewise.
13843         * tests/test-fopen-safer.c (main): Likewise.
13844         * tests/test-fopen.c (main): Likewise.
13845         * tests/test-fpending.c (main): Likewise.
13846         * tests/test-fpurge.c (main): Likewise.
13847         * tests/test-freading.c (main): Likewise.
13848         * tests/test-fstatat.c (main): Likewise.
13849         * tests/test-fsync.c (main): Likewise.
13850         * tests/test-futimens.c (main): Likewise.
13851         * tests/test-getndelim2.c (main): Likewise.
13852         * tests/test-gettimeofday.c (main): Likewise.
13853         * tests/test-getopt.c (main): Likewise.
13854         * tests/test-i-ring.c (main): Likewise.
13855         * tests/test-inttypes.c (main): Likewise.
13856         * tests/test-link.c (main): Likewise.
13857         * tests/test-lstat.c (main): Likewise.
13858         * tests/test-math.c (main): Likewise.
13859         * tests/test-md5.c (main): Likewise.
13860         * tests/test-memchr2.c (main): Likewise.
13861         * tests/test-memrchr.c (main): Likewise.
13862         * tests/test-mkdir.c (main): Likewise.
13863         * tests/test-mkdirat.c (main): Likewise.
13864         * tests/test-mkfifoat.c (main): Likewise.
13865         * tests/test-open.c (main): Likewise.
13866         * tests/test-openat-safer.c (main): Likewise.
13867         * tests/test-openat.c (main): Likewise.
13868         * tests/test-quotearg.c (main): Likewise.
13869         * tests/test-rawmemchr.c (main): Likewise.
13870         * tests/test-readlink.c (main): Likewise.
13871         * tests/test-remove.c (main): Likewise.
13872         * tests/test-rename.c (main): Likewise.
13873         * tests/test-renameat.c (main): Likewise.
13874         * tests/test-rmdir.c (main): Likewise.
13875         * tests/test-sha1.c (main): Likewise.
13876         * tests/test-signal.c (main): Likewise.
13877         * tests/test-sigaction.c (main): Likewise.
13878         * tests/test-stat.c (main): Likewise.
13879         * tests/test-stat-time.c (main): Likewise.
13880         * tests/test-stddef.c (main): Likewise.
13881         * tests/test-stdint.c (main): Likewise.
13882         * tests/test-stdio.c (main): Likewise.
13883         * tests/test-stdlib.c (main): Likewise.
13884         * tests/test-strchrnul.c (main): Likewise.
13885         * tests/test-strerror.c (main): Likewise.
13886         * tests/test-string.c (main): Likewise.
13887         * tests/test-strtod.c (main): Likewise.
13888         * tests/test-strverscmp.c (main): Likewise.
13889         * tests/test-symlink.c (main): Likewise.
13890         * tests/test-symlinkat.c (main): Likewise.
13891         * tests/test-sys_stat.c (main): Likewise.
13892         * tests/test-sys_time.c (main): Likewise.
13893         * tests/test-time.c (main): Likewise.
13894         * tests/test-unistd.c (main): Likewise.
13895         * tests/test-unlink.c (main): Likewise.
13896         * tests/test-unlinkat.c (main): Likewise.
13897         * tests/test-utimens.c (main): Likewise.
13898         * tests/test-utimensat.c (main): Likewise.
13899         * tests/test-version-etc.c (main): Likewise.
13900         * tests/test-wchar.c (main): Likewise.
13901         * tests/test-wctype.c (main): Likewise.
13902         * tests/test-xprintf-posix.c (main): Likewise.
13903         * tests/test-posixtm.c (main): Likewise.
13904         (STREQ): Delete unused macro.
13905         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13906         shadowed variables.
13907         * tests/test-memchr.c (main): Likewise.
13908
13909 2009-10-21  Eric Blake  <ebb9@byu.net>
13910
13911         areadlinkat: avoid failure on older glibc
13912         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13913         rather than mis-comparing 0 against FUNC_RESULT of char*.
13914
13915 2009-10-21  Bruno Haible  <bruno@clisp.org>
13916
13917         * modules/stpncpy (License): Relicense under LGPLv2+.
13918         Reported by David Lutterkort <lutter@redhat.com>.
13919
13920 2009-10-20  Eric Blake  <ebb9@byu.net>
13921
13922         utimensat: work around Solaris 9 bug
13923         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13924         has trailing slash bugs.
13925         * tests/test-lutimens.h (test_lutimens): Enhance test.
13926         * tests/test-utimens.h (test_utimens): Likewise.
13927         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13928         * doc/posix-functions/utimes.texi (utimes): Likewise.
13929         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13930         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13931         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13932         * doc/posix-functions/futimens.texi (futimens): Likewise.
13933
13934         fdutimensat: new module
13935         * modules/fdutimensat: New file.
13936         * lib/fdutimensat.c (fdutimensat): Likewise.
13937         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13938         * MODULES.html.sh (File system functions): Mention module.
13939         * modules/fdutimensat-tests: New test.
13940         * tests/test-fdutimensat.c: Likewise.
13941
13942         doc: regenerate INSTALL
13943         * doc/INSTALL: Reflect recent autoconf update.
13944         * doc/INSTALL.ISO: Likewise.
13945         * doc/INSTALL.UTF-8: Likewise.
13946
13947 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13948
13949         acl: warn if ACL support is not detected
13950         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13951
13952 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13953
13954         * lib/nproc.h: Add extern "C" block for C++.
13955
13956 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
13957             Bruno Haible  <bruno@clisp.org>
13958
13959         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
13960         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
13961         * doc/posix-functions/isalpha.texi: Likewise.
13962         * doc/posix-functions/isblank.texi: Likewise.
13963         * doc/posix-functions/iscntrl.texi: Likewise.
13964         * doc/posix-functions/isdigit.texi: Likewise.
13965         * doc/posix-functions/isgraph.texi: Likewise.
13966         * doc/posix-functions/islower.texi: Likewise.
13967         * doc/posix-functions/isprint.texi: Likewise.
13968         * doc/posix-functions/ispunct.texi: Likewise.
13969         * doc/posix-functions/isspace.texi: Likewise.
13970         * doc/posix-functions/isupper.texi: Likewise.
13971         * doc/posix-functions/isxdigit.texi: Likewise.
13972
13973 2009-10-18  Bruno Haible  <bruno@clisp.org>
13974
13975         Tests for module 'isblank'.
13976         * modules/isblank-tests: New file.
13977         * tests/test-isblank.c: New file.
13978
13979         New module 'isblank'.
13980         * lib/isblank.c: New file.
13981         * m4/isblank.m4: New file.
13982         * modules/isblank: New file.
13983         * doc/posix-functions/isblank.texi: Mention the new module.
13984
13985 2009-10-18  Bruno Haible  <bruno@clisp.org>
13986
13987         New module 'ctype'.
13988         * lib/ctype.in.h: New file.
13989         * m4/ctype.m4: New file.
13990         * modules/ctype: New file.
13991         * doc/posix-headers/ctype.texi: Mention the new module.
13992
13993 2009-10-18  Jim Meyering  <meyering@redhat.com>
13994
13995         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
13996         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
13997         right after its initialization, rather than farther down.
13998         Keeping these in close proximity makes it easier to ensure
13999         that each such variable is initialized.  E.g.,
14000
14001             LIB_CLOCK_GETTIME=
14002             AC_SUBST([LIB_CLOCK_GETTIME])
14003
14004         This change also increments these serial numbers.
14005         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14006         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14008
14009 2009-10-18  Bruno Haible  <bruno@clisp.org>
14010
14011         Don't let environment variables perturb build.
14012         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14013         (gl_PREREQ_GETHRXTIME): ... not here.
14014
14015 2009-10-18  Bruno Haible  <bruno@clisp.org>
14016
14017         Avoid symlink attack in localcharset module.
14018         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14019         (O_NOFOLLOW): Define fallback.
14020         (get_charset_aliases): Don't open the file if it is a symbolic link.
14021         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14022         gl_FCNTL_H.
14023         (gl_FCNTL_H): Require it.
14024         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14025         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14026         Reported by Fergal Glynn <fglynn@veracode.com>.
14027
14028 2009-10-18  Bruno Haible  <bruno@clisp.org>
14029
14030         Implement nproc for mingw.
14031         * lib/nproc.c: Include <windows.h>
14032         (num_processors): On native Windows platforms, try GetSystemInfo.
14033
14034 2009-10-18  Bruno Haible  <bruno@clisp.org>
14035
14036         Implement nproc for IRIX.
14037         * lib/nproc.c: Include <sys/sysmp.h>.
14038         (num_processors): On IRIX systems, try sysmp.
14039         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14040
14041 2009-10-18  Bruno Haible  <bruno@clisp.org>
14042
14043         Implement nproc for HP-UX.
14044         * lib/nproc.c: Include <sys/pstat.h>
14045         (num_processors): On HP-UX systems, try pstat_getdynamic.
14046         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14047         pstat_getdynamic.
14048
14049 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14050             Bruno Haible  <bruno@clisp.org>
14051
14052         Implement nproc for NetBSD, OpenBSD.
14053         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14054         (ARRAY_SIZE): New macro.
14055         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14056         * m4/nproc.m4: New file.
14057         * modules/nproc (Files): Add m4/nproc.m4.
14058         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14059         (Makefile.am): Instead, augment lib_SOURCES.
14060
14061 2009-10-18  Bruno Haible  <bruno@clisp.org>
14062
14063         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14064         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14065         sys/param.h.
14066
14067 2009-10-16  Eric Blake  <ebb9@byu.net>
14068
14069         utimensat: new module
14070         * modules/utimensat: New file.
14071         * lib/utimensat.c (utimensat): Likewise.
14072         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14073         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14074         so we can work around Linux bugs.
14075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14076         * modules/sys_stat (Makefile.am): Substitute them.
14077         * lib/sys_stat.in.h (utimensat): Declare it.
14078         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14079         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14080         * modules/utimensat-tests: New test.
14081         * tests/test-utimensat.c: Likewise.
14082
14083         utimens: let lutimens work on non-symlinks
14084         * lib/utimens.c (lutimens): Fall back to utimens rather than
14085         failing with ENOSYS, when file is not a symlink.
14086         (utimens): Reduce redirection.
14087         * tests/test-lutimens.h (test_lutimens): Update test to cover
14088         non-symlinks.
14089         * tests/test-utimens.h (test_utimens): Update test to cover
14090         symlinks.
14091         * tests/test-utimens.c (main): Update caller.
14092
14093         utimens: cache whether utimensat syscall works
14094         * lib/utimens.c (utimensat_works_really): New cache variable.
14095         (fdutimens, lutimens): Use it to avoid failing syscall.
14096
14097         test-stat-time, test-utimens: improve portability
14098         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14099         ext4 on alpha, and for cygwin.
14100         * tests/test-utimens-common.h: New file.
14101         (nap): Factor delays into single function.
14102         * tests/test-lutimens.h (test_lutimens): Use new header.
14103         * tests/test-futimens.h (test_futimens): Likewise.
14104         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14105         timestamps to occur from same machine, as was done previously for
14106         test_utimens.
14107         * modules/utimens-tests (Files): Ship new file.
14108         * modules/futimens-tests (Files): Likewise.
14109         Reported in part by Jim Meyering.
14110
14111         sys_stat: sort replacement declarations
14112         * lib/sys_stat.in.h: Sort declarations.
14113         * lib/futimens.c (futimens): Fix typo.
14114
14115 2009-10-15  Jim Meyering  <meyering@redhat.com>
14116
14117         don't let environment settings perturb build
14118         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14119         could cause a configure-time and/or build-time malfunction.
14120         Typically, a configure-time function-in-library test is performed
14121         via code like this:
14122
14123           LIB_VAR=
14124           AC_SUBST([LIB_VAR])
14125           prefix_saved_LIBS=$LIBS
14126             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14127                        [test "$ac_cv_search_FUNC" = "none required" ||
14128                         LIB_VAR=$ac_cv_search_FUNC])
14129           LIBS=$prefix_saved_LIBS
14130
14131         However, in each of the files affected by this change, the LIB_VAR=
14132         initialization was omitted.  Thus, when set in the environment, its
14133         value would propagate into generated Makefiles when FUNC is not found
14134         in LIB_NAME.
14135         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14136         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14138
14139 2009-10-14  Eric Blake  <ebb9@byu.net>
14140
14141         fchdir: avoid infinite recursion in mingw
14142         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14143         recursing.
14144
14145         test-stat-time: port to mingw
14146         * tests/test-stat-time.c (force_unlink): Return a value.
14147         (test_ctime) [W32]: Fix compilation error.
14148         (nap): Don't call usleep with too large an argument.  Use
14149         force_unlink.
14150         * doc/pastposix-functions/usleep.texi (usleep): Document the
14151         portability issue.
14152
14153 2009-10-13  Jim Meyering  <meyering@redhat.com>
14154
14155         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14156         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14157         * modules/pipe-filter-ii: Likewise.
14158         * modules/sys_socket-tests: Likewise.
14159         * modules/tsearch-tests: Likewise.
14160         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14161         (check): Depend on it.
14162
14163 2009-10-12  Eric Blake  <ebb9@byu.net>
14164
14165         utimens-tests: port to NFS file systems
14166         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14167         comparisons to avoid spurious failures from timestamp drift
14168         between NFS machines.
14169
14170 2009-10-12  Eric Blake  <ebb9@byu.net>
14171
14172         stat-time-tests: minor cleanups
14173         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14174         * tests/test-stat-time.c (nap): Separate assignment from call.
14175         Suggested by Paolo Bonzini and Bruno Haible.
14176
14177         sys_stat: guarantee struct timespec
14178         * lib/sys_stat.in.h (includes): Always include <time.h>
14179         * modules/sys_stat (Depends-on): Add time.
14180         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14181         mode_t permission values.
14182         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14183         get at subsecond timestamps.
14184
14185 2009-10-10  Eric Blake  <ebb9@byu.net>
14186
14187         futimens: new module
14188         * modules/futimens: New file.
14189         * lib/futimens.c (futimens): Likewise.
14190         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14191         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14192         we can work around Linux bugs.
14193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14194         * modules/sys_stat (Makefile.am): Substitute them.
14195         * lib/sys_stat.in.h (futimens): Declare it.
14196         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14197         * doc/posix-functions/futimens.texi (futimens): Likewise.
14198         * modules/futimens-tests: New test.
14199         * tests/test-futimens.c: Likewise.
14200
14201         utimens: introduce fdutimens
14202         * lib/utimens.h (fdutimens): New prototype.
14203         * lib/utimens.c (gl_futimens): Move guts...
14204         (fdutimens): ...to new interface.
14205         * tests/test-utimens.c (do_fdutimens): Use it.
14206
14207         utimens: add UTIME_NOW and UTIME_OMIT support
14208         * lib/utimens.c (validate_timespec, update_timespec): New helper
14209         functions.
14210         (gl_futimens, lutimens): Use them.
14211         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14212         stdbool, sys_stat.
14213         (Link): Mention resulting library dependency.
14214         * modules/utimecmp (Link): Likewise.
14215         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14216         (Makefile.am): Pick up library dependency.
14217         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14218         definition.
14219         * tests/test-sys_stat.c: Test the definitions.
14220         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14221         * NEWS: Document library dependency.
14222
14223         utimecmp: support symlink timestamps
14224         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14225         hashing when possible.  Use pathconf when available.
14226         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14227         * modules/utimecmp (Depends-on): Add lstat.
14228
14229         utimens: add lutimens interface
14230         * lib/utimens.c (lutimens): New function.
14231         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14232         * lib/utimens.h (lutimens): Declare new interface.
14233         * tests/test-utimens.c (main): Enhance test.
14234         * tests/test-lutimens.h (test_lutimens): New file.
14235         * modules/utimens-tests (Files): Distribute it.
14236         (Depends-on): Add symlink.
14237         (configure.ac): Check for usleep.
14238
14239         utimens: validate futimens usage
14240         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14241         fewer syscalls on failure later on.  Avoid compiler warning on
14242         mingw.
14243         * modules/utimens (Depends-on): Add dup2.
14244
14245         utimens: add test
14246         * modules/utimens-tests: New test.
14247         * tests/test-utimens.h: New file.
14248         * tests/test-futimens.h: Likewise.
14249         * tests/test-utimens.c: Likewise.
14250
14251         doc: mention timestamp portability issues
14252         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14253         instead.
14254         * doc/posix-functions/utime.texi (utime): Likewise.
14255         * doc/posix-functions/utimes.texi (utimes): Likewise.
14256         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14257         instead.
14258         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14259         module.
14260         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14261         Mention weakness with symlink timestamps.
14262         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14263         to utimensat/futimens instead.
14264         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14265
14266         test-dup2: enhance test
14267         * tests/test-dup2.c (main): Also check AT_FDCWD.
14268
14269         test-stat-time: avoid more spurious failures
14270         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14271         xfs; and avoid race if the two timestamps cross quantization edge.
14272
14273         relocatable: prefer 'file system' over 'filesystem'
14274         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14275         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14276         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14277         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14278         * lib/relocatable.c (compute_curr_prefix): Likewise.
14279
14280 2009-10-10  Jim Meyering  <meyering@redhat.com>
14281
14282         stat-time-tests: check for the usleep function
14283         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14284
14285 2009-10-10  Bruno Haible  <bruno@clisp.org>
14286
14287         * modules/xnanosleep: Put the Link section after the Include section.
14288
14289 2009-10-09  Eric Blake  <ebb9@byu.net>
14290
14291         dup2: work around FreeBSD 6.1 bug
14292         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14293         * doc/posix-functions/dup2.texi (dup2): Document it.
14294         Reported by Nelson H. F. Beebe and Jim Meyering.
14295
14296         test-stat-time: port to buggy NFS clients
14297         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14298         (test_ctime): Also skip test if mtime and ctime are skewed.
14299
14300         maint: prefer 'file system' over 'filesystem'
14301         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14302         * doc/posix-functions/lstat.texi (lstat): Likewise.
14303         * lib/file-has-acl.c (file_has_acl): Likewise.
14304         * lib/fwriteerror.c [TEST]: Likewise.
14305         * tests/test-areadlink.h (test_areadlink): Likewise.
14306         * tests/test-areadlinkat-with-size.c (main): Likewise.
14307         * tests/test-areadlinkat.c (main): Likewise.
14308         * tests/test-canonicalize-lgpl.c (main): Likewise.
14309         * tests/test-canonicalize.c (main): Likewise.
14310         * tests/test-fstatat.c (main): Likewise.
14311         * tests/test-linkat.c (main): Likewise.
14312         * tests/test-lstat.h (test_lstat_func): Likewise.
14313         * tests/test-mkdir.h (test_mkdir): Likewise.
14314         * tests/test-readlink.h (test_readlink): Likewise.
14315         * tests/test-remove.c (main): Likewise.
14316         * tests/test-rename.h (test_rename): Likewise.
14317         * tests/test-renameat.c (main): Likewise.
14318         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14319         * tests/test-symlink.h (test_symlink): Likewise.
14320         * tests/test-symlinkat.c (main): Likewise.
14321         * tests/test-unlink.h (test_unlink_func): Likewise.
14322         * tests/test-unlinkat.c (main): Likewise.
14323
14324         maint: make realtime library usage explicit
14325         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14326         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14327         * modules/settime (Link): Likewise.
14328         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14329
14330         test-stat-time: speed up execution
14331         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14332         warning on mingw.
14333         (nap): New helper function.
14334         (prepare_test): Use it to reduce sleep time.
14335         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14336         execution.
14337         * modules/stat-time-tests (configure.ac): Check for usleep.
14338
14339 2009-10-09  Jim Meyering  <meyering@redhat.com>
14340
14341         selinux-h: always use getfilecon wrappers
14342         * lib/getfilecon.c: New file.
14343         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14344         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14345         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14346         (fgetfilecon): Provide a stub.
14347         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14348         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14349         file unconditionally.
14350         When <selinux/selinux.h> is found, arrange to use wrappers.
14351         * modules/selinux-h (Files): Add getfilecon.c.
14352         (Makefile.am): Substitute include-next-related bits
14353         into the now-always-generated selinux/selinux.h file.
14354         * doc/glibc-functions/lgetfilecon.texi: New file.
14355         * doc/glibc-functions/fgetfilecon.texi: New file.
14356         * doc/glibc-functions/getfilecon.texi: New file.
14357         * doc/glibc-functions/getfilecon-desc.texi: New file.
14358         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14359         which to pull in the new files.
14360         * MODULES.html.sh (Misc): Add selinux-h.
14361
14362 2009-10-08  Jim Meyering  <meyering@redhat.com>
14363
14364         unistd: fix comment typo
14365         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14366
14367 2009-10-08  Eric Blake  <ebb9@byu.net>
14368
14369         areadlink: use SIZE_MAX consistently
14370         * modules/areadlink (Depends-on): Add stdint.
14371         * modules/areadlink-with-size (Depends-on): Likewise.
14372         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14373         gives NULL; drop sys/types, since unistd gives size_t; and add
14374         stdint for SIZE_MAX.
14375         (SIZE_MAX): Rely on headers.
14376         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14377         and add stdint.
14378         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14379         (SIZE_MAX): Likewise.
14380         (INITIAL_BUF_SIZE): Turn into enum.
14381         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14382
14383 2009-10-08  Jim Meyering  <meyering@redhat.com>
14384
14385         areadlinkat: avoid compilation failure
14386         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14387         Fix typo in comment.
14388
14389 2009-10-07  Eric Blake  <ebb9@byu.net>
14390
14391         areadlinkat-with-size: new module
14392         * modules/areadlinkat-with-size: New module.
14393         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14394         * lib/areadlink.h (areadlinkat): Declare it.
14395         * MODULES.html.sh (File system functions): Mention it.
14396         * modules/areadlinkat-with-size-tests: New test.
14397         * tests/test-areadlinkat-with-size.c: New file.
14398
14399         xreadlinkat: new module
14400         * modules/xreadlinkat: New module.
14401         * lib/xreadlinkat.c (xreadlinkat): New file.
14402         * lib/xreadlink.h (xreadlinkat): Declare it.
14403         * MODULES.html.sh (File system functions): Mention it.
14404
14405         areadlinkat: new module
14406         * lib/at-func.c (FUNC_FAIL): New define.
14407         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14408         * modules/areadlinkat: New module.
14409         * lib/linkat.c (areadlinkat): Move...
14410         * lib/areadlinkat.c (areadlinkat): ...to new file.
14411         * lib/areadlink.h (areadlinkat): Declare it.
14412         * modules/linkat (Depends-on): Add areadlinkat.
14413         * MODULES.html.sh (File system functions): Mention it.
14414         * modules/areadlinkat-tests: New test.
14415         * tests/test-areadlinkat.c: New file.
14416
14417         areadlink, areadlink-with-size: add tests
14418         * modules/areadlink-tests: New test.
14419         * modules/areadlink-with-size-tests: Likewise.
14420         * tests/test-areadlink.h: New file.
14421         * tests/test-areadlink.c: Likewise.
14422         * tests/test-areadlink-with-size.c: Likewise.
14423
14424         maint: minor cleanups
14425         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14426         _UNUSED_PARAMETER_ instead.
14427         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14428         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14429         * modules/linkat-tests (Files): Distribute test-link.h.
14430
14431         openat, utimens: whitespace cleanup
14432         * lib/openat.c: Prefer space throughout, rather than mix of 8
14433         spaces vs. tabs.
14434         * lib/at-func.c: Likewise.
14435         * lib/utimens.c: Likewise.
14436
14437         openat: avoid using wrong fd
14438         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14439         working directory chooses same fd.
14440         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14441
14442         mkdir, mkdirat: fix cygwin 1.5.x bug
14443         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14444         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14445         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14446         bug.
14447         (gl_PREREQ_MKDIR): Delete unused macro.
14448         * modules/mkdir (Files): Track file rename.
14449         (configure.ac): Update macro name.
14450         * modules/openat (Depends-on): Add mkdir.
14451         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14452
14453         mkdir, mkdirat: add tests
14454         * modules/mkdir-tests: New test.
14455         * tests/test-mkdir.h: New file.
14456         * tests/test-mkdir.c: Likewise.
14457         * tests/test-mkdirat.c: Likewise.
14458         * modules/openat-tests (Files): Add new files.
14459         (Makefile.am): Run new test.
14460
14461 2009-10-06  Eric Blake  <ebb9@byu.net>
14462
14463         doc: tweak *at function documentation
14464         * doc/posix-functions/faccessat.texi (faccessat): Mention
14465         known issue with replacement.
14466         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14467         * doc/posix-functions/linkat.texi (linkat): Likewise.
14468         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14469         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14470         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14471         * doc/posix-functions/renameat.texi (renameat): Likewise.
14472         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14473
14474         openat: fix GNU/Hurd bug in unlinkat
14475         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14476         broken.
14477         * doc/posix-functions/unlink.texi (unlink): Document this.
14478         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14479
14480         fdopendir: fix GNU/Hurd bug
14481         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14482         allowing non-directory fds.
14483         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14485         * modules/dirent (Makefile.am): Substitute it.
14486         * lib/dirent.in.h (fdopendir): Declare replacement.
14487         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14488         * tests/test-fdopendir.c (main): Test something other than
14489         /dev/null, since on Hurd that behaves like a directory.
14490
14491         test-symlink: port to GNU/Hurd
14492         * tests/test-symlink.h (test_symlink): Relax expected errno.
14493
14494         doc: tweak more cygwin information
14495         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14496         now compatible with glibc.
14497         * doc/posix-functions/getopt.texi (getopt): Likewise.
14498
14499         getopt-gnu: add another test
14500         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14501         guarantee behavior relied on by m4.
14502         * tests/test-getopt.c (main): Use it.
14503         * modules/getopt-posix-tests (Depends-on): Add setenv.
14504         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14505
14506         getopt: fix compilation on darwin
14507         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14508         include.
14509         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14510         Reported by Ludovic Courtès.
14511
14512 2009-10-06  Bruno Haible  <bruno@clisp.org>
14513
14514         * modules/size_max (Description): Discourage its use.
14515         Reported by Simon Josefsson.
14516
14517 2009-10-06  Jim Meyering  <meyering@redhat.com>
14518
14519         linkat: avoid compilation failure
14520         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14521
14522 2009-10-05  Eric Blake  <ebb9@byu.net>
14523
14524         linkat: support Linux 2.6.17
14525         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14526         linkat on Linux, but allow cache variable override.
14527         * lib/linkat.c (rpl_linkat): Define override.
14528         * modules/linkat (Depends-on): Add symlinkat.
14529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14530         * modules/unistd (Makefile.am): Substitute it.
14531         * lib/unistd.in.h (linkat): Declare replacement.
14532         Reported by Pádraig Brady.
14533
14534         quotearg: port test to systems with C.UTF-8 locale
14535         * tests/test-quotearg.c (struct result_strings): Add another
14536         member, differentiating between C.ASCII and C.UTF-8 handling.
14537         (compare_strings): Add parameter.
14538         (main): Adjust all callers.
14539
14540         getopt: avoid clash with FreeBSD _getopt_internal
14541         * lib/getopt.in.h (_getopt_internal): Override the name.
14542         * lib/getopt_int.h (includes): Pick up any overrides.
14543         Reported by Reuben Thomas.
14544
14545         hash: allow C89 compilation
14546         * lib/hash.c (check_tuning): Move declaration before statement.
14547         Reported by Reuben Thomas.
14548
14549 2009-10-05  Karl Berry  <karl@gnu.org>
14550
14551         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14552
14553 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14554             Bruno Haible  <bruno@clisp.org>
14555
14556         * lib/uname.c (uname): Use a table-driven algorithm to compute
14557         Windows NT versions.
14558
14559 2009-10-04  Bruno Haible  <bruno@clisp.org>
14560
14561         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14562         program_invocation_short_name.
14563         * modules/progname (configure.ac): Test for presence of
14564         program_invocation_short_name.
14565         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14566
14567 2009-10-04  Bruno Haible  <bruno@clisp.org>
14568
14569         * lib/progname.c (set_program_name): Fix comment.
14570         Reported by Jim Meyering.
14571
14572 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14573             Bruno Haible  <bruno@clisp.org>
14574
14575         * lib/uname.c: Include <string.h>.
14576         (uname): Do only one call to GetVersionEx in the common case.
14577
14578 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14579             Bruno Haible  <bruno@clisp.org>
14580
14581         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14582         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14583         (uname): Add support for Windows CE and various non-x86 CPU types.
14584
14585 2009-10-03  Bruno Haible  <bruno@clisp.org>
14586
14587         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14588         invocation to tests/configure.ac.
14589         Reported by Ian Beckwith <ianb@erislabs.net>.
14590
14591 2009-10-02  Eric Blake  <ebb9@byu.net>
14592
14593         fchdir: avoid compiler warning
14594         * lib/fchdir.c (canonicalize_file_name)
14595         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14596
14597         test-open: support mingw errno values
14598         * tests/test-open.h (test_open): Relax test.
14599         * tests/test-fopen.h (test_fopen): Likewise.
14600         * tests/test-openat-safer.c (main): Likewise.
14601
14602         open: fix opening directory on mingw
14603         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14604
14605         test-open: on GNU/Hurd, /dev/null is a directory
14606         * tests/test-fopen.h (main): Rename...
14607         (test_fopen): ...to this.  Use a guaranteed non-directory when
14608         confirming open behavior on trailing slash.
14609         * tests/test-openat-safer.c (main): Likewise.
14610         * tests/test-open.h (main): Likewise....
14611         (test_open): ...to this.
14612         * tests/test-fopen.c (main): Adjust caller.
14613         * tests/test-fopen-safer.c (main): Likewise.
14614         * tests/test-open.c (main): Likewise.
14615         * tests/test-fcntl-safer.c (main): Likewise.
14616         Reported by Samuel Thibault.
14617
14618         rename, fchdir: don't ignore chdir failure
14619         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14620         * lib/rename.c (rpl_rename) [W32]: Likewise.
14621         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14622         an empty destination directory if source cannot be renamed,
14623         although there is still possibility for failure.
14624         * doc/posix-functions/rename.texi (rename): Document the race.
14625         Reported by Jim Meyering.
14626
14627         maint: cleanup whitespace in recent commits
14628         * lib/rename.c (rpl_rename): Remove tabs.
14629         * tests/test-link.h (test_link): Likewise.
14630         * lib/fchdir.c (get_name): Likewise.
14631         Reported by Jim Meyering.
14632
14633 2009-10-02  Ben Pfaff  <blp@gnu.org>
14634
14635         relocatable-prog-wrapper: Add missing dependency on
14636         double-slash-root.
14637         * modules/relocatable-prog-wrapper: Add dependency.
14638         Reported by Ian Beckwith <ianb@erislabs.net>.
14639
14640 2009-10-02  Eric Blake  <ebb9@byu.net>
14641
14642         renameat: fix Solaris bugs
14643         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14644         needed fixing.
14645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14646         * modules/stdio (Makefile.am): Substitute it.
14647         * lib/stdio.in.h (renameat): Declare replacement.
14648         * lib/renameat.c (rpl_renameat): Implement fix.
14649
14650         renameat: new module
14651         * modules/renameat: New file.
14652         * lib/renameat.c (renameat): Likewise.
14653         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14655         * modules/stdio (Makefile.am): Substitute them.
14656         * lib/stdio.in.h (renameat): Declare it.
14657         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14658         * doc/posix-functions/renameat.texi (renameat): Likewise.
14659         * modules/renameat-tests: New test.
14660         * tests/test-renameat.c: Likewise.
14661
14662         rename: fix mingw bugs
14663         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14664         directory overwrite bugs.
14665
14666         rename: fix another cygwin 1.5 bug
14667         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14668         checks.
14669         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14670         unnecessary cygwin workarounds.  Also work around bug with moving
14671         full directory onto an empty one.
14672         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14673
14674         rename-dest-slash: merge into rename module
14675         * modules/rename-dest-slash (Status): Mark obsolete.
14676         (Depends-on): Add rename.
14677         (Files): Let rename do it all.
14678         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14679         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14680         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14681         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14682         * lib/rename.c (rpl_rename): Update comments.
14683
14684         rename: fix cygwin 1.5.x bugs
14685         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14686         * lib/rename.c (rpl_rename): Work around them.
14687         * modules/rename (Depends-on): Add same-inode.
14688
14689         rename: fix Solaris 10 bug
14690         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14691         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14692         was the only bug.
14693
14694         rename: fix Solaris 9 bug
14695         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14696         on non-directory.  Avoid calling exit.
14697         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14698         strdup.
14699         * modules/rename-tests (Depends-on): Drop lstat.
14700         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14701         (gl_PREREQ_RENAME): Delete unused macro.
14702
14703         rename-dest-slash: fix NetBSD bug
14704         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14705         links.
14706         * modules/rename-dest-slash (Depends-on): Add same-inode.
14707
14708         rename-tests: new test, exposes several platform bugs
14709         * modules/rename-tests: New file.
14710         * tests/test-rename.h: Likewise.
14711         * tests/test-rename.c: Likewise.
14712         * doc/posix-functions/rename.texi (rename): Improve documentation,
14713         including bugs that will eventually be fixed in gnulib.
14714
14715 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14716
14717         * lib/uname.c: Include <stdlib.h>
14718         (uname): Assume version info is available.
14719
14720 2009-10-02  Jim Meyering  <meyering@redhat.com>
14721
14722         gnu-web-doc-update: correct --help output
14723         * build-aux/gnu-web-doc-update: Make --help output relevant.
14724
14725         gnu-web-doc-update: add standard options
14726         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14727
14728         gnu-web-doc-update: New module.
14729         Use this script to automatically update the on-line web documentation
14730         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14731         * modules/gnu-web-doc-update: New file, from coreutils.
14732         * build-aux/gnu-web-doc-update: New script.
14733
14734 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14735
14736         link: LoadLibrary is not needed.
14737         * lib/link.c: Use GetModuleHandle.
14738
14739 2009-10-01  Eric Blake  <ebb9@byu.net>
14740
14741         getopt: bump serial number
14742         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14743         change.
14744
14745         tests: tighten link, rmdir, and remove tests
14746         * tests/test-link.h (includes): No need to use <config.h> here.
14747         Clean up if directory hard link was created, otherwise test for
14748         trailing '.'.
14749         * tests/test-linkat.c (main): Simplify.
14750         * tests/test-remove.c (main): Enhance test for trailing '.'.
14751         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14752
14753 2009-10-01  Jim Meyering  <meyering@redhat.com>
14754
14755         maint.mk: requiring "make major" was annoying, for a "minor" release.
14756         What is intended is "stable", to contrast with alpha and beta,
14757         so require "make stable", not "make major".
14758         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14759         (get_tool_versions): Likewise.
14760         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14761
14762 2009-09-30  Ben Pfaff  <blp@gnu.org>
14763
14764         Fix broken build of replacement for Windows tmpfile().
14765         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14766         flags argument added along with the 'mkostemp' module.
14767
14768 2009-09-28  Bruno Haible  <bruno@clisp.org>
14769
14770         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14771         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14772         to 'remove_elt'.
14773         (gl_list_remove): Update.
14774         * lib/gl_list.c (gl_list_remove): Update.
14775         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14776         to 'remove_elt'.
14777         (gl_oset_remove): Update.
14778         * lib/gl_list.c (gl_oset_remove): Update.
14779         Reported by Eric Blake.
14780
14781 2009-09-28  Eric Blake  <ebb9@byu.net>
14782
14783         doc: mention yet more cygwin 1.7 status
14784         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14785         cygwin.
14786         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14787         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14788
14789         argp: fix test failure
14790         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14791         that are not upper-case.  Pass correct range to tolower.
14792
14793 2009-09-27  Jim Meyering  <meyering@redhat.com>
14794
14795         test-yesno: work around sparc-dash here-document infelicity
14796         Without this change, the literal \177 byte in a here document
14797         would make dash 0.5.5.1-3 access uninitialized memory.
14798         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14799         Instead, use a marker, "@", and filter through tr to create the desired
14800         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14801
14802 2009-09-27  Bruno Haible  <bruno@clisp.org>
14803
14804         Disable untested support for new flavours of ACLs on AIX.
14805         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14806         progress.
14807         * lib/set-mode-acl.c (qset_acl): Likewise.
14808
14809 2008-12-07  Bruno Haible  <bruno@clisp.org>
14810
14811         Add support for new flavours of ACLs on AIX. (Untested.)
14812         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14813         (file_has_acl): Add support for newer AIX.
14814         * lib/set-mode-acl.c (qset_acl): Likewise.
14815         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14816         Rainer Tammer <tammer@tammer.net>.
14817
14818 2009-09-26  Eric Blake  <ebb9@byu.net>
14819
14820         argp: fix compilation of getopt
14821         * lib/getopt.in.h (includes): Use different guard than glibc.
14822         Reported by Sergey Poznyakoff.
14823
14824         doc: mention more cygwin 1.7 status
14825         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14826         bug.
14827         * doc/posix-functions/execl.texi (execl): Likewise.
14828         * doc/posix-functions/execle.texi (execle): Likewise.
14829         * doc/posix-functions/execlp.texi (execlp): Likewise.
14830         * doc/posix-functions/execv.texi (execv): Likewise.
14831         * doc/posix-functions/execve.texi (execve): Likewise.
14832         * doc/posix-functions/execvp.texi (execvp): Likewise.
14833         * doc/glibc-functions/canonicalize_file_name.texi
14834         (canonicalize_file_name): Cygwin 1.7 now provides this.
14835         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14836         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14837         on AT_SYMLINK_NOFOLLOW.
14838
14839 2009-09-24  Eric Blake  <ebb9@byu.net>
14840
14841         test-linkat: make test more robust
14842         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14843
14844         getopt: fix inclusion guards for cygwin
14845         * modules/getopt-posix (Depends-on): Add include-next.
14846         (Makefile.am): Substitute more items in replacement header.
14847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14848         <getopt.h>.
14849         * lib/getopt.in.h (includes): Use split inclusion guard, and
14850         prefer <getopt.h> over include <unistd.h> when one is present.
14851         (option): Also override name of 'struct option'.
14852
14853         same-inode: revert prior change; it is not yet ready
14854         * NEWS: Undo mention of this change.
14855         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14856         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14857         * lib/cycle-check.c (cycle_check): Likewise.
14858         * lib/same.c (same_name): Likewise.
14859         * lib/at-func2.c (at_func2): Likewise.
14860
14861 2009-09-23  Eric Blake  <ebb9@byu.net>
14862
14863         linkat: new module
14864         * modules/linkat: New file.
14865         * lib/at-func2.c (at_func2): Likewise.
14866         * lib/linkat.c (linkat): Likewise.
14867         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14868         * lib/openat-priv.h (at_func2): Add declaration.
14869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14870         * modules/unistd (Makefile.am): Substitute them.
14871         * lib/unistd.in.h (linkat): Declare it.
14872         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14873         * doc/posix-functions/linkat.texi (linkat): Likewise.
14874         * doc/posix-functions/link.texi (link): Tweak wording.
14875         * tests/test-link.c (main): Move guts...
14876         * tests/test-link.h (test_link): ...into new file.
14877         * modules/linkat-tests: New test.
14878         * tests/test-linkat.c: Likewise.
14879         * modules/link-tests (Files): Ship new file.
14880         (Depends-on): Add stdbool.
14881
14882         dirname: add library-safe mdir_name
14883         * lib/dirname.h (mdir_name): New prototype.
14884         * lib/dirname.c (dir_name): Move guts...
14885         (mdir_name): ...to new function that avoids xalloc_die.
14886
14887         fchdir: another mingw fix
14888         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14889         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14890         on mingw (where it has not yet been ported), and make it optional
14891         elsewhere.
14892         (_gl_register_fd): Use it.
14893
14894         same-inode: make SAME_INODE tri-state, to port to mingw
14895         * NEWS: Mention this change.
14896         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14897         st_ino always being 0.
14898         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14899         * lib/cycle-check.c (cycle_check): Likewise.
14900         * lib/same.c (same_name): Likewise.
14901
14902         lstat: avoid mingw compilation error
14903         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14904         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14905         lstat ourselves.
14906         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14907         was adequate.
14908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14909         the checks for lstat.
14910         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14911
14912         link: fix test failure on Solaris 9
14913         * lib/link.c (rpl_link): Don't assume link will catch bogus
14914         trailing slash on source.
14915
14916         test-symlinkat: enhance test
14917         * tests/test-readlink.c (main): Move guts...
14918         * tests/test-readlink.h (test_readlink): ...into new file.
14919         * tests/test-symlink.c (main): Move guts...
14920         * tests/test-symlink.h (test_symlink): ...into new file.
14921         * tests/test-symlinkat.c (main): Use new files for further
14922         coverage.
14923         (do_symlink, do_readlink): New helper functions.
14924         * modules/symlink-tests (Files): Ship new file.
14925         (Depends-on): Add stdbool.
14926         * modules/readlink-tests (Files): Ship new file.
14927         (Depends-on): Add stdbool.
14928         * modules/symlinkat-tests (Files): Use new files.
14929
14930 2009-09-23  Eric Blake  <ebb9@byu.net>
14931
14932         readlink: document portability issue with symlink length
14933         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14934         systems have bogus st_size on symlinks, and mention the
14935         areadlink-with-size module.
14936         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14937         * doc/posix-functions/readlink.texi (readlink): Mention the
14938         areadlink module, and ERANGE failure.
14939         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14940         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14941
14942         readlink: fix Solaris 9 bug with trailing slash
14943         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14944         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14945         * doc/posix-functions/readlink.texi (readlink): Document this.
14946         * modules/readlink-tests: New test.
14947         * tests/test-readlink.c: Likewise.
14948
14949         readlink: fix cygwin 1.5.x bug with return type
14950         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14951         * lib/unistd.in.h (readlink): Use ssize_t.
14952         * lib/readlink.c (readlink): Likewise.
14953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14954         * modules/unistd (Makefile.am): Substitute it.
14955         * lib/unistd.in.h (readlink): Declare replacement.
14956         * doc/posix-functions/readlink.texi (readlink): Document this.
14957
14958         symlink: use throughout gnulib
14959         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
14960         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
14961         symlink is not used.
14962         * modules/symlinkat (Depends-on): Add symlink.
14963         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14964         * modules/canonicalize-tests (Depends-on): Likewise.
14965         * modules/lstat-tests (Depends-on): Likewise.
14966         * modules/openat-tests (Depends-on): Likewise.
14967         * modules/remove-tests (Depends-on): Likewise.
14968         * modules/rmdir-tests (Depends-on): Likewise.
14969         * modules/unlink-tests (Depends-on): Likewise.
14970         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
14971         * tests/test-canonicalize.c (symlink): Likewise.
14972         * tests/test-fstatat.c (symlink): Likewise.
14973         * tests/test-lstat.c (symlink): Likewise.
14974         * tests/test-remove.c (symlink): Likewise.
14975         * tests/test-rmdir.c (symlink): Likewise.
14976         * tests/test-unlink.c (symlink): Likewise.
14977         * tests/test-unlinkat.c (symlink): Likewise.
14978
14979         symlink: new module, for Solaris 9 bug
14980         * modules/symlink: New file.
14981         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14982         * lib/symlink.c: Likewise.
14983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14984         * modules/unistd (Makefile.am): Substitute them.
14985         * lib/unistd.in.h (symlink): Declare replacement.
14986         * MODULES.html.sh (File system functions): Mention it.
14987         * doc/posix-functions/symlink.texi (symlink): Likewise.
14988         * modules/symlink-tests: New test.
14989         * tests/test-symlink.c: Likewise.
14990
14991 2009-09-23  Bruno Haible  <bruno@clisp.org>
14992
14993         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
14994         when needed.
14995         Test case: gnulib-tool --import --with-tests atexit inttypes.
14996         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
14997
14998 2009-09-23  Bruno Haible  <bruno@clisp.org>
14999
15000         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15001         subcommand, not in a subshell.
15002
15003 2009-09-22  Eric Blake  <ebb9@byu.net>
15004
15005         unistd: sort replacement declarations
15006         * lib/unistd.in.h: Sort declarations.
15007
15008         open, openat: minor optimization
15009         * lib/open.c (open): If open succeeded, len is non-zero.
15010         * lib/openat.c (rpl_openat): Likewise.
15011
15012         link-follow: ensure correct result
15013         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15014         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15015         distinguish between possible failures.
15016
15017 2009-09-21  Eric Blake  <ebb9@byu.net>
15018
15019         fts: avoid compiler warning
15020         * lib/fts.c (dirent_inode_sort_may_be_useful)
15021         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15022
15023 2009-09-19  Bruno Haible  <bruno@clisp.org>
15024
15025         * lib/progreloc.c (canonicalize_file_name): New declaration.
15026
15027 2009-09-19  Eric Blake  <ebb9@byu.net>
15028
15029         link: fix quoting
15030         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15031
15032         openat: fix openat bugs on Solaris 9
15033         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15034         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15035         * modules/openat (Depends-on): Add open.
15036         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15037         * modules/fcntl-h (Makefile.am): Substitute it.
15038         * lib/fcntl.in.h (openat): Declare replacement.
15039         * doc/posix-functions/openat.texi (openat): Document this.
15040
15041         openat: move fstatat and unlinkat into correct files
15042         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15043         compiled.
15044         * lib/openat.c (fstatat, unlinkat): Move...
15045         * lib/fstatat.c (fstatat): ...into correct files.
15046         * lib/unlinkat.c (unlinkat): Likewise.
15047
15048         openat: fix unlinkat bugs on Solaris 9
15049         * lib/unlinkat.c (unlinkat): New file.
15050         * modules/openat (Depends-on): Add unlink.
15051         (Files): Distribute it.
15052         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15053         trailing slash behavior is broken.
15054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15055         * modules/unistd (Makefile.am): Substitute it.
15056         * lib/unistd.in.h (unlinkat): Declare replacement.
15057         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15058
15059         openat: fix fstatat bugs on Solaris 9
15060         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15061         stat.
15062         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15063
15064         test-unlinkat: enhance test, to expose Solaris 9 bug
15065         * tests/test-unlink.c (main): Factor guts...
15066         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15067         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15068         * tests/test-rmdir.c (main): Adjust caller.
15069         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15070         (unlinker): New helper function.
15071         (rmdirat): Enhance check.
15072         * modules/rmdir-tests (Depends-on): Add stdbool.
15073         * modules/unlink-tests (Depends-on): Likewise.
15074         (Files): Add test-unlink.h.
15075         * modules/openat-tests (Files): Likewise.
15076         (Depends-on): Add unlinkdir.
15077
15078         test-fstatat: new test, to expose Solaris 9 bugs
15079         * tests/test-stat.c (main): Factor guts...
15080         * tests/test-stat.h (test_stat_func): ...into new file.
15081         * tests/test-lstat.c (main): Factor guts...
15082         * tests/test-lstat.h (test_lstat_func): ...into new file.
15083         * tests/test-fstatat.c: New file.
15084         * modules/stat-tests (Files): Add test-stat.h.
15085         * modules/lstat-tests (Files): Add test-lstat.h.
15086         (Depends-on): Add stdbool.
15087         * modules/openat-tests (Depends-on): Add pathmax.
15088         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15089         (Makefile.am): Run new test.
15090
15091         remove: new module, for mingw and Solaris 9 bugs
15092         * modules/remove: New file.
15093         * lib/remove.c: Likewise.
15094         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15096         * modules/stdio (Makefile.am): Use them.
15097         * lib/stdio.in.h (remove): Declare replacement.
15098         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15099         * doc/posix-functions/remove.texi (remove): Likewise.
15100         * modules/remove-tests: New test.
15101         * tests/test-remove.c: Likewise.
15102
15103         unlink: new module, for Solaris 9 bug
15104         * modules/unlink: New file.
15105         * lib/unlink.c: Likewise.
15106         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15108         * modules/unistd (Makefile.am): Use them.
15109         * lib/unistd.in.h (stat): Declare replacement.
15110         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15111         * doc/posix-functions/unlink.texi (unlink): Likewise.
15112         * modules/unlink-tests: New test.
15113         * tests/test-unlink.c: Likewise.
15114
15115         lstat: fix Solaris 9 bug
15116         * lib/lstat.c (lstat): Also check for trailing slash on
15117         non-symlink, non-directories.  Use stat module to simplify logic.
15118         * doc/posix-functions/lstat.texi (lstat): Document it.
15119         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15120         (configure.ac): Check for symlink.
15121         * tests/test-lstat.c (main): Add more tests.
15122
15123         stat: add as dependency to other modules
15124         * modules/chown (Depends-on): Add stat.
15125         * modules/euidaccess (Depends-on): Likewise.
15126         * modules/fchdir (Depends-on): Likewise.
15127         * modules/isdir (Depends-on): Likewise.
15128         * modules/link (Depends-on): Likewise.
15129         * modules/lstat (Depends-on): Likewise.
15130         * modules/mkdir-p (Depends-on): Likewise.
15131         * modules/modechange (Depends-on): Likewise.
15132         * modules/open (Depends-on): Likewise.
15133         * modules/readlink (Depends-on): Likewise.
15134         * modules/same (Depends-on): Likewise.
15135
15136         stat: fix Solaris 9 bug
15137         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15138         slash.
15139         * lib/stat.c (rpl_stat): Work around it.
15140         * doc/posix-functions/stat.texi (stat): Update documentation.
15141
15142         stat: new module, for mingw bug
15143         * modules/stat: New file.
15144         * lib/stat.c: Likewise.
15145         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15147         * modules/sys_stat (Makefile.am): Use them.
15148         * lib/sys_stat.in.h (stat): Declare replacement.
15149         * lib/openat.c (fstatat): Deal with lstat and stat being function
15150         macros.
15151         * modules/openat (Depends-on): Add inline.
15152         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15153         * doc/posix-functions/stat.texi (stat): Likewise.
15154         * modules/stat-tests: New test.
15155         * tests/test-stat.c: Likewise.
15156
15157 2009-09-19  Jim Meyering  <meyering@redhat.com>
15158
15159         syntax-check: detect unnecessary inclusion of canonicalize.h
15160         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15161
15162 2009-09-19  Eric Blake  <ebb9@byu.net>
15163
15164         canonicalize-lgpl: adjust clients to use correct header
15165         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15166         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15167         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15168         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15169         * lib/progreloc.c (includes): Likewise.
15170
15171 2009-09-19  Jim Meyering  <meyering@redhat.com>
15172
15173         test-posixtm.c: correct a comment
15174         * tests/test-posixtm.c: Correct first-line comment.
15175         Spotted by Eric Blake.
15176
15177 2009-09-16  Jim Meyering  <meyering@redhat.com>
15178
15179         posixtm-tests: make T const-correct; add a test case
15180         * tests/test-posixtm.c (T): Declare const.
15181         Add a test for -(2^31+1).
15182         Remove useless can-succeed-only-in-2002 test.
15183
15184         posixtm-tests: adjust the sole failing test
15185         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15186         expected output matches what mktime now produces.  Cross-checked via
15187         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15188
15189         posixtm: move #ifdef'd tests into a new module
15190         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15191         * tests/test-posixtm.c: ... this new file.
15192         * modules/posixtm-tests: New module.
15193
15194 2009-09-19  Eric Blake  <ebb9@byu.net>
15195
15196         openat: simplify use of at-func.c
15197         * lib/at-func.c (includes): Include prerequisites here, to
15198         simplify requirements on client files.
15199         * lib/openat-priv.h: Add double-inclusion guard.
15200         * lib/faccessat.c (includes): Simplify.
15201         * lib/fchmodat.c (includes): Likewise.
15202         * lib/fchownat.c (includes): Likewise.
15203         * lib/mkdirat.c (includes): Likewise.
15204         * lib/mkfifoat.c (includes): Likewise.
15205         * lib/symlinkat.c (includes): Likewise.
15206
15207         openat: allow return of fd 0
15208         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15209         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15210         unistd-safer.
15211         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15212         <fcntl.h>; this module does not leak fds.
15213         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15214         must be allowed to return 0, leaving openat_safer to add the
15215         safety.
15216         (openat_permissive): Avoid writing to just-opened fd 2 if
15217         restoring the current directory fails.
15218         * lib/openat-die.c (openat_restore_fail): Add comment.
15219         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15220         (save_cwd): Guarantee safe fd, but without use of open_safer.
15221         * tests/test-openat.c: New test.
15222         * modules/openat-tests (Files, Makefile.am): Distribute and build
15223         new file.
15224
15225         relocatable-prog-wrapper: fix build
15226         * modules/relocatable-prog-wrapper (Files): Update name of
15227         canonicalize m4 file, broken on 2009-09-17.
15228         Reported by emad hajjar <aleppos@hotmail.com>.
15229
15230 2009-09-19  Bruno Haible  <bruno@clisp.org>
15231
15232         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15233         * lib/safe-alloc.c: Likewise.
15234         Reported by Ian Beckwith <ianb@erislabs.net>.
15235
15236 2009-09-18  Bruno Haible  <bruno@clisp.org>
15237
15238         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15239         Reported by <erobles@sensacd.com.mx>.
15240
15241 2009-09-17  Eric Blake  <ebb9@byu.net>
15242
15243         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15244         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15245         slashes when checking if last component is missing.
15246         * tests/test-canonicalize.c (main): Test this.
15247
15248         canonicalize, canonicalize-lgpl: honor // if distinct from /
15249         * modules/canonicalize (Files): Add double-slash-root.m4.
15250         * modules/canonicalize-lgpl (Files): Likewise.
15251         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15252         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15253         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15254         fallback definition.
15255         (canonicalize_filename_mode): Use it to protect //.
15256         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15257         (__realpath): Likewise.
15258         * tests/test-canonicalize.c (main): Test this.
15259         * tests/test-canonicalize-lgpl.c (main): Likewise.
15260         * modules/canonicalize-tests (Depends-on): Add same-inode.
15261         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15262
15263         canonicalize-lgpl: fix glibc bug with trailing slash
15264         * m4/canonicalize-lgpl.m4: Move contents...
15265         * m4/canonicalize.m4: ...here.
15266         (gl_CANONICALIZE_LGPL): Factor realpath check...
15267         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15268         glibc 2.3.5 bug, fixed 2005-04-27.
15269         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15270         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15271         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15272         * modules/canonicalize-lgpl (Files): Manage file rename.
15273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15274         * modules/stdlib (Makefile.am): Substitute witness.
15275         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15276         is needed.
15277         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15278         replacement is required.
15279         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15280         * doc/glibc-functions/canonicalize_file_name.texi
15281         (canonicalize_file_name): Document this.
15282         * doc/posix-functions/realpath.texi (realpath): Likewise.
15283
15284         canonicalize-lgpl: reject non-directory with trailing slash
15285         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15286         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15287         catches failures in glibc 2.3.5.
15288         * tests/test-canonicalize.c (main): Likewise.
15289
15290         canonicalize-lgpl: use native realpath if it works
15291         * lib/canonicalize-lgpl.c (realpath): Guard with
15292         FUNC_REALPATH_WORKS.
15293         * lib/stdlib.in.h (realpath): Make declaration optional based on
15294         HAVE_REALPATH.
15295         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15296         native realpath works.
15297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15298         * modules/stdlib (Makefile.am): Substitute witness.
15299
15300         canonicalize, canonicalize-lgpl: use <stdlib.h>
15301         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15302         (Include): Mention <stdlib.h>.
15303         (configure.ac): Mention functions we provide.
15304         * modules/canonicalize (configure.ac): Likewise.
15305         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15306         realpath if canonicalize_file_name is missing.
15307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15308         * modules/stdlib (Makefile.am): Substitute witnesses.
15309         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15310         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15311         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15312         * NEWS: Document this.
15313         * doc/glibc-functions/canonicalize_file_name.texi
15314         (canonicalize_file_name): Likewise.
15315         * doc/posix-functions/realpath.texi (realpath): Likewise.
15316         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15317
15318         test-canonicalize: consolidate into single C program
15319         * tests/test-canonicalize.sh: Delete; move setup into...
15320         * tests/test-canonicalize.c (main): ...the program, making it
15321         easier to run in debugger.  Add some tests.
15322         * modules/canonicalize-tests (Files): Remove unused file.
15323         (Depends-on): Add progname.
15324         (configure.ac, Makefile.am): Simplify.
15325
15326         test-canonicalize-lgpl: consolidate into single C program
15327         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15328         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15329         easier to run in debugger.  Add some tests.
15330         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15331         (configure.ac, Makefile.am): Simplify.
15332
15333         canonicalize: avoid resolvepath
15334         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15335         unnecessary checks.
15336         * lib/canonicalize.c (includes): Simplify.
15337         (canonicalize_file_name): Drop resolvepath implementation.
15338         * modules/canonicalize (Depends-on): Drop filenamecat.
15339
15340         canonicalize: don't lose errno
15341         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15342         over calls to free.
15343
15344         canonicalize: simplify errno handling
15345         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15346         assignment.
15347
15348         canonicalize, canonicalize-lgpl: update module dependencies
15349         * modules/canonicalize (Depends-on): Add extensions, lstat,
15350         pathmax, stdlib.
15351         (Files): Drop pathmax.h.
15352         (configure.ac): Adjust macro name.
15353         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15354         lstat, stdlib, sys_stat.
15355         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15356         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15357         extensions.
15358         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15359         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15360         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15361         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15362         declaration, if available.
15363         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15364         we can rely on the readlink module.
15365         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15366         (includes): Use <unistd.h> unconditionally.
15367
15368 2009-09-17  Eric Blake  <ebb9@byu.net>
15369
15370         maint: make Include sections of modules consistent
15371         * modules/alloca: Use only header name; no need to list #include.
15372         * modules/alloca-opt: Likewise.
15373         * modules/arpa_inet: Likewise.
15374         * modules/canon-host: Likewise.
15375         * modules/configmake: Likewise.
15376         * modules/dirent: Likewise.
15377         * modules/eealloc: Likewise.
15378         * modules/environ: Likewise.
15379         * modules/fchdir: Likewise.
15380         * modules/fcntl: Likewise.
15381         * modules/fcntl-h: Likewise.
15382         * modules/gethrxtime: Likewise.
15383         * modules/gettime: Likewise.
15384         * modules/ignore-value: Likewise.
15385         * modules/inet_ntop: Likewise.
15386         * modules/inet_pton: Likewise.
15387         * modules/inttypes: Likewise.
15388         * modules/isnand-nolibm: Likewise.
15389         * modules/isnanf-nolibm: Likewise.
15390         * modules/mbchar: Likewise.
15391         * modules/mbfile: Likewise.
15392         * modules/mbiter: Likewise.
15393         * modules/mbuiter: Likewise.
15394         * modules/netdb: Likewise.
15395         * modules/netinet_in: Likewise.
15396         * modules/nproc: Likewise.
15397         * modules/pagealign_alloc: Likewise.
15398         * modules/poll: Likewise.
15399         * modules/printf-frexp: Likewise.
15400         * modules/pthread: Likewise.
15401         * modules/putenv: Likewise.
15402         * modules/random_r: Likewise.
15403         * modules/relocatable-prog: Likewise.
15404         * modules/search: Likewise.
15405         * modules/select: Likewise.
15406         * modules/selinux-h: Likewise.
15407         * modules/settime: Likewise.
15408         * modules/signal: Likewise.
15409         * modules/size_max: Likewise.
15410         * modules/socklen: Likewise.
15411         * modules/ssize_t: Likewise.
15412         * modules/stdarg: Likewise.
15413         * modules/stdbool: Likewise.
15414         * modules/stddef: Likewise.
15415         * modules/stdint: Likewise.
15416         * modules/stdio: Likewise.
15417         * modules/stdlib: Likewise.
15418         * modules/string: Likewise.
15419         * modules/strings: Likewise.
15420         * modules/sys_file: Likewise.
15421         * modules/sys_ioctl: Likewise.
15422         * modules/sys_select: Likewise.
15423         * modules/sys_socket: Likewise.
15424         * modules/sys_stat: Likewise.
15425         * modules/sys_time: Likewise.
15426         * modules/sys_times: Likewise.
15427         * modules/sys_utsname: Likewise.
15428         * modules/sys_wait: Likewise.
15429         * modules/sysexits: Likewise.
15430         * modules/time: Likewise.
15431         * modules/times: Likewise.
15432         * modules/tmpfile: Likewise.
15433         * modules/trim: Likewise.
15434         * modules/unistd: Likewise.
15435         * modules/wchar: Likewise.
15436         * modules/wctype: Likewise.
15437
15438 2009-09-17  Bruno Haible  <bruno@clisp.org>
15439
15440         Make getdate.y compile on QNX and NetBSD 5 / i386.
15441         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15442         TIME_T_FITS_IN_LONG_INT.
15443         * lib/getdate.y (long_time_t): New type.
15444         (relative_time): Change type of 'seconds' field to long_time_t.
15445         (get_date): Update types of local variables. Check against overflow
15446         during conversion from long_time_t to time_t.
15447         Reported by Matt Kraai <kraai@ftbfs.org>
15448         and Hasso Tepper <hasso@netbsd.org>.
15449
15450 2009-09-17  Bruno Haible  <bruno@clisp.org>
15451
15452         * modules/COPYING: Update copyright years.
15453         * modules/README: Likeiwse.
15454         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15455         Reported by Ian Beckwith <ianb@erislabs.net>.
15456
15457 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15458
15459         * users.txt: Update references for gnuit package.
15460
15461 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15462
15463         * m4/getdelim.m4: Fix typo in copyright line.
15464
15465 2009-09-17  Bruno Haible  <bruno@clisp.org>
15466
15467         * lib/atoll.c: Use the standard header with GPL copyright.
15468         * lib/argz.in.h: Likewise.
15469         * lib/glob.c: Likewise.
15470         * lib/glob-libc.h: Likewise.
15471         * lib/random_r.c: Likewise.
15472         * lib/siglist.h: Likewise.
15473         * lib/strsignal.c: Likewise.
15474         Reported by Ian Beckwith <ianb@erislabs.net>.
15475
15476 2009-09-17  Eric Blake  <ebb9@byu.net>
15477
15478         rmdir: ensure correct dependency order
15479         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15480
15481 2009-09-17  Bruno Haible  <bruno@clisp.org>
15482
15483         Disable assertion that fails on NetBSD 5 / i386.
15484         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15485         Reported by Sam Steingold <sds@gnu.org>
15486         and Hasso Tepper <hasso@netbsd.org>.
15487
15488 2009-09-16  Eric Blake  <ebb9@byu.net>
15489
15490         unlinkdir: port to mingw
15491         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15492         on which no one can unlink a directory.
15493
15494         stdlib: sort witness names
15495         * modules/stdlib (Makefile.am): Sort replacements.
15496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15497         * lib/stdlib.in.h: Likewise.
15498
15499         parse-duration-tests: avoid link failure
15500         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15501         LIBINTL.
15502         Reported by Tom G. Christensen.
15503
15504         openat-tests: ensure unlinkat behaves like rmdir
15505         * tests/test-rmdir.c (main): Factor guts...
15506         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15507         * modules/rmdir-tests (Files): Ship new file.
15508         * modules/openat-tests: New test.
15509         * tests/test-unlinkat.c: Likewise.
15510
15511         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15512         * modules/rmdir-errno (Status, Notice): Now obsolete.
15513
15514         rmdir: work around cygwin 1.5.x and mingw bugs
15515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15516         * lib/rmdir.c (rmdir): Work around it.
15517         * modules/rmdir (Status, Notice): No longer obsolete.
15518         (Files): Add dos.m4.
15519         (Depends-on): Add unistd.
15520         (configure.ac): Set witnesses.
15521         (License): Relax to LGPLv2+.
15522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15523         * modules/unistd (Makefile.am): Substitute witnesses.
15524         * lib/unistd.in.h (rmdir): Declare replacement.
15525         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15526         * modules/rmdir-tests: New tests.
15527         * tests/test-rmdir.c: Likewise.
15528
15529 2009-09-15  Eric Blake  <ebb9@byu.net>
15530
15531         fchdir: improve use of replacement functions
15532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15534         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15535         REPLACE_CLOSEDIR.
15536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15537         * modules/sys_stat (Makefile.am): Substitute correct witness.
15538         * modules/dirent (Makefile.am): Likewise.
15539         * modules/unistd (Makefile.am): Likewise.
15540         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15541         * lib/unistd.in.h (dup): Likewise.
15542         * lib/sys_stat.in.h (fstat): Likewise.
15543
15544         maint: ignore gnulib-tool temp files
15545         * .gitignore: Ignore files created during gnulib-tool --test.
15546
15547 2009-09-13  Jim Meyering  <meyering@redhat.com>
15548
15549         posixtm: don't reject a time that specify "60" as the number of seconds
15550         * lib/posixtm.c (posixtime): The code to reject invalid dates
15551         would also reject a time specified with the .60 suffix.
15552         But POSIX allows that, in order to accommodate leap seconds.
15553         So don't reject it.
15554         (main): Adjust tests accordingly.
15555         * modules/posixtm (Depends-on): Add stpcpy.
15556
15557 2009-09-11  Jim Meyering  <meyering@redhat.com>
15558
15559         announce-gen: include [$release_type] in emitted Subject:
15560         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15561         e.g., [stable] in the emitted Subject: line.
15562
15563 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15564
15565         Remove obsolete macros from several modules.
15566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15567         obsolete Autoconf macros with their modern counterparts.
15568         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15569         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15572         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15573         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15575         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15576         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15577         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15578         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15580         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15581         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15582         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15583         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15584         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15585         * m4/time_r.m4 (gl_TIME_R): Likewise.
15586         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15587         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15588         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15589
15590         Fix copyright header in build-aux scripts.
15591         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15592         recommendation.
15593         * build-aux/ncftpput-ftp: Likewise.
15594         * build-aux/update-copyright: Likewise.
15595
15596 2009-09-09  Eric Blake  <ebb9@byu.net>
15597
15598         test-link: allow Linux choice of errno
15599         * tests/test-link.c (main): Relax test for alternate error.
15600
15601         strndup: fix improper m4 caching
15602         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15603         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15604         (gl_PREREQ_STRNDUP): Delete.
15605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15606         * modules/string (Makefile.am): Substitute it.
15607         * lib/string.in.h (strndup): Modernize prototype.
15608
15609         getcwd: port to mingw
15610         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15611         different from the POSIX assumptions made throughout the getcwd
15612         module; fortunately, the mingw getcwd does not need replacement.
15613         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15614         * modules/getcwd-tests: New test.
15615         * tests/test-getcwd.c: Likewise.
15616
15617         link: fix platform bugs
15618         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15619         * lib/link.c (link): Work around them.  Fix related mingw bug.
15620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15621         * modules/unistd (Makefile.am): Substitute it.
15622         * lib/unistd.in.h (link): Declare replacement.
15623         * doc/posix-functions/link.texi (link): Document this.
15624         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15625
15626         test-link: consolidate into single C program, test more cases
15627         * tests/test-link.sh: Delete.
15628         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15629         at least Cygwin and Solaris.
15630         * modules/link-tests (Files): Remove unused file.
15631         (Depends-on): Add errno, sys_stat.
15632         (Makefile.am): Simplify.
15633
15634 2009-09-08  Bruno Haible  <bruno@clisp.org>
15635
15636         Work around towlower, towupper bug on mingw.
15637         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15638         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15639         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15640         * doc/posix-functions/towupper.texi: Likewise.
15641         Reported by Eric Blake.
15642
15643 2009-09-08  Jim Meyering  <meyering@redhat.com>
15644
15645         build: don't try to run autoheader if we don't use it
15646         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15647         is not used in configure.ac.
15648
15649 2009-09-08  Eric Blake  <ebb9@byu.net>
15650
15651         euidaccess: fix compilation error
15652         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15653
15654         rawmemchr: relax license
15655         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15656         okay.
15657         Reported by Jim Meyering.
15658
15659         mkfifoat: new module
15660         * modules/mkfifoat: New file.
15661         * lib/mkfifoat.c: Likewise.
15662         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15663         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15664         * modules/sys_stat (Makefile.am): Use them.
15665         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15666         * MODULES.html.sh (File system functions): Mention module.
15667         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15668         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15669         * modules/mkfifoat-tests: New test.
15670         * tests/test-mkfifoat.c: Likewise.
15671
15672         strchrnul: relax license
15673         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15674         okay.
15675         Reported by Jim Meyering.
15676
15677 2009-09-08  Eric Blake  <ebb9@byu.net>
15678
15679         fstatat: fix compilation on Solaris
15680         * lib/fstatat.c (includes): Add fcntl.h.
15681         Reported by Pádraig Brady.
15682
15683 2009-09-07  Eric Blake  <ebb9@byu.net>
15684
15685         rename: modernize replacement
15686         * modules/rename (Depends-on): Add stdio.
15687         (configure.ac): Declare witness.
15688         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15689         stdio take care of replacement.
15690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15691         * modules/stdio (Makefile.am): Substitute them.
15692         * lib/stdio.in.h (rename): Declare replacement.
15693         * lib/rename.c (includes): Allow cross-compilation to non-windows
15694         machines.
15695         * doc/posix-functions/rename.texi (rename): Improve
15696         documentation.
15697
15698         stdio: sort witness names
15699         * modules/stdio (Makefile.am): Sort replacements.
15700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15701         * lib/stdio.in.h: Likewise.
15702
15703         getcwd: minor cleanups
15704         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15705         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15706
15707         openat: provide more convenience names
15708         * modules/faccessat (configure.ac): Add C witness.
15709         * lib/unistd.in.h (readlinkat): Fix typo.
15710         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15711         convenience wrappers.
15712         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15713         wrappers in syntax checks.
15714
15715 2009-09-06  Eric Blake  <ebb9@byu.net>
15716
15717         doc: fix comments in recent patches
15718         * lib/faccessat.c: Mention correct function.
15719         * lib/fchmodat.c: Likewise.
15720         * lib/fchownat.c: Likewise.
15721         * lib/symlinkat.c: Likewise.
15722         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15723         constants.
15724
15725         faccessat, symlinkat: continue cleanup of previous patch
15726         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15727         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15728         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15730         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15731         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15732         set.
15733
15734 2009-09-06  Bruno Haible  <bruno@clisp.org>
15735
15736         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15737         (fstatat): Declare if GNULIB_FSTATAT is set.
15738         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15739         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15740         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15741         * modules/fcntl-h (Files): Remove m4/openat.m4.
15742         * modules/sys_stat (Files): Remove m4/openat.m4.
15743         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15744         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15745         * modules/unistd (Files): Remove m4/openat.m4.
15746         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15747         GNULIB_OPENAT.
15748         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15749         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15751         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15752         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15753         gl_OPENAT_DEFAULTS.
15754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15755         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15756         Don't require gl_OPENAT_DEFAULTS.
15757         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15758         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15759         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15760         (gl_OPENAT_DEFAULTS): Remove macro.
15761
15762 2009-09-06  Bruno Haible  <bruno@clisp.org>
15763
15764         * modules/openat (configure.ac): Remove unneeded witness.
15765
15766 2009-09-06  Bruno Haible  <bruno@clisp.org>
15767
15768         Set errno to ENOSYS when a function is entirely unsupported.
15769         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15770         EOPNOTSUPP.
15771         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15772         * modules/chown (Depends-on): Remove errno.
15773
15774 2009-09-06  Bruno Haible  <bruno@clisp.org>
15775
15776         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15777
15778 2009-09-06  Bruno Haible  <bruno@clisp.org>
15779
15780         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15781
15782 2009-09-06  Ben Pfaff  <blp@gnu.org>
15783             Bruno Haible  <bruno@clisp.org>
15784
15785         Work around a glibc bug in strtok_r.
15786         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15787         Undefine if UNDEFINE_STRTOK_R is set.
15788         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15790         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15791         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15792         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15793         UNDEFINE_STRTOK_R.
15794         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15795
15796 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15797
15798         exclude: minor fix
15799         * lib/exclude.c: Include wctype.h
15800
15801 2009-09-06  Akim Demaille  <demaille@gostai.com>
15802
15803         bootstrap: improve error message
15804         * build-aux/bootstrap (find_tool): Upon failure, report the list
15805         of candidates.
15806         Honor the initial value of the envvar.
15807
15808 2009-09-05  Eric Blake  <ebb9@byu.net>
15809
15810         symlinkat: new module
15811         * modules/symlinkat: New file.
15812         * lib/symlinkat.c: Likewise.
15813         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15815         * modules/unistd (Makefile.am): Use them.
15816         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15817         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15818         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15819         * MODULES.html.sh (File system functions): Mention module.
15820         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15821         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15822         * modules/symlinkat-tests: New test.
15823         * tests/test-symlinkat.c: Likewise.
15824
15825         test-openat-safer: add more checks
15826         * tests/test-openat-safer.c (main): Check more code paths.
15827
15828 2009-09-05  Jim Meyering  <meyering@redhat.com>
15829
15830         syntax-check: detect unnecessary inclusion of openat.h
15831         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15832
15833 2009-09-05  Bruno Haible  <bruno@clisp.org>
15834
15835         Support towlower, towupper.
15836         * doc/posix-functions/towlower.texi: Mention module wctype.
15837         * doc/posix-functions/towupper.texi: Likewise.
15838         * lib/wctype.in.h (towlower, towupper): New functions.
15839         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15840         (ASSERT): New macro.
15841         (e): New variable.
15842         (main): Test also towlower, towupper. Test WEOF argument.
15843         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15844
15845 2009-09-05  Bruno Haible  <bruno@clisp.org>
15846
15847         Fix conversion behaviour when the input is invalid.
15848         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15849         mark occurring in first pass of indirect conversion.
15850         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15851         input.
15852         Found by clang's static analyzer.
15853
15854 2009-09-05  Bruno Haible  <bruno@clisp.org>
15855
15856         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15857         where direct conversion is possible.
15858
15859 2009-09-04  Eric Blake  <ebb9@byu.net>
15860
15861         openat: fail with ENOENT on empty name
15862         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15863         buffer.
15864
15865         link-follow: fix logic bug in prior patch
15866         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15867         reversed sense of yes and no in prior patch.  Avoid confusing
15868         compilation failure with desired semantics.
15869
15870         link-follow: accomodate mingw and cross-compilation
15871         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15872         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15873         cross-compilation results to -1, to make linkat easier to
15874         implement when cross-compiling.  Trivially support mingw.
15875         * modules/link-follow (configure.ac): Call new name.
15876         * NEWS: Mention this.
15877
15878 2009-09-03  Eric Blake  <ebb9@byu.net>
15879
15880         faccessat: compile replacement
15881         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15882         needed.
15883
15884         fts: fix compilation error
15885         * lib/fts.c (includes): Re-add "openat.h", for
15886         openat_needs_fchdir.
15887
15888         faccessat: new module
15889         * modules/faccessat: New file.
15890         * lib/faccessat.c: Likewise.
15891         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15893         * modules/unistd (Makefile.am): Use it.
15894         * lib/unistd.in.h (faccessat): Declare it.
15895         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15896         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15897         * MODULES.html.sh (File system functions): Mention it.
15898         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15899         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15900
15901         euidaccess: prefer POSIX over non-standard implementation
15902         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15903         * lib/euidaccess.c (euidaccess): Use it if available.
15904
15905         openat: make template easier to use
15906         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15907         AT_FUNC_F2 to be undefined.
15908         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15909         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15910         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15911         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15912         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15913         Likewise.
15914         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15915         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15916         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15917         Likewise.
15918
15919         openat: declare in POSIX headers
15920         * NEWS: Mention this.
15921         * modules/openat (configure.ac): Declare witnesses.
15922         (Depends-on): Add fcntl-h, sys_stat, unistd.
15923         (Include): Mention correct headers.
15924         * modules/fcntl-h (Depends-on): Add link-warning.
15925         (Files): Add openat.m4.
15926         (Makefile.am): Substitute witnesses.
15927         * modules/sys_stat (Files, Makefile.am): Likewise.
15928         * modules/unistd (Files, Makefile.am): Likewise.
15929         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15930         (gl_OPENAT_DEFAULTS): New macro.
15931         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15934         (SYS_STAT_H): Remove unused variable.
15935         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15936         * lib/fcntl--.h (includes): Remove unneeded header.
15937         * lib/openat-safer.c (includes): Likewise.
15938         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15939         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15940         appropriate headers.
15941         (__OPENAT_PREFIX): Delete.
15942         * lib/fcntl.in.h (openat): Provide declaration.
15943         (AT_FDCWD): Fix Solaris bug.
15944         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15945         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15946         * lib/fchmodat.c (includes):  Adjust to find declaration.
15947         * lib/fchownat.c (includes): Likewise.
15948         * lib/mkdirat.c (includes): Likewise.
15949         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15950         still visible.
15951
15952 2009-09-02  Eric Blake  <ebb9@byu.net>
15953
15954         errno: use consistently
15955         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15956         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
15957         * lib/canonicalize.c (ELOOP): Likewise.
15958         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
15959         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
15960         * lib/lchown.c (EOPNOTSUPP): Likewise.
15961         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
15962         * lib/savewd.c (ESTALE): Likewise.
15963         * lib/settime.c (ENOSYS): Likewise.
15964         * lib/utimens.c (ENOSYS): Likewise.
15965         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
15966         * lib/chdir-safer.c (ELOOP): Likewise.
15967         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
15968         * modules/c-stack (Depends-on): Add errno.
15969         * modules/canonicalize (Depends-on): Likewise.
15970         * modules/chdir-safer (Depends-on): Likewise.
15971         * modules/fdopendir (Depends-on): Likewise.
15972         * modules/inet_ntop (Depends-on): Likewise.
15973         * modules/inet_pton (Depends-on): Likewise.
15974         * modules/lchown (Depends-on): Likewise.
15975         * modules/openat (Depends-on): Likewise.
15976         * modules/savewd (Depends-on): Likewise.
15977         * modules/settime (Depends-on): Likewise.
15978         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
15979
15980         fts: avoid leaking fds
15981         * modules/fts (Depends-on): Add cloexec.
15982         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
15983         flag.
15984
15985         fts: make directory fds more robust
15986         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
15987         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
15988
15989         backupfile, chdir-long, fts, savedir: make safer
15990         * lib/backupfile.c (includes): Use "dirent--.h", since
15991         numbered_backup can write to stderr during readdir.
15992         * lib/savedir.c (includes): Likewise.
15993         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
15994         emulation can write to stderr on failure.
15995         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
15996         * lib/getcwd.c: Document why opendir_safer is unused.
15997         * lib/glob.c: Likewise.
15998         * lib/scandir.c: Likewise.
15999         * lib/openat-proc.c: Likewise, for open_safer.
16000         * modules/backupfile (Depends-on): Add dirent-safer.
16001         * modules/savedir (Depends-on): Likewise.
16002         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16003         * modules/chdir-long (Depends-on): Add openat-safer.
16004
16005         openat-safer: new module
16006         * modules/openat-safer: New file.
16007         * lib/openat-safer.c: Likewise.
16008         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16009         * lib/fcntl-safer.h (openat_safer): Declare.
16010         * lib/fcntl--.h (openat): Override.
16011         * MODULES.html.sh (File descriptor based I/O): Mention it.
16012         * lib/openat.h: Add double-inclusion guards.
16013         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16014         "fcntl--.h", so we can implement openat.
16015         * modules/openat-safer-tests: New test.
16016         * tests/test-openat-safer.c: New file.
16017
16018         dirent-safer: new module
16019         * modules/dirent-safer: New file.
16020         * lib/dirent--.h: Likewise.
16021         * lib/dirent-safer.h: Likewise.
16022         * lib/opendir-safer.c: Likewise.
16023         * m4/dirent-safer.m4: Likewise.
16024         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16025         * modules/dirent-safer-tests: New test.
16026         * tests/test-dirent-safer.c: New file.
16027         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16028
16029         fdopendir: optimize on mingw
16030         * lib/unistd.in.h (_gl_directory_name): New prototype.
16031         * lib/fchdir.c (_gl_directory_name): Implement it.
16032         (fchdir): Use it to simplify implementation.
16033         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16034         fchdir, when available, to avoid calling [f]chdir().
16035
16036         fdopendir: split into its own module
16037         * lib/openat.c (fdopendir): Move...
16038         * lib/fdopendir.c: ...into new file.
16039         * modules/fdopendir: New module.
16040         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16041         * modules/openat (Depends-on): Add fdopendir.
16042         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16043         fdopendir here.
16044         * modules/savedir (Depends-on): Only need fdopendir, not full
16045         openat.
16046         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16047         * lib/openat.h (fdopendir): Drop prototype.
16048         * lib/dirent.in.h (fdopendir): Provide prototype.
16049         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16050         * modules/dirent (Makefile.am): Substitute them.
16051         * MODULES.html.sh (File system functions): Mention it.
16052         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16053         * modules/fdopendir-tests: New file.
16054         * tests/test-fdopendir.c: Likewise.
16055
16056         fchdir: use more consistent macro convention
16057         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16058         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16059         REPLACE_FCHDIR, rather than relying on config.h macros.
16060         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16061         inside a single make-time REPLACE_FCHDIR block, rather than using
16062         the config.h FCHDIR_REPLACEMENT.
16063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16064         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16065         Manage fstat replacement.
16066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16067         REPLACE_FCHDIR.
16068         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16069         (Makefile.am): Substitute REPLACE_FCHDIR.
16070         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16071         FCHDIR_REPLACEMENT.
16072         * lib/dup-safer.c (dup_safer): Likewise.
16073         * lib/dup2.c (rpl_dup2): Likewise.
16074         * lib/dup3.c (rpl_dup3): Likewise.
16075         * lib/open.c (rpl_open): Likewise.
16076
16077         fchdir: simplify error handling, and support dup3
16078         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16079         stdbool, malloc-posix, realloc-posix.
16080         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16081         (ensure_dirs_slot): Return false on allocation failure.
16082         (rpl_dup2): Delete.
16083         (_gl_register_dup): New function.
16084         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16085         (_gl_register_fd): Close fd on allocation failure.
16086         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16087         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16088         prototype.
16089         (rpl_dup2_fchdir): Delete prototype.
16090         * lib/open.c (open): Update caller.
16091         * lib/dup2.c (dup2): Track fchdir metadata.
16092         * lib/dup3.c (dup3): Likewise.
16093         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16095
16096 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16097
16098         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16099         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16100         don't pass arguments to AC_OUTPUT.
16101
16102 2009-09-02  Bruno Haible  <bruno@clisp.org>
16103
16104         * modules/mkdtemp (License): Relicense under LGPLv2+.
16105         Reported by Paolo Bonzini.
16106
16107 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16108
16109         Replace uses of obsolete autoconf macros in Jim's modules.
16110         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16111         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16112         can evoke a warning from autoconf when run with -Wobsolete
16113         enabled.  They were declared obsolete for good reasons (see
16114         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16115         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16116         should not continue using the deprecated macros.
16117         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16118         obsolete Autoconf macros with modern counterparts.
16119         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16120         * m4/dos.m4 (gl_AC_DOS): Likewise.
16121         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16122         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16123         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16124         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16125         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16126         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16127         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16128         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16129         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16130         Likewise.
16131         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16132         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16133         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16134         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16135         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16136         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16137
16138 2009-09-01  Eric Blake  <ebb9@byu.net>
16139
16140         fchdir: fix off-by-one bug in previous patch
16141         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16142         (_gl_unregister_fd): Delete useless if.
16143
16144 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16145
16146         maint.mk: sort the list of syntax-check rules
16147         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16148         easier to get a sense of progress when the rules are run sequentially
16149         and take a long time.
16150
16151 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16152
16153         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16154         * modules/netinet_in: Likewise.
16155         * modules/sys_file: Likewise.
16156         * modules/sys_ioctl: Likewise.
16157         * modules/sys_select: Likewise.
16158         * modules/sys_socket: Likewise.
16159         * modules/sys_stat: Likewise.
16160         * modules/sys_time: Likewise.
16161         * modules/sys_times: Likewise.
16162         * modules/sys_utsname: Likewise.
16163         * modules/sys_wait: Likewise.
16164
16165 2009-09-01  Jim Meyering  <meyering@redhat.com>
16166
16167         fts: help ensure that return values are not ignored
16168         * lib/fts_.h (__GNUC_PREREQ): Define.
16169         (__attribute_warn_unused_result__): Define.
16170         (fts_children, fts_close, fts_open, fts_read): Declare with
16171         __attribute_warn_unused_result__.
16172
16173         fts: fts_close now fails also when closing a dir file descriptor fails
16174         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16175         and propagate to caller, along with errno.
16176
16177         announce-gen: correct formatting in --help output
16178         * build-aux/announce-gen (usage): Move the one-line description in
16179         --help output "up", to where it belongs, just after Usage:.
16180
16181 2009-08-31  Eric Blake  <ebb9@byu.net>
16182
16183         fchdir: port to mingw
16184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16185         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16186         opened, then use a substitute.
16187         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16188         replacement.
16189         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16190         (_gl_register_fd): No need to check stat if open already filters
16191         all directories.
16192         (fchdir): Fix error condition to match POSIX.
16193         * modules/fchdir (Depends-on): Add sys_stat.
16194         * doc/posix-functions/open.texi (open): Document the limitation.
16195         * modules/fchdir-tests: New file.
16196         * tests/test-fchdir.c: Likewise.
16197
16198         canonicalize: allow cross-testing from cygwin to mingw
16199         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16200         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16201         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16202         Likewise.
16203         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16204         target does not support symlinks.
16205         * tests/test-canonicalize-lgpl.sh: Likewise.
16206
16207         chown: avoid compilation warning on mingw
16208         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16209         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16210         mingw.
16211         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16212         * modules/chown (Depends-on): Add errno.
16213
16214 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16215
16216         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16217         command.
16218
16219 2009-08-31  Jim Meyering  <meyering@redhat.com>
16220
16221         canonicalize: remove useless initialization
16222         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16223         initialization of local, "end".
16224
16225 2009-08-30  Bruno Haible  <bruno@clisp.org>
16226
16227         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16228         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16229         ENOSYS.
16230
16231 2009-08-30  Bruno Haible  <bruno@clisp.org>
16232
16233         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16234         /usr/xpg4/bin/tr when it exists.
16235         * tests/test-pipe-filter-gi1.sh: Likewise.
16236
16237 2009-08-30  Bruno Haible  <bruno@clisp.org>
16238
16239         Work around deficient /usr/bin/id program on Solaris.
16240         * tests/test-file-has-acl.sh (ID): New variable.
16241         * tests/test-set-mode-acl.sh (ID): Likewise.
16242         * tests/test-copy-acl.sh (ID): Likewise.
16243         * tests/test-copy-file.sh (ID): Likewise.
16244
16245 2009-08-30  Bruno Haible  <bruno@clisp.org>
16246
16247         New module 'xstriconveh'.
16248         * lib/xstriconveh.h: New file.
16249         * lib/xstriconveh.c: New file.
16250         * modules/xstriconveh: New file.
16251
16252 2009-08-30  Bruno Haible  <bruno@clisp.org>
16253
16254         Make it easier to use mem_cd_iconveh.
16255         * lib/striconveh.h (iconveh_t): New type.
16256         (iconveh_open, iconveh_close): New declarations.
16257         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16258         with a single 'const iconveh_t *' argument.
16259         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16260         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16261         with a single 'const iconveh_t *' argument.
16262         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16263         * tests/test-striconveh.c (main): Update.
16264         * NEWS: Mention the change.
16265
16266 2009-08-30  Bruno Haible  <bruno@clisp.org>
16267
16268         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16269         problem.
16270
16271 2009-08-30  Bruno Haible  <bruno@clisp.org>
16272
16273         Work around iconv_open problem on Solaris.
16274         * lib/iconv_open-solaris.gperf: New file.
16275         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16276         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16277         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16278         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16279         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16280         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16281
16282 2009-08-29  Jim Meyering  <meyering@redhat.com>
16283
16284         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16285         * top/maint.mk (cvs-check): Remove target; it was just an alias
16286         to the better-named vc-diff-check.
16287         (maintainer-distcheck): Remove rule.  It was used only from
16288         the (alpha/beta/major) target, and all of its commands but one
16289         were coreutils-specific.
16290         (vc-dist): Remove rule.
16291         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16292         Run vc-diff-check, not vc-dist.
16293         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16294
16295 2009-08-27  Bruno Haible  <bruno@clisp.org>
16296
16297         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16298         of 0.
16299
16300 2009-08-27  Bruno Haible  <bruno@clisp.org>
16301
16302         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16303         compilers.
16304         * doc/func.texi: Document the SunPRO C bug.
16305
16306 2009-08-27  Bruno Haible  <bruno@clisp.org>
16307
16308         Fix link error on Solaris.
16309         * tests/test-parse-duration.c (xstrdup): Remove function.
16310
16311 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16312
16313         ignore-value: handle pointer types, too
16314         * lib/ignore-value.h (__attribute__): Remove definition.
16315         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16316         of a more concise and more-often effective "(void) i" statement.
16317         (ignore_ptr): New function to suppress warnings from functions that
16318         return pointers, and to make it explicit that one function doesn't
16319         handle all cases.
16320
16321 2009-08-25  Bruno Haible  <bruno@clisp.org>
16322
16323         dup2: work around a Linux bug.
16324         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16325         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16326         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16327         Reported by Simon Josefsson.
16328
16329 2009-08-25  Jim Meyering  <meyering@redhat.com>
16330
16331         libguestfs uses gnulib
16332         * users.txt: Add libguestfs.
16333
16334 2009-08-24  Eric Blake  <ebb9@byu.net>
16335
16336         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16337         * lib/pipe2.c (includes): Add binary-io.h.
16338         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16339
16340 2009-08-24  Bruno Haible  <bruno@clisp.org>
16341
16342         Tolerate declared but missing accept4 syscall.
16343         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16344         available.
16345         * lib/sys_socket.in.h (accept4): If the function is already present,
16346         override it.
16347         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16348         * modules/accept4 (Makefile.am): Compile accept4.c always.
16349         Reported by Paolo Bonzini and Eric Blake.
16350
16351 2009-08-23  Bruno Haible  <bruno@clisp.org>
16352
16353         New module 'accept4'.
16354         * lib/sys_socket.in.h (accept4): New declaration.
16355         * lib/accept4.c: New file.
16356         * m4/accept4.m4: New file.
16357         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16358         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16359         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16360         HAVE_ACCEPT4.
16361         * modules/accept4: New file.
16362         * doc/glibc-functions/accept4.texi: Mention the new module.
16363
16364 2009-08-24  Jim Meyering  <meyering@redhat.com>
16365
16366         progname: also set global program_invocation_name, when possible
16367         Before this change, a libtool-enabled program that calls glibc's
16368         error function would report the program name as
16369         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16370         * modules/progname (configure.ac): Check for a declaration of
16371         program_invocation_name.
16372         * lib/progname.c:  Include <errno.h>.
16373         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16374         Set program_invocation_name.
16375
16376 2009-08-23  Bruno Haible  <bruno@clisp.org>
16377
16378         * lib/dup3.c: Include <string.h>.
16379
16380 2009-08-23  Bruno Haible  <bruno@clisp.org>
16381
16382         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16383         * lib/pipe2.c (pipe2): Likewise.
16384         Suggested by Eric Blake.
16385
16386 2009-08-23  Bruno Haible  <bruno@clisp.org>
16387
16388         Tolerate declared but missing dup3 syscall.
16389         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16390         * lib/unistd.in.h (dup3): If the function is already present,
16391         override it.
16392         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16393         * modules/dup3 (Makefile.am): Compile dup3.c always.
16394         Reported by Paolo Bonzini.
16395
16396 2009-08-23  Bruno Haible  <bruno@clisp.org>
16397
16398         Tolerate declared but missing pipe2 syscall.
16399         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16400         available.
16401         * lib/unistd.in.h (pipe2): If the function is already present,
16402         override it.
16403         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16404         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16405         Reported by Paolo Bonzini.
16406
16407 2009-08-23  Bruno Haible  <bruno@clisp.org>
16408
16409         * lib/pipe2.c (pipe2): Move #ifs inside function.
16410
16411 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16412
16413         quotearg: document limitations of quote_these_too
16414         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16415         those limitations are created.
16416         * lib/quotearg.h (set_char_quoting): Document that digits and
16417         letters that are special after backslash are not permitted.
16418         (quotearg_char): Cross-reference set_char_quoting documentation.
16419
16420 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16421
16422         quotearg: implement custom_quoting_style
16423         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16424         right_quote fields.
16425         (set_custom_quoting): New public function.
16426         (quotearg_buffer_restyled): Add left_quote and right_quote
16427         arguments, handle them very much like locale quoting, and update
16428         all uses.
16429         (quotearg_n_custom): New public function.
16430         (quotearg_n_custom_mem): New public function.
16431         (quotearg_custom): New public function.
16432         (quotearg_custom_mem): New public function.
16433         * lib/quotearg.h: Prototype and document new public functions.
16434         (enum quoting_style): For escape_quoting_style and
16435         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16436         ignored even though they're otherwise like c_quoting_style.
16437         Add custom_quoting_style member and document with comparison to
16438         clocale_quoting_style.
16439         * tests/test-quotearg.c (custom_quotes): New array.
16440         (custom_results): New array.
16441         (main): Extend to test custom quoting.
16442
16443 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16444
16445         quotearg: fix right quote escaping when it's in quote_these_too
16446         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16447         quote, be sure to prepend only one backslash.
16448         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16449         (main): Test it.
16450
16451 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16452
16453         quotearg-tests: test escaping of embedded locale quotes
16454         * tests/test-quotearg.c (struct result_strings): Add member for
16455         new input.
16456         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16457         (inputs): Add new input.
16458         (results_g): Add expected results.
16459         (flag_results): Likewise.
16460         (locale_results): Likewise.
16461         (compare_strings): Check those.
16462
16463 2009-08-23  Bruno Haible  <bruno@clisp.org>
16464
16465         Tests for module 'dup3'.
16466         * modules/dup3-tests: New file.
16467         * tests/test-dup3.c: New file.
16468
16469         New module 'dup3'.
16470         * lib/unistd.in.h (dup3): New declaration.
16471         * lib/dup3.c: New file.
16472         * m4/dup3.m4: New file.
16473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16474         HAVE_DUP3.
16475         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16476         * modules/dup3: New file.
16477         * doc/glibc-functions/dup3.texi: Mention the new module.
16478
16479 2009-08-23  Bruno Haible  <bruno@clisp.org>
16480
16481         Tweak the dup2 test.
16482         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16483         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16484         the test file is still empty. Fix argument order of lseek.
16485
16486 2009-08-23  Bruno Haible  <bruno@clisp.org>
16487
16488         Avoid test link errors when the modules getopt-gnu, gettext are used.
16489         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16491
16492 2009-08-23  Bruno Haible  <bruno@clisp.org>
16493
16494         Fix getdtablesize() on mingw.
16495         * lib/getdtablesize.c (getdtablesize): Implement differently.
16496         * lib/unistd.in.h (getdtablesize): Improve comment.
16497
16498 2009-08-23  Bruno Haible  <bruno@clisp.org>
16499
16500         New module 'mkostemp'.
16501         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16502         * lib/stdlib.in.h (mksotemp): New declaration.
16503         * lib/mkostemp.c: New file, from glibc with modifications.
16504         * lib/tempname.h (GT_FILE): Remove outdated comment.
16505         (gen_tempname): Add flags argument.
16506         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16507         (__GT_FILE): Map to 1.
16508         (small_open, large_open): Remove macros.
16509         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16510         * lib/mkstemp.c (mkstemp): Update.
16511         * lib/mkdtemp.c (mkdtemp): Likewise.
16512         * m4/mkostemp.m4: New file.
16513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16514         HAVE_MKOSTEMP.
16515         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16516         HAVE_MKOSTEMP.
16517         * modules/mkostemp: New file, based on modules/mkstemp.
16518         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16519         * NEWS: Mention the change.
16520
16521 2009-08-23  Bruno Haible  <bruno@clisp.org>
16522
16523         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16524         Reported by Eric Blake.
16525
16526 2009-08-23  Bruno Haible  <bruno@clisp.org>
16527
16528         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16529         Reported by Eric Blake.
16530
16531 2009-08-23  Bruno Haible  <bruno@clisp.org>
16532
16533         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16534         * modules/pipe2 (Depends-on): Likewise.
16535
16536 2009-08-23  Eric Blake  <ebb9@byu.net>
16537
16538         fcntl-h: add O_TTY_INIT support
16539         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16540         * tests/test-fcntl-h.c (o): Test it.
16541         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16542
16543         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16544         * modules/fcntl: Move <fcntl.h> header replacement...
16545         * modules/fcntl-h: ...to new name, so as not to collide with
16546         like-named function.
16547         * tests/test-fcntl.c: Rename...
16548         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16549         * modules/fcntl-tests: Rename...
16550         * modules/fcntl-h-tests: ...to this.  Update test file name.
16551         * modules/chdir-long (Depends-on): Update clients.
16552         * modules/chdir-safer (Depends-on): Likewise.
16553         * modules/fcntl-safer (Depends-on): Likewise.
16554         * modules/fts (Depends-on): Likewise.
16555         * modules/mkancesdirs (Depends-on): Likewise.
16556         * modules/mkdir-p (Depends-on): Likewise.
16557         * modules/open (Depends-on): Likewise.
16558         * modules/savewd (Depends-on): Likewise.
16559         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16560         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16561
16562 2009-08-22  Bruno Haible  <bruno@clisp.org>
16563
16564         * modules/binary-io (License): Relicense under LGPL.
16565         * modules/pipe2 (License): Likewise.
16566
16567 2009-08-22  Bruno Haible  <bruno@clisp.org>
16568
16569         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16570         return value.
16571         * lib/pipe-filter-gi.c (filter_init): Likewise.
16572         Reported by Eric Blake.
16573
16574 2009-08-22  Bruno Haible  <bruno@clisp.org>
16575
16576         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16577         * modules/pipe (Depends-on): Add pipe2.
16578
16579 2009-08-22  Bruno Haible  <bruno@clisp.org>
16580
16581         Tests for module 'pipe2'.
16582         * modules/pipe2-tests: New file.
16583         * tests/test-pipe2.c: New file.
16584
16585         New module 'pipe2'.
16586         * lib/unistd.in.h (pipe2): New declaration.
16587         * lib/pipe2.c: New file.
16588         * m4/pipe2.m4: New file.
16589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16590         HAVE_PIPE2.
16591         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16592         * modules/pipe2: New file.
16593         * doc/glibc-functions/pipe2.texi: Mention the new module.
16594
16595 2009-08-22  Bruno Haible  <bruno@clisp.org>
16596
16597         Reference some new glibc functions.
16598         * doc/glibc-functions/accept4.texi: New file.
16599         * doc/glibc-functions/dup3.texi: New file.
16600         * doc/glibc-functions/mkostemp.texi: New file.
16601         * doc/glibc-functions/pipe2.texi: New file.
16602         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16603         (Glibc sys/socket.h): Refer to accept4.
16604         (Glibc unistd.h): Refer to dup3, pipe2.
16605         Reported by Eric Blake.
16606
16607 2009-08-22  Jim Meyering  <meyering@redhat.com>
16608             Bruno Haible  <bruno@clisp.org>
16609
16610         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16611         This makes it so packages using automake-1.11's silent-rules option
16612         can print e.g., a single "GEN    configmake.h" line, rather than
16613         the 30+ statements that perform the job.  If you want to see the
16614         actual commands, you can still run "make V=1".
16615         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16616         so that make output is abbreviated when those variables are defined
16617         appropriately.
16618         * modules/argz: Likewise.
16619         * modules/arpa_inet: Likewise.
16620         * modules/byteswap: Likewise.
16621         * modules/configmake: Likewise.
16622         * modules/dirent: Likewise.
16623         * modules/errno: Likewise.
16624         * modules/fcntl: Likewise.
16625         * modules/float: Likewise.
16626         * modules/fnmatch: Likewise.
16627         * modules/getopt-posix: Likewise.
16628         * modules/glob: Likewise.
16629         * modules/iconv_open: Likewise.
16630         * modules/inttypes: Likewise.
16631         * modules/localcharset: Likewise.
16632         * modules/locale: Likewise.
16633         * modules/math: Likewise.
16634         * modules/netdb: Likewise.
16635         * modules/netinet_in: Likewise.
16636         * modules/poll: Likewise.
16637         * modules/posix_spawnp-tests: Likewise.
16638         * modules/sched: Likewise.
16639         * modules/search: Likewise.
16640         * modules/selinux-h: Likewise.
16641         * modules/signal: Likewise.
16642         * modules/spawn: Likewise.
16643         * modules/stdarg: Likewise.
16644         * modules/stdbool: Likewise.
16645         * modules/stddef: Likewise.
16646         * modules/stdint: Likewise.
16647         * modules/stdio: Likewise.
16648         * modules/stdlib: Likewise.
16649         * modules/string: Likewise.
16650         * modules/strings: Likewise.
16651         * modules/sys_file: Likewise.
16652         * modules/sys_ioctl: Likewise.
16653         * modules/sys_select: Likewise.
16654         * modules/sys_socket: Likewise.
16655         * modules/sys_stat: Likewise.
16656         * modules/sys_time: Likewise.
16657         * modules/sys_times: Likewise.
16658         * modules/sys_utsname: Likewise.
16659         * modules/sys_wait: Likewise.
16660         * modules/sysexits: Likewise.
16661         * modules/time: Likewise.
16662         * modules/unistd: Likewise.
16663         * modules/wchar: Likewise.
16664         * modules/wctype: Likewise.
16665
16666 2009-08-22  Jim Meyering  <meyering@redhat.com>
16667
16668         announce-gen: detect write failure
16669         * build-aux/announce-gen: Add Coda at end.
16670         Remove equivalent-but-more-verbose block at top.
16671
16672 2009-08-19  Akim Demaille  <demaille@gostai.com>
16673
16674         bootstrap: --help to stdout.
16675         * bootstrap (usage): Don't send --help to stderr.
16676         Use a here doc instead of a long string.
16677
16678 2009-08-21  Eric Blake  <ebb9@byu.net>
16679
16680         test-popen-safer: split from test-popen
16681         * tests/test-popen.c (main): Move...
16682         * tests/test-popen.h: ...into new file.
16683         * tests/test-popen-safer2.c: New file.
16684         * modules/popen-tests (Files): Add test-popen.h.
16685         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16686         Suggested by Bruno Haible.
16687
16688         test-fcntl-safer: split from test-open
16689         * tests/test-open.c (main): Move...
16690         * tests/test-open.h: ...into new file.
16691         * tests/test-fcntl-safer.c: New file.
16692         * modules/open-tests (Files): Add test-open.h.
16693         * modules/fcntl-safer-tests: New file.
16694         Suggested by Bruno Haible.
16695
16696         test-fopen-safer: split from test-fopen
16697         * tests/test-fopen.c (main): Move...
16698         * tests/test-fopen.h: ...into new file.
16699         * tests/test-fopen-safer.c: New file.
16700         * modules/fopen-tests (Files): Add test-fopen.h.
16701         * modules/fopen-safer-tests: New file.
16702         Suggested by Bruno Haible.
16703
16704 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16705
16706         popen-safer: test O_CLOEXEC at run-time.
16707         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16708
16709 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16710
16711         fcntl: move more flags to the header
16712         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16713         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16714         * lib/fcntl.in.h: Do both things here.
16715
16716 2009-08-21  Jim Meyering  <meyering@redhat.com>
16717
16718         consistently remove $@-t before redirecting to it
16719         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16720         * modules/alloca-opt: Likewise.
16721         * modules/byteswap: Likewise.
16722         * modules/fnmatch: Likewise.
16723         * modules/getopt-posix: Likewise.
16724         * modules/glob: Likewise.
16725         * modules/poll: Likewise.
16726         * modules/posix_spawnp-tests: Likewise.
16727         * modules/sys_socket: Likewise.
16728         * modules/sysexits: Likewise.
16729
16730 2009-08-21  Eric Blake  <ebb9@byu.net>
16731
16732         popen: simplify access to original popen
16733         * lib/popen.c (rpl_popen): No need to worry about popen being a
16734         macro.
16735         Reported by Bruno Haible.
16736
16737 2009-08-20  Eric Blake  <ebb9@byu.net>
16738
16739         build: avoid some compiler warnings
16740         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16741         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16742         type.
16743         (new_exclude_segment, excluded_file_pattern_p)
16744         (excluded_file_name_p): Reduce scope.
16745         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16746         old-style declaration.
16747
16748 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16749
16750         * tests/test-exclude1.sh: Handle Windows EOL.
16751         * tests/test-exclude2.sh: Likewise.
16752         * tests/test-exclude3.sh: Likewise.
16753         * tests/test-exclude4.sh: Likewise.
16754         * tests/test-exclude5.sh: Likewise.
16755         * tests/test-exclude6.sh: Likewise.
16756         * tests/test-exclude7.sh: Likewise.
16757
16758 2009-08-19  Akim Demaille  <demaille@gostai.com>
16759
16760         bootstrap: find sha1sum when named gsha1sum.
16761         * bootstrap (find_tool): New.
16762         ($SHA1SUM): New.
16763         Use it.
16764
16765 2009-08-20  Jim Meyering  <meyering@redhat.com>
16766
16767         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16768         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16769         expression that converts "." in a file name to "\." in the resulting
16770         regexp.  Start with a dummy statement, so that prior shell variable
16771         definitions are expanded portably.  Reported by Simon Josefsson.
16772
16773 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16774
16775         Fix polling for writeability of a screen buffer.
16776         * lib/poll.c: Distinguish input and screen buffers for the
16777         Win32 implementation.
16778         * lib/select.c: Likewise.
16779
16780 2009-08-19  Eric Blake  <ebb9@byu.net>
16781
16782         popen-safer: prevent popen from clobbering std descriptors
16783         * modules/popen-safer: New file.
16784         * lib/popen-safer.c: Likewise.
16785         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16786         * lib/stdio--.h (popen): Provide override.
16787         * lib/stdio-safer.h (popen_safer): Provide declaration.
16788         * tests/test-popen.c (includes): Partially test this.
16789         * modules/popen-safer-tests: New file, for more tests.
16790         * tests/test-popen-safer.c: Likewise.
16791         * MODULES.html.sh (file stream based Input/Output): Mention it.
16792
16793         tests: test some of the *-safer modules
16794         * modules/fopen-safer (Depends-on): Add fopen.
16795         * modules/fcntl-safer (Depends-on): Add fcntl.
16796         * modules/stdlib-safer (Depends-on): Add stdlib.
16797         (configure.ac): Set indicator.
16798         * modules/unistd-safer (configure.ac): Likewise.
16799         * modules/tmpfile-safer (configure.ac): Likewise.
16800         (Depends-on): Add tmpfile.
16801         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16802         active.
16803         * tests/test-fopen.c (includes): Test safer versions when they are
16804         in use.
16805         * tests/test-open.c (includes): Likewise.
16806
16807         popen: fix cygwin 1.5 bug when stdin closed
16808         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16809         * modules/popen: New file.
16810         * modules/popen-tests: Likewise.
16811         * tests/test-popen.c: Likewise.
16812         * m4/popen.m4: Likewise.
16813         * lib/popen.c: Likewise.
16814         * lib/stdio.in.h (popen): New declaration.
16815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16816         * modules/stdio (Makefile.am): Likewise.
16817         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16818
16819 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16820
16821         maint.mk: give full control over update-copyright exclusions
16822         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16823         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16824         (update-copyright): Don't force inclusion of top-level
16825         ChangeLog.  Don't force exclusion of all COPYING files, but make
16826         them the default exclusion instead.
16827
16828 2009-08-16  Bruno Haible  <bruno@clisp.org>
16829
16830         Fix test failures on Solaris 10.
16831         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16832         tests when Solaris iconv() is used.
16833         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16834         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16835         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16836         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16837         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16838
16839 2009-08-16  Bruno Haible  <bruno@clisp.org>
16840
16841         Fix test failures on Solaris 10.
16842         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16843         'tr' program and pass it as first argument.
16844         * tests/test-pipe-filter-gi1.sh: Likewise.
16845         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16846         program as first argument.
16847         * tests/test-pipe-filter-gi1.c (main): Likewise.
16848
16849 2009-08-16  Eric Blake  <ebb9@byu.net>
16850
16851         fpurge: fix previous commits
16852         * modules/fpurge (Makefile.am): Make replacement conditional,
16853         partially reverting 2007-04-29 change; missed in previous
16854         attempt.
16855         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16856         is missing.
16857
16858 2009-08-16  Bruno Haible  <bruno@clisp.org>
16859
16860         Clarify fpurge's effect on the file position.
16861         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16862         * tests/test-fpurge.c (main): Make a second pass for checking the file
16863         position.
16864
16865 2009-08-16  Bruno Haible  <bruno@clisp.org>
16866
16867         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16868         declaration of fpurge is missing.
16869         * tests/test-fpurge.c (main): Check that the file has not more contents
16870         than expected. Close the file before removing it.
16871
16872 2009-08-15  Eric Blake  <ebb9@byu.net>
16873
16874         fpurge: don't wrap working cygwin implementation
16875         * lib/fpurge.c (fpurge): Fix comment typo.
16876         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16877         1.7 to avoid replacement.
16878         * tests/test-fpurge.c (main): Enhance test.
16879
16880 2009-08-15  Eric Blake  <ebb9@byu.net>
16881         and Jim Meyering  <meyering@redhat.com>
16882
16883         test-update-copyright: skip if perl is insufficient
16884         * tests/test-update-copyright.sh: Failure to run maintainer tool
16885         should not cause testsuite failure on cygwin 1.5.
16886
16887 2009-08-14  Eric Blake  <ebb9@byu.net>
16888
16889         doc: mention more functions added in cygwin 1.7.0
16890         * doc/posix-headers/limits.texi (limits.h): Update for recent
16891         cygwin additions.
16892         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16893         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16894         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16895         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16896         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16897
16898 2009-08-14  Eric Blake  <ebb9@byu.net>
16899
16900         maint.mk: simplify update-copyright rule
16901         * top/maint.mk (update-copyright-local): Delete, and document how
16902         to do it in cfg.mk instead.
16903         (update-copyright-exclude-regexp): Delete, and document how to do
16904         it in .x-update-copyright instead.
16905         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16906         exclude ChangeLog.
16907
16908 2009-08-14  Bruno Haible  <bruno@clisp.org>
16909
16910         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16911
16912 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16913
16914         maint.mk: support update-copyright-env
16915         * top/maint.mk (update-copyright-env): Define place-holder.
16916         (update-copyright): Expand $(update-copyright-env) before
16917         invoking update-copyright.
16918
16919 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16920
16921         update-copyright: implement forced reformatting
16922         * build-aux/update-copyright: Implement and document
16923         UPDATE_COPYRIGHT_FORCE.
16924         * tests/test-update-copyright.sh: Test it.
16925
16926 2009-08-14  Eric Blake  <ebb9@byu.net>
16927         and Bruno Haible  <bruno@clisp.org>
16928
16929         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16930         * tests/test-locale.c: Revert previous patch related to NULL.
16931         * tests/test-stdio.c: Likewise.
16932         * tests/test-stdlib.c: Likewise.
16933         * tests/test-string.c: Likewise.
16934         * tests/test-unistd.c: Likewise.
16935         * modules/time-tests (Depends-on): Add verify.
16936         * modules/wchar-tests (Depends-on): Likewise.
16937         * tests/test-time.c: Test for NULL compliance.
16938         * tests/test-wchar.c: Likewise.
16939         * modules/locale (Depends-on): Add stddef.
16940         * modules/stdio (Depends-on): Likewise.
16941         * modules/stdlib (Depends-on): Likewise.
16942         * modules/string (Depends-on): Likewise.
16943         * modules/time (Depends-on): Likewise.
16944         * modules/unistd (Depends-on): Likewise.
16945         * modules/wchar (Depends-on): Likewise.
16946         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16947         * lib/stdlib.in.h (includes): Likewise.
16948         * lib/string.in.h (includes): Likewise.
16949         * lib/time.in.h (includes): Likewise.
16950         * lib/unistd.in.h (includes): Likewise.
16951         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16952         replaced.
16953         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16954         * m4/stddef_h.m4: New file.
16955         * modules/stddef: Likewise.
16956         * lib/stddef.in.h: Likewise.
16957         * modules/stddef-tests: Likewise.
16958         * tests/test-stddef.c: Likewise.
16959         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
16960         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
16961         * doc/posix-headers/locale.texi (locale.h): Likewise.
16962         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
16963         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16964         * doc/posix-headers/string.texi (string.h): Likewise.
16965         * doc/posix-headers/time.texi (time.h): Likewise.
16966         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
16967         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
16968
16969 2009-08-14  Eric Blake  <ebb9@byu.net>
16970
16971         doc: improve git diff of texinfo files
16972         * .gitattributes: Add rule for *.texi files, with hint on how to
16973         use it.
16974         Copied from m4, and based on a report by Bruno Haible.
16975
16976 2009-08-14  Bruno Haible  <bruno@clisp.org>
16977
16978         Disable multithread support by default on Cygwin 1.5.x for real.
16979         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
16980
16981 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16982
16983         update-copyright: much ado about intervals
16984         * build-aux/update-copyright: Implement and document
16985         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
16986         of copyright year intervals.
16987         Also, document UPDATE_COPYRIGHT_YEAR.
16988         * tests/test-update-copyright.sh: Test it.
16989
16990         update-copyright: convert 2-digit to 4-digit years
16991         * build-aux/update-copyright: Implement and document.
16992         * tests/test-update-copyright.sh: Update.
16993
16994 2009-08-14  Jim Meyering  <meyering@redhat.com>
16995
16996         test-exclude: avoid coreutils "make check" failure
16997         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
16998         just as in test-argmatch.c.
16999
17000 2009-08-13  Eric Blake  <ebb9@byu.net>
17001
17002         test-dup2: fix bad assumption
17003         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17004         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17005
17006         test-version-etc: fix CRLF portability issue
17007         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17008         recognize \r.
17009         * tests/test-argp-version-etc-1.sh: Likewise.
17010
17011         getopt: update client modules
17012         * modules/argp (Depends-on): Use getopt-gnu.
17013         * modules/git-merge-changelog (Depends-on): Likewise.
17014         * modules/long-options (Depends-on): Likewise.
17015         * modules/xstrtol (Depends-on): Likewise.
17016
17017 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17018
17019         * tests/test-version-etc.sh: Don't fail on different
17020         project/version.  Don't fail on CRLF differences.  Rewrite to use
17021         multiple -e instead of multiple sed forks, suggested by Eric Blake
17022         <ebb9@byu.net>.
17023         * tests/test-argp-version-etc-1.sh: Likewise.
17024
17025 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17026
17027         * tests/test-version-etc.sh: Don't fail on different
17028         project/version.
17029
17030 2009-08-12  Bruno Haible  <bruno@clisp.org>
17031
17032         Tests for modules 'getopt-posix', 'getopt-gnu'.
17033         * modules/getopt-posix-tests: New file.
17034         * tests/test-getopt.c: New file.
17035         * tests/test-getopt.h: New file.
17036         * tests/test-getopt_long.h: New file.
17037
17038         New modules 'getopt-posix', 'getopt-gnu'.
17039         * modules/getopt-gnu: New file, renamed from modules/getopt.
17040         * modules/getopt-posix: New file.
17041         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17042         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17043         (gl_GETOPT): Remove macro.
17044         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17045         Disable the test against BSD systems that declare optreset. Test
17046         against mingw bug. Test against lack of support of optional arguments
17047         on many platforms.
17048         * doc/glibc-headers/getopt.texi: Update module name and list of
17049         relevant platforms.
17050         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17051         'getopt-gnu' and more portability problems.
17052         * NEWS: Mention the changes.
17053
17054 2009-08-12  Bruno Haible  <bruno@clisp.org>
17055
17056         Ensure that optarg etc. get declared by <unistd.h>.
17057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17058         AC_USE_SYSTEM_EXTENSIONS.
17059         * modules/getopt (Depends-on): Add 'extensions'.
17060
17061 2009-08-12  Bruno Haible  <bruno@clisp.org>
17062
17063         Avoid test link errors.
17064         * modules/pipe-filter-ii-tests (Makefile.am): Define
17065         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17066         * modules/pipe-filter-gi-tests (Makefile.am): Define
17067         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17069
17070 2009-08-12  Bruno Haible  <bruno@clisp.org>
17071
17072         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17073         gl_GETOPT_SUBSTITUTE before.
17074         (gl_GETOPT): Use it.
17075         * m4/argp.m4 (gl_ARGP): Update.
17076         Reported by Sergey Poznyakoff.
17077
17078         * m4/getopt.m4: Reorder macros.
17079         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17080         (gl_GETOPT_SUBSTITUTE): Remove macro.
17081
17082 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17083
17084         Minor improvement in gitlog-to-changelog
17085
17086         * build-aux/gitlog-to-changelog: New option `--format' makes
17087         output format string configurable.
17088
17089 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17090
17091         Optimize exclude: use hash tables for non-wildcard patterns.
17092
17093         * lib/exclude.c: Include hash.h and mbuiter.h
17094         (struct exclude_pattern, exclude_segment): New data types.
17095         (struct exclude): Rewrite.
17096         (fnmatch_pattern_has_wildcards): New function.
17097         (new_exclude_segment, free_exclude_segment): New functions.
17098         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17099         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17100         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17101         * modules/exclude: Depend on hash and mbuiter.
17102
17103         * modules/exclude-tests: New file.
17104         * tests/test-exclude.c: New file.
17105         * tests/test-exclude1.sh: New file.
17106         * tests/test-exclude2.sh: New file.
17107         * tests/test-exclude3.sh: New file.
17108         * tests/test-exclude4.sh: New file.
17109         * tests/test-exclude5.sh: New file.
17110         * tests/test-exclude6.sh: New file.
17111         * tests/test-exclude7.sh: New file.
17112
17113 2009-08-12  Bruno Haible  <bruno@clisp.org>
17114
17115         Ensure that getopt() gets declared by <unistd.h>.
17116         * lib/unistd.in.h: Conditionally include getopt.h.
17117         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17118         Set GNULIB_UNISTD_H_GETOPT.
17119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17120         GNULIB_UNISTD_H_GETOPT.
17121         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17122
17123 2009-08-12  Bruno Haible  <bruno@clisp.org>
17124
17125         Clarify logic.
17126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17127         gl_replace_getopt instead of GETOPT_H.
17128
17129 2009-08-12  Bruno Haible  <bruno@clisp.org>
17130
17131         * m4/getopt.m4: Add comments.
17132
17133 2009-08-12  Bruno Haible  <bruno@clisp.org>
17134
17135         Disable multithread support by default on Cygwin 1.5.x.
17136         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17137         set gl_use_threads=no if not specified otherwise.
17138
17139 2009-08-11  Bruno Haible  <bruno@clisp.org>
17140
17141         Avoid compilation error on NetBSD 5.0.
17142         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17143         * tests/test-stdio.c: Likewise.
17144         * tests/test-stdlib.c: Likewise.
17145         * tests/test-string.c: Likewise.
17146         * tests/test-unistd.c: Likewise.
17147         Reported by Greg Troxel <gdt@ir.bbn.com>
17148         at <https://savannah.gnu.org/support/?106973>.
17149
17150 2009-08-11  Bruno Haible  <bruno@clisp.org>
17151
17152         * modules/dup2-tests (Depends-on): Remove close.
17153
17154         Undo 2009-07-19 commit.
17155         * modules/acl-tests (Depends-on): Remove close.
17156         * modules/binary-io-tests (Depends-on): Likewise.
17157         * modules/closein-tests (Depends-on): Likewise.
17158         * modules/flock-tests (Depends-on): Likewise.
17159         * modules/fsync-tests (Depends-on): Likewise.
17160         * modules/lseek-tests (Depends-on): Likewise.
17161         * modules/pipe-tests (Depends-on): Likewise.
17162         * modules/posix_spawn-tests (Depends-on): Likewise.
17163         * modules/posix_spawnp-tests (Depends-on): Likewise.
17164         * modules/stat-time-tests (Depends-on): Likewise.
17165         * modules/yesno-tests (Depends-on): Likewise.
17166
17167 2009-08-10  Bruno Haible  <bruno@clisp.org>
17168
17169         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17170
17171 2009-08-10  Bruno Haible  <bruno@clisp.org>
17172
17173         Fix a gcc warning.
17174         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17175
17176 2009-08-10  Bruno Haible  <bruno@clisp.org>
17177
17178         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17179         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17180         not only the first time.
17181         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17182         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17183         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17184         is 1, not only the the first time.
17185
17186 2009-08-10  Bruno Haible  <bruno@clisp.org>
17187
17188         Make it possible to use module 'gethostname' without module 'close'.
17189         * lib/unistd.in.h (close): Evoke a link error only if
17190         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17192         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17193         * modules/unistd (Makefile.am): Substitute
17194         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17195         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17196         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17197         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17198         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17199         * modules/sys_ioctl (Makefile.am): Substitute
17200         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17201         * modules/socket (configure.ac): On native Windows, set
17202         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17203         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17204         Reported by Sam Steingold <sds@gnu.org>.
17205
17206 2009-08-10  Bruno Haible  <bruno@clisp.org>
17207
17208         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17209         * modules/ioctl (configure.ac): Likewise.
17210
17211 2009-08-10  Bruno Haible  <bruno@clisp.org>
17212
17213         Avoid collision between gnulib wrapper and libintl wrapper.
17214         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17215         already defined in intl/printf.c.
17216         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17217         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17218
17219 2009-08-09  Bruno Haible  <bruno@clisp.org>
17220
17221         Make <sys/select.h> really self-contained, also on Solaris 10.
17222         * lib/sys_select.in.h: Include <string.h>.
17223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17224         Solaris 10 problem.
17225         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17226         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17227         Reported by Jim Meyering.
17228
17229 2009-08-09  Bruno Haible  <bruno@clisp.org>
17230
17231         Avoid warnings from 'aclocal' that are due to a use of macro name
17232         AM_XGETTEXT_OPTION that is not defined in automake.
17233         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17234         automake.
17235         * modules/error (configure.ac): Likewise.
17236         * modules/propername (configure.ac): Likewise.
17237         * modules/vasprintf (configure.ac): Likewise.
17238         * modules/verror (configure.ac): Likewise.
17239         * modules/xprintf (configure.ac): Likewise.
17240         * modules/xvasprintf (configure.ac): Likewise.
17241
17242 2009-08-08  Bruno Haible  <bruno@clisp.org>
17243
17244         Avoid compilation error in C++ mode.
17245         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17246         Reported by Sam Steingold <sds@gnu.org>.
17247
17248 2009-08-08  Bruno Haible  <bruno@clisp.org>
17249
17250         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17251         for the various Unix platforms.
17252         * doc/posix-headers/limits.texi: Update platforms list regarding
17253         HOST_NAME_MAX.
17254         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17255
17256 2009-08-07  Jim Meyering  <meyering@redhat.com>
17257
17258         selinux-at: fix typo in a comment
17259         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17260         Spotted by Paolo Bonzini.
17261
17262         selinux-at: remove redundant m4 code, add documentation
17263         * modules/selinux-at (configure.ac): Remove redundant code.
17264         LIB_SELINUX is already set via the dependent module, selinux-h.
17265         (Include): Add quotes around selinux-at.h.
17266         * lib/selinux-at.h: Add documentation.
17267         Reported by Bruno Haible in
17268         http://marc.info/?l=gnulib-bug&m=124958988300749
17269
17270 2009-08-07  Bruno Haible  <bruno@clisp.org>
17271
17272         Avoid link error on MacOS X 10.3 and 10.4.
17273         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17274         on non-ELF systems.
17275         * lib/argp-pv.c (argp_program_version): Likewise.
17276         Reported by Simon Josefsson.
17277
17278 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17279
17280         * tests/test-version-etc.sh: Use $EXEEXT.
17281
17282 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17283
17284         update-copyright: update documentation to point to maint.mk
17285         * build-aux/update-copyright: Here.
17286
17287 2009-08-06  Jim Meyering  <meyering@redhat.com>
17288
17289         maint.mk: support update-copyright-local
17290         * top/maint.mk (update-copyright-local): Define place-holder.
17291         (update-copyright): Depend on $(update-copyright-local).
17292
17293 2009-08-06  Jim Meyering  <meyering@redhat.com>
17294
17295         selinux-at: new module
17296         Initially written for coreutils, this module will soon be
17297         used by findutils, too.
17298         * MODULES.html.sh [Misc]: Add selinux-at.
17299         * lib/selinux-at.h: New file, from coreutils.
17300         * lib/selinux-at.c: Likewise.
17301         * modules/selinux-at: Likewise.
17302         (License): Change from LGPL to GPL, since it depends
17303         on the GPL'd openat module.
17304
17305         doc: update README
17306         * README: Remove references to cogito.
17307         Remove cvs-repo-updating instructions from 2007.
17308         Don't imply that CVS is better if you have limited disk space.
17309
17310 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17311
17312         update-copyright: support C-style comments
17313         * build-aux/update-copyright: Implement and document.
17314         * tests/test-update-copyright.sh: Test.
17315
17316 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17317
17318         update-copyright: support omitted "(C)"
17319         * build-aux/update-copyright: Implement and document.  Also,
17320         allow variable whitespace before "(C)".
17321         * tests/test-update-copyright.sh: Test.
17322
17323 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17324
17325         update-copyright: don't trip on non-FSF copyright statements
17326         * build-aux/update-copyright: Fix so that the first correctly
17327         formatted FSF copyright statement is recognized no matter what
17328         appears before it.  Update documentation.
17329         * tests/test-update-copyright.sh: Test that.
17330
17331 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17332
17333         update-copyright: clean up code a little
17334         * build-aux/update-copyright: Append "_re" to the name of any
17335         variable holding a regular expression.
17336         Replace "old" and "new" with "stmt" in variable names.
17337         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17338         handled correctly.
17339         Format code more consistently.
17340
17341 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17342
17343         update-copyright-tests: improve portability
17344         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17345         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17346
17347 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17348
17349         update-copyright: support @copyright{} and &copy;
17350         * build-aux/update-copyright: Implement and document.
17351         * tests/test-update-copyright.sh: Test.
17352
17353 2009-08-04  Jim Meyering  <meyering@redhat.com>
17354
17355         update-copyright-tests: correctly test EOL=\r\n handling
17356         * tests/test-update-copyright.sh: Put \r at the end of some lines
17357         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17358
17359         maint.mk: make update-copyright exclusion list more configurable
17360         * top/maint.mk (update-copyright): Default to excluding COPYING,
17361         but allow an override, in case someone does want to update that file.
17362
17363         maint.mk: don't update copyright date in COPYING
17364         * top/maint.mk (update-copyright): Exclude COPYING.
17365
17366         maint.mk: add a copyright-updating rule
17367         * top/maint.mk (update-copyright): New rule.
17368         Derived from coreutils/Makefile.am.
17369
17370         update-copyright: rename some variables
17371         * build-aux/update-copyright: Rename a few variables for clarity.
17372         Tweak syntax.  List Joel E. Denny as coauthor.
17373
17374 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17375
17376         update-copyright: fix bug for 2-digit last year and add tests
17377         * build-aux/update-copyright: Fix bug.
17378         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17379         specified.
17380         * modules/update-copyright-tests: New
17381         * tests/test-update-copyright.sh: New.
17382
17383 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17384
17385         update-copyright: handle leading tabs in line prefix
17386         * build-aux/update-copyright: Count leading tabs as 8 spaces
17387         when computing margin.  This helps with the formatting of
17388         ChangeLogs, for example.
17389         Fix documentation a little.
17390
17391 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17392
17393         update-copyright: support EOL=\r\n
17394         * build-aux/update-copyright: Implement that.
17395
17396 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17397
17398         update-copyright: automatically format copyright statements
17399         * build-aux/update-copyright: Implement that.
17400         Also, be a little more predictable and safer by always failing
17401         when the full copyright format is not perfectly recognized as an
17402         unbroken whole.  Discussed at
17403         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17404         Rewrite documentation.
17405
17406 2009-08-03  Bruno Haible  <bruno@clisp.org>
17407
17408         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17409
17410 2009-08-02  Bruno Haible  <bruno@clisp.org>
17411
17412         Tests for module 'uname'.
17413         * modules/uname-tests: New file.
17414         * tests/test-uname.c: New file.
17415
17416         New module 'uname'.
17417         * lib/uname.c: New file.
17418         * m4/uname.m4: New file.
17419         * modules/uname: New file.
17420         * doc/posix-functions/uname.texi: Mention the new module.
17421
17422 2009-08-02  Bruno Haible  <bruno@clisp.org>
17423
17424         Tests for module 'sys_utsname'.
17425         * modules/sys_utsname-tests: New file.
17426         * tests/test-sys_utsname.c: New file.
17427
17428         New module 'sys_utsname'.
17429         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17430         * m4/sys_utsname_h.m4: New file.
17431         * modules/sys_utsname: New file.
17432         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17433
17434 2009-08-02  Bruno Haible  <bruno@clisp.org>
17435
17436         Implicitly initialize the sockets library.
17437         * lib/gethostname.c: Include sockets.h.
17438         (rpl_gethostname): Invoke gl_sockets_startup.
17439         * lib/socket.c: Include sockets.h.
17440         (rpl_socket): Invoke gl_sockets_startup.
17441         * modules/gethostname (Depends-on): Add sockets.
17442         * modules/socket (Depends-on): Likewise.
17443         * tests/test-poll.c: Don't include sockets.h.
17444         (main): Don't invoke gl_sockets_startup.
17445         * tests/test-select.c: Don't include sockets.h.
17446         (main): Don't invoke gl_sockets_startup.
17447
17448 2009-08-02  Bruno Haible  <bruno@clisp.org>
17449
17450         Allow multiple calls to gl_sockets_startup.
17451         * lib/sockets.c (initialized_sockets_version): New variable.
17452         (gl_sockets_startup): Do nothing if already called for this or a higher
17453         version.
17454         (gl_sockets_cleanup): Reset initialized_sockets_version.
17455
17456 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17457
17458         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17459         different project/version.
17460
17461 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17462             Bruno Haible  <bruno@clisp.org>
17463
17464         Tests for module 'pipe-filter-gi'.
17465         * modules/pipe-filter-gi-tests: New file.
17466         * tests/test-pipe-filter-gi1.sh: New file.
17467         * tests/test-pipe-filter-gi1.c: New file.
17468         * tests/test-pipe-filter-gi2.sh: New file.
17469         * tests/test-pipe-filter-gi2-main.c: New file.
17470         * tests/test-pipe-filter-gi2-child.c: New file.
17471
17472         New module 'pipe-filter-gi'.
17473         * lib/pipe-filter-gi.c: New file.
17474         * modules/pipe-filter-gi: New file.
17475
17476 2009-08-02  Bruno Haible  <bruno@clisp.org>
17477             Paolo Bonzini  <bonzini@gnu.org>
17478
17479         Tests for module 'pipe-filter-ii'.
17480         * modules/pipe-filter-ii-tests: New file.
17481         * tests/test-pipe-filter-ii1.sh: New file.
17482         * tests/test-pipe-filter-ii1.c: New file.
17483         * tests/test-pipe-filter-ii2.sh: New file.
17484         * tests/test-pipe-filter-ii2-main.c: New file.
17485         * tests/test-pipe-filter-ii2-child.c: New file.
17486
17487         New module 'pipe-filter-ii'.
17488         * lib/pipe-filter.h: New file.
17489         * lib/pipe-filter-ii.c: New file.
17490         * lib/pipe-filter-aux.h: New file.
17491         * modules/pipe-filter-ii: New file.
17492
17493 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17494
17495         * lib/gc-libgcrypt.c: Change copyright to FSF.
17496         * lib/gc-gnulib.c: Likewise.
17497
17498 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17499
17500         * lib/gethostname.c: Include limits.h.
17501
17502 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17503             Bruno Haible  <bruno@clisp.org>
17504
17505         Ensure HOST_NAME_MAX as part of the gethostname module.
17506         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17507         define also HOST_NAME_MAX.
17508         * tests/test-gethostname.c: Include <limits.h>.
17509         (main): Check also HOST_NAME_MAX.
17510         * doc/posix-headers/limits.texi: Document the mingw problem.
17511
17512 2009-08-02  Bruno Haible  <bruno@clisp.org>
17513
17514         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17515         Add comments.
17516
17517 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17518
17519         * lib/gethostname.c: Add Windows wrapper.
17520         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17521         * modules/gethostname: Depend on sys_socket & errno, for also
17522         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17523         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17524
17525 2009-07-31  Jim Meyering  <meyering@redhat.com>
17526
17527         getloadavg: fix symbol name in comment
17528         * lib/getloadavg.c: Correct a typo I introduced when adding
17529         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17530         Matt Kraai spotted the problem.
17531
17532 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17533
17534         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17535         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17536         code also if ! defined N_NAME_POINTER.
17537         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17538         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17539         but the n_name member is a 12-byte array.
17540
17541 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17542
17543         update-copyright: generalize comment handling
17544         * build-aux/update-copyright: Handle copyright statements
17545         within more comment styles.
17546         Document usage.
17547         Report any file with an external copyright holder or parse failure.
17548
17549 2009-07-29  Jim Meyering  <meyering@redhat.com>
17550
17551         mktime: correct setting of REPLACE_MKTIME
17552         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17553
17554         update-copyright: new module
17555         * modules/update-copyright: New file.
17556         * build-aux/update-copyright: New file.
17557         * MODULES.html.sh (maint+release support): Add update-copyright.
17558
17559 2009-07-27  Bruno Haible  <bruno@clisp.org>
17560
17561         Fix compilation error when <ctime> is used and mktime is replaced.
17562         * lib/time.in.h (mktime): New declaration.
17563         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17564         REPLACE_MKTIME instead of defining mktime in config.h.
17565         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17566         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17567         Reported by Ross McFarland <rwmcfa1@neces.com>.
17568
17569 2009-07-27  Bruno Haible  <bruno@clisp.org>
17570
17571         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17572         Reported by Matt Kraai <mkraai@beckman.com>.
17573
17574 2009-07-25  Jim Meyering  <meyering@redhat.com>
17575
17576         maint.mk: avoid warnings about missing files
17577         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17578         diagnostic when .prev-version does not exist.
17579         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17580         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17581         nonexistent cfg.mk.
17582         Suggestions from Simon Josefsson.
17583
17584 2009-07-25  Bruno Haible  <bruno@clisp.org>
17585
17586         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17587         defined as macros. Needed on QNX 6.4.1.
17588         Reported by Matt Kraai <mkraai@beckman.com>.
17589
17590 2009-07-23  Jim Meyering  <meyering@redhat.com>
17591
17592         maint.mk: invoke "make dist" with a working value of XZ_OPT
17593         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17594
17595 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17596
17597         Make fseeko.c compile on QNX.
17598         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17599
17600 2009-07-22  Peter Simons  <simons@cryp.to>
17601
17602         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17603         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17604         * lib/md4.h: Likewise.
17605         * lib/md5.h: Likewise.
17606         * lib/sha1.h: Likewise.
17607         * lib/sha256.h: Likewise.
17608         * lib/sha512.h: Likewise.
17609
17610         tests-sha1: don't assign literal string to 'char *' variable
17611         * tests/test-sha1.c (main): Declare locals with "const" to match
17612         attributes of the right hand side.
17613
17614 2009-07-21  Eric Blake  <ebb9@byu.net>
17615
17616         dup2: fix more mingw problems
17617         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17618         fd to itself.
17619         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17620         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17621         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17622         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17623         care of mingw bugs.
17624
17625 2009-07-21  Jim Meyering  <meyering@redhat.com>
17626
17627         vc-list-files: avoid failure when /bin/sh is dash
17628         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17629         On some Debian based systems, /bin/sh is a symlink to dash, and running
17630         this command would omit the "/" following each 'tests' prefix:
17631           dash -x build-aux/vc-list-files -C . tests
17632         That is because bash and dash work differently:
17633           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17634           bash ok
17635           dash odd
17636
17637 2009-07-21  Eric Blake  <ebb9@byu.net>
17638
17639         dup2-tests: test previous patch
17640         * modules/dup2-tests: New file.
17641         * tests/test-dup2.c: Likewise.
17642         * tests/test-open.c (main): Avoid unspecified behavior.
17643         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17644         test.
17645
17646         dup2: work around mingw and cygwin 1.5 bug
17647         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17649         * modules/unistd (Makefile.am): Substitute it.
17650         * lib/unistd.in.h (dup2): Declare the replacement.
17651         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17652         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17653         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17654         * modules/execute (Depends-on): Add dup2.
17655         * modules/fseterr (Depends-on): Likewise.
17656         * modules/pipe (Depends-on): Likewise.
17657         * modules/posix_spawn-internal (Depends-on): Likewise.
17658
17659 2009-07-21  Bruno Haible  <bruno@clisp.org>
17660
17661         * modules/.gitattributes: New file.
17662
17663 2009-07-20  Bruno Haible  <bruno@clisp.org>
17664
17665         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17666         (main): Use it.
17667
17668 2009-07-20  Eric Blake  <ebb9@byu.net>
17669
17670         test-pipe: make a bit more robust.
17671         * tests/test-pipe.c (myerr): Allow error messages regardless of
17672         what we do to stderr.
17673         (test_pipe): Rearrange to avoid deadlock.
17674         (child_main): Try a larger read, to ensure we avoided deadlock.
17675         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17676         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17677         if misused.
17678
17679 2009-07-19  Jim Meyering  <meyering@redhat.com>
17680
17681         fts: avoid false-positive cycle-detection
17682         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17683         for each new command line argument.
17684
17685 2009-07-19  Bruno Haible  <bruno@clisp.org>
17686
17687         Fix build error on mingw with the modules sys_select and unistd.
17688         * modules/acl-tests (Depends-on): Add close.
17689         * modules/binary-io-tests (Depends-on): Likewise.
17690         * modules/closein-tests (Depends-on): Likewise.
17691         * modules/flock-tests (Depends-on): Likewise.
17692         * modules/fsync-tests (Depends-on): Likewise.
17693         * modules/lseek-tests (Depends-on): Likewise.
17694         * modules/pipe-tests (Depends-on): Likewise.
17695         * modules/posix_spawn-tests (Depends-on): Likewise.
17696         * modules/posix_spawnp-tests (Depends-on): Likewise.
17697         * modules/stat-time-tests (Depends-on): Likewise.
17698         * modules/yesno-tests (Depends-on): Likewise.
17699
17700 2009-07-19  Bruno Haible  <bruno@clisp.org>
17701
17702         Unify conditionals.
17703         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17704         macros, not at the compiler macros.
17705         * lib/pipe.c: Likewise.
17706         * lib/execute.c: Likewise.
17707         * lib/spawni.c: Likewise.
17708
17709 2009-07-19  Bruno Haible  <bruno@clisp.org>
17710
17711         Fix handling of closed stdin/stdout/stderr on mingw.
17712         * lib/w32spawn.h: Include unistd.h.
17713         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17714         file descriptor with O_NOINHERIT flag.
17715         (fd_safer_noinherit): New function, based on fd-safer.c.
17716         (dup_safer_noinherit): New function, based on dup-safer.c.
17717         (undup_safer_noinherit): New function.
17718         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17719         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17720         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17721         instead of fd_safer.
17722         * tests/test-pipe.c: Include <windows.h>.
17723         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17724
17725         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17726         from main.
17727         (test_pipe): Pass an extra argument for disambiguation.
17728         (main): Invoke parent_main or child_main.
17729
17730         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17731         consistently.
17732
17733 2009-07-18  Eric Blake  <ebb9@byu.net>
17734
17735         test-pipe: fix mingw build
17736         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17737
17738 2009-07-18  Bruno Haible  <bruno@clisp.org>
17739
17740         * modules/pipe-tests (Makefile.am): Fix typo.
17741
17742 2009-07-18  Eric Blake  <ebb9@byu.net>
17743
17744         error: fix mingw build
17745         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17746         Reported by Bruno Haible.
17747
17748         error: avoid undefined use of stdout
17749         * lib/error.c (error, error_at_line): Check that fd 1 is open
17750         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17751         is handling faults and the close_stdout module wants to report the
17752         detection of closed stdout as an error.
17753
17754 2009-07-17  Eric Blake  <ebb9@byu.net>
17755
17756         pipe: be robust in face of closed fds
17757         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17758         should cause child to misbehave.
17759         * modules/pipe-tests: New module.
17760         * tests/test-pipe.c: New file.
17761         * tests/test-pipe.sh: New file.
17762         Reported by Akim Demaille.
17763
17764 2009-07-14  Bruno Haible  <bruno@clisp.org>
17765
17766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17767         Reported by anonymous kc.
17768
17769 2009-07-07  Jim Meyering  <meyering@redhat.com>
17770
17771         maint.mk: don't look for translatable strings in *.m4 or *.mk
17772         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17773         when searching for translatable strings.
17774
17775 2009-07-05  Jim Meyering  <meyering@redhat.com>
17776
17777         remove superfluous parentheses in STREQ definition
17778         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17779         * lib/getugroups.c (STREQ): Likewise.
17780         * lib/fnmatch.c (STREQ): Likewise.
17781         Spotted by Bruno Haible.
17782
17783 2009-07-04  Jim Meyering  <meyering@redhat.com>
17784
17785         argv-iter: new module
17786         * MODULES.html.sh: Add argv-iter.
17787         * lib/argv-iter.c, lib/argv-iter.h: New files.
17788         * modules/argv-iter: New file.
17789         * modules/argv-iter-tests: New file.
17790         * tests/test-argv-iter.c: Test it.
17791
17792 2009-07-04  Bruno Haible  <bruno@clisp.org>
17793
17794         Fix assertion.
17795         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17796         contains more exact copies of a given entry than file2, leave the extra
17797         copies unpaired rather than aborting.
17798         Reported by Eric Blake.
17799
17800 2009-07-02  Bruno Haible  <bruno@clisp.org>
17801
17802         Speedup git-merge-changelog for git cherry-pick.
17803         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17804         (entries_mapping_get): New function, extracted from compute_mapping.
17805         (entries_mapping_reverse_get): New function.
17806         (compute_mapping): Add a 'full' argument. Return the result in a
17807         'struct entries_mapping'.
17808         (main): Update. Access the mappings through entries_mapping_get.
17809         Reported by Eric Blake.
17810
17811 2009-07-02  Bruno Haible  <bruno@clisp.org>
17812
17813         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17814         best_i.
17815
17816 2009-07-02  Bruno Haible  <bruno@clisp.org>
17817
17818         Speed up approximate search for matching ChangeLog entries.
17819         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17820         argument. Call fstrcmp_bounded instead of fstrcmp.
17821         (compute_mapping, try_split_merged_entry, main): Update callers.
17822
17823 2009-07-02  Bruno Haible  <bruno@clisp.org>
17824
17825         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17826
17827 2009-06-30  Bruno Haible  <bruno@clisp.org>
17828
17829         Reduce the number of uc_is_cased calls.
17830         * lib/unicase.h (casing_suffix_context_t): Add
17831         'first_char_except_ignorable' field.
17832         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17833         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17834         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17835         Update initializer.
17836         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17837         case-ignorable characters.
17838         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17839         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17840         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17841         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17842         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17843
17844 2009-06-30  Bruno Haible  <bruno@clisp.org>
17845
17846         Tests for module 'unicase/ignorable'.
17847         * modules/unicase/ignorable-tests: New file.
17848         * tests/unicase/test-ignorable.c: New file, generated by
17849         gen-uni-tables.
17850
17851         Tests for module 'unicase/cased'.
17852         * modules/unicase/cased-tests: New file.
17853         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17854         * tests/unicase/test-predicate-part1.h: New file, derived from
17855         tests/unictype/test-predicate-part1.h.
17856         * tests/unicase/test-predicate-part2.h: New file, same as
17857         tests/unictype/test-predicate-part2.h.
17858
17859         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17860         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17861         (output_casing_properties): New function.
17862         (main): Call it.
17863         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17864         * lib/unicase/cased.c: Include unictype/bitmap.h.
17865         (uc_is_cased): Define through a bitmap lookup.
17866         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17867         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17868         (uc_is_case_ignorable): Define through a bitmap lookup.
17869         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17870         lib/unictype/bitmap.h.
17871         (Depends-on): Add inline. Clean up.
17872         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17873         lib/unictype/bitmap.h.
17874         (Depends-on): Add inline. Clean up.
17875         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17876         recognition.
17877         * tests/unicase/test-u16-tolower.c (main): Likewise.
17878         * tests/unicase/test-u32-tolower.c (main): Likewise.
17879
17880 2009-06-30  Bruno Haible  <bruno@clisp.org>
17881
17882         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17883         * lib/unicase/u16-casemap.c: Likewise.
17884         * lib/unicase/u32-casemap.c: Likewise.
17885
17886 2009-06-29  Bruno Haible  <bruno@clisp.org>
17887
17888         Define u32_casefold as a wrapper around u32_ct_casefold.
17889         * lib/unicase/u32-casefold.c: Update.
17890         * modules/unicase/u32-casefold (Depends-on): Add
17891         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17892         unicase/empty-suffix-context. Clean up.
17893
17894         Define u16_casefold as a wrapper around u16_ct_casefold.
17895         * lib/unicase/u16-casefold.c: Update.
17896         * modules/unicase/u16-casefold (Depends-on): Add
17897         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17898         unicase/empty-suffix-context. Clean up.
17899
17900         Define u8_casefold as a wrapper around u8_ct_casefold.
17901         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17902         * lib/unicase/u8-casefold.c: Update.
17903         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17904         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17905
17906         Define u32_totitle as a wrapper around u32_ct_totitle.
17907         * lib/unicase/u32-totitle.c: Update.
17908         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17909         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17910
17911         Define u16_totitle as a wrapper around u16_ct_totitle.
17912         * lib/unicase/u16-totitle.c: Update.
17913         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17914         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17915
17916         Define u8_totitle as a wrapper around u8_ct_totitle.
17917         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17918         functions.
17919         (FUNC): Delegate to U_CT_TOTITLE.
17920         * lib/unicase/u8-totitle.c: Update.
17921         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17922         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17923
17924         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17925         invocation.
17926         * modules/unicase/u32-tolower (Depends-on): Add
17927         unicase/empty-prefix-context, unicase/empty-suffix-context.
17928
17929         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17930         invocation.
17931         * modules/unicase/u16-tolower (Depends-on): Add
17932         unicase/empty-prefix-context, unicase/empty-suffix-context.
17933
17934         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17935         * modules/unicase/u8-tolower (Depends-on): Add
17936         unicase/empty-prefix-context, unicase/empty-suffix-context.
17937
17938         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17939         invocation.
17940         * modules/unicase/u32-toupper (Depends-on): Add
17941         unicase/empty-prefix-context, unicase/empty-suffix-context.
17942
17943         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17944         invocation.
17945         * modules/unicase/u16-toupper (Depends-on): Add
17946         unicase/empty-prefix-context, unicase/empty-suffix-context.
17947
17948         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17949         * modules/unicase/u8-toupper (Depends-on): Add
17950         unicase/empty-prefix-context, unicase/empty-suffix-context.
17951
17952         New module 'unicase/u32-ct-casefold'.
17953         * lib/unicase/u32-ct-casefold.c: New file.
17954         * modules/unicase/u32-ct-casefold: New file.
17955
17956         New module 'unicase/u16-ct-casefold'.
17957         * lib/unicase/u16-ct-casefold.c: New file.
17958         * modules/unicase/u16-ct-casefold: New file.
17959
17960         New module 'unicase/u8-ct-casefold'.
17961         * lib/unicase/u8-ct-casefold.c: New file.
17962         * lib/unicase/u-ct-casefold.h: New file, derived from
17963         lib/unicase/u-casefold.h.
17964         * modules/unicase/u8-ct-casefold: New file.
17965
17966         New module 'unicase/u32-ct-totitle'.
17967         * lib/unicase/u32-ct-totitle.c: New file.
17968         * modules/unicase/u32-ct-totitle: New file.
17969
17970         New module 'unicase/u16-ct-totitle'.
17971         * lib/unicase/u16-ct-totitle.c: New file.
17972         * modules/unicase/u16-ct-totitle: New file.
17973
17974         New module 'unicase/u8-ct-totitle'.
17975         * lib/unicase/u8-ct-totitle.c: New file.
17976         * lib/unicase/u-ct-totitle.h: New file, derived from
17977         lib/unicase/u-totitle.h.
17978         * modules/unicase/u8-ct-totitle: New file.
17979
17980         New module 'unicase/u32-ct-tolower'.
17981         * lib/unicase/u32-ct-tolower.c: New file.
17982         * modules/unicase/u32-ct-tolower: New file.
17983
17984         New module 'unicase/u16-ct-tolower'.
17985         * lib/unicase/u16-ct-tolower.c: New file.
17986         * modules/unicase/u16-ct-tolower: New file.
17987
17988         New module 'unicase/u8-ct-tolower'.
17989         * lib/unicase/u8-ct-tolower.c: New file.
17990         * modules/unicase/u8-ct-tolower: New file.
17991
17992         New module 'unicase/u32-ct-toupper'.
17993         * lib/unicase/u32-ct-toupper.c: New file.
17994         * modules/unicase/u32-ct-toupper: New file.
17995
17996         New module 'unicase/u16-ct-toupper'.
17997         * lib/unicase/u16-ct-toupper.c: New file.
17998         * modules/unicase/u16-ct-toupper: New file.
17999
18000         New module 'unicase/u8-ct-toupper'.
18001         * lib/unicase/u8-ct-toupper.c: New file.
18002         * modules/unicase/u8-ct-toupper: New file.
18003
18004         Add context arguments to u*_casemap functions.
18005         * lib/unicase/unicasemap.h: Include unicase.h.
18006         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18007         suffix_context arguments.
18008         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18009         functions.
18010         (FUNC): Add prefix_context and suffix_context arguments. Use
18011         uc_is_cased and uc_is_case_ignorable.
18012         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18013         * lib/unicase/u16-casemap.c: Likewise.
18014         * lib/unicase/u32-casemap.c: Likewise.
18015         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18016         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18017         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18018         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18019         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18020         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18021
18022         New module 'unicase/u32-suffix-context'.
18023         * lib/unicase/u32-suffix-context.c: New file.
18024         * modules/unicase/u32-suffix-context: New file.
18025
18026         New module 'unicase/u16-suffix-context'.
18027         * lib/unicase/u16-suffix-context.c: New file.
18028         * modules/unicase/u16-suffix-context: New file.
18029
18030         New module 'unicase/u8-suffix-context'.
18031         * lib/unicase/u8-suffix-context.c: New file.
18032         * lib/unicase/u-suffix-context.h: New file.
18033         * modules/unicase/u8-suffix-context: New file.
18034
18035         New module 'unicase/empty-suffix-context'.
18036         * lib/unicase/empty-suffix-context.c: New file.
18037         * modules/unicase/empty-suffix-context: New file.
18038
18039         New module 'unicase/u32-prefix-context'.
18040         * lib/unicase/u32-prefix-context.c: New file.
18041         * modules/unicase/u32-prefix-context: New file.
18042
18043         New module 'unicase/u16-prefix-context'.
18044         * lib/unicase/u16-prefix-context.c: New file.
18045         * modules/unicase/u16-prefix-context: New file.
18046
18047         New module 'unicase/u8-prefix-context'.
18048         * lib/unicase/u8-prefix-context.c: New file.
18049         * lib/unicase/u-prefix-context.h: New file.
18050         * lib/unicase/context.h: New file.
18051         * modules/unicase/u8-prefix-context: New file.
18052
18053         New module 'unicase/empty-prefix-context'.
18054         * lib/unicase/empty-prefix-context.c: New file.
18055         * modules/unicase/empty-prefix-context: New file.
18056
18057         New module 'unicase/ignorable'.
18058         * lib/unicase/ignorable.c: New file.
18059         * modules/unicase/ignorable: New file.
18060
18061         New module 'unicase/cased'.
18062         * lib/unicase/caseprop.h: New file.
18063         * lib/unicase/cased.c: New file.
18064         * modules/unicase/cased: New file.
18065
18066         New functions for case mapping of substrings.
18067         * lib/unicase.h (casing_prefix_context_t): New type.
18068         (unicase_empty_prefix_context): New variable.
18069         (u8_casing_prefix_context, u16_casing_prefix_context,
18070         u32_casing_prefix_context, u8_casing_prefixes_context,
18071         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18072         declarations.
18073         (casing_suffix_context_t): New type.
18074         (unicase_empty_suffix_context): New variable.
18075         (u8_casing_suffix_context, u16_casing_suffix_context,
18076         u32_casing_suffix_context, u8_casing_suffixes_context,
18077         u16_casing_suffixes_context, u32_casing_suffixes_context,
18078         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18079         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18080         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18081         declarations.
18082
18083 2009-06-28  Jim Meyering  <meyering@redhat.com>
18084
18085         boostrap: indent only with spaces
18086         * build-aux/bootstrap: Indent only with spaces, never TABs.
18087
18088         bootstrap: split long lines
18089         * build-aux/bootstrap: Keep line length < 80.
18090
18091         bootstrap: sync from coreutils
18092         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18093         just as autoreconf does.  Verify a list of prerequisite
18094         package-name,version-number pairs if defined in bootstrap.conf.
18095         Refer to README-prereq, if prerequisites are not satisfied.
18096
18097 2009-06-27  Eric Blake  <ebb9@byu.net>
18098
18099         tests: add test for bogus NULL definition
18100         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18101         * tests/test-stdlib.c: Likewise.
18102         * tests/test-string.c: Likewise.
18103         * tests/test-locale.c: Likewise.
18104         * tests/test-unistd.c: Likewise.
18105         * modules/stdio-tests (Depends-on): Add verify.
18106         * modules/stdlib-tests (Depends-on): Likewise.
18107         * modules/string-tests (Depends-on): Likewise.
18108         * modules/locale-tests (Depends-on): Likewise.
18109         * modules/unistd-tests (Depends-on): Likewise.
18110
18111 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18112
18113         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18114         self-explaining comment.
18115         * m4/selinux-selinux-h: Update serial.
18116         (gl_LIBSELINUX): New macro, adding a warning for missing development
18117         packages to code extracted from...
18118         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18119         Add warning for missing development packages here, too.
18120
18121 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18122
18123         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18124
18125 2009-06-25  Eric Blake  <ebb9@byu.net>
18126
18127         version-etc: fix regression
18128         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18129         gcc.
18130         (version_etc): Use it, to catch bugs with trailing NULL.
18131         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18132         (version_etc_va): Fix logic bug.
18133         * modules/version-etc-tests: Add test.
18134         * tests/test-version-etc.c: New file.
18135         * tests/test-version-etc.sh: Likewise.
18136
18137 2009-06-25  Sam Steingold  <sds@gnu.org>
18138
18139         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18140         mbtowc declaration.
18141
18142 2009-06-25  Eric Blake  <ebb9@byu.net>
18143
18144         fpurge: migrate into <stdio.h>
18145         * lib/fpurge.h: Delete...
18146         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18147         * lib/fpurge.c (fpurge): Change declaring header.
18148         * modules/fpurge (Files): Drop deleted file.
18149         (Depends-on): Add stdio.
18150         (configure.ac): Set witness.
18151         * modules/stdio (Makefile.am): Support fpurge macros.
18152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18153         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18154         * lib/fflush.c: Update client.
18155         * tests/test-fpurge.c: Likewise.
18156         * NEWS: Mention the change.
18157
18158 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18159
18160         * lib/argp-version-etc.c (program_authors): Add const
18161         qualifier.
18162         * lib/version-etc.c: Fix typos in the comments.
18163         * modules/argp-version-etc: Depends on version-etc.
18164
18165 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18166
18167         argp-version-etc: new module.
18168
18169         * lib/argp-version-etc.c: New file.
18170         * lib/argp-version-etc.h: New file.
18171         * modules/argp-version-etc: New file.
18172         * modules/argp-version-etc-tests: New file.
18173         * tests/test-argp-version-etc.c: New test.
18174         * tests/test-argp-version-etc-1.sh: New test.
18175
18176 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18177
18178         Provide additional interfaces and documentation for version-etc
18179         module.
18180
18181         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18182         interfaces.
18183         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18184         prototypes.
18185
18186 2009-06-24  Bruno Haible  <bruno@clisp.org>
18187
18188         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18189         HAVE_LIB${NAME} macro.
18190         Reported by Sam Steingold <sds@gnu.org>.
18191
18192 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18193
18194         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18195         needed.
18196
18197 2009-06-21  Bruno Haible  <bruno@clisp.org>
18198
18199         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18200         work.
18201         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18202         together with LIB${NAME}, LTLIB${NAME}.
18203         Reported by Sam Steingold <sds@gnu.org>.
18204
18205 2009-06-20  Jim Meyering  <meyering@redhat.com>
18206
18207         tests: make sc_require_test_exit_idiom more generic
18208         * top/maint.mk (Exit_witness_file): New overridable variable.
18209         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18210         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18211
18212 2009-06-19  Jim Meyering  <meyering@redhat.com>
18213
18214         hash: reverse order of src/dst parameters in an internal interface
18215         * lib/hash.c (transfer_entries): Reverse order of parameters to
18216         put DST before SRC.  Adjust callers.
18217
18218         tests: test-hash: avoid wholesale duplication
18219         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18220         Instead, use a loop and add a single conditional.
18221
18222         tests: test-hash: allow seed selection via a command line argument
18223         * tests/test-hash.c (get_seed): New function.
18224         (main): Use it.
18225
18226 2009-06-19  Eric Blake  <ebb9@byu.net>
18227
18228         hash: avoid memory leak on allocation failure
18229         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18230         failure.  Factor repeated algorithm...
18231         (transfer_entries): ...into new helper routine.
18232         (hash_delete): React to hash_rehash return value.
18233
18234         hash: reduce memory pressure in hash_rehash no-op case
18235         * lib/hash.c (next_prime): Avoid overflow.
18236         (hash_initialize): Factor bucket size computation...
18237         (compute_bucket_size): ...into new helper function.
18238         (hash_rehash): Use new function and open coding to reduce memory
18239         pressure, and avoid a memory leak in USE_OBSTACK code.
18240         Reported by Jim Meyering.
18241
18242 2009-06-18  Eric Blake  <ebb9@byu.net>
18243
18244         hash: make rotation more obvious
18245         * modules/hash (Depends-on): Add bitrotate and stdint.
18246         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18247         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18248         (SIZE_MAX): Rely on headers for definition.
18249         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18250         (raw_hasher): Use rotr_sz.
18251         Suggested by Jim Meyering.
18252
18253         hash: fix memory leak in last patch
18254         * lib/hash.c (hash_rehash): Avoid memory leak.
18255
18256         hash: avoid no-op rehashing
18257         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18258
18259         hash: provide default callback functions
18260         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18261         (hash_initialize): Use them as defaults.
18262         * tests/test-hash.c (main): Test this.
18263
18264         hash: minor optimization
18265         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18266         when possible.
18267         (hash_initialize): Document this promise.
18268         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18269         * tests/test-hash.c (hash_compare_strings): Test this.
18270
18271 2009-06-18  Bruno Haible  <bruno@clisp.org>
18272
18273         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18274         going to be replaced anyway.
18275
18276 2009-06-18  Bruno Haible  <bruno@clisp.org>
18277
18278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18279         in one place.
18280         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18281         be replaced anyway.
18282
18283 2009-06-18  Eric Blake  <ebb9@byu.net>
18284
18285         hash: check for resize before insertion
18286         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18287         threshold before insertion, so that a pathological hash_rehash
18288         that fills every bucket can still trigger another rehash.
18289
18290 2009-06-18  Jim Meyering  <meyering@redhat.com>
18291
18292         hash-tests: add a loop around the small tests
18293         * tests/test-hash.c (main): Repeat small tests with selected
18294         small initial table sizes.
18295
18296 2009-06-17  Eric Blake  <ebb9@byu.net>
18297
18298         hash: minor cleanups
18299         * lib/hash.h (hash_entry): Make opaque, by moving...
18300         * lib/hash.c (hash_entry): ...here.
18301         (hash_insert): Clarify restrictions on what can be inserted.
18302         (hash_get_next): Clarify when it is safe to remove an element
18303         during traversal.
18304         (check_tuning): Skip verification when tuning is known safe.
18305         (hash_initialize): Clarify restrictions on tuning.
18306
18307 2009-06-17  Jim Meyering  <jim@meyering.net>
18308         and Eric Blake  <ebb9@byu.net>
18309
18310         hash-tests: new module
18311         * modules/hash-tests: New file.
18312         * tests/test-hash.c: New file.
18313
18314 2009-06-17  Eric Blake  <ebb9@byu.net>
18315
18316         strstr-simple: document new module
18317         * MODULES.html.sh: Document new module.
18318
18319         strstr, strcasestr: replace on platforms with broken memchr
18320         * modules/strstr: Split into...
18321         * modules/strstr-simple: ...new module that does not care about
18322         performance, but does care about glibc bug.
18323         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18324         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18325         if platform memchr is broken, per Debian bug 521737.
18326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18327         memchr.
18328         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18329         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18330         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18331         * modules/mountlist (Depends-on): Add strstr-simple.
18332         * modules/gen-uni-tables (Depends-on): Likewise.
18333         * modules/argz (Depends-on): Add strstr.
18334
18335 2009-06-17  Bruno Haible  <bruno@clisp.org>
18336
18337         * modules/posix_spawn-internal (Depends-on): Add errno.
18338
18339 2009-06-17  Bruno Haible  <bruno@clisp.org>
18340
18341         Define missing ESTALE on Interix 3.5.
18342         * lib/errno.in.h (ESTALE): Assign a value if missing.
18343         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18344         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18345         missing.
18346         * doc/posix-headers/errno.texi: Mention the Interix bug.
18347         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18348
18349 2009-06-15  Eric Blake  <ebb9@byu.net>
18350
18351         memchr, memchr2: add valgrind exception
18352         * lib/memchr.valgrind: New file.
18353         * lib/memchr2.valgrind: New file.
18354         * modules/memchr (Files): Distribute valgrind file.
18355         * modules/memchr2 (Files): Likewise.
18356
18357         docs: memchr is no longer obsolete
18358         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18359         * lib/string.in.h (memchr): Simplify logic.
18360
18361 2009-06-14  Jim Meyering  <meyering@redhat.com>
18362
18363         link-follow: fix the "checking..." message to not mention trailing slash
18364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18365         never considered trailing slashes.
18366
18367 2009-06-14  Bruno Haible  <bruno@clisp.org>
18368
18369         * m4/memchr.m4: Mention also the bug on IA-64.
18370         * doc/posix-functions/memchr.texi: Likewise.
18371
18372 2009-06-12  Eric Blake  <ebb9@byu.net>
18373
18374         memchr: detect broken x86_64 and alpha implementations
18375         * modules/memchr-tests (Depends-on): Move mmap detection...
18376         * modules/memchr (Depends-on): ...here.
18377         (configure.ac): Set indicator.
18378         * lib/string.in.h (memchr): Declare replacement.
18379         * modules/string (Makefile.am): Trigger replacement.
18380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18381         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18382         bugs.
18383         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18384         * modules/getpagesize (License): Relax license.
18385
18386 2009-06-11  Bruno Haible  <bruno@clisp.org>
18387
18388         * lib/idpriv.h: Add more references.
18389
18390 2009-06-08  Bruno Haible  <bruno@clisp.org>
18391
18392         Tests for module 'idpriv-droptemp'.
18393         * modules/idpriv-droptemp-tests: New file.
18394         * tests/test-idpriv-droptemp.sh: New file.
18395         * tests/test-idpriv-droptemp.su.sh: New file.
18396         * tests/test-idpriv-droptemp.c: New file.
18397
18398         New module 'idpriv-droptemp'.
18399         * lib/idpriv-droptemp.c: New file.
18400         * modules/idpriv-droptemp: New file.
18401
18402 2009-06-08  Bruno Haible  <bruno@clisp.org>
18403
18404         Tests for module 'idpriv-drop'.
18405         * modules/idpriv-drop-tests: New file.
18406         * tests/test-idpriv-drop.sh: New file.
18407         * tests/test-idpriv-drop.su.sh: New file.
18408         * tests/test-idpriv-drop.c: New file.
18409
18410         New module 'idpriv-drop'.
18411         * lib/idpriv.h: New file.
18412         * lib-idpriv-drop.c: New file.
18413         * m4/idpriv.m4: New file.
18414         * modules/idpriv-drop: New file.
18415
18416 2009-06-08  Bruno Haible  <bruno@clisp.org>
18417
18418         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18419         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18420         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18421         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18422         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18423         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18424         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18425
18426 2009-06-08  Eric Blake  <ebb9@byu.net>
18427
18428         test-strstr: use memory fence, when possible
18429         * tests/test-strstr.c (main): Use memory fence, in order to be
18430         more likely to trigger Debian bug 521737.
18431         * modules/strstr-tests (Files): Pull in additional files.
18432
18433         memchr: no longer obsolete, for wider field testing
18434         * modules/memchr (Status, Notice): Delete, this module is no
18435         longer obsolete.
18436         * modules/vasnprintf (Depends-on): Add memchr.
18437
18438 2009-06-07  Jim Meyering  <meyering@redhat.com>
18439
18440         hash: declare some functions with the warn_unused_result attribute
18441         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18442
18443 2009-06-07  Bruno Haible  <bruno@clisp.org>
18444
18445         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18446         Reported by Eric Blake.
18447
18448 2009-06-06  Eric Blake  <ebb9@byu.net>
18449
18450         test-alignof: fix typo with long double
18451         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18452         compiler error.
18453
18454 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18455
18456         Escape non-texinfo { and }s.
18457         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18458         markup error.
18459
18460 2009-06-04  Jim Meyering  <meyering@redhat.com>
18461
18462         gitlog-to-changelog: don't infloop on an empty commit log
18463         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18464         Reported by Boris Petersen <transacid@centerim.org>.
18465
18466 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18467
18468         version-etc: extend for packagers
18469         Add three new configure options, intended for packagers:
18470           --with-packager="packager name"
18471           --with-packager-version="packager-specific version"
18472           --with-packager-bug-reports="packager bug reporting"
18473         An example with coreutils:
18474           $ ./configure \
18475             --with-packager=Gentoo \
18476             --with-packager-bug-report=http://bugs.gentoo.org/ \
18477             --with-packager-version="patchset 1.6"
18478           $ ./src/ls --version | head -n2
18479           ls (GNU coreutils) 7.1-dirty
18480           Packaged by Gentoo (patchset 1.6)
18481         Note that the bug reporting info via --help doesn't show up because
18482         coreutils uses its own custom emit_bug_reporting_address() implementation
18483         in src/system.h.  If it didn't, it'd look like:
18484           $ ./src/ls --help | tail -n4
18485           Report bugs to <bug-coreutils@gnu.org>.
18486           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18487           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18488           General help using GNU software: <http://www.gnu.org/gethelp/>.
18489         * lib/version-etc.c: Print new information, if provided.
18490         * m4/version-etc.m4: New file.
18491         * modules/version-etc (Files): Add m4/version-etc.m4.
18492         (configure.ac): Add gl_VERSION_ETC.
18493
18494 2009-05-31  Bruno Haible  <bruno@clisp.org>
18495
18496         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18497         and 'int64_t'.
18498         * modules/alignof-tests (Dependencies): Add stdint.
18499         Reported by Eric Blake.
18500
18501 2009-05-31  Bruno Haible  <bruno@clisp.org>
18502
18503         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18504         restriction due to compiler bugs.
18505         Reported by Eric Blake.
18506
18507 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18508             Bruno Haible  <bruno@clisp.org>
18509
18510         Fix test-alignof failure.
18511         * lib/alignof.h (alignof_slot): New macro.
18512         (alignof_type): New macro, with the same semantics as the previous
18513         'alignof'.
18514         (alignof): Alias to alignof_slot.
18515         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18516         check that the results are usable as constant expressions.
18517
18518 2009-05-31  Bruno Haible  <bruno@clisp.org>
18519
18520         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18521         * tests/test-memchr.c (main): Check that memchr does not read past the
18522         first occurrence of the byte.
18523         * tests/test-strstr.c (main): Update comment.
18524         Suggested by Eric Blake.
18525
18526 2009-05-30  Bruno Haible  <bruno@clisp.org>
18527
18528         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18529         detail how to use dumpbin.
18530         Reported by David Byron <dbyron@dbyron.com>.
18531
18532 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18533
18534         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18535
18536 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18537
18538         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18539
18540 2009-05-28  Bruno Haible  <bruno@clisp.org>
18541
18542         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18543         build-aux/ files.
18544
18545 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18546
18547         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18548
18549 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18550
18551         * gnulib-tool (sed_transform_main_lib_file)
18552         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18553         regexps.
18554
18555 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18556
18557         * tests/test-strstr.c: Add another self-test.
18558         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18559         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18560
18561 2009-05-23  Bruno Haible  <bruno@clisp.org>
18562
18563         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18564         change.
18565
18566 2009-05-21  Bruno Haible  <bruno@clisp.org>
18567
18568         Simplify use of mode_t varargs.
18569         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18570         uses 'mode_t' or 'int'.
18571         * lib/openat.c (openat): Likewise.
18572         * lib/open-safer.c (open_safer): Likewise.
18573         * m4/mode_t.m4: New file.
18574         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18575         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18576         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18577         * modules/open (Files): Add m4/mode_t.m4.
18578         * modules/openat (Files): Likewise.
18579         * modules/fcntl-safer (Files): Likewise.
18580         Suggested by Eric Blake.
18581
18582 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18583
18584         * doc/glibc-functions/fallocate.texi: New file.
18585         * doc/gnulib.texi: Include it.
18586
18587 2009-05-21  Eric Blake  <ebb9@byu.net>
18588             Bruno Haible  <bruno@clisp.org>
18589
18590         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18591         invocations.
18592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18593
18594 2009-05-21  Eric Blake  <ebb9@byu.net>
18595             Bruno Haible  <bruno@clisp.org>
18596
18597         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18598         include_next. Fix of 2008-11-20 commit.
18599         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18600         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18601         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18602         NEXT_MATH_H.
18603         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18604         instead of NEXT_MATH_H.
18605
18606 2009-05-21  Bruno Haible  <bruno@clisp.org>
18607
18608         Avoid redefinition warnings for SIZE_MAX.
18609         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18610         Reported by Simon Josefsson.
18611
18612 2009-05-21  Bruno Haible  <bruno@clisp.org>
18613
18614         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18615         AC_CACHE_VAL.
18616
18617 2009-05-20  Bruno Haible  <bruno@clisp.org>
18618
18619         Make zeroptr.h work on mingw.
18620         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18621         mprotect.
18622         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18623         * modules/memchr2-tests (configure.ac): Likewise.
18624         * modules/memcmp-tests (configure.ac): Likewise.
18625         * modules/memmem-tests (configure.ac): Likewise.
18626         * modules/memrchr-tests (configure.ac): Likewise.
18627         Reported by Simon Josefsson.
18628
18629 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18630
18631         * tests/test-glob.c: Include string.h for strcmp prototype.
18632
18633 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18634
18635         * modules/getdelim (Depends-on): Add explicit stdint, although it
18636         was implicitly already pulled in via realloc-posix.
18637         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18638
18639 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18640
18641         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18642         G. Christensen" <tgc@jupiterrise.com>.
18643         * m4/sys_socket_h.m4: Check for sa_family_t.
18644         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18645         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18646         * tests/test-sys_socket.c: Check that sa_family_t works.
18647
18648 2009-05-18  Eric Blake  <ebb9@byu.net>
18649
18650         maint.mk: allow gnulib_dir in VPATH build
18651         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18652
18653 2009-05-15  Jim Meyering  <meyering@redhat.com>
18654
18655         maint.mk: Give gnulib_dir a default definition.
18656         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18657         Thus, most packages no longer need to specify this variable in cfg.mk
18658
18659 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18660
18661         rename.m4: fix typos that would make non-mingw cross-configure fail
18662         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18663
18664 2009-05-13  Eric Blake  <ebb9@byu.net>
18665
18666         mmap-anon: avoid out-of-order autoconf expansion
18667         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18668         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18669         * modules/memchr-tests (Depends-on): Add extensions.
18670         * modules/memchr2-tests (Depends-on): Add extensions.
18671         * modules/memcmp-tests (Depends-on): Add extensions.
18672         * modules/memmem-tests (Depends-on): Add extensions.
18673         * modules/memrchr-tests (Depends-on): Add extensions.
18674
18675 2009-05-13  Bruno Haible  <bruno@clisp.org>
18676
18677         Make some tests ISO C 99 compliant.
18678         * tests/zerosize-ptr.h: New file.
18679         * tests/test-memchr.c: Include zerosize-ptr.h.
18680         (main): Use a zero-size object pointer instead of NULL.
18681         * tests/test-memchr2.c: Include zerosize-ptr.h.
18682         (main): Use a zero-size object pointer instead of NULL.
18683         * tests/test-memcmp.c: Include zerosize-ptr.h.
18684         (main): Use a zero-size object pointer instead of NULL.
18685         * tests/test-memmem.c: Include zerosize-ptr.h.
18686         (main): Use a zero-size object pointer instead of NULL.
18687         * tests/test-memrchr.c: Include zerosize-ptr.h.
18688         (main): Use a zero-size object pointer instead of NULL.
18689         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18690         m4/mmap-anon.m4.
18691         (Depends-on): Add getpagesize.
18692         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18693         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18694         m4/mmap-anon.m4.
18695         (Depends-on): Add getpagesize.
18696         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18697         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18698         m4/mmap-anon.m4.
18699         (Depends-on): Add getpagesize.
18700         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18701         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18702         m4/mmap-anon.m4.
18703         (Depends-on): Add getpagesize.
18704         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18705         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18706         m4/mmap-anon.m4.
18707         (Depends-on): Add getpagesize.
18708         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18709
18710 2009-05-12  Bruno Haible  <bruno@clisp.org>
18711
18712         Tests for module 'alignof'.
18713         * modules/alignof-tests: New file.
18714         * tests/test-alignof.c: New file.
18715
18716 2009-05-12  Bruno Haible  <bruno@clisp.org>
18717
18718         Fix alignof macro.
18719         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18720         vendor compilers that are always correct.
18721
18722 2009-05-12  Bruno Haible  <bruno@clisp.org>
18723
18724         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18726         not whether its fully works.
18727
18728 2009-05-12  Bruno Haible  <bruno@clisp.org>
18729
18730         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18731
18732 2009-05-12  Jim Meyering  <meyering@redhat.com>
18733
18734         * top/maint.mk: Adjust backslash alignment.
18735
18736 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18737
18738         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18739
18740 2009-05-11  Eric Blake  <ebb9@byu.net>
18741
18742         argp: avoid undefined behavior
18743         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18744         macros.
18745
18746 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18747
18748         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18749         user.name to prevent git commit from complaining.
18750
18751 2009-05-10  Bruno Haible  <bruno@clisp.org>
18752
18753         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18754         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18755         it rewrites every file name only once.
18756         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18757
18758 2009-05-08  Bruno Haible  <bruno@clisp.org>
18759
18760         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18761         instead of 'max'.
18762
18763 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18764
18765         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18766         sockaddr_storage test.
18767
18768 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18769
18770         * modules/sys_socket (Makefile.am): Substitute
18771         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18772         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18773         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18774         * tests/test-sys_socket.c: Check sockaddr_storage.
18775
18776 2009-05-08  Bruno Haible  <bruno@clisp.org>
18777
18778         New module 'alignof'.
18779         * lib/alignof.h: New file.
18780         * modules/alignof: New file.
18781
18782 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18783             Bruno Haible  <bruno@clisp.org>
18784
18785         Fix test-file-has-acl on FreeBSD.
18786         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18787         mask is implicitly added.
18788         * tests/test-file-has-acl.c: Include <signal.h>.
18789         (main): Terminate the test after 5 seconds.
18790         * modules/acl-tests (configure.ac): Check for alarm function.
18791
18792 2009-05-04  Bruno Haible  <bruno@clisp.org>
18793
18794         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18795         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18796         * modules/errno (configure.ac): Drop AC_REQUIRE.
18797         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18798         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18799
18800 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18801
18802         * modules/glob-tests: New module.
18803         * tests/test-glob.c: Add.
18804
18805 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18806
18807         * modules/fnmatch-tests: New module.
18808         * tests/test-fnmatch.c: Add.
18809
18810 2009-05-04  Eric Blake  <ebb9@byu.net>
18811
18812         maint: make the new no-submodule-changes rule VPATH-safe
18813         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18814
18815 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18816             Bruno Haible  <bruno@clisp.org>
18817
18818         acl: Fix infinite loop on FreeBSD.
18819         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18820         of return value from acl_get_entry.
18821         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18822         Likewise.
18823
18824 2009-05-03  Bruno Haible  <bruno@clisp.org>
18825
18826         * lib/acl-internal.h (acl_entries): Clarify return value.
18827         * lib/acl_entries.c (acl_entries): Likewise.
18828
18829 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18830
18831         Bug fix in acl module.
18832         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18833
18834 2009-05-03  Bruno Haible  <bruno@clisp.org>
18835
18836         Create gperf-generated file in the source dir, not in the build dir.
18837         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18838         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18839         * modules/unicase/locale-language (unicase/locale-languages.h):
18840         Likewise.
18841         * modules/unicase/special-casing (unicase/special-casing-table.h):
18842         Likewise.
18843         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18844         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18845         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18846         Reported by Ralf Wildenhues.
18847
18848 2009-05-03  Bruno Haible  <bruno@clisp.org>
18849
18850         * modules/fnmatch (Description, configure.ac): Taken from
18851         fnmatch-posix.
18852         * modules/fnmatch-posix: Turn into a symbolic reference to the
18853         'fnmatch' module, and deprecate.
18854         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18855
18856 2009-05-03  Bruno Haible  <bruno@clisp.org>
18857
18858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18859         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18860         Reported by Ralf Wildenhues.
18861
18862 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18863
18864         * m4/fnmatch.m4: Fix fnmatch re-define.
18865
18866 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18867
18868         priv-set: new module and tests; adapt write-any-file
18869         * lib/priv-set.c: New file.
18870         * lib/priv-set.h: New file.
18871         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18872         * lib/write-any-file.c: Simplify by using priv-set module.
18873         * m4/priv-set.m4: New file.
18874         * modules/priv-set: New file.
18875         * modules/unlinkdir: Add dependency on priv-set module.
18876         * modules/write-any-file: Likewise.
18877
18878         Tests for module 'priv-set'.
18879         * modules/priv-set-tests: New file.
18880         * tests/test-priv-set.c: New file.
18881
18882 2009-05-03  Jim Meyering  <meyering@redhat.com>
18883             Bruno Haible  <bruno@clisp.org>
18884
18885         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18886         use the converted UTF-8 variant of the name instead.
18887
18888 2009-05-03  Jim Meyering  <meyering@redhat.com>
18889
18890         tests: tighten some getdate tests
18891         * tests/test-getdate.c (main): Tighten tests: require equality,
18892         not just greater than.  Set TZ envvar to UTC0.
18893
18894 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18895
18896         getdate: correctly interpret "next monday" when run on a Monday
18897         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18898         that e.g., "next tues" (when run on a tuesday) results in a date
18899         that is one week in the future, and not today's date.
18900         I.e., add a week when the wday is the same as the current one.
18901         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18902         and earlier by Martin Bernreuther and Jan Minář.
18903         * tests/test-getdate.c (main): Check that "next DAY" is always in
18904         the future and that "last DAY" is always in the past.
18905
18906 2009-05-02  Jim Meyering  <meyering@redhat.com>
18907
18908         build: ensure that a release build fails when a submodule is unclean
18909         * top/maint.mk (no-submodule-changes): New rule.
18910         (alpha beta major): Depend on it.
18911
18912 2009-05-02  Bruno Haible  <bruno@clisp.org>
18913
18914         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18915         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18916         shell variable gl_fnmatch_required to detect which variant is
18917         requested.
18918         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18919         gl_FUNC_FNMATCH_POSIX.
18920         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18921         exclude fnmatch-posix.
18922
18923 2009-05-02  Bruno Haible  <bruno@clisp.org>
18924
18925         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18926         * modules/mbsrtowcs (License): Change to LGPLv2+.
18927         * modules/strnlen1 (License): Likewise.
18928         Reported by Simon Josefsson.
18929
18930 2009-05-02  Bruno Haible  <bruno@clisp.org>
18931
18932         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18933         "cross".
18934         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18935         gnulib-tool was called with option --source-base=lib.
18936
18937 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18938
18939         Use automake *-local hooks without commands, for extensibility.
18940         * modules/localcharset (Makefile.am): Rename install-exec-local
18941         rule to install-exec-localcharset, and make it a prerequisite of
18942         install-exec-local.  Likewise, rename the uninstall-local rule to
18943         uninstall-localcharset, and make it a prerequisite of the former.
18944
18945 2009-05-01  Bruno Haible  <bruno@clisp.org>
18946
18947         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18948         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18949         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18951         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18952         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18953         m4/locale-zh.m4, m4/codeset.m4.
18954
18955         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18956         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
18957         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18958         m4/locale-zh.m4.
18959
18960         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
18961         REPLACE_WCRTOMB if mbstate_t must be replaced.
18962         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
18963         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
18964
18965 2009-05-01  Bruno Haible  <bruno@clisp.org>
18966
18967         Avoid compiler warnings when redefining macros defined by <libintl.h>.
18968         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
18969         dngettext, dcngettext, textdomain, bindtextdomain,
18970         bind_textdomain_codeset): Undefine before redefining.
18971
18972 2009-04-30  Bruno Haible  <bruno@clisp.org>
18973
18974         Fix bug introduced on 2009-04-25.
18975         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
18976         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
18977         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
18978         is defined.
18979         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
18980         is defined.
18981         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
18982         is defined.
18983         Reported by Elbert_Pol <elbert.pol@gmail.com>.
18984
18985 2009-04-28  Bruno Haible  <bruno@clisp.org>
18986
18987         Comment tweaks.
18988         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18989         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
18990         * lib/unicase.h (u*_casexfrm): Likewise.
18991         Reported by Paolo Bonzini.
18992
18993 2009-04-28  Bruno Haible  <bruno@clisp.org>
18994
18995         Fix a compilation error.
18996         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
18997         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18998         Reported by Jim Meyering.
18999
19000 2009-04-27  Bruno Haible  <bruno@clisp.org>
19001
19002         New module 'libunistring'.
19003         * modules/libunistring: New file.
19004         * m4/libunistring.m4: New file.
19005         * MODULES.html.sh (Unicode string functions): Add it.
19006
19007 2009-04-27  Eric Blake  <ebb9@byu.net>
19008
19009         maint.mk: allow package-specific header to provide <config.h>
19010         * top/maint.mk (sc_require_config_h): New variable.
19011         (sc_require_config_h, sc_require_config_h_first): Use it.
19012
19013 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19014
19015         * top/maint.mk (sc_avoid_if_before_free): Except
19016         useless-if-before-free script.
19017
19018 2009-04-27  Eric Blake  <ebb9@byu.net>
19019
19020         maintainer-makefile: depend on all required helper scripts
19021         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19022         useless-if-before-free.
19023         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19024         version, rather than assuming gnulib checkout is available.
19025         Reported by Simen Josefsson.
19026
19027 2009-04-26  Bruno Haible  <bruno@clisp.org>
19028
19029         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19030         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19031         "../" or "..".
19032
19033 2009-04-26  Bruno Haible  <bruno@clisp.org>
19034
19035         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19036         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19037         AC_LIB_HAVE_LINKFLAGS.
19038
19039 2009-04-26  Bruno Haible  <bruno@clisp.org>
19040
19041         Simplify calling convention of u*_conv_from_encoding.
19042         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19043         u32_conv_from_encoding): Expect a resultbuf argument and return the
19044         result directly as a pointer.
19045         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19046         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19047         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19048         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19049         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19050         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19051         Update.
19052         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19053         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19054         * lib/vasnprintf.c (VASNPRINTF): Update.
19055         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19056         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19057         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19058         * NEWS: Mention the change.
19059
19060 2009-04-26  Bruno Haible  <bruno@clisp.org>
19061
19062         Simplify calling convention of u*_conv_to_encoding.
19063         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19064         u32_conv_to_encoding): Expect a resultbuf argument and return the
19065         result directly as a pointer.
19066         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19067         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19068         freeing scaled_offsets if mem_iconveha failed.
19069         * lib/unicase/u-casexfrm.h (FUNC): Update.
19070         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19071         * lib/vasnprintf.c (VASNPRINTF): Update.
19072         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19073         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19074         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19075         * NEWS: Mention the change.
19076
19077 2009-04-26  Bruno Haible  <bruno@clisp.org>
19078
19079         Avoid test failures on AIX and OSF/1.
19080         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19081         malloc(0).
19082         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19083         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19084         Likewise.
19085         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19086         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19087         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19088         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19089         * doc/posix-functions/malloc.texi: Document the portability problem
19090         related to malloc(0).
19091
19092 2009-04-26  Bruno Haible  <bruno@clisp.org>
19093
19094         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19095         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19096         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19097
19098 2009-04-25  Bruno Haible  <bruno@clisp.org>
19099
19100         Avoid link error when creating a namespace clean library.
19101         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19102         as macro with arguments if already defined as an alias.
19103         * lib/signbitf.c (gl_signbitf): Don't undefine.
19104         * lib/signbitd.c (gl_signbitd): Don't undefine.
19105         * lib/signbitl.c (gl_signbitl): Don't undefine.
19106
19107 2009-04-25  Jim Meyering  <meyering@redhat.com>
19108
19109         vc-list-files: fix another quoting bug
19110         * build-aux/vc-list-files: Avoid sed backslash expansion
19111         of pathological directory names.
19112
19113 2009-04-25  Eric Blake  <ebb9@byu.net>
19114
19115         vc-list-files: fix shell quoting error
19116         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19117         timestamp.
19118
19119 2009-04-25  Jim Meyering  <meyering@redhat.com>
19120
19121         vc-list-files: restore lost functionality with subdir argument
19122         * build-aux/vc-list-files: When given a non-"." sub-directory
19123         argument, substitute the $dir/ prefix back onto each resulting name.
19124         Otherwise, coreutils' root_tests check would fail.
19125
19126 2009-04-24  Eric Blake  <ebb9@byu.net>
19127
19128         vc-list-files: ignore git symlinks
19129         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19130         than ls-files, to ignore git symlinks.
19131
19132         maint.mk: import improvements from m4
19133         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19134         (move_if_change): Delete unused macro.
19135         (news-date-check, vc-diff-check): Support VPATH builds.
19136         (announcement): Likewise.  Split --bootstrap-tools list...
19137         (boostrap-tools): ...into separate list, which can be overridden
19138         in cfg.mk.
19139         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19140         requiring dependency on useless-if-before-free module.
19141         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19142         Support VPATH builds.
19143
19144 2009-04-24  Jim Meyering  <meyering@redhat.com>
19145
19146         maint.mk: remove coreutils-specific rules and variables
19147         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19148         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19149         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19150
19151         maint.mk: remove obsolete rule
19152         * top/maint.mk (rel-check): Remove rule.
19153         (WGET, WGETFLAGS): Remove now-unused variables.
19154
19155 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19156
19157         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19158         consistency.
19159
19160         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19161         '$(PATH_SEPARATOR)' instead of ':'.
19162
19163 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19164
19165         * lib/getopt1.c (main): Use 'const' for static array.
19166
19167 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19168
19169         * top/maint.mk: Sync with coreutils.
19170         * NEWS: Explain incompatibilities.
19171
19172 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19173             Bruno Haible  <bruno@clisp.org>
19174
19175         Fix cross-compilation results.
19176         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19177         statement, as third argument of AC_TRY_RUN.
19178         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19179         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19180         Likewise.
19181         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19182         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19183         Likewise.
19184         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19185         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19186         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19187
19188 2009-04-20  Bruno Haible  <bruno@clisp.org>
19189
19190         Avoid test failure on mingw.
19191         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19192
19193 2009-04-20  Bruno Haible  <bruno@clisp.org>
19194
19195         Avoid compilation error on mingw.
19196         * modules/localename-tests (Depends-on): Add locale.
19197
19198 2009-04-19  Bruno Haible  <bruno@clisp.org>
19199
19200         Support for building a shared library on Windows platforms.
19201         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19202         (main): Test the presence of UNINORM_NFC here.
19203         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19204         (main): Test the presence of UNINORM_NFD here.
19205         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19206         (main): Test the presence of UNINORM_NFKC here.
19207         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19208         (main): Test the presence of UNINORM_NFKD here.
19209
19210 2009-04-19  Bruno Haible  <bruno@clisp.org>
19211
19212         Avoid a compiler warning.
19213         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19214         Change type of variable 'sequence'.
19215
19216 2009-04-19  Bruno Haible  <bruno@clisp.org>
19217
19218         * modules/configmake (Makefile.am): When the contents of configmake.h
19219         does not change, arrange to preserve its modification time.
19220
19221 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19222
19223         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19224         gettext domain.
19225
19226 2009-04-16  Jim Meyering  <meyering@redhat.com>
19227
19228         useless-if-before-free: improve conversion code
19229         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19230         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19231
19232 2009-04-14  Bruno Haible  <bruno@clisp.org>
19233
19234         * modules/fcntl (Depends-on): Add extensions.
19235         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19236
19237 2009-04-12  Ben Pfaff  <blp@gnu.org>
19238
19239         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19240         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19241
19242 2009-03-20  Ben Pfaff  <blp@gnu.org>
19243
19244         Make rename replace existing destinations on Windows.
19245         * m4/rename.m4: Add test for Mingw.
19246         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19247         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19248         * doc/posix-functions/rename.texi: Document.
19249
19250 2009-04-10  Bruno Haible  <bruno@clisp.org>
19251
19252         New include file "iconveh.h".
19253         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19254         * lib/striconveh.h: Include it.
19255         (enum iconv_ilseq_handler): Remove definition.
19256         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19257         striconveh.h.
19258         * lib/striconveha.c: Include striconveh.h.
19259         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19260         * modules/striconveh (Files): Add lib/iconveh.h.
19261         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19262         lib/striconveh.h.
19263
19264 2009-04-10  Bruno Haible  <bruno@clisp.org>
19265
19266         * lib/uniconv.h: Update comment.
19267
19268 2009-04-10  Bruno Haible  <bruno@clisp.org>
19269
19270         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19271         always.
19272         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19273         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19274         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19275         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19276         "unistring-notinline.h", so that the function gets defined always.
19277         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19278         * lib/unistr/u8-uctomb.c: Likewise.
19279         * lib/unistr/u16-mbtouc.c: Likewise.
19280         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19281         * lib/unistr/u16-uctomb.c: Likewise.
19282         * lib/unistr/u32-mbtouc.c: Likewise.
19283         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19284         * lib/unistr/u32-uctomb.c: Likewise.
19285
19286 2009-04-10  Bruno Haible  <bruno@clisp.org>
19287
19288         Mark 'utime' obsolete.
19289         * modules/utime (Status, Notice): New sections.
19290         Suggested by Jim Meyering.
19291
19292         Fix cross-compile guess for utime test.
19293         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19294         autoconf.
19295         * doc/posix-functions/utime.texi: Give more precisions.
19296         Reported by Jan <ipif@ymail.com>.
19297
19298 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19299
19300         filevercmp: correct today's change
19301         * lib/filevercmp.c: Also handle coreutils' test inputs.
19302         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19303
19304         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19305         for reporting it.
19306         * lib/filevercmp.c: Special handle for "", "." and "..".
19307         * tests/test-filevercmp.c: Enlarge the set suite.
19308
19309 2009-04-07  Jim Meyering  <meyering@redhat.com>
19310
19311         useless-if-before-free: show how to remove braced useless free, too
19312         * build-aux/useless-if-before-free: still only in a comment, though.
19313
19314 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19315
19316         maint.mk: import changes to syntax-check macros from coreutils
19317         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19318         Use them in the relevant macros.
19319
19320 2009-04-06  Bruno Haible  <bruno@clisp.org>
19321
19322         Fix unportable use of bit-fields.
19323         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19324         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19325         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19326
19327 2009-04-06  Bruno Haible  <bruno@clisp.org>
19328
19329         Avoid test failures on AIX and OSF/1.
19330         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19331         that malloc(0) = NULL.
19332         * tests/unicase/test-u8-tolower.c (check): Likewise.
19333         * tests/unicase/test-u8-totitle.c (check): Likewise.
19334         * tests/unicase/test-u8-toupper.c (check): Likewise.
19335         * tests/unicase/test-u16-casefold.c (check): Likewise.
19336         * tests/unicase/test-u16-tolower.c (check): Likewise.
19337         * tests/unicase/test-u16-totitle.c (check): Likewise.
19338         * tests/unicase/test-u16-toupper.c (check): Likewise.
19339         * tests/unicase/test-u32-casefold.c (check): Likewise.
19340         * tests/unicase/test-u32-tolower.c (check): Likewise.
19341         * tests/unicase/test-u32-totitle.c (check): Likewise.
19342         * tests/unicase/test-u32-toupper.c (check): Likewise.
19343         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19344         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19345         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19346         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19347         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19348         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19349         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19350         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19351         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19352         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19353         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19354         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19355
19356 2009-04-05  Bruno Haible  <bruno@clisp.org>
19357
19358         Work around an autoconf limitation.
19359         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19360         comment line if it would be longer than 3 KB.
19361
19362 2009-04-05  Bruno Haible  <bruno@clisp.org>
19363
19364         Avoid test failure with libiconv-1.13.
19365         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19366         of the expected test results.
19367
19368 2009-04-05  Bruno Haible  <bruno@clisp.org>
19369
19370         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19371         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19372         that it should be installed.
19373
19374 2009-04-05  Bruno Haible  <bruno@clisp.org>
19375
19376         * gnulib-tool: New option --copy-file.
19377         (func_usage): Document it.
19378         (func_dest_tmpfilename): Moved out of func_import.
19379         (func_add_file, func_update_file): New functions, extracted from
19380         func_import.
19381         (func_import): Update.
19382
19383 2009-04-05  Karl Berry  <karl@gnu.org>
19384
19385         * README: prominently mention gnulib-tool.
19386         Rearrange sections so getting the code is near the top.
19387
19388 2009-04-05  Bruno Haible  <bruno@clisp.org>
19389
19390         * lib/unicase.h: Mention u*_cmp2.
19391         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19392         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19393         * lib/unicase/ulc-casecmp.c: Likewise.
19394         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19395         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19396         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19397         unistr/u8-cmp.
19398         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19399         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19400         unistr/u16-cmp.
19401         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19402         unistr/u32-cmp.
19403
19404         * lib/uninorm.h: Mention u*_cmp2.
19405         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19406         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19407         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19408         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19409         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19410         unistr/u8-cmp.
19411         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19412         unistr/u16-cmp.
19413         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19414         unistr/u32-cmp.
19415
19416         New module 'unistr/u32-cmp2'.
19417         * lib/unistr/u32-cmp2.c: New file.
19418         * modules/unistr/u32-cmp2: New file.
19419
19420         New module 'unistr/u16-cmp2'.
19421         * lib/unistr/u16-cmp2.c: New file.
19422         * modules/unistr/u16-cmp2: New file.
19423
19424         New module 'unistr/u8-cmp2'.
19425         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19426         * lib/unistr/u8-cmp2.c: New file.
19427         * lib/unistr/u-cmp2.h: New file.
19428         * modules/unistr/u8-cmp2: New file.
19429
19430 2009-04-05  Bruno Haible  <bruno@clisp.org>
19431
19432         * lib/unictype.h (uc_property_is_valid): New macro.
19433         * tests/unictype/test-pr_byname.c (main): Use it.
19434
19435         * lib/unistr.h: Doc fixes.
19436         * lib/uniconv.h: Doc fixes.
19437         * lib/unictype.h: Doc fixes.
19438
19439 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19440
19441         Port coreutils 7.2 to Solaris 8.
19442
19443         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19444         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19445         for Solaris 8.  This is a bit of a hack, as it means it's the
19446         caller's responsibility to add -lnsl if needed, but most likely it
19447         won't be needed since only getaddrinfo uses this and getaddrinfo
19448         isn't needed on Solaris 8.
19449
19450         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19451         problem to Solaris 8 encountered with coreutils 7.2, which
19452         resulted in a message "fnmatch.c:292: warning: passing argument 4
19453         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19454         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19455
19456 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19457
19458         * m4/ld-version-script.m4: Add FIXME comment.
19459
19460 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19461
19462         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19463         SOVERSION variable.
19464
19465 2009-04-02  Bruno Haible  <bruno@clisp.org>
19466
19467         * Makefile (info, html, dvi, pdf): Combine the rules.
19468         Suggested by Jim Meyering.
19469
19470 2009-04-01  Bruno Haible  <bruno@clisp.org>
19471
19472         * Makefile (info, html, dvi, pdf): New targets.
19473         Reported by Reuben Thomas <rrt@sc3d.org>.
19474
19475 2009-04-01  Bruno Haible  <bruno@clisp.org>
19476
19477         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19478         can be put into PATH.
19479         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19480
19481 2009-04-01  Bruno Haible  <bruno@clisp.org>
19482
19483         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19484
19485 2009-04-01  Bruno Haible  <bruno@clisp.org>
19486
19487         Rename module 'visibility'.
19488         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19489         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19490         * doc/gnulib.texi: Update.
19491         * MODULES.html.sh (Misc): Update.
19492         * NEWS: Mention the change.
19493
19494 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19495
19496         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19497         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19498         Eric Blake <ebb9@byu.net> for review.
19499         * MODULES.html.sh: Add lib-msvc-compat.
19500         * doc/gnulib.texi: Link to new section.
19501         * m4/ld-output-def.m4: New file.
19502         * doc/ld-output-def.texi: New file.
19503
19504 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19505
19506         Rename ld-version-script to lib-symbol-versions.  Suggested by
19507         Bruno Haible <bruno@clisp.org>.
19508         * modules/ld-version-script: Renamed to lib-symbol-versions.
19509         * doc/ld-version-script.texi: Fix module name.
19510         * MODULES.html.sh: Add lib-symbol-versions.
19511
19512 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19513
19514         * modules/u64-tests: New file.
19515         * tests/test-u64.c: New file.
19516
19517 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19518
19519         * MODULES.html.sh: Mention u64.
19520         * modules/u64: New module.
19521         * modules/crypto/sha512: Depend on u64 module instead of providing
19522         u64.h.
19523
19524 2009-03-27  Eric Blake  <ebb9@byu.net>
19525
19526         test-strerror: make debugging EAI_SYSTEM easier
19527         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19528         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19529         failure was EAI_SYSTEM.
19530
19531 2009-03-25  Bruno Haible  <bruno@clisp.org>
19532
19533         Fix a problem with --enable-relocatable on Solaris 7.
19534         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19535         since 2008-02-24.
19536
19537 2009-03-25  Eric Blake  <ebb9@byu.net>
19538
19539         test-sockets: avoid gcc warning
19540         * tests/test-sockets.c (main): Silence compiler warning.
19541
19542 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19543
19544         New modules nproc, pthread, contributed by Glen Lenker.
19545
19546         * MODULES.html.sh: Add pthread, nproc.
19547         * lib/nproc.c: New file.
19548         * lib/nproc.h: New file.
19549         * lib/pthread.in.h: New file.
19550         * m4/pthread.m4: New file.
19551         * modules/nproc: New file.
19552         * modules/pthread: New file.
19553
19554 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19555
19556         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19557         New variable.
19558
19559 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19560
19561         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19562         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19563         * tests/test-filevercmp.c: Add tests for backup suffixes.
19564
19565 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19566
19567         * modules/stdlib (Depends-on): Add stdint, needed when defining
19568         struct random_data on, for example, HP-UX 10.20.  Reported by
19569         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19570
19571 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19572
19573         * lib/readline.c (readline): Call fflush on stdout after printing
19574         prompt.
19575
19576 2009-03-20  Bruno Haible  <bruno@clisp.org>
19577
19578         Remove dependency from 'close' module to -lws2_32 on native Windows.
19579         * lib/close-hook.h: New file.
19580         * lib/close-hook.c: New file.
19581         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19582         w32sock.h.
19583         (_gl_close_fd_maybe_socket): Remove function.
19584         (rpl_close): Invoke execute_all_close_hooks instead of
19585         _gl_close_fd_maybe_socket.
19586         * lib/sockets.c: Include close-hook.h, w32sock.h.
19587         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19588         (close_sockets_hook): New variable.
19589         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19590         (gl_sockets_cleanup): Unregister it.
19591         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19592         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19593         * modules/close-hook: New file.
19594         * modules/close (Files): Remove lib/w32sock.h.
19595         (Depends-on): Add close-hook.
19596         (Link): Remove section.
19597         * modules/sockets (Files): Add lib/w32sock.h.
19598         (Depends-on): Add close-hook.
19599         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19600         invocation.
19601         * NEWS: Mention that LIB_CLOSE is gone.
19602
19603 2009-03-23  Eric Blake  <ebb9@byu.net>
19604
19605         signal-tests: test previous patch
19606         * tests/test-signal.c: New file.
19607         * modules/signal-tests: Likewise.
19608
19609         signal.h: always support 'volatile sig_atomic_t'
19610         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19611         (gl_SIGNAL_H_DEFAULTS): Add a default.
19612         * modules/signal (Makefile.am): Substitute if needed.
19613         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19614         users can blindly add volatile.
19615         * doc/posix-headers/signal.texi (signal.h): Document it.
19616         Reported by Matthew Woehlke.
19617
19618 2009-03-23  Jim Meyering  <meyering@redhat.com>
19619
19620         pathmax: PATH_MAX: use pathconf only when available
19621         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19622         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19623         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19624         This avoids a link failure in a PSP cross-compilation environment
19625         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19626
19627         * lib/vasnprintf.c (divide): Fix typo in comment.
19628
19629 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19630
19631         * gnulib-tool (func_filter_filelist): Fix comment.
19632
19633 2009-03-20  Bruno Haible  <bruno@clisp.org>
19634
19635         Make sockets.h self-contained.
19636         * lib/sockets.c: Include sockets.h first.
19637         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19638
19639 2009-03-19  Eric Blake  <ebb9@byu.net>
19640
19641         doc: mention more functions added in cygwin 1.7.0
19642         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19643         addition.
19644         * doc/posix-functions/log2f.texi: Likewise.
19645
19646 2009-03-19  Jim Meyering  <meyering@redhat.com>
19647
19648         fsusage: avoid syntax error due to statement-before-declaration
19649         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19650         after all declarations.  Reported by Matthew Woehlke in
19651         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19652
19653 2009-03-18  Eric Blake  <ebb9@byu.net>
19654
19655         build-aux/compile: sync from automake
19656         * build-aux/compile: New file, from automake.
19657         * config/srclist.txt: Mention build-aux/compile.
19658
19659 2009-03-17  Bruno Haible  <bruno@clisp.org>
19660
19661         * lib/git-merge-changelog.c: Fix typo in comment.
19662         Reported by Reuben Thomas <rrt@sc3d.org>.
19663
19664 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19665
19666         * m4/regex.m4: update and improve help for
19667         --without-included-regex.
19668
19669 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19670
19671         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19672         failure on missing include files.
19673
19674 2009-03-17  Eric Blake  <ebb9@byu.net>
19675
19676         doc: mention more functions added in cygwin 1.7.0
19677         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19678         addition.
19679         * doc/posix-functions/fwscanf.texi: Likewise.
19680         * doc/posix-functions/swprintf.texi: Likewise.
19681         * doc/posix-functions/swscanf.texi: Likewise.
19682         * doc/posix-functions/vfwprintf.texi: Likewise.
19683         * doc/posix-functions/vfwscanf.texi: Likewise.
19684         * doc/posix-functions/vswprintf.texi: Likewise.
19685         * doc/posix-functions/vswscanf.texi: Likewise.
19686         * doc/posix-functions/vwprintf.texi: Likewise.
19687         * doc/posix-functions/vwscanf.texi: Likewise.
19688         * doc/posix-functions/wcscasecmp.texi: Likewise.
19689         * doc/posix-functions/wcsdup.texi: Likewise.
19690         * doc/posix-functions/wcsftime.texi: Likewise.
19691         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19692         * doc/posix-functions/wprintf.texi: Likewise.
19693         * doc/posix-functions/wscanf.texi: Likewise.
19694         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19695
19696 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19697
19698         maint.mk: really add $(AM_MAKEFLAGS)
19699         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19700         was inadvertently omitted in the last commit.
19701         Spotted by Bruno Haible.
19702
19703         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19704         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19705         $(AM_MAKEFLAGS)' rather than plain `make'.
19706
19707         gnulib-tool: execute $MAKE not make
19708         * gnulib-tool: Default $MAKE to 'make'.
19709         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19710         than make.  Initialize $MAKE in the do-autobuild script.
19711
19712         gnulib-tool: use $MAKE not make in generated files
19713         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19714         make, in generated files.  Initialize $MAKE in the do-autobuild
19715         script.
19716
19717         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19718
19719         GNUmakefile: disable parallelism only for multiple, recursive targets
19720         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19721         additions in the Makefile.
19722         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19723         by Automake.
19724         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19725         are listed on the command line and at least one of them is
19726         listed in $(ALL_RECURSIVE_TARGETS).
19727
19728 2009-03-14  Bruno Haible  <bruno@clisp.org>
19729
19730         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19731         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19732         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19733         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19734         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19735         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19736         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19737         unistr/u8-uctomb.
19738         * modules/unistr/u8-strchr (Depends-on): Likewise.
19739         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19740         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19741         unistr/u16-uctomb.
19742         * modules/unistr/u16-strchr (Depends-on): Likewise.
19743         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19744
19745 2009-03-12  Bruno Haible  <bruno@clisp.org>
19746
19747         Work around select() bug on Interix 3.5.
19748         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19749         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19750         * m4/select.m4: New file.
19751         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19752         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19753         * modules/select (Files): Add m4/select.m4.
19754         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19755         * modules/nanosleep (Depends-on): Add select.
19756         * modules/poll (Depends-on): Likewise.
19757         * doc/posix-functions/select.texi: Mention the Interix bug.
19758         Reported by Markus Duft <mduft@gentoo.org>.
19759
19760         * lib/select.c: Renamed from lib/winsock-select.c.
19761         * modules/select (Files): Add lib/select.c, remove
19762         lib/winsock-select.c.
19763         (configure.ac): Update.
19764
19765 2009-03-12  Jim Meyering  <meyering@redhat.com>
19766
19767         avoid gcc warnings about unused macro definitions
19768         * lib/readtokens.c (STREQ): Remove unused definition.
19769         * lib/xmalloc.c (SIZE_MAX): Likewise.
19770         * lib/openat-die.c (N_): Likewise.
19771         * lib/mountlist.c (SIZE_MAX): Remove definition.
19772         Instead, include <stdint.h>.
19773         * lib/readutmp.c: Likewise.
19774         * modules/readutmp (Depends-on): Add stdint.
19775         * modules/mountlist (Depends-on): Add stdint.
19776         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19777
19778 2009-03-10  Bruno Haible  <bruno@clisp.org>
19779
19780         Tests for module 'mbmemcasecoll'.
19781         * modules/mbmemcasecoll-tests: New file.
19782         * tests/test-mbmemcasecoll1.sh: New file.
19783         * tests/test-mbmemcasecoll2.sh: New file.
19784         * tests/test-mbmemcasecoll3.sh: New file.
19785         * tests/test-mbmemcasecoll.c: New file.
19786
19787         New module 'mbmemcasecoll'.
19788         * lib/mbmemcasecoll.h: New file.
19789         * lib/mbmemcasecoll.c: New file.
19790         * modules/mbmemcasecoll: New file.
19791
19792         * tests/test-mbmemcasecmp.h: New file, extracted from
19793         tests/test-mbmemcasecmp.c.
19794         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19795         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19796         (main): Update.
19797         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19798
19799 2009-03-09  Bruno Haible  <bruno@clisp.org>
19800
19801         Tests for module 'mbmemcasecmp'.
19802         * modules/mbmemcasecmp-tests: New file.
19803         * tests/test-mbmemcasecmp1.sh: New file.
19804         * tests/test-mbmemcasecmp2.sh: New file.
19805         * tests/test-mbmemcasecmp3.sh: New file.
19806         * tests/test-mbmemcasecmp.c: New file.
19807
19808         New module 'mbmemcasecmp'.
19809         * lib/mbmemcasecmp.h: New file.
19810         * lib/mbmemcasecmp.c: New file.
19811         * modules/mbmemcasecmp: New file.
19812
19813 2009-03-09  Bruno Haible  <bruno@clisp.org>
19814
19815         Tests for module 'unicase/ulc-casecoll'.
19816         * modules/unicase/ulc-casecoll-tests: New file.
19817         * tests/unicase/test-ulc-casecoll1.sh: New file.
19818         * tests/unicase/test-ulc-casecoll2.sh: New file.
19819         * tests/unicase/test-ulc-casecoll.c: New file.
19820
19821         New module 'unicase/ulc-casecoll'.
19822         * lib/unicase.h (ulc_casecoll): New declaration.
19823         * lib/unicase/ulc-casecoll.c: New file.
19824         * modules/unicase/ulc-casecoll: New file.
19825
19826         New module 'unicase/ulc-casexfrm'.
19827         * lib/unicase.h (ulc_casexfrm): New declaration.
19828         * lib/unicase/ulc-casexfrm.c: New file.
19829         * modules/unicase/ulc-casexfrm: New file.
19830
19831 2009-03-09  Bruno Haible  <bruno@clisp.org>
19832
19833         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19834         invocations.
19835
19836         * m4/mbscasecmp.m4: Remove file.
19837         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19838         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19839
19840         * m4/mbscasestr.m4: Remove file.
19841         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19842         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19843
19844         * m4/mbschr.m4: Remove file.
19845         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19846         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19847
19848         * m4/mbscspn.m4: Remove file.
19849         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19850         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19851
19852         * m4/mbslen.m4: Remove file.
19853         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19854         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19855
19856         * m4/mbsncasecmp.m4: Remove file.
19857         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19858         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19859
19860         * m4/mbsnlen.m4: Remove file.
19861         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19862         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19863
19864         * m4/mbspbrk.m4: Remove file.
19865         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19866         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19867
19868         * m4/mbspcasecmp.m4: Remove file.
19869         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19870         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19871
19872         * m4/mbsrchr.m4: Remove file.
19873         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19874         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19875
19876         * m4/mbssep.m4: Remove file.
19877         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19878         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19879
19880         * m4/mbsspn.m4: Remove file.
19881         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19882         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19883
19884         * m4/mbsstr.m4: Remove file.
19885         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19886         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19887
19888         * m4/mbstok_r.m4: Remove file.
19889         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19890         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19891
19892         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19893
19894         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19895         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19896
19897         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19898
19899 2009-03-08  Bruno Haible  <bruno@clisp.org>
19900
19901         Tests for module 'unicase/ulc-casecmp'.
19902         * modules/unicase/ulc-casecmp-tests: New file.
19903         * tests/unicase/test-ulc-casecmp1.sh: New file.
19904         * tests/unicase/test-ulc-casecmp2.sh: New file.
19905         * tests/unicase/test-ulc-casecmp.c: New file.
19906
19907         New module 'unicase/ulc-casecmp'.
19908         * lib/unicase.h (ulc_casecmp): New declaration.
19909         * lib/unicase/ulc-casecmp.c: New file.
19910         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19911         'const SRC_UNIT *'.
19912         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19913         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19914         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19915         * modules/unicase/ulc-casecmp: New file.
19916
19917         Tests for module 'unicase/u32-is-cased'.
19918         * modules/unicase/u32-is-cased-tests: New file.
19919         * tests/unicase/test-u32-is-cased.c: New file.
19920
19921         Tests for module 'unicase/u16-is-cased'.
19922         * modules/unicase/u16-is-cased-tests: New file.
19923         * tests/unicase/test-u16-is-cased.c: New file.
19924
19925         Tests for module 'unicase/u8-is-cased'.
19926         * modules/unicase/u8-is-cased-tests: New file.
19927         * tests/unicase/test-u8-is-cased.c: New file.
19928         * tests/unicase/test-is-cased.h: New file.
19929
19930         New module 'unicase/u32-is-cased'.
19931         * lib/unicase/u32-is-cased.c: New file.
19932         * modules/unicase/u32-is-cased: New file.
19933
19934         New module 'unicase/u16-is-cased'.
19935         * lib/unicase/u16-is-cased.c: New file.
19936         * modules/unicase/u16-is-cased: New file.
19937
19938         New module 'unicase/u8-is-cased'.
19939         * lib/unicase/u8-is-cased.c: New file.
19940         * lib/unicase/u-is-cased.h: New file.
19941         * modules/unicase/u8-is-cased: New file.
19942
19943         Tests for module 'unicase/u32-is-casefolded'.
19944         * modules/unicase/u32-is-casefolded-tests: New file.
19945         * tests/unicase/test-u32-is-casefolded.c: New file.
19946
19947         Tests for module 'unicase/u16-is-casefolded'.
19948         * modules/unicase/u16-is-casefolded-tests: New file.
19949         * tests/unicase/test-u16-is-casefolded.c: New file.
19950
19951         Tests for module 'unicase/u8-is-casefolded'.
19952         * modules/unicase/u8-is-casefolded-tests: New file.
19953         * tests/unicase/test-u8-is-casefolded.c: New file.
19954         * tests/unicase/test-is-casefolded.h: New file.
19955
19956         New module 'unicase/u32-is-casefolded'.
19957         * lib/unicase/u32-is-casefolded.c: New file.
19958         * modules/unicase/u32-is-casefolded: New file.
19959
19960         New module 'unicase/u16-is-casefolded'.
19961         * lib/unicase/u16-is-casefolded.c: New file.
19962         * modules/unicase/u16-is-casefolded: New file.
19963
19964         New module 'unicase/u8-is-casefolded'.
19965         * lib/unicase/u8-is-casefolded.c: New file.
19966         * modules/unicase/u8-is-casefolded: New file.
19967
19968         Tests for module 'unicase/u32-is-titlecase'.
19969         * modules/unicase/u32-is-titlecase-tests: New file.
19970         * tests/unicase/test-u32-is-titlecase.c: New file.
19971
19972         Tests for module 'unicase/u16-is-titlecase'.
19973         * modules/unicase/u16-is-titlecase-tests: New file.
19974         * tests/unicase/test-u16-is-titlecase.c: New file.
19975
19976         Tests for module 'unicase/u8-is-titlecase'.
19977         * modules/unicase/u8-is-titlecase-tests: New file.
19978         * tests/unicase/test-u8-is-titlecase.c: New file.
19979         * tests/unicase/test-is-titlecase.h: New file.
19980
19981         New module 'unicase/u32-is-titlecase'.
19982         * lib/unicase/u32-is-titlecase.c: New file.
19983         * modules/unicase/u32-is-titlecase: New file.
19984
19985         New module 'unicase/u16-is-titlecase'.
19986         * lib/unicase/u16-is-titlecase.c: New file.
19987         * modules/unicase/u16-is-titlecase: New file.
19988
19989         New module 'unicase/u8-is-titlecase'.
19990         * lib/unicase/u8-is-titlecase.c: New file.
19991         * modules/unicase/u8-is-titlecase: New file.
19992
19993         Tests for module 'unicase/u32-is-lowercase'.
19994         * modules/unicase/u32-is-lowercase-tests: New file.
19995         * tests/unicase/test-u32-is-lowercase.c: New file.
19996
19997         Tests for module 'unicase/u16-is-lowercase'.
19998         * modules/unicase/u16-is-lowercase-tests: New file.
19999         * tests/unicase/test-u16-is-lowercase.c: New file.
20000
20001         Tests for module 'unicase/u8-is-lowercase'.
20002         * modules/unicase/u8-is-lowercase-tests: New file.
20003         * tests/unicase/test-u8-is-lowercase.c: New file.
20004         * tests/unicase/test-is-lowercase.h: New file.
20005
20006         New module 'unicase/u32-is-lowercase'.
20007         * lib/unicase/u32-is-lowercase.c: New file.
20008         * modules/unicase/u32-is-lowercase: New file.
20009
20010         New module 'unicase/u16-is-lowercase'.
20011         * lib/unicase/u16-is-lowercase.c: New file.
20012         * modules/unicase/u16-is-lowercase: New file.
20013
20014         New module 'unicase/u8-is-lowercase'.
20015         * lib/unicase/u8-is-lowercase.c: New file.
20016         * modules/unicase/u8-is-lowercase: New file.
20017
20018         Tests for module 'unicase/u32-is-uppercase'.
20019         * modules/unicase/u32-is-uppercase-tests: New file.
20020         * tests/unicase/test-u32-is-uppercase.c: New file.
20021
20022         Tests for module 'unicase/u16-is-uppercase'.
20023         * modules/unicase/u16-is-uppercase-tests: New file.
20024         * tests/unicase/test-u16-is-uppercase.c: New file.
20025
20026         Tests for module 'unicase/u8-is-uppercase'.
20027         * modules/unicase/u8-is-uppercase-tests: New file.
20028         * tests/unicase/test-u8-is-uppercase.c: New file.
20029         * tests/unicase/test-is-uppercase.h: New file.
20030
20031         New module 'unicase/u32-is-uppercase'.
20032         * lib/unicase/u32-is-uppercase.c: New file.
20033         * modules/unicase/u32-is-uppercase: New file.
20034
20035         New module 'unicase/u16-is-uppercase'.
20036         * lib/unicase/u16-is-uppercase.c: New file.
20037         * modules/unicase/u16-is-uppercase: New file.
20038
20039         New module 'unicase/u8-is-uppercase'.
20040         * lib/unicase/u8-is-uppercase.c: New file.
20041         * modules/unicase/u8-is-uppercase: New file.
20042
20043         New module 'unicase/u32-is-invariant'.
20044         * lib/unicase/u32-is-invariant.c: New file.
20045         * modules/unicase/u32-is-invariant: New file.
20046
20047         New module 'unicase/u16-is-invariant'.
20048         * lib/unicase/u16-is-invariant.c: New file.
20049         * modules/unicase/u16-is-invariant: New file.
20050
20051         New module 'unicase/u8-is-invariant'.
20052         * lib/unicase/u8-is-invariant.c: New file.
20053         * lib/unicase/invariant.h: New file.
20054         * lib/unicase/u-is-invariant.h: New file.
20055         * modules/unicase/u8-is-invariant: New file.
20056
20057         Tests for module 'unicase/u32-casecoll'.
20058         * modules/unicase/u32-casecoll-tests: New file.
20059         * tests/unicase/test-u32-casecoll.c: New file.
20060
20061         Tests for module 'unicase/u16-casecoll'.
20062         * modules/unicase/u16-casecoll-tests: New file.
20063         * tests/unicase/test-u16-casecoll.c: New file.
20064
20065         Tests for module 'unicase/u8-casecoll'.
20066         * modules/unicase/u8-casecoll-tests: New file.
20067         * tests/unicase/test-u8-casecoll.c: New file.
20068
20069         New module 'unicase/u32-casecoll'.
20070         * lib/unicase/u32-casecoll.c: New file.
20071         * modules/unicase/u32-casecoll: New file.
20072
20073         New module 'unicase/u16-casecoll'.
20074         * lib/unicase/u16-casecoll.c: New file.
20075         * modules/unicase/u16-casecoll: New file.
20076
20077         New module 'unicase/u8-casecoll'.
20078         * lib/unicase/u8-casecoll.c: New file.
20079         * lib/unicase/u-casecoll.h: New file.
20080         * modules/unicase/u8-casecoll: New file.
20081
20082         New module 'unicase/u32-casexfrm'.
20083         * lib/unicase/u32-casexfrm.c: New file.
20084         * modules/unicase/u32-casexfrm: New file.
20085
20086         New module 'unicase/u16-casexfrm'.
20087         * lib/unicase/u16-casexfrm.c: New file.
20088         * modules/unicase/u16-casexfrm: New file.
20089
20090         New module 'unicase/u8-casexfrm'.
20091         * lib/unicase/u8-casexfrm.c: New file.
20092         * lib/unicase/u-casexfrm.h: New file.
20093         * modules/unicase/u8-casexfrm: New file.
20094
20095         Tests for module 'unicase/u32-casecmp'.
20096         * modules/unicase/u32-casecmp-tests: New file.
20097         * tests/unicase/test-u32-casecmp.c: New file.
20098
20099         Tests for module 'unicase/u16-casecmp'.
20100         * modules/unicase/u16-casecmp-tests: New file.
20101         * tests/unicase/test-u16-casecmp.c: New file.
20102
20103         Tests for module 'unicase/u8-casecmp'.
20104         * modules/unicase/u8-casecmp-tests: New file.
20105         * tests/unicase/test-u8-casecmp.c: New file.
20106         * tests/unicase/test-casecmp.h: New file.
20107
20108         New module 'unicase/u32-casecmp'.
20109         * lib/unicase/u32-casecmp.c: New file.
20110         * modules/unicase/u32-casecmp: New file.
20111
20112         New module 'unicase/u16-casecmp'.
20113         * lib/unicase/u16-casecmp.c: New file.
20114         * modules/unicase/u16-casecmp: New file.
20115
20116         New module 'unicase/u8-casecmp'.
20117         * lib/unicase/u8-casecmp.c: New file.
20118         * lib/unicase/u-casecmp.h: New file.
20119         * modules/unicase/u8-casecmp: New file.
20120
20121         Tests for module 'unicase/u32-casefold'.
20122         * modules/unicase/u32-casefold-tests: New file.
20123         * tests/unicase/test-u32-casefold.c: New file.
20124
20125         Tests for module 'unicase/u16-casefold'.
20126         * modules/unicase/u16-casefold-tests: New file.
20127         * tests/unicase/test-u16-casefold.c: New file.
20128
20129         Tests for module 'unicase/u8-casefold'.
20130         * modules/unicase/u8-casefold-tests: New file.
20131         * tests/unicase/test-u8-casefold.c: New file.
20132
20133         New module 'unicase/u32-casefold'.
20134         * lib/unicase/u32-casefold.c: New file.
20135         * modules/unicase/u32-casefold: New file.
20136
20137         New module 'unicase/u16-casefold'.
20138         * lib/unicase/u16-casefold.c: New file.
20139         * modules/unicase/u16-casefold: New file.
20140
20141         New module 'unicase/u8-casefold'.
20142         * lib/unicase/u8-casefold.c: New file.
20143         * lib/unicase/u-casefold.h: New file.
20144         * modules/unicase/u8-casefold: New file.
20145
20146         New module 'unicase/tocasefold'.
20147         * lib/unicase/casefold.h: New file.
20148         * lib/unicase/tocasefold.c: New file.
20149         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20150         * modules/unicase/tocasefold: New file.
20151
20152         Tests for module 'unicase/u32-totitle'.
20153         * modules/unicase/u32-totitle-tests: New file.
20154         * tests/unicase/test-u32-totitle.c: New file.
20155
20156         Tests for module 'unicase/u16-totitle'.
20157         * modules/unicase/u16-totitle-tests: New file.
20158         * tests/unicase/test-u16-totitle.c: New file.
20159
20160         Tests for module 'unicase/u8-totitle'.
20161         * modules/unicase/u8-totitle-tests: New file.
20162         * tests/unicase/test-u8-totitle.c: New file.
20163
20164         New module 'unicase/u32-totitle'.
20165         * lib/unicase/u32-totitle.c: New file.
20166         * modules/unicase/u32-totitle: New file.
20167
20168         New module 'unicase/u16-totitle'.
20169         * lib/unicase/u16-totitle.c: New file.
20170         * modules/unicase/u16-totitle: New file.
20171
20172         New module 'unicase/u8-totitle'.
20173         * lib/unicase/u8-totitle.c: New file.
20174         * lib/unicase/u-totitle.h: New file.
20175         * modules/unicase/u8-totitle: New file.
20176
20177         Tests for module 'unicase/u32-tolower'.
20178         * modules/unicase/u32-tolower-tests: New file.
20179         * tests/unicase/test-u32-tolower.c: New file.
20180
20181         Tests for module 'unicase/u16-tolower'.
20182         * modules/unicase/u16-tolower-tests: New file.
20183         * tests/unicase/test-u16-tolower.c: New file.
20184
20185         Tests for module 'unicase/u8-tolower'.
20186         * modules/unicase/u8-tolower-tests: New file.
20187         * tests/unicase/test-u8-tolower.c: New file.
20188
20189         New module 'unicase/u32-tolower'.
20190         * lib/unicase/u32-tolower.c: New file.
20191         * modules/unicase/u32-tolower: New file.
20192
20193         New module 'unicase/u16-tolower'.
20194         * lib/unicase/u16-tolower.c: New file.
20195         * modules/unicase/u16-tolower: New file.
20196
20197         New module 'unicase/u8-tolower'.
20198         * lib/unicase/u8-tolower.c: New file.
20199         * modules/unicase/u8-tolower: New file.
20200
20201         Tests for module 'unicase/u32-toupper'.
20202         * modules/unicase/u32-toupper-tests: New file.
20203         * tests/unicase/test-u32-toupper.c: New file.
20204
20205         Tests for module 'unicase/u16-toupper'.
20206         * modules/unicase/u16-toupper-tests: New file.
20207         * tests/unicase/test-u16-toupper.c: New file.
20208
20209         Tests for module 'unicase/u8-toupper'.
20210         * modules/unicase/u8-toupper-tests: New file.
20211         * tests/unicase/test-u8-toupper.c: New file.
20212
20213         New module 'unicase/u32-toupper'.
20214         * lib/unicase/u32-toupper.c: New file.
20215         * modules/unicase/u32-toupper: New file.
20216
20217         New module 'unicase/u16-toupper'.
20218         * lib/unicase/u16-toupper.c: New file.
20219         * modules/unicase/u16-toupper: New file.
20220
20221         New module 'unicase/u8-toupper'.
20222         * lib/unicase/u8-toupper.c: New file.
20223         * modules/unicase/u8-toupper: New file.
20224
20225         New module 'unicase/u32-casemap'.
20226         * lib/unicase/u32-casemap.c: New file.
20227         * modules/unicase/u32-casemap: New file.
20228
20229         New module 'unicase/u16-casemap'.
20230         * lib/unicase/u16-casemap.c: New file.
20231         * modules/unicase/u16-casemap: New file.
20232
20233         New module 'unicase/u8-casemap'.
20234         * lib/unicase/unicasemap.h: New file.
20235         * lib/unicase/u8-casemap.c: New file.
20236         * lib/unicase/u-casemap.h: New file.
20237         * modules/unicase/u8-casemap: New file.
20238
20239         New module 'unicase/special-casing'.
20240         * lib/unicase/special-casing.h: New file.
20241         * lib/unicase/special-casing.c: New file.
20242         * lib/unicase/special-casing-table.gperf: New file, generated by
20243         gen-uni-tables.c.
20244         * modules/unicase/special-casing: New file.
20245
20246         Tests for module 'unicase/locale-language'.
20247         * modules/unicase/locale-language-tests: New file.
20248         * tests/unicase/test-locale-language.sh: New file.
20249         * tests/unicase/test-locale-language.c: New file.
20250
20251         New module 'unicase/locale-language'.
20252         * lib/unicase/locale-language.c: New file.
20253         * lib/unicase/locale-languages.gperf: New file.
20254         * modules/unicase/locale-language: New file.
20255
20256         Generate more tables for case conversion and case folding.
20257         * lib/gen-uni-tables.c (SCC_*): New enum items.
20258         (struct special_casing_rule): New type.
20259         (casing_rules, num_casing_rules, allocated_casing_rules): New
20260         variables.
20261         (add_casing_rule, fill_casing_rules): New functions.
20262         (struct casefold_rule): New type.
20263         (casefolding_rules, num_casefolding_rules,
20264         allocated_casefolding_rules): New variables.
20265         (fill_casefolding_rules): New function.
20266         (unicode_casefold): New variable.
20267         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20268         sort_casing_rules, output_casing_rules): New functions.
20269         (main): Accept to more arguments: SpecialCasing.txt and
20270         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20271         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20272         Output mapping for casefolding.
20273
20274         * lib/unicase.h: Include stdbool.h, uninorm.h.
20275         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20276         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20277         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20278         arguments.
20279         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20280         resultp arguments.
20281         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20282         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20283         resultp arguments.
20284         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20285         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20286         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20287         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20288         declarations.
20289         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20290
20291 2009-03-08  Bruno Haible  <bruno@clisp.org>
20292
20293         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20294         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20295         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20296         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20297
20298 2009-03-07  Bruno Haible  <bruno@clisp.org>
20299
20300         Adjust u*_normcmp, u*_normcoll API.
20301         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20302         u16_normcoll, u32_normcoll): Change failure conventions.
20303         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20304         errno and return -1.
20305         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20306
20307 2009-03-07  Bruno Haible  <bruno@clisp.org>
20308
20309         Tests for module 'uninorm/u32-normcoll'.
20310         * modules/uninorm/u32-normcoll-tests: New file.
20311         * tests/uninorm/test-u32-normcoll.c: New file.
20312
20313         Tests for module 'uninorm/u16-normcoll'.
20314         * modules/uninorm/u16-normcoll-tests: New file.
20315         * tests/uninorm/test-u16-normcoll.c: New file.
20316
20317         Tests for module 'uninorm/u8-normcoll'.
20318         * modules/uninorm/u8-normcoll-tests: New file.
20319         * tests/uninorm/test-u8-normcoll.c: New file.
20320
20321 2009-03-07  Bruno Haible  <bruno@clisp.org>
20322
20323         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20324         tests/uninorm/test-u32-normcmp.c.
20325         * tests/uninorm/test-u32-normcmp.c: Include it.
20326         (test_nonascii): New function, extracted from main. Add some more
20327         tests.
20328         (main): Invoke test_ascii and test_nonascii.
20329         * modules/uninorm/u32-normcmp-tests (Files): Add
20330         tests/uninorm/test-u32-normcmp.h.
20331         (Depends-on): Remove uninorm/u32-normcmp.
20332
20333         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20334         tests/uninorm/test-u16-normcmp.c.
20335         * tests/uninorm/test-u16-normcmp.c: Include it.
20336         (test_nonascii): New function, extracted from main. Add some more
20337         tests.
20338         (main): Invoke test_ascii and test_nonascii.
20339         * modules/uninorm/u16-normcmp-tests (Files): Add
20340         tests/uninorm/test-u16-normcmp.h.
20341         (Depends-on): Remove uninorm/u16-normcmp.
20342
20343         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20344         tests/uninorm/test-u8-normcmp.c.
20345         * tests/uninorm/test-u8-normcmp.c: Include it.
20346         (test_nonascii): New function, extracted from main. Add some more
20347         tests.
20348         (main): Invoke test_ascii and test_nonascii.
20349         * modules/uninorm/u8-normcmp-tests (Files): Add
20350         tests/uninorm/test-u8-normcmp.h.
20351         (Depends-on): Remove uninorm/u8-normcmp.
20352
20353 2009-03-07  Bruno Haible  <bruno@clisp.org>
20354
20355         New module 'uninorm/u32-normcoll'.
20356         * lib/uninorm/u32-normcoll.c: New file.
20357         * modules/uninorm/u32-normcoll: New file.
20358
20359         New module 'uninorm/u16-normcoll'.
20360         * lib/uninorm/u16-normcoll.c: New file.
20361         * modules/uninorm/u16-normcoll: New file.
20362
20363         New module 'uninorm/u8-normcoll'.
20364         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20365         declarations.
20366         * lib/uninorm/u8-normcoll.c: New file.
20367         * lib/uninorm/u-normcoll.h: New file.
20368         * modules/uninorm/u8-normcoll: New file.
20369
20370         New module 'uninorm/u32-normxfrm'.
20371         * lib/uninorm/u32-normxfrm.c: New file.
20372         * modules/uninorm/u32-normxfrm: New file.
20373
20374         New module 'uninorm/u16-normxfrm'.
20375         * lib/uninorm/u16-normxfrm.c: New file.
20376         * modules/uninorm/u16-normxfrm: New file.
20377
20378         New module 'uninorm/u8-normxfrm'.
20379         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20380         declarations.
20381         * lib/uninorm/u8-normxfrm.c: New file.
20382         * lib/uninorm/u-normxfrm.h: New file.
20383         * modules/uninorm/u8-normxfrm: New file.
20384
20385 2009-03-07  Bruno Haible  <bruno@clisp.org>
20386
20387         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20388         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20389         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20390
20391 2009-03-07  Bruno Haible  <bruno@clisp.org>
20392
20393         New module 'memxfrm'.
20394         * lib/memxfrm.h: New file.
20395         * lib/memxfrm.c: New file.
20396         * modules/memxfrm: New file.
20397
20398 2009-03-07  Bruno Haible  <bruno@clisp.org>
20399
20400         New module 'memcmp2'.
20401         * lib/memcmp2.h: New file.
20402         * lib/memcmp2.c: New file.
20403         * modules/memcmp2: New file.
20404
20405 2009-03-07  Bruno Haible  <bruno@clisp.org>
20406
20407         Tests for module 'uninorm/decomposing-form'.
20408         * modules/uninorm/decomposing-form-tests: New file.
20409         * tests/uninorm/test-decomposing-form.c: New file.
20410
20411         New module 'uninorm/decomposing-form'.
20412         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20413         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20414         Add 'decomposing_variant' field.
20415         * lib/uninorm/decomposing-form.c: New file.
20416         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20417         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20418         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20419         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20420         * modules/uninorm/decomposing-form: New file.
20421         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20422         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20423
20424 2009-03-07  Bruno Haible  <bruno@clisp.org>
20425
20426         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20427         strings.
20428
20429 2009-03-06  Bruno Haible  <bruno@clisp.org>
20430
20431         Tests for module 'uninorm/u32-normcmp'.
20432         * tests/uninorm/test-u32-normcmp.c: New file.
20433         * modules/uninorm/u32-normcmp-tests: New file.
20434
20435         Tests for module 'uninorm/u16-normcmp'.
20436         * tests/uninorm/test-u16-normcmp.c: New file.
20437         * modules/uninorm/u16-normcmp-tests: New file.
20438
20439         Tests for module 'uninorm/u8-normcmp'.
20440         * tests/uninorm/test-u8-normcmp.c: New file.
20441         * modules/uninorm/u8-normcmp-tests: New file.
20442
20443         New module 'uninorm/u32-normcmp'.
20444         * lib/uninorm/u32-normcmp.c: New file.
20445         * modules/uninorm/u32-normcmp: New file.
20446
20447         New module 'uninorm/u16-normcmp'.
20448         * lib/uninorm/u16-normcmp.c: New file.
20449         * modules/uninorm/u16-normcmp: New file.
20450
20451         New module 'uninorm/u8-normcmp'.
20452         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20453         declarations.
20454         * lib/uninorm/u8-normcmp.c: New file.
20455         * lib/uninorm/u-normcmp.h: New file.
20456         * modules/uninorm/u8-normcmp: New file.
20457
20458 2009-03-06  Bruno Haible  <bruno@clisp.org>
20459
20460         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20461         Reported by Eric Blake.
20462
20463 2009-03-06  Eric Blake  <ebb9@byu.net>
20464             Bruno Haible  <bruno@clisp.org>
20465
20466         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20467         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20468         condition.
20469         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20470         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20471         condition.
20472         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20473
20474 2009-03-06  Eric Blake  <ebb9@byu.net>
20475
20476         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20477         to avoid compiler warnings.
20478         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20479
20480 2009-03-05  Bruno Haible  <bruno@clisp.org>
20481
20482         * tests/test-ftell.c (main): Disable test beyond end of file on
20483         FreeMiNT.
20484         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20485
20486 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20487
20488         * lib/filevercmp.c: Move hidden files up in ordering.
20489         * tests/test-filevercmp.c: Add tests for hidden files.
20490
20491 2009-03-04  Bruno Haible  <bruno@clisp.org>
20492
20493         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20494         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20495         AM_CFLAGS.
20496         Reported by Simon Josefsson.
20497
20498 2009-03-03  Bruno Haible  <bruno@clisp.org>
20499
20500         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20501         Reported by Simon Josefsson.
20502
20503         * doc/ld-version-script.texi: Update node reference.
20504
20505 2009-03-03  Bruno Haible  <bruno@clisp.org>
20506
20507         * modules/visibility (License): Change to 'unlimited'.
20508         Suggested by Simon Josefsson.
20509
20510 2009-03-03  Jim Meyering  <meyering@redhat.com>
20511
20512         unlinkdir: cannot_unlink_dir may modify process state
20513         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20514         it's neither thread-safe nor appropriate for use in a library.
20515
20516 2009-03-03  Eric Blake  <ebb9@byu.net>
20517
20518         test-closein: silence test under Darwin
20519         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20520         care if it dies from EPIPE or EBADF.
20521
20522 2009-03-03  Bruno Haible  <bruno@clisp.org>
20523
20524         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20525         earlier.
20526         * doc/visibility.texi: Fix @node and @section.
20527
20528 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20529
20530         * doc/gnulib.texi: Link to sections for ld version script and
20531         visibility.
20532         * doc/visibility.texi: Add @node and @section.
20533         * modules/ld-version-script: New module.
20534         * m4/ld-version-script.m4: New file.
20535         * doc/ld-version-script.texi: New file.
20536
20537 2009-03-02  David Lutterkort  <lutter@redhat.com>
20538
20539         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20541
20542 2009-03-02  Bruno Haible  <bruno@clisp.org>
20543
20544         * doc/visibility.texi: Mention libtool's -export-symbols option.
20545
20546 2009-03-02  Jim Meyering  <meyering@redhat.com>
20547
20548         announce-gen: new option: --no-print-checksums
20549         * build-aux/announce-gen (usage): Describe it.
20550         (print_checksums): Print a newline here, not in the [*] footnote.
20551         (main): Honor it.
20552
20553 2009-03-01  Bruno Haible  <bruno@clisp.org>
20554
20555         Use socklen_t in the native Windows replacements prototypes.
20556         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20557         instead of 'int'.
20558         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20559         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20560         * modules/getsockopt (Depends-on): Add socklen.
20561         * modules/setsockopt (Depends-on): Add socklen.
20562
20563 2009-03-01  Bruno Haible  <bruno@clisp.org>
20564
20565         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20566         least 4.2.
20567
20568 2009-03-01  Eric Blake  <ebb9@byu.net>
20569             Bruno Haible  <bruno@clisp.org>
20570
20571         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20572         error messages.
20573         * lib/wait-process.c (wait_subprocess): Omit error message about
20574         deadly signal sent to the child of termsigp != NULL.
20575
20576 2009-03-01  Eric Blake  <ebb9@byu.net>
20577
20578         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20579
20580 2009-03-01  Bruno Haible  <bruno@clisp.org>
20581
20582         Avoid a gcc warning.
20583         * tests/test-sched.c (b): Make global.
20584         Reported by Eric Blake.
20585
20586 2009-01-19  Martin Lambers  <marlam@marlam.de>
20587
20588         Provide POSIX semantics for socket timeout options on W32.
20589         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20590         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20591         * modules/setsockopt: Depend on sys_time module for struct timeval.
20592         * modules/getsockopt: Depend on sys_time module for struct timeval.
20593
20594 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20595
20596         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20597         __USE_GNU, for consistency with netdb.in.h.
20598         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20599
20600 2009-03-01  Bruno Haible  <bruno@clisp.org>
20601
20602         More support for FreeMiNT.
20603         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20604         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20605
20606 2009-03-01  Bruno Haible  <bruno@clisp.org>
20607
20608         More support for FreeMiNT.
20609         * lib/fpurge.c (fpurge): Correct last commit.
20610         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20611
20612 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20613
20614         Fix unportable awk script in vc-list-files.
20615         * build-aux/vc-list-files: In the replacement awk script, use
20616         substr with a second argument of 1, not zero.
20617         Report by Simon Josefsson.
20618
20619 2009-02-28  Bruno Haible  <bruno@clisp.org>
20620
20621         More support for FreeMiNT.
20622         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20623         to FreeMiNT today.
20624         * lib/fwriting.c (fwriting): Likewise.
20625         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20626
20627 2009-02-28  Bruno Haible  <bruno@clisp.org>
20628
20629         * tests/test-freadseek.c (main): Disable test beyond end of file on
20630         FreeMiNT.
20631         * tests/test-ftello.c (main): Likewise.
20632         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20633
20634 2009-02-28  Bruno Haible  <bruno@clisp.org>
20635
20636         Add tentative support for FreeMiNT.
20637         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20638         * lib/fpurge.c (fpurge): Likewise.
20639         * lib/freadable.c (freadable): Likewise.
20640         * lib/freading.c (freading): Likewise.
20641         * lib/freadptr.c (freadptr): Likewise.
20642         * lib/freadseek.c (freadptrinc): Likewise.
20643         * lib/fseeko.c (rpl_fseeko): Likewise.
20644         * lib/fseterr.c (fseterr): Likewise.
20645         * lib/fwritable.c (fwritable): Likewise.
20646         * lib/fwriting.c (fwriting): Likewise.
20647         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20648         Hourihane.
20649         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20650
20651 2009-02-28  Bruno Haible  <bruno@clisp.org>
20652
20653         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20654         SIGCHLD.
20655         Reported by Jim Meyering.
20656
20657 2009-02-28  Bruno Haible  <bruno@clisp.org>
20658
20659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20660         Mention the results of these tests on various platforms.
20661         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20662         order.
20663         * doc/posix-functions/printf.texi: Likewise.
20664         * doc/posix-functions/snprintf.texi: Likewise.
20665         * doc/posix-functions/sprintf.texi: Likewise.
20666         * doc/posix-functions/vfprintf.texi: Likewise.
20667         * doc/posix-functions/vprintf.texi: Likewise.
20668         * doc/posix-functions/vsnprintf.texi: Likewise.
20669         * doc/posix-functions/vsprintf.texi: Likewise.
20670         * doc/glibc-functions/obstack_printf.texi: Likewise.
20671         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20672
20673 2009-02-28  Bruno Haible  <bruno@clisp.org>
20674
20675         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20676         Reported by Loïc Minier <lool@dooz.org>.
20677
20678 2009-02-27  Bruno Haible  <bruno@clisp.org>
20679
20680         * gnulib-tool (func_import): Make the sed expression used to create the
20681         sed script for updating the .gitignore file POSIX compliant.
20682         Reported by Eric Blake.
20683
20684 2009-02-27  Bruno Haible  <bruno@clisp.org>
20685
20686         * gnulib-tool (sed): Don't alias as "sed --posix".
20687         Reported by Eric Blake.
20688
20689 2009-02-27  Bruno Haible  <bruno@clisp.org>
20690
20691         Avoid test link errors.
20692         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20693         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20694         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20695         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20697
20698 2009-02-27  Bruno Haible  <bruno@clisp.org>
20699
20700         Avoid spurious "(cached)" in configure output.
20701         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20702         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20703         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20704         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20705         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20706         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20707         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20708         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20709         Reported by Eric Blake.
20710
20711 2009-02-27  Eric Blake  <ebb9@byu.net>
20712
20713         printf: fix regression in previous patch
20714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20715
20716 2009-02-27  Bruno Haible  <bruno@clisp.org>
20717
20718         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20719         value.
20720         * lib/stdint.in.h: Likewise.
20721         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20722
20723 2009-02-27  Eric Blake  <ebb9@byu.net>
20724
20725         doc: mention more functions added in cygwin 1.7.0
20726         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20727         addition.
20728         * doc/posix-functions/open_wmemstream.texi: Likewise.
20729         * doc/posix-functions/wcsnlen.texi: Likewise.
20730         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20731         * doc/posix-functions/wcstod.texi: Likewise.
20732         * doc/posix-functions/wcstof.texi: Likewise.
20733         * doc/posix-functions/wcstoimax.texi: Likewise.
20734         * doc/posix-functions/wcstok.texi: Likewise.
20735         * doc/posix-functions/wcstoumax.texi: Likewise.
20736
20737         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20739         * doc/posix-functions/fprintf.texi: Update.
20740         * doc/posix-functions/printf.texi: Update.
20741         * doc/posix-functions/snprintf.texi: Update.
20742         * doc/posix-functions/sprintf.texi: Update.
20743         * doc/posix-functions/vfprintf.texi: Update.
20744         * doc/posix-functions/vprintf.texi: Update.
20745         * doc/posix-functions/vsnprintf.texi: Update.
20746         * doc/posix-functions/vsprintf.texi: Update.
20747         * doc/glibc-functions/obstack_printf.texi: Update.
20748         * doc/glibc-functions/obstack_vprintf.texi: Update.
20749
20750 2009-02-26  Eric Blake  <ebb9@byu.net>
20751
20752         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20753         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20754         compilation bug by using runtime conversion.
20755         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20756         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20757         * modules/ceill-tests (Files): Use nan.h.
20758         * modules/floorl-tests (Files): Likewise.
20759         * modules/frexpl-tests (Files): Likewise.
20760         * modules/isnanl-tests (Files): Likewise.
20761         * modules/ldexpl-tests (Files): Likewise.
20762         * modules/roundl-tests (Files): Likewise.
20763         * modules/truncl-tests (Files): Likewise.
20764         * tests/test-ceill.c (main): Use a working NaN.
20765         * tests/test-floorl.c (main): Likewise.
20766         * tests/test-frexpl.c (main): Likewise.
20767         * tests/test-isnan.c (test_long_double): Likewise.
20768         * tests/test-isnanl.h (main): Likewise.
20769         * tests/test-ldexpl.h (main): Likewise.
20770         * tests/test-roundl.h (main): Likewise.
20771         * tests/test-truncl.h (main): Likewise.
20772         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20773
20774 2009-02-26  Eric Blake  <ebb9@byu.net>
20775             Bruno Haible  <bruno@clisp.org>
20776
20777         Work around a *printf bug with %ls on Solaris.
20778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20779         precision is specified, sprintf stops converting the wide string
20780         argument when the number of bytes that have been produced by this
20781         conversion equals or exceeds the precision.
20782         * doc/posix-functions/fprintf.texi: Update.
20783         * doc/posix-functions/printf.texi: Update.
20784         * doc/posix-functions/snprintf.texi: Update.
20785         * doc/posix-functions/sprintf.texi: Update.
20786         * doc/posix-functions/vfprintf.texi: Update.
20787         * doc/posix-functions/vprintf.texi: Update.
20788         * doc/posix-functions/vsnprintf.texi: Update.
20789         * doc/posix-functions/vsprintf.texi: Update.
20790         * doc/glibc-functions/obstack_printf.texi: Update.
20791         * doc/glibc-functions/obstack_vprintf.texi: Update.
20792
20793 2009-02-26  Eric Blake  <ebb9@byu.net>
20794
20795         stdlib: favor compiler check of random.h
20796         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20797         to avoid an ObjC random.h installed by Swarm.
20798
20799 2009-02-26  Bruno Haible  <bruno@clisp.org>
20800
20801         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20802         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20803         Reported by Gary V. Vaughan <gary@gnu.org>.
20804
20805 2009-02-26  Bruno Haible  <bruno@clisp.org>
20806
20807         Fix *printf behaviour regarding the %ls directive.
20808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20809         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20810         NEED_PRINTF_DIRECTIVE_LS.
20811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20812         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20813         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20814         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20815         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20816         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20817         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20822         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20826         * doc/posix-functions/fprintf.texi: Update.
20827         * doc/posix-functions/printf.texi: Update.
20828         * doc/posix-functions/snprintf.texi: Update.
20829         * doc/posix-functions/sprintf.texi: Update.
20830         * doc/posix-functions/vfprintf.texi: Update.
20831         * doc/posix-functions/vprintf.texi: Update.
20832         * doc/posix-functions/vsnprintf.texi: Update.
20833         * doc/posix-functions/vsprintf.texi: Update.
20834         * doc/glibc-functions/obstack_printf.texi: Update.
20835         * doc/glibc-functions/obstack_vprintf.texi: Update.
20836         Reported by Eric Blake.
20837
20838 2009-02-25  Bruno Haible  <bruno@clisp.org>
20839
20840         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20841         with known value.
20842         Reported by Gary V. Vaughan <gary@gnu.org>.
20843
20844 2009-02-25  Bruno Haible  <bruno@clisp.org>
20845
20846         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20847         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20848         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20849         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20850         Reported by Gary V. Vaughan <gary@gnu.org>.
20851
20852 2009-02-25  Bruno Haible  <bruno@clisp.org>
20853
20854         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20855         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20856         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20857         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20858         Reported by Gary V. Vaughan <gary@gnu.org>.
20859
20860 2009-02-25  Eric Blake  <ebb9@byu.net>
20861
20862         tests: skip fseek/ftell tests if ungetc is broken
20863         * m4/ungetc.m4: New file.
20864         * modules/fseek-tests: Split test, so ungetc dependency is
20865         separate from rest of test.
20866         * modules/fseeko-tests: Likewise.
20867         * modules/ftell-tests: Likewise.
20868         * modules/ftello-tests: Likewise.
20869         * tests/test-fseek.c (main): Isolate ungetc dependency.
20870         * tests/test-fseeko.c (main): Likewise.
20871         * tests/test-ftell.c (main): Likewise.
20872         * tests/test-ftello.c (main): Likewise.
20873         * tests/test-fseek2.sh: New file.
20874         * tests/test-fseeko2.sh: Likewise.
20875         * tests/test-ftell2.sh: Likewise.
20876         * tests/test-ftello2.sh: Likewise.
20877
20878 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20879
20880         test-getaddrinfo: fix usage of skip return code 77
20881         * tests/test-gettaddrinfo.c: Return skip code 77 only
20882         for first occurance of skip (4x77 is not 77)
20883
20884 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20885
20886         strtod: avoid C99 decl-after-statement
20887         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20888
20889 2009-02-24  Eric Blake  <ebb9@byu.net>
20890
20891         strtod: detect HP-UX 11.31 bug
20892         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20893         Reported by Gary V. Vaughan.
20894
20895 2009-02-23  Bruno Haible  <bruno@clisp.org>
20896
20897         Fix invalid read past end of memory block.
20898         * lib/vasnprintf.c (DCHAR_SET): Define.
20899         (local_wcslen): Define only when needed.
20900         (local_strnlen, local_wcsnlen): New functions.
20901         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20902         directives that involve a conversion ourselves.
20903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20904         wcsnlen, mbrtowc, wcrtomb.
20905         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20906         * tests/test-vasprintf-posix.c (test_function): Likewise.
20907         * tests/test-snprintf-posix.h (test_function): Likewise.
20908         * tests/test-sprintf-posix.h (test_function): Likewise.
20909         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20910
20911 2009-02-22  Bruno Haible  <bruno@clisp.org>
20912
20913         Implement new clarified decomposition of Hangul syllables.
20914         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20915         of type LTV, return only a pairwise decomposition.
20916         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20917         Likewise.
20918         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20919         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20920         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20921
20922 2009-02-22  Bruno Haible  <bruno@clisp.org>
20923
20924         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20925         zero-length results and shrink excess allocated memory.
20926         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20927         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20928         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20929         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20930         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20931         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20932         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20933         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20934         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20935         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20936         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20937         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20938
20939 2009-02-21  Bruno Haible  <bruno@clisp.org>
20940
20941         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20942         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20943         spaces after a period. Put a space between a macro name and its
20944         argument list. Trivial rewordings.
20945         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20946         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20947         (main): Return 0 explicitly.
20948
20949 2009-02-21  Bruno Haible  <bruno@clisp.org>
20950
20951         Tests for module 'uninorm/filter'.
20952         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20953         * modules/uninorm/filter-tests: New file.
20954
20955         New module 'uninorm/filter'.
20956         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
20957         uninorm_filter_flush, uninorm_filter_free): New declarations.
20958         * lib/uninorm/uninorm-filter.c: New file.
20959         * modules/uninorm/filter: New file.
20960
20961 2009-02-21  Bruno Haible  <bruno@clisp.org>
20962
20963         Tests for module 'uninorm/nfkc'.
20964         * tests/uninorm/test-nfkc.c: New file.
20965         * tests/uninorm/test-u8-nfkc.c: New file.
20966         * tests/uninorm/test-u16-nfkc.c: New file.
20967         * tests/uninorm/test-u32-nfkc.c: New file.
20968         * tests/uninorm/test-u32-nfkc-big.sh: New file.
20969         * tests/uninorm/test-u32-nfkc-big.c: New file.
20970         * modules/uninorm/nfkc-tests: New file.
20971
20972         New module 'uninorm/nfkc'.
20973         * lib/uninorm/nfkc.c: New file.
20974         * modules/uninorm/nfkc: New file.
20975
20976         Tests for module 'uninorm/nfkd'.
20977         * tests/uninorm/test-nfkd.c: New file.
20978         * tests/uninorm/test-u8-nfkd.c: New file.
20979         * tests/uninorm/test-u16-nfkd.c: New file.
20980         * tests/uninorm/test-u32-nfkd.c: New file.
20981         * tests/uninorm/test-u32-nfkd-big.sh: New file.
20982         * tests/uninorm/test-u32-nfkd-big.c: New file.
20983         * modules/uninorm/nfkd-tests: New file.
20984
20985         New module 'uninorm/nfkd'.
20986         * lib/uninorm/nfkd.c: New file.
20987         * modules/uninorm/nfkd: New file.
20988
20989         Tests for module 'uninorm/nfc'.
20990         * tests/uninorm/test-nfc.c: New file.
20991         * tests/uninorm/test-u8-nfc.c: New file.
20992         * tests/uninorm/test-u16-nfc.c: New file.
20993         * tests/uninorm/test-u32-nfc.c: New file.
20994         * tests/uninorm/test-u32-nfc-big.sh: New file.
20995         * tests/uninorm/test-u32-nfc-big.c: New file.
20996         * modules/uninorm/nfc-tests: New file.
20997
20998         New module 'uninorm/nfc'.
20999         * lib/uninorm/nfc.c: New file.
21000         * modules/uninorm/nfc: New file.
21001
21002         Tests for module 'uninorm/nfd'.
21003         * tests/uninorm/test-nfd.c: New file.
21004         * tests/uninorm/test-u8-nfd.c: New file.
21005         * tests/uninorm/test-u16-nfd.c: New file.
21006         * tests/uninorm/test-u32-nfd.c: New file.
21007         * tests/uninorm/test-u32-nfd-big.sh: New file.
21008         * tests/uninorm/test-u32-nfd-big.c: New file.
21009         * tests/uninorm/test-u32-normalize-big.h: New file.
21010         * tests/uninorm/test-u32-normalize-big.c: New file.
21011         * tests/uninorm/NormalizationTest.txt: New file, created from
21012         Unicode 5.1.0 NormalizationTest.txt.
21013         * modules/uninorm/nfd-tests: New file.
21014
21015         New module 'uninorm/nfd'.
21016         * lib/uninorm/nfd.c: New file.
21017         * modules/uninorm/nfd: New file.
21018
21019         New module 'uninorm/u32-normalize'.
21020         * lib/uninorm/u32-normalize.c: New file.
21021         * modules/uninorm/u32-normalize: New file.
21022
21023         New module 'uninorm/u16-normalize'.
21024         * lib/uninorm/u16-normalize.c: New file.
21025         * modules/uninorm/u16-normalize: New file.
21026
21027         New module 'uninorm/u8-normalize'.
21028         * lib/uninorm/u8-normalize.c: New file.
21029         * lib/uninorm/normalize-internal.h: New file.
21030         * lib/uninorm/u-normalize-internal.h: New file.
21031         * modules/uninorm/u8-normalize: New file.
21032
21033         New module 'uninorm/decompose-internal'.
21034         * lib/uninorm/decompose-internal.c: New file.
21035         * modules/uninorm/decompose-internal: New file.
21036
21037         Tests for module 'uninorm/composition'.
21038         * tests/uninorm/test-composition.c: New file.
21039         * modules/uninorm/composition-tests: New file.
21040
21041         New module 'uninorm/composition'.
21042         * lib/uninorm/composition.c: New file.
21043         * lib/uninorm/composition-table.gperf: New file, generated by
21044         gen-uni-tables.
21045         * modules/uninorm/composition: New file.
21046
21047         Tests for module 'uninorm/compat-decomposition'.
21048         * tests/uninorm/test-compat-decomposition.c: New file.
21049         * modules/uninorm/compat-decomposition-tests: New file.
21050
21051         New module 'uninorm/compat-decomposition'.
21052         * lib/uninorm/decompose-internal.h: New file.
21053         * lib/uninorm/compat-decomposition.c: New file.
21054         * modules/uninorm/compat-decomposition: New file.
21055
21056         Tests for module 'uninorm/canonical-decomposition'.
21057         * tests/uninorm/test-canonical-decomposition.c: New file.
21058         * modules/uninorm/canonical-decomposition-tests: New file.
21059
21060         New module 'uninorm/canonical-decomposition'.
21061         * lib/uninorm/canonical-decomposition.c: New file.
21062         * modules/uninorm/canonical-decomposition: New file.
21063
21064         Tests for module 'uninorm/decomposition'.
21065         * tests/uninorm/test-decomposition.c: New file.
21066         * modules/uninorm/decomposition-tests: New file.
21067
21068         New module 'uninorm/decomposition'.
21069         * lib/uninorm/decomposition.c: New file.
21070         * modules/uninorm/decomposition: New file.
21071
21072         New module 'uninorm/decomposition-table'.
21073         * lib/uninorm/decomposition-table.h: New file.
21074         * lib/uninorm/decomposition-table.c: New file.
21075         * lib/uninorm/decomposition-table1.h: New file, generated by
21076         gen-uni-tables.
21077         * lib/uninorm/decomposition-table2.h: New file, generated by
21078         gen-uni-tables.
21079         * modules/uninorm/decomposition-table: New file.
21080
21081         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21082         (UC_DECOMP_*): New enumeration items.
21083         (get_decomposition): New function.
21084         (struct decomp_table): New type.
21085         (output_decomposition, output_decomposition_tables): New functions.
21086         (unicode_composition_exclusions): New variable.
21087         (fill_composition_exclusions, debug_output_composition_tables): New
21088         functions.
21089         (main): Accept one more argument. Invoke fill_composition_exclusions.
21090         Output decomposition and composition tables.
21091
21092         New module 'uninorm/base'.
21093         * lib/uninorm.h: New file.
21094         * lib/unictype.h: Update comment.
21095         * modules/uninorm/base: New file.
21096
21097 2009-02-21  David Lutterkort  <lutter@redhat.com>
21098
21099         Tests for module 'safe-alloc'.
21100         * tests/test-safe-alloc.c: New file.
21101         * modules/safe-alloc-tests: New file.
21102
21103         New module 'safe-alloc'.
21104         * lib/safe-alloc.h: New file.
21105         * lib/safe-alloc.c: New file.
21106         * m4/safe-alloc.m4: New file.
21107         * modules/safe-alloc: New file.
21108         * doc/safe-alloc.texi: New file.
21109         * doc/gnulib.texi: Include it.
21110         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21111         safe-alloc.
21112
21113 2009-02-18  Bruno Haible  <bruno@clisp.org>
21114
21115         Fix link error on non-glibc systems.
21116         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21117         variable.
21118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21119
21120 2009-02-18  Jim Meyering  <meyering@redhat.com>
21121
21122         fts: avoid used-uninitialized error due to recent change
21123         * lib/fts.c (fts_read): Guard uses of the new member,
21124         parent->fts_n_dirs_remaining, since it's not relevant for
21125         the parent of a directory specified on the command-line.
21126
21127 2009-02-17  James Youngman  <jay@gnu.org>
21128             Bruno Haible  <bruno@clisp.org>
21129
21130         * m4/include_next.m4: Reformulate comment.
21131
21132 2009-02-16  Jim Meyering  <meyering@redhat.com>
21133
21134         fts: add #if guards so that the fts_lgpl module still builds
21135         * lib/fts.c: Guard just-added hash-table-using parts with
21136         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21137         Reported by Simon Josefsson.
21138
21139 2009-02-15  Bruno Haible  <bruno@clisp.org>
21140
21141         * modules/array-mergesort-tests: New file.
21142         * tests/test-array-mergesort.c: New file.
21143
21144         New module 'array-mergesort'.
21145         * modules/array-mergesort: New file.
21146         * lib/array-mergesort.h: New file.
21147
21148 2009-02-15  Bruno Haible  <bruno@clisp.org>
21149
21150         Fix 2009-02-07 commit.
21151         * lib/gen-uni-tables.c (output_predicate, output_category,
21152         output_combclass, output_bidi_category, output_decimal_digit,
21153         output_digit, output_numeric, output_mirror, output_scripts,
21154         output_ident_category, output_simple_mapping): Fix format directives.
21155         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21156
21157 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21158
21159         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21160         fixes are available from IBM.
21161
21162 2009-02-13  Jim Meyering  <meyering@redhat.com>
21163
21164         fts: arrange not to stat non-directories in more cases
21165         This makes GNU find (when it doesn't need to stat each file)
21166         *much* more efficient at traversing reiserfs file systems.
21167         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21168         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21169         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21170         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21171         (leaf_optimization_applies): New function.
21172         (LCO_hash, LCO_compare): New helper functions.
21173         (link_count_optimize_ok): New function.
21174         (fts_stat): Initialize new member (if dir).
21175         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21176         we've just stat'ed a directory.  Skip the stat call when possible.
21177         ---
21178         Note this AFS-related exchange:
21179         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21180         and note find's pioctl call in find/fstype.c.
21181         But that is necessary only if you want to enable the
21182         optimization for AFS, and for now, I don't.
21183
21184         fts: move a function definition "up" (no semantic change)
21185         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21186         "up" to precede upcoming use of a related function.
21187
21188 2009-02-11  Jim Meyering  <meyering@redhat.com>
21189
21190         fts: correct internal computation of nlinks (optimization-related)
21191         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21192         whether the current entry is a directory, so don't test it.
21193
21194 2009-02-10  Bruno Haible  <bruno@clisp.org>
21195
21196         Tests for module 'uniwbrk/ulc-wordbreaks'.
21197         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21198         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21199         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21200
21201         Tests for module 'uniwbrk/u32-wordbreaks'.
21202         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21203         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21204
21205         Tests for module 'uniwbrk/u16-wordbreaks'.
21206         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21207         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21208
21209         Tests for module 'uniwbrk/u8-wordbreaks'.
21210         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21211         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21212
21213 2009-02-10  Bruno Haible  <bruno@clisp.org>
21214
21215         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21216         property.
21217         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21218         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21219         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21220
21221 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21222
21223         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21224         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21225
21226 2009-02-10  Bruno Haible  <bruno@clisp.org>
21227
21228         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21229         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21230         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21231         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21232         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21233         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21234
21235 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21236
21237         * lib/sockets.h (gl_fd_to_handle): New function.
21238
21239         * tests/test-sockets.c: Call gl_fd_to_handle.
21240
21241 2009-02-09  Bruno Haible  <bruno@clisp.org>
21242
21243         * doc/havelib.texi: Document the conventions on bi-arch systems.
21244
21245 2009-02-08  Bruno Haible  <bruno@clisp.org>
21246
21247         Document the AC_LIB_LINKFLAGS macro.
21248         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21249         * doc/gnulib.texi: Include it.
21250
21251 2009-02-08  Bruno Haible  <bruno@clisp.org>
21252
21253         Fix wrong order of sections, compared to TOC.
21254         * doc/gnulib.texi: Include relocatable-maint.texi after the
21255         "Regular expressions" node, not before.
21256
21257 2009-02-08  Bruno Haible  <bruno@clisp.org>
21258
21259         Tests for module 'unicase/totitle'.
21260         * modules/unicase/totitle-tests: New file.
21261
21262         Tests for module 'unicase/tolower'.
21263         * modules/unicase/tolower-tests: New file.
21264
21265         Tests for module 'unicase/toupper'.
21266         * modules/unicase/toupper-tests: New file.
21267         * tests/unicase/test-mapping-part1.h: New file.
21268         * tests/unicase/test-mapping-part2.h: New file.
21269
21270         New module 'unicase/totitle'.
21271         * modules/unicase/totitle: New file.
21272         * lib/unicase/totitle.c: New file.
21273
21274         New module 'unicase/tolower'.
21275         * modules/unicase/tolower: New file.
21276         * lib/unicase/tolower.c: New file.
21277
21278         New module 'unicase/toupper'.
21279         * modules/unicase/toupper: New file.
21280         * lib/unicase/toupper.c: New file.
21281         * lib/unicase/simple-mapping.h: New file.
21282
21283         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21284         (mapping_table): New structure.
21285         (output_simple_mapping): New function.
21286         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21287         * modules/gen-uni-tables (Description): Update.
21288         * lib/unicase/toupper.h: New file, automatically generated by
21289         gen-uni-tables.
21290         * lib/unicase/tolower.h: New file, automatically generated by
21291         gen-uni-tables.
21292         * lib/unicase/totitle.h: New file, automatically generated by
21293         gen-uni-tables.
21294         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21295         gen-uni-tables.
21296         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21297         gen-uni-tables.
21298         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21299         gen-uni-tables.
21300
21301         New module 'unicase/base'.
21302         * modules/unicase/base: New file.
21303         * lib/unicase.h: New file.
21304
21305 2009-02-08  Bruno Haible  <bruno@clisp.org>
21306
21307         New module 'uniwbrk/ulc-wordbreaks'.
21308         * modules/uniwbrk/ulc-wordbreaks: New file.
21309         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21310
21311         New module 'uniwbrk/u32-wordbreaks'.
21312         * modules/uniwbrk/u32-wordbreaks: New file.
21313         * lib/uniwbrk/u32-wordbreaks.c: New file.
21314
21315         New module 'uniwbrk/u16-wordbreaks'.
21316         * modules/uniwbrk/u16-wordbreaks: New file.
21317         * lib/uniwbrk/u16-wordbreaks.c: New file.
21318
21319         New module 'uniwbrk/u8-wordbreaks'.
21320         * modules/uniwbrk/u8-wordbreaks: New file.
21321         * lib/uniwbrk/u8-wordbreaks.c: New file.
21322         * lib/uniwbrk/u-wordbreaks.h: New file.
21323
21324         New module 'uniwbrk/table'.
21325         * modules/uniwbrk/table: New file.
21326         * lib/uniwbrk/wbrktable.h: New file.
21327         * lib/uniwbrk/wbrktable.c: New file.
21328
21329         New module 'uniwbrk/wordbreak-property'.
21330         * modules/uniwbrk/wordbreak-property: New file.
21331         * lib/uniwbrk/wordbreak-property.c: New file.
21332
21333         * lib/gen-uni-tables.c (WBP_*): New enum items.
21334         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21335         (unicode_org_wbp): New variable.
21336         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21337         New functions.
21338         (wbp_table): New structure.
21339         (output_wbp, output_wbrk_tables): New functions.
21340         (main): Accept additional argument. Invoke fill_org_wbp,
21341         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21342         output_wbrk_tables.
21343         * modules/gen-uni-tables (Description): Update.
21344         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21345         gen-uni-tables.
21346
21347         New module 'uniwbrk/base'.
21348         * modules/uniwbrk/base: New file.
21349         * lib/uniwbrk.h: New file.
21350
21351 2009-02-08  Bruno Haible  <bruno@clisp.org>
21352
21353         Update to Unicode 5.1.0.
21354         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21355         U+2185..U+2188.
21356         (is_property_default_ignorable_code_point): Don't include characters
21357         of category Cc or Cs and not-a-characters.
21358         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21359         U+0D79, U+109E, U+109F, U+A60C.
21360         * lib/unictype/bidi_of.h: Regenerated.
21361         * lib/unictype/blocks.h: Regenerated.
21362         * lib/unictype/categ_C.h: Regenerated.
21363         * lib/unictype/categ_Cf.h: Regenerated.
21364         * lib/unictype/categ_Cn.h: Regenerated.
21365         * lib/unictype/categ_L.h: Regenerated.
21366         * lib/unictype/categ_Ll.h: Regenerated.
21367         * lib/unictype/categ_Lm.h: Regenerated.
21368         * lib/unictype/categ_Lo.h: Regenerated.
21369         * lib/unictype/categ_Lu.h: Regenerated.
21370         * lib/unictype/categ_M.h: Regenerated.
21371         * lib/unictype/categ_Mc.h: Regenerated.
21372         * lib/unictype/categ_Me.h: Regenerated.
21373         * lib/unictype/categ_Mn.h: Regenerated.
21374         * lib/unictype/categ_N.h: Regenerated.
21375         * lib/unictype/categ_Nd.h: Regenerated.
21376         * lib/unictype/categ_Nl.h: Regenerated.
21377         * lib/unictype/categ_No.h: Regenerated.
21378         * lib/unictype/categ_P.h: Regenerated.
21379         * lib/unictype/categ_Pd.h: Regenerated.
21380         * lib/unictype/categ_Pe.h: Regenerated.
21381         * lib/unictype/categ_Pf.h: Regenerated.
21382         * lib/unictype/categ_Pi.h: Regenerated.
21383         * lib/unictype/categ_Po.h: Regenerated.
21384         * lib/unictype/categ_Ps.h: Regenerated.
21385         * lib/unictype/categ_S.h: Regenerated.
21386         * lib/unictype/categ_Sk.h: Regenerated.
21387         * lib/unictype/categ_Sm.h: Regenerated.
21388         * lib/unictype/categ_So.h: Regenerated.
21389         * lib/unictype/categ_of.h: Regenerated.
21390         * lib/unictype/combining.h: Regenerated.
21391         * lib/unictype/ctype_alnum.h: Regenerated.
21392         * lib/unictype/ctype_alpha.h: Regenerated.
21393         * lib/unictype/ctype_graph.h: Regenerated.
21394         * lib/unictype/ctype_lower.h: Regenerated.
21395         * lib/unictype/ctype_print.h: Regenerated.
21396         * lib/unictype/ctype_punct.h: Regenerated.
21397         * lib/unictype/ctype_upper.h: Regenerated.
21398         * lib/unictype/decdigit.h: Regenerated.
21399         * lib/unictype/digit.h: Regenerated.
21400         * lib/unictype/mirror.h: Regenerated.
21401         * lib/unictype/numeric.h: Regenerated.
21402         * lib/unictype/pr_alphabetic.h: Regenerated.
21403         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21404         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21405         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21406         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21407         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21408         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21409         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21410         * lib/unictype/pr_combining.h: Regenerated.
21411         * lib/unictype/pr_dash.h: Regenerated.
21412         * lib/unictype/pr_decimal_digit.h: Regenerated.
21413         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21414         * lib/unictype/pr_deprecated.h: Regenerated.
21415         * lib/unictype/pr_diacritic.h: Regenerated.
21416         * lib/unictype/pr_extender.h: Regenerated.
21417         * lib/unictype/pr_format_control.h: Regenerated.
21418         * lib/unictype/pr_grapheme_base.h: Regenerated.
21419         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21420         * lib/unictype/pr_grapheme_link.h: Regenerated.
21421         * lib/unictype/pr_id_continue.h: Regenerated.
21422         * lib/unictype/pr_id_start.h: Regenerated.
21423         * lib/unictype/pr_ideographic.h: Regenerated.
21424         * lib/unictype/pr_ignorable_control.h: Regenerated.
21425         * lib/unictype/pr_lowercase.h: Regenerated.
21426         * lib/unictype/pr_math.h: Regenerated.
21427         * lib/unictype/pr_numeric.h: Regenerated.
21428         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21429         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21430         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21431         * lib/unictype/pr_other_id_continue.h: Regenerated.
21432         * lib/unictype/pr_other_lowercase.h: Regenerated.
21433         * lib/unictype/pr_other_math.h: Regenerated.
21434         * lib/unictype/pr_punctuation.h: Regenerated.
21435         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21436         * lib/unictype/pr_soft_dotted.h: Regenerated.
21437         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21438         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21439         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21440         * lib/unictype/pr_uppercase.h: Regenerated.
21441         * lib/unictype/pr_xid_continue.h: Regenerated.
21442         * lib/unictype/pr_xid_start.h: Regenerated.
21443         * lib/unictype/pr_zero_width.h: Regenerated.
21444         * lib/unictype/scripts.h: Regenerated.
21445         * lib/unictype/scripts_byname.gperf: Regenerated.
21446         * lib/unictype/sy_java_ident.h: Regenerated.
21447         * lib/unilbrk/lbrkprop1.h: Regenerated.
21448         * lib/unilbrk/lbrkprop2.h: Regenerated.
21449         * tests/unictype/test-categ_C.c: Regenerated.
21450         * tests/unictype/test-categ_Cf.c: Regenerated.
21451         * tests/unictype/test-categ_Cn.c: Regenerated.
21452         * tests/unictype/test-categ_L.c: Regenerated.
21453         * tests/unictype/test-categ_Ll.c: Regenerated.
21454         * tests/unictype/test-categ_Lm.c: Regenerated.
21455         * tests/unictype/test-categ_Lo.c: Regenerated.
21456         * tests/unictype/test-categ_Lu.c: Regenerated.
21457         * tests/unictype/test-categ_M.c: Regenerated.
21458         * tests/unictype/test-categ_Mc.c: Regenerated.
21459         * tests/unictype/test-categ_Me.c: Regenerated.
21460         * tests/unictype/test-categ_Mn.c: Regenerated.
21461         * tests/unictype/test-categ_N.c: Regenerated.
21462         * tests/unictype/test-categ_Nd.c: Regenerated.
21463         * tests/unictype/test-categ_Nl.c: Regenerated.
21464         * tests/unictype/test-categ_No.c: Regenerated.
21465         * tests/unictype/test-categ_P.c: Regenerated.
21466         * tests/unictype/test-categ_Pd.c: Regenerated.
21467         * tests/unictype/test-categ_Pe.c: Regenerated.
21468         * tests/unictype/test-categ_Pf.c: Regenerated.
21469         * tests/unictype/test-categ_Pi.c: Regenerated.
21470         * tests/unictype/test-categ_Po.c: Regenerated.
21471         * tests/unictype/test-categ_Ps.c: Regenerated.
21472         * tests/unictype/test-categ_S.c: Regenerated.
21473         * tests/unictype/test-categ_Sk.c: Regenerated.
21474         * tests/unictype/test-categ_Sm.c: Regenerated.
21475         * tests/unictype/test-categ_So.c: Regenerated.
21476         * tests/unictype/test-ctype_alnum.c: Regenerated.
21477         * tests/unictype/test-ctype_alpha.c: Regenerated.
21478         * tests/unictype/test-ctype_graph.c: Regenerated.
21479         * tests/unictype/test-ctype_lower.c: Regenerated.
21480         * tests/unictype/test-ctype_print.c: Regenerated.
21481         * tests/unictype/test-ctype_punct.c: Regenerated.
21482         * tests/unictype/test-ctype_upper.c: Regenerated.
21483         * tests/unictype/test-decdigit.h: Regenerated.
21484         * tests/unictype/test-digit.h: Regenerated.
21485         * tests/unictype/test-numeric.h: Regenerated.
21486         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21487         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21488         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21489         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21490         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21491         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21492         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21493         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21494         * tests/unictype/test-pr_combining.c: Regenerated.
21495         * tests/unictype/test-pr_dash.c: Regenerated.
21496         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21497         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21498         * tests/unictype/test-pr_deprecated.c: Regenerated.
21499         * tests/unictype/test-pr_diacritic.c: Regenerated.
21500         * tests/unictype/test-pr_extender.c: Regenerated.
21501         * tests/unictype/test-pr_format_control.c: Regenerated.
21502         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21503         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21504         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21505         * tests/unictype/test-pr_id_continue.c: Regenerated.
21506         * tests/unictype/test-pr_id_start.c: Regenerated.
21507         * tests/unictype/test-pr_ideographic.c: Regenerated.
21508         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21509         * tests/unictype/test-pr_lowercase.c: Regenerated.
21510         * tests/unictype/test-pr_math.c: Regenerated.
21511         * tests/unictype/test-pr_numeric.c: Regenerated.
21512         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21513         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21514         Regenerated.
21515         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21516         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21517         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21518         * tests/unictype/test-pr_other_math.c: Regenerated.
21519         * tests/unictype/test-pr_punctuation.c: Regenerated.
21520         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21521         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21522         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21523         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21524         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21525         * tests/unictype/test-pr_uppercase.c: Regenerated.
21526         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21527         * tests/unictype/test-pr_xid_start.c: Regenerated.
21528         * tests/unictype/test-pr_zero_width.c: Regenerated.
21529
21530         Update to Unicode 5.1.0.
21531         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21532         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21533         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21534         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21535         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21536         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21537         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21538         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21539         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21540         (nonspacing_table_ind): Update.
21541         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21542
21543         Update to Unicode 5.1.0.
21544         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21545         code transform.
21546         * lib/uniname/uniname.c (unicode_character_name,
21547         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21548         * lib/uniname/uninames.h: Regenerated.
21549         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21550
21551 2009-02-07  Bruno Haible  <bruno@clisp.org>
21552
21553         Merge gen-ctype and gen-lbrk into a single program.
21554         * lib/gen-uni-tables.c: New file, incorporating
21555         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21556         Add directory prefixes to the names of the generated files.
21557         * lib/unictype/gen-ctype.c: Remove file.
21558         * lib/unilbrk/gen-lbrk.c: Remove file.
21559         * modules/gen-uni-tables: New file.
21560         * modules/unictype/gen-ctype: Remove file.
21561         * modules/unilbrk/gen-lbrk: Remove file.
21562
21563 2009-02-07  Bruno Haible  <bruno@clisp.org>
21564
21565         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21566
21567         New module 'unistr/u32-strcoll'.
21568         * modules/unistr/u32-strcoll: New file.
21569         * lib/unistr/u32-strcoll.c: New file.
21570
21571         New module 'unistr/u16-strcoll'.
21572         * modules/unistr/u16-strcoll: New file.
21573         * lib/unistr/u16-strcoll.c: New file.
21574
21575         New module 'unistr/u8-strcoll'.
21576         * modules/unistr/u8-strcoll: New file.
21577         * lib/unistr/u8-strcoll.c: New file.
21578         * lib/unistr/u-strcoll.h: New file.
21579
21580 2009-02-07  Bruno Haible  <bruno@clisp.org>
21581
21582         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21583         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21584         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21585         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21586         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21587         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21588
21589 2009-02-07  Bruno Haible  <bruno@clisp.org>
21590
21591         Make 64-bit clean.
21592         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21593         output_combclass, output_bidi_category, output_decimal_digit,
21594         output_digit, output_numeric, output_mirror, output_scripts,
21595         output_ident_category): Use proper width specifier in format strings.
21596
21597 2009-02-07  Bruno Haible  <bruno@clisp.org>
21598
21599         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21600         failure behaviour.
21601
21602 2009-02-07  Jim Meyering  <meyering@redhat.com>
21603
21604         regex: avoid compilation failure with upcoming gcc-4.4
21605         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21606         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21607         "... error: integer overflow in preprocessor expression".
21608
21609 2009-02-05  Ben Pfaff  <blp@gnu.org>
21610
21611         Fix link errors on Windows when close module is used.
21612         * modules/close: Add $(LIB_CLOSE) to Link section.
21613         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21614         $(LIB_CLOSE) on Windows.
21615
21616 2009-02-05  Jim Meyering  <meyering@redhat.com>
21617
21618         still avoid unused-parameter warnings, but do it cleanly
21619         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21620         (get_fs_usage): Cast to void instead.
21621         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21622         (dev_from_mount_options, read_file_system_list): Cast to void.
21623         Prompted by Bruno Haible.
21624
21625 2009-02-04  Jim Meyering  <meyering@redhat.com>
21626
21627         fsusage.c: correct copyright year
21628         * lib/fsusage.c: Reflect year in which the change is pushed into
21629
21630         avoid misc. warnings
21631         * lib/fsusage.c (UNUSED_PARAM): Define.
21632         (get_fs_usage): Mark parameter "disk" as unused.
21633         * lib/getugroups.c (getgrent): Use "void" in prototype.
21634         * lib/mountlist.c: Mark unused parameters.
21635         (read_file_system_list): Declare a local with "const".
21636         * lib/nanosleep.c (getnow): Declare static.
21637         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21638
21639         dirfd: set errno upon failure
21640         * lib/dirfd.c: Include <errno.h>.
21641         Set errno to ENOTSUP when returning -1.
21642         * modules/dirfd (Depends-on): Add errno.
21643         Suggested by John Kodis <kodis@comcast.net>.
21644
21645 2009-02-01  Bruno Haible  <bruno@clisp.org>
21646
21647         Don't assume sizeof (long) >= sizeof (void *).
21648         * lib/memcmp.c: Include stdint.h.
21649         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21650         srcp2 to 'const byte *'.
21651         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21652         types to uintptr_t.
21653         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21654         * modules/memcmp (Depends-on): Add stdint.
21655         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21656
21657 2009-01-30  Eric Blake  <ebb9@byu.net>
21658
21659         fix more require-before-expand issues
21660         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21661         expand, AC_PROG_AWK.
21662         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21663
21664 2009-01-28  Eric Blake  <ebb9@byu.net>
21665
21666         version-etc: use consistent URL formatting
21667         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21668         Improve formatting.  Use fputs for string without %.
21669
21670 2009-01-28  Jim Meyering  <meyering@redhat.com>
21671
21672         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21673         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21674         "underquoted definition of NAME" from autoconf-2.59.
21675
21676 2009-01-28  Bruno Haible  <bruno@clisp.org>
21677
21678         * doc/gnulib.texi: Add "Obsolete modules" to index.
21679
21680 2009-01-28  Jim Meyering  <meyering@redhat.com>
21681
21682         useless-if-before-free: recognize more variants
21683         * build-aux/useless-if-before-free: Also recognize e.g.,
21684         if (NULL != p) free (p);
21685
21686 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21687
21688         test-getaddrinfo: skip (don't fail) this test when there's no network
21689         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21690         on the presumption that it means you lack network access.
21691
21692 2009-01-26  Jim Meyering  <meyering@redhat.com>
21693
21694         fflush: avoid warnings on modern systems
21695         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21696         pos and result, into scopes where they're used.
21697
21698 2009-01-26  Eric Blake  <ebb9@byu.net>
21699
21700         Silence warning reintroduced by recent extensions patch.
21701         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21702         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21703         autoconf.
21704
21705         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21706         * m4/00gnulib.m4: New file.
21707         * gnulib-tool (func_get_filelist): Always use it.
21708         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21709         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21710
21711 2009-01-25  Bruno Haible  <bruno@clisp.org>
21712
21713         Make test-quotearg work on MacOS X and AIX.
21714         * tests/test-quotearg.sh: New file.
21715         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21716         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21717         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21718         include <libintl.h>.
21719         (fake_locale): Remove variable.
21720         (gettext, dgettext, dcgettext): Remove functions.
21721         (main): Instead of setting a fake locale, set a real locale. Call
21722         textdomain and bindtextdomain.
21723         * modules/quotearg-tests (Files): Add the new files.
21724         (Depends-on): Add gettext, setenv, unsetenv.
21725         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21726         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21727         Augment TESTS_ENVIRONMENT.
21728
21729 2009-01-25  Bruno Haible  <bruno@clisp.org>
21730
21731         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21732         fr_FR.ISO8859-1 locale on MacOS X.
21733         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21734         ja_JP.eucJP locale on MacOS X.
21735         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21736         zh_CN.GB18030 locale on MacOS X.
21737
21738 2009-01-25  Bruno Haible  <bruno@clisp.org>
21739
21740         Avoid link errors on MacOS X 10.3.
21741         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21742         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21743
21744 2009-01-25  Bruno Haible  <bruno@clisp.org>
21745
21746         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21747         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21748         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21749         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21750         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21751         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21752         posix_spawnattr_init, posix_spawnattr_setsigmask,
21753         posix_spawnattr_setflags, posix_spawnattr_destroy.
21754
21755         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21756         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21757         * modules/execute (Files): Remove m4/posix_spawn.m4.
21758         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21759         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21760         posix_spawnattr_init, posix_spawnattr_setsigmask,
21761         posix_spawnattr_setflags, posix_spawnattr_destroy.
21762
21763 2009-01-25  Bruno Haible  <bruno@clisp.org>
21764
21765         * lib/glthread/threadlib.c: Include <stdlib.h>.
21766
21767 2009-01-25  Bruno Haible  <bruno@clisp.org>
21768
21769         * lib/glthread/threadlib.c (dummy): New declaration.
21770
21771 2009-01-25  Bruno Haible  <bruno@clisp.org>
21772
21773         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21774         multibyte characters also for the GB18030 encoding. Don't crash when
21775         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21776
21777 2009-01-25  Bruno Haible  <bruno@clisp.org>
21778
21779         Avoid redefining 'struct random_data' on OSF/1 5.1.
21780         * lib/stdlib.in.h: Include <random.h> if it exists.
21781         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21782         HAVE_RANDOM_H. Include <random.h> when testing whether
21783         'struct random_data' exists.
21784         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21785
21786 2009-01-25  Bruno Haible  <bruno@clisp.org>
21787
21788         Don't install charset.alias on MacOS X >= 10.3.
21789         * lib/localcharset.c (DARWIN7): New macro.
21790         (get_charset_aliases): Hardcode the result for Darwin7.
21791         * modules/localcharset (install-exec-local): Don't install
21792         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21793
21794 2009-01-25  Bruno Haible  <bruno@clisp.org>
21795
21796         Don't install charset.alias on mingw and Cygwin.
21797         * modules/localcharset (install-exec-local): Don't install
21798         charset.alias on mingw and Cygwin, if the file does not yet exist.
21799         The result for these platforms is hardcoded in localcharset.c.
21800
21801 2009-01-25  Bruno Haible  <bruno@clisp.org>
21802
21803         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21805         before requiring AC_USE_SYSTEM_EXTENSIONS.
21806
21807 2009-01-25  Jim Meyering  <meyering@redhat.com>
21808
21809         c-strtod: avoid warnings
21810         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21811         "assignment discards qualifiers from pointer target type" warnings.
21812
21813 2009-01-24  Bruno Haible  <bruno@clisp.org>
21814
21815         Add support for non-UTF-8 locales on MacOS X.
21816         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21817         canonical encodings. For Darwin 7 and newer, don't map traditional
21818         encodings to UTF-8.
21819         Reported by Vincent Lefevre <vincent@vinc17.org>
21820         at <http://savannah.gnu.org/bugs/?25235>.
21821
21822 2009-01-24  Bruno Haible  <bruno@clisp.org>
21823
21824         * doc/gnulib.texi (Obsolete modules): New section.
21825         Reported by Mike Frysinger <vapier@gentoo.org>.
21826
21827 2009-01-24  Bruno Haible  <bruno@clisp.org>
21828
21829         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21830         (%.dvi): New rule.
21831
21832 2009-01-24  Bruno Haible  <bruno@clisp.org>
21833
21834         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21835         Reported by Eric Blake.
21836
21837 2009-01-24  Bruno Haible  <bruno@clisp.org>
21838
21839         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21840         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21841         Reported by Gary V. Vaughan <gary@gnu.org>.
21842
21843 2009-01-24  Bruno Haible  <bruno@clisp.org>
21844
21845         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21846
21847 2009-01-23  Bruno Haible  <bruno@clisp.org>
21848
21849         Make c-strtod, c-strtold usable in libraries.
21850         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21851         (C_STRTOD): Call strdup instead of xstrdup.
21852         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21853         * modules/c-strtold (Depends-on): Likewise.
21854         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21855         * NEWS: Mention the change.
21856         Reported by Michael Gold <mgold@ncf.ca>.
21857
21858 2009-01-23  Jim Meyering  <meyering@redhat.com>
21859
21860         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21861         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21862         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21863
21864 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21865
21866         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21867         GNU CoreUtils.
21868         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21869         * modules/version-etc (Description): Update.
21870
21871 2009-01-22  Bruno Haible  <bruno@clisp.org>
21872
21873         Cache the C locale object.
21874         * lib/c-strtod.c (c_locale_cache): New variable.
21875         (c_locale): New function.
21876         (C_STRTOD): Use it, and don't call freelocale.
21877         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21878         Suggested by Paolo Bonzini.
21879
21880 2009-01-21  Bruno Haible  <bruno@clisp.org>
21881
21882         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21883         conditions other than overflow.
21884
21885 2009-01-21  Bruno Haible  <bruno@clisp.org>
21886
21887         * lib/c-strtod.c: Include errno.h.
21888         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21889         value from STRTOD_L and STRTOD.
21890
21891 2009-01-21  Bruno Haible  <bruno@clisp.org>
21892         and Jim Meyering  <meyering@redhat.com>
21893
21894         nanosleep: skip configure test (fail it) for apple universal builds
21895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21896         universal builds, assume that nanosleep does not work.
21897         * modules/nanosleep (Depends-on): Add multiarch.
21898
21899         mktime: skip configure test (fail it) for apple universal builds
21900         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21901         universal builds, assume that mktime does not work.
21902         * modules/mktime (Depends-on): Add multiarch.
21903
21904 2009-01-21  Eric Blake  <ebb9@byu.net>
21905
21906         multiarch: avoid expand-before-require warning
21907         * modules/multiarch (configure.ac): Require, rather than expand,
21908         gl_MULTIARCH.
21909         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21910         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21911         enforce that all clients require it.  Partial reversion of
21912         2008-12-29 patch.
21913
21914         error: avoid expand-before-require warning
21915         * modules/errno (configure.ac): Require, rather than expand,
21916         gl_HEADER_ERRNO_H.
21917         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21918         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21919         enforce that all clients require it.
21920
21921         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21922         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21923         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21924         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21925
21926 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21927
21928         Revert:
21929         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21930
21931         regex: do not depend on obsolete modules.
21932         * modules/regex: Remove memcmp and memmove.
21933
21934 2009-01-20  Bruno Haible  <bruno@clisp.org>
21935
21936         Make the 'link' module link on Windows NT 4.
21937         * lib/link.c (_WIN32_WINNT): Don't define.
21938         (CreateHardLinkFuncType): New type.
21939         (CreateHardLinkFunc, initialized): New variables.
21940         (initialize): New function.
21941         (link): Invoke CreateHardLink indirectly through the function pointer.
21942
21943 2009-01-20  Bruno Haible  <bruno@clisp.org>
21944
21945         Fix compilation failure on mingw.
21946         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21947
21948 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21949
21950         * doc/c-strtod.texi: Mention a couple of restrictions.
21951
21952 2009-01-20  Jim Meyering  <meyering@redhat.com>
21953
21954         gettimeofday: move more declarations out of functions
21955         * lib/gettimeofday.c: Move extern declarations of tzset and
21956         gmtime out of containing functions.  Prompted by Bruno Haible.
21957
21958 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21959
21960         regex: do not depend on obsolete modules.
21961         * modules/regex: Remove memcmp and memmove.
21962
21963 2009-01-19  Bruno Haible  <bruno@clisp.org>
21964
21965         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21966         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
21967         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21968         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
21969         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
21970
21971 2009-01-19  Bruno Haible  <bruno@clisp.org>
21972
21973         * tests/test-link.c: Include <errno.h>.
21974         (main): Exit with code 77 when a hard link cannot be created due to
21975         the file system.
21976         * tests/test-link.sh: Skip test when a hard link cannot be created due
21977         to the file system.
21978         Suggested by Eric Blake.
21979
21980 2009-01-19  Martin Lambers  <marlam@marlam.de>
21981
21982         * modules/link-tests: New file.
21983         * tests/test-link.sh: New file.
21984         * tests/test-link.c: New file.
21985
21986 2009-01-19  Eric Blake  <ebb9@byu.net>
21987
21988         doc: mention another function added in cygwin 1.7.0
21989         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
21990         Another new function in cygwin 1.7.
21991
21992 2009-01-19  Bruno Haible  <bruno@clisp.org>
21993
21994         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21995         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
21996         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
21997         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21998         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21999         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22000         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22001         * m4/md4.m4 (gl_MD4): Likewise.
22002         * m4/md5.m4 (gl_MD5): Likewise.
22003         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22004         * m4/sha1.m4 (gl_SHA1): Likewise.
22005         * m4/sha256.m4 (gl_SHA256): Likewise.
22006         * m4/sha512.m4 (gl_SHA512): Likewise.
22007
22008 2009-01-19  Bruno Haible  <bruno@clisp.org>
22009
22010         * modules/uniname/uniname-tests (Depends-on): Add progname.
22011         * tests/uniname/test-uninames.c: Include progname.h.
22012         (main): Call set_program_name.
22013
22014         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22015         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22016         (main): Call set_program_name.
22017
22018         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22019         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22020         (main): Call set_program_name.
22021
22022         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22023         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22024         (main): Call set_program_name.
22025
22026         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22027         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22028         (main): Call set_program_name.
22029
22030         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22031         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22032         (main): Call set_program_name.
22033
22034         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22035         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22036         (main): Call set_program_name.
22037
22038         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22039         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22040         (main): Call set_program_name.
22041
22042         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22043         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22044         (main): Call set_program_name.
22045
22046 2009-01-19  Eric Blake  <ebb9@byu.net>
22047
22048         test-unistd: test previous patch
22049         * tests/test-unistd.c: Test *_FILENO macros.
22050
22051         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22052         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22053         Guarantee a definition.
22054         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22055         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22056         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22057         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22058         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22059         Likewise.
22060         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22061         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22062         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22063         Likewise.
22064         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22065         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22066         (STDERR_FILENO): Likewise.
22067         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22068         (STDERR_FILENO): Likewise.
22069         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22070         (STDERR_FILENO): Likewise.
22071         Reported by Elbert Pol.
22072
22073 2009-01-19  Eric Blake  <ebb9@byu.net>
22074
22075         doc: mention more functions added in cygwin 1.7.0
22076         * doc/posix-functions/abort.texi (abort): Update wording related
22077         to cygwin.
22078         * doc/posix-functions/daylight.texi (daylight): Likewise.
22079         * doc/posix-functions/optarg.texi (optarg): Likewise.
22080         * doc/posix-functions/optarg.texi (opterr): Likewise.
22081         * doc/posix-functions/optarg.texi (optind): Likewise.
22082         * doc/posix-functions/optarg.texi (optopt): Likewise.
22083         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22084         worked in 1.5.x, and was withdrawn in 1.7.
22085         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22086         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22087         cygwin versions.
22088         * doc/posix-functions/perror.texi (perror): Likewise.
22089         * doc/posix-functions/printf.texi (printf): Likewise.
22090         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22091         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22092         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22093         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22094         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22095         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22096         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22097         Likewise.
22098         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22099         Likewise.
22100         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22101         this function.
22102         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22103         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22104         Likewise.
22105         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22106         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22107         * doc/posix-functions/confstr.texi (confstr): Likewise.
22108         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22109         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22110         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22111         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22112         * doc/posix-functions/fputws.texi (fputws): Likewise.
22113         * doc/posix-functions/fwide.texi (fwide): Likewise.
22114         * doc/posix-functions/getwc.texi (getwc): Likewise.
22115         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22116         * doc/posix-functions/putwc.texi (putwc): Likewise.
22117         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22118         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22119         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22120         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22121         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22122         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22123         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22124         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22125         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22126         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22127         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22128
22129 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22130
22131         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22132         * lib/ioctl.c: Include <sys/ioctl.h>.
22133
22134 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22135
22136         * modules/getdate-tests (Depends-on): Add progname.
22137         * tests/test-getdate.c: Use progname module, to avoid link errors
22138         on non-glibc systems.
22139
22140 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22141
22142         * modules/filenamecat-tests (Depends-on): Add progname.
22143         * modules/fstrcmp-tests (Depends-on): Likewise.
22144
22145         * tests/test-filenamecat.c: Use progname module, to avoid link
22146         errors on non-glibc systems.
22147         * tests/test-fstrcmp.c: Likewise.
22148
22149 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22150
22151         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22152         * lib/gettimeofday.c: Move extern declaration out of function.
22153
22154 2009-01-18  Bruno Haible  <bruno@clisp.org>
22155
22156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22157         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22158         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22159
22160 2009-01-18  Bruno Haible  <bruno@clisp.org>
22161
22162         * lib/strftime.c (MEMPCPY): Remove unused macro.
22163         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22164
22165 2009-01-18  Martin Lambers  <marlam@marlam.de>
22166
22167         New module 'link'.
22168         * lib/unistd.in.h (link): New declaration.
22169         * lib/link.c: New file.
22170         * m4/link.m4: New file.
22171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22172         HAVE_LINK.
22173         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22174         * modules/link: New file.
22175         * doc/posix-functions/link.texi: Mention the new module.
22176
22177 2009-01-18  Bruno Haible  <bruno@clisp.org>
22178
22179         * tests/test-avltree_list.c (main): Call set_program_name.
22180         * tests/test-avltree_oset.c (main): Likewise.
22181         * tests/test-obstack-printf.c: Include progname.h.
22182         (main): Call set_program_name.
22183         * tests/test-quotearg.c: Include progname.h.
22184         (main): Call set_program_name.
22185         * tests/test-xmemdup0.c: Include progname.h.
22186         (main): Call set_program_name.
22187
22188 2009-01-18  Bruno Haible  <bruno@clisp.org>
22189
22190         New module 'alphasort'.
22191         * lib/dirent.in.h (alphasort): New declaration.
22192         * lib/alphasort.c: New file, from glibc with modifications.
22193         * m4/alphasort.m4: New file.
22194         * modules/alphasort: New file.
22195         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22196         HAVE_ALPHASORT.
22197         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22198         HAVE_ALPHASORT.
22199         * doc/posix-functions/alphasort.texi: Mention the new module and the
22200         portability problems.
22201
22202 2009-01-18  Bruno Haible  <bruno@clisp.org>
22203
22204         New module 'scandir'.
22205         * lib/dirent.in.h (scandir): New declaration.
22206         * lib/scandir.c: New file, from glibc with modifications.
22207         * m4/scandir.m4: New file.
22208         * modules/scandir: New file.
22209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22210         HAVE_SCANDIR.
22211         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22212         HAVE_SCANDIR.
22213         * doc/posix-functions/scandir.texi: Mention the new module and the
22214         portability problems.
22215
22216 2009-01-17  Bruno Haible  <bruno@clisp.org>
22217
22218         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22219         Update documentation.
22220         (func_remove_suffix): Escape all dots in the suffix. Update
22221         documentation.
22222         (func_filter_filelist): Update documentation.
22223         Reported by Ralf Wildenhues.
22224
22225 2009-01-17  Bruno Haible  <bruno@clisp.org>
22226
22227         * modules/dprintf-posix-tests: New file.
22228         * tests/test-dprintf-posix.sh: New file.
22229         * tests/test-dprintf-posix.c: New file.
22230
22231         New modules 'dprintf', 'dprintf-posix'.
22232         * lib/stdio.in.h (dprintf): New declaration.
22233         * lib/dprintf.c: New file.
22234         * m4/dprintf.m4: New file.
22235         * m4/dprintf-posix.m4: New file.
22236         * modules/dprintf: New file.
22237         * modules/dprintf-posix: New file.
22238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22239         HAVE_DPRINTF, REPLACE_DPRINTF.
22240         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22241         HAVE_DPRINTF, REPLACE_DPRINTF.
22242         * doc/posix-functions/dprintf.texi: Mention the new modules.
22243
22244 2009-01-17  Bruno Haible  <bruno@clisp.org>
22245
22246         * modules/vdprintf-posix-tests: New file.
22247         * tests/test-vdprintf-posix.sh: New file.
22248         * tests/test-vdprintf-posix.c: New file.
22249
22250         New modules 'vdprintf', 'vdprintf-posix'.
22251         * lib/stdio.in.h (vdprintf): New declaration.
22252         * lib/vdprintf.c: New file.
22253         * m4/vdprintf.m4: New file.
22254         * m4/vdprintf-posix.m4: New file.
22255         * modules/vdprintf: New file.
22256         * modules/vdprintf-posix: New file.
22257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22258         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22259         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22260         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22261         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22262
22263 2009-01-17  Bruno Haible  <bruno@clisp.org>
22264
22265         Fix replacement of fopen on mingw.
22266         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22267         mingw.
22268
22269 2009-01-17  Bruno Haible  <bruno@clisp.org>
22270
22271         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22272         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22273
22274 2009-01-17  Bruno Haible  <bruno@clisp.org>
22275
22276         Avoid test-fflush2.sh failure on mingw.
22277         * tests/test-fflush2.c: Include binary-io.h.
22278         (main): Put standard input into binary mode.
22279         * modules/fflush-tests (Depends-on): Add binary-io.
22280
22281 2009-01-17  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/wchar.in.h: In another particular situation, include only the
22284         system's <wchar.h> file.
22285         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22286         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22287         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22288
22289 2009-01-17  Bruno Haible  <bruno@clisp.org>
22290
22291         Support for stripping executables in --enable-relocatable.
22292         * build-aux/install-reloc: Expect one more argument, or an environment
22293         variable RELOC_STRIP_PROG. If set, strip the destination program and
22294         its wrapper.
22295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22296         RELOC_STRIP_PROG.
22297         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22298         to set RELOCATABLE_STRIP.
22299         * NEWS: Mention the new Makefile requirement.
22300
22301 2009-01-17  Bruno Haible  <bruno@clisp.org>
22302
22303         * build-aux/install-reloc: Remove debugging information left over by
22304         C compiler on MacOS X.
22305
22306 2009-01-17  Bruno Haible  <bruno@clisp.org>
22307
22308         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22309         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22310         _NSGetExecutablePath.
22311
22312 2009-01-16  Jim Meyering  <meyering@redhat.com>
22313
22314         strerror: avoid warnings about discarding "const"
22315         * lib/strerror.c (rpl_strerror): Instead of returning a const
22316         string from each and every "case", use a variable, and add a single
22317         cast after the switch.
22318
22319 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22320
22321         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22322
22323 2009-01-16  Bruno Haible  <bruno@clisp.org>
22324
22325         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22326         array initializer syntax that also works in C++ mode.
22327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22328
22329 2009-01-16  Jim Meyering  <meyering@redhat.com>
22330
22331         poll: suppress a warning
22332         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22333         to ignore "...unsigned expression < 0 is always false" warnings.
22334
22335 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22336
22337         poll: remove declarations of unused variables
22338         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22339         sockbuf and optlen.
22340
22341 2009-01-15  Bruno Haible  <bruno@clisp.org>
22342
22343         Make fflush-after-ungetc POSIX compliant on BSD systems.
22344         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22345         (clear_ungetc_buffer): Implement also for other systems.
22346         (rpl_fflush): On glibc systems, invoke
22347         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22348         clear_ungetc_buffer after fetching the stream's position, not before.
22349
22350 2009-01-15  Bruno Haible  <bruno@clisp.org>
22351
22352         Make fflush-after-ungetc POSIX compliant on glibc systems.
22353         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22354         after ungetc.
22355         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22356         (rpl_fflush): On glibc systems, simply call the system's fflush
22357         function after clearing the ungetc buffer.
22358         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22359         Instead, lseek only to the end of file, then use the system's fseeko
22360         for the rest. On glibc systems, reset the EOF indicator bit.
22361
22362 2009-01-15  Jim Meyering  <meyering@redhat.com>
22363
22364         openmp.m4: revert quote-adding change, for portability to older autoconf
22365         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22366         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22367         Simon Josefsson noticed the problem when using autoconf-2.61.
22368
22369 2009-01-15  Bruno Haible  <bruno@clisp.org>
22370
22371         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22372         * tests/test-fflush2.c (ASSERT): Always fail.
22373         (main): Add two tests for fflush() after ungetc(), taking into account
22374         the Austin Group's clarification.
22375         Suggested by Eric Blake.
22376
22377 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22378
22379         mktime.m4: remove K&R-style function prototypes
22380         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22381         for the Sun C++ compiler.
22382
22383 2009-01-14  Bruno Haible  <bruno@clisp.org>
22384
22385         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22386         while including <wchar.h>.
22387         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22388         the system's <wchar.h> file.
22389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22390
22391 2009-01-14  Bruno Haible  <bruno@clisp.org>
22392
22393         * m4/csharp.m4: Don't mention gettext on the serial number line.
22394         * m4/csharpexec.m4: Likewise.
22395         * m4/eaccess.m4: Likewise.
22396         * m4/javaexec.m4: Likewise.
22397         * m4/sig_atomic_t.m4: Likewise.
22398         * m4/tmpdir.m4: Likewise.
22399         * m4/intldir.m4: Bump gettext version.
22400         * m4/lib-ld.m4: Likewise.
22401
22402 2009-01-14  Bruno Haible  <bruno@clisp.org>
22403
22404         * lib/progname.c (set_program_name): Add more comments.
22405         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22406
22407 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22408
22409         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22410         were sys/stat.h does not define it.
22411
22412 2009-01-14  Jim Meyering  <meyering@redhat.com>
22413
22414         many *.m4 files: improve m4 quoting
22415         99% of this change was performed by running the following commands:
22416         git ls-files | grep '\.m4$' | xargs perl -pi \
22417           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22418           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22419           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22420           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22421         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22422         The remainder were to add Copyright dates, increment serial numbers,
22423         undo some changes in comments, exclude m4/intl.m4, and add quotes
22424         around the "1" in ",1" where the unusual spacing prohibited the
22425         above regexps from doing the job.  For more details, see
22426         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22427         * m4/acl.m4: Modified.
22428         * m4/afs.m4: Likewise.
22429         * m4/alloca.m4: Likewise.
22430         * m4/argp.m4: Likewise.
22431         * m4/argz.m4: Likewise.
22432         * m4/atexit.m4: Likewise.
22433         * m4/bison-i18n.m4: Likewise.
22434         * m4/bison.m4: Likewise.
22435         * m4/byteswap.m4: Likewise.
22436         * m4/c-stack.m4: Likewise.
22437         * m4/c-strtod.m4: Likewise.
22438         * m4/calloc.m4: Likewise.
22439         * m4/canonicalize-lgpl.m4: Likewise.
22440         * m4/chown.m4: Likewise.
22441         * m4/clock_time.m4: Likewise.
22442         * m4/codeset.m4: Likewise.
22443         * m4/copy-file.m4: Likewise.
22444         * m4/csharp.m4: Likewise.
22445         * m4/csharpcomp.m4: Likewise.
22446         * m4/csharpexec.m4: Likewise.
22447         * m4/d-ino.m4: Likewise.
22448         * m4/d-type.m4: Likewise.
22449         * m4/dirfd.m4: Likewise.
22450         * m4/double-slash-root.m4: Likewise.
22451         * m4/eaccess.m4: Likewise.
22452         * m4/eealloc.m4: Likewise.
22453         * m4/environ.m4: Likewise.
22454         * m4/errno_h.m4: Likewise.
22455         * m4/euidaccess.m4: Likewise.
22456         * m4/execute.m4: Likewise.
22457         * m4/fatal-signal.m4: Likewise.
22458         * m4/fchdir.m4: Likewise.
22459         * m4/fcntl_h.m4: Likewise.
22460         * m4/fileblocks.m4: Likewise.
22461         * m4/filenamecat.m4: Likewise.
22462         * m4/findprog.m4: Likewise.
22463         * m4/flexmember.m4: Likewise.
22464         * m4/fnmatch.m4: Likewise.
22465         * m4/fopen.m4: Likewise.
22466         * m4/fpending.m4: Likewise.
22467         * m4/fprintf-posix.m4: Likewise.
22468         * m4/free.m4: Likewise.
22469         * m4/frexp.m4: Likewise.
22470         * m4/frexpl.m4: Likewise.
22471         * m4/fsusage.m4: Likewise.
22472         * m4/ftruncate.m4: Likewise.
22473         * m4/gc-camellia.m4: Likewise.
22474         * m4/gc-random.m4: Likewise.
22475         * m4/gc.m4: Likewise.
22476         * m4/getaddrinfo.m4: Likewise.
22477         * m4/getcwd-abort-bug.m4: Likewise.
22478         * m4/getcwd-path-max.m4: Likewise.
22479         * m4/getdate.m4: Likewise.
22480         * m4/getdomainname.m4: Likewise.
22481         * m4/getgroups.m4: Likewise.
22482         * m4/gethostname.m4: Likewise.
22483         * m4/gethrxtime.m4: Likewise.
22484         * m4/getline.m4: Likewise.
22485         * m4/getloadavg.m4: Likewise.
22486         * m4/getndelim2.m4: Likewise.
22487         * m4/getpass.m4: Likewise.
22488         * m4/gettext.m4: Likewise.
22489         * m4/gettime.m4: Likewise.
22490         * m4/gettimeofday.m4: Likewise.
22491         * m4/gnulib-common.m4: Likewise.
22492         * m4/group-member.m4: Likewise.
22493         * m4/host-os.m4: Likewise.
22494         * m4/iconv.m4: Likewise.
22495         * m4/iconv_open.m4: Likewise.
22496         * m4/inet_ntop.m4: Likewise.
22497         * m4/inet_pton.m4: Likewise.
22498         * m4/inline.m4: Likewise.
22499         * m4/intldir.m4: Likewise.
22500         * m4/intlmacosx.m4: Likewise.
22501         * m4/intmax.m4: Likewise.
22502         * m4/intmax_t.m4: Likewise.
22503         * m4/inttypes.m4: Likewise.
22504         * m4/inttypes_h.m4: Likewise.
22505         * m4/inttypes-pri.m4: Likewise.
22506         * m4/isapipe.m4: Likewise.
22507         * m4/isnand.m4: Likewise.
22508         * m4/isnanf.m4: Likewise.
22509         * m4/isnanl.m4: Likewise.
22510         * m4/javacomp.m4: Likewise.
22511         * m4/javaexec.m4: Likewise.
22512         * m4/jm-winsz1.m4: Likewise.
22513         * m4/jm-winsz2.m4: Likewise.
22514         * m4/lchown.m4: Likewise.
22515         * m4/lcmessage.m4: Likewise.
22516         * m4/ldexpl.m4: Likewise.
22517         * m4/lib-ld.m4: Likewise.
22518         * m4/lib-link.m4: Likewise.
22519         * m4/libsigsegv.m4: Likewise.
22520         * m4/link-follow.m4: Likewise.
22521         * m4/localcharset.m4: Likewise.
22522         * m4/locale-fr.m4: Likewise.
22523         * m4/locale-ja.m4: Likewise.
22524         * m4/locale-tr.m4: Likewise.
22525         * m4/locale-zh.m4: Likewise.
22526         * m4/lock.m4: Likewise.
22527         * m4/longlong.m4: Likewise.
22528         * m4/ls-mntd-fs.m4: Likewise.
22529         * m4/lstat.m4: Likewise.
22530         * m4/malloc.m4: Likewise.
22531         * m4/mathl.m4: Likewise.
22532         * m4/mbrtowc.m4: Likewise.
22533         * m4/mbstate_t.m4: Likewise.
22534         * m4/mbswidth.m4: Likewise.
22535         * m4/memchr.m4: Likewise.
22536         * m4/memcmp.m4: Likewise.
22537         * m4/memcpy.m4: Likewise.
22538         * m4/memmem.m4: Likewise.
22539         * m4/memmove.m4: Likewise.
22540         * m4/mempcpy.m4: Likewise.
22541         * m4/memrchr.m4: Likewise.
22542         * m4/memset.m4: Likewise.
22543         * m4/minmax.m4: Likewise.
22544         * m4/mkdir-slash.m4: Likewise.
22545         * m4/mkdtemp.m4: Likewise.
22546         * m4/mktime.m4: Likewise.
22547         * m4/mmap-anon.m4: Likewise.
22548         * m4/mountlist.m4: Likewise.
22549         * m4/nanosleep.m4: Likewise.
22550         * m4/nls.m4: Likewise.
22551         * m4/nocrash.m4: Likewise.
22552         * m4/open.m4: Likewise.
22553         * m4/openat.m4: Likewise.
22554         * m4/openmp.m4: Likewise.
22555         * m4/pathmax.m4: Likewise.
22556         * m4/perl.m4: Likewise.
22557         * m4/physmem.m4: Likewise.
22558         * m4/pipe.m4: Likewise.
22559         * m4/po.m4: Likewise.
22560         * m4/poll.m4: Likewise.
22561         * m4/posixtm.m4: Likewise.
22562         * m4/posixver.m4: Likewise.
22563         * m4/printf-frexp.m4: Likewise.
22564         * m4/printf-frexpl.m4: Likewise.
22565         * m4/printf-posix.m4: Likewise.
22566         * m4/printf-posix-rpl.m4: Likewise.
22567         * m4/printf.m4: Likewise.
22568         * m4/progtest.m4: Likewise.
22569         * m4/putenv.m4: Likewise.
22570         * m4/readline.m4: Likewise.
22571         * m4/readlink.m4: Likewise.
22572         * m4/readutmp.m4: Likewise.
22573         * m4/realloc.m4: Likewise.
22574         * m4/regex.m4: Likewise.
22575         * m4/relocatable.m4: Likewise.
22576         * m4/relocatable-lib.m4: Likewise.
22577         * m4/rename-dest-slash.m4: Likewise.
22578         * m4/rename.m4: Likewise.
22579         * m4/rmdir-errno.m4: Likewise.
22580         * m4/rmdir.m4: Likewise.
22581         * m4/roundf.m4: Likewise.
22582         * m4/roundl.m4: Likewise.
22583         * m4/rpmatch.m4: Likewise.
22584         * m4/save-cwd.m4: Likewise.
22585         * m4/selinux-selinux-h.m4: Likewise.
22586         * m4/setenv.m4: Likewise.
22587         * m4/settime.m4: Likewise.
22588         * m4/sig2str.m4: Likewise.
22589         * m4/sig_atomic_t.m4: Likewise.
22590         * m4/signalblocking.m4: Likewise.
22591         * m4/signbit.m4: Likewise.
22592         * m4/sigpipe.m4: Likewise.
22593         * m4/sockets.m4: Likewise.
22594         * m4/sockpfaf.m4: Likewise.
22595         * m4/st_dm_mode.m4: Likewise.
22596         * m4/stat-time.m4: Likewise.
22597         * m4/stdbool.m4: Likewise.
22598         * m4/stdint.m4: Likewise.
22599         * m4/stdint_h.m4: Likewise.
22600         * m4/stpcpy.m4: Likewise.
22601         * m4/stpncpy.m4: Likewise.
22602         * m4/strcase.m4: Likewise.
22603         * m4/strchrnul.m4: Likewise.
22604         * m4/strcspn.m4: Likewise.
22605         * m4/strdup.m4: Likewise.
22606         * m4/strftime.m4: Likewise.
22607         * m4/strndup.m4: Likewise.
22608         * m4/strnlen.m4: Likewise.
22609         * m4/strpbrk.m4: Likewise.
22610         * m4/strptime.m4: Likewise.
22611         * m4/strsep.m4: Likewise.
22612         * m4/strtod.m4: Likewise.
22613         * m4/strtoimax.m4: Likewise.
22614         * m4/strtok_r.m4: Likewise.
22615         * m4/strtol.m4: Likewise.
22616         * m4/strtoll.m4: Likewise.
22617         * m4/strtoul.m4: Likewise.
22618         * m4/strtoull.m4: Likewise.
22619         * m4/strtoumax.m4: Likewise.
22620         * m4/strverscmp.m4: Likewise.
22621         * m4/threadlib.m4: Likewise.
22622         * m4/timegm.m4: Likewise.
22623         * m4/tm_gmtoff.m4: Likewise.
22624         * m4/tmpdir.m4: Likewise.
22625         * m4/tmpfile.m4: Likewise.
22626         * m4/tzset.m4: Likewise.
22627         * m4/uintmax_t.m4: Likewise.
22628         * m4/unlinkdir.m4: Likewise.
22629         * m4/unlocked-io.m4: Likewise.
22630         * m4/uptime.m4: Likewise.
22631         * m4/userspec.m4: Likewise.
22632         * m4/utimbuf.m4: Likewise.
22633         * m4/utime.m4: Likewise.
22634         * m4/utimes-null.m4: Likewise.
22635         * m4/utimes.m4: Likewise.
22636         * m4/vararrays.m4: Likewise.
22637         * m4/vasnprintf.m4: Likewise.
22638         * m4/vfprintf-posix.m4: Likewise.
22639         * m4/vprintf-posix.m4: Likewise.
22640         * m4/wait-process.m4: Likewise.
22641         * m4/wchar_t.m4: Likewise.
22642         * m4/wint_t.m4: Likewise.
22643         * m4/write-any-file.m4: Likewise.
22644         * m4/yield.m4: Likewise.
22645
22646 2009-01-13  Bruno Haible  <bruno@clisp.org>
22647
22648         Avoid test-copy-file.sh failures when ACL support insufficient.
22649         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22650         TESTS_ENVIRONMENT.
22651         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22652         Reported by Jim Meyering.
22653
22654 2009-01-13  Bruno Haible  <bruno@clisp.org>
22655
22656         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22657         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22658         * modules/unistdio/u8-printf-parse (Files): Likewise.
22659         * modules/unistdio/u32-printf-parse (Files): Likewise.
22660         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22661
22662 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22663
22664         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22665         and m4/inttypes_h.m4 too.
22666
22667 2009-01-12  Eric Blake  <ebb9@byu.net>
22668
22669         tests: IRIX 6.2 cc can't compile -0.0 into .data
22670         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22671         rather than at compile-time.
22672         * tests/test-floorl.c (minus_zero): Likewise.
22673         * tests/test-frexpl.c (minus_zero): Likewise.
22674         * tests/test-isnan.c (minus_zerol): Likewise.
22675         * tests/test-isnanl.h (minus_zero): Likewise.
22676         * tests/test-ldexpl.c (minus_zero): Likewise.
22677         * tests/test-roundl.c (minus_zero): Likewise.
22678         * tests/test-signbit.c (minus_zerol): Likewise.
22679         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22680         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22681         * tests/test-truncl.c (minus_zero): Likewise.
22682         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22683         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22684         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22685
22686 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22687
22688         regex: fix glibc bug 9697
22689         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22690         handling.
22691
22692 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22693
22694         regex: fix glibc bug 697
22695         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22696         being NULL also if there are no backreferences.
22697
22698 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22699
22700         regex: merge glibc changes
22701         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22702         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22703         re_string_skip_chars, re_string_reconstruct): Likewise.
22704         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22705
22706 2009-01-07  Jim Meyering  <meyering@redhat.com>
22707
22708         poll: filter through cppi
22709         * lib/poll.c: Indent cpp directives to reflect nesting.
22710
22711 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22712
22713         poll: don't return uninitialized
22714         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22715
22716 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22717
22718         avoid compile failure on AIX 6.1
22719         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22720         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22721
22722 2009-01-04  Jim Meyering  <meyering@redhat.com>
22723
22724         remove duplicate inclusion of <stdio.h>
22725         * tests/test-fprintf-posix.c: Likewise.
22726         * tests/test-printf-posix.c: Likewise.
22727         * tests/test-snprintf-posix.c: Likewise.
22728         * tests/test-sprintf-posix.c: Likewise.
22729         * tests/test-vasprintf-posix.c: Likewise.
22730         * tests/test-vfprintf-posix.c: Likewise.
22731         * tests/test-vprintf-posix.c: Likewise.
22732         * tests/test-vsnprintf-posix.c: Likewise.
22733         * tests/test-vsprintf-posix.c: Likewise.
22734
22735 2009-01-03  Jim Meyering  <meyering@redhat.com>
22736
22737         gnulib-tool: fix sed-based filtering
22738         * gnulib-tool (func_filter_filelist): Remove extra backslash
22739         in sed_fff_filter definition.
22740
22741 2009-01-02  Jim Meyering  <meyering@redhat.com>
22742
22743         strftime: avoid compilation failure on Solaris 2.6
22744         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22745         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22746         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22747         be available.  Reported by Tom G. Christensen.  Details in
22748         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22749
22750 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22751             Bruno Haible  <bruno@clisp.org>
22752
22753         Speed up gnulib-tool by doing more string processing through shell
22754         built-ins.
22755         * gnulib-tool (fast_func_append): New variable.
22756         (func_remove_prefix, func_remove_suffix): New functions.
22757         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22758         (func_filter_filelist): New function.
22759         (func_get_dependencies): Use func_remove_suffix instead of sed.
22760         (func_get_automake_snippet): Use func_filter_filelist instead of a
22761         subshell and sed invocation.
22762
22763 2009-01-01  Bruno Haible  <bruno@clisp.org>
22764
22765         Fix a security bug.
22766         * gnulib-tool (func_import, import, update): Don't allow the characters
22767         '"', '$', '`', '\' in macro arguments that become part of commands that
22768         are evaluated.
22769
22770 2009-01-01  Bruno Haible  <bruno@clisp.org>
22771
22772         * gnulib-tool (func_reset_sigpipe): Add more comments.
22773
22774 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22775
22776         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22777         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22778         already know the answer.
22779
22780 2009-01-01  Jim Meyering  <meyering@redhat.com>
22781
22782         * lib/version-etc.c (version_etc_va): Update copyright year.
22783
22784 2008-12-30  Bruno Haible  <bruno@clisp.org>
22785
22786         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22787         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22788         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22789
22790 2008-12-29  Eric Blake  <ebb9@byu.net>
22791
22792         multiarch: avoid autoconf AC_REQUIRE bug
22793         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22794         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22795         2.63 and older.
22796         Reported by Bruno Haible, and analyzed in
22797         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22798
22799 2008-12-29  Bruno Haible  <bruno@clisp.org>
22800
22801         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22802         files in subdirectories correctly.
22803         Reported by Ralf Wildenhues.
22804
22805 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22806
22807         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22808         rather than 'join FILE -', for Solaris join.
22809
22810 2008-12-29  Bruno Haible  <bruno@clisp.org>
22811
22812         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22813         quoting.
22814         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22815         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22816         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22817         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22818         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22819         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22820         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22821         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22822         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22823         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22824         * m4/nls.m4 (AM_NLS): Likewise.
22825         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22826         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22827         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22828         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22829         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22830         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22831         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22832         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22833         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22834         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22835         * m4/xsize.m4 (gl_XSIZE): Likewise.
22836         Suggested by Jim Meyering.
22837
22838 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22839
22840         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22841         * lib/parse-duration.c: use a switch instead of cascading if's.
22842
22843 2008-12-29  Eric Blake  <ebb9@byu.net>
22844
22845         wchar.h: supply WEOF on Irix 5.3
22846         * lib/wchar.in.h (wint_t): Also supply WEOF.
22847         * lib/wctype.in.h (wint_t): Likewise.
22848         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22849         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22850         Reported by Tom G. Christensen.
22851
22852 2008-12-26  Bruno Haible  <bruno@clisp.org>
22853
22854         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22855         i486, i586, i686.
22856
22857 2008-12-26  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22860
22861 2008-12-26  Bruno Haible  <bruno@clisp.org>
22862
22863         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22864         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22865         not __STDC_CONSTANT_MACROS.
22866         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22867
22868 2008-12-25  Bruno Haible  <bruno@clisp.org>
22869
22870         Add support for universal builds to vasnprintf.
22871         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22872         universal builds, guess no.
22873         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22874         * modules/vasprintf-posix (Depends-on): Likewise.
22875         * modules/fprintf-posix (Depends-on): Likewise.
22876         * modules/vfprintf-posix (Depends-on): Likewise.
22877         * modules/snprintf-posix (Depends-on): Likewise.
22878         * modules/vsnprintf-posix (Depends-on): Likewise.
22879         * modules/sprintf-posix (Depends-on): Likewise.
22880         * modules/vsprintf-posix (Depends-on): Likewise.
22881         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22882         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22883         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22884         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22885         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22886         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22887         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22888
22889         Add support for universal builds to <inttypes.h>.
22890         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22891         _SCNu64_PREFIX): In Apple
22892         universal builds, define directly, using _LP64.
22893         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22894         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22895         * modules/inttypes (Depends-on): Add multiarch.
22896         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22897
22898         Add support for universal builds to <stdint.h>.
22899         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22900         universal builds, define directly, using _LP64.
22901         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22902         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22903         and size_t.
22904         * modules/stdint (Depends-on): Add multiarch.
22905         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22906
22907         New module 'multiarch'.
22908         * modules/multiarch: New file.
22909         * m4/multiarch.m4: New file.
22910
22911 2008-12-25  Bruno Haible  <bruno@clisp.org>
22912
22913         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22914
22915 2008-12-25  Bruno Haible  <bruno@clisp.org>
22916
22917         * modules/btowc (License): Relicense under LGPLv2+.
22918         * modules/mbsinit (License): Likewise.
22919         * modules/mbrtowc (License): Likewise.
22920         * modules/wcrtomb (License): Likewise.
22921         * modules/streq (License): Likewise.
22922         Reported by David Lutterkort <lutter@redhat.com>.
22923
22924 2008-12-23  Bruno Haible  <bruno@clisp.org>
22925
22926         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22927
22928 2008-12-23  Bruno Haible  <bruno@clisp.org>
22929
22930         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22932         GETADDRINFO_LIB, not in LIBS.
22933         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22934         * modules/canon-host (Link): Likewise.
22935         * NEWS: Mention the change.
22936         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22937         GETADDRINFO_LIB.
22938
22939 2008-12-22  Bruno Haible  <bruno@clisp.org>
22940
22941         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22942         * doc/posix-functions/iswalpha_l.texi: Likewise.
22943         * doc/posix-functions/iswblank_l.texi: Likewise.
22944         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22945         * doc/posix-functions/iswctype_l.texi: Likewise.
22946         * doc/posix-functions/iswdigit_l.texi: Likewise.
22947         * doc/posix-functions/iswgraph_l.texi: Likewise.
22948         * doc/posix-functions/iswlower_l.texi: Likewise.
22949         * doc/posix-functions/iswprint_l.texi: Likewise.
22950         * doc/posix-functions/iswpunct_l.texi: Likewise.
22951         * doc/posix-functions/iswspace_l.texi: Likewise.
22952         * doc/posix-functions/iswupper_l.texi: Likewise.
22953         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22954         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22955         * doc/posix-functions/open_wmemstream.texi: Likewise.
22956         * doc/posix-functions/swscanf.texi: Likewise.
22957         * doc/posix-functions/towctrans_l.texi: Likewise.
22958         * doc/posix-functions/towlower.texi: Likewise.
22959         * doc/posix-functions/towlower_l.texi: Likewise.
22960         * doc/posix-functions/towupper.texi: Likewise.
22961         * doc/posix-functions/towupper_l.texi: Likewise.
22962         * doc/posix-functions/vfwprintf.texi: Likewise.
22963         * doc/posix-functions/vfwscanf.texi: Likewise.
22964         * doc/posix-functions/vswscanf.texi: Likewise.
22965         * doc/posix-functions/vwprintf.texi: Likewise.
22966         * doc/posix-functions/vwscanf.texi: Likewise.
22967         * doc/posix-functions/wcpcpy.texi: Likewise.
22968         * doc/posix-functions/wcpncpy.texi: Likewise.
22969         * doc/posix-functions/wcscasecmp.texi: Likewise.
22970         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
22971         * doc/posix-functions/wcscoll_l.texi: Likewise.
22972         * doc/posix-functions/wcsdup.texi: Likewise.
22973         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22974         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
22975         * doc/posix-functions/wcsnlen.texi: Likewise.
22976         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22977         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22978         * doc/posix-functions/wctrans_l.texi: Likewise.
22979         * doc/posix-functions/wctype_l.texi: Likewise.
22980         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
22981         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
22982         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
22983         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
22984         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
22985         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
22986         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
22987         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
22988         * doc/glibc-functions/wcschrnul.texi: Likewise.
22989         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22990         * doc/glibc-functions/wcstod_l.texi: Likewise.
22991         * doc/glibc-functions/wcstof_l.texi: Likewise.
22992         * doc/glibc-functions/wcstol_l.texi: Likewise.
22993         * doc/glibc-functions/wcstold_l.texi: Likewise.
22994         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22995         * doc/glibc-functions/wcstoq.texi: Likewise.
22996         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22997         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22998         * doc/glibc-functions/wcstouq.texi: Likewise.
22999         * doc/glibc-functions/wmempcpy.texi: Likewise.
23000
23001 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23002             Eric Blake  <ebb9@byu.net>
23003             Paolo Bonzini  <bonzini@gnu.org>
23004             Bruno Haible  <bruno@clisp.org>
23005
23006         Make c-stack work on Haiku.
23007         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23008         (c_stack_action): Use SA_ONSTACK flag.
23009
23010 2008-12-22  Bruno Haible  <bruno@clisp.org>
23011
23012         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23013
23014 2008-12-22  Bruno Haible  <bruno@clisp.org>
23015
23016         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23017         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23018         being overridden.
23019         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23020         New macros.
23021         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23023         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23024         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23025
23026 2008-12-22  Bruno Haible  <bruno@clisp.org>
23027
23028         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23029         from test code.
23030
23031 2008-12-22  Eric Blake  <ebb9@byu.net>
23032
23033         Avoid gcc warnings on cygwin.
23034         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23035         Avoid unused variable.
23036         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23037         Likewise.
23038
23039 2008-12-22  Bruno Haible  <bruno@clisp.org>
23040
23041         Remove HAVE_MBRTOWC conditionals.
23042         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23043         (mbscasecmp): Assume mbrtowc function.
23044         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23045         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23046         * lib/mbschr.c: Include mbuiter.h unconditionally.
23047         (mbschr): Assume mbrtowc function.
23048         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23049         (mbscspn): Assume mbrtowc function.
23050         * lib/mbslen.c: Include mbuiter.h unconditionally.
23051         (mbslen): Assume mbrtowc function.
23052         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23053         (mbsncasecmp): Assume mbrtowc function.
23054         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23055         (mbsnlen): Assume mbrtowc function.
23056         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23057         (mbspbrk): Assume mbrtowc function.
23058         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23059         (mbspcasecmp): Assume mbrtowc function.
23060         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23061         (mbsrchr): Assume mbrtowc function.
23062         * lib/mbssep.c: Include mbuiter.h unconditionally.
23063         (mbssep): Assume mbrtowc function.
23064         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23065         (mbsspn): Assume mbrtowc function.
23066         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23067         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23068         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23069         (mbstok_r): Assume mbrtowc function.
23070         * lib/propername.c: Include mbuiter.h unconditionally.
23071         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23072         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23073         (trim2): Assume mbrtowc function.
23074         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23075         (mbsnwidth): Assume mbrtowc function.
23076         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23077         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23078         fallback definitions.
23079         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23080
23081 2008-12-22  Bruno Haible  <bruno@clisp.org>
23082
23083         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23084
23085 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23086
23087         * modules/regex: Request emulations for the mb*/wc* functions we need.
23088         * m4/regex.m4: Don't look for those functions here.
23089         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23090
23091 2008-12-22  Bruno Haible  <bruno@clisp.org>
23092
23093         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23094
23095 2008-12-21  Bruno Haible  <bruno@clisp.org>
23096
23097         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23098         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23099         (Include): Remove conditionalization.
23100         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23101         (Include): Remove conditionalization.
23102         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23103         (Include): Remove conditionalization.
23104         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23105         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23106         * NEWS: Mention the change.
23107         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23108         via Sergey Poznyakoff <gray@gnu.org.ua>.
23109
23110 2008-12-21  Bruno Haible  <bruno@clisp.org>
23111
23112         * MODULES.html.sh (Extended multibyte and wide character utilities
23113         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23114         wcrtomb, wcsrtombs.
23115         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23116         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23117         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23118         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23119
23120 2008-12-21  Bruno Haible  <bruno@clisp.org>
23121
23122         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23123
23124 2008-12-21  Bruno Haible  <bruno@clisp.org>
23125
23126         * modules/wcsnrtombs-tests: New file.
23127         * tests/test-wcsnrtombs1.sh: New file.
23128         * tests/test-wcsnrtombs2.sh: New file.
23129         * tests/test-wcsnrtombs3.sh: New file.
23130         * tests/test-wcsnrtombs4.sh: New file.
23131         * tests/test-wcsnrtombs.c: New file.
23132
23133         New module 'wcsnrtombs'.
23134         * lib/wchar.in.h (wcsnrtombs): New declaration.
23135         * lib/wcsnrtombs.c: New file.
23136         * lib/wcsrtombs-state.c: New file.
23137         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23138         (internal_state): Remove variable.
23139         * m4/wcsnrtombs.m4: New file.
23140         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23141         compilation units.
23142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23143         HAVE_WCSNRTOMBS.
23144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23145         HAVE_WCSNRTOMBS.
23146         * modules/wcsnrtombs: New file.
23147         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23148         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23149
23150 2008-12-21  Bruno Haible  <bruno@clisp.org>
23151
23152         * modules/wcsrtombs-tests: New file.
23153         * tests/test-wcsrtombs1.sh: New file.
23154         * tests/test-wcsrtombs2.sh: New file.
23155         * tests/test-wcsrtombs3.sh: New file.
23156         * tests/test-wcsrtombs4.sh: New file.
23157         * tests/test-wcsrtombs.c: New file.
23158
23159         New module 'wcsrtombs'.
23160         * lib/wchar.in.h (wcsrtombs): New declaration.
23161         * lib/wcsrtombs.c: New file.
23162         * m4/wcsrtombs.m4: New file.
23163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23164         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23166         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23167         * modules/wcsrtombs: New file.
23168         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23169         bugs.
23170
23171 2008-12-21  Bruno Haible  <bruno@clisp.org>
23172
23173         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23174         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23176         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23177         if not correct.
23178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23179         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23180         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23181         m4/locale-zh.m4, m4/codeset.m4.
23182         * doc/posix-functions/wcrtomb.texi: Document the bug.
23183
23184 2008-12-21  Bruno Haible  <bruno@clisp.org>
23185
23186         Work around a btowc() bug on IRIX 6.5.
23187         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23188         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23189         REPLACE_WTOBC if not.
23190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23191         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23192         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23193
23194 2008-12-21  Bruno Haible  <bruno@clisp.org>
23195
23196         * modules/wcrtomb-tests: New file.
23197         * tests/test-wcrtomb.sh: New file.
23198         * tests/test-wcrtomb.c: New file.
23199
23200         New module 'wcrtomb'.
23201         * lib/wchar.in.h (wcrtomb): New declaration.
23202         * lib/wcrtomb.c: New file.
23203         * m4/wcrtomb.m4: New file.
23204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23205         HAVE_WCRTOMB.
23206         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23207         HAVE_WCRTOMB.
23208         * modules/wcrtomb: New file.
23209         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23210
23211 2008-12-21  Bruno Haible  <bruno@clisp.org>
23212
23213         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23214         * modules/mbsrtowcs (Files): Likewise.
23215         * modules/wctob (Files): Likewise.
23216         * modules/c-strcase-tests (Files): Likewise.
23217         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23218         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23219         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23220         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23221         * modules/vasnprintf-posix-tests (Files): Likewise.
23222
23223 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23224
23225         gitlog-to-changelog: pass all command-line arguments to git-log
23226         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23227         it is sometimes convenient to filter the commits in various ways.
23228         gitlog-to-changelog only allows --since to specify a start date,
23229         but git-log itself supports many other filtering mechanisms.
23230         At the moment, I want to filter by branch name.  Rather than
23231         adding a --branch option to gitlog-to-changelog, it seems more
23232         flexible to simply pass all options directly to git-log and let
23233         git do the work.  Notice that this effectively makes --since a
23234         redundant option for gitlog-to-changelog, but removing it would
23235         require current usage to change since calls would then require
23236         an additional '--'.
23237
23238 2008-12-21  Bruno Haible  <bruno@clisp.org>
23239
23240         * modules/mbsnrtowcs-tests: New file.
23241         * tests/test-mbsnrtowcs1.sh: New file.
23242         * tests/test-mbsnrtowcs2.sh: New file.
23243         * tests/test-mbsnrtowcs3.sh: New file.
23244         * tests/test-mbsnrtowcs4.sh: New file.
23245         * tests/test-mbsnrtowcs.c: New file.
23246
23247         New module 'mbsnrtowcs'.
23248         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23249         * lib/mbsnrtowcs.c: New file.
23250         * lib/mbsrtowcs-state.c: New file.
23251         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23252         (internal_state): Remove variable.
23253         * m4/mbsnrtowcs.m4: New file.
23254         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23255         compilation units.
23256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23257         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23258         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23259         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23260         * modules/mbsnrtowcs: New file.
23261         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23262         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23263         portability problem.
23264
23265 2008-12-21  Bruno Haible  <bruno@clisp.org>
23266
23267         Work around mbsrtowcs bug.
23268         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23269         (gl_FUNC_MBSRTOWCS): Invoke it.
23270         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23271         m4/locale-zh.m4.
23272         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23273
23274 2008-12-21  Bruno Haible  <bruno@clisp.org>
23275
23276         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23277
23278 2008-12-21  Bruno Haible  <bruno@clisp.org>
23279
23280         Update doc for AIX.
23281         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23282         16-bit wchar_t type.
23283         * doc/posix-functions/btowc.texi: Likewise.
23284         * doc/posix-functions/fgetwc.texi: Likewise.
23285         * doc/posix-functions/fgetws.texi: Likewise.
23286         * doc/posix-functions/fputwc.texi: Likewise.
23287         * doc/posix-functions/fputws.texi: Likewise.
23288         * doc/posix-functions/fwide.texi: Likewise.
23289         * doc/posix-functions/fwprintf.texi: Likewise.
23290         * doc/posix-functions/fwscanf.texi: Likewise.
23291         * doc/posix-functions/getwchar.texi: Likewise.
23292         * doc/posix-functions/getwc.texi: Likewise.
23293         * doc/posix-functions/iswalnum.texi: Likewise.
23294         * doc/posix-functions/iswalpha.texi: Likewise.
23295         * doc/posix-functions/iswblank.texi: Likewise.
23296         * doc/posix-functions/iswcntrl.texi: Likewise.
23297         * doc/posix-functions/iswctype.texi: Likewise.
23298         * doc/posix-functions/iswdigit.texi: Likewise.
23299         * doc/posix-functions/iswgraph.texi: Likewise.
23300         * doc/posix-functions/iswlower.texi: Likewise.
23301         * doc/posix-functions/iswprint.texi: Likewise.
23302         * doc/posix-functions/iswpunct.texi: Likewise.
23303         * doc/posix-functions/iswspace.texi: Likewise.
23304         * doc/posix-functions/iswupper.texi: Likewise.
23305         * doc/posix-functions/iswxdigit.texi: Likewise.
23306         * doc/posix-functions/mbrtowc.texi: Likewise.
23307         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23308         * doc/posix-functions/mbstowcs.texi: Likewise.
23309         * doc/posix-functions/mbtowc.texi: Likewise.
23310         * doc/posix-functions/putwchar.texi: Likewise.
23311         * doc/posix-functions/putwc.texi: Likewise.
23312         * doc/posix-functions/swprintf.texi: Likewise.
23313         * doc/posix-functions/tolower.texi: Likewise.
23314         * doc/posix-functions/toupper.texi: Likewise.
23315         * doc/posix-functions/towctrans.texi: Likewise.
23316         * doc/posix-functions/ungetwc.texi: Likewise.
23317         * doc/posix-functions/vswprintf.texi: Likewise.
23318         * doc/posix-functions/wcrtomb.texi: Likewise.
23319         * doc/posix-functions/wcscat.texi: Likewise.
23320         * doc/posix-functions/wcschr.texi: Likewise.
23321         * doc/posix-functions/wcscmp.texi: Likewise.
23322         * doc/posix-functions/wcscoll.texi: Likewise.
23323         * doc/posix-functions/wcscpy.texi: Likewise.
23324         * doc/posix-functions/wcscspn.texi: Likewise.
23325         * doc/posix-functions/wcsftime.texi: Likewise.
23326         * doc/posix-functions/wcslen.texi: Likewise.
23327         * doc/posix-functions/wcsncat.texi: Likewise.
23328         * doc/posix-functions/wcsncmp.texi: Likewise.
23329         * doc/posix-functions/wcsncpy.texi: Likewise.
23330         * doc/posix-functions/wcspbrk.texi: Likewise.
23331         * doc/posix-functions/wcsrchr.texi: Likewise.
23332         * doc/posix-functions/wcsrtombs.texi: Likewise.
23333         * doc/posix-functions/wcsspn.texi: Likewise.
23334         * doc/posix-functions/wcsstr.texi: Likewise.
23335         * doc/posix-functions/wcstod.texi: Likewise.
23336         * doc/posix-functions/wcstof.texi: Likewise.
23337         * doc/posix-functions/wcstoimax.texi: Likewise.
23338         * doc/posix-functions/wcstok.texi: Likewise.
23339         * doc/posix-functions/wcstold.texi: Likewise.
23340         * doc/posix-functions/wcstoll.texi: Likewise.
23341         * doc/posix-functions/wcstol.texi: Likewise.
23342         * doc/posix-functions/wcstombs.texi: Likewise.
23343         * doc/posix-functions/wcstoull.texi: Likewise.
23344         * doc/posix-functions/wcstoul.texi: Likewise.
23345         * doc/posix-functions/wcstoumax.texi: Likewise.
23346         * doc/posix-functions/wcswidth.texi: Likewise.
23347         * doc/posix-functions/wcsxfrm.texi: Likewise.
23348         * doc/posix-functions/wctob.texi: Likewise.
23349         * doc/posix-functions/wctomb.texi: Likewise.
23350         * doc/posix-functions/wctrans.texi: Likewise.
23351         * doc/posix-functions/wctype.texi: Likewise.
23352         * doc/posix-functions/wcwidth.texi: Likewise.
23353         * doc/posix-functions/wmemchr.texi: Likewise.
23354         * doc/posix-functions/wmemcmp.texi: Likewise.
23355         * doc/posix-functions/wmemcpy.texi: Likewise.
23356         * doc/posix-functions/wmemmove.texi: Likewise.
23357         * doc/posix-functions/wmemset.texi: Likewise.
23358         * doc/posix-functions/wprintf.texi: Likewise.
23359         * doc/posix-functions/wscanf.texi: Likewise.
23360
23361 2008-12-21  Bruno Haible  <bruno@clisp.org>
23362
23363         Update doc for HP-UX 11.11.
23364         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23365         in HP-UX version 11.00, not in all versions of HP-UX 11.
23366         * doc/posix-functions/fwide.texi: Likewise.
23367         * doc/posix-functions/fwprintf.texi: Likewise.
23368         * doc/posix-functions/fwscanf.texi: Likewise.
23369         * doc/posix-functions/inet_ntop.texi: Likewise.
23370         * doc/posix-functions/inet_pton.texi: Likewise.
23371         * doc/posix-functions/mbrlen.texi: Likewise.
23372         * doc/posix-functions/mbrtowc.texi: Likewise.
23373         * doc/posix-functions/mbsinit.texi: Likewise.
23374         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23375         * doc/posix-functions/swprintf.texi: Likewise.
23376         * doc/posix-functions/swscanf.texi: Likewise.
23377         * doc/posix-functions/towctrans.texi: Likewise.
23378         * doc/posix-functions/vfwprintf.texi: Likewise.
23379         * doc/posix-functions/vswprintf.texi: Likewise.
23380         * doc/posix-functions/vwprintf.texi: Likewise.
23381         * doc/posix-functions/wcrtomb.texi: Likewise.
23382         * doc/posix-functions/wcsrtombs.texi: Likewise.
23383         * doc/posix-functions/wcsstr.texi: Likewise.
23384         * doc/posix-functions/wctob.texi: Likewise.
23385         * doc/posix-functions/wctrans.texi: Likewise.
23386         * doc/posix-functions/wmemchr.texi: Likewise.
23387         * doc/posix-functions/wmemcmp.texi: Likewise.
23388         * doc/posix-functions/wmemcpy.texi: Likewise.
23389         * doc/posix-functions/wmemmove.texi: Likewise.
23390         * doc/posix-functions/wmemset.texi: Likewise.
23391         * doc/posix-functions/wprintf.texi: Likewise.
23392         * doc/posix-functions/wscanf.texi: Likewise.
23393
23394 2008-12-21  Bruno Haible  <bruno@clisp.org>
23395
23396         Work around a portability problem.
23397         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23398         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23399
23400 2008-12-20  Bruno Haible  <bruno@clisp.org>
23401
23402         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23403         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23404         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23406         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23407
23408         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23409         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23410         set.
23411         (GNULIB_defined_mbstate_t): New macro.
23412         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23413         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23414         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23415         reuses the system's mbrtowc function but works around the bugs.
23416         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23417         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23418         macros.
23419         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23420         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23421         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23422         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23423         REPLACE_MBSINIT if mbsinit needs to be overridden.
23424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23425         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23426         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23427         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23428         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23429         m4/locale-zh.m4.
23430         (Depends): Add mbsinit.
23431         * modules/mbsinit (Depends): Add mbrtowc.
23432         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23433
23434 2008-12-20  Bruno Haible  <bruno@clisp.org>
23435
23436         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23437         so that there are no conversion errors on AIX.
23438         * tests/test-mbsrtowcs.c (main): LIkewise.
23439
23440 2008-12-20  Bruno Haible  <bruno@clisp.org>
23441
23442         Work around wctob bug on Solaris <= 9.
23443         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23444         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23446         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23447         * modules/wctob (Files): Add m4/locale-fr.m4.
23448         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23449
23450 2008-12-20  Bruno Haible  <bruno@clisp.org>
23451
23452         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23453         /dev/null.
23454         * tests/test-select-in.sh: Likewise.
23455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23456
23457 2008-12-20  Bruno Haible  <bruno@clisp.org>
23458
23459         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23460         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23461         Cygwin 1.5.x.
23462
23463 2008-12-20  Bruno Haible  <bruno@clisp.org>
23464
23465         Ensure mbstate_t is defined on HP-UX 11.11.
23466         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23467         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23468         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23469         AC_USE_SYSTEM_EXTENSIONS.
23470         * modules/fnmatch (Depends-on): Add extensions.
23471         * modules/mbrlen (Depends-on): Likewise.
23472         * modules/mbrtowc (Depends-on): Likewise.
23473         * modules/mbsinit (Depends-on): Likewise.
23474         * modules/mbsrtowcs (Depends-on): Likewise.
23475         * modules/mbswidth (Depends-on): Likewise.
23476         * modules/quotearg (Depends-on): Likewise.
23477         * modules/strftime (Depends-on): Likewise.
23478
23479 2008-12-20  Bruno Haible  <bruno@clisp.org>
23480
23481         Ensure wctob is declared on IRIX 6.5.
23482         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23483         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23484         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23486         of HAVE_WCTOB.
23487         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23488         HAVE_WCTOB.
23489         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23490
23491 2008-12-19  Bruno Haible  <bruno@clisp.org>
23492
23493         * modules/mbsrtowcs-tests: New file.
23494         * tests/test-mbsrtowcs1.sh: New file.
23495         * tests/test-mbsrtowcs2.sh: New file.
23496         * tests/test-mbsrtowcs3.sh: New file.
23497         * tests/test-mbsrtowcs4.sh: New file.
23498         * tests/test-mbsrtowcs.c: New file.
23499
23500         New module 'mbsrtowcs'.
23501         * lib/wchar.in.h (mbsrtowcs): New declaration.
23502         * lib/mbsrtowcs.c: New file.
23503         * m4/mbsrtowcs.m4: New file.
23504         * modules/mbsrtowcs: New file.
23505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23506         HAVE_MBSRTOWCS.
23507         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23508         HAVE_MBSRTOWCS.
23509         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23510
23511 2008-12-19  Bruno Haible  <bruno@clisp.org>
23512
23513         New module 'mbrlen'.
23514         * lib/wchar.in.h (mbrlen): New declaration.
23515         * lib/mbrlen.c: New file.
23516         * m4/mbrlen.m4: New file.
23517         * modules/mbrlen: New file.
23518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23519         HAVE_MBRLEN.
23520         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23521         HAVE_MBRLEN.
23522         * doc/posix-functions/mbrlen.texi: Document the new module.
23523
23524 2008-12-19  Bruno Haible  <bruno@clisp.org>
23525
23526         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23527         * modules/mbrtowc (Depends-on): Add verify.
23528         Suggested by Paul Eggert.
23529
23530 2008-12-18  Bruno Haible  <bruno@clisp.org>
23531
23532         * modules/mbsinit-tests: New file.
23533         * tests/test-mbsinit.sh: New file.
23534         * tests/test-mbsinit.c: New file.
23535
23536 2008-12-18  Bruno Haible  <bruno@clisp.org>
23537
23538         * modules/mbrtowc-tests: New file.
23539         * tests/test-mbrtowc1.sh: New file.
23540         * tests/test-mbrtowc2.sh: New file.
23541         * tests/test-mbrtowc3.sh: New file.
23542         * tests/test-mbrtowc4.sh: New file.
23543         * tests/test-mbrtowc.c: New file.
23544
23545         New module 'mbrtowc'.
23546         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23547         mbsinit and mbrtowc.
23548         (mbrtowc): New declaration.
23549         * lib/mbrtowc.c: New file.
23550         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23551         * modules/mbrtowc: New file.
23552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23553         HAVE_MBRTOWC.
23554         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23555         HAVE_MBRTOWC.
23556         * doc/posix-functions/mbrtowc.texi: Document the new module.
23557
23558 2008-12-18  Bruno Haible  <bruno@clisp.org>
23559
23560         New module 'wctob'.
23561         * lib/wchar.in.h (wctob): New declaration.
23562         * lib/wctob.c: New file.
23563         * m4/wctob.m4: New file.
23564         * modules/wctob: New file.
23565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23566         HAVE_WCTOB.
23567         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23568         * doc/posix-functions/wctob.texi: Document the new module.
23569
23570 2008-12-18  Bruno Haible  <bruno@clisp.org>
23571
23572         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23573         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23574
23575 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23576
23577         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23578         G. Christensen" <tgc@jupiterrise.com>.
23579
23580         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23581         G. Christensen" <tgc@jupiterrise.com>.
23582
23583         * lib/flock.c: Need to include string.h.  Reported by "Tom
23584         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23585         <ebb9@byu.net>.
23586
23587 2008-12-18  Bruno Haible  <bruno@clisp.org>
23588
23589         * m4/locale-ja.m4: New file, from GNU gettext.
23590
23591 2008-12-17  Bruno Haible  <bruno@clisp.org>
23592
23593         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23594         Suggested by Eric Blake.
23595
23596 2008-12-17  Bruno Haible  <bruno@clisp.org>
23597
23598         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23599
23600 2008-12-17  Bruno Haible  <bruno@clisp.org>
23601
23602         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23603         * modules/mbsinit (Depends-on): Add verify.
23604         Suggested by Paul Eggert.
23605
23606 2008-12-17  Bruno Haible  <bruno@clisp.org>
23607
23608         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23609         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23610         gl_FUNC_MBRTOWC.
23611         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23612         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23613         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23614         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23615         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23616         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23617         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23618         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23619         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23620         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23621         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23622         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23623         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23624         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23625         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23626         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23627         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23628         * modules/trim (configure.ac): Likewise.
23629
23630 2008-12-17  Bruno Haible  <bruno@clisp.org>
23631
23632         * modules/btowc-tests: New file.
23633         * tests/test-btowc1.sh: New file.
23634         * tests/test-btowc2.sh: New file.
23635         * tests/test-btowc.c: New file.
23636
23637         New module 'btowc'.
23638         * lib/wchar.in.h (btowc): New declaration.
23639         * lib/btowc.c: New file.
23640         * m4/btowc.m4: New file.
23641         * modules/btowc: New file.
23642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23643         HAVE_BTOWC.
23644         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23645         * doc/posix-functions/btowc.texi: Document the new module.
23646
23647 2008-12-17  Bruno Haible  <bruno@clisp.org>
23648
23649         New module 'mbsinit'.
23650         * lib/wchar.in.h (mbsinit): New declaration.
23651         * lib/mbsinit.c: New file.
23652         * m4/mbsinit.m4: New file.
23653         * modules/mbsinit: New file.
23654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23655         HAVE_MBSINIT.
23656         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23657         HAVE_MBSINIT.
23658         * doc/posix-functions/mbsinit.texi: Document the new module.
23659
23660 2008-12-16  Bruno Haible  <bruno@clisp.org>
23661
23662         * lib/unistd.in.h: Add comment.
23663         * tests/test-environ.c: Don't include <stdlib.h>.
23664
23665 2008-12-16  Bruno Haible  <bruno@clisp.org>
23666
23667         * lib/parse-duration.h (parse_duration): Document return value
23668         convention.
23669         * lib/parse-duration.c: Include specification header first. Add
23670         comments.
23671         (_): Remove macro.
23672         (parse_year_month_day, parse_hour_minute_second): Move side effects
23673         outside of strchr call.
23674         (parse_non_iso8601): Move side effects outside of isspace call.
23675         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23676         call.
23677
23678 2008-12-16  Bruno Haible  <bruno@clisp.org>
23679
23680         * tests/test-parse-duration.sh: Produce no output when the test
23681         succeeds.
23682
23683 2008-12-16  Bruno Haible  <bruno@clisp.org>
23684
23685         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23686         expressions.
23687
23688 2008-12-15  Bruno Haible  <bruno@clisp.org>
23689
23690         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23691         * doc/glibc-functions/flistxattr.texi: Likewise.
23692         * doc/glibc-functions/fopencookie.texi: Likewise.
23693         * doc/glibc-functions/fremovexattr.texi: Likewise.
23694         * doc/glibc-functions/fsetxattr.texi: Likewise.
23695         * doc/glibc-functions/getxattr.texi: Likewise.
23696         * doc/glibc-functions/lgetxattr.texi: Likewise.
23697         * doc/glibc-functions/listxattr.texi: Likewise.
23698         * doc/glibc-functions/llistxattr.texi: Likewise.
23699         * doc/glibc-functions/lremovexattr.texi: Likewise.
23700         * doc/glibc-functions/lsetxattr.texi: Likewise.
23701         * doc/glibc-functions/removexattr.texi: Likewise.
23702         * doc/glibc-functions/setxattr.texi: Likewise.
23703         * doc/posix-functions/open_memstream.texi: Likewise.
23704
23705 2008-12-15  Eric Blake  <ebb9@byu.net>
23706
23707         Update doc for cygwin 1.7.
23708         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23709         functions.
23710         * doc/posix-functions/fchmodat.texi: Likewise.
23711         * doc/posix-functions/fchownat.texi: Likewise.
23712         * doc/posix-functions/fdopendir.texi: Likewise.
23713         * doc/posix-functions/fmemopen.texi: Likewise.
23714         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23715         * doc/posix-functions/fstatat.texi: Likewise.
23716         * doc/posix-functions/futimens.texi: Likewise.
23717         * doc/posix-functions/gai_strerror.texi: Likewise.
23718         * doc/posix-functions/getaddrinfo.texi: Likewise.
23719         * doc/posix-functions/getnameinfo.texi: Likewise.
23720         * doc/posix-functions/if_freenameindex.texi: Likewise.
23721         * doc/posix-functions/if_indextoname.texi: Likewise.
23722         * doc/posix-functions/if_nameindex.texi: Likewise.
23723         * doc/posix-functions/if_nametoindex.texi: Likewise.
23724         * doc/posix-functions/insque.texi: Likewise.
23725         * doc/posix-functions/linkat.texi: Likewise.
23726         * doc/posix-functions/llrint.texi: Likewise.
23727         * doc/posix-functions/llrintf.texi: Likewise.
23728         * doc/posix-functions/llrintl.texi: Likewise.
23729         * doc/posix-functions/lockf.texi: Likewise.
23730         * doc/posix-functions/lrintl.texi: Likewise.
23731         * doc/posix-functions/mkdirat.texi: Likewise.
23732         * doc/posix-functions/mkfifoat.texi: Likewise.
23733         * doc/posix-functions/mknodat.texi: Likewise.
23734         * doc/posix-functions/mq_close.texi: Likewise.
23735         * doc/posix-functions/mq_getattr.texi: Likewise.
23736         * doc/posix-functions/mq_notify.texi: Likewise.
23737         * doc/posix-functions/mq_open.texi: Likewise.
23738         * doc/posix-functions/mq_receive.texi: Likewise.
23739         * doc/posix-functions/mq_send.texi: Likewise.
23740         * doc/posix-functions/mq_setattr.texi: Likewise.
23741         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23742         * doc/posix-functions/mq_timedsend.texi: Likewise.
23743         * doc/posix-functions/mq_unlink.texi: Likewise.
23744         * doc/posix-functions/open_memstream.texi: Likewise.
23745         * doc/posix-functions/openat.texi: Likewise.
23746         * doc/posix-functions/posix_fadvise.texi: Likewise.
23747         * doc/posix-functions/posix_fallocate.texi: Likewise.
23748         * doc/posix-functions/posix_madvise.texi: Likewise.
23749         * doc/posix-functions/posix_memalign.texi: Likewise.
23750         * doc/posix-functions/posix_openpt.texi: Likewise.
23751         * doc/posix-functions/readlinkat.texi: Likewise.
23752         * doc/posix-functions/remque.texi: Likewise.
23753         * doc/posix-functions/renameat.texi: Likewise.
23754         * doc/posix-functions/rintl.texi: Likewise.
23755         * doc/posix-functions/sem_unlink.texi: Likewise.
23756         * doc/posix-functions/shm_open.texi: Likewise.
23757         * doc/posix-functions/shm_unlink.texi: Likewise.
23758         * doc/posix-functions/signgam.texi: Likewise.
23759         * doc/posix-functions/sigset.texi: Likewise.
23760         * doc/posix-functions/stpcpy.texi: Likewise.
23761         * doc/posix-functions/stpncpy.texi: Likewise.
23762         * doc/posix-functions/strerror.texi: Likewise.
23763         * doc/posix-functions/strtod.texi: Likewise.
23764         * doc/posix-functions/symlinkat.texi: Likewise.
23765         * doc/posix-functions/unlinkat.texi: Likewise.
23766         * doc/posix-functions/utimensat.texi: Likewise.
23767         * doc/glibc-functions/bindresvport.texi: Likewise.
23768         * doc/glibc-functions/dn_expand.texi: Likewise.
23769         * doc/glibc-functions/exp10.texi: Likewise.
23770         * doc/glibc-functions/exp10f.texi: Likewise.
23771         * doc/glibc-functions/fgetxattr.texi: Likewise.
23772         * doc/glibc-functions/flistxattr.texi: Likewise.
23773         * doc/glibc-functions/fopencookie.texi: Likewise.
23774         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23775         * doc/glibc-functions/fremovexattr.texi: Likewise.
23776         * doc/glibc-functions/fsetxattr.texi: Likewise.
23777         * doc/glibc-functions/getifaddrs.texi: Likewise.
23778         * doc/glibc-functions/getxattr.texi: Likewise.
23779         * doc/glibc-functions/lgetxattr.texi: Likewise.
23780         * doc/glibc-functions/listxattr.texi: Likewise.
23781         * doc/glibc-functions/llistxattr.texi: Likewise.
23782         * doc/glibc-functions/lremovexattr.texi: Likewise.
23783         * doc/glibc-functions/lsetxattr.texi: Likewise.
23784         * doc/glibc-functions/pow10.texi: Likewise.
23785         * doc/glibc-functions/pow10f.texi: Likewise.
23786         * doc/glibc-functions/rcmd_af.texi: Likewise.
23787         * doc/glibc-functions/removexattr.texi: Likewise.
23788         * doc/glibc-functions/res_init.texi: Likewise.
23789         * doc/glibc-functions/res_mkquery.texi: Likewise.
23790         * doc/glibc-functions/res_query.texi: Likewise.
23791         * doc/glibc-functions/res_querydomain.texi: Likewise.
23792         * doc/glibc-functions/res_send.texi: Likewise.
23793         * doc/glibc-functions/rresvport_af.texi: Likewise.
23794         * doc/glibc-functions/setxattr.texi: Likewise.
23795         * doc/glibc-functions/strcasestr.texi: Likewise.
23796
23797 2008-12-15  Bruno Haible  <bruno@clisp.org>
23798
23799         Fix compilation error on OSF/1 4.0.
23800         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23801         <sys/time.h>, simply delegate to the system header.
23802         Reported by Daniel Richard G. <oss@teragram.com>.
23803
23804 2008-12-15  Bruno Haible  <bruno@clisp.org>
23805
23806         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23807         * doc/posix-functions/fchmodat.texi: Likewise.
23808         * doc/posix-functions/fchownat.texi: Likewise.
23809         * doc/posix-functions/fdopendir.texi: Likewise.
23810         * doc/posix-functions/fstatat.texi: Likewise.
23811         * doc/posix-functions/mkdirat.texi: Likewise.
23812         * doc/posix-functions/unlinkat.texi: Likewise.
23813
23814 2008-12-14  Bruno Haible  <bruno@clisp.org>
23815
23816         Update doc for POSIX:2008.
23817         * doc/posix-functions/faccessat.texi: New file.
23818         * doc/posix-functions/fchmodat.texi: New file.
23819         * doc/posix-functions/fchownat.texi: New file.
23820         * doc/posix-functions/fdopendir.texi: New file.
23821         * doc/posix-functions/fstatat.texi: New file.
23822         * doc/posix-functions/futimens.texi: New file.
23823         * doc/posix-functions/linkat.texi: New file.
23824         * doc/posix-functions/mkdirat.texi: New file.
23825         * doc/posix-functions/mkfifoat.texi: New file.
23826         * doc/posix-functions/mknodat.texi: New file.
23827         * doc/posix-functions/open_wmemstream.texi: New file.
23828         * doc/posix-functions/openat.texi: New file.
23829         * doc/posix-functions/psiginfo.texi: New file.
23830         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23831         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23832         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23833         * doc/posix-functions/readlinkat.texi: New file.
23834         * doc/posix-functions/renameat.texi: New file.
23835         * doc/posix-functions/strerror_l.texi: New file.
23836         * doc/posix-functions/symlinkat.texi: New file.
23837         * doc/posix-functions/unlinkat.texi: New file.
23838         * doc/posix-functions/utimensat.texi: New file.
23839         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23840
23841 2008-12-14  Bruno Haible  <bruno@clisp.org>
23842
23843         Update doc for POSIX:2008.
23844         * doc/posix-functions/alphasort.texi: Renamed from
23845         doc/glibc-functions/alphasort.texi.
23846         * doc/posix-functions/dirfd.texi: Renamed from
23847         doc/glibc-functions/dirfd.texi.
23848         * doc/posix-functions/dprintf.texi: Renamed from
23849         doc/glibc-functions/dprintf.texi.
23850         * doc/posix-functions/duplocale.texi: Renamed from
23851         doc/glibc-functions/duplocale.texi.
23852         * doc/posix-functions/fexecve.texi: Renamed from
23853         doc/glibc-functions/fexecve.texi.
23854         * doc/posix-functions/fmemopen.texi: Renamed from
23855         doc/glibc-functions/fmemopen.texi.
23856         * doc/posix-functions/freelocale.texi: Renamed from
23857         doc/glibc-functions/freelocale.texi.
23858         * doc/posix-functions/getdate_err.texi: Renamed from
23859         doc/glibc-functions/getdate_err.texi.
23860         * doc/posix-functions/isalnum_l.texi: Renamed from
23861         doc/glibc-functions/isalnum_l.texi.
23862         * doc/posix-functions/isalpha_l.texi: Renamed from
23863         doc/glibc-functions/isalpha_l.texi.
23864         * doc/posix-functions/isblank_l.texi: Renamed from
23865         doc/glibc-functions/isblank_l.texi.
23866         * doc/posix-functions/iscntrl_l.texi: Renamed from
23867         doc/glibc-functions/iscntrl_l.texi.
23868         * doc/posix-functions/isdigit_l.texi: Renamed from
23869         doc/glibc-functions/isdigit_l.texi.
23870         * doc/posix-functions/isgraph_l.texi: Renamed from
23871         doc/glibc-functions/isgraph_l.texi.
23872         * doc/posix-functions/islower_l.texi: Renamed from
23873         doc/glibc-functions/islower_l.texi.
23874         * doc/posix-functions/isprint_l.texi: Renamed from
23875         doc/glibc-functions/isprint_l.texi.
23876         * doc/posix-functions/ispunct_l.texi: Renamed from
23877         doc/glibc-functions/ispunct_l.texi.
23878         * doc/posix-functions/isspace_l.texi: Renamed from
23879         doc/glibc-functions/isspace_l.texi.
23880         * doc/posix-functions/isupper_l.texi: Renamed from
23881         doc/glibc-functions/isupper_l.texi.
23882         * doc/posix-functions/iswalnum_l.texi: Renamed from
23883         doc/glibc-functions/iswalnum_l.texi.
23884         * doc/posix-functions/iswalpha_l.texi: Renamed from
23885         doc/glibc-functions/iswalpha_l.texi.
23886         * doc/posix-functions/iswblank_l.texi: Renamed from
23887         doc/glibc-functions/iswblank_l.texi.
23888         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23889         doc/glibc-functions/iswcntrl_l.texi.
23890         * doc/posix-functions/iswctype_l.texi: Renamed from
23891         doc/glibc-functions/iswctype_l.texi.
23892         * doc/posix-functions/iswdigit_l.texi: Renamed from
23893         doc/glibc-functions/iswdigit_l.texi.
23894         * doc/posix-functions/iswgraph_l.texi: Renamed from
23895         doc/glibc-functions/iswgraph_l.texi.
23896         * doc/posix-functions/iswlower_l.texi: Renamed from
23897         doc/glibc-functions/iswlower_l.texi.
23898         * doc/posix-functions/iswprint_l.texi: Renamed from
23899         doc/glibc-functions/iswprint_l.texi.
23900         * doc/posix-functions/iswpunct_l.texi: Renamed from
23901         doc/glibc-functions/iswpunct_l.texi.
23902         * doc/posix-functions/iswspace_l.texi: Renamed from
23903         doc/glibc-functions/iswspace_l.texi.
23904         * doc/posix-functions/iswupper_l.texi: Renamed from
23905         doc/glibc-functions/iswupper_l.texi.
23906         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23907         doc/glibc-functions/iswxdigit_l.texi.
23908         * doc/posix-functions/isxdigit_l.texi: Renamed from
23909         doc/glibc-functions/isxdigit_l.texi.
23910         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23911         doc/glibc-functions/mbsnrtowcs.texi.
23912         * doc/posix-functions/mkdtemp.texi: Renamed from
23913         doc/glibc-functions/mkdtemp.texi.
23914         * doc/posix-functions/newlocale.texi: Renamed from
23915         doc/glibc-functions/newlocale.texi.
23916         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23917         doc/glibc-functions/nl_langinfo_l.texi.
23918         * doc/posix-functions/open_memstream.texi: Renamed from
23919         doc/glibc-functions/open_memstream.texi.
23920         * doc/posix-functions/opterr.texi: Renamed from
23921         doc/glibc-functions/opterr.texi.
23922         * doc/posix-functions/optind.texi: Renamed from
23923         doc/glibc-functions/optind.texi.
23924         * doc/posix-functions/optopt.texi: Renamed from
23925         doc/glibc-functions/optopt.texi.
23926         * doc/posix-functions/psignal.texi: Renamed from
23927         doc/glibc-functions/psignal.texi.
23928         * doc/posix-functions/scandir.texi: Renamed from
23929         doc/glibc-functions/scandir.texi.
23930         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23931         doc/glibc-functions/sched_get_priority_min.texi.
23932         * doc/posix-functions/signgam.texi: Renamed from
23933         doc/glibc-functions/signgam.texi.
23934         * doc/posix-functions/stpcpy.texi: Renamed from
23935         doc/glibc-functions/stpcpy.texi.
23936         * doc/posix-functions/stpncpy.texi: Renamed from
23937         doc/glibc-functions/stpncpy.texi.
23938         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23939         doc/glibc-functions/strcasecmp_l.texi.
23940         * doc/posix-functions/strcoll_l.texi: Renamed from
23941         doc/glibc-functions/strcoll_l.texi.
23942         * doc/posix-functions/strfmon_l.texi: Renamed from
23943         doc/glibc-functions/strfmon_l.texi.
23944         * doc/posix-functions/strftime_l.texi: Renamed from
23945         doc/glibc-functions/strftime_l.texi.
23946         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23947         doc/glibc-functions/strncasecmp_l.texi.
23948         * doc/posix-functions/strndup.texi: Renamed from
23949         doc/glibc-functions/strndup.texi.
23950         * doc/posix-functions/strnlen.texi: Renamed from
23951         doc/glibc-functions/strnlen.texi.
23952         * doc/posix-functions/strsignal.texi: Renamed from
23953         doc/glibc-functions/strsignal.texi.
23954         * doc/posix-functions/strxfrm_l.texi: Renamed from
23955         doc/glibc-functions/strxfrm_l.texi.
23956         * doc/posix-functions/timer_gettime.texi: Renamed from
23957         doc/glibc-functions/timer_gettime.texi.
23958         * doc/posix-functions/tolower_l.texi: Renamed from
23959         doc/glibc-functions/tolower_l.texi.
23960         * doc/posix-functions/toupper_l.texi: Renamed from
23961         doc/glibc-functions/toupper_l.texi.
23962         * doc/posix-functions/towctrans_l.texi: Renamed from
23963         doc/glibc-functions/towctrans_l.texi.
23964         * doc/posix-functions/towlower_l.texi: Renamed from
23965         doc/glibc-functions/towlower_l.texi.
23966         * doc/posix-functions/towupper_l.texi: Renamed from
23967         doc/glibc-functions/towupper_l.texi.
23968         * doc/posix-functions/uselocale.texi: Renamed from
23969         doc/glibc-functions/uselocale.texi.
23970         * doc/posix-functions/vdprintf.texi: Renamed from
23971         doc/glibc-functions/vdprintf.texi.
23972         * doc/posix-functions/wcpcpy.texi:
23973         Renamed from doc/glibc-functions/wcpcpy.texi.
23974         * doc/posix-functions/wcpncpy.texi: Renamed from
23975         doc/glibc-functions/wcpncpy.texi.
23976         * doc/posix-functions/wcscasecmp.texi: Renamed from
23977         doc/glibc-functions/wcscasecmp.texi.
23978         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
23979         doc/glibc-functions/wcscasecmp_l.texi.
23980         * doc/posix-functions/wcscoll_l.texi: Renamed from
23981         doc/glibc-functions/wcscoll_l.texi.
23982         * doc/posix-functions/wcsdup.texi: Renamed from
23983         doc/glibc-functions/wcsdup.texi.
23984         * doc/posix-functions/wcsncasecmp.texi: Renamed from
23985         doc/glibc-functions/wcsncasecmp.texi.
23986         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
23987         doc/glibc-functions/wcsncasecmp_l.texi.
23988         * doc/posix-functions/wcsnlen.texi: Renamed from
23989         doc/glibc-functions/wcsnlen.texi.
23990         * doc/posix-functions/wcsnrtombs.texi: Renamed from
23991         doc/glibc-functions/wcsnrtombs.texi.
23992         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
23993         doc/glibc-functions/wcsxfrm_l.texi.
23994         * doc/posix-functions/wctrans_l.texi: Renamed from
23995         doc/glibc-functions/wctrans_l.texi.
23996         * doc/posix-functions/wctype_l.texi: Renamed from
23997         doc/glibc-functions/wctype_l.texi.
23998         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23999         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24000         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24001         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24002         these subsections.
24003         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24004         Remove sections.
24005
24006 2008-12-14  Bruno Haible  <bruno@clisp.org>
24007
24008         Update doc for POSIX:2008.
24009         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24010
24011 2008-12-14  Bruno Haible  <bruno@clisp.org>
24012
24013         Update doc for POSIX:2008.
24014         * doc/pastposix-functions/bcmp.texi: Renamed from
24015         doc/posix-functions/bcmp.texi.
24016         * doc/pastposix-functions/bcopy.texi: Renamed from
24017         doc/posix-functions/bcopy.texi.
24018         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24019         doc/posix-functions/bsd_signal.texi.
24020         * doc/pastposix-functions/bzero.texi: Renamed from
24021         doc/posix-functions/bzero.texi.
24022         * doc/pastposix-functions/ecvt.texi: Renamed from
24023         doc/posix-functions/ecvt.texi.
24024         * doc/pastposix-functions/fcvt.texi: Renamed from
24025         doc/posix-functions/fcvt.texi.
24026         * doc/pastposix-functions/ftime.texi: Renamed from
24027         doc/posix-functions/ftime.texi.
24028         * doc/pastposix-functions/gcvt.texi: Renamed from
24029         doc/posix-functions/gcvt.texi.
24030         * doc/pastposix-functions/getcontext.texi: Renamed from
24031         doc/posix-functions/getcontext.texi.
24032         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24033         doc/posix-functions/gethostbyaddr.texi.
24034         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24035         doc/posix-functions/gethostbyname.texi.
24036         * doc/pastposix-functions/getwd.texi: Renamed from
24037         doc/posix-functions/getwd.texi.
24038         * doc/pastposix-functions/h_errno.texi: Renamed from
24039         doc/posix-functions/h_errno.texi.
24040         * doc/pastposix-functions/index.texi: Renamed from
24041         doc/posix-functions/index.texi.
24042         * doc/pastposix-functions/makecontext.texi: Renamed from
24043         doc/posix-functions/makecontext.texi.
24044         * doc/pastposix-functions/mktemp.texi: Renamed from
24045         doc/posix-functions/mktemp.texi.
24046         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24047         doc/posix-functions/pthread_attr_getstackaddr.texi.
24048         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24049         doc/posix-functions/pthread_attr_setstackaddr.texi.
24050         * doc/pastposix-functions/rindex.texi: Renamed from
24051         doc/posix-functions/rindex.texi.
24052         * doc/pastposix-functions/scalb.texi: Renamed from
24053         doc/posix-functions/scalb.texi.
24054         * doc/pastposix-functions/setcontext.texi: Renamed from
24055         doc/posix-functions/setcontext.texi.
24056         * doc/pastposix-functions/swapcontext.texi: Renamed from
24057         doc/posix-functions/swapcontext.texi.
24058         * doc/pastposix-functions/ualarm.texi: Renamed from
24059         doc/posix-functions/ualarm.texi.
24060         * doc/pastposix-functions/usleep.texi: Renamed from
24061         doc/posix-functions/usleep.texi.
24062         * doc/pastposix-functions/vfork.texi: Renamed from
24063         doc/posix-functions/vfork.texi.
24064         * doc/pastposix-functions/wcswcs.texi: Renamed from
24065         doc/posix-functions/wcswcs.texi.
24066         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24067         (Function Substitutes): Update.
24068
24069 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24070
24071         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24072         m4/strerror.m4.
24073
24074 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24075             Bruno Haible  <bruno@clisp.org>
24076
24077         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24078
24079 2008-12-13  Bruno Haible  <bruno@clisp.org>
24080
24081         * modules/strtoull (Depends-on): Remove unistd.
24082
24083 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24084
24085         * modules/strtoull (Depends-on): Add stdlib.
24086
24087 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24088
24089         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24090
24091 2008-12-10  Jim Meyering  <meyering@redhat.com>
24092
24093         gl_ASSERT: don't say assertions are disabled when they're not
24094         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24095         "checking whether to enable assertions... no", when they are in
24096         fact enabled.  This is solely a bug in the output of configure.
24097         In spite of saying "no", NDEBUG was not defined in that case.
24098         Also, as noted by Eric Blake, leave assertions enabled upon
24099         --enable-assert=INVALID.
24100
24101 2008-12-10  Bruno Haible  <bruno@clisp.org>
24102
24103         Change MODULES.html to refer to POSIX:2008 where possible.
24104         * MODULES.html.sh (POSIX2008_URL): New variable.
24105         (posix_headers): Remove sys/timeb, ucontext.
24106         (posix2001_headers): New variable.
24107         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24108         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24109         index, makecontext, mktemp, pthread_attr_getstackaddr,
24110         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24111         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24112         (posix2001_functions): New variable.
24113         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24114         otherwise.
24115
24116 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24117
24118         add missing include to parse-duration.c
24119         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24120         * modules/parse-duration (Depends-on): Add xalloc.
24121
24122         fix sed script reading maint.mk
24123         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24124         (syntax-check-rules): Use it.
24125
24126 2008-12-09  Bruno Haible  <bruno@clisp.org>
24127
24128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24129         MacOS X 10.4/PowerPC.
24130         Reported by Simon Josefsson.
24131
24132 2008-12-08  Jim Meyering  <meyering@redhat.com>
24133
24134         work around mingw's lack of some S_IF definitions
24135         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24136         Reported by Simon Josefsson.
24137
24138 2008-12-08  Bruno Haible  <bruno@clisp.org>
24139
24140         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24141         applied to variables. Needed on MacOS X 10.4/PowerPC.
24142         Reported by Simon Josefsson.
24143
24144 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24145         and Eric Blake  <ebb9@byu.net>
24146
24147         assert: honor --enable-assert
24148         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24149         order to honor --enable-assert, rather than treating it as a
24150         synonym for --disable-assert.
24151
24152 2008-12-08  Jim Meyering  <meyering@redhat.com>
24153
24154         * lib/posixtm.c: Remove now-useless declaration of mktime.
24155
24156         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24157
24158 2008-12-07  Bruno Haible  <bruno@clisp.org>
24159
24160         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24161         test_once): Mark functions as static.
24162         * tests/test-tls.c (test_tls): Likewise.
24163
24164 2008-12-07  Bruno Haible  <bruno@clisp.org>
24165
24166         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24167         iconv_register_autodetect.
24168
24169 2008-12-07  Jim Meyering  <meyering@redhat.com>
24170
24171         posixtm.c: avoid a warning
24172         * lib/posixtm.c (posixtime): Don't initialize tm0.
24173         It's no longer needed to placate gcc4's -Wuninitialized,
24174         and the attempt to placate would elicit a new warning.
24175
24176         unicodeio.c: mark unused parameters
24177         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24178         (fallback_failure_callback): Likewise.
24179
24180 2008-12-07  Bruno Haible  <bruno@clisp.org>
24181
24182         * gnulib-tool (func_create_testdir): When building the tests
24183         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24184         Reported by Simon Josefsson.
24185
24186 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24187
24188         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24189
24190 2008-12-06  Bruno Haible  <bruno@clisp.org>
24191
24192         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24193         Suggested by Eric Blake.
24194
24195 2008-12-06  Bruno Haible  <bruno@clisp.org>
24196
24197         Fix a c-stack test failure on MacOS X.
24198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24199         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24200         handler for SIGBUS as well.
24201         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24202         install a signal handler for SIGBUS as well.
24203         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24204
24205 2008-12-06  Bruno Haible  <bruno@clisp.org>
24206
24207         Advocacy documentation.
24208         * doc/gnulib-intro.texi (Benefits): New section.
24209         * doc/gnulib.texi: Update.
24210
24211 2008-12-06  Bruno Haible  <bruno@clisp.org>
24212
24213         Document the 'manywarnings' module.
24214         * doc/manywarnings.texi: New file.
24215         * doc/gnulib.texi: Include it.
24216
24217 2008-12-05  Eric Blake  <ebb9@byu.net>
24218
24219         tests: silence some gcc warnings
24220         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24221         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24222         type mismatches.
24223
24224 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24225             Bruno Haible  <bruno@clisp.org>
24226
24227         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24228
24229 2008-11-29  Jim Meyering  <meyering@redhat.com>
24230
24231         unicodeio.c: mark unused parameters
24232         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24233         (fallback_failure_callback): Likewise.
24234
24235         fts: fix a thinko
24236         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24237         (set_stat_type): Return S_IF*-valued "type" directly.
24238         Prompted by James Youngman's spotting a related bug.
24239         Confirmed by further testing through find.
24240
24241         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24242         * lib/fts.c (D_TYPE): Define.
24243         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24244         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24245         (s_ifmt_shift_bits): New function.
24246         (set_stat_type): New function.
24247         (fts_build): When not calling fts_stat, call set_stat_type
24248         to propagate dirent.d_type info to fts_read caller.
24249         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24250         fts_statp->st_mode type information may be valid.
24251
24252 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24253
24254         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24255         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24256         <sds@gnu.org>.
24257
24258 2008-11-20  Bruno Haible  <bruno@clisp.org>
24259
24260         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24261         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24262         INCLUDE_NEXT.
24263         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24264         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24265         * modules/math (Makefile.am): Substitute
24266         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24268
24269 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24270             Bruno Haible  <bruno@clisp.org>
24271
24272         * lib/stdint.in.h: Define all type macros so that their expansion is
24273         a single typedef'ed token. Fixes a compilation failure in Boost which
24274         does "using ::int8_t;".
24275
24276 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24277
24278         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24279         gl_MANYWARN_ALL_GCC.
24280         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24281         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24282         * modules/manywarnings: New file.
24283         * MODULES.html.sh: Mention manywarnings module.
24284
24285 2008-11-18  Bruno Haible  <bruno@clisp.org>
24286
24287         * doc/gnulib-tool.texi (Unit tests): New section.
24288
24289 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24290
24291         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24292         paths like 'lib/po/foo.po'.
24293
24294 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24295
24296         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24297         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24298
24299 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24300
24301         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24302         parameter works.
24303
24304 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24305
24306         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24307
24308 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24309
24310         * modules/parse-duration-tests: New file.
24311         * tests/test-parse-duration.sh: New file.
24312         * tests/test-parse-duration.c: New file.
24313
24314         New module 'parse-duration'.
24315         * lib/parse-duration.h: New file.
24316         * lib/parse-duration.c: New file.
24317         * modules/parse-duration: New file.
24318
24319 2008-11-17  Bruno Haible  <bruno@clisp.org>
24320
24321         * tests/test-select-out.sh: Comment out the first pipe test.
24322         Reported by Simon Josefsson.
24323
24324 2008-11-17  Bruno Haible  <bruno@clisp.org>
24325
24326         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24328         gl_HOSTENT.
24329
24330 2008-11-17  Bruno Haible  <bruno@clisp.org>
24331
24332         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24333         -lnetwork and -lnet. Needed for Haiku and BeOS.
24334
24335 2008-11-16  Bruno Haible  <bruno@clisp.org>
24336
24337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24338
24339 2008-11-16  Bruno Haible  <bruno@clisp.org>
24340
24341         Avoid test failure on Haiku.
24342         * tests/test-fsync.c: Include <errno.h>.
24343         (main): Don't require that fsync (0) fails.
24344
24345 2008-11-15  Bruno Haible  <bruno@clisp.org>
24346
24347         New module 'hostent'.
24348         * modules/hostent: New file.
24349         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24350
24351 2008-11-15  Bruno Haible  <bruno@clisp.org>
24352
24353         New module 'servent'.
24354         * modules/servent: New file.
24355         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24356
24357 2008-11-15  Bruno Haible  <bruno@clisp.org>
24358
24359         Avoid generating same test program with two different rules.
24360         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24361         test-frexp to test-frexp-nolibm.
24362         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24363         test-frexpl to test-frexpl-nolibm.
24364
24365 2008-11-15  Bruno Haible  <bruno@clisp.org>
24366
24367         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24368         $(FREXPL_LIBM).
24369
24370 2008-11-15  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/netdb.in.h: Activate the definitions also when the system's
24373         <netdb.h> has 'struct addrinfo'.
24374         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24375         EAI_OVERFLOW or AI_NUMERICSERV.
24376         * doc/posix-headers/netdb.texi: Document the problem.
24377
24378 2008-11-15  Bruno Haible  <bruno@clisp.org>
24379
24380         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24381
24382         Make the 'sched' module work on platforms where <sched.h> exists but
24383         is incomplete (such as Haiku).
24384         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24385         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24386         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24387         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24388         HAVE_STRUCT_SCHED_PARAM.
24389         * modules/sched (Depends-on): Add include_next.
24390         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24391         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24392         * doc/posix-headers/sched.texi: Document the issue.
24393
24394 2008-11-13  Jim Meyering  <meyering@redhat.com>
24395
24396         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24397         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24398         test would fail due to the difference in the Report bugs to ...
24399         line.  The expected address is empty, "<>", while the actual
24400         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24401
24402 2008-11-12  Bruno Haible  <bruno@clisp.org>
24403
24404         lstat: don't compile lstat.c on systems lacking lstat
24405         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24406         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24407         Reported by Daniel P. Berrange via Jim Meyering.
24408
24409 2008-11-12  Jim Meyering  <meyering@redhat.com>
24410
24411         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24412
24413 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24414
24415         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24416         instead.
24417
24418 2008-11-12  Bruno Haible  <bruno@clisp.org>
24419
24420         * lib/unicodeio.c: Include unistr.h.
24421         (utf8_wctomb): Remove function.
24422         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24423
24424 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24425
24426         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24427         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24428         <bruno@clisp.org>.
24429         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24430
24431 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24432
24433         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24434         * doc/gnulib.texi: Add section for warnings.
24435
24436 2008-11-11  Bruno Haible  <bruno@clisp.org>
24437
24438         * lib/sockets.h: Add a comment.
24439
24440 2008-11-11  Karl Berry  <karl@gnu.org>
24441
24442         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24443
24444 2008-11-11  Eric Blake  <ebb9@byu.net>
24445
24446         fdl.texi: avoid git symlinks
24447         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24448
24449 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24450
24451         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24452
24453 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24454
24455         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24456         (gl_WARN_ADD): Substitute $2 if literal.
24457
24458 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24459
24460         * m4/warning.m4: Remove.
24461
24462 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24463
24464         * m4/warnings.m4: Almost complete rewrite. :-)
24465
24466 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24467
24468         * modules/warnings: New module.
24469         * m4/warnings.m4: New file.
24470         * MODULES.html.sh: Mention warnings module.
24471         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24472         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24473
24474 2008-11-10  Eric Blake  <ebb9@byu.net>
24475
24476         fdl.texi: make a symlink to the latest version
24477         * doc/standards.texi: Revert today's earlier change.
24478         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24479         * doc/fdl.texi: ...and replace this with a symlink to the newer
24480         fdl-1.3.texi.
24481
24482 2008-11-10  Bruno Haible  <bruno@clisp.org>
24483
24484         * tests/test-select-fd.c (main): Accept the result file name as fourth
24485         argument.
24486         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24487         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24488
24489 2008-11-10  Bruno Haible  <bruno@clisp.org>
24490
24491         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24492         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24493         as autoconf-substituted macros.
24494         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24496         gl_NETDB_H_DEFAULTS. Set these variables.
24497         * modules/netdb (Makefile.am): Substitute these variables.
24498
24499 2008-11-10  Eric Blake  <ebb9@byu.net>
24500
24501         standards.texi: include correct file for FDL 1.3
24502         * doc/standards.texi (GNU Free Documentation License): Change
24503         include file to pull in FDL 1.3, not 1.2.
24504
24505         fdl.texi: revert accidental change to license
24506         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24507
24508 2008-11-10  Bruno Haible  <bruno@clisp.org>
24509
24510         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24511         cross-compiling guesses also when the native compile gives no result.
24512
24513 2008-11-10  Bruno Haible  <bruno@clisp.org>
24514
24515         * lib/spawni.c (__spawni): Force variable into the stack.
24516
24517 2008-11-10  Bruno Haible  <bruno@clisp.org>
24518
24519         Add support for Haiku.
24520         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24521         glibc and BeOS, but also on Haiku.
24522         * lib/fpurge.c (fpurge): Likewise.
24523         * lib/freadable.c (freadable): Likewise.
24524         * lib/freadahead.c (freadahead): Likewise.
24525         * lib/freading.c (freading): Likewise.
24526         * lib/freadptr.c (freadptr): Likewise.
24527         * lib/freadseek.c (freadptrinc): Likewise.
24528         * lib/fseeko.c (rpl_fseeko): Likewise.
24529         * lib/fseterr.c (fseterr): Likewise.
24530         * lib/fwritable.c (fwritable): Likewise.
24531         * lib/fwriting.c (fwriting): Likewise.
24532         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24533
24534 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24535
24536         * lib/config.charset: Treat Haiku like BeOS.
24537
24538 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24539
24540         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24541         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24542
24543 2008-11-08  Bruno Haible  <bruno@clisp.org>
24544
24545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24546         AC_CACHE_CHECK.
24547
24548 2008-11-08  Bruno Haible  <bruno@clisp.org>
24549
24550         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24551
24552 2008-11-08  Bruno Haible  <bruno@clisp.org>
24553
24554         * tests/test-select-fd.c: New file.
24555         * tests/test-select-in.sh: New file.
24556         * tests/test-select-out.sh: New file.
24557         * tests/test-select-stdin.c: New file.
24558         * modules/select-tests (Files): Add the new files.
24559         (Depends-on): Add gettimeofday.
24560         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24561         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24562         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24563
24564 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24565             Bruno Haible  <bruno@clisp.org>
24566
24567         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24568
24569 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24570
24571         * build-aux/pmccabe2html: Added support for C++ source files.
24572
24573 2008-11-05  Ben Pfaff  <blp@gnu.org>
24574
24575         Fix lib/close.c build on Windows.
24576         * modules/close (Files): Add lib/w32sock.h.
24577
24578 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24579
24580         Accept Bison's NEWS format.
24581         * build-aux/announce-gen (print_news_deltas): Tweak
24582         $re_prefix.
24583
24584 2008-11-04  Bruno Haible  <bruno@clisp.org>
24585
24586         * modules/random_r (Maintainer): Add glibc.
24587
24588 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24589
24590         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24591         by karl@freefriends.org (Karl Berry).
24592         * doc/alloca.texi: Likewise.
24593         * doc/c-ctype.texi: Likewise.
24594         * doc/c-strcase.texi: Likewise.
24595         * doc/c-strcaseeq.texi: Likewise.
24596         * doc/c-strcasestr.texi: Likewise.
24597         * doc/c-strstr.texi: Likewise.
24598         * doc/c-strtod.texi: Likewise.
24599         * doc/c-strtold.texi: Likewise.
24600         * doc/ctime.texi: Likewise.
24601         * doc/error.texi: Likewise.
24602         * doc/fdl.texi: Likewise.
24603         * doc/gcd.texi: Likewise.
24604         * doc/getdate.texi: Likewise.
24605         * doc/gnulib-intro.texi: Likewise.
24606         * doc/gnulib-tool.texi: Likewise.
24607         * doc/gnulib.texi: Likewise.
24608         * doc/inet_ntoa.texi: Likewise.
24609         * doc/maintain.texi: Likewise.
24610         * doc/make-stds.texi: Likewise.
24611         * doc/quote.texi: Likewise.
24612         * doc/regexprops-generic.texi: Likewise.
24613         * doc/standards.texi: Likewise.
24614         * doc/verify.texi: Likewise.
24615         * doc/visibility.texi: Likewise.
24616         * doc/gnulib.texi (GNU Free Documentation License): Include
24617         fdl-1.3.texi instead of fdl.texi.
24618
24619 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24620
24621         * doc/fdl-1.3.texi: New file, from
24622         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24623         * modules/fdl-1.3: Add.
24624         * MODULES.html.sh: Add fdl-1.3.
24625
24626 2008-11-03  Bruno Haible  <bruno@clisp.org>
24627
24628         Make determination of absolute name of header file work with AIX xlc.
24629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24630         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24631         preprocessing.
24632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24633         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24634
24635 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24636
24637         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24638         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24639         <ludo@gnu.org>.
24640
24641 2008-11-02  Bruno Haible  <bruno@clisp.org>
24642
24643         Mark 'strpbrk' obsolete.
24644         * modules/strpbrk (Status, Notice): New sections.
24645         * modules/strtok_r (Depends-on): Add strpbrk.
24646
24647 2008-11-02  Bruno Haible  <bruno@clisp.org>
24648
24649         Mark 'strdup' obsolete.
24650         * modules/strdup (Status, Notice): New sections.
24651         * modules/findprog (Depends-on): Add strdup.
24652         * modules/getaddrinfo (Depends-on): Likewise.
24653         * modules/localename (Depends-on): Likewise.
24654         * modules/relocatable-lib (Depends-on): Likewise.
24655         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24656         * modules/relocatable-prog (Depends-on): Likewise.
24657         * modules/trim (Depends-on): Likewise.
24658         * modules/unictype/gen-ctype (Depends-on): Likewise.
24659         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24660
24661 2008-11-02  Bruno Haible  <bruno@clisp.org>
24662
24663         Mark 'strcspn' obsolete.
24664         * modules/strcspn (Status, Notice): New sections.
24665
24666 2008-11-02  Bruno Haible  <bruno@clisp.org>
24667
24668         Mark 'rmdir' obsolete.
24669         * modules/rmdir (Status, Notice): New sections.
24670         * modules/clean-temp (Depends-on): Add rmdir.
24671         * modules/openat (Depends-on): Likewise.
24672
24673 2008-11-02  Bruno Haible  <bruno@clisp.org>
24674
24675         Mark 'raise' obsolete.
24676         * modules/raise (Status, Notice): New sections.
24677         (Include): Specify <signal.h>.
24678         * modules/stdio (Depends-on): Add raise.
24679         * modules/write (Depends-on): Likewise.
24680
24681 2008-11-02  Bruno Haible  <bruno@clisp.org>
24682
24683         Mark 'memset' obsolete.
24684         * modules/memset (Status, Notice): New sections.
24685
24686 2008-11-02  Bruno Haible  <bruno@clisp.org>
24687
24688         Mark 'memmove' obsolete.
24689         * modules/memmove (Status, Notice): New sections.
24690         * modules/argp (Depends-on): Add memmove.
24691         * modules/argz (Depends-on): Likewise.
24692         * modules/canonicalize (Depends-on): Likewise.
24693         * modules/canonicalize-lgpl (Depends-on): Likewise.
24694         * modules/fts (Depends-on): Likewise.
24695         * modules/getcwd (Depends-on): Likewise.
24696         * modules/human (Depends-on): Likewise.
24697         * modules/regex (Depends-on): Likewise.
24698         * modules/striconveh (Depends-on): Likewise.
24699         * modules/trim (Depends-on): Likewise.
24700         * modules/unistr/u8-move (Depends-on): Likewise.
24701         * modules/unistr/u16-move (Depends-on): Likewise.
24702         * modules/unistr/u32-move (Depends-on): Likewise.
24703
24704 2008-11-02  Bruno Haible  <bruno@clisp.org>
24705
24706         Mark 'memcpy' obsolete.
24707         * modules/memcpy (Status, Notice): New sections.
24708
24709 2008-11-02  Bruno Haible  <bruno@clisp.org>
24710
24711         Mark 'memcmp' obsolete.
24712         * modules/memcmp (Status, Notice): New sections.
24713         * modules/argmatch (Depends-on): Add memchr.
24714         * modules/backupfile (Depends-on): Likewise.
24715         * modules/c-strcasestr (Depends-on): Likewise.
24716         * modules/crypto/des (Depends-on): Likewise.
24717         * modules/csharpcomp (Depends-on): Likewise.
24718         * modules/fnmatch (Depends-on): Likewise.
24719         * modules/git-merge-changelog (Depends-on): Likewise.
24720         * modules/isnand (Depends-on): Likewise.
24721         * modules/isnand-nolibm (Depends-on): Likewise.
24722         * modules/isnanf (Depends-on): Likewise.
24723         * modules/isnanf-nolibm (Depends-on): Likewise.
24724         * modules/isnanl (Depends-on): Likewise.
24725         * modules/isnanl-nolibm (Depends-on): Likewise.
24726         * modules/mbchar (Depends-on): Likewise.
24727         * modules/memcoll (Depends-on): Likewise.
24728         * modules/quotearg (Depends-on): Likewise.
24729         * modules/regex (Depends-on): Likewise.
24730         * modules/relocatable-prog (Depends-on): Likewise.
24731         * modules/same (Depends-on): Likewise.
24732         * modules/signbit (Depends-on): Likewise.
24733         * modules/strcasestr-simple (Depends-on): Likewise.
24734         * modules/unictype/gen-ctype (Depends-on): Likewise.
24735         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24736         * modules/uniname/uniname (Depends-on): Likewise.
24737         * modules/unistr/u8-cmp (Depends-on): Likewise.
24738
24739 2008-11-02  Bruno Haible  <bruno@clisp.org>
24740
24741         Mark 'memchr' obsolete.
24742         * modules/memchr (Status, Notice): New sections.
24743         * modules/argp (Depends-on): Add memchr.
24744         * modules/base64 (Depends-on): Likewise.
24745         * modules/c-strcasestr (Depends-on): Likewise.
24746         * modules/chdir-long (Depends-on): Likewise.
24747         * modules/fnmatch (Depends-on): Likewise.
24748         * modules/getsubopt (Depends-on): Likewise.
24749         * modules/git-merge-changelog (Depends-on): Likewise.
24750         * modules/glob (Depends-on): Likewise.
24751         * modules/strcasestr-simple (Depends-on): Likewise.
24752         * modules/strnlen (Depends-on): Likewise.
24753
24754 2008-11-02  Bruno Haible  <bruno@clisp.org>
24755
24756         Mark 'atexit' obsolete.
24757         * modules/atexit (Status, Notice): New sections.
24758         * modules/chdir-long (Depends-on): Add atexit.
24759         * modules/wait-process (Depends-on): Likewise.
24760
24761 2008-11-02  Bruno Haible  <bruno@clisp.org>
24762
24763         * gnulib-tool: New option --with-obsolete.
24764         (func_usage): Document it.
24765         (func_modules_transitive_closure): Drop obsolete dependencies if
24766         incobsolete is not true.
24767         (func_import): Read and save the incobsolete variable to the cache.
24768
24769 2008-11-02  Bruno Haible  <bruno@clisp.org>
24770
24771         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24772         * gnulib-tool: New option --extract-status.
24773         (func_usage): Document it.
24774         (sed_extract_prog): Recognize it.
24775         (func_get_status): New function.
24776
24777 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24778
24779         * modules/sockets (License): Change from LGPL to LGPLv2+.
24780
24781 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24782
24783         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24784
24785 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24786
24787         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24788         Mention times and sys_times.
24789         * modules/sys_times, modules/sys_times-tests: New modules.
24790         * modules/times, modules/times-tests: Likewise
24791         * m4/sys_times_h.m4: New file.
24792         * lib/sys_times.in.h: Likewise
24793         * lib/times.c: Likewise.
24794         * tests/test-sys_times.c: Likewise.
24795         * tests/test-times.c: Likewise.
24796         * doc/posix-headers/sys_times.texi: Update.
24797         * doc/posix-functions/times.texi: Update.
24798
24799 2008-10-28  Jim Meyering  <meyering@redhat.com>
24800
24801         * modules/tempname (Depends-on): Add lstat.
24802
24803         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24804
24805 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24806
24807         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24808         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24809         using idiom used elsewhere in gnulib.
24810
24811 2008-10-27  Jim Meyering  <meyering@redhat.com>
24812
24813         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24814
24815 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24816
24817         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24818         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24819         programs.
24820         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24821
24822 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24823
24824         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24825
24826 2008-10-27  Bruno Haible  <bruno@clisp.org>
24827
24828         * tests/test-lstat.c: Include <stdio.h>.
24829
24830 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24831
24832         * modules/lstat-tests: New module.
24833         * tests/test-lstat.c: New file.
24834
24835 2008-10-26  Jim Meyering  <meyering@redhat.com>
24836
24837         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24838
24839 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24840             Bruno Haible  <bruno@clisp.org>
24841
24842         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24843         * modules/configmake (Include): Add a note that the include must come
24844         after all system headers.
24845         * lib/javaversion.c: Include configmake.h after all other includes.
24846
24847 2008-10-26  Bruno Haible  <bruno@clisp.org>
24848
24849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24850         HAVE_STRUCT_RANDOM_DATA to 1.
24851         (gl_STDLIB_H): Simplify.
24852
24853 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24854
24855         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24856         substitute HAVE_STRUCT_RANDOM_DATA.
24857         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24858         random_data.
24859         * modules/stdlib (Makefile.am): Substitute
24860         HAVE_STRUCT_RANDOM_DATA.
24861
24862 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24863
24864         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24865         * doc/gnulib-intro.texi (Copyright): Likewise.
24866
24867 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24868
24869         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24870         findings.
24871
24872 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24873             Bruno Haible  <bruno@clisp.org>
24874
24875         * lib/unistd.in.h: Include <winsock2.h>.
24876         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24877         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24878         Provide dummy declarations.
24879         (gethostname): Override.
24880         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24881         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24882         gl_PREREQ_SYS_H_WINSOCK2.
24883         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24884         * doc/posix-functions/gethostname.texi: More details.
24885
24886 2008-10-25  Bruno Haible  <bruno@clisp.org>
24887
24888         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24889         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24890         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24891
24892         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24893         here ...
24894         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24895         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24896         gl_UNISTD_H_DEFAULTS.
24897
24898 2008-10-25  Eric Blake  <ebb9@byu.net>
24899
24900         signbit: avoid spurious compiler failure
24901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24902         declarations inside function.
24903
24904 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24905             Bruno Haible  <bruno@clisp.org>
24906
24907         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24908         * modules/random_r (Depends-on): Add stdint.
24909
24910 2008-10-24  Bruno Haible  <bruno@clisp.org>
24911
24912         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24913         Eggert.
24914         * modules/strerror (License): Likewise.
24915
24916 2008-10-24  Jim Meyering  <meyering@redhat.com>
24917
24918         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24919         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24920
24921 2008-10-24  Eric Blake  <ebb9@byu.net>
24922
24923         getgroups: fix compilation when getgroups is available
24924         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24925         but with <config.h> override of getgroups disabled.
24926
24927 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24928
24929         * doc/gnulib.texi (Header files): Add note about C++ problems.
24930         Explained by Bruno Haible <bruno@clisp.org>.
24931
24932 2008-10-23  Bruno Haible  <bruno@clisp.org>
24933
24934         Define a dummy SA_NODEFER macro on Interix.
24935         * lib/signal.in.h (SA_NODEFER): Define fallback.
24936         Reported by Aleksey Cheusov <cheusov@tut.by> via
24937         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24938
24939 2008-10-23  Bruno Haible  <bruno@clisp.org>
24940
24941         * modules/freadahead (License): Change to LGPLv2+.
24942         Suggested by Simon Josefsson.
24943
24944 2008-10-23  Jim Meyering  <meyering@redhat.com>
24945
24946         random_r: new module
24947         * modules/random_r: New file.
24948         * m4/random_r.m4: New file.
24949         * lib/random_r.c: New file, from glibc.
24950         * modules/random_r-tests: New file.
24951         * tests/test-random_r.c: New file.
24952         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24953          Declare.
24954         (RAND_MAX): Define.
24955         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24956         * modules/stdlib: Substitute them, too.
24957         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
24958         * doc/glibc-functions/initstate_r.texi: Mention the new module.
24959         * doc/glibc-functions/random_r.texi: Likewise.
24960         * doc/glibc-functions/setstate_r.texi: Likewise.
24961         * doc/glibc-functions/srandom_r.texi: Likewise.
24962         * config/srclist.txt: Mention it.
24963
24964 2008-10-23  David Lutterkort  <lutter@redhat.com>
24965
24966         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
24967         link requirement
24968
24969 2008-10-23  Jim Meyering  <meyering@redhat.com>
24970
24971         selinux-h: mark parameters of stub functions as intentionally unused
24972         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
24973         * lib/se-context.in.h: Likewise.
24974
24975 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24976
24977         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
24978
24979 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24980
24981         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
24982
24983 2008-10-22  Eric Blake  <ebb9@byu.net>
24984
24985         glthread/thread: avoid compiler warning
24986         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
24987         Add unreachable abort to silence compiler.
24988
24989 2008-10-22  Eric Blake  <ebb9@byu.net>
24990
24991         netdb: also supply struct addrinfo for cygwin 1.5.x
24992         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
24993         older cygwin.
24994         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
24995         cygwin.
24996         * doc/posix-headers/netdb.texi (netdb.h): Document this.
24997
24998 2008-10-22  Bruno Haible  <bruno@clisp.org>
24999
25000         * users.txt: Update entry about pspp.
25001
25002 2008-10-21  Bruno Haible  <bruno@clisp.org>
25003
25004         Simplification.
25005         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25006         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25007
25008         Simplification.
25009         * lib/ioctl.c (ioctl): Don't undefine.
25010         * lib/socket.c (socket): Don't undefine.
25011
25012         Remove unused module indicator macros.
25013         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25014         GNULIB_$1 as a C macro.
25015
25016         * doc/posix-functions/close.texi: Undo last change.
25017         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25018         Windows platforms.
25019
25020 2008-10-21  Bruno Haible  <bruno@clisp.org>
25021
25022         Add gethostname() declaration to <unistd.h>.
25023         * lib/unistd.in.h (gethostname): New declaration.
25024         * lib/gethostname.c: Include <unistd.h>.
25025         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25026         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25028         and HAVE_GETHOSTNAME.
25029         * modules/gethostname (Depends-on): Add unistd.
25030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25031         (Include): Specify <unistd.h>.
25032         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25033         HAVE_GETHOSTNAME.
25034         * tests/test-gethostname.c: Include <unistd.h> first.
25035
25036 2008-10-21  Bruno Haible  <bruno@clisp.org>
25037
25038         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25039         * modules/select-tests (Depends-on): Likewise.
25040         Reported by Simon Josefsson.
25041
25042 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25043
25044         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25045         * lib/accept.c: New file, based on winsock.c.
25046         * lib/bind.c: New file, based on winsock.c.
25047         * lib/connect.c: New file, based on winsock.c.
25048         * lib/getpeername.c: New file, based on winsock.c.
25049         * lib/getsockname.c: New file, based on winsock.c.
25050         * lib/getsockopt.c: New file, based on winsock.c.
25051         * lib/ioctl.c: New file, based on winsock.c.
25052         * lib/listen.c: New file, based on winsock.c.
25053         * lib/recv.c: New file, based on winsock.c.
25054         * lib/recvfrom.c: New file, based on winsock.c.
25055         * lib/send.c: New file, based on winsock.c.
25056         * lib/sendto.c: New file, based on winsock.c.
25057         * lib/setsockopt.c: New file, based on winsock.c.
25058         * lib/shutdown.c: New file, based on winsock.c.
25059         * lib/socket.c: New file, based on winsock.c.
25060         * lib/w32sock.h: New file, based on winsock.c.
25061         * lib/winsock.c: Remove file.
25062         * modules/accept: Likewise.
25063         * modules/bind: Likewise.
25064         * modules/connect: Likewise.
25065         * modules/getpeername: Likewise.
25066         * modules/getsockname: Likewise.
25067         * modules/getsockopt: Likewise.
25068         * modules/ioctl: Likewise.
25069         * modules/listen: Likewise.
25070         * modules/recv: Likewise.
25071         * modules/recvfrom: Likewise.
25072         * modules/send: Likewise.
25073         * modules/sendto: Likewise.
25074         * modules/setsockopt: Likewise.
25075         * modules/shutdown: Likewise.
25076         * modules/socket: Use socket.c instead of winsock.c.
25077         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25078         * doc/posix-functions/accept.texi: Doc fix.
25079         * doc/posix-functions/bind.texi: Doc fix.
25080         * doc/posix-functions/close.texi: Doc fix.
25081         * doc/posix-functions/connect.texi: Doc fix.
25082         * doc/posix-functions/getpeername.texi: Doc fix.
25083         * doc/posix-functions/getsockname.texi: Doc fix.
25084         * doc/posix-functions/getsockopt.texi: Doc fix.
25085         * doc/posix-functions/ioctl.texi: Doc fix.
25086         * doc/posix-functions/listen.texi: Doc fix.
25087         * doc/posix-functions/recv.texi: Doc fix.
25088         * doc/posix-functions/recvfrom.texi: Doc fix.
25089         * doc/posix-functions/send.texi: Doc fix.
25090         * doc/posix-functions/sendto.texi: Doc fix.
25091         * doc/posix-functions/setsockopt.texi: Doc fix.
25092         * doc/posix-functions/shutdown.texi: Doc fix.
25093         * doc/posix-functions/socket.texi: Doc fix.
25094
25095 2008-10-20  Bruno Haible  <bruno@clisp.org>
25096
25097         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25098         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25099         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25100         as an alias for SIGABRT.
25101         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25102         (sigaction): Map it to SIGABRT.
25103         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25104
25105 2008-10-20  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/fts.c: Don't include lstat.h.
25108         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25109
25110         Move the lstat() declaration to <sys/stat.h>.
25111         * lib/lstat.h: Remove file.
25112         * lib/sys_stat.in.h: Add special invocation convention.
25113         (lstat): New declaration.
25114         * lib/lstat.c (orig_lstat): New function.
25115         (rpl_lstat): Use orig_lstat instead of lstat.
25116         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25117         AC_C_INLINE. Set REPLACE_LSTAT.
25118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25119         and REPLACE_LSTAT.
25120         * modules/lstat (Files): Remove lib/lstat.h.
25121         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25122         (Include): Specify <sys/stat.h> instead of lstat.h.
25123         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25124         REPLACE_LSTAT.
25125         * NEWS: Mention the change.
25126
25127 2008-10-20  Bruno Haible  <bruno@clisp.org>
25128
25129         * modules/posix_spawn-tests: New file.
25130         * tests/test-posix_spawn3.c: New file.
25131
25132 2008-10-20  Bruno Haible  <bruno@clisp.org>
25133
25134         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25135         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25136         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25137         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25138         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25139
25140 2008-10-20  Bruno Haible  <bruno@clisp.org>
25141
25142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25143         of posix_spawn on AIX 5.3.
25144
25145 2008-10-20  Bruno Haible  <bruno@clisp.org>
25146
25147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25148
25149 2008-10-20  Bruno Haible  <bruno@clisp.org>
25150
25151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25152         of AC_LANG_PROGRAM.
25153
25154 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25155
25156         * lib/netdb.in.h: Don't define GNU specific constants until they
25157         are supported or needed.  Reported by Bruno Haible
25158         <bruno@clisp.org>.
25159
25160 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25161
25162         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25163
25164 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25165
25166         * lib/getaddrinfo.h: Remove file.
25167         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25168         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25169         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25170         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25171         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25172         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25173         * tests/test-getaddrinfo.c: Likewise.
25174         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25175         * NEWS: Mention change.
25176
25177 2008-10-19  Bruno Haible  <bruno@clisp.org>
25178
25179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25180
25181 2008-10-19  Bruno Haible  <bruno@clisp.org>
25182
25183         * lib/wait-process.c: Include simply <sys/wait.h>.
25184         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25185         WIFSTOPPED): Remove fallback definitions.
25186         * modules/wait-process (Depends-on): Add sys_wait.
25187
25188         New module 'sys_wait'.
25189         * modules/sys_wait: New file.
25190         * lib/sys_wait.in.h: New file, partially copied from
25191         lib/wait-process.c.
25192         * m4/sys_wait_h.m4: New file.
25193         * doc/posix-headers/sys_wait.texi: Mention the new module.
25194
25195 2008-10-19  Bruno Haible  <bruno@clisp.org>
25196
25197         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25198
25199 2008-10-19  Bruno Haible  <bruno@clisp.org>
25200
25201         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25202         * lib/wait-process.c (WAIT_T): Remove type.
25203         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25204         (wait_subprocess): Update.
25205
25206 2008-10-19  Bruno Haible  <bruno@clisp.org>
25207
25208         New module 'atoll'.
25209         * modules/atoll: New file.
25210         * lib/stdlib.in.h (atoll): New declaration.
25211         * lib/atoll.c: New file, from glibc with modifications.
25212         * m4/atoll.m4: New file.
25213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25214         HAVE_ATOLL.
25215         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25216         * doc/posix-functions/atoll.texi: Mention the new module.
25217
25218 2008-10-19  Bruno Haible  <bruno@clisp.org>
25219
25220         Add strtoull() declaration to <stdlib.h>.
25221         * lib/stdlib.in.h (strtoull): New declaration.
25222         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25223         Set HAVE_STRTOULL.
25224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25225         HAVE_STRTOULL.
25226         * modules/strtoull (Depends-on): Add stdlib.
25227         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25228         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25229         HAVE_STRTOULL.
25230
25231 2008-10-19  Bruno Haible  <bruno@clisp.org>
25232
25233         Add strtoll() declaration to <stdlib.h>.
25234         * lib/stdlib.in.h (strtoll): New declaration.
25235         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25236         Set HAVE_STRTOLL.
25237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25238         HAVE_STRTOLL.
25239         * modules/strtoll (Depends-on): Add stdlib.
25240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25241         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25242
25243 2008-10-19  Bruno Haible  <bruno@clisp.org>
25244
25245         * modules/bcopy (Depends-on): Add strings.
25246         (Include): Specify <strings.h>.
25247
25248 2008-10-19  Bruno Haible  <bruno@clisp.org>
25249
25250         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25251
25252 2008-10-19  Bruno Haible  <bruno@clisp.org>
25253
25254         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25255         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25256         mingw.
25257
25258 2008-10-19  Bruno Haible  <bruno@clisp.org>
25259
25260         * lib/atanl.c: Don't include isnanl.h.
25261         * lib/cosl.c: Likewise.
25262         * lib/ldexpl.c: Likewise.
25263         * lib/logl.c: Likewise.
25264         * lib/sinl.c: Likewise.
25265         * lib/sqrtl.c: Likewise.
25266         * lib/tanl.c: Likewise.
25267
25268         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25269         * lib/isnanf.h: Remove file.
25270         * lib/isnand.h: Remove file.
25271         * lib/isnanl.h: Remove file.
25272         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25273         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25274         macros.
25275         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25276         HAVE_ISNANF, don't define it as a C macro.
25277         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25278         HAVE_ISNAND, don't define it as a C macro.
25279         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25280         HAVE_ISNANL, don't define it as a C macro.
25281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25282         HAVE_ISNAN[FDL].
25283         * modules/isnanf (Files): Remove lib/isnanf.h.
25284         (Depends-on): Add math.
25285         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25286         (Include): Specify <math.h> instead of isnanf.h.
25287         * modules/isnand (Files): Remove lib/isnand.h.
25288         (Depends-on): Add math.
25289         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25290         (Include): Specify <math.h> instead of isnand.h.
25291         * modules/isnanl (Files): Remove lib/isnanl.h.
25292         (Depends-on): Add math.
25293         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25294         (Include): Specify <math.h> instead of isnanl.h.
25295         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25296         HAVE_ISNAN[FDL].
25297         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25298         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25299         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25300         * NEWS: Mention the change.
25301
25302 2008-10-18  Bruno Haible  <bruno@clisp.org>
25303
25304         Add getusershell(), setusershell(), endusershell() declarations to
25305         <unistd.h>.
25306         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25307         declarations.
25308         * lib/getusershell.c: Include unistd.h.
25309         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25310         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25311         HAVE_GETUSERSHELL.
25312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25313         and HAVE_GETUSERSHELL.
25314         * modules/getusershell (Depends-on): Add unistd, extensions.
25315         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25316         (Include): Specify <unistd.h>.
25317         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25318         HAVE_GETUSERSHELL.
25319
25320 2008-10-18  Bruno Haible  <bruno@clisp.org>
25321
25322         Add a getloadavg() declaration to <stdlib.h>.
25323         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25324         getloadavg declaration.
25325         (getloadavg): New declaration.
25326         * lib/getloadavg.c: Include <stdlib.h> first.
25327         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25328         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25329         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25331         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25332         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25334         (Include): Specify <stdlib.h>.
25335         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25336         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25337
25338 2008-10-18  Bruno Haible  <bruno@clisp.org>
25339
25340         * lib/dirchownmod.c: Don't include lchmod.h.
25341
25342         Move the lchmod() declaration to <sys/stat.h>.
25343         * lib/lchmod.h: Remove file.
25344         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25345         (lchmod): New declaration, moved here from lib/lchown.h.
25346         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25347         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25349         and HAVE_LCHMOD.
25350         * modules/lchmod (Files): Remove lib/lchmod.h.
25351         (Depends-on): Add sys_stat, extensions.
25352         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25353         (Include): Specify <sys/stat.h> instead of lchmod.h.
25354         * modules/sys_stat (Depends-on): Add link-warning.
25355         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25356         definition of GL_LINK_WARNING.
25357         * NEWS: Mention the change.
25358
25359 2008-10-18  Bruno Haible  <bruno@clisp.org>
25360
25361         * lib/fchdir.c: Don't include dirfd.h.
25362         * lib/fts.c: Likewise.
25363         * lib/getcwd.c: Likewise.
25364         * lib/glob.c: Likewise.
25365
25366         Move the dirfd() declaration to <dirent.h>.
25367         * lib/dirfd.h: Remove file.
25368         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25369         (dirfd): New declaration.
25370         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25371         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25372         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25373         HAVE_DECL_DIRFD.
25374         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25375         HAVE_DECL_DIRFD.
25376         * modules/dirfd (Files): Remove lib/dirfd.h.
25377         (Depends-on): Add dirent, extensions.
25378         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25379         (Include): Specify <dirent.h> instead of dirfd.h.
25380         * modules/dirent (Depends-on): Add link-warning.
25381         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25382         definition of GL_LINK_WARNING.
25383         * NEWS: Mention the change.
25384
25385 2008-10-18  Bruno Haible  <bruno@clisp.org>
25386
25387         Move the euidaccess() declaration to <unistd.h>.
25388         * lib/euidaccess.h: Remove file.
25389         * lib/unistd.in.h (euidaccess): New declaration.
25390         * lib/euidaccess.c: Don't include euidaccess.h.
25391         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25392         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25394         and HAVE_EUIDACCESS.
25395         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25396         (Depends-on): Add unistd.
25397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25398         (Include): Specify <unistd.h> instead of euidaccess.h.
25399         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25400         HAVE_EUIDACCESS.
25401         * NEWS: Mention the change.
25402
25403 2008-10-18  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25406
25407         Move the getdomainname() declaration to <unistd.h>.
25408         * lib/getdomainname.h: Remove file.
25409         * lib/unistd.in.h (getdomainname): New declaration.
25410         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25411         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25412         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25413         HAVE_GETDOMAINNAME.
25414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25415         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25416         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25417         (Depends-on): Add unistd, extensions.
25418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25419         (Includes): Specify <unistd.h> instead of getdomainname.h.
25420         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25421         HAVE_GETDOMAINNAME.
25422         * NEWS: Mention the change.
25423
25424 2008-10-18  Bruno Haible  <bruno@clisp.org>
25425
25426         * modules/dirent: New file.
25427         * m4/dirent_h.m4: New file.
25428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25429         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25430         * modules/fchdir (Files): Remove lib/dirent.in.h.
25431         (Depends-on): Add dirent.
25432         (Makefile.am): Move rules to modules/dirent.
25433         * doc/posix-headers/dirent.texi: Mention the new module.
25434
25435 2008-10-18  Bruno Haible  <bruno@clisp.org>
25436
25437         Avoid -Wunused-parameter warnings in public gnulib header files.
25438         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25439         macro.
25440         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25441
25442 2008-10-18  Bruno Haible  <bruno@clisp.org>
25443
25444         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25445         * doc/glibc-functions/error.texi: Mention the module 'error'.
25446         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25447         * doc/glibc-functions/getdomainname.texi: Mention the module
25448         'getdomainname'.
25449         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25450         * doc/glibc-functions/getpagesize.texi: Mention the module
25451         'getpagesize'.
25452         * doc/glibc-functions/getusershell.texi: Mention the module
25453         'getusershell'.
25454         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25455         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25456         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25457         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25458         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25459         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25460         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25461         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25462         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25463         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25464         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25465         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25466         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25467         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25468
25469 2008-10-17  Bruno Haible  <bruno@clisp.org>
25470
25471         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25472         HP-UX and IRIX, use -0.0L.
25473         * tests/test-ceill.c (minus_zero): Likewise.
25474         * tests/test-floorl.c (minus_zero): Likewise.
25475         * tests/test-frexpl.c (minus_zero): Likewise.
25476         * tests/test-isnan.c (minus_zerol): Likewise.
25477         * tests/test-isnanl.h (minus_zero): Likewise.
25478         * tests/test-ldexpl.c (minus_zero): Likewise.
25479         * tests/test-roundl.c (minus_zero): Likewise.
25480         * tests/test-signbit.c (minus_zerol): Likewise.
25481         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25482         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25483         * tests/test-truncl.c (minus_zero): Likewise.
25484         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25485         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25486         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25487         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25488
25489 2008-10-17  Bruno Haible  <bruno@clisp.org>
25490
25491         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25492         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25493         that it gets activated only for gcc >= 3.0.
25494         * lib/dirent.in.h: Likewise.
25495         * lib/errno.in.h: Likewise.
25496         * lib/fcntl.in.h: Likewise.
25497         * lib/float.in.h: Likewise.
25498         * lib/iconv.in.h: Likewise.
25499         * lib/inttypes.in.h: Likewise.
25500         * lib/locale.in.h: Likewise.
25501         * lib/math.in.h: Likewise.
25502         * lib/netdb.in.h: Likewise.
25503         * lib/netinet_in.in.h: Likewise.
25504         * lib/search.in.h: Likewise.
25505         * lib/signal.in.h: Likewise.
25506         * lib/spawn.in.h: Likewise.
25507         * lib/stdarg.in.h: Likewise.
25508         * lib/stdint.in.h: Likewise.
25509         * lib/stdio.in.h: Likewise.
25510         * lib/stdlib.in.h: Likewise.
25511         * lib/string.in.h: Likewise.
25512         * lib/strings.in.h: Likewise.
25513         * lib/sys_file.in.h: Likewise.
25514         * lib/sys_ioctl.in.h: Likewise.
25515         * lib/sys_select.in.h: Likewise.
25516         * lib/sys_socket.in.h: Likewise.
25517         * lib/sys_stat.in.h: Likewise.
25518         * lib/sys_time.in.h: Likewise.
25519         * lib/sysexits.in.h: Likewise.
25520         * lib/time.in.h: Likewise.
25521         * lib/unistd.in.h: Likewise.
25522         * lib/wchar.in.h: Likewise.
25523         * lib/wctype.in.h: Likewise.
25524         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25525
25526 2008-10-17  Jim Meyering  <meyering@redhat.com>
25527
25528         ignore-value: don't depend on inline module
25529         * modules/ignore-value (Depends-on): Remove 'inline'.
25530         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25531         Suggestion from Bruno Haible.
25532
25533 2008-10-17  Bruno Haible  <bruno@clisp.org>
25534
25535         New implementation of condition variables for Win32.
25536         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25537         (gl_linked_waitqueue_t): New type.
25538         (gl_cond_t): Use it.
25539         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25540         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25541         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25542         (glthread_cond_init_func, glthread_cond_wait_func,
25543         glthread_cond_timedwait_func, glthread_cond_signal_func,
25544         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25545         Reimplemented on the basis of gl_linked_waitqueue_t.
25546         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25547         gl_waitqueue_t.
25548         (gl_rwlock_t): Update.
25549         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25550
25551 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25552
25553         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25554         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25555
25556 2008-10-17  Jim Meyering  <meyering@redhat.com>
25557
25558         ignore-value: new module
25559         * modules/ignore-value: New file.
25560         * lib/ignore-value.h: New file.
25561         * MODULES.html.sh (Compiler warning management): New section,
25562         just for this module.  More to come.
25563
25564 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25565
25566         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25567         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25568         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25569
25570 2008-10-16  Jim Meyering  <meyering@redhat.com>
25571
25572         openat-die.c: avoid 'no previous prototype' warning
25573         * lib/openat-die.c: Include "openat.h".
25574         Reported by Reuben Thomas <rrt@sc3d.org>.
25575
25576 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25577
25578         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25579         * lib/netdb.in.h: Fix typo.
25580         Reported by Bruno Haible  <bruno@clisp.org>
25581
25582         * lib/netdb.in.h: Include sys/socket.h for platforms without
25583         netdb.h, to get structures like hostent on MinGW.
25584         * modules/netdb (Depends-on): Add sys_socket.
25585
25586 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25587
25588         * modules/netdb, modules/netdb-tests: New file.
25589         * m4/netdb_h.m4: New file.
25590         * lib/netdb.in.h: Add, currently just an empty file pending
25591         definitions.
25592         * tests/test-netdb.c: New file.
25593         * doc/posix-headers/netdb.texi: Mention that we replace it if
25594         needed.
25595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25596         netdb.
25597
25598 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25599
25600         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25601         with code.
25602
25603 2008-10-13  Bruno Haible  <bruno@clisp.org>
25604
25605         * lib/glthread/cond.c (glthread_cond_wait_func,
25606         glthread_cond_timedwait_func): Add a comment.
25607
25608 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25609
25610         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25611         * tests/test-select.c: Likewise,
25612
25613 2008-10-13  Bruno Haible  <bruno@clisp.org>
25614
25615         * lib/glthread/cond.c (glthread_cond_wait_func,
25616         glthread_cond_timedwait_func): Fix variable name.
25617         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25618
25619 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25620
25621         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25622         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25623         struct sockaddr.sa_len.
25624         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25625
25626 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25627
25628         * build-aux/pmccabe2html: Add css and css_url parameters.
25629
25630 2008-10-12  Bruno Haible  <bruno@clisp.org>
25631
25632         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25633         calling aclx_get.
25634         Reported by Rainer Tammer <tammer@tammer.net>.
25635
25636 2008-10-12  Bruno Haible  <bruno@clisp.org>
25637
25638         Use msvcrt aware primitives for creation/termination of Win32 threads.
25639         * lib/glthread/thread.c: Include <process.h>.
25640         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25641         (wrapper_func): Update signature.
25642         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25643
25644 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25645             Bruno Haible  <bruno@clisp.org>
25646
25647         Provide a Win32 implementation of the 'cond' module.
25648         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25649         * lib/glthread/cond.c (glthread_cond_init_func,
25650         glthread_cond_wait_func, glthread_cond_timedwait_func,
25651         glthread_cond_signal_func, glthread_cond_broadcast_func,
25652         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25653         * modules/cond (Dependencies): Add gettimeofday.
25654
25655 2008-10-11  Bruno Haible  <bruno@clisp.org>
25656
25657         Make sleep work on older versions of mingw.
25658         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25659         only whether it exists.
25660         * doc/posix-functions/sleep.texi: Mention the problem with older
25661         versions of mingw.
25662
25663 2008-10-11  Bruno Haible  <bruno@clisp.org>
25664
25665         New module 'shutdown'.
25666         * modules/shutdown: New file.
25667         * lib/sys_socket.in.h (shutdown): New declaration.
25668         * lib/winsock.c (shutdown): New function.
25669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25670         GNULIB_SHUTDOWN.
25671         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25672         * doc/posix-functions/shutdown.texi: Document the new module.
25673
25674 2008-10-11  Jim Meyering  <meyering@redhat.com>
25675
25676         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25677
25678 2008-10-11  Bruno Haible  <bruno@clisp.org>
25679
25680         New module 'fclose'.
25681         * modules/fclose: New file.
25682         * lib/stdio.in.h (fclose): New declaration.
25683         * lib/fclose.c: New file.
25684         * m4/fclose.m4: New file.
25685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25686         REPLACE_FCLOSE.
25687         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25688         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25689         REPLACE_FCLOSE.
25690         * modules/close (Depends-on): fclose.
25691         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25692
25693 2008-10-11  Bruno Haible  <bruno@clisp.org>
25694
25695         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25696         set errno and don't call _close.
25697
25698 2008-10-10  Bruno Haible  <bruno@clisp.org>
25699
25700         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25701         ACL, not afterwards. Fixes test failure on Cygwin.
25702
25703 2008-10-09  Ben Pfaff  <blp@gnu.org>
25704
25705         * build-aux/announce-gen: Fix gnulib version related part of usage
25706         message.  Die with a useful error message if no tarballs are
25707         found.
25708
25709 2008-10-10  Jim Meyering  <meyering@redhat.com>
25710
25711         bootstrap: use git's --depth=N option only if it's supported
25712         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25713         recognize the --depth option.  Reported by Pádraig Brady.
25714
25715 2008-10-09  Bruno Haible  <bruno@clisp.org>
25716
25717         New module 'ioctl'.
25718         * modules/ioctl: New file.
25719         * lib/sys_socket.in.h (ioctl): Remove declaration.
25720         * lib/winsock.c: Include <sys/ioctl.h>.
25721         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25722         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25723         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25724         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25725         * doc/posix-functions/ioctl.texi: Mention the new module.
25726
25727 2008-10-09  Bruno Haible  <bruno@clisp.org>
25728
25729         New module 'sys_ioctl'.
25730         * lib/sys_ioctl.in.h: New file.
25731         * m4/sys_ioctl_h.m4: New file.
25732         * modules/sys_ioctl: New file.
25733         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25734
25735 2008-10-09  Bruno Haible  <bruno@clisp.org>
25736
25737         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25738         * lib/winsock.c: Include <stdarg.h>.
25739         (rpl_ioctl): Change to second argument 'int' and then varargs.
25740
25741 2008-10-09  Bruno Haible  <bruno@clisp.org>
25742
25743         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25744         when the sys_socket module is present and the system has <winsock2.h>.
25745
25746 2008-10-09  Bruno Haible  <bruno@clisp.org>
25747
25748         * doc/posix-functions/close.texi: Mention module 'close' instead of
25749         module 'sys_socket'.
25750
25751 2008-10-09  Bruno Haible  <bruno@clisp.org>
25752
25753         * doc/glibc-headers/sys_ioctl.texi: New file.
25754         * doc/gnulib.texi: Include it.
25755
25756 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25757             Bruno Haible  <bruno@clisp.org>
25758
25759         Combine the two replacements of 'close'.
25760         * lib/sys_socket.in.h (close): Define to a reminder to include
25761         <unistd.h>.
25762         (_gl_close_fd_maybe_socket): New declaration.
25763         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25764         * lib/winsock.c (close): Remove undefinition.
25765         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25766         needed for the gnulib module 'close'.
25767         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25768         define to an error symbol or to a warning, if suitable.
25769         * lib/close.c: Include <sys/socket.h>.
25770         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25771         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25772         UNISTD_H_HAVE_WINSOCK2_H.
25773         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25775         UNISTD_H_HAVE_WINSOCK2_H.
25776         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25777         (configure.ac): Set a module indicator.
25778         (Makefile.am): Substitute GNULIB_CLOSE.
25779         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25780         * modules/poll-tests (Depends-on): Add close.
25781         * modules/select-tests (Depends-on): Likewise.
25782
25783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25784             Bruno Haible  <bruno@clisp.org>
25785
25786         New module 'close'.
25787         * modules/close: New file.
25788         * lib/unistd.in.h (close): Move declaration out of the
25789         FCHDIR_REPLACEMENT scope.
25790         (_gl_unregister_fd): New declaration.
25791         * lib/close.c: New file.
25792         * lib/fchdir.c (rpl_close): Remove function.
25793         * m4/close.m4: New file.
25794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25795         close.
25796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25797         REPLACE_CLOSE.
25798         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25799         REPLACE_CLOSE.
25800         * modules/fchdir (Depends-on): Add close.
25801
25802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25803             Bruno Haible  <bruno@clisp.org>
25804
25805         * lib/fcntl.in.h (open): Simplify conditionals.
25806         (_gl_register_fd): New declaration.
25807         * lib/fchdir.c (rpl_open): Remove function.
25808         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25809         also.
25810         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25812         open.
25813
25814 2008-10-09  Jim Meyering  <meyering@redhat.com>
25815
25816         GNUmakefile: use the more name-space-friendly "_version"
25817         * top/GNUmakefile (_dummy): Update.
25818         (_version): Rename from "version".
25819
25820 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25821             Bruno Haible  <bruno@clisp.org>
25822
25823         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25824         rpl_close.
25825         (_gl_register_fd): New function, extracted from rpl_open.
25826         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25827         (rpl_open, rpl_opendir): Use _gl_register_fd.
25828
25829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25830
25831         Fix organization of 'open' replacement.
25832         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25833         (gl_FUNC_OPEN): Use it.
25834         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25835
25836 2008-10-08  Bruno Haible  <bruno@clisp.org>
25837
25838         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25839
25840 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25841
25842         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25843         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25844         listen).
25845
25846 2008-10-08  Eric Blake  <ebb9@byu.net>
25847
25848         GNUmakefile: add 'make version' target
25849         * top/GNUmakefile (_curr-ver): Split version update rules...
25850         (version): ...into a target.
25851
25852 2008-10-07  Bruno Haible  <bruno@clisp.org>
25853
25854         Use a more portable replacement expression for -0.0L.
25855         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25856         instead of -0.0L. Fix m4 quotation.
25857
25858         * tests/test-signbit.c: Include <float.h>.
25859         (minus_zero): New variable.
25860         (test_signbitl): Use minus_zero instead of -zero.
25861         * modules/signbit-tests (Depends-on): Add float.
25862
25863         * tests/test-ceill.c: Include <float.h>.
25864         (zero): Remove variable.
25865         (minus_zero): New variable.
25866         (main): Use minus_zero instead of -zero.
25867         * modules/ceill-tests (Depends-on): Add float.
25868
25869         * tests/test-floorl.c: Include <float.h>.
25870         (zero): Remove variable.
25871         (minus_zero): New variable.
25872         (main): Use minus_zero instead of -zero.
25873         * modules/floorl-tests (Depends-on): Add float.
25874
25875         * tests/test-roundl.c: Include <float.h>.
25876         (zero): Remove variable.
25877         (minus_zero): New variable.
25878         (main): Use minus_zero instead of -zero.
25879         * modules/roundl-tests (Depends-on): Add float.
25880
25881         * tests/test-truncl.c: Include <float.h>.
25882         (zero): Remove variable.
25883         (minus_zero): New variable.
25884         (main): Use minus_zero instead of -zero.
25885         * modules/truncl-tests (Depends-on): Add float.
25886
25887         * tests/test-frexpl.c (zero): Remove variable.
25888         (minus_zero): New variable.
25889         (main): Use minus_zero instead of -zero.
25890         * modules/frexpl-tests (Depends-on): Add float.
25891
25892         * tests/test-isnan.c (zerol): Remove variable.
25893         (minus_zerol): New variable.
25894         (test_long_double): Use minus_zerol instead of -zerol.
25895         * modules/isnan-tests (Depends-on): Add float.
25896
25897         * tests/test-isnanl.h (zero): Remove variable.
25898         (minus_zero): New variable.
25899         (main): Use minus_zero instead of -zero.
25900         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25901         * modules/isnanl-tests (Depends-on): Add float.
25902
25903         * tests/test-ldexpl.c (zero): Remove variable.
25904         (minus_zero): New variable.
25905         (main): Use minus_zero instead of -zero.
25906         * modules/ldexpl-tests (Depends-on): Add float.
25907
25908         * tests/test-snprintf-posix.h (zerol): Remove variable.
25909         (minus_zerol): New variable.
25910         (test_function): Use minus_zerol instead of -zerol.
25911         * modules/snprintf-posix-tests (Depends-on): Add float.
25912         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25913
25914         * tests/test-sprintf-posix.h (zerol): Remove variable.
25915         (minus_zerol): New variable.
25916         (test_function): Use minus_zerol instead of -zerol.
25917         * modules/sprintf-posix-tests (Depends-on): Add float.
25918         * modules/vsprintf-posix-tests (Depends-on): Add float.
25919
25920         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25921         (minus_zerol): New variable.
25922         (test_function): Use minus_zerol instead of -zerol.
25923         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25924
25925         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25926         (minus_zerol): New variable.
25927         (test_function): Use minus_zerol instead of -zerol.
25928         * modules/vasprintf-posix-tests (Depends-on): Add float.
25929
25930 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25931
25932         * MODULES.html.sh (Support for building documentation): Mention
25933         pmccabe2html.  Sort entries.
25934
25935         Add pmccabe2html module, from gnupdf.
25936         * build-aux/pmccabe.css: New file.
25937         * build-aux/pmccabe2html: New file.
25938         * m4/pmccabe2html.m4: New file.
25939         * modules/pmccabe2html: New file.
25940
25941 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25942
25943         flock: new module
25944         * MODULES.html.sh: Add to list of modules.
25945         * lib/flock.c: flock implementation for Windows and Unix systems
25946         which have fcntl.
25947         * doc/glibc-functions/flock.texi: Update documentation.
25948         * lib/sys_file.in.h: <sys/file.h> header file.
25949         * m4/flock.m4: M4 macros.
25950         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25951         * modules/flock: flock module.
25952         * modules/flock-tests: flock tests module.
25953         * modules/sys_file: sys/file.h module.
25954         * tests/test-flock.c: test suite for flock.
25955
25956 2008-10-06  Jim Meyering  <meyering@redhat.com>
25957
25958         bootstrap: check for LT_INIT more portably still ;-)
25959         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
25960         Spotted by Bruno Haible.
25961
25962 2008-10-06  Eric Blake  <ebb9@byu.net>
25963
25964         test-signbit: avoid tripping Irix cc bug on -0.0L
25965         * tests/test-signbit.c (minus_zerol): Delete, and replace with
25966         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
25967         entire testsuite consistent and avoids an Irix 6.2 bug.
25968
25969 2008-10-05  Bruno Haible  <bruno@clisp.org>
25970             Jim Meyering  <jim@meyering.net>
25971
25972         Add an option for ignoring EPIPE during close_stdout.
25973         * lib/closeout.h: Include <stdbool.h>.
25974         (close_stdout_set_ignore_EPIPE): New declaration.
25975         * lib/closeout.c: Include <stdbool.h>.
25976         (ignore_EPIPE): New variable.
25977         (close_stdout_set_ignore_EPIPE): New function.
25978         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
25979         * lib/close-stream.c (close_stream): Mention the possible EPIPE
25980         failure.
25981         * modules/closeout (Depends-on): Add stdbool.
25982
25983 2008-10-05  Bruno Haible  <bruno@clisp.org>
25984
25985         * modules/accept: New file.
25986         * modules/bind: New file.
25987         * modules/connect: New file.
25988         * modules/getpeername: New file.
25989         * modules/getsockname: New file.
25990         * modules/getsockopt: New file.
25991         * modules/listen: New file.
25992         * modules/recv: New file.
25993         * modules/recvfrom: New file.
25994         * modules/send: New file.
25995         * modules/sendto: New file.
25996         * modules/setsockopt: New file.
25997         * modules/socket: New file.
25998         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
25999         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26000         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26001         the particular module is requested. Add a link warning when the
26002         particular module is not requested.
26003         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26004         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26005         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26006         the particular module is requested.
26007         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26008         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26009         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26010         * modules/sys_socket (Depends-on): Add link-warning.
26011         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26012         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26013         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26014         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26015         GL_LINK_WARNING.
26016         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26017         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26018         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26019         * doc/posix-functions/getpeername.texi: Mention the new module
26020         'getpeername'.
26021         * doc/posix-functions/getsockname.texi: Mention the new module
26022         'getsockname'.
26023         * doc/posix-functions/getsockopt.texi: Mention the new module
26024         'getsockopt'.
26025         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26026         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26027         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26028         * doc/posix-functions/send.texi: Mention the new module 'send'.
26029         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26030         * doc/posix-functions/setsockopt.texi: Mention the new module
26031         'setsockopt'.
26032         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26033         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26034         listen, connect, accept.
26035         * modules/select-tests (Depends-on): Likewise.
26036
26037 2008-10-05  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/winsock.c (strerror): Remove unused #undef.
26040         (rpl_close): Remove unused local variable.
26041
26042         * modules/sys_socket (Depends-on); Add errno.
26043
26044 2008-10-05  Bruno Haible  <bruno@clisp.org>
26045
26046         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26047         (select): Add a link warning when the 'select' module is not used.
26048         * modules/sys_select (Depends-on): Add link-warning.
26049         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26050         Suggested by Paolo Bonzini.
26051
26052 2008-10-05  Jim Meyering  <meyering@redhat.com>
26053
26054         bootstrap: check for LT_INIT more portably
26055         * build-aux/bootstrap: Avoid using grep -E, since it's not
26056         portable enough.  Suggestion from Bruno Haible.
26057
26058 2008-10-05  Bruno Haible  <bruno@clisp.org>
26059
26060         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26061         as being fixed by gnulib.
26062
26063 2008-10-05  Bruno Haible  <bruno@clisp.org>
26064
26065         * modules/select-tests: New file, mostly copied from
26066         modules/sys_select-tests.
26067         * tests/test-select.c: New file, mostly copied from
26068         tests/test-sys_select.c.
26069         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26070         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26071         (Makefile.am): Remove test_sys_select_LDADD.
26072
26073         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26074         to an undefined symbol, for an error message.
26075         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26076         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26077         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26078         winsock-select.c here.
26079         * modules/sys_select (Files): Remove lib/winsock-select.c.
26080         (Depends-on): Remove alloca.
26081         (Makefile.am): Substitute GNULIB_SELECT.
26082         * modules/select: New file.
26083         * doc/posix-functions/select.texi: Update.
26084
26085 2008-10-05  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26088         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26089         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26090         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26091         getdtablesize.
26092         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26093         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26094
26095 2008-10-05  Bruno Haible  <bruno@clisp.org>
26096
26097         * modules/getdtablesize-tests: New file.
26098         * tests/test-getdtablesize.c: New file.
26099
26100         New module 'getdtablesize'.
26101         * lib/unistd.in.h (getdtablesize): New declaration.
26102         * lib/getdtablesize.c: New file.
26103         * m4/getdtablesize.m4: New file.
26104         * modules/getdtablesize: New file.
26105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26106         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26107         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26108         HAVE_GETDTABLESIZE.
26109         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26110
26111 2008-10-05  Bruno Haible  <bruno@clisp.org>
26112
26113         * modules/sched (Makefile.am): Fix typo.
26114         Reported by Simon Josefsson.
26115
26116 2008-10-05  Jim Meyering  <meyering@redhat.com>
26117
26118         bootstrap: check for LT_INIT, too
26119         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26120         are deprecated.  Suggestion from Ralf Wildenhues.
26121
26122 2008-10-05  Bruno Haible  <bruno@clisp.org>
26123
26124         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26125         overriding them by ours.
26126         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26127
26128 2008-10-05  Jim Meyering  <meyering@redhat.com>
26129
26130         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26131         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26132         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26133
26134 2008-10-04  Bruno Haible  <bruno@clisp.org>
26135
26136         * modules/dup2 (License): Change to LGPLv2+.
26137         * modules/sleep (License): Likewise.
26138         * modules/perror (License): Likewise.
26139         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26140         Blake.
26141         * modules/signal (License): Likewise.
26142         * modules/sigprocmask (License): Likewise.
26143         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26144         Meyering.
26145
26146 2008-10-04  Bruno Haible  <bruno@clisp.org>
26147
26148         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26149         Reported by Rainer Tammer <tammer@tammer.net>.
26150
26151 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26152             Bruno Haible  <bruno@clisp.org>
26153
26154         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26155         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26156         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26157
26158 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26159
26160         filevercmp: new module
26161         * lib/filevercmp.h: New function filevercmp comparing version strings.
26162         * lib/filevercmp.c: Implementation of filevercmp function.
26163         * modules/filevercmp: Module metadata.
26164         * tests/test-filevercmp.c: Unit test for new module.
26165         * modules/filevercmp-tests: Unit test metadata.
26166         * MODULES.html.sh: Add filevercmp module.
26167
26168 2008-10-03  Bruno Haible  <bruno@clisp.org>
26169
26170         * lib/c-ctype.h: Add comment.
26171         Reported by Jim Meyering.
26172
26173 2008-10-02  Bruno Haible  <bruno@clisp.org>
26174
26175         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26176
26177 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26178
26179         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26180         name of bootstrap.conf accordingly.
26181
26182 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26183
26184         * build-aux/bootstrap: Install git-merge-changelog configuration
26185         items into .gitconfig if needed.
26186
26187 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26188
26189         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26190         git repository, and initialize/update it accordingly.
26191
26192 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26193
26194         * modules/fsync-tests: New file.
26195         * tests/test-fsync.c: New file.
26196
26197         New module 'fsync'.
26198         * lib/fsync.c: New file.
26199         * m4/fsync.m4: New file.
26200         * modules/fsync: New file.
26201         * lib/unistd.in.h (fsync): New declaration.
26202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26203         GNULIB_FSYNC and HAVE_FSYNC.
26204         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26205         * MODULES.html.sh (posix_functions): Add fsync.
26206         * doc/posix-functions/fsync.texi: Mention the new module.
26207
26208 2008-10-02  Jim Meyering  <meyering@redhat.com>
26209
26210         fts.c: sync with similar code from coreutils' remove.c
26211         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26212         Guard also with "#if defined __linux__", since for now at least,
26213         this code is Linux-kernel-specific.
26214
26215 2008-10-02  Jim Meyering  <meyering@redhat.com>
26216
26217         fts: bug fixes
26218         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26219         Include <sys/vfs.h>, not <sys/statfs.h>.
26220
26221         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26222         Include <sys/vfs.h>, not <sys/statfs.h>.
26223
26224 2008-10-01  Bruno Haible  <bruno@clisp.org>
26225
26226         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26228         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26229         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26230         * doc/posix-functions/posix_spawnp.texi: Likewise.
26231         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26232         whether posix_spawn actually works.
26233         * m4/pipe.m4 (gl_PIPE): Likewise.
26234         * modules/execute (Files): Add m4/posix_spawn.m4.
26235         * modules/pipe (Files): Add m4/posix_spawn.m4.
26236         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26237
26238 2008-10-01  Jim Meyering  <meyering@redhat.com>
26239
26240         remove trailing spaces
26241         * NEWS: Likewise.
26242         * lib/poll.c (poll): Likewise.
26243         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26244         * lib/winsock.c (rpl_close): Likewise.
26245         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26246         * modules/yield: Likewise.
26247         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26248         * tests/test-sys_select.c (connect_to_socket): Likewise.
26249
26250         fts.c: adjust a new interface to be more generally useful
26251         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26252         (fts_build): Adjust caller.
26253
26254 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26255
26256         * modules/cond-tests: New file.
26257         * tests/test-cond.c: New file.
26258
26259 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26260             Bruno Haible  <bruno@clisp.org>
26261
26262         * modules/cond (Dependencies): Add errno, time.
26263         * lib/glthread/cond.h: Include <time.h>.
26264         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26265         across platforms.
26266
26267 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26268             Bruno Haible  <bruno@clisp.org>
26269
26270         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26271
26272 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26273             Bruno Haible  <bruno@clisp.org>
26274
26275         * modules/tls-tests (Depends-on): Add thread, yield.
26276         (configure.ac): Remove all checks.
26277         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26278         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26279         gl_thread_self): Remove definitions. Include glthread/thread.h and
26280         glthread/yield.h instead.
26281         (test_tls): Pass an additional NULL argument to gl_thread_join.
26282
26283 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26284             Bruno Haible  <bruno@clisp.org>
26285
26286         * modules/lock-tests (Depends-on): Add thread, yield.
26287         (configure.ac): Remove all checks.
26288         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26289         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26290         gl_thread_self): Remove definitions. Include glthread/thread.h and
26291         glthread/yield.h instead.
26292         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26293         additional NULL argument to gl_thread_join.
26294
26295 2008-09-30  Bruno Haible  <bruno@clisp.org>
26296
26297         Fix the Win32 implementation of the 'thread' module.
26298         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26299         pointer type.
26300         (gl_thread_self): Invoke gl_thread_self_func.
26301         (gl_thread_self_func): New declaration.
26302         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26303         (do_init_self_key, init_self_key): New functions.
26304         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26305         Remove some fields.
26306         (running_threads, running_lock): Remove variables.
26307         (get_current_thread_handle): New function.
26308         (gl_thread_self_func, wrapper_func, glthread_create_func,
26309         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26310         simplified.
26311
26312 2008-09-30  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26315         files.
26316
26317 2008-09-30  Jim Meyering  <meyering@redhat.com>
26318
26319         fts.m4: correct the test for statfs.f_type
26320         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26321         when checking for statfs.f_type.
26322
26323 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26324
26325         tests: avoid some compiler warnings
26326         * tests/test-memchr.c (main): Pass NULL indirectly.
26327         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26328
26329 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26330
26331         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26332         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26333         exactly specified dayshifts.
26334         (dayshift): New rule.
26335         (rel): Add dayshift.
26336         (relative_time_table) [tomorrow, yesterday, today, now]:
26337         Use tDAY_SHIFT in place of tDAY_UNIT.
26338         * tests/test-getdate.c: Add tests for now-disallowed countable
26339         dayshifts, e.g., "4 yesterday ago".
26340
26341 2008-09-29  Bruno Haible  <bruno@clisp.org>
26342
26343         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26344         * tests/test-posix_spawn1.in.sh: Renamed from
26345         tests/test-posix_spawn.in.sh.
26346         * tests/test-posix_spawn2.c: New file.
26347         * tests/test-posix_spawn2.in.sh: New file.
26348         * modules/posix_spawnp-tests (Files): Update.
26349         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26350
26351 2008-09-29  Bruno Haible  <bruno@clisp.org>
26352
26353         Propagate effects of putenv/setenv/unsetenv to child processes.
26354         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26355         * lib/pipe.c (create_pipe): Likewise.
26356
26357 2008-09-29  Bruno Haible  <bruno@clisp.org>
26358
26359         Enable use of shell scripts as executables in mingw.
26360         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26361         run the program as a shell script.
26362         * lib/pipe.c (create_pipe): Likewise.
26363         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26364         resulting array.
26365
26366 2008-09-29  Eric Blake  <ebb9@byu.net>
26367
26368         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26369
26370 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26371
26372         * doc/posix-functions/accept.texi: Update mingw problems.
26373         * doc/posix-functions/bind.texi: Update mingw problems.
26374         * doc/posix-functions/close.texi: Update mingw problems.
26375         * doc/posix-functions/connect.texi: Update mingw problems.
26376         * doc/posix-functions/getpeername.texi: Update mingw problems.
26377         * doc/posix-functions/getsockname.texi: Update mingw problems.
26378         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26379         * doc/posix-functions/ioctl.texi: Update mingw problems.
26380         * doc/posix-functions/listen.texi: Update mingw problems.
26381         * doc/posix-functions/recv.texi: Update mingw problems.
26382         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26383         * doc/posix-functions/select.texi: Update mingw problems.
26384         * doc/posix-functions/send.texi: Update mingw problems.
26385         * doc/posix-functions/sendto.texi: Update mingw problems.
26386         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26387         * doc/posix-functions/socket.texi: Update mingw problems.
26388
26389 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26390             Bruno Haible  <bruno@clisp.org>
26391
26392         * lib/sys_select.in.h: Include sys/time.h.
26393         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26394         * modules/sys_select: Depend on sys_time.
26395         * tests/test-sys_select.c: Test that sys/select.h defines struct
26396         timeval fully.
26397
26398 2008-09-29  Bruno Haible  <bruno@clisp.org>
26399
26400         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26401         * lib/sys_select.in.h: Likewise.
26402
26403 2008-09-29  Bruno Haible  <bruno@clisp.org>
26404
26405         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26406
26407 2008-09-29  Bruno Haible  <bruno@clisp.org>
26408
26409         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26410         Set LIBSOCKET instead of augmenting LIBS.
26411         * modules/sockets (Link): New section.
26412         * modules/sockets-tests (test_sockets_LDADD): New variable.
26413         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26414         * modules/poll-tests (test_poll_LDADD): New variable.
26415         * NEWS: Document the change.
26416
26417 2008-09-29  Bruno Haible  <bruno@clisp.org>
26418
26419         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26420         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26421         ARPA_INET_H directly.
26422         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26423
26424 2008-09-28  Bruno Haible  <bruno@clisp.org>
26425
26426         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26427         from gl_HEADER_SYS_SOCKET.
26428         (gl_HEADER_SYS_SOCKET): Invoke it.
26429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26430
26431 2008-09-28  Bruno Haible  <bruno@clisp.org>
26432
26433         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26434         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26435         Needed on OSF/1 4.0.
26436
26437 2008-09-28  Bruno Haible  <bruno@clisp.org>
26438
26439         Override open more carefully.
26440         * lib/open.c (orig_open): New function.
26441         (rpl_open): Use orig_open instead of open.
26442         * lib/fcntl.in.h: Add special invocation convention.
26443         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26444         (gl_FUNC_OPEN): Invoke it.
26445
26446         Override freopen more carefully.
26447         * lib/freopen.c (orig_freopen): New function.
26448         (rpl_freopen): Use orig_freopen instead of freopen.
26449         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26450         (gl_FUNC_FREOPEN): Invoke it.
26451
26452         Override fopen more carefully.
26453         * lib/fopen.c (orig_fopen): New function.
26454         (rpl_fopen): Use orig_fopen instead of fopen.
26455         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26456         (gl_FUNC_FOPEN): Invoke it.
26457         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26458
26459 2008-09-28  Bruno Haible  <bruno@clisp.org>
26460
26461         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26462         SIGPIPE.
26463
26464 2008-09-28  Bruno Haible  <bruno@clisp.org>
26465
26466         * tests/test-sigaction.c (handler, main): Disable the check whether
26467         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26468         glibc systems with LinuxThreads.
26469
26470 2008-09-28  Bruno Haible  <bruno@clisp.org>
26471
26472         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26473
26474         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26475         with AIX xlc.
26476         * lib/fcntl.in.h (open): Likewise.
26477         Reported by Rainer Tammer <tammer@tammer.net>.
26478
26479 2008-09-28  Bruno Haible  <bruno@clisp.org>
26480
26481         * modules/posix_spawnp-tests: New file.
26482         * tests/test-posix_spawn.c: New file.
26483         * tests/test-posix_spawn.in.sh: New file.
26484
26485         New module 'posix_spawnp'.
26486         * modules/posix_spawnp: New file.
26487         * lib/spawnp.c: New file, from GNU libc with modifications.
26488         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26489
26490         New module 'posix_spawn'.
26491         * modules/posix_spawn: New file.
26492         * lib/spawn.c: New file, from GNU libc with modifications.
26493         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26494
26495         New module 'posix_spawnattr_destroy'.
26496         * modules/posix_spawnattr_destroy: New file.
26497         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26498         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26499         module.
26500
26501         New module 'posix_spawnattr_setsigmask'.
26502         * modules/posix_spawnattr_setsigmask: New file.
26503         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26504         modifications.
26505         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26506         new module.
26507
26508         New module 'posix_spawnattr_getsigmask'.
26509         * modules/posix_spawnattr_getsigmask: New file.
26510         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26511         modifications.
26512         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26513         new module.
26514
26515         New module 'posix_spawnattr_setsigdefault'.
26516         * modules/posix_spawnattr_setsigdefault: New file.
26517         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26518         modifications.
26519         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26520         new module.
26521
26522         New module 'posix_spawnattr_getsigdefault'.
26523         * modules/posix_spawnattr_getsigdefault: New file.
26524         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26525         modifications.
26526         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26527         new module.
26528
26529         New module 'posix_spawnattr_setschedpolicy'.
26530         * modules/posix_spawnattr_setschedpolicy: New file.
26531         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26532         modifications.
26533         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26534         new module.
26535
26536         New module 'posix_spawnattr_getschedpolicy'.
26537         * modules/posix_spawnattr_getschedpolicy: New file.
26538         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26539         modifications.
26540         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26541         new module.
26542
26543         New module 'posix_spawnattr_setschedparam'.
26544         * modules/posix_spawnattr_setschedparam: New file.
26545         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26546         modifications.
26547         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26548         new module.
26549
26550         New module 'posix_spawnattr_getschedparam'.
26551         * modules/posix_spawnattr_getschedparam: New file.
26552         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26553         modifications.
26554         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26555         new module.
26556
26557         New module 'posix_spawnattr_setpgroup'.
26558         * modules/posix_spawnattr_setpgroup: New file.
26559         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26560         modifications.
26561         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26562         module.
26563
26564         New module 'posix_spawnattr_getpgroup'.
26565         * modules/posix_spawnattr_getpgroup: New file.
26566         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26567         modifications.
26568         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26569         module.
26570
26571         New module 'posix_spawnattr_setflags'.
26572         * modules/posix_spawnattr_setflags: New file.
26573         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26574         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26575         module.
26576
26577         New module 'posix_spawnattr_getflags'.
26578         * modules/posix_spawnattr_getflags: New file.
26579         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26580         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26581         module.
26582
26583         New module 'posix_spawnattr_init'.
26584         * modules/posix_spawnattr_init: New file.
26585         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26586         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26587         module.
26588
26589         New module 'posix_spawn_file_actions_destroy'.
26590         * modules/posix_spawn_file_actions_destroy: New file.
26591         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26592         modifications.
26593         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26594         the new module.
26595
26596         New module 'posix_spawn_file_actions_addopen'.
26597         * modules/posix_spawn_file_actions_addopen: New file.
26598         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26599         modifications.
26600         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26601         the new module.
26602
26603         New module 'posix_spawn_file_actions_adddup2'.
26604         * modules/posix_spawn_file_actions_adddup2: New file.
26605         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26606         modifications.
26607         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26608         the new module.
26609
26610         New module 'posix_spawn_file_actions_addclose'.
26611         * modules/posix_spawn_file_actions_addclose: New file.
26612         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26613         modifications.
26614         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26615         the new module.
26616
26617         New module 'posix_spawn_file_actions_init'.
26618         * modules/posix_spawn_file_actions_init: New file.
26619         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26620         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26621         new module.
26622
26623         New module 'posix_spawn-internal'.
26624         * modules/posix_spawn-internal: New file.
26625         * lib/spawn_int.h: New file, from GNU libc with modifications.
26626         * lib/spawni.c: New file, from GNU libc with modifications.
26627         * m4/posix_spawn.m4: New file.
26628
26629         New module 'spawn'.
26630         * modules/spawn: New file.
26631         * lib/spawn.in.h: New file, from GNU libc with modifications.
26632         * m4/spawn_h.m4: New file.
26633         * doc/posix-headers/spawn.texi: Mention the new module.
26634
26635 2008-09-28  Bruno Haible  <bruno@clisp.org>
26636
26637         * modules/sched-tests: New file.
26638         * tests/test-sched.c: New file.
26639
26640         New module 'sched'.
26641         * modules/sched: New file.
26642         * lib/sched.in.h: New file.
26643         * m4/sched_h.m4: New file.
26644         * doc/posix-headers/sched.texi: Mention the new module.
26645
26646 2008-09-27  Eric Blake  <ebb9@byu.net>
26647
26648         Fix previous patch, and tweak references to $0.
26649         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26650         (func_version, func_gnulib_dir): Don't call this program
26651         gnulib-tool.
26652         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26653         with using $0 in function.
26654         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26655         (func_fatal_error): Reuse the name the user invoked us with.
26656
26657 2008-09-27  Bruno Haible  <bruno@clisp.org>
26658
26659         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26660         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26661         (gl_ICONV_H): Not here.
26662         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26663         instead of assigning ICONV_H directly.
26664
26665         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26667         WCHAR_H directly.
26668
26669 2008-09-27  Bruno Haible  <bruno@clisp.org>
26670
26671         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26672         * modules/arpa_inet (Depends-on): Add link-warning.
26673         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26674         * modules/unistd (Makefile.am): Likewise.
26675
26676 2008-09-26  Bruno Haible  <bruno@clisp.org>
26677
26678         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26679         variables.
26680         (func_version): Essentially copied from gnulib-tool.
26681         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26682         func_readlink): Copied from gnulib-tool.
26683
26684 2008-09-26  Bruno Haible  <bruno@clisp.org>
26685
26686         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26687         invoking git-version-gen.
26688
26689 2008-09-26  Bruno Haible  <bruno@clisp.org>
26690
26691         * posix-modules: Update to directory names changed on 2008-01-19.
26692         Remove commas in output before splitting into words. No more need to
26693         avoid 'ftruncate' since 2007-02-19.
26694
26695 2008-09-26  Bruno Haible  <bruno@clisp.org>
26696
26697         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26698
26699 2008-09-26  Bruno Haible  <bruno@clisp.org>
26700
26701         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26702         * modules/fwriteerror (Depends-on): Add errno.
26703
26704 2008-09-26  Bruno Haible  <bruno@clisp.org>
26705
26706         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26707         * tests/test-vc-list-files-cvs.sh: Likewise.
26708
26709 2008-09-26  Bruno Haible  <bruno@clisp.org>
26710
26711         * doc/posix-headers/sys_resource.texi: Reorder items.
26712
26713 2008-09-26  Jim Meyering  <meyering@redhat.com>
26714
26715         fts: tweak inode comparison function
26716         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26717         inode numbers, as documented.
26718
26719         fts: sort dirent entries on inode number before traversing
26720         This avoids a quadratic, seek-related performance penalty when
26721         operating on a directory containing many entries (measurable at 10k;
26722         3.5 hours at 2 million entries with a cold cache) on certain types
26723         of file systems, including ext3 and ext4, but not tmpfs.
26724         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26725         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26726         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26727         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26728         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26729         (fts_build): Set the stat.st_ino member from D_INO.
26730         If it is likely to be useful, sort dirent entries on inode number.
26731
26732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26733         and the struct statfs.f_type member.
26734         * modules/fts (Depends-on): Add d-ino.
26735
26736 2008-09-26  Bruno Haible  <bruno@clisp.org>
26737
26738         * modules/sigpipe-die (Depends-on): Add sigpipe.
26739
26740         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26741         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26742         and GNULIB_STDIO_H_SIGPIPE are set.
26743         * lib/stdio-write.c: New file.
26744         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26745         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26746         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26747         REPLACE_STDIO_WRITE_FUNCS.
26748         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26749         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26750         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26751         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26752         * modules/stdio (Files): Add lib/stdio-write.c.
26753         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26754         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26755         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26756         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26757         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26758         REPLACE_FPRINTF_POSIX.
26759         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26760         REPLACE_PRINTF_POSIX.
26761         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26762         REPLACE_VFPRINTF_POSIX.
26763         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26764         REPLACE_VPRINTF_POSIX.
26765         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26766         SIGPIPE issue.
26767         * doc/posix-functions/fputc.texi: Likewise.
26768         * doc/posix-functions/fputs.texi: Likewise.
26769         * doc/posix-functions/fwrite.texi: Likewise.
26770         * doc/posix-functions/printf.texi: Likewise.
26771         * doc/posix-functions/putc.texi: Likewise.
26772         * doc/posix-functions/putchar.texi: Likewise.
26773         * doc/posix-functions/puts.texi: Likewise.
26774         * doc/posix-functions/vfprintf.texi: Likewise.
26775         * doc/posix-functions/vprintf.texi: Likewise.
26776
26777         * modules/safe-write (Depends-on): Add write.
26778
26779         * modules/sigpipe-tests: New file.
26780         * tests/test-sigpipe.c: New file.
26781         * tests/test-sigpipe.sh: New file.
26782
26783         * modules/write: New file.
26784         * lib/unistd.in.h: Include <sys/types.h>.
26785         (write): New declaration.
26786         * lib/write.c: New file.
26787         * m4/write.m4: New file.
26788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26789         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26790         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26791         GNULIB_WRITE, REPLACE_WRITE.
26792         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26793         and the SIGPIPE issue.
26794
26795         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26796         (raise): New declaration.
26797         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26798         (ext_signal): New function.
26799         (rpl_raise): New function.
26800         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26801         GNULIB_SIGNAL_H_SIGPIPE.
26802         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26803         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26804
26805         * modules/sigpipe: New file.
26806         * m4/sigpipe.m4: New file.
26807
26808 2008-09-25  Derek Price  <derek@ximbiot.com>
26809             Bruno Haible  <bruno@clisp.org>
26810
26811         * gnulib-tool (func_import): Report all license incompatibilities, not
26812         just the first one.
26813
26814 2008-09-25  Bruno Haible  <bruno@clisp.org>
26815
26816         * gnulib-tool (func_import): When computing the edits, consider not
26817         only the Makefile.ams that exist but also those that will be generated.
26818
26819 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26820
26821         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26822         fixes gnulib-tool --test warning about duplicate dependency.
26823
26824 2008-09-25  Bruno Haible  <bruno@clisp.org>
26825
26826         * gnulib-tool: Don't ask the user to perform edits in the generated
26827         Makefile.ams.
26828         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26829         apply to the Makefile.am being generated.
26830         (func_emit_tests_Makefile_am): Execute edits that apply to the
26831         Makefile.am being generated.
26832         (func_import): Setup list of Makefile.am edits before emitting the
26833         Makefile.ams, not at the end.
26834         (func_create_testdir): Update.
26835         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26836
26837 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26838
26839         * gnulib-tool (func_import): Store the --tests-base option in the
26840         comment in gnulib-cache.m4.
26841
26842 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26843
26844         * NEWS: Document increased portability that sys_select now provides.
26845
26846         * lib/sys_select.in.h: Install select wrapper.
26847         * lib/sys_socket.in.h: Use more descriptive name when there is no
26848         select wrapper.
26849         * lib/winsock-select.c: New.
26850         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26851         Require gl_HEADER_SYS_SOCKET.
26852         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26853         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26854         * tests/test-sys_select.c: Add functional tests.
26855
26856 2008-09-24  Eric Blake  <ebb9@byu.net>
26857
26858         open, fopen: close fd leak in last patch
26859         * lib/open.c (rpl_open): Close fd before returning error.
26860         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26861         * doc/posix-functions/open.texi (open): Document that Irix also
26862         has the bug.
26863         * doc/posix-functions/fopen.texi (fopen): Likewise.
26864         Reported by Paolo Bonzini.
26865
26866 2008-09-24  Bruno Haible  <bruno@clisp.org>
26867
26868         Ensure that a filename ending in a slash cannot be used to access a
26869         non-directory.
26870         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26871         to check whether it's really a directory.
26872         * lib/fopen.c: Include fcntl.h, unistd.h.
26873         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26874         and fdopen().
26875         * modules/fopen (Depends-on): Add unistd.
26876         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26877         * tests/test-fopen.c (main): Likewise.
26878         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26879         * doc/posix-functions/fopen.texi: Likewise.
26880         Reported by Eric Blake.
26881
26882 2008-09-23  Eric Blake  <ebb9@byu.net>
26883
26884         c-stack: avoid compiler optimizations when provoking overflow
26885         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26886         recursion harder to optimize, to ensure a stack overflow occurs.
26887         * tests/test-c-stack.c (recurse): Likewise.
26888         Borrowed from libsigsegv.
26889
26890         c-stack: work around Irix sigaltstack bug
26891         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26892         whether sigaltstack uses wrong end of stack_t (copied in part from
26893         libsigsegv).
26894         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26895         Irix bug, without requiring an over-allocation.
26896         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26897         bug.
26898
26899         fopen: document mingw bug on directories
26900         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26901         not allowing a stream visiting a directory, even though reading
26902         from such a stream is not portable.
26903
26904 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26905
26906         * lib/poll.c: Rewrite.
26907         * modules/poll: Depend on alloca.
26908
26909 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26910
26911         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26912         instead define prototypes for a full set of wrappers.  Ensure
26913         that Cygwin does not use the compatibility code, which is only
26914         for MinGW.
26915         * lib/winsock.c: New.
26916         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26917         * modules/sys_socket: Add lib/winsock.c.
26918
26919         * modules/poll-tests: Add errno and perror.
26920         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26921
26922 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26923
26924         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26925
26926 2008-09-23  Bruno Haible  <bruno@clisp.org>
26927
26928         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26929         * doc/glibc-functions/*: Likewise.
26930
26931 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26932
26933         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26934         success.
26935
26936 2008-09-22  Eric Blake  <ebb9@byu.net>
26937             Bruno Haible  <bruno@clisp.org>
26938
26939         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26940         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26941         supply %A but mishandle pseudo-NaN.
26942         Reported by Simon Josefsson.
26943
26944 2008-09-21  Bruno Haible  <bruno@clisp.org>
26945
26946         * tests/test-lock.c (main): Tweak skip message.
26947         * tests/test-tls.c (main): Likewise.
26948
26949 2008-09-21  Bruno Haible  <bruno@clisp.org>
26950
26951         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26952         whether 'struct sigaction' has sa_sigaction here...
26953         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26954         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26955
26956 2008-09-21  Bruno Haible  <bruno@clisp.org>
26957
26958         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
26959         section.
26960         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
26961         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
26962         the new section.
26963         (Support for obsolete systems lacking POSIX:2001): New section.
26964         (String handling <string.h>): Move strdup to the new section.
26965         Suggested by Simon Josefsson and Paolo Bonzini.
26966
26967 2008-09-21  Bruno Haible  <bruno@clisp.org>
26968
26969         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
26970         exponents in %e and %g results on 'long double'. Needed for mingw's
26971         improved *printf functions.
26972         * tests/test-vasprintf-posix.c (test_function): Likewise.
26973         * tests/test-snprintf-posix.h (test_function): Likewise.
26974         * tests/test-sprintf-posix.h (test_function): Likewise.
26975         Reported by Eric Blake.
26976
26977 2008-09-21  Bruno Haible  <bruno@clisp.org>
26978
26979         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
26980         * tests/test-sprintf-posix.h (test_function): Likewise.
26981
26982 2008-09-21  Bruno Haible  <bruno@clisp.org>
26983
26984         * modules/getpass (Depends-on): Add strdup-posix.
26985
26986         New module 'strdup-posix'.
26987         * modules/strdup-posix: New file.
26988         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
26989         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
26990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26991         REPLACE_STRDUP.
26992         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
26993         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
26994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26995         strdup-posix.
26996
26997         * modules/strdup (Depends-on): Remove malloc-posix.
26998
26999 2008-09-20  Bruno Haible  <bruno@clisp.org>
27000
27001         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27002         Wildenhues.
27003
27004 2008-09-20  Bruno Haible  <bruno@clisp.org>
27005
27006         Ensure that wint_t gets defined on IRIX 5.3.
27007         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27008         * lib/wctype.in.h (wint_t): Likewise.
27009         (__wctype_wint_t): Remove type.
27010         (isw*): Use wint_t instead of __wctype_wint_t.
27011         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27012         * modules/wchar (Files): Add m4/wint_t.m4.
27013         (Makefile.am): Substitute HAVE_WINT_T.
27014         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27015         * tests/test-wctype.c: Check that wint_t is defined.
27016         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27017         * doc/posix-headers/wctype.texi: Likewise.
27018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27019
27020 2008-09-18  Bruno Haible  <bruno@clisp.org>
27021
27022         * gnulib-tool (func_exit): Update comment.
27023
27024 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27025
27026         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27027         assumes strdup exists and does not depend on strdup to return
27028         ENOMEM on out of memory conditions.
27029
27030 2008-09-18  Bruno Haible  <bruno@clisp.org>
27031
27032         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27033         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27034         digits for the exponent.
27035
27036 2008-09-18  Jim Meyering  <meyering@redhat.com>
27037             Bruno Haible  <bruno@clisp.org>
27038
27039         * lib/vasnprintf.c (decimal_point_char): Define also if
27040         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27041
27042 2008-09-16  Bruno Haible  <bruno@clisp.org>
27043         and Eric Blake  <ebb9@byu.net>
27044
27045         vasnprintf: support Irix 5.3
27046         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27047         that mishandle long double infinity.
27048         Reported by Tom G. Christensen.
27049
27050 2008-09-16  Bruno Haible  <bruno@clisp.org>
27051
27052         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27053         Solaris 9.
27054         * doc/glibc-functions/alphasort.texi: Likewise.
27055         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27056
27057 2008-09-16  Jim Meyering  <meyering@redhat.com>
27058
27059         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27060         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27061         a umask modification leak out of a subshell.  Otherwise, the
27062         opensolaris /bin/sh would be accepted and thus cause unwarranted
27063         failures in the coreutils test suite.
27064
27065 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27066
27067         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27068         to succeed.
27069
27070 2008-09-16  Jim Meyering  <meyering@redhat.com>
27071
27072         avoid spurious test failure when library is built without ACL support
27073         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27074         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27075         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27076         * tests/test-copy-acl.sh: Likewise.
27077
27078 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27079
27080         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27081         based on character occurrence counts.
27082
27083 2008-09-15  Eric Blake  <ebb9@byu.net>
27084
27085         tests: avoid some compiler warnings
27086         * tests/test-memchr.c (main): Pass NULL indirectly.
27087         * tests/test-closein.c (main): Avoid unused variable.
27088
27089 2008-09-15  Bruno Haible  <bruno@clisp.org>
27090
27091         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27092         are missing on OpenBSD 4.0 individually.
27093         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27094
27095 2008-09-15  Bruno Haible  <bruno@clisp.org>
27096
27097         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27098         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27099         * doc/posix-functions/perror.texi: Likewise.
27100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27101         is missing.
27102         Reported by Eric Blake.
27103
27104         * lib/errno.in.h: Use replacement values >= 2000.
27105         Reported by Eric Blake.
27106
27107 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27108
27109         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27110         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27111         limit.
27112         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27113         compareseq was aborted.
27114
27115 2008-09-14  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27118         yvec_edit_count.
27119         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27120         (fstrcmp_bounded): Simplify result computation accordingly.
27121
27122 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27123
27124         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27125         (fstrcmp): Define in terms of fstrcmp_bounded.
27126         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27127         lower_bound argument.
27128         Return quickly if the result is certainly < lower_bound.
27129         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27130
27131 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27132
27133         * lib/diffseq.h (EARLY_ABORT): New macro.
27134         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27135         evaluates to true.
27136
27137 2008-09-14  Bruno Haible  <bruno@clisp.org>
27138
27139         * modules/perror-tests: New file.
27140         * tests/test-perror.sh: New file.
27141         * tests/test-perror.c: New file.
27142
27143         New module 'perror'.
27144         * lib/stdio.in.h (perror): New declaration.
27145         * lib/perror.c: New file.
27146         * m4/perror.m4: New file.
27147         * modules/perror: New file.
27148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27149         * doc/posix-functions/perror.texi: Mention the perror module.
27150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27151         REPLACE_PERROR.
27152         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27153         REPLACE_PERROR.
27154
27155 2008-09-14  Bruno Haible  <bruno@clisp.org>
27156
27157         * modules/stdio (Makefile.am): Reorder to match the order in
27158         lib/stdio.in.h.
27159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27160
27161 2008-09-13  Bruno Haible  <bruno@clisp.org>
27162
27163         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27164
27165 2008-09-13  Bruno Haible  <bruno@clisp.org>
27166
27167         Extend strerror to cover the added errno values.
27168         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27169         (rpl_strerror): Provide error messages for the added errno values and
27170         for the WSA* values.
27171         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27172         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27173         strerror.
27174         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27175         * modules/strerror (Depends-on): Add errno.
27176         * doc/posix-functions/strerror.texi: Document the change.
27177         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27178         and EOVERFLOW.
27179
27180 2008-09-13  Bruno Haible  <bruno@clisp.org>
27181
27182         * modules/EOVERFLOW: Remove file.
27183         * m4/eoverflow.m4: Remove file.
27184         * modules/EOVERFLOW-tests: Remove file.
27185         * tests/test-EOVERFLOW.c: Remove file.
27186         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27187         * modules/ftell (Depends-on): Likewise.
27188         * modules/getdelim (Depends-on): Likewise.
27189         * modules/getugroups (Depends-on): Likewise.
27190         * modules/poll (Depends-on): Likewise.
27191         * modules/snprintf (Depends-on): Likewise.
27192         * modules/sprintf-posix (Depends-on): Likewise.
27193         * modules/vasnprintf (Depends-on): Likewise.
27194         * modules/vasprintf (Depends-on): Likewise.
27195         * modules/vfprintf-posix (Depends-on): Likewise.
27196         * modules/vsnprintf (Depends-on): Likewise.
27197         * modules/vsprintf-posix (Depends-on): Likewise.
27198         * modules/xvasprintf (Depends-on): Likewise.
27199         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27200         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27201         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27202         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27204         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27205         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27206         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27207         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27208         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27209         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27210         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27211         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27212         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27213         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27214         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27215         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27216         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27217         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27218         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27219         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27220         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27221         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27222         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27223         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27225         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27226         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27227         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27228         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27229         * MODULES.html.sh: Remove EOVERFLOW.
27230         * NEWS: Mention the change.
27231
27232 2008-09-13  Bruno Haible  <bruno@clisp.org>
27233
27234         * modules/errno-tests: New file.
27235         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27236
27237         * lib/errno.in.h: New file.
27238         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27239         * modules/errno: New file.
27240         * doc/posix-headers/errno.texi: Update documentation.
27241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27242
27243 2008-09-13  Bruno Haible  <bruno@clisp.org>
27244
27245         * tests/test-poll.c: Use #if for native Windows, rather than testing
27246         __MSVCRT__.
27247
27248 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27249             Bruno Haible  <bruno@clisp.org>
27250
27251         * lib/glob.c: Don't include <pwd.h> on native Windows.
27252         (WINDOWS32): New macro.
27253         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27254
27255 2008-09-13  Bruno Haible  <bruno@clisp.org>
27256
27257         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27258         (ETIMEDOUT): Remove macro.
27259         (glthread_cond_timedwait_multithreaded): New declaration.
27260         (glthread_cond_timedwait): Use it.
27261         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27262         (glthread_cond_timedwait_multithreaded): New function.
27263
27264 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27265
27266         * modules/poll-tests: Do not check for io.h.
27267         * tests/test-poll.c: Check for __MSVCRT__ instead.
27268
27269 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27270
27271         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27272         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27273         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27274
27275 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27276
27277         * modules/poll-tests: New.
27278         * tests/test-poll.c: New.
27279
27280 2008-09-12  Eric Blake  <ebb9@byu.net>
27281
27282         frexp: test for NetBSD failure on -0.0
27283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27284         not all, bugs from NetBSD 3.0 have been fixed.
27285         * doc/posix-functions/frexp.texi (frexp): Document bug.
27286         Reported by Thomas Klausner.
27287
27288         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27289         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27290         literal -0.0.
27291         Reported by Jonathan C. Patschke <jp@centtech.com>.
27292
27293 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27294
27295         * lib/glthread/cond.h: Use dummy implementation also if
27296         USE_WIN32_THREADS.
27297
27298 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27299
27300         * modules/fnmatch-posix (License): Change to LGPLv2+.
27301         * modules/fnmatch-gnu (License): Likewise.
27302
27303 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27304
27305         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27306
27307 2008-09-11  Jim Meyering  <meyering@redhat.com>
27308
27309         * users.txt: Add gtk-vnc.
27310
27311 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27312
27313         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27314         rotate amounts.
27315
27316         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27317         required for 16-bit and 8-bit rotates.
27318         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27319         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27320         UINT8_MAX instead of hard-coded constants.
27321         Suggested by Paul Eggert.
27322
27323 2008-09-07  Bruno Haible  <bruno@clisp.org>
27324
27325         * tests/test-striconveh.c (main): Check behaviour when converting from
27326         UTF-7.
27327
27328         Make striconveh work better with stateful encodings.
27329         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27330         that iconv does not increment the inptr when returning -1/EINVAL.
27331
27332 2008-09-07  Bruno Haible  <bruno@clisp.org>
27333
27334         * build-aux/config.rpath: Update according to libtool-2.2.6.
27335         * build-aux/config.libpath: Likewise.
27336
27337 2008-09-06  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27340         * lib/freadptr.c (freadptr): Likewise.
27341         * lib/freadseek.c (freadptrinc): Likewise.
27342         Reported by Simon Josefsson.
27343
27344 2008-09-06  Bruno Haible  <bruno@clisp.org>
27345
27346         * modules/freadptr (License): Change to LGPLv2+.
27347         * modules/freadseek (License): Likewise.
27348         Suggested by Eric Blake.
27349
27350         * modules/memchr2 (License): Change to LGPLv2+.
27351         Approved by Eric Blake.
27352
27353 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27354             Bruno Haible  <bruno@clisp.org>
27355
27356         Make gnulib-tool work with native 'sed' on AIX.
27357         * gnulib-tool (sed_noop): New variable.
27358         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27359         func_add_or_update, func_create_testdir): Use it to initialize sed
27360         script variables.
27361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27362
27363 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27364             Bruno Haible  <bruno@clisp.org>
27365
27366         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27367         also works after #include directives.
27368
27369 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27370
27371         getdate.y: reject an out-of-range timezone value
27372         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27373         the range [-24...+24].  When specified with only one or two digits,
27374         * tests/test-getdate.c: Tests for the fix.
27375         * doc/getdate.texi: Document this change.
27376
27377 2008-09-03  Bruno Haible  <bruno@clisp.org>
27378
27379         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27380
27381 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27382
27383         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27384         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27385         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27386         Blake <ebb9@byu.net>.
27387
27388         * tests/test-bitrotate.c: Add more test vectors.
27389
27390 2008-09-02  Eric Blake  <ebb9@byu.net>
27391
27392         vasnprintf-posix: handle large precision via %.*d
27393         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27394         when handling it ourselves.
27395         * tests/test-vasnprintf-posix.c (test_function): Add test.
27396         * tests/test-snprintf-posix.h (test_function): Likewise.
27397         * tests/test-sprintf-posix.h (test_function): Likewise.
27398         * tests/test-vasprintf-posix.c (test_function): Likewise.
27399         Reported by Alain Guibert.
27400
27401 2008-09-01  Eric Blake  <ebb9@byu.net>
27402
27403         c-stack: make configure-time check more robust
27404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27405         successful sigaction call.
27406         Reported by Tom G. Christensen.
27407
27408 2008-09-01  Bruno Haible  <bruno@clisp.org>
27409
27410         New module 'findprog-lgpl'.
27411         * modules/findprog-lgpl: New file.
27412         * lib/findprog-lgpl.c: New file.
27413         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27414         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27415         to decide whether to use strdup or xstrdup, concatenated_filename or
27416         xconcatenated_filename.
27417
27418 2008-09-01  Bruno Haible  <bruno@clisp.org>
27419
27420         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27421         'xconcat-filename' (GPL).
27422         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27423         (License): Change to LGPLv2+.
27424         * modules/xconcat-filename: New file.
27425         * lib/concat-filename.h (concatenated_filename): Change specification.
27426         (xconcatenated_filename): New declaration.
27427         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27428         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27429         memory situations.
27430         * lib/xconcat-filename.c: New file.
27431         * NEWS: Mention the change.
27432         * lib/findprog.c: Include concat-filename.h, not filename.h.
27433         (find_in_path): Use xconcatenated_filename instead of
27434         concatenated_filename.
27435         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27436         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27437         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27438         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27439         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27440         instead of concatenated_filename.
27441         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27442         (execute_java_class): Use xconcatenated_filename instead of
27443         concatenated_filename.
27444         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27445         * modules/javacomp (Depends-on): Likewise.
27446         * modules/javaexec (Depends-on): Likewise.
27447
27448 2008-09-01  Bruno Haible  <bruno@clisp.org>
27449
27450         Split module 'filename' into 'filename' and 'concat-filename'.
27451         * modules/filename: Keep only lib/filename.h.
27452         (License): Change to LGPLv2+.
27453         * modules/concat-filename: New file, extracted from modules/filename.
27454         * lib/filename.h (concatenated_filename): Remove declaration.
27455         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27456         * lib/concat-filename.c: Include concat-filename.h.
27457         * NEWS: Mention the change.
27458
27459 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27460
27461         * lib/bitrotate.h (rotl8, rotr8): Add.
27462
27463         * modules/bitrotate (configure.ac): Need
27464         AC_REQUIRE([AC_C_INLINE]).
27465         (Description): Mention stdint.h.  Reported by Bruno Haible
27466         <bruno@clisp.org>.
27467
27468         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27469         Paolo Bonzini <bonzini@gnu.org>.
27470
27471 2008-08-31  Bruno Haible  <bruno@clisp.org>
27472
27473         Assume Solaris specific bi-arch conventions on Solaris systems.
27474         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27475         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27477         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27478         like acl_libdirstem.
27479         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27480         acl_libdirstem.
27481         * NEWS: Mention the change.
27482         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27483
27484 2008-08-31  Jim Meyering  <meyering@redhat.com>
27485
27486         * lib/strftime.h: Add comments describing the two added arguments.
27487
27488         remove duplicate #include directives
27489         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27490         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27491
27492 2008-08-31  Bruno Haible  <bruno@clisp.org>
27493
27494         New module 'sigpipe-die'.
27495         * modules/sigpipe-die: New file.
27496         * lib/sigpipe-die.h: New file.
27497         * lib/sigpipe-die.c: New file.
27498         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27499
27500 2008-08-31  Bruno Haible  <bruno@clisp.org>
27501
27502         Don't override previously installed signal handlers.
27503         * lib/fatal-signal.c (saved_sigactions): New variable.
27504         (uninstall_handlers): Reset the signal to the saved handler, not
27505         to SIG_DFL (except when ignored).
27506         (install_handlers): Save the previous handlers.
27507
27508 2008-08-30  Bruno Haible  <bruno@clisp.org>
27509
27510         * gnulib-tool (func_reset_sigpipe): New function.
27511         (func_get_automake_snippet, func_modules_transitive_closure,
27512         func_import): Invoke it before a join command that reads from stdin,
27513         to avoid "echo: write error: Broken pipe" error messages on stderr.
27514         Reported by Sam Steingold <sds@gnu.org>.
27515
27516 2008-08-30  Bruno Haible  <bruno@clisp.org>
27517
27518         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27519         Code copied from m4/open.m4.
27520         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27521         access and the filename ends in a slash. Code copied from lib/open.c.
27522         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27523         * tests/test-fopen.c (main): Check against bug with trailing slash.
27524
27525 2008-08-29  Bruno Haible  <bruno@clisp.org>
27526
27527         Avoid some "gcc -pedantic" warnings.
27528         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27529         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27530         * lib/dirent.in.h: Likewise.
27531         * lib/fcntl.in.h: Likewise.
27532         * lib/float.in.h: Likewise.
27533         * lib/iconv.in.h: Likewise.
27534         * lib/inttypes.in.h: Likewise.
27535         * lib/locale.in.h: Likewise.
27536         * lib/math.in.h: Likewise.
27537         * lib/netinet_in.in.h: Likewise.
27538         * lib/search.in.h: Likewise.
27539         * lib/signal.in.h: Likewise.
27540         * lib/stdarg.in.h: Likewise.
27541         * lib/stdint.in.h: Likewise.
27542         * lib/stdio.in.h: Likewise.
27543         * lib/stdlib.in.h: Likewise.
27544         * lib/string.in.h: Likewise.
27545         * lib/strings.in.h: Likewise.
27546         * lib/sys_select.in.h: Likewise.
27547         * lib/sys_socket.in.h: Likewise.
27548         * lib/sys_stat.in.h: Likewise.
27549         * lib/sys_time.in.h: Likewise.
27550         * lib/sysexits.in.h: Likewise.
27551         * lib/time.in.h: Likewise.
27552         * lib/unistd.in.h: Likewise.
27553         * lib/wchar.in.h: Likewise.
27554         * lib/wctype.in.h: Likewise.
27555         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27556         * modules/fchdir (Makefile.am): Likewise.
27557         * modules/fcntl (Makefile.am): Likewise.
27558         * modules/float (Makefile.am): Likewise.
27559         * modules/iconv_open (Makefile.am): Likewise.
27560         * modules/inttypes (Makefile.am): Likewise.
27561         * modules/locale (Makefile.am): Likewise.
27562         * modules/math (Makefile.am): Likewise.
27563         * modules/netinet_in (Makefile.am): Likewise.
27564         * modules/search (Makefile.am): Likewise.
27565         * modules/signal (Makefile.am): Likewise.
27566         * modules/stdarg (Makefile.am): Likewise.
27567         * modules/stdint (Makefile.am): Likewise.
27568         * modules/stdio (Makefile.am): Likewise.
27569         * modules/stdlib (Makefile.am): Likewise.
27570         * modules/string (Makefile.am): Likewise.
27571         * modules/strings (Makefile.am): Likewise.
27572         * modules/sys_select (Makefile.am): Likewise.
27573         * modules/sys_socket (Makefile.am): Likewise.
27574         * modules/sys_stat (Makefile.am): Likewise.
27575         * modules/sys_time (Makefile.am): Likewise.
27576         * modules/sysexits (Makefile.am): Likewise.
27577         * modules/time (Makefile.am): Likewise.
27578         * modules/unistd (Makefile.am): Likewise.
27579         * modules/wchar (Makefile.am): Likewise.
27580         * modules/wctype (Makefile.am): Likewise.
27581         Reported by Reuben Thomas <rrt@sc3d.org>.
27582
27583 2008-08-29  Bruno Haible  <bruno@clisp.org>
27584
27585         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27586         any more.
27587
27588 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27589
27590         * MODULES.html.sh (Misc): Add bitrotate.
27591
27592         * modules/bitrotate: New file.
27593
27594         * lib/bitrotate.h: New file.
27595
27596         * modules/bitrotate-tests: New file.
27597
27598         * tests/test-bitrotate.c: New file.
27599
27600         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27601         on the bitrotate module.
27602
27603         * lib/arctwo.c: Use new bitrotate module.
27604
27605 2008-08-29  Jim Meyering  <meyering@redhat.com>
27606
27607         bootstrap: merge changes from coreutils
27608         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27609         of copied files.  Remove a kludge, now that this is fixed.
27610         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27611         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27612         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27613
27614 2008-08-29  Bruno Haible  <bruno@clisp.org>
27615
27616         * MODULES.html.sh: Remove --cvs-urls option.
27617
27618 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27619
27620         maint.mk: adjust to file name change
27621         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27622
27623 2008-08-28  Jim Meyering  <meyering@redhat.com>
27624
27625         * modules/getndelim2 (License): Relicense to LGPLv2+.
27626         Approved by Richard Stallman for the version of 1995, and by
27627         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27628
27629 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27630
27631         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27632         dummy if one is not available.  Do not touch them if
27633         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27634         (getc_maybe_unlocked): New.
27635         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27636
27637 2008-08-26  Eric Blake  <ebb9@byu.net>
27638
27639         doc/INSTALL: resync from autoconf
27640         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27641         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27642         moving...
27643         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27644         * INSTALL: Regenerate.
27645         * INSTALL.ISO: New file.
27646         * INSTALL.UTF-8: Likewise.
27647
27648 2008-08-26  Jim Meyering  <meyering@redhat.com>
27649
27650         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27651         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27652         these definitions conditional, so that they may be overridden, too.
27653
27654 2008-08-26  Bruno Haible  <bruno@clisp.org>
27655
27656         Generate INSTALL file variants with prettier quotes.
27657         * doc/Makefile (INSTALL_PRELUDE): New macro.
27658         (INSTALL): Use it.
27659         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27660
27661 2008-08-26  Bruno Haible  <bruno@clisp.org>
27662
27663         Run makeinfo in an English locale.
27664         * doc/Makefile (MAKEINFO): New variable.
27665
27666 2008-08-26  Bruno Haible  <bruno@clisp.org>
27667
27668         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27669         Suggested by Eric Blake.
27670
27671 2008-08-25  Bruno Haible  <bruno@clisp.org>
27672
27673         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27674
27675 2008-08-25  Eric Blake  <ebb9@byu.net>
27676
27677         c-stack: test that stack overflow can be caught
27678         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27679         that platform allows handling stack overflow; at least OS/2 EMX
27680         has sigaltstack, but crashes before transferring control to
27681         handler on stack overflow.
27682         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27683         check for HAVE_STACK_OVERFLOW_HANDLING.
27684         Reported by Elbert Pol.
27685
27686 2008-08-25  Bruno Haible  <bruno@clisp.org>
27687
27688         * doc/posix-functions/strftime.texi: Fix description of strftime
27689         module.
27690
27691 2008-08-24  Bruno Haible  <bruno@clisp.org>
27692
27693         * tests/uniwidth/test-uc_width2.c: New file.
27694         * tests/uniwidth/test-uc_width2.sh: New file.
27695         * modules/uniwidth/width-tests (Files): Add the new files.
27696         (TESTS): Add uniwidth/test-uc_width2.sh.
27697         (TESTS_ENVIRONMENT): New variable.
27698         (check_PROGRAMS): Add test-uc_width2.
27699         (test_uc_width2_SOURCES): New variable.
27700
27701         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27702         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27703         not 0x00AB.
27704         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27705
27706 2008-08-22  Eric Blake  <ebb9@byu.net>
27707
27708         test-lock, test-tls: mention why a test is skipped
27709         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27710         skipped.
27711         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27712
27713         count-one-bits: relax license
27714         * modules/count-one-bits (License): Relicense to LGPLv2+.
27715         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27716
27717 2008-08-22  Andreas Schwab  <schwab@suse.de>
27718
27719         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27720         Remove spurious space in assignment.
27721
27722 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27723
27724         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27725         Paul Eggert <eggert@CS.UCLA.EDU>.
27726
27727 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27728
27729         * modules/gettext: Add m4/threadlib.m4.
27730
27731 2008-08-19  Eric Blake  <ebb9@byu.net>
27732
27733         test-c-stack: fix compilation failure on FreeBSD 5.0
27734         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27735         headers before <sys/resource.h>.
27736         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27737         the bug.
27738         Reported by Nelson H. F. Beebe.
27739
27740         strverscmp: migrate from "strverscmp.h" to <string.h>
27741         * modules/string (Makefile.am): Add new hooks.
27742         * modules/strverscmp (Files): Remove strverscmp.h.
27743         (Depends-on): Add string.
27744         (configure.ac): Add indicator.
27745         (Include): Mention new header.
27746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27747         defaults.
27748         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27749         results.
27750         * lib/strverscmp.h: Delete.
27751         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27752         * tests/test-strverscmp.c (includes): Adjust client.
27753         * lib/check-version.c (includes): Likewise.
27754         * NEWS: Document the change.
27755
27756         strverscmp: add unit test
27757         * modules/strverscmp-tests: New file.
27758         * tests/test-strverscmp.c: Likewise.
27759
27760 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27761
27762         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27763         regarding Windows crypto stuff, from Mono.
27764
27765 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27766
27767         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27768         if present, for intel RND.  Return error on failures.
27769
27770 2008-08-18  Ben Pfaff  <blp@gnu.org>
27771
27772         gitlog-to-changelog: give better diagnostic for failed pipe-open
27773         * build-aux/gitlog-to-changelog: Improve error message: suggest
27774         that the version of Git may be too old.
27775
27776 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27777
27778         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27779         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27780
27781 2008-08-18  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27784         pthread_in_use().
27785
27786 2008-08-18  Bruno Haible  <bruno@clisp.org>
27787
27788         * lib/glthread/threadlib.c: Include <pthread.h>.
27789
27790 2008-08-18  Bruno Haible  <bruno@clisp.org>
27791
27792         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27793         glthread_recursive_lock_* macros.
27794         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27795         Fix syntax error.
27796
27797 2008-08-18  Bruno Haible  <bruno@clisp.org>
27798
27799         * lib/glthread/thread.c: Avoid forcing a context switch right after
27800         thread creation.
27801
27802 2008-08-17  Bruno Haible  <bruno@clisp.org>
27803
27804         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27805         * lib/glthread/thread.h: Provide Win32 specific implementation.
27806         * modules/thread (Files): Add lib/glthread/thread.c.
27807         (Depends-on): Add lock.
27808         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27809
27810 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27811
27812         New module 'yield'.
27813         * modules/yield: New file.
27814         * lib/glthread/yield.h: New file.
27815         * m4/yield.m4: New file.
27816         * MODULES.html.sh (Multithreading): Add yield.
27817
27818 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27819
27820         New module 'thread'.
27821         * modules/thread: New file.
27822         * lib/glthread/thread.h: New file.
27823         * m4/thread.m4: New file.
27824         * MODULES.html.sh (Multithreading): Add thread.
27825
27826 2008-08-17  Bruno Haible  <bruno@clisp.org>
27827
27828         * lib/glthread/lock.h: Include <stdlib.h> always.
27829         * lib/glthread/tls.h: Likewise.
27830         * lib/glthread/cond.h: Likewise.
27831
27832 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27833
27834         New module 'cond'.
27835         * modules/cond: New file.
27836         * lib/glthread/cond.h: New file.
27837         * lib/glthread/cond.c: New file.
27838         * m4/cond.m4: New file.
27839         * MODULES.html.sh (Multithreading): Add cond.
27840
27841 2008-08-16  Eric Blake  <ebb9@byu.net>
27842
27843         c-stack: fix regression on Irix 5.3 from 2008-06-21
27844         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27845         sa_sigaction...
27846         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27847         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27848         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27849         * modules/signal (Makefile.am): Use the value.
27850         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27851         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27852         * doc/posix-headers/signal.texi (signal.h): Document this
27853         portability issue.
27854         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27855         Reported by Tom G. Christensen.
27856
27857 2008-08-17  Bruno Haible  <bruno@clisp.org>
27858
27859         New module 'threadlib'.
27860         * modules/threadlib: New file.
27861         * lib/glthread/threadlib.c: New file, extracted from
27862         lib/glthread/lock.c.
27863         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27864         functions.
27865         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27866         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27867         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27868         macros.
27869         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27870         (gl_DISABLE_THREADS): Remove macro.
27871         * modules/lock (Files): Remove build-aux/config.rpath.
27872         (Depends-on): Remove havelib. Add threadlib.
27873         (configure.ac-early): Remove section.
27874         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27875         * modules/tls (Depends-on): Remove lock. Add threadlib.
27876         (Link): New section, copied from threadlib.
27877         * MODULES.html.sh (Multithreading): Add threadlib.
27878
27879 2008-08-14  Bruno Haible  <bruno@clisp.org>
27880
27881         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27882         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27883         glthread_rwlock_unlock, glthread_rwlock_destroy,
27884         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27885         glthread_recursive_lock_destroy): Define as macros always.
27886         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27887         glthread_lock_lock.
27888         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27889         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27890         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27891         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27892         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27893         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27894         (glthread_recursive_lock_lock_func): Renamed from
27895         glthread_recursive_lock_lock.
27896         (glthread_recursive_lock_unlock_func): Renamed from
27897         glthread_recursive_lock_unlock.
27898         (glthread_recursive_lock_destroy_func): Renamed from
27899         glthread_recursive_lock_destroy.
27900
27901 2008-08-14  Bruno Haible  <bruno@clisp.org>
27902
27903         * lib/glthread/lock.h: Renamed from lib/lock.h.
27904         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27905         * lib/glthread/tls.h: Renamed from lib/tls.h.
27906         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27907         * lib/fstrcmp.c: Update includes.
27908         * lib/strsignal.c: Update includes.
27909         * modules/lock (Files, Makefile.am): Update.
27910         (Include): Change to "glthread/lock.h".
27911         * modules/tls (Files, Makefile.am): Update.
27912         (Include): Change to "glthread/tls.h".
27913         * tests/test-lock.c: Update includes.
27914         * tests/test-tls.c: Update includes.
27915         * NEWS: Mention the renamed header files.
27916
27917 2008-08-11  Jim Meyering  <meyering@redhat.com>
27918
27919         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27920
27921 2008-08-11  Eric Blake  <ebb9@byu.net>
27922
27923         test-c-stack: avoid C99-ism
27924         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27925         before statement.
27926         Reported by Alain Guibert.
27927
27928 2008-08-10  Jim Meyering  <meyering@redhat.com>
27929
27930         ensure that return value of uinttostr et al are not ignored
27931         * lib/inttostr.h (__GNUC_PREREQ): Define.
27932         (__attribute_warn_unused_result__): Define.
27933         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27934
27935 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27936
27937         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27938         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27939
27940 2008-08-07  Jim Meyering  <meyering@redhat.com>
27941
27942         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27943
27944         * modules/mkstemp (License): Relicense under LGPLv2+.
27945         * modules/tempname (License): Likewise.
27946
27947 2008-08-06  Bruno Haible  <bruno@clisp.org>
27948
27949         * lib/poll.c (poll): Further micro-optimization.
27950
27951 2008-08-06  Jim Meyering  <meyering@redhat.com>
27952
27953         inet_pton.c: use locale-independent tolower
27954         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27955         (inet_pton6): Use c_tolower rather than tolower.
27956         * modules/inet_pton (Depends-on): Add c-ctype.
27957
27958 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
27959
27960         * lib/poll.c (poll): Avoid division when timeout is 0, cache
27961         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
27962
27963 2008-08-06  Jim Meyering  <meyering@redhat.com>
27964
27965         * modules/inet_pton (License): Relicense under LGPLv2+.
27966
27967 2008-08-03  Bruno Haible  <bruno@clisp.org>
27968
27969         Additional non-aborting API for lock and tls.
27970         * lib/lock.h: Include <errno.h>.
27971         (glthread_lock_init): New macro/function.
27972         (gl_lock_init): Define as wrapper around glthread_lock_init.
27973         (glthread_lock_lock): New macro/function.
27974         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
27975         (glthread_lock_unlock): New macro/function.
27976         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
27977         (glthread_lock_destroy): New macro/function.
27978         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
27979         (glthread_rwlock_init): New macro/function.
27980         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
27981         (glthread_rwlock_rdlock): New macro/function.
27982         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
27983         (glthread_rwlock_wrlock): New macro/function.
27984         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
27985         (glthread_rwlock_unlock): New macro/function.
27986         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
27987         (glthread_rwlock_destroy): New macro/function.
27988         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
27989         (glthread_recursive_lock_init): New macro/function.
27990         (gl_recursive_lock_init): Define as wrapper around
27991         glthread_recursive_lock_init.
27992         (glthread_recursive_lock_lock): New macro/function.
27993         (gl_recursive_lock_lock): Define as wrapper around
27994         glthread_recursive_lock_lock.
27995         (glthread_recursive_lock_unlock): New macro/function.
27996         (gl_recursive_lock_unlock): Define as wrapper around
27997         glthread_recursive_lock_unlock.
27998         (glthread_recursive_lock_destroy): New macro/function.
27999         (gl_recursive_lock_destroy): Define as wrapper around
28000         glthread_recursive_lock_destroy.
28001         (glthread_once): New macro/function.
28002         (gl_once): Define as wrapper around glthread_once.
28003         Update function declarations.
28004         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28005         glthread_rwlock_init. Return error code.
28006         (glthread_rwlock_rdlock_multithreaded): Renamed from
28007         glthread_rwlock_rdlock. Return error code.
28008         (glthread_rwlock_wrlock_multithreaded): Renamed from
28009         glthread_rwlock_wrlock. Return error code.
28010         (glthread_rwlock_unlock_multithreaded): Renamed from
28011         glthread_rwlock_unlock. Return error code.
28012         (glthread_rwlock_destroy_multithreaded): Renamed from
28013         glthread_rwlock_destroy. Return error code.
28014         (glthread_recursive_lock_init_multithreaded): Renamed from
28015         glthread_recursive_lock_init. Return error code.
28016         (glthread_recursive_lock_lock_multithreaded): Renamed from
28017         glthread_recursive_lock_lock. Return error code.
28018         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28019         glthread_recursive_lock_unlock. Return error code.
28020         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28021         glthread_recursive_lock_destroy. Return error code.
28022         (glthread_once_call): Make static.
28023         (glthread_once_multithreaded): Renamed from glthread_once.
28024         * lib/tls.h: Include <errno.h>.
28025         (glthread_tls_key_init): New macro/function.
28026         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28027         (glthread_tls_set): New macro/function.
28028         (gl_tls_set): Define as wrapper around glthread_tls_set.
28029         (glthread_tls_key_destroy): New macro/function.
28030         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28031         Update function declarations.
28032         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28033         glthread_tls_get.
28034         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28035
28036 2008-08-04  Eric Blake  <ebb9@byu.net>
28037
28038         gnumakefile: use space, not TAB, outside of targets
28039         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28040
28041 2008-08-02  Jim Meyering  <meyering@redhat.com>
28042
28043         getdate.y: avoid locale-dependent date parsing failure
28044         In Turkish locales, getdate would fail to recognize keywords
28045         containing a lowercase "i".  The solution is not to rely on
28046         locale-sensitive case-conversion.
28047         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28048         (lookup_word): Use c_toupper in place of toupper.
28049         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28050         Reported by Vefa Bicakci <bicave@superonline.com> in
28051         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28052         * modules/getdate (Depends-on): Add c-ctype.
28053
28054 2008-08-02  Bruno Haible  <bruno@clisp.org>
28055
28056         * gnulib-tool (func_import): When updating or creating a .gitignore
28057         file, prepend each added line with a slash, and ignore leading slashes
28058         from the existing lines.
28059         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28060
28061 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28062
28063         Portability fix for GNU make 3.79.1.
28064         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28065         versions do not understand.
28066
28067 2008-08-01  Bruno Haible  <bruno@clisp.org>
28068
28069         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28070         * tests/test-isnanf.h (zero): New variable.
28071         (main): Avoid literal -0.0f.
28072         * tests/test-isnand.h (zero): New variable.
28073         (main): Avoid literal -0.0.
28074         * tests/test-isnanl.h (zero): New variable.
28075         (main): Avoid literal -0.0L.
28076         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28077         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28078         -0.0, -0.0L.
28079         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28080         (test_signbitd): Avoid literal -0.0.
28081         (test_signbitl): Avoid literal -0.0L.
28082         * tests/test-ceilf1.c (zero): New variable.
28083         (main): Avoid literal -0.0f.
28084         * tests/test-ceill.c (zero): New variable.
28085         (main): Avoid literal -0.0L.
28086         * tests/test-floorf1.c (zero): New variable.
28087         (main): Avoid literal -0.0f.
28088         * tests/test-floorl.c (zero): New variable.
28089         (main): Avoid literal -0.0L.
28090         * tests/test-roundf1.c (zero): New variable.
28091         (main): Avoid literal -0.0f.
28092         * tests/test-round1.c (zero): New variable.
28093         (main): Avoid literal -0.0.
28094         * tests/test-roundl.c (zero): New variable.
28095         (main): Avoid literal -0.0L.
28096         * tests/test-truncf1.c (zero): New variable.
28097         (main): Avoid literal -0.0f.
28098         * tests/test-trunc1.c (zero): New variable.
28099         (main): Avoid literal -0.0.
28100         * tests/test-truncl.c (zero): New variable.
28101         (main): Avoid literal -0.0L.
28102         * tests/test-frexp.c (zero): New variable.
28103         (main): Avoid literal -0.0.
28104         * tests/test-frexpl.c (zero): New variable.
28105         (main): Avoid literal -0.0L.
28106         * tests/test-ldexpl.c (zero): New variable.
28107         (main): Avoid literal -0.0L.
28108         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28109         (zerod, zerol): New variables.
28110         (test_function): Avoid literals -0.0, -0.0L.
28111         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28112         (zerod, zerol): New variables.
28113         (test_function): Avoid literals -0.0, -0.0L.
28114         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28115         (zerod, zerol): New variables.
28116         (test_function): Avoid literals -0.0, -0.0L.
28117         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28118         (zerod, zerol): New variables.
28119         (test_function): Avoid literals -0.0, -0.0L.
28120         * tests/test-strtod.c (zero): New variable.
28121         (main): Avoid literal -0.0.
28122         Reported by Jonathan C. Patschke <jp@centtech.com>.
28123
28124 2008-07-31  Jim Meyering  <meyering@redhat.com>
28125
28126         sha256.h: correct definition of SHA224_DIGEST_SIZE
28127         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28128         Reported by Paulie Pena IV <paulie4@gmail.com>.
28129         Define as 224 / 8, rather than as a literal.
28130         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28131         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28132         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28133
28134 2008-07-31  Bruno Haible  <bruno@clisp.org>
28135
28136         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28137         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28138         Reported by Jonathan Patschke <jp@centtech.com>.
28139
28140 2008-07-31  Bruno Haible  <bruno@clisp.org>
28141
28142         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28143         Reported by Paolo Bonzini <bonzini@gnu.org>.
28144
28145 2008-07-30  Eric Blake  <ebb9@byu.net>
28146
28147         test-strtod: allow compilation without -lm
28148         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28149         Reported by Dennis Clarke <blastwave@gmail.com>.
28150
28151 2008-07-28  Jim Meyering  <meyering@redhat.com>
28152
28153         bootstrap: work also when there are no .po files in po/
28154         * build-aux/bootstrap (update_po_files): Complete the change
28155         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28156
28157 2008-07-27  Jim Meyering  <meyering@redhat.com>
28158
28159         * users.txt: Add zile.
28160
28161 2008-07-26  Ben Pfaff  <blp@gnu.org>
28162
28163         Add missing dependencies on new m4/exponent[fdl].m4 files.
28164         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28165         * modules/isnand-nolibm: Add m4/exponentd.m4.
28166         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28167         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28168         m4/isnan[fdl].m4, because the macros actually used moved.
28169         Reported by Jim Meyering.
28170
28171 2008-07-14  Ben Pfaff  <blp@gnu.org>
28172
28173         Add isinf module.
28174         * lib/isinf.c: New file.
28175         * lib/math.in.h: Define isinf macro if we have decided to replace
28176         it.
28177         * m4/isinf.m4: New file.
28178         * m4/math_h.m4: Initialize and substitute variables for isinf
28179         module.
28180         * modules/isinf: New file.
28181         * modules/isinf-tests: New file.
28182         * modules/math: Add substitutions for new module.
28183         * tests/test-isinf.c: New file.
28184         * doc/posix-functions/isinf.texi: Mention new module.
28185         * MODULES.html.sh: Mention new module.
28186
28187 2008-07-14  Ben Pfaff  <blp@gnu.org>
28188
28189         Factor out some macros for use by additional modules.
28190         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28191         exponentf.m4.
28192         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28193         exponentd.m4.
28194         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28195         file exponentl.m4.
28196         * m4/exponentf.m4: New file.
28197         * m4/exponentd.m4: New file.
28198         * m4/exponentl.m4: New file.
28199         * modules/isnanf: Use new file m4/exponentf.m4.
28200         * modules/isnand: Use new file m4/exponentd.m4.
28201         * modules/isnanl: Use new file m4/exponentl.m4.
28202
28203 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28204
28205         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28206         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28207         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28208         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28209
28210         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28211         readlink on platforms without PATH_MAX.
28212
28213 2008-07-21  Eric Blake  <ebb9@byu.net>
28214
28215         Warn, not fail, on stale version.
28216         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28217
28218         Don't allow installation with stale devel version number.
28219         * top/GNUmakefile (_is-install-target): New macro.
28220         (_curr-ver): Forbid installation with stale version number.
28221
28222 2008-07-20  Bruno Haible  <bruno@clisp.org>
28223
28224         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28225         TESTS_ENVIRONMENT.
28226         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28227
28228 2008-07-20  Bruno Haible  <bruno@clisp.org>
28229
28230         * lib/c-stack.h (c_stack_action): Add documentation.
28231         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28232
28233 2008-07-20  Bruno Haible  <bruno@clisp.org>
28234
28235         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28236         * modules/readlink (License): Likewise.
28237
28238 2008-07-17  Eric Blake  <ebb9@byu.net>
28239
28240         * modules/c-stack (Link): Fix typo.
28241
28242         Make c-stack use libsigsegv, when available.
28243         * modules/c-stack (Depends-on): Add libsigsegv.
28244         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28245         needed.
28246         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28247         (segv_handler, overflow_handler, c_stack_action)
28248         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28249         implementation when libsigsegv is available, but only when using
28250         the library is necessary.
28251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28252         comment, explaining why XSI check fails on Linux.
28253         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28254         * tests/test-c-stack2.sh: Tweak skip message.
28255         * NEWS: Document new link-time requirements.
28256
28257 2008-07-16  Eric Blake  <ebb9@byu.net>
28258
28259         c-stack: Expose false positives when not using libsigsegv.
28260         * modules/c-stack-tests (Files): Expand test.
28261         * tests/test-c-stack.c (main): Add means to conditionally trigger
28262         non-overflow SIGSEGV.
28263         * tests/test-c-stack2.sh: New file.
28264
28265 2008-07-14  Bruno Haible  <bruno@clisp.org>
28266
28267         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28268         Reported by Eric Blake.
28269
28270 2008-07-14  Sam Steingold  <sds@gnu.org>
28271             Bruno Haible  <bruno@clisp.org>
28272
28273         New module libsigsegv.
28274         * modules/libsigsegv: New file.
28275         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28276         modifications.
28277         * MODULES.html.sh (Signal handling): New section.
28278
28279 2008-07-14  Bruno Haible  <bruno@clisp.org>
28280
28281         * modules/unictype/ctype-* (Description): Add the word "function".
28282         Improves the resulting doc in MODULES.html.
28283
28284 2008-07-12  Ben Pfaff  <blp@gnu.org>
28285
28286         Add longlong module.
28287         * modules/longlong: New file.
28288
28289 2008-07-12  Bruno Haible  <bruno@clisp.org>
28290
28291         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28292         to empty.
28293
28294 2008-07-10  Ben Pfaff  <blp@gnu.org>
28295
28296         Add isnan module.
28297         * doc/posix-functions/isnan.texi: Mention new module.
28298         * lib/math.in.h: Define isnan macro if we have decided to replace
28299         it.
28300         * m4/isnan.m4: New file.
28301         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28302         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28303         also.
28304         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28305         redundancy.
28306         * m4/math_h.m4: Initialize and substitute variables for isnan
28307         module.
28308         * modules/isnan: New file.
28309         * modules/isnan-tests: New file.
28310         * modules/math: Add substitutions for new module.
28311         * tests/test-isnan.c: New file.
28312         * MODULES.html.sh: Mention new module.
28313
28314 2008-07-10  Ben Pfaff  <blp@gnu.org>
28315
28316         Add isnanf module.
28317         * lib/isnanf.m4: New file.
28318         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28319         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28320         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28321         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28322         * modules/isnanf: New file.
28323         * modules/isnanf-tests: New file.
28324         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28325         files.
28326         * tests/test-isnanf-nolibm.c: factored most of its contents into
28327         new file tests/test-isnanf.h.
28328         * tests/test-isnanf.h: New file.
28329         * tests/test-isnanf.c: New file.
28330         * MODULES.html.sh: Mention new module.
28331         * doc/glibc-functions/isnanf.texi: Mention new module.
28332
28333 2008-07-10  Ben Pfaff  <blp@gnu.org>
28334
28335         Add isnand module.
28336         * lib/isnand.h: New file.
28337         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28338         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28339         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28340         functionality also.
28341         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28342         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28343         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28344         * modules/isnand: New file.
28345         * modules/isnand-tests: New file.
28346         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28347         files.
28348         * tests/test-isnand-nolibm.c: factored most of its contents into
28349         new file tests/test-isnand.h.
28350         * tests/test-isnand.h: New file.
28351         * tests/test-isnand.c: New file.
28352         * MODULES.html.sh: Mention new module.
28353
28354 2008-07-10  Ben Pfaff  <blp@gnu.org>
28355
28356         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28357         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28358         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28359         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28360         * modules/isnanf-nolibm: Update references to renamed files.
28361         * modules/isnand-nolibm: Likewise.
28362         * modules/isnanf-nolibm-tests: Likewise.
28363         * modules/isnand-nolibm-tests: Likewise.
28364         * lib/frexp.c: Likewise.
28365         * lib/isfinite.c: Likewise.
28366         * lib/signbitd.c: Likewise.
28367         * lib/signbitf.c: Likewise.
28368         * lib/vasnprintf.c: Likewise.
28369         * tests/test-ceilf1.c: Likewise.
28370         * tests/test-ceilf2.c: Likewise.
28371         * tests/test-floorf1.c: Likewise.
28372         * tests/test-floorf2.c: Likewise.
28373         * tests/test-frexp.c: Likewise.
28374         * tests/test-round1.c: Likewise.
28375         * tests/test-round2.c: Likewise.
28376         * tests/test-roundf1.c: Likewise.
28377         * tests/test-strtod.c: Likewise.
28378         * tests/test-trunc1.c: Likewise.
28379         * tests/test-trunc2.c: Likewise.
28380         * tests/test-truncf1.c: Likewise.
28381         * tests/test-truncf2.c: Likewise.
28382         * NEWS: Mention the renamed header files.
28383
28384 2008-07-11  Jim Meyering  <meyering@redhat.com>
28385
28386         vc-list-files: make the last-resort awk code more portable
28387         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28388         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28389         does not support it.
28390
28391 2008-07-10  Eric Blake  <ebb9@byu.net>
28392
28393         Work with tar's bootstrap.
28394         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28395         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28396         an m4 comment.
28397
28398 2008-07-09  Jim Meyering  <meyering@redhat.com>
28399
28400         posix-shell.m4: fix typo that made this test malfunction
28401         * m4/posix-shell.m4: Remove capitalization in variable name.
28402
28403 2008-07-08  Bruno Haible  <bruno@clisp.org>
28404
28405         * m4/onceonly.m4: Update comments.
28406         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28407
28408 2008-07-04  Jim Meyering  <meyering@redhat.com>
28409
28410         * users.txt: Add vc-dwim.
28411         (bison, coreutils): Use the gitweb URL.
28412
28413 2008-07-03  Jim Meyering  <meyering@redhat.com>
28414
28415         * users.txt: Add libffcall.  From Sam Steingold.
28416
28417 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28418
28419         getdate.y: do not ignore TZ with relative day, month or year offset
28420         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28421         relative-date-handling, since otherwise, the latter would clobber the
28422         sole output (an updated Start value) of the tz-handling block.
28423         * tests/test-getdate.c: Tests for the fix
28424
28425 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28426
28427         Recognize 'foo_LIBRARIES += libgnu.a'.
28428         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28429         makefile snippet has already specified an installation location,
28430         also using '+='.
28431
28432 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28433
28434         getdate.y: factor out common actions
28435         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28436         Use them in place of open-coded actions.
28437
28438 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28439
28440         Add self-test for getdate module.
28441         * modules/getdate-tests: New file.
28442         * tests/test-getdate.c: New file.
28443
28444 2008-06-29  Bruno Haible  <bruno@clisp.org>
28445
28446         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28447         .gitignore.
28448         Reported by Sylvain Beucler <beuc@beuc.net>.
28449
28450 2008-06-29  Bruno Haible  <bruno@clisp.org>
28451
28452         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28453         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28454
28455 2008-06-29  Bruno Haible  <bruno@clisp.org>
28456
28457         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28458         EXTRA_DIST.
28459         Reported by Sylvain Beucler <beuc@beuc.net>.
28460
28461 2008-06-26  Jim Meyering  <meyering@redhat.com>
28462
28463         make several modules depend on the "open" module
28464         This provides slightly increased consistency when opening-for-write
28465         the name of a non-directory spelled with a trailing slash.
28466         * modules/chdir-safer: Likewise.
28467         * modules/chown: Likewise.
28468         * modules/clean-temp: Likewise.
28469         * modules/copy-file: Likewise.
28470         * modules/fchdir: Likewise.
28471         * modules/fcntl-safer: Likewise.
28472         * modules/pipe: Likewise.
28473         * modules/utime: Likewise.
28474         Prompted by Eric Blake and Bruno Haible.
28475
28476 2008-06-24  Andreas Schwab  <schwab@suse.de>
28477
28478         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28479         literals can be used as initializers for global variables.
28480
28481 2008-06-23  Eric Blake  <ebb9@byu.net>
28482
28483         Make gnulib-cache.m4 easier to diff.
28484         * gnulib-tool (func_import): Allow newlines when reading cached
28485         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28486
28487 2008-06-23  Bruno Haible  <bruno@clisp.org>
28488
28489         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28490         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28491         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28492         m4/signalblocking.m4.
28493         (gl_PREREQ_SIGACTION): Don't invoke it.
28494         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28495         gl_PREREQ_SIG_HANDLER_H.
28496         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28497         Don't check for sigaction here.
28498
28499 2008-06-23  Bruno Haible  <bruno@clisp.org>
28500
28501         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28502         (install_handlers): Don't set the SA_RESETHAND flag.
28503
28504 2008-06-23  Bruno Haible  <bruno@clisp.org>
28505
28506         * m4/sigaction.m4: Comment fixes.
28507         * lib/signal.in.h: Likewise.
28508
28509 2008-06-23  Eric Blake  <ebb9@byu.net>
28510
28511         Fix typo.
28512         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28513
28514         Avoid SA_ namespace.
28515         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28516         Reported by Ralf Wildenhues.
28517
28518         Avoid test failure due to SA_RESTORER.
28519         * tests/test-sigaction.c (SA_MASK): New macro.
28520         (main): Avoid failing due to extension flags being set.
28521         Reported by Jim Meyering.
28522
28523         Revert use of sig-handler.h in sigprocmask.c.
28524         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28525         it requires the existence of struct sigaction.
28526         * lib/sigprocmask.c (handler_t): Restore typedef.
28527         (rpl_signal, old_handlers): Use local type.
28528
28529 2008-06-22  Bruno Haible  <bruno@clisp.org>
28530
28531         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28532         conditionally.
28533         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28534
28535 2008-06-22  Bruno Haible  <bruno@clisp.org>
28536
28537         * doc/posix-functions/siginterrupt.texi: Move note.
28538
28539         * lib/signal.in.h (SA_RESTART): New macro.
28540         * lib/sigaction.c: Update comment.
28541
28542         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28543
28544         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28545         (gl_PREREQ_SIGPROCMASK): Invoke it.
28546         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28547
28548         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28549
28550         * lib/sigprocmask.c: Update a comment.
28551
28552 2008-06-21  Eric Blake  <ebb9@byu.net>
28553
28554         Use sigaction module rather than signal().
28555         * modules/c-stack (Depends-on): Add sigaction.
28556         * modules/fatal-signal (Depends-on): Likewise.
28557         * modules/nanosleep (Depends-on): Likewise.
28558         * modules/sigprocmask (Files): Add sig-handler.h.
28559         * modules/sigaction (Files): Likewise.
28560         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28561         Eggert.
28562         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28563         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28564         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28565         (init_fatal_signals): Likewise.
28566         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28567         (siginterrupt): Delete fallback.
28568         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28569         instead.
28570         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28571         siginterrupt.
28572
28573         New module sigaction, for mingw.
28574         * modules/sigaction: New module...
28575         * modules/sigaction-tests: ...and its test.
28576         * m4/sigaction.m4: New file.
28577         * lib/sigaction.c: Likewise.
28578         * tests/test-sigaction.c: Likewise.
28579         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28580         * modules/signal (Makefile.am): Likewise.
28581         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28582         needed.
28583         * doc/posix-headers/signal.texi (signal.h): Mention provided
28584         types.
28585         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28586         that sigaction is preferable.
28587         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28588         module.
28589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28590         sigaction.
28591
28592         Improve robustness of sigprocmask by overriding signal.
28593         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28594         is in use.
28595         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28596         (SIGKILL, SIGSTOP): Provide fallbacks.
28597         (rpl_signal): Implement.
28598         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28599         signal can be called inside handlers.
28600
28601         Fix nanosleep module on mingw.
28602         * modules/nanosleep (Depends-on): Add sys_select.
28603         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28604
28605         Fix licensing of sigprocmask.
28606         * modules/raise (License): Relicense as LGPL.
28607
28608 2008-06-21  Bruno Haible  <bruno@clisp.org>
28609
28610         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28611         result if it contains question marks.
28612         Reported by Michael Geng <linux@michaelgeng.de>.
28613
28614 2008-06-19  Bruno Haible  <bruno@clisp.org>
28615
28616         Fix CVS-ism.
28617         * doc/gnulib.texi: Include updated-stamp.texi.
28618         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28619         (updated-stamp.texi): New rule.
28620         (gnulib.info): Depend on it.
28621         * doc/.gitignore: Add updated-stamp.texi.
28622         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28623
28624 2008-06-19  Bruno Haible  <bruno@clisp.org>
28625
28626         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28627         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28628
28629 2008-06-19  Eric Blake  <ebb9@byu.net>
28630
28631         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28632         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28633         Reported by Stepan Kasal.
28634
28635 2008-06-18  Bruno Haible  <bruno@clisp.org>
28636
28637         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28638         Reported by Eric Blake.
28639
28640 2008-06-18  Eric Blake  <ebb9@byu.net>
28641
28642         Work around cygwin 1.5.25 strsignal bug.
28643         * tests/test-strsignal.c: Allow for const char *.
28644         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28645
28646 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28647
28648         * users.txt: Update URL to article and add author/date
28649         information.
28650
28651 2008-06-17  Bruno Haible  <bruno@clisp.org>
28652
28653         New macro gl_DISABLE_THREADS.
28654         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28655         if the user did not pass --enable-threads or --disable-threads option.
28656         (gl_DISABLE_THREADS): New macro.
28657         Reported by Eric Blake <ebb9@byu.net>.
28658
28659 2008-06-17  Bruno Haible  <bruno@clisp.org>
28660
28661         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28662         when the macro ignores it.
28663         Based on a patch by Eric Blake <ebb9@byu.net>.
28664
28665 2008-06-17  Bruno Haible  <bruno@clisp.org>
28666
28667         * modules/tls (License): Change to LGPLv2+.
28668         Reported by Eric Blake.
28669
28670 2008-06-17  Eric Blake  <ebb9@byu.net>
28671
28672         Simplify c-stack prerequisites.
28673         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28675         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28676         check.
28677         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28678         <sys/resource.h>.
28679
28680         Move c-stack test into testsuite.
28681         * modules/c-stack-tests: New file.
28682         * lib/c-stack.c [DEBUG]: Move test program...
28683         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28684         fail test if sigaltstack is lacking.
28685         * tests/test-c-stack.sh: New driver file.
28686
28687 2008-06-16  Eric Blake  <ebb9@byu.net>
28688
28689         Use raise module consistently.
28690         * modules/fatal-signal (Depends-on): Add raise.
28691         * modules/sigprocmask (Depends-on): Likewise.
28692         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28693         * lib/sigprocmask.c (sigprocmask): Likewise.
28694         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28695         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28696
28697         Fix compliance bug in sigpending.
28698         * lib/sigprocmask.c (sigpending): Return pending array via
28699         parameter, not return value.
28700
28701 2008-06-14  Eric Blake  <ebb9@byu.net>
28702
28703         Improve obstack-printf test code.
28704         * tests/test-obstack-printf.c (test_function): Fix comment, and
28705         simplify usage of obstack_* in macros.  Add a test for coverage.
28706         Reported by Bruno Haible.
28707
28708 2008-06-14  Bruno Haible  <bruno@clisp.org>
28709
28710         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28711         array size as a constant, not as a const variable.
28712         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28713         AC_USE_SYSTEM_EXTENSIONS.
28714         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28715         Test whether the obstack_printf function actually exists.
28716         * modules/obstack-printf (Depends-on): Add extensions.
28717         (Include): Remove obstack.h.
28718         * modules/obstack-printf-posix (Depends-on): Add extensions.
28719         (Include): Remove obstack.h.
28720
28721 2008-06-13  Eric Blake  <ebb9@byu.net>
28722
28723         Add obstack-printf and obstack-printf-posix modules.
28724         * modules/obstack-printf: New file.
28725         * modules/obstack-printf-posix: Likewise.
28726         * MODULES.html.sh (Misc): Mention them.
28727         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28728         Likewise.
28729         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28730         Likewise.
28731         * modules/stdio (Makefile.am): Accomodate new modules.
28732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28733         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28734         Declare.
28735         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28736         functions.
28737         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28738         (gl_REPLACE_OBSTACK_PRINTF): New macros
28739         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28740         * tests/test-obstack-printf.c: New file.
28741         * modules/obstack-printf-tests: Likewise.
28742         * modules/obstack-printf-posix-tests: Likewise.
28743
28744 2008-06-11  Bruno Haible  <bruno@clisp.org>
28745
28746         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28747         * lib/open.c: Include errno.h.
28748         (open): Fail when attempting to write to a file that has a trailing
28749         slash.
28750         * tests/test-open.c (main): Test against trailing slash bug.
28751         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28752
28753 2008-06-10  Bruno Haible  <bruno@clisp.org>
28754
28755         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28756         for $? to work inside the trap command, with various /bin/sh-s.
28757         * tests/test-vc-list-files-cvs.sh: Likewise.
28758
28759 2008-06-10  Bruno Haible  <bruno@clisp.org>
28760
28761         * lib/acl-internal.h: Don't include gettext.h here.
28762         * lib/set-mode-acl.c: Include gettext.h here.
28763         * lib/copy-acl.c: Likewise.
28764
28765 2008-06-10  Bruno Haible  <bruno@clisp.org>
28766
28767         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28768         * lib/wait-process.c (wait_subprocess): Likewise.
28769         * lib/execute.h (execute): Add termsigp argument.
28770         * lib/execute.c (execute): Likewise.
28771         * lib/csharpcomp.c (compile_csharp_using_pnet,
28772         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28773         * lib/csharpexec.c (execute_csharp_using_pnet,
28774         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28775         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28776         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28777         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28778         is_jikes_present): Update.
28779         * lib/javaexec.c (execute_java_class): Update.
28780         * lib/javaversion.c (execute_and_read_line): Update.
28781         * NEWS: Document the changes.
28782         Reported by Eric Blake.
28783
28784 2008-06-10  Eric Blake  <ebb9@byu.net>
28785
28786         Add missing include.
28787         * tests/test-strstr.c (includes): Add <signal.h>.
28788         * tests/test-strcasestr.c (includes): Likewise.
28789         * tests/test-memmem.c (includes): Likewise.
28790
28791 2008-06-10  Bruno Haible  <bruno@clisp.org>
28792
28793         * lib/wait-process.c (wait_subprocess): Add an assertion.
28794
28795 2008-06-10  Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28798
28799 2008-06-10  Bruno Haible  <bruno@clisp.org>
28800
28801         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28802         using alarm().
28803         * tests/test-strcasestr.c (main): Likewise.
28804         * tests/test-strstr.c (main): Likewise.
28805
28806 2008-06-09  Bruno Haible  <bruno@clisp.org>
28807
28808         Work around the Solaris 10 ACE ACLs ABI change.
28809         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28810         declare if ACL_NO_TRIVIAL is present.
28811         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28812         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28813         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28814         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28815         define if ACL_NO_TRIVIAL is present.
28816         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28817         and use the current ABI.
28818         (file_has_acl): Use same #if condition as elsewhere.
28819         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28820         in use, and use the current ABI.
28821         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28822         Reported by Jim Meyering.
28823
28824 2008-06-09  Eric Blake  <ebb9@byu.net>
28825
28826         Work around environments that (stupidly) ignore SIGALRM.
28827         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28828         before using alarm().
28829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28831         Reported by Ian Beckwith <ianb@erislabs.net>.
28832
28833         Produce autobuild blurb earlier in log.
28834         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28835
28836 2008-06-09  Jim Meyering  <meyering@redhat.com>
28837         and Ondřej Vašík  <ovasik@redhat.com>
28838
28839         utimens.c: correct kernel bug work-around
28840         Ondřej Vašík found that the invalid return value of 280 indicates
28841         failure, not success, and the kernel bug we're trying to work
28842         around affects not just the utimensat call, but also the fallback
28843         futimens call.
28844         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28845         not success.
28846         [HAVE_FUTIMENS]: Use the same work-around, here.
28847
28848 2008-06-09  Jim Meyering  <meyering@redhat.com>
28849
28850         add more guards around definition of ACE_-related code
28851         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28852         ALLOW and ACE_OWNER are also defined.
28853
28854 2008-06-08  Bruno Haible  <bruno@clisp.org>
28855
28856         * lib/acl-internal.h: Add me as co-author.
28857         * lib/file-has-acl.c: Likewise.
28858         * lib/set-mode-acl.c: Likewise.
28859         * lib/copy-acl.c: Likewise.
28860
28861 2008-06-08  Bruno Haible  <bruno@clisp.org>
28862
28863         Add support for AIX ACLs.
28864         * lib/acl-internal.h (acl_nontrivial): New declaration.
28865         * lib/file-has-acl.c (acl_nontrivial): New function.
28866         (file_has_acl): Add implementation using AIX 4 ACL API.
28867         * lib/set-mode-acl.c (qset_acl): Likewise.
28868         * lib/copy-acl.c (qcopy_acl): Likewise.
28869
28870 2008-06-08  Bruno Haible  <bruno@clisp.org>
28871
28872         Add support for HP-UX ACLs.
28873         * lib/acl-internal.h (acl_nontrivial): New declaration.
28874         * lib/file-has-acl.c (acl_nontrivial): New function.
28875         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28876         * lib/set-mode-acl.c (qset_acl): Likewise.
28877         * lib/copy-acl.c (qcopy_acl): Likewise.
28878
28879 2008-06-08  Bruno Haible  <bruno@clisp.org>
28880
28881         Add support for Cygwin ACLs.
28882         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28883         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28884         the chmod_or_fchmod call.
28885         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28886
28887 2008-06-08  Bruno Haible  <bruno@clisp.org>
28888
28889         Fix bug with setuid modes in Solaris 10+ code.
28890         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28891         succeeded, when the mode contains some special bits.
28892
28893 2008-06-08  Bruno Haible  <bruno@clisp.org>
28894
28895         Add support for Solaris 7..10 ACLs.
28896         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28897         declarations.
28898         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28899         functions.
28900         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28901         * lib/set-mode-acl.c (qset_acl): Likewise.
28902         * lib/copy-acl.c (qcopy_acl): Likewise.
28903
28904 2008-06-08  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28907         declaration.
28908         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28909         (acl_access_nontrivial): Remove MacOS X case.
28910         (file_has_acl): Use acl_extended_nontrivial.
28911         * lib/copy-acl.c (qcopy_acl): Likewise.
28912
28913 2008-06-08  Bruno Haible  <bruno@clisp.org>
28914
28915         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28916
28917 2008-06-08  Jim Meyering  <meyering@redhat.com>
28918
28919         * modules/acl (Maintainer): Add Bruno Haible.
28920
28921 2008-06-07  Bruno Haible  <bruno@clisp.org>
28922
28923         Improve support for Tru64 ACLs.
28924         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28925         ACL on OSF/1.
28926
28927 2008-06-07  Bruno Haible  <bruno@clisp.org>
28928
28929         Add support for MacOS X ACLs.
28930         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28931         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28932         * lib/set-mode-acl.c (qset_acl): Likewise.
28933         * lib/copy-acl.c (qcopy_acl): Likewise.
28934
28935 2008-06-07  Bruno Haible  <bruno@clisp.org>
28936
28937         Fix memory leak introduced on 2008-05-22.
28938         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28939         use.
28940
28941 2008-06-07  Bruno Haible  <bruno@clisp.org>
28942
28943         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28944         to construct an empty ACL.
28945
28946 2008-06-07  Bruno Haible  <bruno@clisp.org>
28947
28948         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28949         precisely.
28950         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28951
28952 2008-06-07  Bruno Haible  <bruno@clisp.org>
28953
28954         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28955         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28956
28957 2008-06-07  Bruno Haible  <bruno@clisp.org>
28958
28959         * doc/posix-functions/_setjmp.texi: Explain the use of this function
28960         regardless of POSIX.
28961         * doc/posix-functions/_longjmp.texi: Likewise.
28962         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
28963         SystemV platform in this case.
28964
28965 2008-06-06  Eric Blake  <ebb9@byu.net>
28966
28967         Document abort() bugs.
28968         * doc/posix-functions/abort.texi (abort): Mention anomalies.
28969
28970         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
28971         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
28972         sigsetjmp.
28973         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
28974         siglongjmp, but only as a macro.
28975         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
28976         is obsolete.
28977         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
28978
28979         Tweak documentation to cover cygwin argz bugs.
28980         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
28981         argz bug fix; no code change needed since no cygwin releases
28982         occurred between the last fix and the bug being tested.
28983         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28984         module and recently fixed cygwin bugs.
28985         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
28986         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
28987         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
28988         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
28989         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
28990         Likewise.
28991         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
28992         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
28993         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
28994         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
28995         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
28996         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
28997         Likewise.
28998
28999         Avoid gcc warning on cygwin.
29000         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29001         !ACL_NO_TRIVIAL]: Avoid unused variable.
29002
29003 2008-06-05  Eric Blake  <ebb9@byu.net>
29004
29005         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29006         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29007         git-version-gen fails to come up with a version.
29008         Reported by Simon Josefsson.
29009
29010 2008-06-05  Jim Meyering  <meyering@redhat.com>
29011             Paul Eggert  <eggert@cs.ucla.edu>
29012
29013         utimens.c: work around a probable Linux kernel bug
29014         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29015         appears to be a kernel bug that causes utimensat to return 280
29016         instead of 0, indicating success.
29017
29018 2008-06-04  Bruno Haible  <bruno@clisp.org>
29019
29020         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29021         2008-06-01 commit.
29022
29023 2008-06-04  Bruno Haible  <bruno@clisp.org>
29024
29025         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29026         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29027         (file_has_acl): Use it. Save errno afterwards.
29028         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29029
29030 2008-06-03  Bruno Haible  <bruno@clisp.org>
29031
29032         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29033         draft code. Simplify #ifs.
29034         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29035         Put Solaris code after POSIX-draft code. Fix comments regarding
29036         Solaris 10, HP-UX. Mention Cygwin.
29037         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29038
29039 2008-06-03  Eric Blake  <ebb9@byu.net>
29040
29041         Provide fallback for older kernels.
29042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29043         Provide runtime fallback if kernel lacks support.
29044         Reported by Mike Frysinger.
29045
29046 2008-06-02  Bruno Haible  <bruno@clisp.org>
29047
29048         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29049         it exists.
29050
29051 2008-06-02  Bruno Haible  <bruno@clisp.org>
29052
29053         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29054         * lib/copy-acl.c (qcopy_acl): Update comment.
29055
29056 2008-06-02  Bruno Haible  <bruno@clisp.org>
29057
29058         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29059         like ACL APIs.
29060
29061 2008-06-02  Bruno Haible  <bruno@clisp.org>
29062
29063         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29064         * tests/test-set-mode-acl.sh: Likewise.
29065         * tests/test-copy-acl.sh: Likewise.
29066         * tests/test-copy-file.sh: Likewise.
29067
29068 2008-06-02  Bruno Haible  <bruno@clisp.org>
29069
29070         * tests/test-file-has-acl.sh: Remove unused code.
29071
29072 2008-06-01  Bruno Haible  <bruno@clisp.org>
29073
29074         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29075         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29076         messages.
29077         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29078
29079 2008-06-01  Bruno Haible  <bruno@clisp.org>
29080
29081         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29082         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29083         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29084         APIs.
29085         * modules/acl-tests (configure.ac): Remove tests now contained in
29086         m4/acl.m4.
29087
29088 2008-06-02  Jim Meyering  <meyering@redhat.com>
29089
29090         announce-gen: use a better key-server host name
29091         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29092         it may be more consistently reliable.  Suggested by Werner Koch
29093         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29094
29095 2008-06-01  Bruno Haible  <bruno@clisp.org>
29096
29097         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29098         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29099
29100 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29101
29102         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29103
29104 2008-06-01  Bruno Haible  <bruno@clisp.org>
29105
29106         New ACL tests.
29107         * tests/test-file-has-acl.sh: New file.
29108         * tests/test-file-has-acl.c: New file.
29109         * tests/test-set-mode-acl.sh: New file.
29110         * tests/test-set-mode-acl.c: New file.
29111         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29112         * tests/test-copy-acl.c: New file.
29113         * modules/acl-tests: New file, based on modules/copy-file-tests.
29114         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29115         (Depends-on): Add acl-tests.
29116         (configure.ac): Remove checks.
29117         (Makefile.am): Don't create test-sameacls program here any more.
29118
29119 2008-06-01  Bruno Haible  <bruno@clisp.org>
29120
29121         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29122         * tests/test-sameacls.c: Include progname.h.
29123         (main): Invoke set_program_name. Portability fixes for MacOS X,
29124         Solaris, HP-UX.
29125
29126 2008-06-01  Bruno Haible  <bruno@clisp.org>
29127
29128         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29129         function.
29130         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29131
29132 2008-06-01  Bruno Haible  <bruno@clisp.org>
29133
29134         * modules/rpmatch (Depends-on): Add strdup.
29135
29136 2008-06-01  Bruno Haible  <bruno@clisp.org>
29137
29138         * lib/pipe.c: Include unistd-safer.h.
29139         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29140         * modules/pipe (Depends-on): Add unistd-safer.
29141
29142 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29143
29144         * modules/autobuild (configure.ac): Call AB_INIT.
29145
29146 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29147
29148         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29149         Suggested by Bruno Haible <bruno@clisp.org>.
29150
29151 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29152
29153         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29154         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29155         <bruno@clisp.org>.
29156
29157 2008-05-29  Eric Blake  <ebb9@byu.net>
29158
29159         Prefer new POSIX 200x interfaces over futimesat.
29160         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29161         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29162         when available.
29163         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29164
29165 2008-05-28  Bruno Haible  <bruno@clisp.org>
29166
29167         * modules/stpcpy (License): Change to LGPLv2+.
29168         Requested by David Lutterkort <dlutter@redhat.com>.
29169
29170 2008-05-27  Bruno Haible  <bruno@clisp.org>
29171
29172         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29173         current mingw.
29174         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29175
29176 2008-05-27  Bruno Haible  <bruno@clisp.org>
29177
29178         * modules/iconv_open (Link): New section, from module 'iconv'.
29179         * modules/striconv (Link): Likewise.
29180         * modules/striconveh (Link): Likewise.
29181         * modules/xstriconv (Link): Likewise.
29182         * modules/unicodeio (Link): Likewise.
29183         * modules/propername (Link): Likewise.
29184         Reported by Jim Meyering.
29185
29186 2008-05-26  Jim Meyering  <meyering@redhat.com>
29187
29188         sha256: do not artificially restrict buffer length to be < 2^32
29189         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29190         uint32_t to size_t.
29191         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29192         to match.
29193
29194         avoid unaligned access errors, e.g., on sparc
29195         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29196         direct access through a possibly-unaligned uint64* pointer.
29197         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29198         direct access through a possibly-unaligned uint32* pointer.
29199         Prompted by this patch from Tom "spot" Callaway:
29200         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29201
29202         sha512.c: fix typo in comment
29203         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29204
29205 2008-05-25  Bruno Haible  <bruno@clisp.org>
29206
29207         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29208         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29209         (Makefile.am): Update lib_SOURCES.
29210
29211 2008-05-25  Bruno Haible  <bruno@clisp.org>
29212
29213         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29214
29215 2008-05-25  Jim Meyering  <meyering@redhat.com>
29216
29217         useless-if-before-free: freed expr may have white-space differences
29218         * build-aux/useless-if-before-free: Recognize cases in which the
29219         freed expression differs from the tested one in embedded white
29220         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29221         $1 was used, so we can't make any regexp shy.  Improved tests now
29222         detect this.
29223
29224         useless-if-before-free: accept white space in the expression.
29225         * build-aux/useless-if-before-free: For now, any white space
29226         in the expression must be identical in the free argument.
29227
29228         useless-if-before-free: efficiency tweak
29229         * build-aux/useless-if-before-free: Make the expression-matching
29230         regexp "shy".
29231         Make the *outer* regexp shy, not the expr-matching one.
29232
29233         update code-in-comment to accept cast of free arg
29234         * build-aux/useless-if-before-free: Update regexp.
29235
29236 2008-05-25  Bruno Haible  <bruno@clisp.org>
29237
29238         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29239         * modules/copy-file-tests (Files, Makefile.am): Update.
29240         * tests/test-copy-file.c (func_test_copy): Update.
29241
29242 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29243
29244         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29245
29246 2008-05-23  Bruno Haible  <bruno@clisp.org>
29247
29248         Improve support for ACLs on OSF/1.
29249         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29250         Remove fallback for unknown flavors of ACLs.
29251
29252 2008-05-22  Bruno Haible  <bruno@clisp.org>
29253
29254         Add support for ACLs on OSF/1.
29255         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29256         replacements.
29257         (acl_free_text): New macro fallback.
29258         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29259         acl_free.
29260         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29261         acl_free_text function. Require AC_C_INLINE.
29262
29263 2008-05-22  Bruno Haible  <bruno@clisp.org>
29264
29265         Make copy_acl work on MacOS X 10.5.
29266         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29267         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29268         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29269         If MODE_INSIDE_ACL, don't assume that every system has the same text
29270         representation for ACLs as FreeBSD.
29271         * lib/copy-acl.c (copy_acl): Add support for platforms with
29272         !MODE_INSIDE_ACL.
29273         * lib/file-has-acl.c (file_has_acl): Likewise.
29274         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29275         FreeBSD, MacOS X, or IRIX, respectively.
29276
29277 2008-05-22  Bruno Haible  <bruno@clisp.org>
29278
29279         * lib/acl.h: Don't include <sys/acl.h>.
29280         (GETACLCNT): Move fallback to lib/acl-internal.h.
29281         * lib/acl-internal.h: Include <sys/acl.h> here.
29282         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29283
29284 2008-05-22  Bruno Haible  <bruno@clisp.org>
29285
29286         Split off copy_acl function to separate file.
29287         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29288         * lib/acl.c (copy_acl): Moved function to separate file.
29289         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29290         * modules/acl (Files): Add lib/copy-acl.c.
29291         (Makefiles.am): Augment lib_SOURCES.
29292
29293 2008-05-22  Bruno Haible  <bruno@clisp.org>
29294
29295         * modules/copy-file-tests: New file.
29296         * tests/test-copy-file.sh: New file.
29297         * tests/test-copy-file.c: New file.
29298         * tests/test-copy-file-sameacls.c: New file.
29299
29300 2008-05-22  Eric Blake  <ebb9@byu.net>
29301
29302         Avoid gcc warning.
29303         * tests/test-memcmp.c (main): Pass NULL indirectly.
29304
29305 2008-05-21  Bruno Haible  <bruno@clisp.org>
29306
29307         Add reference doc about ACLs.
29308         * doc/acl-resources.txt: New file.
29309         * doc/acl-cygwin.txt: New file.
29310
29311 2008-05-21  Bruno Haible  <bruno@clisp.org>
29312
29313         Avoid one more warning from gcc.
29314         * lib/vasnprintf.c (IF_LINT): Update comments.
29315         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29316
29317 2008-05-21  Jim Meyering  <meyering@redhat.com>
29318
29319         avoid a warning from gcc
29320         * lib/vasnprintf.c (IF_LINT): Define.
29321         (scale10_round_decimal_long_double):
29322         Use it to avoid a "may be used uninitialized" warning.
29323         (scale10_round_decimal_double): Likewise.
29324
29325 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29326
29327         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29328         declared.
29329
29330 2008-05-20  Bruno Haible  <bruno@clisp.org>
29331
29332         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29333         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29334
29335 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29336
29337         * modules/memcmp-tests: New file.
29338         * tests/test-memcmp.c: New file.
29339
29340 2008-05-19  Bruno Haible  <bruno@clisp.org>
29341
29342         * modules/propername (Notice, configure.ac): Put quoted "..." into
29343         --keyword option.
29344         * lib/propername.h: Update comments accordingly.
29345         Reported by Eric Blake.
29346
29347 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29348
29349         * modules/getpass-gnu (Depends-on): Add fseeko.
29350
29351 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29352
29353         * modules/base64-tests: New file.
29354
29355 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29356
29357         * lib/base64.c (base64_decode_ctx): If a decode context structure
29358         was passed in use it to ignore newlines.  If a context structure
29359         was _not_ passed in, continue to treat newlines as garbage (this
29360         is the historical behavior).  Formerly base64_decode.
29361         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29362         takes a decode context structure.
29363         * lib/base64.h (base64_decode): Macro for four-argument calls.
29364         (base64_decode_alloc): Likewise.
29365         * lib/base64.c (base64_decode_ctx): If a decode context structure
29366         was passed in use it to ignore newlines.  If a context structure
29367         was _not_ passed in, continue to treat newlines as garbage (this
29368         is the historical behavior).  Formerly base64_decode.
29369         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29370         takes a decode context structure.
29371         * lib/base64.h (base64_decode): Macro for four-argument calls.
29372         (base64_decode_alloc): Likewise.
29373
29374 2008-05-19  Jim Meyering  <meyering@redhat.com>
29375
29376         avoid a warning from gcc
29377         * lib/trim.c (IF_LINT): Define.
29378         (trim2): Use it to avoid a "may be used uninitialized" warning.
29379
29380         Fix doc typo.
29381         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29382
29383 2008-05-19  Bruno Haible  <bruno@clisp.org>
29384
29385         * doc/glibc-functions/getpass.texi: Document limits of other
29386         implementations.
29387
29388 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29389             Bruno Haible <bruno@clisp.org>
29390
29391         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29392
29393 2008-05-18  Bruno Haible  <bruno@clisp.org>
29394
29395         * modules/propername: New file, from GNU gettext.
29396         * lib/propername.h: New file, from GNU gettext.
29397         * lib/propername.c: New file, from GNU gettext.
29398         * MODULES.html.sh (Internationalization functions): Add propername.
29399
29400 2008-05-16  Jim Meyering  <meyering@redhat.com>
29401             Bruno Haible  <bruno@clisp.org>
29402
29403         Avoid some warnings from "gcc -Wshadow".
29404         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29405
29406 2008-05-15  Eric Blake  <ebb9@byu.net>
29407
29408         Extend previous patch to cygwin 1.7.0.
29409         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29410         fast implementation in cygwin >= 1.7.0.
29411         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29413
29414 2008-05-15  Bruno Haible  <bruno@clisp.org>
29415
29416         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29417         implementation in glibc >= 2.9.
29418         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29420
29421 2008-05-15  Bruno Haible  <bruno@clisp.org>
29422
29423         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29424         (Unicode string functions): Add unilbrk/*.
29425         Reported by Karl Berry.
29426
29427 2008-05-15  Eric Blake  <ebb9@byu.net>
29428
29429         Fix violation of <stdbool.h> replacement in regex.
29430         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29431         * lib/regexec.c (re_search_internal): Likewise.
29432         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29433
29434 2008-05-15  Jim Meyering  <meyering@redhat.com>
29435
29436         avoid distracting test output when git or cvs is not found
29437         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29438         * tests/test-vc-list-files-git.sh: Likewise.
29439
29440 2008-05-15  Eric Blake  <ebb9@byu.net>
29441
29442         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29443         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29444         glibc version.
29445         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29446         * doc/posix-functions/strstr.texi (strstr): Likewise.
29447         * lib/str-two-way.h (MAX): Sychronize with glibc.
29448
29449 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29450
29451         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29452         opr.ctx_type.
29453         (calc_first): Initialize constraint field.
29454         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29455         Fix grammar.
29456         (duplicate_node): Merge constraint field for all node types.
29457         (calc_eclosure_iter): Look at constraint field for all node types.
29458         * lib/regex_internal.c (create_cd_newstate): Don't look at
29459         opr.ctx_type.
29460
29461 2008-05-14  Bruno Haible  <bruno@clisp.org>
29462
29463         Help GCC to do better code generation.
29464         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29465         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29466         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29467         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29468         Declare with attribute 'malloc' if supported.
29469
29470 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29471
29472         use "echo STR|wc -c" rather than unportable "expr length STR"
29473         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29474         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29475
29476 2008-05-14  Jim Meyering  <meyering@redhat.com>
29477
29478         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29479         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29480         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29481         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29482         via Collin Lasse.
29483
29484 2008-05-14  Eric Blake  <ebb9@byu.net>
29485
29486         Avoid quadratic growth in gl_LIBSOURCES.
29487         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29488         Suggested by Bruno Haible.
29489
29490         Test xmemdup0.
29491         * modules/xmemdup0-tests: New file.
29492         * tests/test-xmemdup0.c: Likewise.
29493
29494 2008-05-13  Eric Blake  <ebb9@byu.net>
29495
29496         Split xmemdup0 into its own module.
29497         * modules/xmemdup0: New file.
29498         * lib/xmemdup0.h: Likewise.
29499         * lib/xmemdup0.c: Likewise.
29500         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29501         * lib/xalloc.h (xmemdup0): Remove.
29502         * lib/xmalloc.c (xmemdup0): Likewise.
29503
29504 2008-05-13  Eric Blake  <ebb9@byu.net>
29505             Bruno Haible  <bruno@clisp.org>
29506
29507         Reduce number of forks required during autoconf.
29508         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29509         and gl_LIBSOURCES_DIR.
29510         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29511         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29512         m4_syscmd per file.
29513         <m4_foreach_w>: Move...
29514         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29515
29516 2008-05-13  Eric Blake  <ebb9@byu.net>
29517
29518         * gnulib-tool: Fix various comment typos.
29519
29520 2008-05-12  Bruno Haible  <bruno@clisp.org>
29521
29522         Tailor the linebreaking algorithm.
29523         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29524
29525 2008-05-12  Bruno Haible  <bruno@clisp.org>
29526
29527         Update to Unicode 5.0.0.
29528         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29529         LBP_JV, LBP_JT. Redistribute values.
29530         (unilbrk_table): Change size.
29531         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29532         Unicode TR#14 rev. 22.
29533         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29534         LBP_JV, LBP_JT. Redistribute values.
29535         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29536         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29537         Update.
29538         * lib/unilbrk/lbrkprop1.h: Regenerated.
29539         * lib/unilbrk/lbrkprop2.h: Regenerated.
29540         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29541         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29542         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29543         Likewise.
29544         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29545         Likewise.
29546         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29547         result.
29548         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29549         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29550         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29551         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29552         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29553         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29554
29555 2008-05-11  Bruno Haible  <bruno@clisp.org>
29556
29557         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29558
29559 2008-05-11  Bruno Haible  <bruno@clisp.org>
29560
29561         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29562         * modules/unilbrk/gen-lbrk: New file.
29563
29564 2008-05-11  Bruno Haible  <bruno@clisp.org>
29565
29566         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29567         * m4/sha512.m4 (gl_SHA512): Likewise.
29568
29569 2008-05-11  Jim Meyering  <meyering@redhat.com>
29570
29571         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29572         * modules/crypto/sha256: New file.
29573         * modules/crypto/sha512: Likewise.
29574         * lib/sha256.c: Likewise.
29575         * lib/sha256.h: Likewise.
29576         * lib/sha512.c: Likewise.
29577         * lib/sha512.h: Likewise.
29578         * lib/u64.h: Likewise.
29579         * m4/sha256.m4: Likewise.
29580         * m4/sha512.m4: Likewise.
29581         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29582
29583 2008-05-10  Bruno Haible  <bruno@clisp.org>
29584
29585         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29586         (Input/Output <stdio.h>): Add xprintf.
29587         (Signal handling <signal.h>): Add strsignal.
29588         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29589         (Core language properties): Add func.
29590         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29591         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29592         strings.
29593         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29594         (Input/output): New section.
29595         (File system functions): Add openat-die, stat-macros.
29596         (Networking functions): Add sockets.
29597         (Unicode string functions): Add unictype/*.
29598         (Support for building libraries and executables): Add gperf.
29599         (Support for building documentation): Add agpl-3.0.
29600         (Misc): Add nocrash.
29601
29602 2008-05-10  Bruno Haible  <bruno@clisp.org>
29603
29604         * modules/unictype/gen-ctype: New file.
29605
29606 2008-05-10  Jim Meyering  <meyering@redhat.com>
29607
29608         Make chdir-safer.c more efficient on a system with no symlinks.
29609         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29610         also if ELOOP is zero.  Suggested by Bruno Haible.
29611
29612         Make chdir-safer.c slightly safer.
29613         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29614         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29615
29616         Avoid compile failure on systems without ELOOP (like mingw).
29617         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29618         Reported by Bruno Haible.
29619
29620 2008-05-10  Bruno Haible  <bruno@clisp.org>
29621
29622         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29623         (is_utf8_encoding): Use a case-insensitive comparison.
29624         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29625         streq.
29626
29627 2008-05-10  Bruno Haible  <bruno@clisp.org>
29628
29629         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29630         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29631         * lib/unilbrk/ulc-common.h (iconv_string_length,
29632         iconv_string_keeping_offsets): Remove declarations.
29633         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29634         Don't include <iconv.h>, streq.h, xsize.h.
29635         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29636         conversion.
29637         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29638         <iconv.h>, streq.h, xsize.h.
29639         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29640         conversion.
29641         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29642         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29643         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29644         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29645
29646 2008-05-10  Bruno Haible  <bruno@clisp.org>
29647
29648         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29649         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29650
29651         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29652         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29653
29654         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29655         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29656
29657         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29658         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29659
29660         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29661         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29662
29663         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29664         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29665
29666         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29667         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29668
29669         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29670         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29671
29672 2008-05-10  Bruno Haible  <bruno@clisp.org>
29673
29674         Split up 'linebreak' module.
29675         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29676         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29677         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29678         modifications.
29679         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29680         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29681         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29682         lib/linebreak.c.
29683         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29684         lib/linebreak.c.
29685         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29686         lib/linebreak.c.
29687         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29688         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29689         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29690         lib/linebreak.c.
29691         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29692         lib/linebreak.c.
29693         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29694         lib/linebreak.c.
29695         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29696         lib/linebreak.c.
29697         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29698         lib/linebreak.c.
29699         * modules/unilbrk/base: New file.
29700         * modules/unilbrk/tables: New file.
29701         * modules/unilbrk/u8-possible-linebreaks: New file.
29702         * modules/unilbrk/u16-possible-linebreaks: New file.
29703         * modules/unilbrk/u32-possible-linebreaks: New file.
29704         * modules/unilbrk/ulc-common: New file.
29705         * modules/unilbrk/ulc-possible-linebreaks: New file.
29706         * modules/unilbrk/u8-width-linebreaks: New file.
29707         * modules/unilbrk/u16-width-linebreaks: New file.
29708         * modules/unilbrk/u32-width-linebreaks: New file.
29709         * modules/unilbrk/ulc-width-linebreaks: New file.
29710         * lib/linebreak.h: Remove file.
29711         * lib/linebreak.c: Remove file.
29712         * m4/linebreak.m4: Remove file.
29713         * modules/linebreak: Remove file.
29714         * NEWS: Mention the changes.
29715
29716 2008-05-09  Eric Blake  <ebb9@byu.net>
29717
29718         Add xmemdup0.
29719         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29720         implementation.
29721         * lib/xmalloc.c (xmemdup0): New C implementation.
29722
29723 2008-05-08  Bruno Haible  <bruno@clisp.org>
29724
29725         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29726
29727 2008-05-07  Eric Blake  <ebb9@byu.net>
29728
29729         Support cross-compilation of <wctype.h>.
29730         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29731         AC_CACHE_CHECK.
29732
29733 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29734
29735         * build-aux/vc-list-files: Add support for bzr.
29736
29737 2008-05-03  Jim Meyering  <meyering@redhat.com>
29738
29739         avoid failed assertion with tight malloc
29740         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29741
29742 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29743
29744         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29745         are needed from arpa/inet.h.
29746         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29747         Reported by Bruno Haible.
29748
29749 2008-05-02  Jim Meyering  <meyering@redhat.com>
29750
29751         avoid compilation error on FreeBSD 6
29752         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29753
29754 2008-05-01  Jim Meyering  <meyering@redhat.com>
29755
29756         useless-if-before-free: correct --help's exit status description
29757         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29758         for one or more matches, etc.  Reported by Bruno Haible.
29759
29760         vc-list-files: make the stand-alone gnulib test work
29761         * modules/vc-list-files-tests (configure.ac):
29762         Define and AC_SUBST abs_aux_dir.
29763         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29764         $(abs_top_srcdir) to each script and having each of them
29765         duplicate the work of setting PATH, set PATH here, using
29766         the new variable, abs_aux_dir instead.
29767         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29768         * tests/test-vc-list-files-git.sh: Likewise.
29769         Reported by Bruno Haible.
29770
29771 2008-05-01  Bruno Haible  <bruno@clisp.org>
29772
29773         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29774         reallocation. Rename 'done' to 'found_delimiter'.
29775
29776 2008-05-01  Jim Meyering  <meyering@redhat.com>
29777
29778         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29779         * build-aux/vc-list-files: Use `...`, not $(...).
29780
29781 2008-04-30  Jim Meyering  <meyering@redhat.com>
29782
29783         add tests for vc-list-files
29784         * modules/vc-list-files-tests: New module.
29785         * tests/test-vc-list-files-cvs.sh: New file.
29786         * tests/test-vc-list-files-git.sh: New file.
29787
29788         avoid a warning from gcc
29789         * lib/getndelim2.c (IF_LINT): Define.
29790         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29791
29792         vc-list-files: work properly with build-aux/cvsu, too
29793         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29794         to all cvs-based clauses.
29795
29796         vc-list-files: work properly in the CVS+awk case, too
29797         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29798
29799         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29800         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29801         take more than one file argument, so .  Add quotes, just in case $dir
29802         ever contains a shell meta-character.  Prompted by Soren Hansen in
29803         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29804
29805 2008-04-29  Eric Blake  <ebb9@byu.net>
29806
29807         Optimize getndelim2 to use block operations when possible.
29808         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29809         freadseek, and memchr2.
29810         * lib/getndelim2.c (getndelim2): Use them for block reads.
29811
29812 2008-04-29  Bruno Haible  <bruno@clisp.org>
29813
29814         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29815         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29816         * modules/inet_ntop (Depends-on): Add extensions.
29817         * modules/inet_pton (Depends-on): Likewise.
29818         Reported by Simon Josefsson.
29819
29820 2008-04-29  Jim Meyering  <meyering@redhat.com>
29821
29822         When the is more than one match in a block, match all of them.
29823         * build-aux/useless-if-before-free: Iterate through each block
29824         until there are no more matches.
29825
29826         Fix broken useless-if-before-free script.
29827         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29828         the expression to match cast of argument to free-like function.
29829
29830 2008-04-29  Eric Blake  <ebb9@byu.net>
29831
29832         Use new header.
29833         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29834
29835 2008-04-29  Jim Meyering  <meyering@redhat.com>
29836
29837         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29838         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29839         by gnulib to exist and to declare e.g., inet_ntop.
29840         Don't include "inet_ntop.h", now removed.
29841
29842         * m4/arpa_inet_h.m4: Remove trailing blanks.
29843
29844 2008-04-29  Eric Blake  <ebb9@byu.net>
29845
29846         Silence valgrind on safe reads beyond potential array bounds.
29847         * lib/rawmemchr.valgrind: New file.
29848         * lib/strchrnul.valgrind: Likewise.
29849         * modules/rawmemchr (Files): Distribute new file.
29850         * modules/strchrnul (Files): Likewise.
29851         Suggested by Bruno Haible.
29852
29853 2008-04-29  Bruno Haible  <bruno@clisp.org>
29854
29855         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29856         (inet_ntop, inet_pton): Change portability warning's wording.
29857         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29858         Invoke gl_CHECK_NEXT_HEADERS.
29859         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29860         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29861         set ARPA_INET_H.
29862         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29863         * modules/arpa_inet (Description): No longer only for systems that
29864         lack it.
29865         (Depends-on): Add include_next.
29866         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29867         HAVE_ARPA_INET_H.
29868
29869 2008-04-29  Jim Meyering  <meyering@redhat.com>
29870
29871         * modules/mkdir (License): Re-license as LGPLv2+.
29872
29873 2008-04-29  Bruno Haible  <bruno@clisp.org>
29874
29875         * modules/rawmemchr (Maintainer): Set to Eric.
29876         * modules/strchrnul (Maintainer): Likewise.
29877
29878 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29879
29880         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29881         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29882
29883         * modules/arpa_inet (arpa/inet.h): Use them.
29884
29885 2008-04-28  Eric Blake  <ebb9@byu.net>
29886
29887         Test getndelim2.
29888         * modules/getndelim2-tests: New file.
29889         * tests/test-getndelim2.c: Likewise.
29890         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29891         stream.
29892         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29893
29894         * MODULES.html.sh: Document new module.
29895
29896 2008-04-20  Bruno Haible  <bruno@clisp.org>
29897
29898         * lib/c-stack.c (die): Use raise.
29899         * modules/c-stack (Depends-on): Add raise.
29900
29901 2008-04-28  Bruno Haible  <bruno@clisp.org>
29902
29903         Expect rpmatch to be declared.
29904         * lib/yesno.c (rpmatch): Remove declaration.
29905
29906         Declare rpmatch.
29907         * lib/stdlib.in.h (rpmatch): New declaration.
29908         * lib/rpmatch.c: Include <stdlib.h> first.
29909         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29910         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29912         HAVE_RPMATCH.
29913         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29914         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29915         (Include): Set to <stdlib.h>.
29916         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29917         HAVE_RPMATCH.
29918         * NEWS: Document the change.
29919
29920 2008-04-28  Bruno Haible  <bruno@clisp.org>
29921
29922         Change rpmatch to use nl_langinfo when appropriate.
29923         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29924         (N_): New macro.
29925         (localized_pattern): New function/macro.
29926         (try): Remove match, nomatch arguments. Copy the pattern into safe
29927         memory before caching it.
29928         (rpmatch): Use localized_pattern. Add translator comments.
29929         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29930         Suggested by Eric Blake.
29931         * modules/rpmatch (Depends-on): Add stdbool.
29932
29933 2008-04-28  Eric Blake  <ebb9@byu.net>
29934
29935         Add rawmemchr module, matching glibc.
29936         * modules/string (Makefile.am): New indicator.
29937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29938         * lib/string.in.h (rawmemchr): Declare when appropriate.
29939         * modules/rawmemchr: New file.
29940         * m4/rawmemchr.m4: Likewise.
29941         * lib/rawmemchr.c: Likewise.
29942         * modules/rawmemchr-tests: Likewise.
29943         * tests/test-rawmemchr.c: Likewise.
29944         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29945         module.
29946         * modules/strchrnul (Depends-on): Add rawmemchr.
29947         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29948
29949         Whitespace cleanup.
29950         * tests/test-strchrnul.c: Reindent.
29951         * lib/strchrnul.c: Likewise.
29952
29953         Optimize and test strchrnul.
29954         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29955         * modules/strchrnul-tests: New file.
29956         * tests/test-strchrnul.c: Likewise.
29957
29958         Remove intprops dependency.
29959         * modules/memchr (Depends-on): Remove intprops.
29960         * modules/memrchr (Depends-on): Likewise.
29961         * modules/memchr2 (Depends-on): Likewise.
29962         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
29963         * lib/memrchr.c (__memrchr): Likewise.
29964         * lib/memrchr2.c (memchr2): Likewise.
29965         Reported by Simon Josefsson.
29966
29967 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29968
29969         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
29970         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29971
29972 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29973
29974         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
29975
29976         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
29977
29978         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
29979
29980         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
29981         declarations.
29982         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
29983
29984         * m4/inet_pton.m4: Don't check for header files.
29985
29986         * m4/inet_ntop.m4: Don't check for header files.
29987
29988 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29989
29990         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
29991         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
29992         trigger for cygwin).
29993         Reported by Bruno Haible  <bruno@clisp.org>.
29994
29995 2008-04-28  Bruno Haible  <bruno@clisp.org>
29996
29997         * doc/posix-functions/strdup.texi: Mention mingw problem.
29998
29999 2008-04-27  Bruno Haible  <bruno@clisp.org>
30000
30001         * modules/stat-time-tests (Depends-on): Add sleep.
30002         * tests/test-stat-time.c (force_unlink): New function.
30003         (cleanup): Use it.
30004         (test_mtime): Remove the ctime related tests.
30005         (test_ctime): New function, containing the ctime related tests.
30006         (main): Call test_ctime, except on native Windows platforms.
30007
30008 2008-04-27  Bruno Haible  <bruno@clisp.org>
30009
30010         * lib/rpmatch.c (rpmatch): Add some comments.
30011         Reported by James Youngman <jay@gnu.org>.
30012
30013 2008-04-27  Bruno Haible  <bruno@clisp.org>
30014
30015         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30016         quiet NaNs.
30017
30018 2008-04-27  Bruno Haible  <bruno@clisp.org>
30019
30020         Make test-yesno.sh work on mingw.
30021         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30022         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30023         (main): Set stdin to binary mode.
30024         * modules/yesno-tests (Depends-on): Add binary-io.
30025
30026 2008-04-27  Bruno Haible  <bruno@clisp.org>
30027
30028         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30029         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30030         argument that lie outside the IEEE 854 domain.
30031         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30032         (gl_ISFINITE): Use it.
30033         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30034
30035 2008-04-27  Bruno Haible  <bruno@clisp.org>
30036
30037         Allow local renaming in config.h.
30038         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30039
30040 2008-04-27  Bruno Haible  <bruno@clisp.org>
30041
30042         * lib/memchr.c (__memchr): Change type of 'i'.
30043         * lib/memchr2.c (memchr2): Likewise.
30044
30045 2008-04-26  Eric Blake  <ebb9@byu.net>
30046         and Bruno Haible  <bruno@clisp.org>
30047
30048         Optimize and test memrchr.
30049         * modules/memrchr (Depends-on): Add intprops.
30050         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30051         * modules/memrchr-tests: New file.
30052         * tests/test-memrchr.c: New file.
30053
30054 2008-04-26  Bruno Haible  <bruno@clisp.org>
30055
30056         Add tentative support for DragonFly BSD.
30057         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30058         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30059         fp.
30060         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30061         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30062         * lib/fpurge.c (fpurge): Likewise.
30063         * lib/freadable.c (freaadable): Likewise.
30064         * lib/freadahead.c (freadahead): Likewise.
30065         * lib/freading.c (freading): Likewise.
30066         * lib/freadptr.c (freadptr): Likewise.
30067         * lib/freadseek.c (freadptrinc): Likewise.
30068         * lib/fseeko.c (fseeko): Likewise.
30069         * lib/fseterr.c (fseterr): Likewise.
30070         * lib/fwritable.c (fwritable): Likewise.
30071         * lib/fwriting.c (fwriting): Likewise.
30072
30073 2008-04-26  Bruno Haible  <bruno@clisp.org>
30074
30075         * lib/stdio-impl.h: New file.
30076         * lib/fbufmode.c: Include stdio-impl.h.
30077         (fbufmode): Use fp_, remove redundant #defines.
30078         * lib/fflush.c: Include stdio-impl.h.
30079         (clear_ungetc_buffer): Remove redundant #defines.
30080         * lib/fpurge.c: Include stdio-impl.h.
30081         (fpurge): Remove redundant #defines.
30082         * lib/freadable.c: Include stdio-impl.h.
30083         (freadable): Remove redundant #defines.
30084         * lib/freadahead.c: Include stdio-impl.h.
30085         (freadahead): Remove redundant #defines.
30086         * lib/freading.c: Include stdio-impl.h.
30087         (freading): Remove redundant #defines.
30088         * lib/freadptr.c: Include stdio-impl.h.
30089         (freadptr): Remove redundant #defines.
30090         * lib/freadseek.c: Include stdio-impl.h.
30091         (freadptrinc): Remove redundant #defines.
30092         * lib/fseeko.c: Include stdio-impl.h.
30093         (rpl_fseeko): Remove redundant #defines.
30094         * lib/fseterr.c: Include stdio-impl.h.
30095         (fseterr): Remove redundant #defines.
30096         * lib/fwritable.c: Include stdio-impl.h.
30097         (fwritable: Remove redundant #defines.
30098         * lib/fwriting.c: Include stdio-impl.h.
30099         (fwriting): Remove redundant #defines.
30100         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30101         * modules/fflush (Files): Likewise.
30102         * modules/fpurge (Files): Likewise.
30103         * modules/freadable (Files): Likewise.
30104         * modules/freadahead (Files): Likewise.
30105         * modules/freading (Files): Likewise.
30106         * modules/freadptr (Files): Likewise.
30107         * modules/freadseek (Files): Likewise.
30108         * modules/fseeko (Files): Likewise.
30109         * modules/fseterr (Files): Likewise.
30110         * modules/fwritable (Files): Likewise.
30111         * modules/fwriting (Files): Likewise.
30112
30113 2008-04-26  Bruno Haible  <bruno@clisp.org>
30114
30115         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30116         restore_seek_optimization, update_fpos_cache): New functions, extracted
30117         from rpl_fflush.
30118         (rpl_fflush): Use them.
30119         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30120         (gl_REPLACE_FFLUSH): Use it.
30121
30122 2008-04-26  Bruno Haible  <bruno@clisp.org>
30123
30124         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30125         on Solaris.
30126         * tests/test-xstrtoimax.sh: Likewise.
30127         * tests/test-xstrtoumax.sh: Likewise.
30128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30129
30130 2008-04-26  Bruno Haible  <bruno@clisp.org>
30131
30132         * modules/memchr-tests: New file.
30133         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30134
30135 2008-04-26  Eric Blake  <ebb9@byu.net>
30136             Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/memchr.c: Include intprops.h.
30139         (__memchr): Optimize parallel detection of matching bytes. Rename local
30140         variables. Add explanatory comments.
30141
30142 2008-04-26  Bruno Haible  <bruno@clisp.org>
30143
30144         Fix module 'memchr', broken since 2000-10-28.
30145         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30146
30147 2008-04-26  Bruno Haible  <bruno@clisp.org>
30148
30149         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30150         comments.
30151
30152 2008-04-25  Eric Blake  <ebb9@byu.net>
30153
30154         Use native fstatat on cygwin 1.7.0.
30155         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30156         first.
30157
30158 2008-04-23  Eric Blake  <ebb9@byu.net>
30159
30160         Improve memchr2 performance.
30161         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30162         NUL bytes.
30163         * modules/memchr2 (Depends-on): Use intprops.h.
30164
30165 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30166
30167         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30168         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30169         <blp@cs.stanford.edu>.
30170
30171 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30172
30173         * lib/arpa_inet.in.h: New file.
30174
30175         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30176         (Makefile.am): Sed in substitute header file.
30177
30178         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30179         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30180
30181         * modules/inet_ntop (configure.ac): Use
30182         gl_ARPA_INET_MODULE_INDICATOR.
30183
30184         * modules/inet_pton (configure.ac): Use
30185         gl_ARPA_INET_MODULE_INDICATOR.
30186
30187 2008-04-22  Jim Meyering  <meyering@redhat.com>
30188
30189         * modules/verify (License): Re-license as LGPLv2+.
30190
30191 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30192
30193         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30194         parameter to void* as per POSIX standard (MinGW uses char*).
30195
30196 2008-04-21  Bruno Haible  <bruno@clisp.org>
30197
30198         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30199         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30200         Define to replacements if REPLACE_ISWCNTRL is 1.
30201         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30202         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30203         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30204         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30205         what it fixes.
30206         * doc/posix-functions/iswalpha.texi: Likewise.
30207         * doc/posix-functions/iswblank.texi: Likewise.
30208         * doc/posix-functions/iswcntrl.texi: Likewise.
30209         * doc/posix-functions/iswdigit.texi: Likewise.
30210         * doc/posix-functions/iswgraph.texi: Likewise.
30211         * doc/posix-functions/iswlower.texi: Likewise.
30212         * doc/posix-functions/iswprint.texi: Likewise.
30213         * doc/posix-functions/iswpunct.texi: Likewise.
30214         * doc/posix-functions/iswspace.texi: Likewise.
30215         * doc/posix-functions/iswupper.texi: Likewise.
30216         * doc/posix-functions/iswxdigit.texi: Likewise.
30217         Reported by Alain Guibert.
30218
30219 2008-04-21  Bruno Haible  <bruno@clisp.org>
30220
30221         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30222         Patch by Alain Guibert.
30223
30224 2008-04-21  Bruno Haible  <bruno@clisp.org>
30225
30226         Fix test failures on mingw.
30227         * tests/test-xstrtol.c (print_no_progname): New function.
30228         (main): Install it in error_print_progname hook.
30229         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30230         * tests/test-xstrtoimax.sh: Likewise.
30231         * tests/test-xstrtoumax.sh: Likewise.
30232
30233 2008-04-21  Bruno Haible  <bruno@clisp.org>
30234
30235         Fix test failure on mingw.
30236         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30237
30238 2008-04-21  Bruno Haible  <bruno@clisp.org>
30239
30240         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30241         Actually assign a value.
30242
30243 2008-04-20  Bruno Haible  <bruno@clisp.org>
30244
30245         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30246         take 2.
30247         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30248         'canonicalize-lgpl' module is also used.
30249         * lib/canonicalize-lgpl.c: Undo last change.
30250         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30251
30252 2008-04-20  Bruno Haible  <bruno@clisp.org>
30253
30254         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30255         config.h. Provide _mkdir based fallback for mingw.
30256         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30257         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30258         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30259         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30260         rather than defining mkdir in config.h.
30261         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30262         (gl_SYS_STAT_H_DEFAULTS): New macro.
30263         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30264         HAVE_IO_H any more.
30265         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30266         HAVE_DECL_MKDIR and HAVE_IO_H.
30267
30268 2008-04-20  Bruno Haible  <bruno@clisp.org>
30269
30270         * lib/isapipe.c: Port to native Windows platforms.
30271
30272 2008-04-20  Bruno Haible  <bruno@clisp.org>
30273
30274         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30275
30276 2008-04-21  Eric Blake  <ebb9@byu.net>
30277
30278         Work around preprocessors that don't handle UINTMAX_MAX.
30279         * lib/memchr2.c (memchr2): Avoid embedded #if.
30280         Reported by Alain Guibert, fix suggested by Bruno Haible.
30281
30282 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30283
30284         * doc/posix-functions/strftime.texi (strftime): Explain better
30285         Windows incompatibility.  Suggested by Micah Cowan
30286         <micah@cowan.name>.
30287
30288 2008-04-20  Bruno Haible  <bruno@clisp.org>
30289
30290         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30291         unistr/u8-mblen.
30292
30293 2008-04-20  Bruno Haible  <bruno@clisp.org>
30294
30295         Fix test failure on platforms with non-GNU iconv.
30296         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30297         (U_TO_U8): Use it, rather than u16_to_u8.
30298         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30299         units at the end of the input string.
30300         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30301
30302 2008-04-20  Bruno Haible  <bruno@clisp.org>
30303
30304         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30305         when the resulting length is 0.
30306         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30307
30308 2008-04-20  Bruno Haible  <bruno@clisp.org>
30309
30310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30311         works.
30312         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30313
30314 2008-04-20  Bruno Haible  <bruno@clisp.org>
30315
30316         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30317         * modules/tsearch-tests (configure.ac): Test for initstate function.
30318
30319 2008-04-20  Bruno Haible  <bruno@clisp.org>
30320
30321         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30322         for nlink_t if missing.
30323         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30324
30325 2008-04-19  Bruno Haible  <bruno@clisp.org>
30326
30327         Work around snprintf bug on Linux libc5.
30328         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30330         gl_SNPRINTF_SIZE1.
30331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30332         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30333         that test failed.
30334         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30335         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30336         * modules/snprintf (Files): Add m4/printf.m4.
30337         * modules/vsnprintf (Files): Likewise.
30338         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30339         * doc/posix-functions/vsnprintf.texi: Likewise.
30340
30341 2008-04-19  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30344         from 0.0058 to less than 10^-7.
30345
30346 2008-04-19  Bruno Haible  <bruno@clisp.org>
30347
30348         Fix rounding when a precision is given.
30349         * lib/vasnprintf.c (is_borderline): New function.
30350         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30351         9...9x.
30352         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30353         %e, %g.
30354         * tests/test-vasprintf-posix.c (test_function): Likewise.
30355         * tests/test-snprintf-posix.h (test_function): Likewise.
30356         * tests/test-sprintf-posix.h (test_function): Likewise.
30357         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30358         * tests/test-printf-posix.h (test_function): Likewise.
30359         * tests/test-printf-posix.output: Update.
30360         Reported by John Darrington <john@darrington.wattle.id.au> via
30361         Ben Pfaff <blp@cs.stanford.edu>.
30362
30363 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30364
30365         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30366         Suggested by Bruno Haible <bruno@clisp.org>.
30367
30368 2008-04-17  Bruno Haible  <bruno@clisp.org>
30369
30370         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30371         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30372         implementation.
30373         Patch by Bruce Merry <bmerry@gmail.com>.
30374
30375 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30376
30377         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30378         doesn't work under Windows.
30379
30380 2008-04-16  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30383         New macros.
30384         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30385         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30386         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30387         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30388         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30389         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30390         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30391         macros.
30392         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30393         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30394         Northern Sotho, Uighur.
30395
30396 2008-04-16  Bruno Haible  <bruno@clisp.org>
30397
30398         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30399         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30400         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30401         Reported by Daniel Bergström <daniel@octocode.com>.
30402
30403 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30404             Bruno Haible  <bruno@clisp.org>
30405
30406         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30407         function.
30408         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30409         New functions, mostly extracted from gl_locale_name_default.
30410         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30411
30412 2008-04-16  Eric Blake  <ebb9@byu.net>
30413
30414         Adjust strtod detection to catch glibc 2.7 bug.
30415         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30416         Reported by John Gatewood Ham.
30417
30418 2008-04-16  Bruno Haible  <bruno@clisp.org>
30419
30420         Add tentative support for Linux libc5.
30421         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30422         * lib/fpurge.c (fpurge): Likewise.
30423         * lib/freadable.c (freadable): Likewise.
30424         * lib/freadahead.c (freadahead): Likewise.
30425         * lib/freading.c (freading): Likewise.
30426         * lib/freadptr.c (freadptr): Likewise.
30427         * lib/freadseek.c (freadptrinc): Likewise.
30428         * lib/fseeko.c (rpl_fseeko): Likewise.
30429         * lib/fseterr.c (fseterr): Likewise.
30430         * lib/fwritable.c (fwritable): Likewise.
30431         * lib/fwriting.c (fwriting): Likewise.
30432         Reported by Alain Guibert <alguibert+bts@free.fr>.
30433
30434 2008-04-15  Bruno Haible  <bruno@clisp.org>
30435
30436         * modules/mathl (configure.ac): Define module indicator.
30437
30438 2008-04-15  Bruno Haible  <bruno@clisp.org>
30439
30440         * lib/logl.c (logl): Remove unused variables.
30441
30442 2008-04-15  Bruno Haible  <bruno@clisp.org>
30443
30444         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30445         fails.
30446
30447 2008-04-15  Bruno Haible  <bruno@clisp.org>
30448
30449         * lib/trim.c (trim2): Fix argument of isspace() macro.
30450
30451 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30452
30453         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30454         to 0.
30455         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30456
30457 2008-04-14  Bruno Haible  <bruno@clisp.org>
30458
30459         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30460         AC_LANG_PROGRAM argument.
30461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30462         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30464         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30465         * m4/math_h.m4 (gl_MATH_H): Likewise.
30466         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30468         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30469         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30470         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30471         * m4/regex.m4 (gl_REGEX): Likewise.
30472         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30473         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30476         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30477         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30479         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30480
30481 2008-04-14  Jim Meyering  <meyering@redhat.com>
30482
30483         test-strtod: fix typos: s/abs/fabs/
30484         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30485
30486 2008-04-13  Bruno Haible  <bruno@clisp.org>
30487
30488         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30489         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30490         module is also used and while not building the reloc-wrapper.
30491
30492 2008-04-13  Bruno Haible  <bruno@clisp.org>
30493
30494         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30495
30496 2008-04-13  Bruno Haible  <bruno@clisp.org>
30497
30498         Fix AIX compilation failure introduced on 2008-04-02.
30499         * tests/test-frexp.c (exp): Undefine before redefining.
30500         * tests/test-frexpl.c (exp): Likewise.
30501
30502 2008-04-13  Bruno Haible  <bruno@clisp.org>
30503
30504         Work around a HP-UX stdio bug.
30505         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30506         * tests/test-ftello.c (main): Likewise.
30507         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30508         * doc/posix-functions/ftello.texi: Likewise.
30509
30510 2008-04-13  Bruno Haible  <bruno@clisp.org>
30511
30512         Make test-signbit pass on HP-UX/hppa.
30513         * tests/test-signbit.c (minus_zerol): New variable.
30514         (test_signbitl): Use it.
30515
30516 2008-04-13  Bruno Haible  <bruno@clisp.org>
30517
30518         Make truncl work on OSF/1 4.0.
30519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30520         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30521         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30523         HAVE_DECL_TRUNCL.
30524         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30525         HAVE_DECL_TRUNCL.
30526         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30527
30528 2008-04-13  Bruno Haible  <bruno@clisp.org>
30529
30530         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30531
30532 2008-04-13  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30535         expression, so as to avoid HP-UX 11 cc compiler bug.
30536
30537 2008-04-13  Bruno Haible  <bruno@clisp.org>
30538
30539         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30540
30541 2008-04-13  Bruno Haible  <bruno@clisp.org>
30542
30543         * lib/git-merge-changelog.c: Remove empty declaration outside of
30544         functions.
30545
30546 2008-04-13  Bruno Haible  <bruno@clisp.org>
30547
30548         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30549
30550 2008-04-13  Bruno Haible  <bruno@clisp.org>
30551
30552         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30553         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30555         also if it exists but lacks definitions of the SHUT_* macros.
30556         * modules/sys_socket (Description): Update.
30557         Reported by Elbert Pol <e.pol@chello.nl>.
30558
30559 2008-04-13  Bruno Haible  <bruno@clisp.org>
30560
30561         * lib/localcharset.c (OS2): Don't redefine if already defined.
30562         Reported by Elbert Pol <e.pol@chello.nl>.
30563
30564 2008-04-13  Bruno Haible  <bruno@clisp.org>
30565
30566         * lib/binary-io.h [__EMX__]: Include <io.h>.
30567         Reported by Elbert Pol <e.pol@chello.nl>.
30568
30569 2008-04-12  Bruno Haible  <bruno@clisp.org>
30570
30571         * lib/fpucw.h: Enable the definitions also for x86_64.
30572         Needed for NetBSD/x86_64.
30573         Reported by Thomas Klausner <tk@giga.or.at>.
30574
30575 2008-04-12  Bruno Haible  <bruno@clisp.org>
30576
30577         * tests/test-strtod.c: Include isnand.h.
30578         (main): Use isnand instead of isnan.
30579         Reported by Jim Meyering.
30580
30581 2008-04-12  Bruno Haible  <bruno@clisp.org>
30582
30583         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30585
30586 2008-04-12  Jim Meyering  <meyering@redhat.com>
30587
30588         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30589
30590 2008-04-12  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30593         Reported by Elbert Pol <e.pol@chello.nl>.
30594
30595 2008-04-12  Eric Blake  <ebb9@byu.net>
30596
30597         Work around Solaris 10 math.h bug.
30598         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30599         (gl_MATH_H_DEFAULTS): Set up default.
30600         * modules/math (Makefile.am): Replace new indicators.
30601         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30602         * tests/test-math.c (main): Test this.
30603         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30604         * doc/posix-headers/math.texi (math.h): Mention bug.
30605         Reported by Nelson H. F. Beebe and Jim Meyering.
30606
30607 2008-04-11  Bruno Haible  <bruno@clisp.org>
30608
30609         Adapt to future versions of Apple GCC.
30610         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30611         Reported by Peter O'Gorman <peter@pogma.com>.
30612
30613 2008-04-11  Bruno Haible  <bruno@clisp.org>
30614
30615         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30616
30617 2008-04-11  Bruno Haible  <bruno@clisp.org>
30618
30619         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30620
30621         * modules/getaddrinfo-tests (Makefile.am): Define
30622         test_getaddrinfo_LDADD.
30623
30624 2008-04-11  Bruno Haible  <bruno@clisp.org>
30625
30626         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30627         (init): Fix syntax error.
30628         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30629         is declared.
30630
30631 2008-04-11  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30634         * modules/glob (Depends-on): Add stdbool.
30635
30636 2008-04-11  Bruno Haible  <bruno@clisp.org>
30637
30638         * lib/trim.c: Include <string.h>.
30639
30640 2008-04-11  Eric Blake  <ebb9@byu.net>
30641
30642         Avoid compile failure on OS/2.
30643         * lib/regex_internal.h (internal_function): Disable optimization
30644         on OS/2 (__EMX__), where it caused compiler error.
30645         Reported by Elbert Pol.
30646
30647 2008-04-11  Bruno Haible  <bruno@clisp.org>
30648
30649         Flush the standard error stream before aborting. Needed on mingw.
30650         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30651         * tests/test-array_list.c (ASSERT): Likewise.
30652         * tests/test-array_oset.c (ASSERT): Likewise.
30653         * tests/test-avltree_list.c (ASSERT): Likewise.
30654         * tests/test-avltree_oset.c (ASSERT): Likewise.
30655         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30656         * tests/test-binary-io.c (ASSERT): Likewise.
30657         * tests/test-byteswap.c (ASSERT): Likewise.
30658         * tests/test-c-ctype.c (ASSERT): Likewise.
30659         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30660         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30661         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30662         * tests/test-c-strstr.c (ASSERT): Likewise.
30663         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30664         * tests/test-canonicalize.c (ASSERT): Likewise.
30665         * tests/test-carray_list.c (ASSERT): Likewise.
30666         * tests/test-ceilf1.c (ASSERT): Likewise.
30667         * tests/test-ceilf2.c (ASSERT): Likewise.
30668         * tests/test-ceill.c (ASSERT): Likewise.
30669         * tests/test-count-one-bits.c (ASSERT): Likewise.
30670         * tests/test-fbufmode.c (ASSERT): Likewise.
30671         * tests/test-fflush2.c (ASSERT): Likewise.
30672         * tests/test-floorf1.c (ASSERT): Likewise.
30673         * tests/test-floorf2.c (ASSERT): Likewise.
30674         * tests/test-floorl.c (ASSERT): Likewise.
30675         * tests/test-fopen.c (ASSERT): Likewise.
30676         * tests/test-fpending.c (ASSERT): Likewise.
30677         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30678         * tests/test-fpurge.c (ASSERT): Likewise.
30679         * tests/test-freadable.c (ASSERT): Likewise.
30680         * tests/test-freadahead.c (ASSERT): Likewise.
30681         * tests/test-freading.c (ASSERT): Likewise.
30682         * tests/test-freadptr.c (ASSERT): Likewise.
30683         * tests/test-freadptr2.c (ASSERT): Likewise.
30684         * tests/test-freadseek.c (ASSERT): Likewise.
30685         * tests/test-freopen.c (ASSERT): Likewise.
30686         * tests/test-frexp.c (ASSERT): Likewise.
30687         * tests/test-frexpl.c (ASSERT): Likewise.
30688         * tests/test-fseek.c (ASSERT): Likewise.
30689         * tests/test-fseeko.c (ASSERT): Likewise.
30690         * tests/test-fstrcmp.c (ASSERT): Likewise.
30691         * tests/test-ftell.c (ASSERT): Likewise.
30692         * tests/test-ftello.c (ASSERT): Likewise.
30693         * tests/test-func.c (ASSERT): Likewise.
30694         * tests/test-fwritable.c (ASSERT): Likewise.
30695         * tests/test-fwriting.c (ASSERT): Likewise.
30696         * tests/test-getdelim.c (ASSERT): Likewise.
30697         * tests/test-getline.c (ASSERT): Likewise.
30698         * tests/test-i-ring.c (ASSERT): Likewise.
30699         * tests/test-iconv-utf.c (ASSERT): Likewise.
30700         * tests/test-iconv.c (ASSERT): Likewise.
30701         * tests/test-isfinite.c (ASSERT): Likewise.
30702         * tests/test-isnand.c (ASSERT): Likewise.
30703         * tests/test-isnanf.c (ASSERT): Likewise.
30704         * tests/test-isnanl.h (ASSERT): Likewise.
30705         * tests/test-ldexpl.c (ASSERT): Likewise.
30706         * tests/test-linked_list.c (ASSERT): Likewise.
30707         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30708         * tests/test-localename.c (ASSERT): Likewise.
30709         * tests/test-lseek.c (ASSERT): Likewise.
30710         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30711         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30712         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30713         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30714         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30715         * tests/test-mbschr.c (ASSERT): Likewise.
30716         * tests/test-mbscspn.c (ASSERT): Likewise.
30717         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30718         * tests/test-mbspbrk.c (ASSERT): Likewise.
30719         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30720         * tests/test-mbsrchr.c (ASSERT): Likewise.
30721         * tests/test-mbsspn.c (ASSERT): Likewise.
30722         * tests/test-mbsstr1.c (ASSERT): Likewise.
30723         * tests/test-mbsstr2.c (ASSERT): Likewise.
30724         * tests/test-mbsstr3.c (ASSERT): Likewise.
30725         * tests/test-memchr2.c (ASSERT): Likewise.
30726         * tests/test-memmem.c (ASSERT): Likewise.
30727         * tests/test-open.c (ASSERT): Likewise.
30728         * tests/test-printf-frexp.c (ASSERT): Likewise.
30729         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30730         * tests/test-printf-posix.c (ASSERT): Likewise.
30731         * tests/test-quotearg.c (ASSERT): Likewise.
30732         * tests/test-rbtree_list.c (ASSERT): Likewise.
30733         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30734         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30735         * tests/test-round1.c (ASSERT): Likewise.
30736         * tests/test-roundf1.c (ASSERT): Likewise.
30737         * tests/test-roundl.c (ASSERT): Likewise.
30738         * tests/test-signbit.c (ASSERT): Likewise.
30739         * tests/test-sleep.c (ASSERT): Likewise.
30740         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30741         * tests/test-snprintf.c (ASSERT): Likewise.
30742         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30743         * tests/test-stat-time.c (ASSERT): Likewise.
30744         * tests/test-strcasestr.c (ASSERT): Likewise.
30745         * tests/test-strerror.c (ASSERT): Likewise.
30746         * tests/test-striconv.c (ASSERT): Likewise.
30747         * tests/test-striconveh.c (ASSERT): Likewise.
30748         * tests/test-striconveha.c (ASSERT): Likewise.
30749         * tests/test-strsignal.c (ASSERT): Likewise.
30750         * tests/test-strstr.c (ASSERT): Likewise.
30751         * tests/test-strtod.c (ASSERT): Likewise.
30752         * tests/test-trunc1.c (ASSERT): Likewise.
30753         * tests/test-trunc2.c (ASSERT): Likewise.
30754         * tests/test-truncf1.c (ASSERT): Likewise.
30755         * tests/test-truncf2.c (ASSERT): Likewise.
30756         * tests/test-truncl.c (ASSERT): Likewise.
30757         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30758         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30759         * tests/test-vasnprintf.c (ASSERT): Likewise.
30760         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30761         * tests/test-vasprintf.c (ASSERT): Likewise.
30762         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30763         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30764         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30765         * tests/test-vsnprintf.c (ASSERT): Likewise.
30766         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30767         * tests/test-wcwidth.c (ASSERT): Likewise.
30768         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30769         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30770         * tests/test-xvasprintf.c (ASSERT): Likewise.
30771         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30772         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30773         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30774         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30775         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30776         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30777         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30778         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30779         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30780         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30781         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30782         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30783         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30784         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30785         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30786         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30787         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30788         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30789         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30790         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30791         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30792         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30793         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30794         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30795         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30796         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30797         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30798         * tests/unictype/test-combining.c (ASSERT): Likewise.
30799         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30800         * tests/unictype/test-digit.c (ASSERT): Likewise.
30801         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30802         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30803         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30804         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30805         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30806         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30807         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30808         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30809         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30810         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30811         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30812         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30813         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30814         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30815         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30816         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30817         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30818         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30819         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30820         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30821         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30822         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30823         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30824         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30825         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30826         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30827         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30828         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30829         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30830         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30831         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30832         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30833         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30834         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30835         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30836         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30837         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30838         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30839         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30840         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30841         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30842         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30843         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30844         Reported by Eric Blake.
30845
30846 2008-04-11  Bruno Haible  <bruno@clisp.org>
30847
30848         * lib/wchar.in.h: Tweak comment.
30849
30850 2008-04-11  Bruno Haible  <bruno@clisp.org>
30851
30852         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30853         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30854         gl_COMMON.
30855         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30856
30857 2008-04-11  Bruno Haible  <bruno@clisp.org>
30858
30859         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30860
30861 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30862
30863         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30864         of attempting to use non-existing /dev/*random.  Based on patch
30865         from Adam Strzelecki <ono@java.pl> in
30866         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30867
30868 2008-04-08  Bruno Haible  <bruno@clisp.org>
30869
30870         Add tentative support for emx+gcc.
30871         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30872         * lib/fpurge.c (fpurge): Likewise.
30873         * lib/freadable.c (freadable): Likewise.
30874         * lib/freadahead.c (freadahead): Likewise.
30875         * lib/freading.c (freading): Likewise.
30876         * lib/freadptr.c (freadptr): Likewise.
30877         * lib/freadseek.c (freadptrinc): Likewise.
30878         * lib/fseeko.c (rpl_fseeko): Likewise.
30879         * lib/fseterr.c (fseterr): Likewise.
30880         * lib/fwritable.c (fwritable): Likewise.
30881         * lib/fwriting.c (fwriting): Likewise.
30882         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30883
30884 2008-04-09  Eric Blake  <ebb9@byu.net>
30885
30886         Avoid some autoconf warnings.
30887         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30888         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30889         * m4/afs.m4 (gl_AFS): Likewise.
30890         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30891         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30892         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30893         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30894         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30895         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30896         (AC_CHECK_DECLS_ONCE): Likewise.
30897         Rename file...
30898         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30899         gnulib-tool requires autoconf 2.59 or better.
30900         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30901
30902 2008-04-08  Eric Blake  <ebb9@byu.net>
30903
30904         Use 'git describe --match' if present (added in git 1.5.5).
30905         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30906         if possible.
30907
30908 2008-04-08  Bruno Haible  <bruno@clisp.org>
30909
30910         Add tentative support for OpenServer.
30911         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30912         _ptr, _cnt.
30913         * lib/fpurge.c (fpurge): Likewise.
30914         * lib/freadable.c (freadable): Likewise.
30915         * lib/freadahead.c (freadahead): Likewise.
30916         * lib/freading.c (freading): Likewise.
30917         * lib/freadptr.c (freadptr): Likewise.
30918         * lib/freadseek.c (freadptrinc): Likewise.
30919         * lib/fseeko.c (rpl_fseeko): Likewise.
30920         * lib/fseterr.c (fseterr): Likewise.
30921         * lib/fwritable.c (fwritable): Likewise.
30922         * lib/fwriting.c (fwriting): Likewise.
30923         Reported by Roger Cornelius <rac@tenzing.org> and
30924         Brian K. White <brian@aljex.com>.
30925
30926 2008-04-06  Jim Meyering  <meyering@redhat.com>
30927
30928         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30929
30930 2008-04-06  Bruno Haible  <bruno@clisp.org>
30931
30932         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30933         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30934         * tests/test-printf-posix.sh: Likewise.
30935         * tests/test-vfprintf-posix.sh: Likewise.
30936         * tests/test-vprintf-posix.sh: Likewise.
30937         * tests/test-xprintf-posix.sh: Likewise.
30938
30939 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30940
30941         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30942         hide error from 'ls', needed on OS/2.
30943         Report by Elbert Pol <elbert.pol@gmail.com>.
30944
30945 2008-04-04  Eric Blake  <ebb9@byu.net>
30946
30947         Make test-fseeko.c failures meaningful.
30948         * tests/test-fseeko.c: Print line number on failure.
30949         * tests/test-fseek.c: Likewise.
30950         Reported by Nelson H. F. Beebe.
30951
30952         Improve strtod bug detection check.
30953         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30954         required for Solaris 10.
30955         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30956
30957 2008-04-04  Bruno Haible  <bruno@clisp.org>
30958
30959         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
30960         by m4/setenv.m4.
30961
30962 2008-04-03  Eric Blake  <ebb9@byu.net>
30963
30964         Ensure sane .version contents.
30965         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
30966         version string.
30967         * build-aux/git-version-gen: Improve documentation.
30968
30969         Make GNU make output nicer.
30970         * top/GNUmakefile [!_have-Makefile]: Add dependency on
30971         MAKECMDGOALS to enforce message for all command line targets.  Set
30972         srcdir for use in maint.mk.
30973
30974         Another maintainer tweak.
30975         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
30976         a target that regenerates version.
30977
30978 2008-04-03  Jim Meyering  <meyering@redhat.com>
30979
30980         vc-list-files: don't cause coreutils "make po-check" failure
30981         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
30982
30983 2008-04-03  Eric Blake  <ebb9@byu.net>
30984
30985         Allow VPATH usage of vc-list-files.
30986         * build-aux/vc-list-files (scriptversion): Add timestamp.
30987         (options): Add --help, --version, -C.
30988         (CVS): Support installed cvsu.
30989
30990 2008-04-02  Bruno Haible  <bruno@clisp.org>
30991
30992         Avoid some "statement with no effect" warnings from gcc.
30993         * tests/test-wctype.c (main): Explicitly ignore unused values.
30994         Reported by Jim Meyering.
30995
30996 2008-04-02  Jim Meyering  <meyering@redhat.com>
30997
30998         Avoid some warnings from "gcc -Wshadow".
30999         * tests/test-frexp.c (exp): Define to a different identifier.
31000         * tests/test-frexpl.c (exp): Likewise.
31001
31002 2008-04-03  Jim Meyering  <meyering@redhat.com>
31003
31004         bootstrap: remove dangling *.[ch] symlinks from lib
31005         * build-aux/bootstrap [dangling symlink removal]: Move find's
31006         -depth option to precede all others, to avoid a warning.
31007         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31008
31009 2008-04-02  Bruno Haible  <bruno@clisp.org>
31010
31011         Avoid some warnings from "gcc -Wshadow".
31012         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31013         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31014         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31015         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31016         Reported by Jim Meyering.
31017
31018 2008-04-01  Bruno Haible  <bruno@clisp.org>
31019
31020         Fix test to work on IRIX 6.5 with cc.
31021         * tests/test-math.c (numeric_equal): New function.
31022         (main): Use it.
31023
31024 2008-04-01  Bruno Haible  <bruno@clisp.org>
31025
31026         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31027
31028 2008-04-01  Bruno Haible  <bruno@clisp.org>
31029
31030         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31031         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31032         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31033         (Depends-on): Remove math.
31034
31035         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31036         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31037         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31038         (Depends-on): Remove math.
31039
31040         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31041         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31042         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31043         (Depends-on): Remove math.
31044         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31045         (Depends-on): Remove math.
31046
31047         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31048         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31049         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31050         (Depends-on): Remove math.
31051         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31052         (Depends-on): Remove math.
31053
31054         * tests/test-round1.c: Include nan.h.
31055         (main): Use NaNd instead of NAN.
31056         * modules/round-tests (Files): Add tests/nan.h.
31057
31058         * tests/test-trunc1.c: Include nan.h.
31059         (main): Use NaNd instead of NAN.
31060         * modules/trunc-tests (Files): Add tests/nan.h.
31061
31062         * tests/test-roundf1.c: Include nan.h.
31063         (main): Use NaNf instead of NAN.
31064         * modules/roundf-tests (Files): Add tests/nan.h.
31065
31066         * tests/test-truncf1.c: Include nan.h.
31067         (main): Use NaNf instead of NAN.
31068         * modules/truncf-tests (Files): Add tests/nan.h.
31069
31070         * tests/test-ceilf1.c: Include nan.h.
31071         (main): Use NaNf instead of NAN.
31072         * modules/ceilf-tests (Files): Add tests/nan.h.
31073
31074         * tests/test-floorf1.c: Include nan.h.
31075         (main): Use NaNf instead of NAN.
31076         * modules/floorf-tests (Files): Add tests/nan.h.
31077
31078         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31079         (main): Use NaNf instead of NAN.
31080         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31081
31082         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31083         (main): Use NaNd instead of NAN.
31084         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31085
31086         * tests/test-frexp.c: Include nan.h.
31087         (main): Use NaNd instead of NAN.
31088         * modules/frexp-tests (Files): Add tests/nan.h.
31089
31090         * lib/isnan.c: Don't include <math.h>.
31091         (FUNC): Don't use NAN macro.
31092         * modules/isnand-nolibm (Depends-on): Remove math.
31093         * modules/isnanf-nolibm (Depends-on): Remove math.
31094         * modules/isnanl (Depends-on): Remove math.
31095         * modules/isnanl-nolibm (Depends-on): Remove math.
31096
31097         * tests/nan.h: New file.
31098
31099 2008-04-01  Eric Blake  <ebb9@byu.net>
31100
31101         Fix typos.
31102         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31103         values to be the right type.
31104
31105         For now, cater to gnulib strtod inaccuracies.
31106         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31107         fractional results.  While not as nice from a QoI perspective, it
31108         is a quicker patch than correctly implementing decimal to binary
31109         rounding.
31110
31111 2008-03-31  Eric Blake  <ebb9@byu.net>
31112
31113         Guarantee a definition of NAN.
31114         * lib/math.in.h (NAN): Define if missing.
31115         * tests/test-math.c (main): Test it.
31116         * doc/posix-headers/math.texi (math.h): Document this.
31117         * lib/isnan.c (rpl_isnand): Use it.
31118         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31119         * tests/test-floorf1.c (NaN): Likewise.
31120         * tests/test-frexp.c (NaN): Likewise.
31121         * tests/test-isnand.c (NaN): Likewise.
31122         * tests/test-isnanf.c (NaN): Likewise.
31123         * tests/test-round1.c (NaN): Likewise.
31124         * tests/test-roundf1.c (NaN): Likewise.
31125         * tests/test-snprintf-posix.h (NaN): Likewise.
31126         * tests/test-sprintf-posix.h (NaN): Likewise.
31127         * tests/test-trunc1.c (NaN): Likewise.
31128         * tests/test-truncf1.c (NaN): Likewise.
31129         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31130         * tests/test-vasprintf-posix.c (NaN): Likewise.
31131         * modules/isnand-nolibm (Depends-on): Add math.
31132         * modules/isnanf-nolibm (Depends-on): Likewise.
31133         * modules/isnanl (Depends-on): Likewise.
31134         * modules/isnanl-nolibm (Depends-on): Likewise.
31135         * modules/snprintf-posix-tests (Depends-on): Likewise.
31136         * modules/sprintf-posix-tests (Depends-on): Likewise.
31137         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31138         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31139         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31140         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31141
31142 2008-03-31  Bruno Haible  <bruno@clisp.org>
31143
31144         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31145         * doc/posix-functions/strtod.texi: Likewise.
31146
31147 2008-03-31  Bruno Haible  <bruno@clisp.org>
31148
31149         * tests/test-strtod.c (main): Don't use C99 syntax.
31150
31151 2008-03-31  Bruno Haible  <bruno@clisp.org>
31152
31153         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31154         Reported by Eric Blake.
31155
31156 2008-03-31  Jim Meyering  <meyering@redhat.com>
31157
31158         Don't compare actual signbit return values.
31159         * tests/test-strtod.c (main): Rather, compare only their
31160         zero/non-zero nature.
31161
31162 2008-03-31  Eric Blake  <ebb9@byu.net>
31163
31164         More strtod documentation.
31165         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31166         failures as distinct bugs.
31167
31168 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31169
31170         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31171         Problem reported by Erik Benada in
31172         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31173
31174 2008-03-30  Bruno Haible  <bruno@clisp.org>
31175
31176         * tests/test-strtod.c: Add comments about which assertion fails on which
31177         platform.
31178         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31179
31180 2008-03-30  Eric Blake  <ebb9@byu.net>
31181
31182         Test signbit behavior on zeros.
31183         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31184         (test_signbitd, test_signbitl): Likewise.
31185
31186         More strtod touchups.
31187         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31188         sign of negative underflow, for now.  Use .5, not .1.
31189         * doc/posix-functions/strtod.texi (strtod): Mention these
31190         limitations.
31191         Reported by Jim Meyering.
31192
31193 2008-03-30  Bruno Haible  <bruno@clisp.org>
31194
31195         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31196         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31197
31198 2008-03-30  Bruno Haible  <bruno@clisp.org>
31199
31200         Avoid failure when attempting to return empty iconv results on some
31201         platforms.
31202         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31203         allocation, don't report ENOMEM when the resulting string is empty.
31204
31205 2008-03-30  Bruno Haible  <bruno@clisp.org>
31206
31207         Fix buffer overrun.
31208         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31209         Don't consider the width for tmp_length. Check count against tmp_length
31210         before doing the padding. Ensure enough allocation during padding.
31211
31212 2008-03-30  Eric Blake  <ebb9@byu.net>
31213
31214         strtod touchups.
31215         * lib/strtod.c (strtod): Avoid compiler warnings.
31216         Reported by Jim Meyering.
31217
31218 2008-03-30  Bruno Haible  <bruno@clisp.org>
31219
31220         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31221         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31222         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31223         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31224         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31225         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31226         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31227         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31228
31229         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31230         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31231         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31232         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31233         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31234         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31235         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31236         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31237
31238         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31239         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31240         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31241         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31242         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31243         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31244         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31245         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31246
31247         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31248         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31249
31250         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31251         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31252
31253         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31254         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31255
31256         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31258         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31259
31260         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31262         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31263
31264         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31266         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31267
31268         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31270         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31271
31272         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31273         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31274         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31275         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31276         (Depends-on): Add EOVERFLOW.
31277         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31278         (Depends-on): Add EOVERFLOW.
31279         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31280         (Depends-on): Add EOVERFLOW.
31281         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31282         (Depends-on): Add EOVERFLOW.
31283         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31284         (Depends-on): Add EOVERFLOW.
31285         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31286         (Depends-on): Add EOVERFLOW.
31287         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31288         (Depends-on): Add EOVERFLOW.
31289         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31290         (Depends-on): Add EOVERFLOW.
31291
31292         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31294         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31295
31296         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31298         * modules/snprintf (Depends-on): Add EOVERFLOW.
31299
31300         * lib/poll.c (EOVERFLOW): Remove fallback.
31301         * modules/poll (Depends-on): Add EOVERFLOW.
31302
31303         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31304         * modules/getugroups (Depends-on): Add EOVERFLOW.
31305
31306         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31307         * modules/getdelim (Depends-on): Add EOVERFLOW.
31308
31309         * lib/ftell.c (EOVERFLOW): Remove fallback.
31310         * modules/ftell (Depends-on): Add EOVERFLOW.
31311
31312         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31313         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31314         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31315
31316         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31317
31318         * modules/EOVERFLOW-tests: New file.
31319         * tests/test-EOVERFLOW.c: New file.
31320
31321         * modules/EOVERFLOW: New file.
31322         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31323
31324 2008-03-30  Bruno Haible  <bruno@clisp.org>
31325
31326         Fix bug introduced on 2007-06-10.
31327         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31328         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31329
31330 2008-03-30  Bruno Haible  <bruno@clisp.org>
31331
31332         Improve freadseek's efficiency after ungetc.
31333         * lib/freadseek.c: Include freadahead.h.
31334         (freadptrinc): New function, extracted from freadseek.
31335         (freadseek): Use it in a loop. Use freadahead to determine the number
31336         of loop iterations.
31337         * modules/freadseek (Depends-on): Add freadahead.
31338         (configure.ac): Require AC_C_INLINE.
31339
31340 2008-03-30  Bruno Haible  <bruno@clisp.org>
31341
31342         * lib/freadseek.c (freadseek): Don't ignore the return value of
31343         freadptr.
31344
31345 2008-03-29  Eric Blake  <ebb9@byu.net>
31346
31347         Add hex float support.
31348         * modules/strtod (Depends-on): Add c-ctype.
31349         (Link): Mention POW_LIB.
31350         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31351         whitespace between 'e' and exponent.
31352         * tests/test-strtod.c (main): Enable hex float tests.
31353         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31354         now provides.
31355
31356         Document various strtod bugs, with some fixes.
31357         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31358         "-0x", "inf", "nan", and hex constants.
31359         * doc/posix-functions/atof.texi (atof): Likewise.
31360         * modules/stdlib (Makefile.am): Support strtod.
31361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31362         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31363         detect additional strtod bugs.
31364         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31365         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31366         bool where appropriate.  Parse 'inf' and 'nan'.
31367         * tests/test-strtod.c: New file.
31368         * modules/strtod (Depends-on): Add stdbool, stdlib.
31369         (configure.ac): Turn on module indicator.
31370         * modules/strtod-tests: New module.
31371
31372 2008-03-29  Eric Blake  <ebb9@byu.net>
31373
31374         Fix ftell on mingw.
31375         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31376         * modules/ftell-tests (Depends-on): Add binary-io.
31377         * modules/ftello-tests (Depends-on): Likewise.
31378         * tests/test-ftell.c (main): Enhance test to cover behavior after
31379         ungetc.  Enforce binary mode.
31380         * tests/test-ftello.c (main): Likewise.
31381
31382         Pass test-freadseek on cygwin.
31383         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31384         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31385         ungetc buffer.
31386
31387         * tests/test-fflush2.c (main): Fix typo.
31388
31389 2008-03-29  Bruno Haible  <bruno@clisp.org>
31390
31391         * tests/test-fflush2.c (main): Temporarily disable the contents of
31392         this test.
31393         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31394         Reported by Eric Blake.
31395
31396 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31397
31398         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31399         (GC_SHA224_DIGEST_SIZE): Add.
31400
31401         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31402         (gc_hash_digest_length): Likewise.
31403         (gc_hash_buffer): Likewise.
31404
31405 2008-03-25  Bruno Haible  <bruno@clisp.org>
31406
31407         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31408         detail which gettext release to use.
31409         Reported by Simon Josefsson.
31410
31411 2008-03-26  Jim Meyering  <meyering@redhat.com>
31412
31413         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31414         * modules/gnumakefile (clean-GNUmakefile): Also, use
31415         test ... && ... || : syntax rather than if-then ... fi.
31416
31417         gnumakefile: Don't double-quote-expand $(VPATH) value.
31418         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31419
31420 2008-03-24  Eric Blake  <ebb9@byu.net>
31421
31422         Alter GNUmakefile to install into top directory.
31423         * modules/maintainer-makefile: Split, and add dependency...
31424         * modules/gnumakefile: to this new module.
31425         * build-aux/GNUmakefile: Move...
31426         * top/GNUmakefile: ...here.
31427         * build-aux/maint.mk: Move...
31428         * top/maint.mk: ...here.
31429         * MODULES.html.sh (Support for maintaining...): Document new
31430         module.
31431
31432 2008-03-23  Bruno Haible  <bruno@clisp.org>
31433
31434         * gnulib-tool: New options --vc-files, --no-vc-files.
31435         (func_usage): Document them.
31436         (vc_files): New variable.
31437         (func_import): Consider vc_files.
31438         (func_create_testdir): Set vc_files to empty.
31439         Suggested by Jim Meyering and Karl Berry.
31440
31441 2008-03-23  Bruno Haible  <bruno@clisp.org>
31442
31443         Fix regex compilation error on HP-UX 11.
31444         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31445         * modules/regex (Files): Add m4/mbstate_t.m4.
31446         Reported by Ton Voon <ton.voon@altinity.com>.
31447
31448 2008-03-23  Bruno Haible  <bruno@clisp.org>
31449
31450         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31451
31452 2008-03-23  Eric Blake  <ebb9@byu.net>
31453             Bruno Haible  <bruno@clisp.org>
31454
31455         Install files from top/ in the destination directory.
31456         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31457         augmentation also for the files from top/.
31458         (func_import, func_create_testdir): Rewrite file names:
31459         top/filename -> filename.
31460
31461 2008-03-23  Bruno Haible  <bruno@clisp.org>
31462
31463         Tweak "gnulib --version" output.
31464         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31465
31466 2008-03-23  Bruno Haible  <bruno@clisp.org>
31467
31468         Tweak "gnulib --version" output.
31469         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31470         rather than contents of ChangeLog, when possible.
31471
31472 2008-03-21  Eric Blake  <ebb9@byu.net>
31473
31474         More --version tweaks.
31475         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31476         date of last ChangeLog entry.
31477
31478 2008-03-21  Jim Meyering  <meyering@redhat.com>
31479
31480         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31481
31482 2008-03-20  Eric Blake  <ebb9@byu.net>
31483
31484         VPATH fix.
31485         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31486
31487 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31488
31489         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31490         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31491
31492 2008-03-20  Eric Blake  <ebb9@byu.net>
31493
31494         Sync GNUmakefile with coreutils.
31495         * build-aux/GNUmakefile (have-Makefile): Rename...
31496         (_have-Makefile): ...to this, for namespace consideration.
31497         (GNUmakefile.cfg): Include, if present.
31498         (_autoreconf): Define a default.
31499         (_is-dist-target): New rule for rebuilds to pick up intra-release
31500         version.
31501         (maint-cfg.mk): Rename...
31502         (cfg.mk): ...to this.
31503
31504 2008-03-18  Jim Meyering  <meyering@redhat.com>
31505
31506         New script and module: mktempd
31507         * MODULES.html.sh (maint+release support): Add mktempd.
31508         * build-aux/mktempd: New file.
31509         * modules/mktempd: New file.
31510
31511 2008-03-15  Jim Meyering  <meyering@redhat.com>
31512
31513         Undo last change.
31514         * lib/sha1.c, lib/md5.c: 63 != ~63.
31515         Reported by Andreas Schwab.
31516
31517         sha1.c, md5.c: Hoist a redundant expression.
31518         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31519         "ctx->buflen" only once, before calling *_process_block.
31520         * lib/md5.c (md5_process_bytes): Likewise.
31521
31522 2008-03-14  Eric Blake  <ebb9@byu.net>
31523
31524         Bump copyright year in files generated by gnulib-tool.
31525         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31526         gnulib-tool, rather than hard-coding it.
31527
31528         Fix 'gnulib-tool --version' output to work with git.
31529         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31530         (startup): ...here.
31531         (func_version): Use it to invoke git-version-gen, rather than
31532         relying on CVS keyword expansion.  Modernize wording.
31533         (cvsdatestamp, last_checkin_date, version): Kill unused
31534         variables.
31535
31536 2008-03-12  Jim Meyering  <meyering@redhat.com>
31537
31538         Recognize optional cast of the argument to free.
31539         * build-aux/useless-if-before-free: Update regexps.
31540
31541         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31542
31543 2008-03-11  Bruno Haible  <bruno@clisp.org>
31544
31545         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31546         by a single package.
31547         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31548         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31549         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31550         Reported by Sam Steingold <sds@gnu.org>.
31551
31552 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31553
31554         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31555         repositories.
31556
31557 2008-03-11  Bruno Haible  <bruno@clisp.org>
31558
31559         Avoid conflicts between local macro definitions.
31560         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31561         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31562
31563 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31564             Bruno Haible  <bruno@clisp.org>
31565
31566         Make va_copy work with some version of xlc on AIX 5.1.
31567         * lib/stdarg.in.h: New file.
31568         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31569         On AIX, use a <stdarg.h> file substitute.
31570         * modules/stdarg (Files): Add lib/stdarg.in.h.
31571         (Depends-on): Add include_next.
31572         (Makefile.am): Build a stdarg.h substitute if requested.
31573         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31574
31575 2008-03-10  Bruno Haible  <bruno@clisp.org>
31576
31577         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31579         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31580
31581 2008-03-10  Bruno Haible  <bruno@clisp.org>
31582
31583         * modules/stdlib (Depends-on): Add include_next, remove
31584         absolute-header.
31585
31586 2008-03-09  Bruno Haible  <bruno@clisp.org>
31587
31588         * lib/freadahead.h (freadahead): Document more precisely.
31589         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31590         the sum of both buffer sizes.
31591         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31592         * NEWS: Document the change.
31593
31594 2008-03-09  Bruno Haible  <bruno@clisp.org>
31595
31596         Extend freadptr to return also the buffer size.
31597         * lib/freadptr.h (freadptr): Add sizep argument.
31598         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31599         (freadptr): Add sizep argument. Determine buffer size like freadahead
31600         does.
31601         * tests/test-freadptr.c: Don't include freadahead.h.
31602         (main): Adapt for new calling convention of freadptr.
31603         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31604         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31605         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31606         tests/test-freadptr2.sh.
31607         (Depends): Remove freadahead.
31608         (TESTS): Add test-freadptr2.sh.
31609         (check_PROGRAMS): Add test-freadptr2.
31610
31611 2008-03-09  Bruno Haible  <bruno@clisp.org>
31612
31613         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31614         Report and solution by Simon Josefsson.
31615
31616 2008-03-06  Bruno Haible  <bruno@clisp.org>
31617
31618         Make fflush after ungetc work on BSD platforms.
31619         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31620         * tests/test-fflush2.c: New file.
31621         * tests/test-fflush2.sh: New file.
31622         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31623         tests/test-fflush2.c.
31624         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31625         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31626
31627 2008-03-06  Eric Blake  <ebb9@byu.net>
31628
31629         Likewise for ftello.
31630         * modules/ftello (Dependencies): Add extensions.
31631         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31632
31633 2008-03-06  Bruno Haible  <bruno@clisp.org>
31634
31635         * modules/fseeko (Dependencies): Add extensions.
31636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31637         Needed on glibc systems.
31638
31639 2008-03-06  Bruno Haible  <bruno@clisp.org>
31640
31641         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31642         email address.
31643         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31644
31645 2008-03-06  Bruno Haible  <bruno@clisp.org>
31646
31647         * users.txt: Add libgnupdf.
31648
31649 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31650
31651         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31652         (Header File Substitutes, Function Substitutes,
31653         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31654         (Build robot for gnulib): Fix typo.
31655
31656 2008-03-06  Bruno Haible  <bruno@clisp.org>
31657
31658         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31659         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31660
31661 2008-03-06  Bruno Haible  <bruno@clisp.org>
31662
31663         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31664         * doc/gnulib.texi: Include it.
31665
31666 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31667
31668         * modules/func (License): Change license to unlimited; there was
31669         no LGPL parts in the module anyway.
31670
31671 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31672
31673         * modules/__func__: Renamed to modules/func.
31674         * modules/__func__-tests: Renamed to modules/func-tests.
31675         * tests/test-__func__.c: Renamed to tests/test-func.c.
31676         * m4/__func__.m4: Renamed to m4/func.m4.
31677         * doc/gnulib.texi (__func__): Section renamed to func.
31678         Suggested by Eric Blake <ebb9@byu.net>.
31679
31680 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31681
31682         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31683         about __func__.  Make example self-contained.  Suggested by Eric
31684         Blake <ebb9@byu.net>.
31685
31686         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31687         Suggested by Eric Blake <ebb9@byu.net>.
31688
31689 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31690
31691         * modules/__func__: New file.
31692         * modules/__func__-tests: New file.
31693         * tests/test-__func__.c: New file.
31694         * m4/__func__.m4: New file.
31695         * doc/gnulib.texi (__func__): Document __func__ module.
31696
31697 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31698
31699         * modules/byteswap (License): Re-license as LGPLv2+.
31700
31701 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31702
31703         * doc/Makefile: Add pdf target.
31704
31705 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31706
31707         * modules/inline (License): Use 'unlimited', since there are only
31708         *.m4 files in this module.
31709
31710 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31711             Bruno Haible  <bruno@clisp.org>
31712
31713         Add support for HP C 7.1 on OpenVMS 8.3.
31714         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31715
31716 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31717
31718         Update VMS specifics.
31719         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31720
31721 2008-03-02  Jim Meyering  <meyering@redhat.com>
31722
31723         Remove the last dependency on the "free" module.
31724         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31725         Reported by Bob Proulx.
31726
31727         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31728
31729         Remove useless "if" tests before free.  Deprecate "free" module.
31730         * doc/posix-functions/free.texi: Mention that this
31731         module is no longer useful.
31732         * modules/free (Notice): Say this module is obsolete.
31733         * modules/readutmp (Depends-on): Remove free.
31734         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31735         * lib/putenv.c (putenv): Likewise.
31736         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31737         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31738         * tests/test-c-strcasestr.c (main): Likewise.
31739         * tests/test-c-strstr.c (main): Likewise.
31740         * tests/test-mbscasestr1.c (main): Likewise.
31741         * tests/test-mbscasestr2.c (main): Likewise.
31742         * tests/test-mbsstr1.c (main): Likewise.
31743         * tests/test-mbsstr2.c (main): Likewise.
31744         * tests/test-memmem.c (main): Likewise.
31745         * tests/test-strcasestr.c (main): Likewise.
31746         * tests/test-striconv.c (main): Likewise.
31747         * tests/test-striconveh.c (main): Likewise.
31748         * tests/test-striconveha.c (main): Likewise.
31749         * tests/test-strstr.c (main): Likewise.
31750
31751         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31752
31753         bootstrap: sync from coreutils again
31754         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31755
31756 2008-03-01  Jim Meyering  <meyering@redhat.com>
31757
31758         bootstrap: sync from coreutils
31759         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31760         also when the target doesn't exist.
31761
31762 2008-03-01  Eric Blake  <ebb9@byu.net>
31763
31764         Fix bugs in last patch.
31765         * lib/memchr2.c (memchr2): Fix typo.
31766         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31767         extension.
31768         Reported by Bruce Korb.
31769
31770         New module 'memchr2'.
31771         * modules/memchr2: New file.
31772         * modules/memchr2-tests: Likewise.
31773         * lib/memchr2.h: Likewise.
31774         * lib/memchr2.c: Likewise, based on memchr.c.
31775         * tests/test-memchr2.c: New test.
31776         * MODULES.html.sh (String handling): Add memchr2.
31777
31778 2008-02-29  Bruno Haible  <bruno@clisp.org>
31779
31780         * modules/freadseek-tests: New file.
31781         * tests/test-freadseek.sh: New file.
31782         * tests/test-freadseek.c: New file.
31783
31784         New module 'freadseek'.
31785         * modules/freadseek: New file.
31786         * lib/freadseek.h: New file.
31787         * lib/freadseek.c: New file.
31788         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31789
31790 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31791
31792         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31793         wydawca.
31794
31795         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31796         program_invocation_name and program_invocation_short_name are
31797         present.
31798
31799 2008-02-28  Bruno Haible  <bruno@clisp.org>
31800
31801         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31802         * tests/test-freadptr.sh: Also test non-seekable stdin.
31803
31804 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31805
31806         * build-aux/bootstrap (source_base, m4_base)
31807         (doc_base, tests_base): New variables.
31808         (gnulib_tool_options): Do not hardcode base directories, use
31809         the above variables instead.
31810
31811 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31812
31813         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31814
31815 2008-02-28  Bruno Haible  <bruno@clisp.org>
31816
31817         * modules/freadptr-tests: New file.
31818         * tests/test-freadptr.sh: New file.
31819         * tests/test-freadptr.c: New file.
31820
31821         New module 'freadptr'.
31822         * modules/freadptr: New file.
31823         * lib/freadptr.h: New file.
31824         * lib/freadptr.c: New file.
31825         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31826
31827 2008-02-26  Karl Berry  <karl@freefriends.org>
31828
31829         Sync from Libtool:
31830         * libltdl/argz.c (argz_add, argz_count): New functions.
31831         * libltdl/argz.in.h: Declare them.
31832         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31833
31834 2008-02-22  Bruno Haible  <bruno@clisp.org>
31835
31836         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31837         is a pointer type.  Needed for HP-UX 10.
31838         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31839         * doc/posix-functions/gmtime_r.texi: Likewise.
31840         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31841
31842 2008-02-24  Bruno Haible  <bruno@clisp.org>
31843
31844         * modules/environ-tests: New file.
31845         * tests/test-environ.c: New file.
31846
31847         New module 'environ'.
31848         * modules/environ: New file.
31849         * lib/unistd.in.h (environ): New declaration.
31850         * m4/environ.m4: New file.
31851         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31852         after use.
31853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31854         HAVE_DECL_ENVIRON.
31855         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31856         HAVE_DECL_ENVIRON.
31857         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31858         wrong claim that 'environ' is missing on some systems.
31859         * modules/execute (Depends-on): Add environ.
31860         * lib/execute.c (environ): Remove fallback declaration.
31861         * modules/pipe (Depends-on): Add environ.
31862         * lib/pipe.c (environ): Remove fallback declaration.
31863         * modules/setenv (Depends-on): Add environ.
31864         * lib/setenv.c (environ): Remove fallback declaration.
31865         * modules/unsetenv (Depends-on): Add environ.
31866         * lib/unsetenv.c (environ): Remove fallback declaration.
31867         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31868         m4/environ.m4.
31869         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31870         (gl_PREREQ_UNSETENV): Likewise.
31871
31872 2008-02-24  Bruno Haible  <bruno@clisp.org>
31873
31874         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31875
31876 2008-02-20  Bob Proulx  <bob@proulx.com>
31877
31878         Enable use of older two part flavor 'git describe'.
31879         * build-aux/git-version-gen: If using the older two part flavor of
31880         git version then recreate the third part now present in the
31881         newer three part flavor of git describe.
31882
31883 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31884
31885         * lib/fts.c (fts_build): Typo correction to comment.
31886
31887 2008-02-17  Bruno Haible  <bruno@clisp.org>
31888
31889         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31890         generating no-op conflicts.
31891
31892 2008-02-17  Bruno Haible  <bruno@clisp.org>
31893
31894         Speed up by 10%.
31895         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31896         result_entries, rather than an index-based loop.
31897
31898 2008-02-17  Bruno Haible  <bruno@clisp.org>
31899
31900         Speed up by 25%.
31901         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31902         'hashcode_cached'.
31903         (entry_create): New function.
31904         (entry_hashcode): Use the cached hashcode if possible.
31905         (read_changelog_file, try_split_merged_entry): Use entry_create.
31906
31907 2008-02-17  Bruno Haible  <bruno@clisp.org>
31908
31909         Speed up from O(n^2) to O(n) for long ChangeLog files.
31910         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31911         (read_changelog_file): Change implementation of entries_reversed list
31912         to rbtreehash.
31913         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31914
31915 2008-02-17  Bruno Haible  <bruno@clisp.org>
31916
31917         New option --split-merged-entry.
31918         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31919         (find_paragraph_end, try_split_merged_entry): New functions.
31920         (long_options): Add option --split-merged-entry.
31921         (usage): Document option --split-merged-entry.
31922         (main): Implement option --split-merged-entry.
31923         Reported by Eric Blake.
31924
31925 2008-02-17  Bruno Haible  <bruno@clisp.org>
31926
31927         * lib/git-merge-changelog.c: Include c-strstr.h.
31928         (main): Support the "git pull --rebase" situation.
31929         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31930         Reported by Eric Blake.
31931
31932 2008-02-16  Eric Blake  <ebb9@byu.net>
31933
31934         Avoid doubling \ in common case of "c-maybe" quoting style.
31935         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31936         eliding outer quotes.
31937         * lib/quotearg.h: Document this.
31938         * tests/test-quotearg.c (result_strings, inputs, results_g)
31939         (flag_results, locale_results): Test it by adding a new string to
31940         each test group.
31941         (compare_strings): Test new string.
31942
31943 2008-02-13  Eric Blake  <ebb9@byu.net>
31944
31945         Avoid trigraph quoting in default output.
31946         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31947         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31948         unless explicitly requested.
31949         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31950
31951 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31952
31953         Don't rely on signed integer overflowing to negative value.
31954         * lib/getugroups.c (getugroups): Include <limits.h>.
31955         Instead, compare against INT_MAX, and increment only if the test passes.
31956
31957 2008-02-13  Jim Meyering  <meyering@redhat.com>
31958         and Eric Blake  <ebb9@byu.net>
31959
31960         Avoid shadowing warning and compile errors on Linux.
31961         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
31962         forwarding macros on Linux.
31963         (dcgettext): Define a stub, for Linux.
31964         (results_g, main): Avoid warnings.
31965
31966 2008-02-12  Eric Blake  <ebb9@byu.net>
31967
31968         Silence warning in last patch.
31969         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
31970
31971         Quotearg part 4: add tests, fix c-maybe colon quoting.
31972         * lib/quotearg.h: Improve documentation.
31973         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
31974         escapes when adding outer quotes.  When quoting trigraphs, use
31975         valid C notation.  When quoting NUL, omit extra characters if next
31976         character is not digit.  Alter prototype.
31977         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
31978         callers.
31979         * modules/quotearg-tests: New module.
31980         * tests/test-quotearg.c: New test.
31981
31982 2008-02-07  Eric Blake  <ebb9@byu.net>
31983
31984         Quotearg part 3: add flag to control outer quote elision.
31985         * lib/quotearg.h (c_maybe_quoting_style): New style.
31986         (enum quoting_flags): Better documentation of flags.
31987         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
31988         c-maybe style.
31989         (quotearg_buffer_restyled): Handle new flag to elide outer
31990         quotes.
31991
31992         Quotearg part 2: add flag that can control NUL elision.
31993         * lib/quotearg.h (set_quoting_flags): New prototype.
31994         * lib/quotearg.c (struct quoting_options): Add flag field.
31995         (set_quoting_flags): New function.
31996         (quotearg_buffer_restyled): Add flags parameter.
31997         (quotearg_alloc_mem): Set the flag if length cannot be returned.
31998         (quotearg_n_options): Set the flag, since length cannot be
31999         returned.
32000         (quoting_options_from_style): Default flags correctly.
32001
32002         Quotearg part 1: more wrappers, restore quotearg_char state.
32003         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32004         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32005         (quotearg_colon_mem): New wrappers.
32006         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32007         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32008         functions.
32009         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32010         (quotearg_colon_mem): New functions.
32011
32012 2008-02-11  Bruno Haible  <bruno@clisp.org>
32013
32014         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32015         library in the current directory: it does not work with parallel make.
32016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32017
32018 2008-02-11  Bruno Haible  <bruno@clisp.org>
32019
32020         * .gitattributes: New file.
32021
32022 2008-02-11  Jim Meyering  <meyering@redhat.com>
32023
32024         useless-if-before-free: Fix reversed exit values.
32025         * build-aux/useless-if-before-free: Use correct values
32026         for EXIT_MATCH and EXIT_NO_MATCH.
32027
32028         * build-aux/useless-if-before-free: Close stdout carefully.
32029
32030 2008-02-10  Bruno Haible  <bruno@clisp.org>
32031
32032         New module 'git-merge-changelog'.
32033         * modules/git-merge-changelog: New file.
32034         * lib/git-merge-changelog.c: New file.
32035
32036 2008-02-10  Jim Meyering  <meyering@redhat.com>
32037
32038         useless-if-before-free: New option: --list (-l).
32039
32040         useless-if-before-free: Don't exit immediately upon open failure.
32041         * build-aux/useless-if-before-free: Exit 2 for errors.
32042         Upon failure to open a file, don't exit immediately.
32043         Rather, just warn and continue with any remaining files.
32044
32045 2008-02-10  Bruno Haible  <bruno@clisp.org>
32046
32047         New abstract list operation 'node_set_value'.
32048         * lib/gl_list.h (gl_list_node_set_value): New function.
32049         (struct gl_list_implementation): New field node_set_value.
32050         * lib/gl_list.c (gl_list_node_set_value): New function.
32051         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32052         (gl_array_list_implementation): Update.
32053         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32054         (gl_carray_list_implementation): Update.
32055         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32056         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32057         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32058         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32059         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32060         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32061         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32062         Update.
32063         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32064         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32065         (gl_sublist_list_implementation): Update.
32066
32067 2008-02-10  Bruno Haible  <bruno@clisp.org>
32068
32069         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32070         Needed when ELEMENT is #defined to 'some_type *'.
32071
32072 2008-02-10  Jim Meyering  <meyering@redhat.com>
32073
32074         New script and module: useless-if-before-free
32075         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32076         * build-aux/useless-if-before-free: New file.
32077         * modules/useless-if-before-free: New file.
32078
32079         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32080
32081         xstrtol_error: Fix typo.
32082         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32083         s/exit_failure/exit_status/.
32084
32085 2008-02-09  Jim Meyering  <meyering@redhat.com>
32086
32087         New script and module: gitlog-to-changelog
32088         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32089         * modules/gitlog-to-changelog: New file.
32090         * build-aux/gitlog-to-changelog: New file.
32091
32092 2008-02-08  Jim Meyering  <meyering@redhat.com>
32093
32094         Avoid two "parameter unused" warnings.
32095         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32096         Mark "st" as used.
32097
32098         Use "git COMMAND", not "git-COMMAND".
32099         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32100         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32101         * build-aux/git-version-gen: Use "git status", not "git-status".
32102
32103 2008-02-07  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32106         Avoids a crash on Windows Vista.
32107         Reported by Adam Strzelecki <ono@java.pl> via
32108         Simon Josefsson <simon@josefsson.org>.
32109
32110 2008-02-06  Bruno Haible  <bruno@clisp.org>
32111
32112         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32113         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32114         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32118         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32119         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32127         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32128         left-adjust flag.
32129         * tests/test-snprintf-posix.h (test_function): Likewise.
32130         * tests/test-sprintf-posix.h (test_function): Likewise.
32131         * tests/test-vasprintf-posix.c (test_function): Likewise.
32132         * doc/posix-functions/fprintf.texi: Update.
32133         * doc/posix-functions/printf.texi: Update.
32134         * doc/posix-functions/snprintf.texi: Update.
32135         * doc/posix-functions/sprintf.texi: Update.
32136         * doc/posix-functions/vfprintf.texi: Update.
32137         * doc/posix-functions/vprintf.texi: Update.
32138         * doc/posix-functions/vsnprintf.texi: Update.
32139         * doc/posix-functions/vsprintf.texi: Update.
32140         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32141
32142 2008-02-06  Bruno Haible  <bruno@clisp.org>
32143
32144         Fix bug introduced on 2008-01-26.
32145         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32146
32147 2008-02-06  Bruno Haible  <bruno@clisp.org>
32148
32149         Fix bug introduced on 2007-06-10.
32150         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32151         !NEED_PRINTF_FLAG_ZERO.
32152
32153 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32154
32155         getloadavg: use libperfstat on AIX5
32156         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32157
32158 2008-02-03  Bruno Haible  <bruno@clisp.org>
32159
32160         * lib/diffseq.h: Add comments about required #includes.
32161         Reported by Michael Biggs <gnulib@doubleplum.net>.
32162
32163 2008-02-01  Bruno Haible  <bruno@clisp.org>
32164
32165         * users.txt: Add gnuit.
32166
32167 2008-01-31  Bruno Haible  <bruno@clisp.org>
32168
32169         * lib/md4.c (set_uint32): Mark as inline.
32170         * lib/md5.c (set_uint32): Likewise.
32171         * lib/sha1.c (set_uint32): Likewise.
32172         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32173         * m4/md5.m4 (gl_MD5): Likewise.
32174         * m4/sha1.m4 (gl_SHA1): Likewise.
32175
32176 2008-01-31  Jim Meyering  <meyering@redhat.com>
32177
32178         Use "sizeof VAR", rather than a literal "4".
32179         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32180         * lib/md4.c (md4_read_ctx): Likewise.
32181         * lib/sha1.c (sha1_read_ctx): Likewise.
32182
32183 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32184
32185         * tests/test-sha1.c: New file, based on test-md5.c.
32186
32187         * modules/crypto/sha1-tests: New file.
32188
32189 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32190
32191         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32192
32193 2008-01-31  Jim Meyering  <meyering@redhat.com>
32194
32195         Prefer "sizeof v" over the equivalent "4".
32196         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32197         * lib/md5.c (set_uint32): Likewise.
32198         * lib/sha1.c (set_uint32): Likewise.
32199
32200 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32201
32202         * lib/sha1.c (set_uint32): Mark function as static.
32203
32204 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32205
32206         md2: clarify comments to say that alignment is not required.
32207         * lib/md2.h: Remove warning about alignment in comment.
32208         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32209         never been required.
32210
32211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32212
32213         md4: adapt alignment constraint fix from sha1.
32214         * lib/md4.c (set_uint32): New function, from sha1.c
32215         (md4_read_ctx): Use it.
32216         (md4_finish_ctx): Doc fix.
32217         * lib/md4.h: Doc fix.
32218
32219 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32220
32221         md5: adapt alignment constraint fix from sha1.
32222         * lib/md5.c (set_uint32): New function, from sha1.c
32223         (md5_read_ctx): Use it.
32224         (md5_finish_ctx): Doc fix.
32225         * lib/md5.h: Doc fix.
32226
32227 2008-01-30  Peter Palfrader  <weasel@debian.org>
32228
32229         sha1: remove the result buffer alignment constraint
32230         * lib/sha1.c (set_uint32): New function.
32231         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32232         constraint.
32233         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32234         * lib/sha1.h: Likewise.
32235
32236 2008-01-30  Andreas Schwab  <schwab@suse.de>
32237             Bruno Haible  <bruno@clisp.org>
32238
32239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32240         correct definition of LDBL_MIN_EXP.
32241
32242 2008-01-30  Karl Berry  <karl@gnu.org>
32243
32244         * config/srclist-update: try to preserve x bit on updates.
32245         * config/srclistvars.sh: update for karl.
32246
32247 2008-01-29  Jim Meyering  <meyering@redhat.com>
32248
32249         vasnprintf.c: Avoid warning about unused label
32250         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32251         "overflow" label definition and associated code with the
32252         same cpp condition that guards the sole use of that label.
32253
32254 2008-01-26  Bruno Haible  <bruno@clisp.org>
32255
32256         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32257         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32258         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32259         * lib/isnanl-nolibm.h (isnanl): Likewise.
32260         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32261
32262 2008-01-26  Bruno Haible  <bruno@clisp.org>
32263
32264         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32265         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32266
32267 2008-01-26  Bruno Haible  <bruno@clisp.org>
32268
32269         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32270         GCC >= 4.0 built-in.
32271         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32272
32273 2008-01-26  Bruno Haible  <bruno@clisp.org>
32274
32275         Rename isnan, applicable to 'double' only, to isnand.
32276         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32277         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32278         (configure.ac): Update.
32279         (Include): Replace "isnan.h" with "isnand.h".
32280         * m4/isnand.m4: Renamed from m4/isnan.m4.
32281         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32282         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32283         instead of isnan.c.
32284         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32285         instead of HAVE_ISNAN_IN_LIBC.
32286         (isnand): Renamed from isnan.
32287         * lib/isnand.c: New file.
32288         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32289         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32290         (Makefile.am): Update.
32291         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32292         Include isnand.h instead of isnan.h.
32293         (main): Test isnand instead of isnan.
32294         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32295         isnan-nolibm.
32296         * modules/frexp (Depends-on): Likewise.
32297         * modules/frexp-tests (Depends-on): Likewise.
32298         * modules/frexp-nolibm (Depends-on): Likewise.
32299         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32300         * modules/isfinite (Depends-on): Likewise.
32301         * modules/round-tests (Depends-on): Likewise.
32302         * modules/signbit (Depends-on): Likewise.
32303         * modules/signbit-tests (Depends-on): Likewise.
32304         * modules/snprintf-posix (Depends-on): Likewise.
32305         * modules/sprintf-posix (Depends-on): Likewise.
32306         * modules/trunc-tests (Depends-on): Likewise.
32307         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32308         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32309         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32310         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32311         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32313         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32314         * modules/vasnprintf-posix (Depends-on): Likewise.
32315         * modules/vasprintf-posix (Depends-on): Likewise.
32316         * modules/vfprintf-posix (Depends-on): Likewise.
32317         * modules/vsnprintf-posix (Depends-on): Likewise.
32318         * modules/vsprintf-posix (Depends-on): Likewise.
32319         * lib/frexp.c: Include isnand.h instead of isnan.h.
32320         (ISNAN): Set to isnand instead of isnan.
32321         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32322         (gl_isfinited): Use isnand instead of isnan.
32323         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32324         (gl_signbitd): Use isnand instead of isnan.
32325         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32326         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32327         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32328         (main): Use isnand instead of isnan.
32329         * tests/test-round1.c: Include isnand.h.
32330         (main): Use isnand instead of isnan.
32331         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32332         (ISNAN): Set to isnand instead of isnan.
32333         * tests/test-trunc1.c: Include isnand.h.
32334         (main): Use isnand instead of isnan.
32335         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32336         (equal): Use isnand instead of isnan.
32337         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32338         isnand-nolibm.
32339         * NEWS: Mention the change.
32340
32341 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32342             Bruno Haible  <bruno@clisp.org>
32343
32344         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32345         the GCC builtins for signbits are present and set
32346         REPLACE_SIGNBIT_USING_GCC if so.
32347         * lib/math.in.h (signbit): Define using GCC builtins if
32348         REPLACE_SIGNBIT_USING_GCC is set.
32349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32350         REPLACE_SIGNBIT_USING_GCC.
32351         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32352
32353 2008-01-25  Jim Meyering  <meyering@redhat.com>
32354
32355         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32356         * lib/poll.c: Include <config.h>, not "config.h".
32357         * tests/test-getaddrinfo.c: Likewise.
32358
32359 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32360
32361         * modules/sockets-tests: New file.
32362
32363 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32364
32365         * modules/sockets: New module, can be used to call WSA_Startup and
32366         WSA_Cleanup when needed.
32367
32368         * lib/sockets.h, lib/sockets.c: New files.
32369
32370         * m4/sockets.m4: New file.
32371
32372         * tests/test-sockets.c: New file.
32373
32374 2008-01-19  Bruno Haible  <bruno@clisp.org>
32375
32376         * doc/posix-headers: Renamed from doc/headers.
32377         * doc/posix-functions: Renamed from doc/functions.
32378         * doc/gnulib.texi: Update.
32379
32380 2008-01-19  Bruno Haible  <bruno@clisp.org>
32381
32382         * doc/glibc-functions/strcasestr.texi: Include contents of
32383         doc/functions/strcasestr.texi, fixing the list of platforms.
32384         * doc/functions/strcasestr.texi: Remove file.
32385
32386 2008-01-19  Bruno Haible  <bruno@clisp.org>
32387
32388         * doc/glibc-functions/memmem.texi: Include contents of
32389         doc/functions/memmem.texi.
32390         * doc/functions/memmem.texi: Remove file.
32391
32392 2008-01-18  Bruno Haible  <bruno@clisp.org>
32393
32394         * doc/glibc-functions/*.texi: New files.
32395         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32396         to use the new files.
32397
32398 2008-01-17  Bruno Haible  <bruno@clisp.org>
32399
32400         * tests/test-gethostname.c (main): Fix printf statement.
32401
32402 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32403
32404         * modules/gethostname-tests: New file.
32405
32406         * tests/test-gethostname.c: New file.
32407
32408 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32409
32410         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32411         used by the UNAME case.  Reported by Bruno Haible
32412         <bruno@clisp.org>.
32413
32414 2008-01-17  Eric Blake  <ebb9@byu.net>
32415
32416         Convert c-strcasestr to be more efficient.
32417         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32418         (Depends-on): Add c-strcase, remove malloca, strnlen.
32419         * tests/test-c-strcasestr.c (main): Enhance test.
32420         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32421
32422 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32423
32424         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32425         Use it in creating po/Makevars.
32426
32427 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32428
32429         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32430         Applications that requires it should initialize libgcrypt
32431         manually.
32432
32433 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32434
32435         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32436
32437 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32438
32439         Fix problem with getdate on mingw32 reported by Simon Josefsson
32440         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32441         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32442         tzname", when deciding whether to declare tzname.
32443         * lib/strftime.c (tzname): Likewise.
32444
32445 2008-01-15  Bruno Haible  <bruno@clisp.org>
32446
32447         Work around a MacOS X 10.5 bug in frexpl().
32448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32449         * doc/functions/frexpl.texi: Document the bug.
32450         Reported by Elias Pipping <pipping@gentoo.org>.
32451
32452 2008-01-14  Eric Blake  <ebb9@byu.net>
32453
32454         Touch up previous patch.
32455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32456         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32457
32458         Convert strcasestr module to use Two-Way algorithm.
32459         * modules/strcasestr-simple: New module, based on the old
32460         strcasestr, but with Two-Way rather than KMP.
32461         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32462         * lib/string.in.h (rpl_strcasestr): Declare.
32463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32464         performance.
32465         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32466         * modules/string (Makefile.am): Support strcasestr.
32467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32468         * modules/strcasestr-tests (Depends-on): Check for alarm.
32469         * tests/test-strcasestr.c: Augment test.
32470         * lib/str-two-way.h: Clean up stray macro.
32471         * NEWS: Document new module.
32472         * MODULES.html.sh (string handling): Likewise.
32473         * doc/functions/strcasestr.texi: New file.
32474         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32475         here, since it is not a POSIX function.
32476
32477 2008-01-14  Colin Watson  <cjwatson@debian.org>
32478             Bruno Haible  <bruno@clisp.org>
32479
32480         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32481         works fine; if not, set REPLACE_STRSIGNAL.
32482         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32484         REPLACE_STRSIGNAL.
32485         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32486         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32487         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32488
32489 2008-01-14  Bruno Haible  <bruno@clisp.org>
32490
32491         * modules/strsignal (Include): Change to <string.h>.
32492
32493 2008-01-14  Colin Watson  <cjwatson@debian.org>
32494
32495         * modules/argp (Notice): Add a notice recommending to change
32496         XGETTEXT_OPTIONS.
32497         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32498
32499 2008-01-13  Colin Watson  <cjwatson@debian.org>
32500
32501         * modules/strsignal-tests: New file.
32502         * tests/test-strsignal.c: New file.
32503
32504         * lib/strsignal.c: New file, from glibc with modifications.
32505         * lib/siglist.h: New file, from glibc with modifications.
32506         * lib/string.in.h (strsignal): New declaration.
32507         * m4/strsignal.m4: New file.
32508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32509         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32510         * modules/strsignal: New file.
32511         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32512         HAVE_DECL_STRSIGNAL.
32513
32514 2008-01-13  Bruno Haible  <bruno@clisp.org>
32515
32516         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32517         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32518         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32519         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32520
32521 2008-01-13  Bruno Haible  <bruno@clisp.org>
32522
32523         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32524         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32525         * lib/argp.h (__attribute__): Likewise.
32526         * lib/c-stack.c (__attribute__): Likewise.
32527         * lib/error.h (__attribute__): Likewise.
32528         * lib/fts.c (__attribute__): Likewise.
32529         * lib/openat.h (__attribute__): Likewise.
32530         * lib/stdio.in.h (__attribute__): Likewise.
32531         * lib/string.in.h (__attribute__): Likewise.
32532         * lib/utimens.c (__attribute__): Likewise.
32533         * lib/vasnprintf.h (__attribute__): Likewise.
32534         * lib/xalloc.h (__attribute__): Likewise.
32535         * lib/xprintf.h (__attribute__): Likewise.
32536         * lib/xstrtol.h (__attribute__): Likewise.
32537         * lib/xvasprintf.h (__attribute__): Likewise.
32538
32539 2008-01-12  Bruno Haible  <bruno@clisp.org>
32540
32541         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32542         * doc/glibc-headers/a.out.texi: New file.
32543         * doc/glibc-headers/aliases.texi: New file.
32544         * doc/glibc-headers/alloca.texi: New file.
32545         * doc/glibc-headers/ar.texi: New file.
32546         * doc/glibc-headers/argp.texi: New file.
32547         * doc/glibc-headers/argz.texi: New file.
32548         * doc/glibc-headers/byteswap.texi: New file.
32549         * doc/glibc-headers/crypt.texi: New file.
32550         * doc/glibc-headers/endian.texi: New file.
32551         * doc/glibc-headers/envz.texi: New file.
32552         * doc/glibc-headers/err.texi: New file.
32553         * doc/glibc-headers/error.texi: New file.
32554         * doc/glibc-headers/execinfo.texi: New file.
32555         * doc/glibc-headers/fpu_control.texi: New file.
32556         * doc/glibc-headers/fstab.texi: New file.
32557         * doc/glibc-headers/fts.texi: New file.
32558         * doc/glibc-headers/getopt.texi: New file.
32559         * doc/glibc-headers/ieee754.texi: New file.
32560         * doc/glibc-headers/ifaddrs.texi: New file.
32561         * doc/glibc-headers/libintl.texi: New file.
32562         * doc/glibc-headers/mcheck.texi: New file.
32563         * doc/glibc-headers/mntent.texi: New file.
32564         * doc/glibc-headers/obstack.texi: New file.
32565         * doc/glibc-headers/paths.texi: New file.
32566         * doc/glibc-headers/printf.texi: New file.
32567         * doc/glibc-headers/pty.texi: New file.
32568         * doc/glibc-headers/resolv.texi: New file.
32569         * doc/glibc-headers/shadow.texi: New file.
32570         * doc/glibc-headers/sysexits.texi: New file.
32571         * doc/glibc-headers/ttyent.texi: New file.
32572
32573 2008-01-12  Jim Meyering  <meyering@redhat.com>
32574
32575         announce-gen: emit Gnulib's git-based version string.
32576         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32577         New option --gnulib-version=V, where V is expected to be
32578         the output of running git describe in the gnulib directory.
32579         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32580         not useful, and plan to stop publishing an xdelta file with each
32581         coreutils release.
32582
32583         * build-aux/announce-gen: Also check for lzma-compressed files.
32584
32585 2008-01-11  Bruno Haible  <bruno@clisp.org>
32586
32587         * tests/test-memmem.c (main): Increase maximum allowed time.
32588         * tests/test-strstr.c (main): Likewise.
32589
32590 2008-01-11  Bruno Haible  <bruno@clisp.org>
32591
32592         * doc/functions/memmem.texi: Add more precisions about platforms.
32593         * doc/functions/strstr.texi: Likewise.
32594
32595 2008-01-10  Eric Blake  <ebb9@byu.net>
32596
32597         * m4/strstr.m4: Delete cruft from copy-n-paste.
32598         Reported by Bruno Haible.
32599
32600 2008-01-10  Bruno Haible  <bruno@clisp.org>
32601
32602         Make c-strstr rely on strstr.
32603         * lib/c-strstr.c: Don't include str-kmp.h.
32604         (c_strstr): Define in terms of strstr.
32605         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32606         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32607
32608 2008-01-10  Bruno Haible  <bruno@clisp.org>
32609
32610         * doc/gnulib.texi (String Functions in C Locale): New section.
32611         * doc/c-ctype.texi: New file.
32612         * doc/c-strcase.texi: New file.
32613         * doc/c-strcaseeq.texi: New file.
32614         * doc/c-strcasestr.texi: New file.
32615         * doc/c-strstr.texi: New file.
32616         * doc/c-strtod.texi: New file.
32617         * doc/c-strtold.texi: New file.
32618
32619 2008-01-10  Eric Blake  <ebb9@byu.net>
32620
32621         * lib/relocatable.h: Fix a comment.
32622
32623 2008-01-10  Eric Blake  <ebb9@byu.net>
32624
32625         Share two-way algorithm.
32626         * lib/str-two-way.h: New file, merged from...
32627         * lib/memmem.c: ...here...
32628         * lib/strstr.c: ...and here.
32629         * modules/memmem (Files): Use it.
32630         * modules/strstr (Files): Likewise.
32631
32632         Avoid quadratic strstr implementations.
32633         * lib/strstr.c: New file.
32634         * m4/strstr.m4: Likewise.
32635         * modules/strstr: Likewise.
32636         * modules/strstr-tests: Likewise.
32637         * tests/test-strstr.c: Likewise.
32638         * lib/string.in.h (rpl_strstr): Declare.
32639         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32641         * modules/string (Makefile.am): Likewise.
32642         * MODULES.html.sh (string handling): Mention new module.
32643         * doc/functions/strstr.texi (strstr): Document the bug.
32644
32645 2008-01-10  Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/relocatable.h (relocate): State whether result is freshly
32648         allocated or not.
32649         * lib/relocatable.c (relocate): Return a freshly allocated string
32650         instead of a pointer to a privately held string.
32651         Reported by Sylvain Beucler <beuc@gnu.org>.
32652
32653 2008-01-10  Colin Watson  <cjwatson@debian.org>
32654
32655         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32656         s/S_ISNLK/S_ISLNK/.
32657
32658 2008-01-09  Bruno Haible  <bruno@clisp.org>
32659
32660         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32661         and other files.
32662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32663         if it's only a guess.
32664         * modules/memmem: Simplify by depending on memmem-simple.
32665
32666 2008-01-09  Bruno Haible  <bruno@clisp.org>
32667
32668         Work around OpenBSD 4.0 tdelete() bug.
32669         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32670         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32671         macros and don't redefine the enum values.
32672         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32673         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32674         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32675
32676 2008-01-09  Bruno Haible  <bruno@clisp.org>
32677
32678         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32679         (main): Don't perform the tests if setlocale did not install a UTF-8
32680         locale. Needed on OpenBSD 4.0.
32681         * modules/wcwidth-tests (Depends-on): Add localcharset.
32682
32683 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32686         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32687         * NEWS: announce this.
32688         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32689
32690 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32691         and Eric Blake  <ebb9@byu.net>
32692
32693         Add memmem-simple module.
32694         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32695         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32696         * modules/memmem-simple: New file.
32697         * modules/memmem (Description): Tweak.
32698         * MODULES.html.sh (string handling): Mention new module.
32699         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32700         addressed by memmem-simple.
32701         * NEWS: Document the difference.
32702
32703 2008-01-09  Eric Blake  <ebb9@byu.net>
32704
32705         Give gcc some memmem optimization hints.
32706         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32707         (strcasestr): Declare as pure.
32708         * modules/memmem (Maintainer): Claim my implementation.
32709
32710 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32711
32712         Support AIX 6.1 and higher.
32713         * build-aux/config.libpath: Likewise.
32714         * build-aux/config.rpath: Likewise.
32715
32716 2008-01-08  Jim Meyering  <meyering@redhat.com>
32717             Bruno Haible  <bruno@clisp.org>
32718
32719         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32720         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32721         Reported by Peter Fales in
32722         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32723
32724 2008-01-08  Bruno Haible  <bruno@clisp.org>
32725
32726         * modules/unictype/category-of (Depends-on): Add
32727         unictype/category-none.
32728         * modules/unictype/category-and-tests (Depends-on): Add
32729         unictype/category-{L,N,Lu,Nd}.
32730         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32731         * modules/unictype/category-or-tests (Depends-on): Add
32732         unictype/category-{L,N}.
32733         * modules/unictype/category-name-tests (Depends-on): Add
32734         unictype/category-{Z,Nl}.
32735         Reported by Simon Josefsson.
32736
32737 2008-01-08  Bruno Haible  <bruno@clisp.org>
32738
32739         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32740         convention better.
32741         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32742         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32743         Reported by Peter Miller <millerp@canb.auug.org.au>.
32744
32745 2008-01-08  Eric Blake  <ebb9@byu.net>
32746
32747         Rewrite memmem to guarantee linear complexity without malloc.
32748         * lib/memmem.c (memmem): Use Two-Way rather than
32749         Knuth-Morris-Pratt, to allow O(1) space usage.
32750         (critical_factorization, two_way_short_needle)
32751         (two_way_long_needle): New functions.
32752         (knuth_morris_pratt): Delete.
32753         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32754         Add stdint.
32755         * tests/test-memmem.c (main): Add tests for periodic needle and
32756         sublinear performance.
32757         * doc/functions/memmem.texi (memmem): Document other deficiencies
32758         in cygwin and older glibc.
32759
32760 2008-01-08  Bruno Haible  <bruno@clisp.org>
32761
32762         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32763         augmentation.
32764
32765 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32766
32767         Add a configure time option: --disable-acl.
32768         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32769         AC_ARG_ENABLE(acl).
32770
32771 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32772
32773         * tests/test-localename.c: Don't include obsolete "setenv.h".
32774
32775         * modules/localename-tests (Depends-on): Need unsetenv.
32776
32777 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32778
32779         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32780
32781 2008-01-06  Colin Watson  <cjwatson@debian.org>
32782
32783         * users.txt: Add man-db.
32784
32785 2008-01-07  Bruno Haible  <bruno@clisp.org>
32786
32787         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32788         previous section name.
32789
32790 2008-01-07  Bruno Haible  <bruno@clisp.org>
32791
32792         * lib/progname.c (set_program_name): Don't strip off a leading
32793         "lt-" prefix outside a .libs directory.
32794         Suggested by Paul Eggert.
32795
32796 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32797             Bruno Haible  <bruno@clisp.org>
32798
32799         Improve memory cleanup in 'relocatable' module.
32800         * lib/relocatable.h (compute_curr_prefix): Change return type to
32801         'char *'.
32802         * lib/relocatable.c (compute_curr_prefix): Change return type to
32803         'char *'. Free curr_installdir after use.
32804         (relocate): Free curr_prefix_better after use.
32805         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32806
32807 2008-01-01  Bruno Haible  <bruno@clisp.org>
32808
32809         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32810         failure on older glibc systems.
32811         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32812
32813 2008-01-05  Eric Blake  <ebb9@byu.net>
32814
32815         Avoid quadratic system memmem.
32816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32817         Reported by Ralf Wildenhues.
32818
32819         Fix memmem test for mingw.
32820         * modules/memmem-tests (configure.ac): Check for alarm.
32821         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32822         it.
32823         * doc/functions/memmem.texi: New file.
32824         * doc/gnulib.texi (Function Substitutes): Add memmem.
32825         Reported by Bruno Haible.
32826
32827 2008-01-04  Bruno Haible  <bruno@clisp.org>
32828
32829         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32830         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32831         gl_HEADER_STRING_H_DEFAULTS.
32832
32833 2008-01-04  Eric Blake  <ebb9@byu.net>
32834
32835         Shorten duration of memmem test.
32836         * tests/test-memmem.c (main): Use alarm to declare failure if test
32837         is taking too long.
32838         Reported by Ralf Wildenhues.
32839
32840 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32841
32842         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32843         string, needed by strerror.
32844
32845 2008-01-03  Colin Watson  <cjwatson@debian.org>
32846             Bruno Haible  <bruno@clisp.org>
32847
32848         * doc/gnulib-tool.texi (Localization): New section.
32849
32850 2008-01-02  Bruno Haible  <bruno@clisp.org>
32851
32852         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32853         variables to 'unsigned char *' type.
32854         Reported by Paul Eggert.
32855
32856 2008-01-02  Jim Meyering  <jim@meyering.net>
32857
32858         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32859
32860 2007-12-31  Jim Meyering  <jim@meyering.net>
32861
32862         Avoid use of private FTS type name.
32863         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32864
32865 2007-12-30  Karl Berry  <karl@gnu.org>
32866
32867         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32868         work around defect in Texinfo and/or the standalone Info browser.
32869
32870 2007-12-30  Bruno Haible  <bruno@clisp.org>
32871
32872         Unify 5 copies of the KMP code.
32873         * lib/str-kmp.h: New file.
32874         * lib/c-strcasestr.c: Include str-kmp.h.
32875         (knuth_morris_pratt): Remove function.
32876         (c_strcasestr): Update.
32877         * lib/c-strstr.c: Include str-kmp.h.
32878         (knuth_morris_pratt): Remove function.
32879         (c_strcasestr): Update.
32880         * lib/mbscasestr.c: Include str-kmp.h.
32881         (knuth_morris_pratt_unibyte): Remove function.
32882         * lib/mbsstr.c: Include str-kmp.h.
32883         (knuth_morris_pratt_unibyte): Remove function.
32884         * lib/strcasestr.c: Include str-kmp.h.
32885         (knuth_morris_pratt): Remove function.
32886         (strcasestr): Update.
32887         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32888         * modules/c-strstr (Files): Likewise.
32889         * modules/mbscasestr (Files): Likewise.
32890         * modules/mbsstr (Files): Likewise.
32891         * modules/strcasestr (Files): Likewise.
32892         Suggested by Paul Eggert.
32893
32894 2007-12-30  Bruno Haible  <bruno@clisp.org>
32895
32896         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32897         defined.
32898
32899 2007-12-30  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/xmalloca.h: Include xalloc.h.
32902         (xnmalloca): New macro.
32903
32904 2007-12-30  Bruno Haible  <bruno@clisp.org>
32905
32906         * lib/malloca.h (nmalloca): New macro.
32907         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32908         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32909         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32910         knuth_morris_pratt_multibyte): Likewise.
32911         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32912         knuth_morris_pratt_multibyte): Likewise.
32913         * lib/memmem.c (knuth_morris_pratt): Likewise.
32914         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32915
32916 2007-12-25  Bruno Haible  <bruno@clisp.org>
32917
32918         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32919         * lib/glob.c: Don't include openat.h.
32920         (link_exists2_p): Add back the code that deals with the
32921         !GLOB_ALTDIRFUNC case.
32922         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32923         let it do the filename concatenation.
32924         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32925         * modules/glob (Depends-on): Remove openat.
32926
32927 2007-12-31  Bruno Haible  <bruno@clisp.org>
32928
32929         * modules/dirfd (License): Change to LGPLv2+.
32930         Approved by Jim Meyering.
32931
32932 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32933
32934         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32935         when multiplying M by sizeof (size_t).
32936
32937 2007-12-10  Martin Lambers  <marlam@marlam.de>
32938
32939         Override getpagesize on mingw.
32940         * lib/getpagesize.c: New file.
32941         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32942         * modules/getpagesize (Files): Add lib/getpagesize.c.
32943         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32945         REPLACE_GETPAGESIZE.
32946         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32947
32948 2007-12-25  Bruno Haible  <bruno@clisp.org>
32949
32950         * modules/localcharset (Notice): New field.
32951         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32952         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32953
32954 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32955             Bruno Haible  <bruno@clisp.org>
32956
32957         Avoid using the syntax symbol() in formatted documentation.
32958         * MODULES.html.sh (func_module): When replacing symbol() with a
32959         hyperlink, remove the parentheses. Show an error if some remain.
32960         Recognize and render the '...' syntax.
32961         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
32962         Rework. Add paragraph about GCC's inlining.
32963         * doc/alloca.texi: Likewise.
32964         * doc/error.texi: Remove parentheses from symbol reference.
32965         * doc/gnulib-intro.texi: Likewise.
32966         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
32967         * modules/fnmatch (Description): Reword to say "the ... function".
32968         * modules/full-read (Description): Likewise.
32969         * modules/full-write (Description): Likewise.
32970         * modules/safe-read (Description): Likewise.
32971         * modules/safe-write (Description): Likewise.
32972         * modules/strchrnul (Description): Likewise.
32973         * modules/trim (Description): Likewise.
32974         * modules/error (Description): Remove parentheses from symbol
32975         references.
32976         * modules/verror (Description): Likewise.
32977         Reported by Karl Berry.
32978
32979 2007-12-25  Bruno Haible  <bruno@clisp.org>
32980
32981         Fixup after 2007-10-16 commit.
32982         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
32983
32984 2007-12-24  Bruno Haible  <bruno@clisp.org>
32985
32986         Make --enable-relocatable work with DESTDIR.
32987         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
32988         to compute installdir from destprog.
32989         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
32990         also set the RELOC_DESTDIR variable.
32991         Reported by Левашев Иван <octagram@bluebottle.com>.
32992
32993 2007-12-24  Bruno Haible  <bruno@clisp.org>
32994
32995         Fix link error due to xalloc_die().
32996         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
32997         of xreadlink.
32998         * lib/relocwrapper.c: Update comments.
32999         * build-aux/install-reloc: Remove xreadlink.c from file list.
33000         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33001         xreadlink.c.
33002         Reported by Левашев Иван <octagram@bluebottle.com>.
33003
33004 2007-12-24  Bruno Haible  <bruno@clisp.org>
33005
33006         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33007         * lib/setenv.h: Remove file.
33008         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33009         lib/setenv.h.
33010         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33011         (Depends-on): Add stdlib.
33012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33013         gl_FUNC_UNSETENV.
33014         (Include): Replace setenv.h with <stdlib.h>.
33015         * modules/unsetenv: New file.
33016         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33017         * lib/unsetenv.c: Include <stdlib.h> first.
33018         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33019         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33020         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33021         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33022         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33023         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33025         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33026         * doc/functions/unsetenv.texi: Update.
33027         * modules/xsetenv (Depends-on): Add unsetenv.
33028         * modules/getdate (Depends-on): Likewise.
33029         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33030         * lib/xsetenv.c: Don't include setenv.h.
33031         * lib/getdate.y: Likewise.
33032         * lib/relocwrapper.c: Likewise.
33033         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33034         (Depends-on): Add stdlib.
33035         * NEWS: Mention the changes.
33036         Reported by Левашев Иван <octagram@bluebottle.com>.
33037
33038 2007-12-23  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33041         indentation.
33042
33043 2007-12-23  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/c-strcasestr.c: Add more comments.
33046         * lib/c-strstr.c: Likewise.
33047         * lib/mbscasestr.c: Likewise.
33048         * lib/mbsstr.c: Likewise.
33049         * lib/strcasestr.c: Likewise.
33050         * lib/memmem.c: Likewise.
33051
33052 2007-12-23  Bruno Haible  <bruno@clisp.org>
33053
33054         * tests/test-memmem.c: Include <string.h> first.
33055
33056 2007-12-22  Bruno Haible  <bruno@clisp.org>
33057
33058         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33059         the contents of $testsbase.
33060         Reported by Ralf Wildenhues.
33061
33062 2007-12-22  Bruno Haible  <bruno@clisp.org>
33063
33064         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33065         two variables local_ldadd_before, local_ldadd_last.
33066
33067 2007-12-20  Eric Blake  <ebb9@byu.net>
33068
33069         Work around circular library issue when cross-compiling.
33070         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33071         that progname.o does not need to pull in rpl_memcmp.
33072
33073 2007-12-19  Eric Blake  <ebb9@byu.net>
33074
33075         Fix memmem to avoid O(n^2) worst-case complexity.
33076         * lib/memmem.c (knuth_morris_pratt): New function.
33077         (memmem): Use it if first few naive iterations fail.
33078         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33079         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33080         * modules/memchr (License): Likewise.
33081         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33082         malloca.
33083         * tests/test-memmem.c: Rewrite, borrowing ideas from
33084         test-mbsstr1.c; the old version wouldn't even compile!
33085         * modules/memmem-tests: New file.
33086         * lib/string.in.h (rpl_memmem): Add declaration.
33087         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33089         REPLACE_MEMMEM.
33090
33091 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33092
33093         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33094         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33095         before any system include files, and undef after them all.  This
33096         should fix a problem on VMS reported by John E. Malmberg in
33097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33098
33099 2007-12-17  Eric Blake  <ebb9@byu.net>
33100
33101         Revert addition of verify, for BSD/OS.
33102         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33103         can't handle large files, for the sake of obsolete platforms.
33104         * modules/fseeko (Depends-on): Remove verify.
33105         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33106         * doc/functions/ftello.texi (ftello): Likewise.
33107         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33108         Reported by Larry Jones.
33109
33110 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33111
33112         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33113         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33114
33115 2007-12-17  Jim Meyering  <meyering@redhat.com>
33116
33117         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33118         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33119         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33120         * modules/getcwd (Depends-on): Add openat.
33121         Reported by Petr Salinger.
33122
33123 2007-12-17  Bruno Haible  <bruno@clisp.org>
33124
33125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33126         avoid a segmentation fault of the configure test on x86_64 systems.
33127
33128 2007-12-15  Jim Meyering  <meyering@redhat.com>
33129
33130         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33131
33132 2007-12-13  Eric Blake  <ebb9@byu.net>
33133
33134         Another fseek test.
33135         * tests/test-fseek.c (main): Also test ungetc handling.
33136         * tests/test-fseeko.c (main): Likewise.
33137         * modules/fseeko (Depends-on): Add verify.
33138         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33139         large.
33140         Reported by Larry Jones.
33141
33142         Fix fseeko on mingw.
33143         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33144         seek.
33145
33146         Beef up fseek tests.
33147         * tests/test-fseek.c (main): Also test eof handling.
33148         * tests/test-fseeko.c (main): Likewise.
33149         Reported by Larry Jones.
33150
33151 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33152
33153         Fix fseeko on BSD-based platforms.
33154         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33155         successful seek.
33156
33157 2007-12-12  Eric Blake  <ebb9@byu.net>
33158
33159         Allow circular dependency of separate libtests.a
33160         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33161         when use_libtests.
33162
33163 2007-12-11  Eric Blake  <ebb9@byu.net>
33164
33165         Fix bug with -0.0L in previous patch.
33166         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33167         * tests/test-isnan.c (main): Also test on zeroes.
33168         * tests/test-isnanf.c (main): Likewise.
33169         * tests/test-isnanl.h (main): Likewise.
33170
33171         Detect pseudo-denormals on x86 even when cross-compiling.
33172         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33173         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33174         invalid bit patterns that happen to satisfy ==.
33175
33176         Avoid link failures with separate libtests.a.
33177         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33178         last, to satisfy circular dependencies.
33179
33180 2007-12-11  Eric Blake  <ebb9@byu.net>
33181         and Bruno Haible  <bruno@clisp.org>
33182
33183         Fix OpenBSD 4.0 <float.h> handling of long double.
33184         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33185         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33186         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33187
33188 2007-12-11  Jim Meyering  <meyering@redhat.com>
33189
33190         * users.txt: Add libvirt.
33191
33192         Support versions of autoconf prior to 2.59c.
33193         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33194         if it is not already defined.
33195
33196 2007-12-09  Bruno Haible  <bruno@clisp.org>
33197
33198         Let 'gnulib-tool --import' collect sources needed for the tests in
33199         tests/ rather than in lib/.
33200         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33201         argument. If true, add rules to generate libtests.a, and put libtests.a
33202         into $(LDADD). Consider source files in subdirectories and set
33203         uses_subdirs.
33204         (func_emit_initmacro_start, func_emit_initmacro_end,
33205         func_emit_initmacro_done): Pass all arguments explicitly.
33206         (func_import): Determine two module lists main_modules,
33207         testsrelated_modules. Determine use_libtests. Determine two variables
33208         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33209         instead of just sed_transform_lib_file. Determine two variables
33210         main_files and testsrelated_files. Compute 'files' as the union of
33211         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33212         func_add_or_update. In the generated gnulib-comp.m4, collect the
33213         object files for tests/ in different variables than those for lib/.
33214         Substitute LIBTESTS_LIBDEPS.
33215         (func_create_testdir): Combine the uses_subdirs results from
33216         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33217
33218 2007-12-09  Bruno Haible  <bruno@clisp.org>
33219
33220         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33221         the build-aux directory.
33222
33223 2007-12-09  Bruno Haible  <bruno@clisp.org>
33224
33225         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33226         introduced on 2006-09-09.
33227
33228 2007-12-07  Jim Meyering  <meyering@redhat.com>
33229
33230         Let these macros work also with autoconf-2.59.
33231         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33232         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33233         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33234
33235 2007-12-06  Jim Meyering  <meyering@redhat.com>
33236
33237         Avoid a configure-time syntax error in gl_FUNC_ACL.
33238         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33239         function in each branch, before testing the cache variable.
33240
33241 2007-12-04  Eric Blake  <ebb9@byu.net>
33242
33243         Make scripts executable.
33244         * build-aux/config.guess: Add execute permissions.
33245         * build-aux/config.sub: Likewise.
33246         * build-aux/gendocs.sh: Likewise.
33247
33248         Fix frexp on mingw.
33249         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33250         cross-compiling.
33251         * doc/functions/frexp.texi (frexp): Document the bug.
33252
33253         Make cygwin fseeko check more reliable.
33254         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33255         version numbers, rather than unrelated feature check.
33256         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33257         * doc/functions/ftello.texi (ftello): Likewise.
33258         Reported by Bruno Haible.
33259
33260         * m4/strerror.m4: Bump version number.
33261
33262 2007-12-03  Bruno Haible  <bruno@clisp.org>
33263
33264         * doc/functions/mprotect.texi: Mention the mingw problem.
33265
33266 2007-12-03  Eric Blake  <ebb9@byu.net>
33267
33268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33269         REPLACE_STRERROR is initialized before this macro.
33270
33271 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33272
33273         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33274         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33275         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33276         put -lsec in even for programs other than 'ls'.  This fixes a problem
33277         for gettext reported by Bruno Haible in
33278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33279         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33280         Add support for Solaris 10.  This isn't efficient, but should get the
33281         job done for now.
33282
33283 2007-12-03  James Youngman  <jay@gnu.org>
33284
33285         * doc/regexprops-generic.texi: change "an close-group" to "a
33286         close-group" and "illegal" to "not allowed".
33287
33288 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33289
33290         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33291         pr_byname.h. Needed for the rare case when the maintainer has done
33292         "make maintainer-clean" in the source directory and then attempts a
33293         build outside the source directory.
33294         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33295         scripts_byname.h.
33296
33297 2007-12-02  Martin Lambers <marlam@marlam.de>
33298             Bruno Haible  <bruno@clisp.org>
33299
33300         * lib/getpagesize.h: Remove file.
33301         * lib/unistd.in.h: Include declaration of getpagesize here.
33302         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33303         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33304         HAVE_SYS_PARAM_H.
33305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33306         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33307         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33308         (Depends-on): Add unistd.
33309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33310         (Include): Use <unistd.h> instead of getpagesize.h.
33311         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33312         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33313         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33314         gl_GETPAGESIZE invocation, already handled by module dependency.
33315         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33316
33317 2007-12-02  Bruno Haible  <bruno@clisp.org>
33318
33319         * modules/strings-tests: New file.
33320         * tests/test-strings.c: New file.
33321
33322         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33323         * lib/strings.in.h: New file.
33324         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33325         * m4/strings_h.m4: New file.
33326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33327         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33328         * modules/strings: New file.
33329         * modules/string (Makefile.am): Update.
33330         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33331         Reported by Karl Berry.
33332
33333 2007-12-01  Eric Blake  <ebb9@byu.net>
33334
33335         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33336         accomodate fix in cygwin 1.5.25.
33337
33338 2007-12-01  Jim Meyering  <meyering@redhat.com>
33339
33340         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33341         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33342         that would inhibit utf8-optimization of a regexp containing line-
33343         or buffer-anchors, e.g., `^', `$'.
33344
33345 2007-11-30  Bruno Haible  <bruno@clisp.org>
33346
33347         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33348         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33349         glthread_recursive_lock_init.
33350         * lib/lock.c (glthread_recursive_lock_init)
33351         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33352         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33353
33354 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33355
33356         New function qset_acl, like set_acl but with syscall semantics.
33357         * lib/acl.h (qset_acl): New decl.
33358         * lib/acl.c (qset_acl): New function.
33359         (set_acl): Use new function.  Use more-consistent diagnostics.
33360
33361 2007-11-28  Jim Meyering  <meyering@redhat.com>
33362
33363         * modules/physmem (License): Change from GPL to LGPLv2+.
33364
33365 2007-11-26  Bruno Haible  <bruno@clisp.org>
33366
33367         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33368         'long double' type has excess precision.
33369         Reported by Jim Meyering in
33370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33371
33372 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33373
33374         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33375         Sync from <http://gnu.org/licenses>.
33376         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33377         with license text from same location.
33378         * doc/maintain.texi, doc/standards.texi:  Sync from
33379         <http://savannah.gnu.org/projects/gnustandards>.
33380
33381 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33382         and Jim Meyering  <meyering@redhat.com>
33383
33384         Adjust getdate' grammar to accept a slightly more regular language.
33385         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33386         Before, the former was rejected.
33387         * lib/getdate.y (digits_to_date_time): New function, factored
33388         out of ...
33389         (number): ...here.  Just call digits_to_date_time.
33390         (hybrid): New non-terminal to handle an <unsigned number,
33391         signed relative offset> sequence consistently.
33392
33393 2007-11-18  Jim Meyering  <meyering@redhat.com>
33394
33395         Pull my changes from coreutils:
33396         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33397         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33398         use of $gnulib_tool_option_extras, so that it's separated from the
33399         preceding argument.
33400
33401         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33402         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33403         parent destination directories before copying a file into place.
33404
33405 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33406
33407         bootstrap: work also with 4-argument variant of AC_INIT
33408         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33409
33410 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33411
33412         Port test-getaddrinfo to Solaris.
33413         Problem reported by Bruno Haible in
33414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33415         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33416         explanation of setting 'hints'.
33417         Don't reject an implementation merely because it returns EAI_SERVICE.
33418         (EAI_SERVICE): Define to 0 if not defined.
33419
33420 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33421
33422         The license of gnu-make and posix-shell is now "GPLed build tool".
33423         * modules/gnu-make (License): Likewise.
33424         * modules/posix-shell (License): Likewise.
33425
33426         New module posix-shell, for determining a POSIX shell
33427         or perhaps something that is close enough to a POSIX shell.
33428         * m4/posix-shell.m4: New file.
33429         * modules/posix-shell: New file.
33430
33431         * MODULES.html.sh: Mention new module.
33432
33433         New module gnu-make, for determining whether we're using GNU Make.
33434         * m4/gnu-make.m4: New file.
33435         * modules/gnu-make: New file.
33436         * MODULES.html.sh: Mention new module.
33437
33438 2007-11-14  Jim Meyering  <meyering@redhat.com>
33439
33440         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33441         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33442         use this macro to create a function _definition_.
33443         Remove useless "#undef ARGMATCH_DIE".
33444
33445 2007-11-14  Bruno Haible  <bruno@clisp.org>
33446
33447         * lib/config.charset: Update for OpenBSD 4.1.
33448         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33449
33450 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33451
33452         Document 64-bit #if problems in stdint.texi.
33453         * doc/headers/stdint.texi (stdint.h): Mention problems with
33454         64-bit-#if, and how to work around them.
33455
33456         Don't insist on 'long long int' support in the preprocessor.  It
33457         breaks too many things.  For example, PRIdMAX still uses a 'long
33458         long int' format with the latest Sun compiler, even though
33459         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33460         preprocessor problem.  This causes the latest coreutils to dump
33461         core on Solaris 10 sparc with the Sun C compiler.
33462         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33463         the troublesome expressions at configure-time, not at #if-time.
33464         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33465         preprocessor.
33466         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33467         compile-time C checks, done at 'configure'-time.
33468         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33469         * modules/inttypes (Makefile): Substitute the new symbols that
33470         gl_INTTYPES_H now generates.
33471         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33472
33473 2007-11-12  Bruno Haible  <bruno@clisp.org>
33474
33475         Tests for Unicode character classification functions.
33476
33477         * modules/unictype/bidicategory-byname-tests: New file.
33478         * modules/unictype/bidicategory-name-tests: New file.
33479         * modules/unictype/bidicategory-of-tests: New file.
33480         * modules/unictype/bidicategory-test-tests: New file.
33481         * modules/unictype/block-list-tests: New file.
33482         * modules/unictype/block-of-tests: New file.
33483         * modules/unictype/block-test-tests: New file.
33484         * modules/unictype/category-C-tests: New file.
33485         * modules/unictype/category-Cc-tests: New file.
33486         * modules/unictype/category-Cf-tests: New file.
33487         * modules/unictype/category-Cn-tests: New file.
33488         * modules/unictype/category-Co-tests: New file.
33489         * modules/unictype/category-Cs-tests: New file.
33490         * modules/unictype/category-L-tests: New file.
33491         * modules/unictype/category-Ll-tests: New file.
33492         * modules/unictype/category-Lm-tests: New file.
33493         * modules/unictype/category-Lo-tests: New file.
33494         * modules/unictype/category-Lt-tests: New file.
33495         * modules/unictype/category-Lu-tests: New file.
33496         * modules/unictype/category-M-tests: New file.
33497         * modules/unictype/category-Mc-tests: New file.
33498         * modules/unictype/category-Me-tests: New file.
33499         * modules/unictype/category-Mn-tests: New file.
33500         * modules/unictype/category-N-tests: New file.
33501         * modules/unictype/category-Nd-tests: New file.
33502         * modules/unictype/category-Nl-tests: New file.
33503         * modules/unictype/category-No-tests: New file.
33504         * modules/unictype/category-P-tests: New file.
33505         * modules/unictype/category-Pc-tests: New file.
33506         * modules/unictype/category-Pd-tests: New file.
33507         * modules/unictype/category-Pe-tests: New file.
33508         * modules/unictype/category-Pf-tests: New file.
33509         * modules/unictype/category-Pi-tests: New file.
33510         * modules/unictype/category-Po-tests: New file.
33511         * modules/unictype/category-Ps-tests: New file.
33512         * modules/unictype/category-S-tests: New file.
33513         * modules/unictype/category-Sc-tests: New file.
33514         * modules/unictype/category-Sk-tests: New file.
33515         * modules/unictype/category-Sm-tests: New file.
33516         * modules/unictype/category-So-tests: New file.
33517         * modules/unictype/category-Z-tests: New file.
33518         * modules/unictype/category-Zl-tests: New file.
33519         * modules/unictype/category-Zp-tests: New file.
33520         * modules/unictype/category-Zs-tests: New file.
33521         * modules/unictype/category-and-not-tests: New file.
33522         * modules/unictype/category-and-tests: New file.
33523         * modules/unictype/category-byname-tests: New file.
33524         * modules/unictype/category-name-tests: New file.
33525         * modules/unictype/category-none-tests: New file.
33526         * modules/unictype/category-of-tests: New file.
33527         * modules/unictype/category-or-tests: New file.
33528         * modules/unictype/category-test-withtable-tests: New file.
33529         * modules/unictype/combining-class-tests: New file.
33530         * modules/unictype/ctype-alnum-tests: New file.
33531         * modules/unictype/ctype-alpha-tests: New file.
33532         * modules/unictype/ctype-blank-tests: New file.
33533         * modules/unictype/ctype-cntrl-tests: New file.
33534         * modules/unictype/ctype-digit-tests: New file.
33535         * modules/unictype/ctype-graph-tests: New file.
33536         * modules/unictype/ctype-lower-tests: New file.
33537         * modules/unictype/ctype-print-tests: New file.
33538         * modules/unictype/ctype-punct-tests: New file.
33539         * modules/unictype/ctype-space-tests: New file.
33540         * modules/unictype/ctype-upper-tests: New file.
33541         * modules/unictype/ctype-xdigit-tests: New file.
33542         * modules/unictype/decimal-digit-tests: New file.
33543         * modules/unictype/digit-tests: New file.
33544         * modules/unictype/mirror-tests: New file.
33545         * modules/unictype/numeric-tests: New file.
33546         * modules/unictype/property-alphabetic-tests: New file.
33547         * modules/unictype/property-ascii-hex-digit-tests: New file.
33548         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33549         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33550         * modules/unictype/property-bidi-block-separator-tests: New file.
33551         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33552         * modules/unictype/property-bidi-common-separator-tests: New file.
33553         * modules/unictype/property-bidi-control-tests: New file.
33554         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33555         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33556         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33557         * modules/unictype/property-bidi-european-digit-tests: New file.
33558         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33559         * modules/unictype/property-bidi-left-to-right-tests: New file.
33560         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33561         * modules/unictype/property-bidi-other-neutral-tests: New file.
33562         * modules/unictype/property-bidi-pdf-tests: New file.
33563         * modules/unictype/property-bidi-segment-separator-tests: New file.
33564         * modules/unictype/property-bidi-whitespace-tests: New file.
33565         * modules/unictype/property-byname-tests: New file.
33566         * modules/unictype/property-combining-tests: New file.
33567         * modules/unictype/property-composite-tests: New file.
33568         * modules/unictype/property-currency-symbol-tests: New file.
33569         * modules/unictype/property-dash-tests: New file.
33570         * modules/unictype/property-decimal-digit-tests: New file.
33571         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33572         * modules/unictype/property-deprecated-tests: New file.
33573         * modules/unictype/property-diacritic-tests: New file.
33574         * modules/unictype/property-extender-tests: New file.
33575         * modules/unictype/property-format-control-tests: New file.
33576         * modules/unictype/property-grapheme-base-tests: New file.
33577         * modules/unictype/property-grapheme-extend-tests: New file.
33578         * modules/unictype/property-grapheme-link-tests: New file.
33579         * modules/unictype/property-hex-digit-tests: New file.
33580         * modules/unictype/property-hyphen-tests: New file.
33581         * modules/unictype/property-id-continue-tests: New file.
33582         * modules/unictype/property-id-start-tests: New file.
33583         * modules/unictype/property-ideographic-tests: New file.
33584         * modules/unictype/property-ids-binary-operator-tests: New file.
33585         * modules/unictype/property-ids-trinary-operator-tests: New file.
33586         * modules/unictype/property-ignorable-control-tests: New file.
33587         * modules/unictype/property-iso-control-tests: New file.
33588         * modules/unictype/property-join-control-tests: New file.
33589         * modules/unictype/property-left-of-pair-tests: New file.
33590         * modules/unictype/property-line-separator-tests: New file.
33591         * modules/unictype/property-logical-order-exception-tests: New file.
33592         * modules/unictype/property-lowercase-tests: New file.
33593         * modules/unictype/property-math-tests: New file.
33594         * modules/unictype/property-non-break-tests: New file.
33595         * modules/unictype/property-not-a-character-tests: New file.
33596         * modules/unictype/property-numeric-tests: New file.
33597         * modules/unictype/property-other-alphabetic-tests: New file.
33598         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33599         * modules/unictype/property-other-grapheme-extend-tests: New file.
33600         * modules/unictype/property-other-id-continue-tests: New file.
33601         * modules/unictype/property-other-id-start-tests: New file.
33602         * modules/unictype/property-other-lowercase-tests: New file.
33603         * modules/unictype/property-other-math-tests: New file.
33604         * modules/unictype/property-other-uppercase-tests: New file.
33605         * modules/unictype/property-paired-punctuation-tests: New file.
33606         * modules/unictype/property-paragraph-separator-tests: New file.
33607         * modules/unictype/property-pattern-syntax-tests: New file.
33608         * modules/unictype/property-pattern-white-space-tests: New file.
33609         * modules/unictype/property-private-use-tests: New file.
33610         * modules/unictype/property-punctuation-tests: New file.
33611         * modules/unictype/property-quotation-mark-tests: New file.
33612         * modules/unictype/property-radical-tests: New file.
33613         * modules/unictype/property-sentence-terminal-tests: New file.
33614         * modules/unictype/property-soft-dotted-tests: New file.
33615         * modules/unictype/property-space-tests: New file.
33616         * modules/unictype/property-terminal-punctuation-tests: New file.
33617         * modules/unictype/property-test-tests: New file.
33618         * modules/unictype/property-titlecase-tests: New file.
33619         * modules/unictype/property-unassigned-code-value-tests: New file.
33620         * modules/unictype/property-unified-ideograph-tests: New file.
33621         * modules/unictype/property-uppercase-tests: New file.
33622         * modules/unictype/property-variation-selector-tests: New file.
33623         * modules/unictype/property-white-space-tests: New file.
33624         * modules/unictype/property-xid-continue-tests: New file.
33625         * modules/unictype/property-xid-start-tests: New file.
33626         * modules/unictype/property-zero-width-tests: New file.
33627         * modules/unictype/scripts-tests: New file.
33628         * modules/unictype/syntax-c-ident-tests: New file.
33629         * modules/unictype/syntax-c-whitespace-tests: New file.
33630         * modules/unictype/syntax-java-ident-tests: New file.
33631         * modules/unictype/syntax-java-whitespace-tests: New file.
33632         * tests/unictype/test-bidi_byname.c: New file.
33633         * tests/unictype/test-bidi_name.c: New file.
33634         * tests/unictype/test-bidi_of.c: New file.
33635         * tests/unictype/test-bidi_test.c: New file.
33636         * tests/unictype/test-block_list.c: New file.
33637         * tests/unictype/test-block_of.c: New file.
33638         * tests/unictype/test-block_test.c: New file.
33639         * tests/unictype/test-categ_and.c: New file.
33640         * tests/unictype/test-categ_and_not.c: New file.
33641         * tests/unictype/test-categ_byname.c: New file.
33642         * tests/unictype/test-categ_name.c: New file.
33643         * tests/unictype/test-categ_none.c: New file.
33644         * tests/unictype/test-categ_of.c: New file.
33645         * tests/unictype/test-categ_or.c: New file.
33646         * tests/unictype/test-categ_test_withtable.c: New file.
33647         * tests/unictype/test-combining.c: New file.
33648         * tests/unictype/test-decdigit.c: New file.
33649         * tests/unictype/test-digit.c: New file.
33650         * tests/unictype/test-mirror.c: New file.
33651         * tests/unictype/test-numeric.c: New file.
33652         * tests/unictype/test-pr_byname.c: New file.
33653         * tests/unictype/test-pr_test.c: New file.
33654         * tests/unictype/test-predicate-part1.h: New file.
33655         * tests/unictype/test-predicate-part2.h: New file.
33656         * tests/unictype/test-scripts.c: New file.
33657         * tests/unictype/test-sy_c_ident.c: New file.
33658         * tests/unictype/test-sy_java_ident.c: New file.
33659
33660         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33661         for Unicode 5.0.0.
33662         * tests/unictype/test-categ_Cc.c: Likewise.
33663         * tests/unictype/test-categ_Cf.c: Likewise.
33664         * tests/unictype/test-categ_Cn.c: Likewise.
33665         * tests/unictype/test-categ_Co.c: Likewise.
33666         * tests/unictype/test-categ_Cs.c: Likewise.
33667         * tests/unictype/test-categ_L.c: Likewise.
33668         * tests/unictype/test-categ_Ll.c: Likewise.
33669         * tests/unictype/test-categ_Lm.c: Likewise.
33670         * tests/unictype/test-categ_Lo.c: Likewise.
33671         * tests/unictype/test-categ_Lt.c: Likewise.
33672         * tests/unictype/test-categ_Lu.c: Likewise.
33673         * tests/unictype/test-categ_M.c: Likewise.
33674         * tests/unictype/test-categ_Mc.c: Likewise.
33675         * tests/unictype/test-categ_Me.c: Likewise.
33676         * tests/unictype/test-categ_Mn.c: Likewise.
33677         * tests/unictype/test-categ_N.c: Likewise.
33678         * tests/unictype/test-categ_Nd.c: Likewise.
33679         * tests/unictype/test-categ_Nl.c: Likewise.
33680         * tests/unictype/test-categ_No.c: Likewise.
33681         * tests/unictype/test-categ_P.c: Likewise.
33682         * tests/unictype/test-categ_Pc.c: Likewise.
33683         * tests/unictype/test-categ_Pd.c: Likewise.
33684         * tests/unictype/test-categ_Pe.c: Likewise.
33685         * tests/unictype/test-categ_Pf.c: Likewise.
33686         * tests/unictype/test-categ_Pi.c: Likewise.
33687         * tests/unictype/test-categ_Po.c: Likewise.
33688         * tests/unictype/test-categ_Ps.c: Likewise.
33689         * tests/unictype/test-categ_S.c: Likewise.
33690         * tests/unictype/test-categ_Sc.c: Likewise.
33691         * tests/unictype/test-categ_Sk.c: Likewise.
33692         * tests/unictype/test-categ_Sm.c: Likewise.
33693         * tests/unictype/test-categ_So.c: Likewise.
33694         * tests/unictype/test-categ_Z.c: Likewise.
33695         * tests/unictype/test-categ_Zl.c: Likewise.
33696         * tests/unictype/test-categ_Zp.c: Likewise.
33697         * tests/unictype/test-categ_Zs.c: Likewise.
33698         * tests/unictype/test-ctype_alnum.c: Likewise.
33699         * tests/unictype/test-ctype_alpha.c: Likewise.
33700         * tests/unictype/test-ctype_blank.c: Likewise.
33701         * tests/unictype/test-ctype_cntrl.c: Likewise.
33702         * tests/unictype/test-ctype_digit.c: Likewise.
33703         * tests/unictype/test-ctype_graph.c: Likewise.
33704         * tests/unictype/test-ctype_lower.c: Likewise.
33705         * tests/unictype/test-ctype_print.c: Likewise.
33706         * tests/unictype/test-ctype_punct.c: Likewise.
33707         * tests/unictype/test-ctype_space.c: Likewise.
33708         * tests/unictype/test-ctype_upper.c: Likewise.
33709         * tests/unictype/test-ctype_xdigit.c: Likewise.
33710         * tests/unictype/test-decdigit.h: Likewise.
33711         * tests/unictype/test-digit.h: Likewise.
33712         * tests/unictype/test-numeric.h: Likewise.
33713         * tests/unictype/test-pr_alphabetic.c: Likewise.
33714         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33715         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33716         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33717         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33718         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33719         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33720         * tests/unictype/test-pr_bidi_control.c: Likewise.
33721         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33722         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33723         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33724         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33725         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33726         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33728         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33729         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33730         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33731         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33732         * tests/unictype/test-pr_combining.c: Likewise.
33733         * tests/unictype/test-pr_composite.c: Likewise.
33734         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33735         * tests/unictype/test-pr_dash.c: Likewise.
33736         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33737         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33738         * tests/unictype/test-pr_deprecated.c: Likewise.
33739         * tests/unictype/test-pr_diacritic.c: Likewise.
33740         * tests/unictype/test-pr_extender.c: Likewise.
33741         * tests/unictype/test-pr_format_control.c: Likewise.
33742         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33743         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33744         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33745         * tests/unictype/test-pr_hex_digit.c: Likewise.
33746         * tests/unictype/test-pr_hyphen.c: Likewise.
33747         * tests/unictype/test-pr_id_continue.c: Likewise.
33748         * tests/unictype/test-pr_id_start.c: Likewise.
33749         * tests/unictype/test-pr_ideographic.c: Likewise.
33750         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33751         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33752         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33753         * tests/unictype/test-pr_iso_control.c: Likewise.
33754         * tests/unictype/test-pr_join_control.c: Likewise.
33755         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33756         * tests/unictype/test-pr_line_separator.c: Likewise.
33757         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33758         * tests/unictype/test-pr_lowercase.c: Likewise.
33759         * tests/unictype/test-pr_math.c: Likewise.
33760         * tests/unictype/test-pr_non_break.c: Likewise.
33761         * tests/unictype/test-pr_not_a_character.c: Likewise.
33762         * tests/unictype/test-pr_numeric.c: Likewise.
33763         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33764         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33765         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33766         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33767         * tests/unictype/test-pr_other_id_start.c: Likewise.
33768         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33769         * tests/unictype/test-pr_other_math.c: Likewise.
33770         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33771         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33772         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33773         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33774         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33775         * tests/unictype/test-pr_private_use.c: Likewise.
33776         * tests/unictype/test-pr_punctuation.c: Likewise.
33777         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33778         * tests/unictype/test-pr_radical.c: Likewise.
33779         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33780         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33781         * tests/unictype/test-pr_space.c: Likewise.
33782         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33783         * tests/unictype/test-pr_titlecase.c: Likewise.
33784         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33785         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33786         * tests/unictype/test-pr_uppercase.c: Likewise.
33787         * tests/unictype/test-pr_variation_selector.c: Likewise.
33788         * tests/unictype/test-pr_white_space.c: Likewise.
33789         * tests/unictype/test-pr_xid_continue.c: Likewise.
33790         * tests/unictype/test-pr_xid_start.c: Likewise.
33791         * tests/unictype/test-pr_zero_width.c: Likewise.
33792         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33793         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33794
33795 2007-11-12  Bruno Haible  <bruno@clisp.org>
33796
33797         Unicode character classification functions.
33798         * lib/unictype.h: New file.
33799         * modules/unictype/base: New file.
33800         * modules/unictype/category-L: New file.
33801         * modules/unictype/category-Lu: New file.
33802         * modules/unictype/category-Ll: New file.
33803         * modules/unictype/category-Lt: New file.
33804         * modules/unictype/category-Lm: New file.
33805         * modules/unictype/category-Lo: New file.
33806         * modules/unictype/category-M: New file.
33807         * modules/unictype/category-Mn: New file.
33808         * modules/unictype/category-Mc: New file.
33809         * modules/unictype/category-Me: New file.
33810         * modules/unictype/category-N: New file.
33811         * modules/unictype/category-Nd: New file.
33812         * modules/unictype/category-Nl: New file.
33813         * modules/unictype/category-No: New file.
33814         * modules/unictype/category-P: New file.
33815         * modules/unictype/category-Pc: New file.
33816         * modules/unictype/category-Pd: New file.
33817         * modules/unictype/category-Ps: New file.
33818         * modules/unictype/category-Pe: New file.
33819         * modules/unictype/category-Pi: New file.
33820         * modules/unictype/category-Pf: New file.
33821         * modules/unictype/category-Po: New file.
33822         * modules/unictype/category-S: New file.
33823         * modules/unictype/category-Sm: New file.
33824         * modules/unictype/category-Sc: New file.
33825         * modules/unictype/category-Sk: New file.
33826         * modules/unictype/category-So: New file.
33827         * modules/unictype/category-Z: New file.
33828         * modules/unictype/category-Zs: New file.
33829         * modules/unictype/category-Zl: New file.
33830         * modules/unictype/category-Zp: New file.
33831         * modules/unictype/category-C: New file.
33832         * modules/unictype/category-Cc: New file.
33833         * modules/unictype/category-Cf: New file.
33834         * modules/unictype/category-Cs: New file.
33835         * modules/unictype/category-Co: New file.
33836         * modules/unictype/category-Cn: New file.
33837         * modules/unictype/category-or: New file.
33838         * modules/unictype/category-of: New file.
33839         * modules/unictype/category-test: New file.
33840         * modules/unictype/category-test-withtable: New file.
33841         * modules/unictype/category-byname: New file.
33842         * modules/unictype/category-none: New file.
33843         * modules/unictype/category-and: New file.
33844         * modules/unictype/category-and-not: New file.
33845         * modules/unictype/category-name: New file.
33846         * modules/unictype/combining-class: New file.
33847         * modules/unictype/category-all: New file.
33848         * modules/unictype/bidicategory-all: New file.
33849         * modules/unictype/bidicategory-byname: New file.
33850         * modules/unictype/bidicategory-name: New file.
33851         * modules/unictype/bidicategory-of: New file.
33852         * modules/unictype/bidicategory-test: New file.
33853         * modules/unictype/decimal-digit: New file.
33854         * modules/unictype/digit: New file.
33855         * modules/unictype/numeric: New file.
33856         * modules/unictype/mirror: New file.
33857         * modules/unictype/property-white-space: New file.
33858         * modules/unictype/property-alphabetic: New file.
33859         * modules/unictype/property-other-alphabetic: New file.
33860         * modules/unictype/property-not-a-character: New file.
33861         * modules/unictype/property-default-ignorable-code-point: New file.
33862         * modules/unictype/property-other-default-ignorable-code-point: New
33863         file.
33864         * modules/unictype/property-deprecated: New file.
33865         * modules/unictype/property-logical-order-exception: New file.
33866         * modules/unictype/property-variation-selector: New file.
33867         * modules/unictype/property-private-use: New file.
33868         * modules/unictype/property-unassigned-code-value: New file.
33869         * modules/unictype/property-uppercase: New file.
33870         * modules/unictype/property-other-uppercase: New file.
33871         * modules/unictype/property-lowercase: New file.
33872         * modules/unictype/property-other-lowercase: New file.
33873         * modules/unictype/property-titlecase: New file.
33874         * modules/unictype/property-soft-dotted: New file.
33875         * modules/unictype/property-id-start: New file.
33876         * modules/unictype/property-other-id-start: New file.
33877         * modules/unictype/property-id-continue: New file.
33878         * modules/unictype/property-other-id-continue: New file.
33879         * modules/unictype/property-xid-start: New file.
33880         * modules/unictype/property-xid-continue: New file.
33881         * modules/unictype/property-pattern-white-space: New file.
33882         * modules/unictype/property-pattern-syntax: New file.
33883         * modules/unictype/property-join-control: New file.
33884         * modules/unictype/property-grapheme-base: New file.
33885         * modules/unictype/property-grapheme-extend: New file.
33886         * modules/unictype/property-other-grapheme-extend: New file.
33887         * modules/unictype/property-grapheme-link: New file.
33888         * modules/unictype/property-bidi-control: New file.
33889         * modules/unictype/property-bidi-left-to-right: New file.
33890         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33891         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33892         * modules/unictype/property-bidi-european-digit: New file.
33893         * modules/unictype/property-bidi-eur-num-separator: New file.
33894         * modules/unictype/property-bidi-eur-num-terminator: New file.
33895         * modules/unictype/property-bidi-arabic-digit: New file.
33896         * modules/unictype/property-bidi-common-separator: New file.
33897         * modules/unictype/property-bidi-block-separator: New file.
33898         * modules/unictype/property-bidi-segment-separator: New file.
33899         * modules/unictype/property-bidi-whitespace: New file.
33900         * modules/unictype/property-bidi-non-spacing-mark: New file.
33901         * modules/unictype/property-bidi-boundary-neutral: New file.
33902         * modules/unictype/property-bidi-pdf: New file.
33903         * modules/unictype/property-bidi-embedding-or-override: New file.
33904         * modules/unictype/property-bidi-other-neutral: New file.
33905         * modules/unictype/property-hex-digit: New file.
33906         * modules/unictype/property-ascii-hex-digit: New file.
33907         * modules/unictype/property-ideographic: New file.
33908         * modules/unictype/property-unified-ideograph: New file.
33909         * modules/unictype/property-radical: New file.
33910         * modules/unictype/property-ids-binary-operator: New file.
33911         * modules/unictype/property-ids-trinary-operator: New file.
33912         * modules/unictype/property-zero-width: New file.
33913         * modules/unictype/property-space: New file.
33914         * modules/unictype/property-non-break: New file.
33915         * modules/unictype/property-iso-control: New file.
33916         * modules/unictype/property-format-control: New file.
33917         * modules/unictype/property-dash: New file.
33918         * modules/unictype/property-hyphen: New file.
33919         * modules/unictype/property-punctuation: New file.
33920         * modules/unictype/property-line-separator: New file.
33921         * modules/unictype/property-paragraph-separator: New file.
33922         * modules/unictype/property-quotation-mark: New file.
33923         * modules/unictype/property-sentence-terminal: New file.
33924         * modules/unictype/property-terminal-punctuation: New file.
33925         * modules/unictype/property-currency-symbol: New file.
33926         * modules/unictype/property-math: New file.
33927         * modules/unictype/property-other-math: New file.
33928         * modules/unictype/property-paired-punctuation: New file.
33929         * modules/unictype/property-left-of-pair: New file.
33930         * modules/unictype/property-combining: New file.
33931         * modules/unictype/property-composite: New file.
33932         * modules/unictype/property-decimal-digit: New file.
33933         * modules/unictype/property-numeric: New file.
33934         * modules/unictype/property-diacritic: New file.
33935         * modules/unictype/property-extender: New file.
33936         * modules/unictype/property-ignorable-control: New file.
33937         * modules/unictype/property-test: New file.
33938         * modules/unictype/property-byname: New file.
33939         * modules/unictype/property-all: New file.
33940         * modules/unictype/scripts: New file.
33941         * modules/unictype/scripts-all: New file.
33942         * modules/unictype/block-of: New file.
33943         * modules/unictype/block-test: New file.
33944         * modules/unictype/block-list: New file.
33945         * modules/unictype/block-all: New file.
33946         * modules/unictype/syntax-c-whitespace: New file.
33947         * modules/unictype/syntax-java-whitespace: New file.
33948         * modules/unictype/syntax-c-ident: New file.
33949         * modules/unictype/syntax-java-ident: New file.
33950         * modules/unictype/ctype-alnum: New file.
33951         * modules/unictype/ctype-alpha: New file.
33952         * modules/unictype/ctype-cntrl: New file.
33953         * modules/unictype/ctype-digit: New file.
33954         * modules/unictype/ctype-graph: New file.
33955         * modules/unictype/ctype-lower: New file.
33956         * modules/unictype/ctype-print: New file.
33957         * modules/unictype/ctype-punct: New file.
33958         * modules/unictype/ctype-space: New file.
33959         * modules/unictype/ctype-upper: New file.
33960         * modules/unictype/ctype-xdigit: New file.
33961         * modules/unictype/ctype-blank: New file.
33962         * lib/unictype/bidi_byname.c: New file.
33963         * lib/unictype/bidi_name.c: New file.
33964         * lib/unictype/bidi_of.c: New file.
33965         * lib/unictype/bidi_test.c: New file.
33966         * lib/unictype/bitmap.h: New file.
33967         * lib/unictype/block_test.c: New file.
33968         * lib/unictype/blocks.c: New file.
33969         * lib/unictype/categ_C.c: New file.
33970         * lib/unictype/categ_Cc.c: New file.
33971         * lib/unictype/categ_Cf.c: New file.
33972         * lib/unictype/categ_Cn.c: New file.
33973         * lib/unictype/categ_Co.c: New file.
33974         * lib/unictype/categ_Cs.c: New file.
33975         * lib/unictype/categ_L.c: New file.
33976         * lib/unictype/categ_Ll.c: New file.
33977         * lib/unictype/categ_Lm.c: New file.
33978         * lib/unictype/categ_Lo.c: New file.
33979         * lib/unictype/categ_Lt.c: New file.
33980         * lib/unictype/categ_Lu.c: New file.
33981         * lib/unictype/categ_M.c: New file.
33982         * lib/unictype/categ_Mc.c: New file.
33983         * lib/unictype/categ_Me.c: New file.
33984         * lib/unictype/categ_Mn.c: New file.
33985         * lib/unictype/categ_N.c: New file.
33986         * lib/unictype/categ_Nd.c: New file.
33987         * lib/unictype/categ_Nl.c: New file.
33988         * lib/unictype/categ_No.c: New file.
33989         * lib/unictype/categ_P.c: New file.
33990         * lib/unictype/categ_Pc.c: New file.
33991         * lib/unictype/categ_Pd.c: New file.
33992         * lib/unictype/categ_Pe.c: New file.
33993         * lib/unictype/categ_Pf.c: New file.
33994         * lib/unictype/categ_Pi.c: New file.
33995         * lib/unictype/categ_Po.c: New file.
33996         * lib/unictype/categ_Ps.c: New file.
33997         * lib/unictype/categ_S.c: New file.
33998         * lib/unictype/categ_Sc.c: New file.
33999         * lib/unictype/categ_Sk.c: New file.
34000         * lib/unictype/categ_Sm.c: New file.
34001         * lib/unictype/categ_So.c: New file.
34002         * lib/unictype/categ_Z.c: New file.
34003         * lib/unictype/categ_Zl.c: New file.
34004         * lib/unictype/categ_Zp.c: New file.
34005         * lib/unictype/categ_Zs.c: New file.
34006         * lib/unictype/categ_and.c: New file.
34007         * lib/unictype/categ_and_not.c: New file.
34008         * lib/unictype/categ_byname.c: New file.
34009         * lib/unictype/categ_name.c: New file.
34010         * lib/unictype/categ_none.c: New file.
34011         * lib/unictype/categ_of.c: New file.
34012         * lib/unictype/categ_or.c: New file.
34013         * lib/unictype/categ_test.c: New file.
34014         * lib/unictype/combining.c: New file.
34015         * lib/unictype/ctype_alnum.c: New file.
34016         * lib/unictype/ctype_alpha.c: New file.
34017         * lib/unictype/ctype_blank.c: New file.
34018         * lib/unictype/ctype_cntrl.c: New file.
34019         * lib/unictype/ctype_digit.c: New file.
34020         * lib/unictype/ctype_graph.c: New file.
34021         * lib/unictype/ctype_lower.c: New file.
34022         * lib/unictype/ctype_print.c: New file.
34023         * lib/unictype/ctype_punct.c: New file.
34024         * lib/unictype/ctype_space.c: New file.
34025         * lib/unictype/ctype_upper.c: New file.
34026         * lib/unictype/ctype_xdigit.c: New file.
34027         * lib/unictype/decdigit.c: New file.
34028         * lib/unictype/digit.c: New file.
34029         * lib/unictype/identsyntaxmap.h: New file.
34030         * lib/unictype/mirror.c: New file.
34031         * lib/unictype/numeric.c: New file.
34032         * lib/unictype/pr_alphabetic.c: New file.
34033         * lib/unictype/pr_ascii_hex_digit.c: New file.
34034         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34035         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34036         * lib/unictype/pr_bidi_block_separator.c: New file.
34037         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34038         * lib/unictype/pr_bidi_common_separator.c: New file.
34039         * lib/unictype/pr_bidi_control.c: New file.
34040         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34041         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34042         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34043         * lib/unictype/pr_bidi_european_digit.c: New file.
34044         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34045         * lib/unictype/pr_bidi_left_to_right.c: New file.
34046         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34047         * lib/unictype/pr_bidi_other_neutral.c: New file.
34048         * lib/unictype/pr_bidi_pdf.c: New file.
34049         * lib/unictype/pr_bidi_segment_separator.c: New file.
34050         * lib/unictype/pr_bidi_whitespace.c: New file.
34051         * lib/unictype/pr_byname.c: New file.
34052         * lib/unictype/pr_byname.gperf: New file.
34053         * lib/unictype/pr_combining.c: New file.
34054         * lib/unictype/pr_composite.c: New file.
34055         * lib/unictype/pr_currency_symbol.c: New file.
34056         * lib/unictype/pr_dash.c: New file.
34057         * lib/unictype/pr_decimal_digit.c: New file.
34058         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34059         * lib/unictype/pr_deprecated.c: New file.
34060         * lib/unictype/pr_diacritic.c: New file.
34061         * lib/unictype/pr_extender.c: New file.
34062         * lib/unictype/pr_format_control.c: New file.
34063         * lib/unictype/pr_grapheme_base.c: New file.
34064         * lib/unictype/pr_grapheme_extend.c: New file.
34065         * lib/unictype/pr_grapheme_link.c: New file.
34066         * lib/unictype/pr_hex_digit.c: New file.
34067         * lib/unictype/pr_hyphen.c: New file.
34068         * lib/unictype/pr_id_continue.c: New file.
34069         * lib/unictype/pr_id_start.c: New file.
34070         * lib/unictype/pr_ideographic.c: New file.
34071         * lib/unictype/pr_ids_binary_operator.c: New file.
34072         * lib/unictype/pr_ids_trinary_operator.c: New file.
34073         * lib/unictype/pr_ignorable_control.c: New file.
34074         * lib/unictype/pr_iso_control.c: New file.
34075         * lib/unictype/pr_join_control.c: New file.
34076         * lib/unictype/pr_left_of_pair.c: New file.
34077         * lib/unictype/pr_line_separator.c: New file.
34078         * lib/unictype/pr_logical_order_exception.c: New file.
34079         * lib/unictype/pr_lowercase.c: New file.
34080         * lib/unictype/pr_math.c: New file.
34081         * lib/unictype/pr_non_break.c: New file.
34082         * lib/unictype/pr_not_a_character.c: New file.
34083         * lib/unictype/pr_numeric.c: New file.
34084         * lib/unictype/pr_other_alphabetic.c: New file.
34085         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34086         * lib/unictype/pr_other_grapheme_extend.c: New file.
34087         * lib/unictype/pr_other_id_continue.c: New file.
34088         * lib/unictype/pr_other_id_start.c: New file.
34089         * lib/unictype/pr_other_lowercase.c: New file.
34090         * lib/unictype/pr_other_math.c: New file.
34091         * lib/unictype/pr_other_uppercase.c: New file.
34092         * lib/unictype/pr_paired_punctuation.c: New file.
34093         * lib/unictype/pr_paragraph_separator.c: New file.
34094         * lib/unictype/pr_pattern_syntax.c: New file.
34095         * lib/unictype/pr_pattern_white_space.c: New file.
34096         * lib/unictype/pr_private_use.c: New file.
34097         * lib/unictype/pr_punctuation.c: New file.
34098         * lib/unictype/pr_quotation_mark.c: New file.
34099         * lib/unictype/pr_radical.c: New file.
34100         * lib/unictype/pr_sentence_terminal.c: New file.
34101         * lib/unictype/pr_soft_dotted.c: New file.
34102         * lib/unictype/pr_space.c: New file.
34103         * lib/unictype/pr_terminal_punctuation.c: New file.
34104         * lib/unictype/pr_test.c: New file.
34105         * lib/unictype/pr_titlecase.c: New file.
34106         * lib/unictype/pr_unassigned_code_value.c: New file.
34107         * lib/unictype/pr_unified_ideograph.c: New file.
34108         * lib/unictype/pr_uppercase.c: New file.
34109         * lib/unictype/pr_variation_selector.c: New file.
34110         * lib/unictype/pr_white_space.c: New file.
34111         * lib/unictype/pr_xid_continue.c: New file.
34112         * lib/unictype/pr_xid_start.c: New file.
34113         * lib/unictype/pr_zero_width.c: New file.
34114         * lib/unictype/scripts.c: New file.
34115         * lib/unictype/sy_c_ident.c: New file.
34116         * lib/unictype/sy_c_whitespace.c: New file.
34117         * lib/unictype/sy_java_ident.c: New file.
34118         * lib/unictype/sy_java_whitespace.c: New file.
34119
34120         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34121         Unicode 5.0.0.
34122         * lib/unictype/blocks.h: Likewise.
34123         * lib/unictype/categ_C.h: Likewise.
34124         * lib/unictype/categ_Cc.h: Likewise.
34125         * lib/unictype/categ_Cf.h: Likewise.
34126         * lib/unictype/categ_Cn.h: Likewise.
34127         * lib/unictype/categ_Co.h: Likewise.
34128         * lib/unictype/categ_Cs.h: Likewise.
34129         * lib/unictype/categ_L.h: Likewise.
34130         * lib/unictype/categ_Ll.h: Likewise.
34131         * lib/unictype/categ_Lm.h: Likewise.
34132         * lib/unictype/categ_Lo.h: Likewise.
34133         * lib/unictype/categ_Lt.h: Likewise.
34134         * lib/unictype/categ_Lu.h: Likewise.
34135         * lib/unictype/categ_M.h: Likewise.
34136         * lib/unictype/categ_Mc.h: Likewise.
34137         * lib/unictype/categ_Me.h: Likewise.
34138         * lib/unictype/categ_Mn.h: Likewise.
34139         * lib/unictype/categ_N.h: Likewise.
34140         * lib/unictype/categ_Nd.h: Likewise.
34141         * lib/unictype/categ_Nl.h: Likewise.
34142         * lib/unictype/categ_No.h: Likewise.
34143         * lib/unictype/categ_P.h: Likewise.
34144         * lib/unictype/categ_Pc.h: Likewise.
34145         * lib/unictype/categ_Pd.h: Likewise.
34146         * lib/unictype/categ_Pe.h: Likewise.
34147         * lib/unictype/categ_Pf.h: Likewise.
34148         * lib/unictype/categ_Pi.h: Likewise.
34149         * lib/unictype/categ_Po.h: Likewise.
34150         * lib/unictype/categ_Ps.h: Likewise.
34151         * lib/unictype/categ_S.h: Likewise.
34152         * lib/unictype/categ_Sc.h: Likewise.
34153         * lib/unictype/categ_Sk.h: Likewise.
34154         * lib/unictype/categ_Sm.h: Likewise.
34155         * lib/unictype/categ_So.h: Likewise.
34156         * lib/unictype/categ_Z.h: Likewise.
34157         * lib/unictype/categ_Zl.h: Likewise.
34158         * lib/unictype/categ_Zp.h: Likewise.
34159         * lib/unictype/categ_Zs.h: Likewise.
34160         * lib/unictype/categ_of.h: Likewise.
34161         * lib/unictype/combining.h: Likewise.
34162         * lib/unictype/ctype_alnum.h: Likewise.
34163         * lib/unictype/ctype_alpha.h: Likewise.
34164         * lib/unictype/ctype_blank.h: Likewise.
34165         * lib/unictype/ctype_cntrl.h: Likewise.
34166         * lib/unictype/ctype_digit.h: Likewise.
34167         * lib/unictype/ctype_graph.h: Likewise.
34168         * lib/unictype/ctype_lower.h: Likewise.
34169         * lib/unictype/ctype_print.h: Likewise.
34170         * lib/unictype/ctype_punct.h: Likewise.
34171         * lib/unictype/ctype_space.h: Likewise.
34172         * lib/unictype/ctype_upper.h: Likewise.
34173         * lib/unictype/ctype_xdigit.h: Likewise.
34174         * lib/unictype/decdigit.h: Likewise.
34175         * lib/unictype/digit.h: Likewise.
34176         * lib/unictype/mirror.h: Likewise.
34177         * lib/unictype/numeric.h: Likewise.
34178         * lib/unictype/pr_alphabetic.h: Likewise.
34179         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34180         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34181         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34182         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34183         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34184         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34185         * lib/unictype/pr_bidi_control.h: Likewise.
34186         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34187         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34188         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34189         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34190         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34191         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34192         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34193         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34194         * lib/unictype/pr_bidi_pdf.h: Likewise.
34195         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34196         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34197         * lib/unictype/pr_combining.h: Likewise.
34198         * lib/unictype/pr_composite.h: Likewise.
34199         * lib/unictype/pr_currency_symbol.h: Likewise.
34200         * lib/unictype/pr_dash.h: Likewise.
34201         * lib/unictype/pr_decimal_digit.h: Likewise.
34202         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34203         * lib/unictype/pr_deprecated.h: Likewise.
34204         * lib/unictype/pr_diacritic.h: Likewise.
34205         * lib/unictype/pr_extender.h: Likewise.
34206         * lib/unictype/pr_format_control.h: Likewise.
34207         * lib/unictype/pr_grapheme_base.h: Likewise.
34208         * lib/unictype/pr_grapheme_extend.h: Likewise.
34209         * lib/unictype/pr_grapheme_link.h: Likewise.
34210         * lib/unictype/pr_hex_digit.h: Likewise.
34211         * lib/unictype/pr_hyphen.h: Likewise.
34212         * lib/unictype/pr_id_continue.h: Likewise.
34213         * lib/unictype/pr_id_start.h: Likewise.
34214         * lib/unictype/pr_ideographic.h: Likewise.
34215         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34216         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34217         * lib/unictype/pr_ignorable_control.h: Likewise.
34218         * lib/unictype/pr_iso_control.h: Likewise.
34219         * lib/unictype/pr_join_control.h: Likewise.
34220         * lib/unictype/pr_left_of_pair.h: Likewise.
34221         * lib/unictype/pr_line_separator.h: Likewise.
34222         * lib/unictype/pr_logical_order_exception.h: Likewise.
34223         * lib/unictype/pr_lowercase.h: Likewise.
34224         * lib/unictype/pr_math.h: Likewise.
34225         * lib/unictype/pr_non_break.h: Likewise.
34226         * lib/unictype/pr_not_a_character.h: Likewise.
34227         * lib/unictype/pr_numeric.h: Likewise.
34228         * lib/unictype/pr_other_alphabetic.h: Likewise.
34229         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34230         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34231         * lib/unictype/pr_other_id_continue.h: Likewise.
34232         * lib/unictype/pr_other_id_start.h: Likewise.
34233         * lib/unictype/pr_other_lowercase.h: Likewise.
34234         * lib/unictype/pr_other_math.h: Likewise.
34235         * lib/unictype/pr_other_uppercase.h: Likewise.
34236         * lib/unictype/pr_paired_punctuation.h: Likewise.
34237         * lib/unictype/pr_paragraph_separator.h: Likewise.
34238         * lib/unictype/pr_pattern_syntax.h: Likewise.
34239         * lib/unictype/pr_pattern_white_space.h: Likewise.
34240         * lib/unictype/pr_private_use.h: Likewise.
34241         * lib/unictype/pr_punctuation.h: Likewise.
34242         * lib/unictype/pr_quotation_mark.h: Likewise.
34243         * lib/unictype/pr_radical.h: Likewise.
34244         * lib/unictype/pr_sentence_terminal.h: Likewise.
34245         * lib/unictype/pr_soft_dotted.h: Likewise.
34246         * lib/unictype/pr_space.h: Likewise.
34247         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34248         * lib/unictype/pr_titlecase.h: Likewise.
34249         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34250         * lib/unictype/pr_unified_ideograph.h: Likewise.
34251         * lib/unictype/pr_uppercase.h: Likewise.
34252         * lib/unictype/pr_variation_selector.h: Likewise.
34253         * lib/unictype/pr_white_space.h: Likewise.
34254         * lib/unictype/pr_xid_continue.h: Likewise.
34255         * lib/unictype/pr_xid_start.h: Likewise.
34256         * lib/unictype/pr_zero_width.h: Likewise.
34257         * lib/unictype/scripts.h: Likewise.
34258         * lib/unictype/scripts_byname.gperf: Likewise.
34259         * lib/unictype/sy_c_ident.h: Likewise.
34260         * lib/unictype/sy_c_whitespace.h: Likewise.
34261         * lib/unictype/sy_java_ident.h: Likewise.
34262         * lib/unictype/sy_java_whitespace.h: Likewise.
34263
34264         * lib/unictype/Makefile: New file.
34265         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34266         glibc.
34267         * lib/unictype/3level.h: New file, copied from glibc.
34268         * lib/unictype/3levelbit.h: New file.
34269
34270 2007-11-11  Bruno Haible  <bruno@clisp.org>
34271
34272         * modules/gperf: New file.
34273         * modules/iconv_open (Depends-on): Add it.
34274         (Makefile.am): Remove the GPERF definition.
34275
34276 2007-11-11  Bruno Haible  <bruno@clisp.org>
34277
34278         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34279         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34280
34281 2007-11-11  Bruno Haible  <bruno@clisp.org>
34282
34283         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34284         (usage): Remove function.
34285
34286 2007-11-11  Bruno Haible  <bruno@clisp.org>
34287
34288         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34289         gl_FUNC_CEILF_LIBS.
34290         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34291         gl_FUNC_CEIL_LIBS.
34292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34293         gl_FUNC_CEILL_LIBS.
34294         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34295         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34296         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34297
34298 2007-11-11  Bruno Haible  <bruno@clisp.org>
34299
34300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34301         roundf were declared but do not exist on functions.
34302         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34303         roundl were declared but do not exist on functions.
34304         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34305         HAVE_FLOORL_AND_CEILL, respectively.
34306         Needed for Sun C on Solaris 10.
34307
34308 2007-11-11  Bruno Haible  <bruno@clisp.org>
34309
34310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34311         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34312         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34313         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34315         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34316         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34317         HAVE_DECL_ROUNDF.
34318         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34319         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34321         of HAVE_DECL_ROUND*.
34322         * modules/math (Makefile.am): Update.
34323
34324 2007-11-10  Bruno Haible  <bruno@clisp.org>
34325
34326         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34327         ptrdiff_t as m4/intl.m4.
34328
34329 2007-11-10  Jim Meyering  <meyering@redhat.com>
34330
34331         Avoid link failure for the argmatch test.
34332         * tests/test-argmatch.c (usage): Define function to avoid a link
34333         failure: argmatch_die requires a usage function.
34334
34335 2007-11-09  Bruno Haible  <bruno@clisp.org>
34336
34337         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34338         * doc/functions/vsnprintf.texi: Likewise.
34339         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34340         with a size argument < 2.
34341
34342 2007-11-09  Bruno Haible  <bruno@clisp.org>
34343
34344         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34345         buffer. Fixes an inefficiency introduced on 2007-11-03.
34346
34347 2007-11-09  Bruno Haible  <bruno@clisp.org>
34348
34349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34350         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34351
34352 2007-11-08  Jim Meyering  <meyering@redhat.com>
34353
34354         Change cache variable name prefix "jm_" to "gl_" everywhere.
34355         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34356         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34357         * m4/uptime.m4: s/gl_/jm_/
34358
34359 2007-11-07  Bruno Haible  <bruno@clisp.org>
34360
34361         Update to GNU gettext 0.17.
34362         * m4/intl.m4: Update to GNU gettext 0.17.
34363         * m4/po.m4: Likewise.
34364         * modules/gettext (Files): Remove m4/ulonglong.m4.
34365         (configure.ac): Require gettext infrastructure from version 0.17.
34366
34367 2007-11-06  Bruno Haible  <bruno@clisp.org>
34368
34369         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34370         symbolic values are not defined in a public header.
34371         * lib/freadable.c (freadable) [QNX]: Likewise.
34372         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34373         * lib/freading.c (freading) [QNX]: Likewise.
34374         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34375         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34376         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34377         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34378         Reported by Alain Magloire.
34379
34380         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34381
34382 2007-11-05  Bruno Haible  <bruno@clisp.org>
34383
34384         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34385         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34386         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34387         Reported by Eric Blake.
34388
34389 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34390             Bruno Haible  <bruno@clisp.org>
34391
34392         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34393         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34394         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34395         (malloc): Undefine also before including <stdlib.h>.
34396         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34397         Needed on OSF/1 4.0.
34398
34399 2007-11-05  Jim Meyering  <meyering@redhat.com>
34400
34401         git-version-gen: sync from coreutils.
34402         * build-aux/git-version-gen: Add comments.
34403         Change the first '-' to '.' in the snapshot version string,
34404         e.g., 6.9-377-08144 -> 6.9.377-08144
34405         Remove first parameter.
34406         Don't declare a version "-dirty" merely because a time
34407         stamp has changed.
34408
34409 2007-11-04  Bruno Haible  <bruno@clisp.org>
34410
34411         * lib/lock.h: Protect all macro definitions containing an 'if'
34412         statement through a "do { ... } while (0)".
34413         * lib/tls.h: Likewise.
34414
34415 2007-11-04  Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34418
34419 2007-11-04  Bruno Haible  <bruno@clisp.org>
34420
34421         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34422         * modules/fprintf-posix (Depends-on): Add nocrash.
34423         * modules/snprintf-posix (Depends-on): Likewise.
34424         * modules/sprintf-posix (Depends-on): Likewise.
34425         * modules/vasnprintf-posix (Depends-on): Likewise.
34426         * modules/vasprintf-posix (Depends-on): Likewise.
34427         * modules/vfprintf-posix (Depends-on): Likewise.
34428         * modules/vsnprintf-posix (Depends-on): Likewise.
34429         * modules/vsprintf-posix (Depends-on): Likewise.
34430         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34431         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34432         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34433         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34434         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34435         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34436         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34437
34438 2007-11-04  Bruno Haible  <bruno@clisp.org>
34439
34440         * modules/nocrash: New file.
34441         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34442         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34443
34444 2007-11-04  Bruno Haible  <bruno@clisp.org>
34445
34446         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34447         precision handling.
34448         * tests/test-vasprintf-posix.c (test_function): Likewise.
34449         * tests/test-snprintf-posix.h (test_function): Likewise.
34450         * tests/test-sprintf-posix.h (test_function): Likewise.
34451
34452         Fix *printf behaviour for large precisions on mingw and BeOS.
34453         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34454         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34456         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34458         gl_PRINTF_PRECISION and test its result. Invoke
34459         gl_PREREQ_VASNPRINTF_PRECISION.
34460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34467         * doc/functions/fprintf.texi: Update.
34468         * doc/functions/printf.texi: Update.
34469         * doc/functions/snprintf.texi: Update.
34470         * doc/functions/sprintf.texi: Update.
34471         * doc/functions/vfprintf.texi: Update.
34472         * doc/functions/vprintf.texi: Update.
34473         * doc/functions/vsnprintf.texi: Update.
34474         * doc/functions/vsprintf.texi: Update.
34475
34476 2007-11-04  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34479
34480 2007-11-04  Bruno Haible  <bruno@clisp.org>
34481
34482         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34483         Reported by Sylvain Beucler <beuc@gnu.org>.
34484
34485 2007-11-03  Bruno Haible  <bruno@clisp.org>
34486
34487         * tests/test-fprintf-posix2.sh: New file.
34488         * tests/test-fprintf-posix2.c: New file.
34489         * modules/fprintf-posix-tests (Files): Add them.
34490         (TESTS): Add test-fprintf-posix2.sh.
34491         (configure.ac): Check for getrlimit and setrlimit.
34492         (check_PROGRAMS): Add test-fprintf-posix2.
34493
34494         * tests/test-printf-posix2.sh: New file.
34495         * tests/test-printf-posix2.c: New file.
34496         * modules/printf-posix-tests (Files): Add them.
34497         (TESTS): Add test-printf-posix2.sh.
34498         (configure.ac): Check for getrlimit and setrlimit.
34499         (check_PROGRAMS): Add test-printf-posix2.
34500
34501         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34502         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34503         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34504         (decode_double): New function, copied from decode_long_double.
34505         (scale10_round_decimal_decoded): New function, extracted from
34506         scale10_round_decimal_long_double.
34507         (scale10_round_decimal_long_double): Use it.
34508         (scale10_round_decimal_double): New function.
34509         (floorlog10): New function.
34510         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34512         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34514         gl_PRINTF_ENOMEM and test its result. Invoke
34515         gl_PREREQ_VASNPRINTF_ENOMEM.
34516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34523         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34524         * modules/snprintf-posix (Depends-on): Likewise.
34525         * modules/sprintf-posix (Depends-on): Likewise.
34526         * modules/vasnprintf-posix (Depends-on): Likewise.
34527         * modules/vasprintf-posix (Depends-on): Likewise.
34528         * modules/vfprintf-posix (Depends-on): Likewise.
34529         * modules/vsnprintf-posix (Depends-on): Likewise.
34530         * modules/vsprintf-posix (Depends-on): Likewise.
34531         * doc/functions/fprintf.texi: Update.
34532         * doc/functions/printf.texi: Update.
34533         * doc/functions/snprintf.texi: Update.
34534         * doc/functions/sprintf.texi: Update.
34535         * doc/functions/vfprintf.texi: Update.
34536         * doc/functions/vprintf.texi: Update.
34537         * doc/functions/vsnprintf.texi: Update.
34538         * doc/functions/vsprintf.texi: Update.
34539
34540 2007-11-03  Bruno Haible  <bruno@clisp.org>
34541
34542         * modules/frexp-nolibm-tests: New file.
34543
34544         * modules/frexp-nolibm: New file.
34545         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34546
34547 2007-11-03  Bruno Haible  <bruno@clisp.org>
34548
34549         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34550         value is C99 compliant.
34551         Needed for OSF/1 5.1.
34552
34553 2007-11-03  Bruno Haible  <bruno@clisp.org>
34554
34555         Fix out-of-memory handling of vasnprintf.
34556         * lib/printf-parse.c: Include <errno.h>.
34557         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34558         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34559         is already set.
34560
34561 2007-11-02  Eric Blake  <ebb9@byu.net>
34562
34563         Fix tests on cygwin.
34564         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34565
34566 2007-11-01  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34569         warning.
34570         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34571         needed for POSIX compatibility.
34572
34573 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34574
34575         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34576         for compatibility with GNU.
34577
34578 2007-11-01  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34581         (putenv): Renamed from rpl_putenv. Change argument type from
34582         'const char *' to 'char *'.
34583         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34584         of defining putenv in config.h, just set REPLACE_PUTENV.
34585         * modules/putenv (Depends-on): Add stdlib.
34586         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34587         (Include): Use <stdlib.h>.
34588         * lib/stdlib.in.h (putenv): New declaration.
34589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34590         REPLACE_PUTENV.
34591         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34592         REPLACE_PUTENV.
34593         Needed for MacOS X 10.5.0.
34594         Reported by Peter O'Gorman <peter@pogma.com>.
34595
34596 2007-11-01  Jim Meyering  <meyering@redhat.com>
34597
34598         Treat an empty date string exactly like "0".
34599         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34600         if the remaining date string (to be parsed) is empty, use "0".
34601         Reported by Mischa Molhoek and discussed in this thread:
34602         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34603
34604 2007-10-31  Bruno Haible  <bruno@clisp.org>
34605
34606         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34607         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34608         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34609         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34610         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34611         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34612
34613 2007-10-31  Bruno Haible  <bruno@clisp.org>
34614
34615         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34616         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34617         (AC_TYPE_LONG_LONG_INT): Use it.
34618         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34619         it as well.
34620         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34621         to m4/longlong.m4.
34622         * modules/stdint (Files): Remove m4/ulonglong.m4.
34623         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34624         m4/ulonglong.m4.
34625         * modules/strtoumax (Files): Likewise.
34626
34627 2007-10-30  Bruno Haible  <bruno@clisp.org>
34628
34629         * modules/xvasprintf-posix: New file.
34630         Suggested by Eric Blake.
34631
34632 2007-10-30  Bruno Haible  <bruno@clisp.org>
34633
34634         * modules/xprintf-posix-tests: New file.
34635         * tests/test-xprintf-posix.sh: New file.
34636         * tests/test-xprintf-posix.c: New file.
34637         * tests/test-xfprintf-posix.c: New file.
34638
34639         * modules/xprintf-posix: New file.
34640
34641 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34642
34643         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34644         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34645         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34646
34647 2007-10-29  Bruno Haible  <bruno@clisp.org>
34648
34649         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34650         contain the special marker '_cv_'.
34651         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34652         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34653         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34654         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34655         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34656         Reported by Ralf Wildenhues.
34657
34658 2007-10-29  Bruno Haible  <bruno@clisp.org>
34659
34660         * gnulib-tool (func_import): When --lgpl is not specified, set
34661         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34662         GPLv3.
34663         Reported by Simon Josefsson.
34664
34665 2007-10-28  Bruno Haible  <bruno@clisp.org>
34666
34667         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34668         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34669         HAVE_DECL_ISFINITE.
34670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34671         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34672         HAVE_DECL_ISFINITE.
34673
34674 2007-10-28  Bruno Haible  <bruno@clisp.org>
34675
34676         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34677         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34678
34679 2007-10-28  Bruno Haible  <bruno@clisp.org>
34680
34681         Fix link errors with Sun C 5.0 on Solaris 10.
34682         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34683         function is declared but not present in the compiler's libm.
34684         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34685         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34686         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34687         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34688         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34689         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34690         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34692         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34693         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34694         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34695         HAVE_DECL_FLOORL.
34696
34697 2007-10-28  Bruno Haible  <bruno@clisp.org>
34698
34699         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34700         gl_FUNC_FLOORL. Cache the result.
34701         (gl_FUNC_FLOORL): Use it.
34702         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34703         gl_FUNC_CEILL. Cache the result.
34704         (gl_FUNC_CEILL): Use it.
34705
34706         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34707         gl_FUNC_FLOOR. Cache the result.
34708         (gl_FUNC_FLOOR): Use it.
34709         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34710         gl_FUNC_CEIL. Cache the result.
34711         (gl_FUNC_CEIL): Use it.
34712
34713         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34714         gl_FUNC_FLOORF. Cache the result.
34715         (gl_FUNC_FLOORF): Use it.
34716         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34717         gl_FUNC_CEILF. Cache the result.
34718         (gl_FUNC_CEILF): Use it.
34719
34720 2007-10-28  Bruno Haible  <bruno@clisp.org>
34721
34722         * gnulib-tool: Allow specifying the LGPL version number through
34723         --lgpl=2 or --lgpl=3.
34724         (func_usage): Document --lgpl with argument.
34725         Handle --lgpl=... arguments.
34726         (func_import): Recognize also gl_LGPL calls with an argument. When
34727         --lgpl=2 is used and the module's license is just LGPL, report an
34728         error. Set sed_transform_lib_file according to the lgpl variable. In
34729         the generated files, use --lgpl or gl_LGPL invocations with argument,
34730         if necessary.
34731         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34732         an LGPv2+ license.
34733         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34734         gl_LGPL macro.
34735
34736 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34737             Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34740         (u16_uctomb_aux): Likewise.
34741         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34742         !HAVE_INLINE.
34743         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34744
34745 2007-10-28  Bruno Haible  <bruno@clisp.org>
34746
34747         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34748         Invoke AM_GETTEXT_OPTION if it exists.
34749         * modules/vasprintf: Likewise.
34750         * modules/verror: Likewise.
34751         * modules/xprintf: Likewise.
34752         * modules/xvasprintf: Likewise.
34753
34754 2007-10-27  Ben Pfaff  <blp@gnu.org>
34755
34756         * lib/math.in.h: Define isfinite macro and prototypes for
34757         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34758         implementations.
34759         * m4/math_h.m4: New substitutions for isfinite module.
34760         * lib/isfinite.c: New file.
34761         * m4/isfinite.m4: New file.
34762         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34763         * modules/isfinite: New file.
34764         * modules/isfinite-tests: New file.
34765         * tests/tests-isfinite.c: New file.
34766         * doc/functions/isfinite.texi: Mention isfinite module.
34767         * MODULES.html.sh: Mention new module.
34768
34769 2007-10-27  Ben Pfaff  <blp@gnu.org>
34770
34771         Ralf Wildenhues reported that Tru64 4.0D declares the round
34772         functions but does not have definitions.
34773         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34774         cannot be found in any library, set the output variable to
34775         "missing" instead of "".
34776         * m4/round.m4: Also use our substitute if we cannot find round in
34777         any library, even if it is declared.
34778         * m4/roundf.m4: Likewise for roundf.
34779         * m4/roundl.m4: Likewise for roundl.
34780         * lib/math.in.h: Undefine roundf, round, roundl before defining
34781         their replacements, to allow for hypothetical systems where these
34782         may be defined as macros but not available in libraries.
34783
34784 2007-10-27  Bruno Haible  <bruno@clisp.org>
34785
34786         * doc/gnulib.texi: Invoke @firstparagraphindent.
34787         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34788         changes in gnulib.
34789         (Source changes): New section.
34790
34791 2007-10-26  Bruno Haible  <bruno@clisp.org>
34792
34793         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34794         borrowed from autoconf.
34795
34796 2007-10-26  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34799         strerror returned the empty string. Needed on HP-UX 11.00.
34800
34801 2007-10-24  Micah Cowan  <micah@cowan.name>
34802
34803         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34804         * build-aux/bootstrap: Remove support for now-unnecessary option,
34805         --cvs-user, and envvars CVS_USER, CVS_RSH.
34806
34807 2007-10-24  Jim Meyering  <meyering@redhat.com>
34808
34809         Avoid diagnostics from sha1sum when there is no cached checksum.
34810         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34811         if the po.s1 file hasn't been created yet.
34812
34813         * build-aux/bootstrap: Sync from coreutils:
34814         2007-10-24  Jim Meyering  <meyering@redhat.com>
34815         Get gnulib from the git repository, not from an obsolete cvs one.
34816         * build-aux/bootstrap: Suggestion from Micah Cowan.
34817         2007-10-04  Jim Meyering  <jim@meyering.net>
34818         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34819         (update_po_files): Work also when there are no .po files in po/.
34820
34821 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34822
34823         * README: Append ".git" to git and cg examples.
34824         Problem reported by Benoit Sigoure.
34825
34826 2007-10-23  Micah Cowan  <micah@cowan.name>
34827
34828         * users.txt: Add wget.
34829
34830 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34831
34832         Fix linking of some unistdio tests on FreeBSD.
34833         * modules/unistdio/u16-vsnprintf-tests
34834         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34835         * modules/unistdio/u16-vsprintf-tests
34836         (test_u16_vsnprintf1_LDADD): Likewise.
34837         * modules/unistdio/u32-vsnprintf-tests
34838         (test_u32_vsnprintf1_LDADD): Likewise.
34839         * modules/unistdio/u32-vsprintf-tests
34840         (test_u32_vsprintf1_LDADD): Likewise.
34841         * modules/unistdio/u8-vsnprintf-tests
34842         (test_u8_vsnprintf1_LDADD): Likewise.
34843         * modules/unistdio/u8-vsprintf-tests
34844         (test_u8_vsprintf1_LDADD): Likewise.
34845         * modules/unistdio/ulc-vsnprintf-tests
34846         (test_ulc_vsnprintf1_LDADD): Likewise.
34847         * modules/unistdio/ulc-vsprintf-tests
34848         (test_ulc_vsprintf1_LDADD): Likewise.
34849
34850         Fix linking of some uniconv tests on FreeBSD.
34851         * modules/uniconv/u16-conv-from-enc-tests
34852         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34853         * modules/uniconv/u16-conv-to-enc-tests
34854         (test_u16_conv_to_enc_LDADD): Likewise.
34855         * modules/uniconv/u16-strconv-from-enc-tests
34856         (test_u16_strconv_from_enc_LDADD): Likewise.
34857         * modules/uniconv/u16-strconv-to-enc-tests
34858         (test_u16_strconv_to_enc_LDADD): Likewise.
34859         * modules/uniconv/u32-conv-from-enc-tests
34860         (test_u32_conv_from_enc_LDADD): Likewise.
34861         * modules/uniconv/u32-conv-to-enc-tests
34862         (test_u32_conv_to_enc_LDADD): Likewise.
34863         * modules/uniconv/u32-strconv-from-enc-tests
34864         (test_u32_strconv_from_enc_LDADD): Likewise.
34865         * modules/uniconv/u32-strconv-to-enc-tests
34866         (test_u32_strconv_to_enc_LDADD): Likewise.
34867         * modules/uniconv/u8-conv-from-enc-tests
34868         (test_u8_conv_from_enc_LDADD): Likewise.
34869         * modules/uniconv/u8-conv-to-enc-tests
34870         (test_u8_conv_to_enc_LDADD): Likewise.
34871         * modules/uniconv/u8-strconv-from-enc-tests
34872         (test_u8_strconv_from_enc_LDADD): Likewise.
34873         * modules/uniconv/u8-strconv-to-enc-tests
34874         (test_u8_strconv_to_enc_LDADD): Likewise.
34875
34876 2007-10-22  Bruno Haible  <bruno@clisp.org>
34877
34878         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34879         size.
34880
34881 2007-10-22  Eric Blake  <ebb9@byu.net>
34882
34883         Tweak x*printf documentation.
34884         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34885         variable name and comments.
34886         Suggested by Bruno Haible.
34887
34888 2007-10-22  Bruno Haible  <bruno@clisp.org>
34889
34890         * lib/acl.c (copy_acl): Fix file name in comment.
34891
34892 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34893
34894         Fix Tru64 problem with stdbool.h.
34895         * lib/stdbool.in.h (false, true):
34896         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34897         Don't declare as an enum in this situation; it runs afoul of Tru64.
34898         Problem reported by Steven M. Schweda in
34899         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34900
34901 2007-10-22  Eric Blake  <ebb9@byu.net>
34902
34903         Also wrap vf?printf.
34904         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34905         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34906         (xvprintf, xvfprintf): New functions.
34907
34908 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34909
34910         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34911         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34912
34913         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34914         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34915
34916 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34917
34918         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34919         by Bruno Haible.
34920
34921 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34922
34923         * lib/getloadavg.c
34924         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34925         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34926
34927         * tests/test-i-ring.c: Work for C89.
34928
34929 2007-10-22  Bruno Haible  <bruno@clisp.org>
34930
34931         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34932         -1u, in preprocessor expression, so that we don't test for the bug
34933         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34935
34936 2007-10-22  Eric Blake  <ebb9@byu.net>
34937
34938         * tests/test-yesno.sh: Silence stderr during test.
34939
34940 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34941
34942         * modules/crypto/gc-camellia: New file.
34943
34944         * m4/gc-camellia.m4: New file.
34945
34946         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34947
34948         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34949
34950 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34951
34952         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34953         --help to stdout.  Reported by sms@antinode.org (Steven
34954         M. Schweda).
34955
34956 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34957
34958         * users.txt: Fix link to libksba.
34959
34960 2007-10-21  Ben Pfaff  <blp@gnu.org>
34961
34962         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
34963         round.c roundf implementation that depends on floorf and ceilf to
34964         be tested unconditionally.
34965
34966 2007-10-21  Ben Pfaff  <blp@gnu.org>
34967
34968         * m4/check-libm-func.m4: Removed.
34969         * m4/check-math-lib.m4: New file.
34970         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
34971         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
34972         definition and lack of AC_LIBOBJ([roundf]).
34973         * m4/roundl.m4: Ditto, and similarly for roundl.
34974         * modules/round: Reference new m4 file.
34975         * modules/roundf: Ditto.
34976         * modules/roundl: Ditto.
34977         * tests/test-round2.c (main): Use ROUND instead of round.
34978         Bug report from Bruno Haible.
34979
34980 2007-10-21  Bruno Haible  <bruno@clisp.org>
34981
34982         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
34983         context.
34984
34985 2007-10-21  Bruno Haible  <bruno@clisp.org>
34986
34987         * tests/test-wcwidth.c (main): Allow negative result for some control
34988         characters.
34989
34990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
34991         Needed on OSF/1 5.1.
34992
34993 2007-10-21  Bruno Haible  <bruno@clisp.org>
34994
34995         * tests/test-floorf1.c: Include isnanf.h.
34996         (main): Use isnanf() instead of isnan().
34997         * tests/test-ceilf1.c: Include isnanf.h.
34998         (main): Use isnanf() instead of isnan().
34999         * tests/test-truncf1.c: Include isnanf.h.
35000         (main): Use isnanf() instead of isnan().
35001         * tests/test-roundf1.c: Include isnanf.h.
35002         (main): Use isnanf() instead of isnan().
35003
35004 2007-10-21  Eric Blake  <ebb9@byu.net>
35005
35006         * users.txt: Update URL for m4.
35007
35008 2007-10-21  Bruno Haible  <bruno@clisp.org>
35009
35010         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35011
35012 2007-10-21  Bruno Haible  <bruno@clisp.org>
35013
35014         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35015         Git's management files if the CVS files are not present.
35016
35017 2007-10-20  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35020         gcc-3.4.x.
35021
35022 2007-10-20  Ben Pfaff  <blp@gnu.org>
35023
35024         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35025         implementations.
35026         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35027         * lib/round.c: New file.
35028         * lib/roundf.c: New file.
35029         * lib/roundl.c: New file.
35030         * m4/round.m4: New file.
35031         * m4/roundf.m4: New file.
35032         * m4/roundl.m4: New file.
35033         * m4/check-libm-func-m4: New file.
35034         * modules/math: Replace round, roundf, roundl related @VARS@ in
35035         math.in.h.
35036         * modules/round: New file.
35037         * modules/round-tests: New file.
35038         * modules/roundf: New file.
35039         * modules/roundf-tests: New file.
35040         * modules/roundl: New file.
35041         * modules/roundl-tests: New file.
35042         * tests/test-round1.c: New file.
35043         * tests/test-round2.c: New file.
35044         * tests/test-roundf1.c: New file.
35045         * tests/test-roundf2.c: New file.
35046         * tests/test-roundl.c: New file.
35047         * doc/functions/round.texi: Mention round module.
35048         * doc/functions/roundf.texi: Mention roundf module.
35049         * doc/functions/roundl.texi: Mention roundl module.
35050         * MODULES.html.sh: Mention new modules.
35051         Thanks to Bruno Haible for suggestions.
35052
35053 2007-10-20  Jim Meyering  <meyering@redhat.com>
35054
35055         * lib/xprintf.c: Include <config.h> unconditionally.
35056
35057         Change xprintf's license to GPL.
35058         * modules/xprintf (License): s/LGPL/GPL/, since this module
35059         depends on modules (exit and exitfail) which are GPL.
35060         Suggestion from Bruno Haible.
35061
35062         xprintf fixes.
35063         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35064         Use a clearer diagnostic.
35065         Patch from Bruno Haible.
35066
35067 2007-10-20  Bruno Haible  <bruno@clisp.org>
35068
35069         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35070         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35072
35073 2007-10-20  Bruno Haible  <bruno@clisp.org>
35074
35075         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35076         precision in the comparison result > x - 1 or similar.
35077         * tests/test-ceilf2.c (correct_result_p): Likewise.
35078         * tests/test-truncf2.c (correct_result_p): Likewise.
35079         * tests/test-trunc2.c (correct_result_p): Likewise.
35080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35081
35082 2007-10-20  Bruno Haible  <bruno@clisp.org>
35083
35084         * modules/ceil: New file.
35085         * m4/ceil.m4: New file.
35086         * doc/functions/ceil.texi: Mention the 'ceil' module.
35087
35088 2007-10-20  Bruno Haible  <bruno@clisp.org>
35089
35090         * modules/floor: New file.
35091         * m4/floor.m4: New file.
35092         * doc/functions/floor.texi: Mention the 'floor' module.
35093
35094 2007-10-20  Bruno Haible  <bruno@clisp.org>
35095
35096         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35097         of %a.
35098         * modules/floorf-tests (Depends-on): Likewise.
35099         * modules/truncf-tests (Depends-on): Likewise.
35100         * modules/trunc-tests (Depends-on): Likewise.
35101         Reported by Ben Pfaff.
35102
35103 2007-10-19  Jim Meyering  <meyering@redhat.com>
35104
35105         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35106         Don't bother testing specific errno values.  Just test ferror.
35107
35108         New module: xprintf
35109         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35110
35111 2007-10-19  Bruno Haible  <bruno@clisp.org>
35112
35113         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35114         syntax.
35115         * modules/javaexec (Makefile.am): Likewise.
35116         * modules/relocatable-prog (Makefile.am): Likewise.
35117         Suggested by Jim Meyering.
35118
35119 2007-10-18  Bruno Haible  <bruno@clisp.org>
35120
35121         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35122         Reported by Jim Meyering.
35123
35124 2007-10-18  Eric Blake  <ebb9@byu.net>
35125
35126         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35127
35128 2007-10-18  Bruno Haible  <bruno@clisp.org>
35129
35130         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35131         the format string into writable memory. Needed in Fortify conditions.
35132
35133 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35134             Bruno Haible  <bruno@clisp.org>
35135
35136         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35137         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35138         * modules/trim (Depends-on): Add mbchar.
35139         (configure.ac): Add gl_FUNC_MBRTOWC.
35140         (Makefile.am): Augment lib_SOURCES.
35141
35142 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35143
35144         Modify glob.c to use fstatat and dirfd, to simplify it.
35145         Suggested by Eric Blake.
35146         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35147         Don't include <stdbool.h>; not used.
35148         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35149         (link_exists_p): Simplify implementation, since we can now assume
35150         dirfd and fstatat.
35151         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35152
35153 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35154
35155         * gnulib-tool (func_get_dependencies): Fix sed script to
35156         match only tests.
35157
35158 2007-10-17  Bruno Haible  <bruno@clisp.org>
35159
35160         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35161         allow locale names without encoding suffix.
35162         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35164
35165 2007-10-16  Bruno Haible  <bruno@clisp.org>
35166
35167         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35168         * lib/getgroups.c (getgroups): Likewise.
35169         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35170
35171 2007-10-16  Bruno Haible  <bruno@clisp.org>
35172
35173         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35174         * modules/malloc-posix (License): Likewise.
35175         * modules/realloc-posix (License): Likewise.
35176         * modules/calloc-posix (License): Likewise.
35177         * modules/intprops (License): Change from GPL to LGPL, with
35178         Paul Eggert's approval.
35179
35180 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35181
35182         Merge glibc changes into lib/glob.c.
35183
35184         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35185         2007-10-15 04:59:03 UTC.  Here are the changes:
35186
35187         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35188
35189         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35190
35191         * lib/glob.c: Add some branch prediction throughout.
35192
35193         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35194
35195         [BZ #5103]
35196         * lib/glob.c (glob): Recognize patterns starting \/.
35197
35198         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35199
35200         [BZ #3996]
35201         * lib/glob.c (attribute_hidden): Define if not defined.
35202         (glob): Unescape dirname, filename or username when needed and not
35203         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35204         is NULL.  Handle unescaped [ in pattern without closing ].
35205         Don't pass GLOB_CHECK down to recursive glob for directories.
35206         (__glob_pattern_type): New function.
35207         (__glob_pattern_p): Implement using __glob_pattern_type.
35208         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35209         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35210         Remove unreachable code.
35211
35212         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35213
35214         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35215         explain why there are no leaks.
35216
35217         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35218
35219         [BZ #3253]
35220         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35221         time, rather allocate increasingly bigger arrays of pointers, if
35222         possible with alloca, if too large with malloc.
35223
35224 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35225
35226         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35227         Problem reported by H.Merijn Brand in
35228         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35229         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35230         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35231
35232 2007-10-15  Bruno Haible  <bruno@clisp.org>
35233
35234         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35235         with explicit rpl_ prefix.
35236         * lib/fopen.c (fopen): Likewise.
35237         * lib/freopen.c (freopen): Likewise.
35238         * lib/iconv.c (iconv): Likewise.
35239         * lib/iconv_close.c (iconv_close): Likewise.
35240
35241 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35242
35243         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35244
35245 2007-10-15  Bruno Haible  <bruno@clisp.org>
35246
35247         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35248         <stddef.h> instead of <stdlib.h> since we only need NULL.
35249         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35250
35251 2007-10-15  Bruno Haible  <bruno@clisp.org>
35252
35253         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35254         Replace paragraph talking about LIBOBJS.
35255         Reported by Colin Watson <cjwatson@debian.org>.
35256
35257 2007-10-15  Bruno Haible  <bruno@clisp.org>
35258
35259         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35260         <stdlib.h> before using NULL.
35261
35262 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35263
35264         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35265         Reported by Albert Chin <china@thewrittenword.com>.
35266
35267 2007-10-14  Bruno Haible  <bruno@clisp.org>
35268
35269         * modules/iconv_open-utf-tests: New file.
35270         * tests/test-iconv-utf.c: New file.
35271
35272         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35273         * modules/iconv_open-utf: New file.
35274         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35275         (iconv, iconv_close): New declarations.
35276         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35277         be defined.
35278         (iconv_open): Add special handling of conversion between UTF-8 and
35279         UTF-{16,32}{BE,LE}.
35280         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35281         * lib/iconv_close.c: New file.
35282         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35283         gl_FUNC_ICONV_OPEN.
35284         (gl_FUNC_ICONV_OPEN): Use it.
35285         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35286         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35287         and REPLACE_ICONV_UTF.
35288         * modules/iconv_open (Depends-on): Add c-strcase.
35289         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35290         ICONV_CONST.
35291         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35292
35293 2007-10-13  Albert Chin  <china@thewrittenword.com>
35294             Bruno Haible  <bruno@clisp.org>
35295
35296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35297         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35298
35299 2007-10-13  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35302         defined, use the ISO C99 inline semantics.
35303         * lib/argp.h (ARGP_EI): Likewise.
35304
35305 2007-10-13  Bruno Haible  <bruno@clisp.org>
35306
35307         Handle 'inline' change in gcc 4.3.0.
35308         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35309         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35310         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35311         argp_fmtstream_point): Disable 'extern' declaration if the function
35312         definition is going to be provided inline.
35313         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35314         semantics, not the ISO C99 inline semantics.
35315         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35316         'extern' declaration if the function definition is going to be provided
35317         inline.
35318         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35319         the GNU C inline semantics, not the ISO C99 inline semantics. With
35320         GCC 4.2, avoid a warning.
35321
35322 2007-10-13  Bruno Haible  <bruno@clisp.org>
35323
35324         * lib/freading.h (freading): Enable the use of __freading for
35325         glibc >= 2.7.
35326         * lib/freading.c (freading): Likewise.
35327
35328 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35329
35330         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35331         "warning: C99 inline functions are not supported; using GNU89".
35332
35333 2007-10-12  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35336         of 2.
35337         * tests/test-ceilf2.c: New file.
35338         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35339
35340         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35341         * modules/ceilf-tests: Update.
35342
35343 2007-10-12  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35346         of 2.
35347         * tests/test-floorf2.c: New file.
35348         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35349
35350         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35351         * modules/floorf-tests: Update.
35352
35353 2007-10-12  Bruno Haible  <bruno@clisp.org>
35354
35355         * tests/test-trunc2.c: New file.
35356         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35357
35358         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35359         * modules/trunc-tests: Update.
35360
35361 2007-10-12  Bruno Haible  <bruno@clisp.org>
35362
35363         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35364         of 2.
35365         * tests/test-truncf2.c: New file.
35366         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35367
35368         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35369         * modules/truncf-tests: Update.
35370
35371 2007-10-11  Eric Blake  <ebb9@byu.net>
35372
35373         Don't claim strerror is broken on Interix.
35374         * doc/functions/strerror.texi (strerror): Known broken systems are
35375         now Solaris 8, and not Interix.
35376         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35377         Interix on cross-compile.
35378         Reported by Martin Koeppe in
35379         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35380
35381 2007-10-11  Bruno Haible  <bruno@clisp.org>
35382
35383         * modules/i-ring-tests: New file.
35384         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35385         instead of assert.
35386
35387 2007-10-11  Bruno Haible  <bruno@clisp.org>
35388
35389         * modules/filenamecat-tests: New file.
35390         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35391         * lib/filenamecat.c: Remove test code.
35392
35393 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35394
35395         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35396
35397         * lib/strerror.c: Include <string.h> always, to test interface,
35398         and to remove the need for the dummy.
35399         Include intprops.h to compute width instead of doing it ourselves
35400         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35401         (strerror): Define it to return NULL if there's no system strerror.
35402         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35403         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35404         ancient pre-strerror Unix systems well any more.  Saying "unknown
35405         system error" is enough.
35406         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35407         simpler strerror.c implementation.
35408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35409         Simplify the tests to reflect the simpler strerror implementation.
35410         * modules/strerror (Depends-on): Add intprops.
35411
35412 2007-10-09  Eric Blake  <ebb9@byu.net>
35413
35414         Silence test-fpending.
35415         * modules/fpending-tests (Files): Add wrapper script.
35416         * tests/test-fpending.sh: New file.
35417
35418 2007-10-09  Bruno Haible  <bruno@clisp.org>
35419
35420         * MODULES.html.sh (func_module): Don't create a hyperlink for
35421         function names like 'printf_frexp'.
35422         (Misc): Add crc, memxor.
35423         (Characteristics of floating types): New section.
35424         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35425         isnanf-nolibm, signbit, trunc, truncf, truncl.
35426         (Enhancements for ISO C 99 functions): New subsection Input/output.
35427         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35428         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35429         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35430         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35431         (Enhancements for POSIX:2001 functions): Add chdir-long.
35432         (File system functions): Add areadlink, chdir-safer, read-file.
35433         Remove cycle-check.
35434         (File system as inode set): New section.
35435         (Date and time): Add gethrxtime.
35436         (Multithreading): Add openmp.
35437         (Internationalization functions): Add localename.
35438         (Unicode string functions): Add unistr/u*-mbsnlen.
35439         (Support for maintaining and releasing projects): Add git-version-gen.
35440         (Lone files): Remove directories.
35441
35442 2007-10-08  Ben Pfaff  <blp@gnu.org>
35443
35444         * lib/xmalloca.h: Fix typo in comment.
35445
35446 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35447
35448         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35449         when avoiding problems with integer overflow.  Use a portable test
35450         instead.
35451
35452 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35453
35454         * modules/dummy (License): Change to LGPLv2+.
35455         * modules/float (License): Likewise
35456         * modules/realloc (License): Likewise
35457         * modules/stdlib (License): Likewise
35458
35459 2007-10-07  Bruno Haible  <bruno@clisp.org>
35460
35461         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35462         * floor.c (TWO_MANT_DIG): Likewise.
35463         * ceil.c (TWO_MANT_DIG): Likewise.
35464         Reported by Ben Pfaff.
35465
35466 2007-10-07  Bruno Haible  <bruno@clisp.org>
35467
35468         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35469         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35470         * lib/frexp.c (FUNC): Likewise.
35471         * lib/printf-frexp.h (printf_frexp): Likewise.
35472         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35473         * lib/printf-frexp.c (FUNC): Likewise.
35474         Suggested by Jim Meyering.
35475
35476 2007-10-07  Jim Meyering  <meyering@redhat.com>
35477
35478         Make xnanosleep's integer overflow test more robust.
35479         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35480         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35481
35482 2007-10-07  Bruno Haible  <bruno@clisp.org>
35483
35484         * NEWS: Mention the license change.
35485
35486         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35487         abbreviations in the modules files.
35488
35489         Change copyright notice from GPLv2+ to GPLv3+.
35490         * README: Change copyright notice.
35491         * MODULES.html.sh: Likewise.
35492         * build-aux/bootstrap.conf: Likewise.
35493         * build-aux/config.libpath: Likewise.
35494         * build-aux/csharpcomp.sh.in: Likewise.
35495         * build-aux/csharpexec.sh.in: Likewise.
35496         * build-aux/install-reloc: Likewise.
35497         * build-aux/javacomp.sh.in: Likewise.
35498         * build-aux/javaexec.sh.in: Likewise.
35499         * build-aux/ldd.sh.in: Likewise.
35500         * build-aux/reloc-ldflags: Likewise.
35501         * build-aux/relocatable.sh.in: Likewise.
35502         * build-aux/x-to-1.in: Likewise.
35503         * check-module: Likewise.
35504         * config/srclistvars.sh: Likewise.
35505         * gnulib-tool: Likewise.
35506         * lib/acl-internal.h: Likewise.
35507         * lib/acl.c: Likewise.
35508         * lib/acl.h: Likewise.
35509         * lib/acl_entries.c: Likewise.
35510         * lib/areadlink-with-size.c: Likewise.
35511         * lib/areadlink.c: Likewise.
35512         * lib/areadlink.h: Likewise.
35513         * lib/argmatch.c: Likewise.
35514         * lib/argmatch.h: Likewise.
35515         * lib/argp-ba.c: Likewise.
35516         * lib/argp-eexst.c: Likewise.
35517         * lib/argp-fmtstream.c: Likewise.
35518         * lib/argp-fmtstream.h: Likewise.
35519         * lib/argp-fs-xinl.c: Likewise.
35520         * lib/argp-help.c: Likewise.
35521         * lib/argp-namefrob.h: Likewise.
35522         * lib/argp-parse.c: Likewise.
35523         * lib/argp-pin.c: Likewise.
35524         * lib/argp-pv.c: Likewise.
35525         * lib/argp-pvh.c: Likewise.
35526         * lib/argp-xinl.c: Likewise.
35527         * lib/argp.h: Likewise.
35528         * lib/at-func.c: Likewise.
35529         * lib/atanl.c: Likewise.
35530         * lib/backupfile.c: Likewise.
35531         * lib/backupfile.h: Likewise.
35532         * lib/basename.c: Likewise.
35533         * lib/binary-io.h: Likewise.
35534         * lib/byteswap.in.h: Likewise.
35535         * lib/c-stack.c: Likewise.
35536         * lib/c-stack.h: Likewise.
35537         * lib/c-strcasestr.c: Likewise.
35538         * lib/c-strcasestr.h: Likewise.
35539         * lib/c-strstr.c: Likewise.
35540         * lib/c-strstr.h: Likewise.
35541         * lib/c-strtod.c: Likewise.
35542         * lib/calloc.c: Likewise.
35543         * lib/canon-host.c: Likewise.
35544         * lib/canon-host.h: Likewise.
35545         * lib/canonicalize-lgpl.c: Likewise.
35546         * lib/canonicalize.c: Likewise.
35547         * lib/canonicalize.h: Likewise.
35548         * lib/ceil.c: Likewise.
35549         * lib/ceilf.c: Likewise.
35550         * lib/ceill.c: Likewise.
35551         * lib/chdir-long.c: Likewise.
35552         * lib/chdir-long.h: Likewise.
35553         * lib/chdir-safer.c: Likewise.
35554         * lib/chdir-safer.h: Likewise.
35555         * lib/chown.c: Likewise.
35556         * lib/classpath.c: Likewise.
35557         * lib/classpath.h: Likewise.
35558         * lib/clean-temp.c: Likewise.
35559         * lib/clean-temp.h: Likewise.
35560         * lib/cloexec.c: Likewise.
35561         * lib/close-stream.c: Likewise.
35562         * lib/closein.c: Likewise.
35563         * lib/closein.h: Likewise.
35564         * lib/closeout.c: Likewise.
35565         * lib/closeout.h: Likewise.
35566         * lib/concat-filename.c: Likewise.
35567         * lib/copy-file.c: Likewise.
35568         * lib/copy-file.h: Likewise.
35569         * lib/count-one-bits.h: Likewise.
35570         * lib/crc.c: Likewise.
35571         * lib/crc.h: Likewise.
35572         * lib/creat-safer.c: Likewise.
35573         * lib/csharpcomp.c: Likewise.
35574         * lib/csharpcomp.h: Likewise.
35575         * lib/csharpexec.c: Likewise.
35576         * lib/csharpexec.h: Likewise.
35577         * lib/cycle-check.c: Likewise.
35578         * lib/cycle-check.h: Likewise.
35579         * lib/diacrit.c: Likewise.
35580         * lib/diacrit.h: Likewise.
35581         * lib/diffseq.h: Likewise.
35582         * lib/dirchownmod.c: Likewise.
35583         * lib/dirent.in.h: Likewise.
35584         * lib/dirfd.c: Likewise.
35585         * lib/dirfd.h: Likewise.
35586         * lib/dirname.c: Likewise.
35587         * lib/dirname.h: Likewise.
35588         * lib/dummy.c: Likewise.
35589         * lib/dup-safer.c: Likewise.
35590         * lib/dup2.c: Likewise.
35591         * lib/eealloc.h: Likewise.
35592         * lib/error.c: Likewise.
35593         * lib/error.h: Likewise.
35594         * lib/euidaccess.c: Likewise.
35595         * lib/exclude.c: Likewise.
35596         * lib/exclude.h: Likewise.
35597         * lib/execute.c: Likewise.
35598         * lib/execute.h: Likewise.
35599         * lib/exitfail.c: Likewise.
35600         * lib/exitfail.h: Likewise.
35601         * lib/expl.c: Likewise.
35602         * lib/fatal-signal.c: Likewise.
35603         * lib/fatal-signal.h: Likewise.
35604         * lib/fbufmode.c: Likewise.
35605         * lib/fbufmode.h: Likewise.
35606         * lib/fchdir.c: Likewise.
35607         * lib/fchmodat.c: Likewise.
35608         * lib/fchownat.c: Likewise.
35609         * lib/fcntl--.h: Likewise.
35610         * lib/fcntl-safer.h: Likewise.
35611         * lib/fcntl.in.h: Likewise.
35612         * lib/fd-safer.c: Likewise.
35613         * lib/fflush.c: Likewise.
35614         * lib/file-has-acl.c: Likewise.
35615         * lib/file-set.c: Likewise.
35616         * lib/file-type.c: Likewise.
35617         * lib/file-type.h: Likewise.
35618         * lib/fileblocks.c: Likewise.
35619         * lib/filemode.c: Likewise.
35620         * lib/filemode.h: Likewise.
35621         * lib/filename.h: Likewise.
35622         * lib/filenamecat.c: Likewise.
35623         * lib/filenamecat.h: Likewise.
35624         * lib/findprog.c: Likewise.
35625         * lib/findprog.h: Likewise.
35626         * lib/float.in.h: Likewise.
35627         * lib/floor.c: Likewise.
35628         * lib/floorf.c: Likewise.
35629         * lib/floorl.c: Likewise.
35630         * lib/fopen-safer.c: Likewise.
35631         * lib/fopen.c: Likewise.
35632         * lib/fpending.c: Likewise.
35633         * lib/fpending.h: Likewise.
35634         * lib/fprintf.c: Likewise.
35635         * lib/fprintftime.h: Likewise.
35636         * lib/fpucw.h: Likewise.
35637         * lib/fpurge.c: Likewise.
35638         * lib/fpurge.h: Likewise.
35639         * lib/freadable.c: Likewise.
35640         * lib/freadable.h: Likewise.
35641         * lib/freadahead.c: Likewise.
35642         * lib/freadahead.h: Likewise.
35643         * lib/freading.c: Likewise.
35644         * lib/freading.h: Likewise.
35645         * lib/free.c: Likewise.
35646         * lib/freopen.c: Likewise.
35647         * lib/frexp.c: Likewise.
35648         * lib/frexpl.c: Likewise.
35649         * lib/fseek.c: Likewise.
35650         * lib/fseterr.c: Likewise.
35651         * lib/fseterr.h: Likewise.
35652         * lib/fstatat.c: Likewise.
35653         * lib/fstrcmp.c: Likewise.
35654         * lib/fstrcmp.h: Likewise.
35655         * lib/fsusage.c: Likewise.
35656         * lib/fsusage.h: Likewise.
35657         * lib/ftell.c: Likewise.
35658         * lib/ftello.c: Likewise.
35659         * lib/fts-cycle.c: Likewise.
35660         * lib/fts.c: Likewise.
35661         * lib/fts_.h: Likewise.
35662         * lib/full-read.c: Likewise.
35663         * lib/full-read.h: Likewise.
35664         * lib/full-write.c: Likewise.
35665         * lib/full-write.h: Likewise.
35666         * lib/fwritable.c: Likewise.
35667         * lib/fwritable.h: Likewise.
35668         * lib/fwriteerror.c: Likewise.
35669         * lib/fwriteerror.h: Likewise.
35670         * lib/fwriting.c: Likewise.
35671         * lib/fwriting.h: Likewise.
35672         * lib/gcd.c: Likewise.
35673         * lib/gcd.h: Likewise.
35674         * lib/getcwd.c: Likewise.
35675         * lib/getdate.h: Likewise.
35676         * lib/getdate.y: Likewise.
35677         * lib/getdomainname.c: Likewise.
35678         * lib/getdomainname.h: Likewise.
35679         * lib/getgroups.c: Likewise.
35680         * lib/gethostname.c: Likewise.
35681         * lib/gethrxtime.c: Likewise.
35682         * lib/gethrxtime.h: Likewise.
35683         * lib/getloadavg.c: Likewise.
35684         * lib/getndelim2.c: Likewise.
35685         * lib/getndelim2.h: Likewise.
35686         * lib/getnline.c: Likewise.
35687         * lib/getnline.h: Likewise.
35688         * lib/getopt.c: Likewise.
35689         * lib/getopt.in.h: Likewise.
35690         * lib/getopt1.c: Likewise.
35691         * lib/getopt_int.h: Likewise.
35692         * lib/getpagesize.h: Likewise.
35693         * lib/getsubopt.c: Likewise.
35694         * lib/gettime.c: Likewise.
35695         * lib/getugroups.c: Likewise.
35696         * lib/getugroups.h: Likewise.
35697         * lib/getusershell.c: Likewise.
35698         * lib/gl_anyavltree_list1.h: Likewise.
35699         * lib/gl_anyavltree_list2.h: Likewise.
35700         * lib/gl_anyhash_list1.h: Likewise.
35701         * lib/gl_anyhash_list2.h: Likewise.
35702         * lib/gl_anylinked_list1.h: Likewise.
35703         * lib/gl_anylinked_list2.h: Likewise.
35704         * lib/gl_anyrbtree_list1.h: Likewise.
35705         * lib/gl_anyrbtree_list2.h: Likewise.
35706         * lib/gl_anytree_list1.h: Likewise.
35707         * lib/gl_anytree_list2.h: Likewise.
35708         * lib/gl_anytree_oset.h: Likewise.
35709         * lib/gl_anytreehash_list1.h: Likewise.
35710         * lib/gl_anytreehash_list2.h: Likewise.
35711         * lib/gl_array_list.c: Likewise.
35712         * lib/gl_array_list.h: Likewise.
35713         * lib/gl_array_oset.c: Likewise.
35714         * lib/gl_array_oset.h: Likewise.
35715         * lib/gl_avltree_list.c: Likewise.
35716         * lib/gl_avltree_list.h: Likewise.
35717         * lib/gl_avltree_oset.c: Likewise.
35718         * lib/gl_avltree_oset.h: Likewise.
35719         * lib/gl_avltreehash_list.c: Likewise.
35720         * lib/gl_avltreehash_list.h: Likewise.
35721         * lib/gl_carray_list.c: Likewise.
35722         * lib/gl_carray_list.h: Likewise.
35723         * lib/gl_linked_list.c: Likewise.
35724         * lib/gl_linked_list.h: Likewise.
35725         * lib/gl_linkedhash_list.c: Likewise.
35726         * lib/gl_linkedhash_list.h: Likewise.
35727         * lib/gl_list.c: Likewise.
35728         * lib/gl_list.h: Likewise.
35729         * lib/gl_oset.c: Likewise.
35730         * lib/gl_oset.h: Likewise.
35731         * lib/gl_rbtree_list.c: Likewise.
35732         * lib/gl_rbtree_list.h: Likewise.
35733         * lib/gl_rbtree_oset.c: Likewise.
35734         * lib/gl_rbtree_oset.h: Likewise.
35735         * lib/gl_rbtreehash_list.c: Likewise.
35736         * lib/gl_rbtreehash_list.h: Likewise.
35737         * lib/gl_sublist.c: Likewise.
35738         * lib/gl_sublist.h: Likewise.
35739         * lib/group-member.c: Likewise.
35740         * lib/group-member.h: Likewise.
35741         * lib/hard-locale.c: Likewise.
35742         * lib/hard-locale.h: Likewise.
35743         * lib/hash-pjw.c: Likewise.
35744         * lib/hash-pjw.h: Likewise.
35745         * lib/hash-triple.c: Likewise.
35746         * lib/hash.c: Likewise.
35747         * lib/hash.h: Likewise.
35748         * lib/human.c: Likewise.
35749         * lib/human.h: Likewise.
35750         * lib/i-ring.c: Likewise.
35751         * lib/i-ring.h: Likewise.
35752         * lib/idcache.c: Likewise.
35753         * lib/imaxabs.c: Likewise.
35754         * lib/imaxdiv.c: Likewise.
35755         * lib/inet_pton.c: Likewise.
35756         * lib/inet_pton.h: Likewise.
35757         * lib/intprops.h: Likewise.
35758         * lib/inttostr.c: Likewise.
35759         * lib/inttostr.h: Likewise.
35760         * lib/inttypes.in.h: Likewise.
35761         * lib/isapipe.c: Likewise.
35762         * lib/isdir.c: Likewise.
35763         * lib/isnan.c: Likewise.
35764         * lib/isnan.h: Likewise.
35765         * lib/isnanf.c: Likewise.
35766         * lib/isnanf.h: Likewise.
35767         * lib/isnanl-nolibm.h: Likewise.
35768         * lib/isnanl.c: Likewise.
35769         * lib/isnanl.h: Likewise.
35770         * lib/javacomp.c: Likewise.
35771         * lib/javacomp.h: Likewise.
35772         * lib/javaexec.c: Likewise.
35773         * lib/javaexec.h: Likewise.
35774         * lib/javaversion.c: Likewise.
35775         * lib/javaversion.h: Likewise.
35776         * lib/javaversion.java: Likewise.
35777         * lib/lbrkprop.h: Likewise.
35778         * lib/lchmod.h: Likewise.
35779         * lib/lchown.c: Likewise.
35780         * lib/ldexpl.c: Likewise.
35781         * lib/linebreak.c: Likewise.
35782         * lib/linebreak.h: Likewise.
35783         * lib/linebuffer.c: Likewise.
35784         * lib/linebuffer.h: Likewise.
35785         * lib/locale.in.h: Likewise.
35786         * lib/logl.c: Likewise.
35787         * lib/long-options.c: Likewise.
35788         * lib/long-options.h: Likewise.
35789         * lib/lstat.c: Likewise.
35790         * lib/lstat.h: Likewise.
35791         * lib/math.in.h: Likewise.
35792         * lib/mbchar.c: Likewise.
35793         * lib/mbchar.h: Likewise.
35794         * lib/mbfile.h: Likewise.
35795         * lib/mbiter.h: Likewise.
35796         * lib/mbscasecmp.c: Likewise.
35797         * lib/mbscasestr.c: Likewise.
35798         * lib/mbschr.c: Likewise.
35799         * lib/mbscspn.c: Likewise.
35800         * lib/mbslen.c: Likewise.
35801         * lib/mbsncasecmp.c: Likewise.
35802         * lib/mbsnlen.c: Likewise.
35803         * lib/mbspbrk.c: Likewise.
35804         * lib/mbspcasecmp.c: Likewise.
35805         * lib/mbsrchr.c: Likewise.
35806         * lib/mbssep.c: Likewise.
35807         * lib/mbsspn.c: Likewise.
35808         * lib/mbsstr.c: Likewise.
35809         * lib/mbstok_r.c: Likewise.
35810         * lib/mbswidth.c: Likewise.
35811         * lib/mbswidth.h: Likewise.
35812         * lib/mbuiter.h: Likewise.
35813         * lib/memcasecmp.c: Likewise.
35814         * lib/memcasecmp.h: Likewise.
35815         * lib/memchr.c: Likewise.
35816         * lib/memcmp.c: Likewise.
35817         * lib/memcoll.c: Likewise.
35818         * lib/memcoll.h: Likewise.
35819         * lib/memcpy.c: Likewise.
35820         * lib/memrchr.c: Likewise.
35821         * lib/mkancesdirs.c: Likewise.
35822         * lib/mkdir-p.c: Likewise.
35823         * lib/mkdir-p.h: Likewise.
35824         * lib/mkdir.c: Likewise.
35825         * lib/mkdirat.c: Likewise.
35826         * lib/mkdtemp.c: Likewise.
35827         * lib/mkstemp-safer.c: Likewise.
35828         * lib/mkstemp.c: Likewise.
35829         * lib/modechange.c: Likewise.
35830         * lib/modechange.h: Likewise.
35831         * lib/mountlist.c: Likewise.
35832         * lib/mountlist.h: Likewise.
35833         * lib/mpsort.c: Likewise.
35834         * lib/nanosleep.c: Likewise.
35835         * lib/obstack.c: Likewise.
35836         * lib/obstack.h: Likewise.
35837         * lib/open-safer.c: Likewise.
35838         * lib/open.c: Likewise.
35839         * lib/openat-die.c: Likewise.
35840         * lib/openat-priv.h: Likewise.
35841         * lib/openat-proc.c: Likewise.
35842         * lib/openat.c: Likewise.
35843         * lib/openat.h: Likewise.
35844         * lib/pagealign_alloc.c: Likewise.
35845         * lib/pagealign_alloc.h: Likewise.
35846         * lib/physmem.c: Likewise.
35847         * lib/physmem.h: Likewise.
35848         * lib/pipe-safer.c: Likewise.
35849         * lib/pipe.c: Likewise.
35850         * lib/pipe.h: Likewise.
35851         * lib/posixtm.c: Likewise.
35852         * lib/posixtm.h: Likewise.
35853         * lib/posixver.c: Likewise.
35854         * lib/printf-frexp.c: Likewise.
35855         * lib/printf-frexp.h: Likewise.
35856         * lib/printf-frexpl.c: Likewise.
35857         * lib/printf-frexpl.h: Likewise.
35858         * lib/printf.c: Likewise.
35859         * lib/progname.c: Likewise.
35860         * lib/progname.h: Likewise.
35861         * lib/progreloc.c: Likewise.
35862         * lib/putenv.c: Likewise.
35863         * lib/quote.c: Likewise.
35864         * lib/quote.h: Likewise.
35865         * lib/quotearg.c: Likewise.
35866         * lib/quotearg.h: Likewise.
35867         * lib/raise.c: Likewise.
35868         * lib/readline.c: Likewise.
35869         * lib/readline.h: Likewise.
35870         * lib/readlink.c: Likewise.
35871         * lib/readtokens.c: Likewise.
35872         * lib/readtokens.h: Likewise.
35873         * lib/readtokens0.c: Likewise.
35874         * lib/readtokens0.h: Likewise.
35875         * lib/readutmp.c: Likewise.
35876         * lib/readutmp.h: Likewise.
35877         * lib/realloc.c: Likewise.
35878         * lib/relocwrapper.c: Likewise.
35879         * lib/rename-dest-slash.c: Likewise.
35880         * lib/rename.c: Likewise.
35881         * lib/rmdir.c: Likewise.
35882         * lib/rpmatch.c: Likewise.
35883         * lib/safe-read.c: Likewise.
35884         * lib/safe-read.h: Likewise.
35885         * lib/safe-write.c: Likewise.
35886         * lib/safe-write.h: Likewise.
35887         * lib/same-inode.h: Likewise.
35888         * lib/same.c: Likewise.
35889         * lib/same.h: Likewise.
35890         * lib/save-cwd.c: Likewise.
35891         * lib/save-cwd.h: Likewise.
35892         * lib/savedir.c: Likewise.
35893         * lib/savedir.h: Likewise.
35894         * lib/savewd.c: Likewise.
35895         * lib/savewd.h: Likewise.
35896         * lib/search.in.h: Likewise.
35897         * lib/setenv.c: Likewise.
35898         * lib/setenv.h: Likewise.
35899         * lib/settime.c: Likewise.
35900         * lib/sh-quote.c: Likewise.
35901         * lib/sh-quote.h: Likewise.
35902         * lib/sig2str.c: Likewise.
35903         * lib/sig2str.h: Likewise.
35904         * lib/signal.in.h: Likewise.
35905         * lib/signbitd.c: Likewise.
35906         * lib/signbitf.c: Likewise.
35907         * lib/signbitl.c: Likewise.
35908         * lib/sigprocmask.c: Likewise.
35909         * lib/sincosl.c: Likewise.
35910         * lib/sleep.c: Likewise.
35911         * lib/sprintf.c: Likewise.
35912         * lib/sqrtl.c: Likewise.
35913         * lib/stat-time.h: Likewise.
35914         * lib/stdio--.h: Likewise.
35915         * lib/stdio-safer.h: Likewise.
35916         * lib/stdlib--.h: Likewise.
35917         * lib/stdlib-safer.h: Likewise.
35918         * lib/stdlib.in.h: Likewise.
35919         * lib/stpcpy.c: Likewise.
35920         * lib/stpncpy.c: Likewise.
35921         * lib/strchrnul.c: Likewise.
35922         * lib/strcspn.c: Likewise.
35923         * lib/strerror.c: Likewise.
35924         * lib/strftime.c: Likewise.
35925         * lib/strftime.h: Likewise.
35926         * lib/striconveh.c: Likewise.
35927         * lib/striconveh.h: Likewise.
35928         * lib/striconveha.c: Likewise.
35929         * lib/striconveha.h: Likewise.
35930         * lib/stripslash.c: Likewise.
35931         * lib/strnlen1.c: Likewise.
35932         * lib/strnlen1.h: Likewise.
35933         * lib/strtod.c: Likewise.
35934         * lib/strtoimax.c: Likewise.
35935         * lib/strtok_r.c: Likewise.
35936         * lib/strtol.c: Likewise.
35937         * lib/strtoll.c: Likewise.
35938         * lib/strtoul.c: Likewise.
35939         * lib/strtoull.c: Likewise.
35940         * lib/sysexits.in.h: Likewise.
35941         * lib/tempname.c: Likewise.
35942         * lib/tempname.h: Likewise.
35943         * lib/timespec.h: Likewise.
35944         * lib/tls.c: Likewise.
35945         * lib/tls.h: Likewise.
35946         * lib/tmpdir.c: Likewise.
35947         * lib/tmpdir.h: Likewise.
35948         * lib/tmpfile-safer.c: Likewise.
35949         * lib/tmpfile.c: Likewise.
35950         * lib/trigl.c: Likewise.
35951         * lib/trigl.h: Likewise.
35952         * lib/trim.c: Likewise.
35953         * lib/trim.h: Likewise.
35954         * lib/trunc.c: Likewise.
35955         * lib/truncf.c: Likewise.
35956         * lib/truncl.c: Likewise.
35957         * lib/tsearch.c: Likewise.
35958         * lib/unicodeio.c: Likewise.
35959         * lib/unicodeio.h: Likewise.
35960         * lib/unistd--.h: Likewise.
35961         * lib/unistd-safer.h: Likewise.
35962         * lib/unistdio/ulc-fprintf.c: Likewise.
35963         * lib/unistdio/ulc-vfprintf.c: Likewise.
35964         * lib/unlinkdir.c: Likewise.
35965         * lib/unlinkdir.h: Likewise.
35966         * lib/unlocked-io.h: Likewise.
35967         * lib/unsetenv.c: Likewise.
35968         * lib/userspec.c: Likewise.
35969         * lib/utime.c: Likewise.
35970         * lib/utimecmp.c: Likewise.
35971         * lib/utimecmp.h: Likewise.
35972         * lib/utimens.c: Likewise.
35973         * lib/verify.h: Likewise.
35974         * lib/verror.c: Likewise.
35975         * lib/verror.h: Likewise.
35976         * lib/version-etc-fsf.c: Likewise.
35977         * lib/version-etc.c: Likewise.
35978         * lib/version-etc.h: Likewise.
35979         * lib/vfprintf.c: Likewise.
35980         * lib/vprintf.c: Likewise.
35981         * lib/vsprintf.c: Likewise.
35982         * lib/w32spawn.h: Likewise.
35983         * lib/wait-process.c: Likewise.
35984         * lib/wait-process.h: Likewise.
35985         * lib/wcwidth.c: Likewise.
35986         * lib/write-any-file.c: Likewise.
35987         * lib/xalloc-die.c: Likewise.
35988         * lib/xalloc.h: Likewise.
35989         * lib/xasprintf.c: Likewise.
35990         * lib/xgetcwd.c: Likewise.
35991         * lib/xgetcwd.h: Likewise.
35992         * lib/xgetdomainname.c: Likewise.
35993         * lib/xgetdomainname.h: Likewise.
35994         * lib/xgethostname.c: Likewise.
35995         * lib/xmalloc.c: Likewise.
35996         * lib/xmalloca.c: Likewise.
35997         * lib/xmalloca.h: Likewise.
35998         * lib/xmemcoll.c: Likewise.
35999         * lib/xnanosleep.c: Likewise.
36000         * lib/xreadlink.c: Likewise.
36001         * lib/xreadlink.h: Likewise.
36002         * lib/xsetenv.c: Likewise.
36003         * lib/xsetenv.h: Likewise.
36004         * lib/xstriconv.c: Likewise.
36005         * lib/xstriconv.h: Likewise.
36006         * lib/xstrndup.c: Likewise.
36007         * lib/xstrndup.h: Likewise.
36008         * lib/xstrtod.c: Likewise.
36009         * lib/xstrtod.h: Likewise.
36010         * lib/xstrtol-error.c: Likewise.
36011         * lib/xstrtol.c: Likewise.
36012         * lib/xstrtol.h: Likewise.
36013         * lib/xtime.h: Likewise.
36014         * lib/xvasprintf.c: Likewise.
36015         * lib/xvasprintf.h: Likewise.
36016         * lib/yesno.c: Likewise.
36017         * lib/yesno.h: Likewise.
36018         * posix-modules: Likewise.
36019         * tests/test-alloca-opt.c: Likewise.
36020         * tests/test-arcfour.c: Likewise.
36021         * tests/test-arctwo.c: Likewise.
36022         * tests/test-argmatch.c: Likewise.
36023         * tests/test-argp-2.sh: Likewise.
36024         * tests/test-argp.c: Likewise.
36025         * tests/test-arpa_inet.c: Likewise.
36026         * tests/test-array_list.c: Likewise.
36027         * tests/test-array_oset.c: Likewise.
36028         * tests/test-atexit.c: Likewise.
36029         * tests/test-avltree_list.c: Likewise.
36030         * tests/test-avltree_oset.c: Likewise.
36031         * tests/test-avltreehash_list.c: Likewise.
36032         * tests/test-base64.c: Likewise.
36033         * tests/test-binary-io.c: Likewise.
36034         * tests/test-byteswap.c: Likewise.
36035         * tests/test-c-ctype.c: Likewise.
36036         * tests/test-c-strcasecmp.c: Likewise.
36037         * tests/test-c-strcasestr.c: Likewise.
36038         * tests/test-c-strncasecmp.c: Likewise.
36039         * tests/test-c-strstr.c: Likewise.
36040         * tests/test-canonicalize-lgpl.c: Likewise.
36041         * tests/test-canonicalize.c: Likewise.
36042         * tests/test-carray_list.c: Likewise.
36043         * tests/test-ceilf.c: Likewise.
36044         * tests/test-ceill.c: Likewise.
36045         * tests/test-count-one-bits.c: Likewise.
36046         * tests/test-crc.c: Likewise.
36047         * tests/test-dirname.c: Likewise.
36048         * tests/test-fbufmode.c: Likewise.
36049         * tests/test-fcntl.c: Likewise.
36050         * tests/test-fflush.c: Likewise.
36051         * tests/test-floorf.c: Likewise.
36052         * tests/test-floorl.c: Likewise.
36053         * tests/test-fopen.c: Likewise.
36054         * tests/test-fprintf-posix.c: Likewise.
36055         * tests/test-fprintf-posix.h: Likewise.
36056         * tests/test-fpurge.c: Likewise.
36057         * tests/test-freadable.c: Likewise.
36058         * tests/test-freadahead.c: Likewise.
36059         * tests/test-freading.c: Likewise.
36060         * tests/test-freopen.c: Likewise.
36061         * tests/test-frexp.c: Likewise.
36062         * tests/test-frexpl.c: Likewise.
36063         * tests/test-fseek.c: Likewise.
36064         * tests/test-fseeko.c: Likewise.
36065         * tests/test-fseterr.c: Likewise.
36066         * tests/test-fstrcmp.c: Likewise.
36067         * tests/test-ftell.c: Likewise.
36068         * tests/test-ftello.c: Likewise.
36069         * tests/test-fwritable.c: Likewise.
36070         * tests/test-fwriting.c: Likewise.
36071         * tests/test-getaddrinfo.c: Likewise.
36072         * tests/test-getpass.c: Likewise.
36073         * tests/test-gettimeofday.c: Likewise.
36074         * tests/test-hmac-md5.c: Likewise.
36075         * tests/test-hmac-sha1.c: Likewise.
36076         * tests/test-iconv.c: Likewise.
36077         * tests/test-iconvme.c: Likewise.
36078         * tests/test-inttypes.c: Likewise.
36079         * tests/test-isnan.c: Likewise.
36080         * tests/test-isnanf.c: Likewise.
36081         * tests/test-isnanl-nolibm.c: Likewise.
36082         * tests/test-isnanl.c: Likewise.
36083         * tests/test-isnanl.h: Likewise.
36084         * tests/test-ldexpl.c: Likewise.
36085         * tests/test-linked_list.c: Likewise.
36086         * tests/test-linkedhash_list.c: Likewise.
36087         * tests/test-locale.c: Likewise.
36088         * tests/test-localename.c: Likewise.
36089         * tests/test-lock.c: Likewise.
36090         * tests/test-lseek.c: Likewise.
36091         * tests/test-malloca.c: Likewise.
36092         * tests/test-math.c: Likewise.
36093         * tests/test-mbscasecmp.c: Likewise.
36094         * tests/test-mbscasestr1.c: Likewise.
36095         * tests/test-mbscasestr2.c: Likewise.
36096         * tests/test-mbscasestr3.c: Likewise.
36097         * tests/test-mbscasestr4.c: Likewise.
36098         * tests/test-mbschr.c: Likewise.
36099         * tests/test-mbscspn.c: Likewise.
36100         * tests/test-mbsncasecmp.c: Likewise.
36101         * tests/test-mbspbrk.c: Likewise.
36102         * tests/test-mbspcasecmp.c: Likewise.
36103         * tests/test-mbsrchr.c: Likewise.
36104         * tests/test-mbsspn.c: Likewise.
36105         * tests/test-mbsstr1.c: Likewise.
36106         * tests/test-mbsstr2.c: Likewise.
36107         * tests/test-mbsstr3.c: Likewise.
36108         * tests/test-md5.c: Likewise.
36109         * tests/test-memmem.c: Likewise.
36110         * tests/test-netinet_in.c: Likewise.
36111         * tests/test-open.c: Likewise.
36112         * tests/test-printf-frexp.c: Likewise.
36113         * tests/test-printf-frexpl.c: Likewise.
36114         * tests/test-printf-posix.c: Likewise.
36115         * tests/test-printf-posix.h: Likewise.
36116         * tests/test-rbtree_list.c: Likewise.
36117         * tests/test-rbtree_oset.c: Likewise.
36118         * tests/test-rbtreehash_list.c: Likewise.
36119         * tests/test-read-file.c: Likewise.
36120         * tests/test-rijndael.c: Likewise.
36121         * tests/test-search.c: Likewise.
36122         * tests/test-signbit.c: Likewise.
36123         * tests/test-sleep.c: Likewise.
36124         * tests/test-snprintf-posix.c: Likewise.
36125         * tests/test-snprintf-posix.h: Likewise.
36126         * tests/test-snprintf.c: Likewise.
36127         * tests/test-sprintf-posix.c: Likewise.
36128         * tests/test-sprintf-posix.h: Likewise.
36129         * tests/test-stat-time.c: Likewise.
36130         * tests/test-stdbool.c: Likewise.
36131         * tests/test-stdint.c: Likewise.
36132         * tests/test-stdio.c: Likewise.
36133         * tests/test-stdlib.c: Likewise.
36134         * tests/test-stpncpy.c: Likewise.
36135         * tests/test-strcasestr.c: Likewise.
36136         * tests/test-striconv.c: Likewise.
36137         * tests/test-striconveh.c: Likewise.
36138         * tests/test-striconveha.c: Likewise.
36139         * tests/test-string.c: Likewise.
36140         * tests/test-sys_select.c: Likewise.
36141         * tests/test-sys_socket.c: Likewise.
36142         * tests/test-sys_stat.c: Likewise.
36143         * tests/test-sys_time.c: Likewise.
36144         * tests/test-sysexits.c: Likewise.
36145         * tests/test-time.c: Likewise.
36146         * tests/test-tls.c: Likewise.
36147         * tests/test-trunc.c: Likewise.
36148         * tests/test-truncf.c: Likewise.
36149         * tests/test-truncl.c: Likewise.
36150         * tests/test-unistd.c: Likewise.
36151         * tests/test-vasnprintf-posix.c: Likewise.
36152         * tests/test-vasnprintf-posix2.c: Likewise.
36153         * tests/test-vasnprintf.c: Likewise.
36154         * tests/test-vasprintf-posix.c: Likewise.
36155         * tests/test-vasprintf.c: Likewise.
36156         * tests/test-verify.c: Likewise.
36157         * tests/test-vfprintf-posix.c: Likewise.
36158         * tests/test-vprintf-posix.c: Likewise.
36159         * tests/test-vsnprintf-posix.c: Likewise.
36160         * tests/test-vsnprintf.c: Likewise.
36161         * tests/test-vsprintf-posix.c: Likewise.
36162         * tests/test-wchar.c: Likewise.
36163         * tests/test-wctype.c: Likewise.
36164         * tests/test-wcwidth.c: Likewise.
36165         * tests/test-xstrtol.c: Likewise.
36166         * tests/test-xvasprintf.c: Likewise.
36167         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36168         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36169         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36170         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36171         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36172         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36173         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36174         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36175         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36176         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36177         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36178         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36179         * tests/uniname/test-uninames.c: Likewise.
36180         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36181         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36182         * tests/unistdio/test-u16-printf1.h: Likewise.
36183         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36184         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36185         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36186         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36187         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36188         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36189         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36190         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36191         * tests/unistdio/test-u32-printf1.h: Likewise.
36192         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36193         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36194         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36195         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36196         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36197         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36198         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36199         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36200         * tests/unistdio/test-u8-printf1.h: Likewise.
36201         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36202         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36203         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36204         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36205         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36206         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36207         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36208         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36209         * tests/unistdio/test-ulc-printf1.h: Likewise.
36210         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36211         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36212         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36213         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36214         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36215         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36216         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36217         * tests/uniwidth/test-u16-width.c: Likewise.
36218         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36219         * tests/uniwidth/test-u32-width.c: Likewise.
36220         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36221         * tests/uniwidth/test-u8-width.c: Likewise.
36222         * tests/uniwidth/test-uc_width.c: Likewise.
36223         * config/srclist-update: Likewise.
36224         (fixlicense): Update to GPLv3+.
36225
36226         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36227         * tests/test-tsearch.c: Change copyright notice.
36228
36229         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36230         * lib/c-strcaseeq.h: Change copyright notice.
36231         * lib/streq.h: Likewise.
36232         * lib/uniconv.h: Likewise.
36233         * lib/uniconv/u-conv-from-enc.h: Likewise.
36234         * lib/uniconv/u-conv-to-enc.h: Likewise.
36235         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36236         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36237         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36238         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36239         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36240         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36241         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36242         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36243         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36244         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36245         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36246         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36247         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36248         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36249         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36250         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36251         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36252         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36253         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36254         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36255         * lib/uniname.h: Likewise.
36256         * lib/uniname/uniname.c: Likewise.
36257         * lib/unistdio.h: Likewise.
36258         * lib/unistdio/u-asnprintf.h: Likewise.
36259         * lib/unistdio/u-asprintf.h: Likewise.
36260         * lib/unistdio/u-printf-args.c: Likewise.
36261         * lib/unistdio/u-printf-args.h: Likewise.
36262         * lib/unistdio/u-printf-parse.h: Likewise.
36263         * lib/unistdio/u-snprintf.h: Likewise.
36264         * lib/unistdio/u-sprintf.h: Likewise.
36265         * lib/unistdio/u-vasprintf.h: Likewise.
36266         * lib/unistdio/u-vsnprintf.h: Likewise.
36267         * lib/unistdio/u-vsprintf.h: Likewise.
36268         * lib/unistdio/u16-asnprintf.c: Likewise.
36269         * lib/unistdio/u16-asprintf.c: Likewise.
36270         * lib/unistdio/u16-printf-parse.c: Likewise.
36271         * lib/unistdio/u16-snprintf.c: Likewise.
36272         * lib/unistdio/u16-sprintf.c: Likewise.
36273         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36274         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36275         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36276         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36277         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36278         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36279         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36280         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36281         * lib/unistdio/u16-vasnprintf.c: Likewise.
36282         * lib/unistdio/u16-vasprintf.c: Likewise.
36283         * lib/unistdio/u16-vsnprintf.c: Likewise.
36284         * lib/unistdio/u16-vsprintf.c: Likewise.
36285         * lib/unistdio/u32-asnprintf.c: Likewise.
36286         * lib/unistdio/u32-asprintf.c: Likewise.
36287         * lib/unistdio/u32-printf-parse.c: Likewise.
36288         * lib/unistdio/u32-snprintf.c: Likewise.
36289         * lib/unistdio/u32-sprintf.c: Likewise.
36290         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36291         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36292         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36293         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36294         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36295         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36296         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36297         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36298         * lib/unistdio/u32-vasnprintf.c: Likewise.
36299         * lib/unistdio/u32-vasprintf.c: Likewise.
36300         * lib/unistdio/u32-vsnprintf.c: Likewise.
36301         * lib/unistdio/u32-vsprintf.c: Likewise.
36302         * lib/unistdio/u8-asnprintf.c: Likewise.
36303         * lib/unistdio/u8-asprintf.c: Likewise.
36304         * lib/unistdio/u8-printf-parse.c: Likewise.
36305         * lib/unistdio/u8-snprintf.c: Likewise.
36306         * lib/unistdio/u8-sprintf.c: Likewise.
36307         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36308         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36309         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36310         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36311         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36312         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36313         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36314         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36315         * lib/unistdio/u8-vasnprintf.c: Likewise.
36316         * lib/unistdio/u8-vasprintf.c: Likewise.
36317         * lib/unistdio/u8-vsnprintf.c: Likewise.
36318         * lib/unistdio/u8-vsprintf.c: Likewise.
36319         * lib/unistdio/ulc-asnprintf.c: Likewise.
36320         * lib/unistdio/ulc-asprintf.c: Likewise.
36321         * lib/unistdio/ulc-printf-parse.c: Likewise.
36322         * lib/unistdio/ulc-snprintf.c: Likewise.
36323         * lib/unistdio/ulc-sprintf.c: Likewise.
36324         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36325         * lib/unistdio/ulc-vasprintf.c: Likewise.
36326         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36327         * lib/unistdio/ulc-vsprintf.c: Likewise.
36328         * lib/unistr.h: Likewise.
36329         * lib/unistr/u-cpy-alloc.h: Likewise.
36330         * lib/unistr/u-cpy.h: Likewise.
36331         * lib/unistr/u-endswith.h: Likewise.
36332         * lib/unistr/u-move.h: Likewise.
36333         * lib/unistr/u-set.h: Likewise.
36334         * lib/unistr/u-startswith.h: Likewise.
36335         * lib/unistr/u-stpcpy.h: Likewise.
36336         * lib/unistr/u-stpncpy.h: Likewise.
36337         * lib/unistr/u-strcat.h: Likewise.
36338         * lib/unistr/u-strcpy.h: Likewise.
36339         * lib/unistr/u-strcspn.h: Likewise.
36340         * lib/unistr/u-strdup.h: Likewise.
36341         * lib/unistr/u-strlen.h: Likewise.
36342         * lib/unistr/u-strncat.h: Likewise.
36343         * lib/unistr/u-strncpy.h: Likewise.
36344         * lib/unistr/u-strnlen.h: Likewise.
36345         * lib/unistr/u-strpbrk.h: Likewise.
36346         * lib/unistr/u-strspn.h: Likewise.
36347         * lib/unistr/u-strstr.h: Likewise.
36348         * lib/unistr/u-strtok.h: Likewise.
36349         * lib/unistr/u16-check.c: Likewise.
36350         * lib/unistr/u16-chr.c: Likewise.
36351         * lib/unistr/u16-cmp.c: Likewise.
36352         * lib/unistr/u16-cpy-alloc.c: Likewise.
36353         * lib/unistr/u16-cpy.c: Likewise.
36354         * lib/unistr/u16-endswith.c: Likewise.
36355         * lib/unistr/u16-mblen.c: Likewise.
36356         * lib/unistr/u16-mbsnlen.c: Likewise.
36357         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36358         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36359         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36360         * lib/unistr/u16-mbtouc.c: Likewise.
36361         * lib/unistr/u16-mbtoucr.c: Likewise.
36362         * lib/unistr/u16-move.c: Likewise.
36363         * lib/unistr/u16-next.c: Likewise.
36364         * lib/unistr/u16-prev.c: Likewise.
36365         * lib/unistr/u16-set.c: Likewise.
36366         * lib/unistr/u16-startswith.c: Likewise.
36367         * lib/unistr/u16-stpcpy.c: Likewise.
36368         * lib/unistr/u16-stpncpy.c: Likewise.
36369         * lib/unistr/u16-strcat.c: Likewise.
36370         * lib/unistr/u16-strchr.c: Likewise.
36371         * lib/unistr/u16-strcmp.c: Likewise.
36372         * lib/unistr/u16-strcpy.c: Likewise.
36373         * lib/unistr/u16-strcspn.c: Likewise.
36374         * lib/unistr/u16-strdup.c: Likewise.
36375         * lib/unistr/u16-strlen.c: Likewise.
36376         * lib/unistr/u16-strmblen.c: Likewise.
36377         * lib/unistr/u16-strmbtouc.c: Likewise.
36378         * lib/unistr/u16-strncat.c: Likewise.
36379         * lib/unistr/u16-strncmp.c: Likewise.
36380         * lib/unistr/u16-strncpy.c: Likewise.
36381         * lib/unistr/u16-strnlen.c: Likewise.
36382         * lib/unistr/u16-strpbrk.c: Likewise.
36383         * lib/unistr/u16-strrchr.c: Likewise.
36384         * lib/unistr/u16-strspn.c: Likewise.
36385         * lib/unistr/u16-strstr.c: Likewise.
36386         * lib/unistr/u16-strtok.c: Likewise.
36387         * lib/unistr/u16-to-u32.c: Likewise.
36388         * lib/unistr/u16-to-u8.c: Likewise.
36389         * lib/unistr/u16-uctomb-aux.c: Likewise.
36390         * lib/unistr/u16-uctomb.c: Likewise.
36391         * lib/unistr/u32-check.c: Likewise.
36392         * lib/unistr/u32-chr.c: Likewise.
36393         * lib/unistr/u32-cmp.c: Likewise.
36394         * lib/unistr/u32-cpy-alloc.c: Likewise.
36395         * lib/unistr/u32-cpy.c: Likewise.
36396         * lib/unistr/u32-endswith.c: Likewise.
36397         * lib/unistr/u32-mblen.c: Likewise.
36398         * lib/unistr/u32-mbsnlen.c: Likewise.
36399         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36400         * lib/unistr/u32-mbtouc.c: Likewise.
36401         * lib/unistr/u32-mbtoucr.c: Likewise.
36402         * lib/unistr/u32-move.c: Likewise.
36403         * lib/unistr/u32-next.c: Likewise.
36404         * lib/unistr/u32-prev.c: Likewise.
36405         * lib/unistr/u32-set.c: Likewise.
36406         * lib/unistr/u32-startswith.c: Likewise.
36407         * lib/unistr/u32-stpcpy.c: Likewise.
36408         * lib/unistr/u32-stpncpy.c: Likewise.
36409         * lib/unistr/u32-strcat.c: Likewise.
36410         * lib/unistr/u32-strchr.c: Likewise.
36411         * lib/unistr/u32-strcmp.c: Likewise.
36412         * lib/unistr/u32-strcpy.c: Likewise.
36413         * lib/unistr/u32-strcspn.c: Likewise.
36414         * lib/unistr/u32-strdup.c: Likewise.
36415         * lib/unistr/u32-strlen.c: Likewise.
36416         * lib/unistr/u32-strmblen.c: Likewise.
36417         * lib/unistr/u32-strmbtouc.c: Likewise.
36418         * lib/unistr/u32-strncat.c: Likewise.
36419         * lib/unistr/u32-strncmp.c: Likewise.
36420         * lib/unistr/u32-strncpy.c: Likewise.
36421         * lib/unistr/u32-strnlen.c: Likewise.
36422         * lib/unistr/u32-strpbrk.c: Likewise.
36423         * lib/unistr/u32-strrchr.c: Likewise.
36424         * lib/unistr/u32-strspn.c: Likewise.
36425         * lib/unistr/u32-strstr.c: Likewise.
36426         * lib/unistr/u32-strtok.c: Likewise.
36427         * lib/unistr/u32-to-u16.c: Likewise.
36428         * lib/unistr/u32-to-u8.c: Likewise.
36429         * lib/unistr/u32-uctomb.c: Likewise.
36430         * lib/unistr/u8-check.c: Likewise.
36431         * lib/unistr/u8-chr.c: Likewise.
36432         * lib/unistr/u8-cmp.c: Likewise.
36433         * lib/unistr/u8-cpy-alloc.c: Likewise.
36434         * lib/unistr/u8-cpy.c: Likewise.
36435         * lib/unistr/u8-endswith.c: Likewise.
36436         * lib/unistr/u8-mblen.c: Likewise.
36437         * lib/unistr/u8-mbsnlen.c: Likewise.
36438         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36439         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36440         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36441         * lib/unistr/u8-mbtouc.c: Likewise.
36442         * lib/unistr/u8-mbtoucr.c: Likewise.
36443         * lib/unistr/u8-move.c: Likewise.
36444         * lib/unistr/u8-next.c: Likewise.
36445         * lib/unistr/u8-prev.c: Likewise.
36446         * lib/unistr/u8-set.c: Likewise.
36447         * lib/unistr/u8-startswith.c: Likewise.
36448         * lib/unistr/u8-stpcpy.c: Likewise.
36449         * lib/unistr/u8-stpncpy.c: Likewise.
36450         * lib/unistr/u8-strcat.c: Likewise.
36451         * lib/unistr/u8-strchr.c: Likewise.
36452         * lib/unistr/u8-strcmp.c: Likewise.
36453         * lib/unistr/u8-strcpy.c: Likewise.
36454         * lib/unistr/u8-strcspn.c: Likewise.
36455         * lib/unistr/u8-strdup.c: Likewise.
36456         * lib/unistr/u8-strlen.c: Likewise.
36457         * lib/unistr/u8-strmblen.c: Likewise.
36458         * lib/unistr/u8-strmbtouc.c: Likewise.
36459         * lib/unistr/u8-strncat.c: Likewise.
36460         * lib/unistr/u8-strncmp.c: Likewise.
36461         * lib/unistr/u8-strncpy.c: Likewise.
36462         * lib/unistr/u8-strnlen.c: Likewise.
36463         * lib/unistr/u8-strpbrk.c: Likewise.
36464         * lib/unistr/u8-strrchr.c: Likewise.
36465         * lib/unistr/u8-strspn.c: Likewise.
36466         * lib/unistr/u8-strstr.c: Likewise.
36467         * lib/unistr/u8-strtok.c: Likewise.
36468         * lib/unistr/u8-to-u16.c: Likewise.
36469         * lib/unistr/u8-to-u32.c: Likewise.
36470         * lib/unistr/u8-uctomb-aux.c: Likewise.
36471         * lib/unistr/u8-uctomb.c: Likewise.
36472         * lib/unitypes.h: Likewise.
36473         * lib/uniwidth.h: Likewise.
36474         * lib/uniwidth/cjk.h: Likewise.
36475         * lib/uniwidth/u16-strwidth.c: Likewise.
36476         * lib/uniwidth/u16-width.c: Likewise.
36477         * lib/uniwidth/u32-strwidth.c: Likewise.
36478         * lib/uniwidth/u32-width.c: Likewise.
36479         * lib/uniwidth/u8-strwidth.c: Likewise.
36480         * lib/uniwidth/u8-width.c: Likewise.
36481         * lib/uniwidth/width.c: Likewise.
36482
36483 2007-10-07  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36486         The file is still under LGPL (see modules/inttypes).
36487
36488 2007-10-06  Bruno Haible  <bruno@clisp.org>
36489
36490         * modules/trunc (Dependencies): Add 'extensions'.
36491         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36492         Reported by Ben Pfaff <blp@gnu.org>.
36493
36494 2007-10-06  Bruno Haible  <bruno@clisp.org>
36495
36496         * modules/freopen-tests: New file.
36497         * tests/test-freopen.c: New file.
36498
36499         * modules/fopen-tests: New file.
36500         * tests/test-fopen.c: New file.
36501
36502         * modules/fopen: New file.
36503         * lib/fopen.c: New file.
36504         * m4/fopen.m4: New file.
36505         * modules/freopen: New file.
36506         * lib/freopen.c: New file.
36507         * m4/freopen.m4: New file.
36508         * lib/stdio.in.h (fopen, freopen): New declarations.
36509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36510         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36511         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36512         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36513         * doc/functions/fopen.texi: Mention the 'fopen' module.
36514         * doc/functions/freopen.texi: Mention the 'freopen' module.
36515
36516 2007-10-06  Bruno Haible  <bruno@clisp.org>
36517
36518         * modules/open-tests: New file.
36519         * tests/test-open.c: New file.
36520
36521         * modules/open: New file.
36522         * lib/open.c: New file.
36523         * m4/open.m4: New file.
36524         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36525         lib/open.c does.
36526         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36527         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36528         macros.
36529         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36530         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36531         REPLACE_OPEN.
36532         * doc/functions/open.texi: Mention the 'open' module.
36533
36534 2007-10-04  Bruno Haible  <bruno@clisp.org>
36535
36536         * modules/ceill-tests: New file.
36537         * tests/test-ceill.c: New file.
36538
36539         * modules/ceill: New file.
36540         * lib/ceill.c: Replace entire file.
36541         * m4/ceill.m4: New file.
36542         * lib/math.in.h (ceill): Replace declaration.
36543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36544         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36545         * doc/functions/ceill.texi: Mention the 'ceill' module.
36546         * modules/mathl (Files): Remove lib/ceill.c.
36547         (Depends-on): Add ceill.
36548
36549 2007-10-04  Bruno Haible  <bruno@clisp.org>
36550
36551         * modules/ceilf-tests: New file.
36552         * tests/test-ceilf.c: New file.
36553
36554         * modules/ceilf: New file.
36555         * lib/ceil.c: New file.
36556         * lib/ceilf.c: New file.
36557         * m4/ceilf.m4: New file.
36558         * lib/math.in.h (ceilf): New declaration.
36559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36560         HAVE_DECL_CEILF.
36561         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36562         HAVE_DECL_CEILF.
36563         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36564
36565 2007-10-04  Bruno Haible  <bruno@clisp.org>
36566
36567         * modules/floorl-tests: New file.
36568         * tests/test-floorl.c: New file.
36569
36570         * modules/floorl: New file.
36571         * lib/floorl.c: Replace entire file.
36572         * m4/floorl.m4: New file.
36573         * lib/math.in.h (floorl): Replace declaration.
36574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36575         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36576         * doc/functions/floorl.texi: Mention the 'floorl' module.
36577         * modules/mathl (Files): Remove lib/floorl.c.
36578         (Depends-on): Add floorl.
36579
36580 2007-10-04  Bruno Haible  <bruno@clisp.org>
36581
36582         * modules/floorf-tests: New file.
36583         * tests/test-floorf.c: New file.
36584
36585         * modules/floorf: New file.
36586         * lib/floor.c: New file.
36587         * lib/floorf.c: New file.
36588         * m4/floorf.m4: New file.
36589         * lib/math.in.h (floorf): New declaration.
36590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36591         HAVE_DECL_FLOORF.
36592         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36593         HAVE_DECL_FLOORF.
36594         * doc/functions/floorf.texi: Mention the 'floorf' module.
36595
36596 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36597             Bruno Haible  <bruno@clisp.org>
36598
36599         Advertise for the Git server instead of the CVS server.
36600         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36601         repository instead of the CVS one.
36602         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36603         about all VCS systems generically.
36604         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36605
36606 2007-10-04  Bruno Haible  <bruno@clisp.org>
36607
36608         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36609         means.
36610         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36611
36612 2007-10-04  Bruno Haible  <bruno@clisp.org>
36613
36614         * modules/truncl-tests: New file.
36615         * tests/test-truncl.c: New file.
36616
36617         * modules/truncl: New file.
36618         * lib/truncl.c: New file.
36619         * m4/truncl.m4: New file.
36620         * lib/math.in.h (truncl): New declaration.
36621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36622         HAVE_DECL_TRUNCL.
36623         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36624         HAVE_DECL_TRUNCL.
36625         * doc/functions/truncl.texi: Mention the 'truncl' module.
36626
36627 2007-10-04  Bruno Haible  <bruno@clisp.org>
36628
36629         * modules/truncf-tests: New file.
36630         * tests/test-truncf.c: New file.
36631
36632         * modules/truncf: New file.
36633         * lib/trunc.c: Make paramerizable through USE_* macros.
36634         * lib/truncf.c: New file.
36635         * m4/truncf.m4: New file.
36636         * lib/math.in.h (truncf): New declaration.
36637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36638         HAVE_DECL_TRUNCF.
36639         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36640         HAVE_DECL_TRUNCF.
36641         * doc/functions/truncf.texi: Mention the 'truncf' module.
36642
36643 2007-10-03  Bruno Haible  <bruno@clisp.org>
36644
36645         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36646         augmentation also for tests modules.
36647         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36648         * modules/atexit-tests (Makefile.am): Likewise.
36649         * modules/binary-io-tests (Makefile.am): Likewise.
36650         * modules/c-strcase-tests (Makefile.am): Likewise.
36651         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36652         * modules/canonicalize-tests (Makefile.am): Likewise.
36653         * modules/closein-tests (Makefile.am): Likewise.
36654         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36655         * modules/freadahead-tests (Makefile.am): Likewise.
36656         * modules/fseek-tests (Makefile.am): Likewise.
36657         * modules/fseeko-tests (Makefile.am): Likewise.
36658         * modules/ftell-tests (Makefile.am): Likewise.
36659         * modules/ftello-tests (Makefile.am): Likewise.
36660         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36661         * modules/isnanl-tests (Makefile.am): Likewise.
36662         * modules/lseek-tests (Makefile.am): Likewise.
36663         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36664         * modules/mbscasestr-tests (Makefile.am): Likewise.
36665         * modules/mbschr-tests (Makefile.am): Likewise.
36666         * modules/mbscspn-tests (Makefile.am): Likewise.
36667         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36668         * modules/mbspbrk-tests (Makefile.am): Likewise.
36669         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36670         * modules/mbsrchr-tests (Makefile.am): Likewise.
36671         * modules/mbsspn-tests (Makefile.am): Likewise.
36672         * modules/mbsstr-tests (Makefile.am): Likewise.
36673         * modules/printf-posix-tests (Makefile.am): Likewise.
36674         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36675         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36676         * modules/tsearch-tests (Makefile.am): Likewise.
36677         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36678         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36679         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36680         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36681         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36682         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36683         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36684         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36685         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36686         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36687         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36688         * modules/xstrtol-tests (Makefile.am): Likewise.
36689         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36690         * modules/yesno-tests (Makefile.am): Likewise.
36691
36692 2007-10-03  Bruno Haible  <bruno@clisp.org>
36693
36694         * modules/trunc-tests: New file.
36695         * tests/test-trunc.c: New file.
36696
36697         * modules/trunc: New file.
36698         * lib/trunc.c: New file.
36699         * m4/trunc.m4: New file.
36700         * lib/math.in.h (trunc): New declaration.
36701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36702         HAVE_DECL_TRUNC.
36703         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36704         HAVE_DECL_TRUNC.
36705         * doc/functions/trunc.texi: Mention the 'trunc' module.
36706
36707 2007-10-03  Bruno Haible  <bruno@clisp.org>
36708
36709         * tests/test-fpending.c: New file, mostly copied
36710         from coreutils/lib/t-fpending.c.
36711         * modules/fpending-tests: New file.
36712
36713 2007-10-03  Bruno Haible  <bruno@clisp.org>
36714
36715         Port the stdio extensions to QNX (untested).
36716         * lib/fseterr.c (fseterr): Add support for QNX.
36717         * lib/fbufmode.c (fbufmode): Likewise.
36718         * lib/freadable.c (freadable): Likewise.
36719         * lib/fwritable.c (fwritable): Likewise.
36720         * lib/freading.c (freading): Likewise.
36721         * lib/fwriting.c (fwriting): Likewise.
36722         * lib/freadahead.c (freadahed): Likewise.
36723         * lib/fpurge.c (fpurge): Likewise.
36724         * lib/fseeko.c (rpl_fseeko): Likewise.
36725
36726 2007-10-03  Bruno Haible  <bruno@clisp.org>
36727             Jim Meyering  <jim@meyering.net>
36728             Eric Blake  <ebb9@byu.net>
36729
36730         * doc/relocatable.texi: Use @command instead of @program.
36731
36732 2007-10-02  Jim Meyering  <jim@meyering.net>
36733
36734         Perform one more "_.h" -> ".in.h" substitution.
36735         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36736         instead of unistd_.h here, too.
36737
36738 2007-10-01  Bruno Haible  <bruno@clisp.org>
36739
36740         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36741         Needed for the alloca-opt module.
36742
36743 2007-09-30  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36746         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36747         alloca_.h.
36748         * lib/argz.in.h: Renamed from lib/argz_.h.
36749         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36750         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36751         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36752         byteswap_.h.
36753         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36754         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36755         dirent_.h.
36756         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36757         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36758         fcntl_.h.
36759         * lib/float.in.h: Renamed from lib/float_.h.
36760         * modules/float (Files, Makefile.am): Use float.in.h instead of
36761         float_.h.
36762         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36763         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36764         fnmatch_.h.
36765         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36766         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36767         getopt_.h.
36768         * lib/glob.in.h: Renamed from lib/glob_.h.
36769         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36770         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36771         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36772         iconv_.h.
36773         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36774         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36775         inttypes_.h.
36776         * lib/locale.in.h: Renamed from lib/locale_.h.
36777         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36778         locale_.h.
36779         * lib/math.in.h: Renamed from lib/math_.h.
36780         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36781         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36782         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36783         of netinet_in_.h. Add dependency.
36784         * lib/poll.in.h: Renamed from lib/poll_.h.
36785         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36786         * lib/search.in.h: Renamed from lib/search_.h.
36787         * modules/search (Files, Makefile.am): Use search.in.h instead of
36788         search_.h.
36789         * lib/signal.in.h: Renamed from lib/signal_.h.
36790         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36791         _signal.h.
36792         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36793         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36794         stdbool_.h.
36795         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36796         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36797         stdint_.h.
36798         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36799         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36800         stdio_.h.
36801         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36802         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36803         stdlib_.h.
36804         * lib/string.in.h: Renamed from lib/string_.h.
36805         * modules/string (Files, Makefile.am): Use string.in.h instead of
36806         string_.h.
36807         * doc/gnulib-tool.texi (Initial import): Update.
36808         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36809         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36810         of sys_select_.h. Add dependency.
36811         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36812         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36813         of sys_socket_.h.
36814         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36815         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36816         sys_stat_.h.
36817         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36818         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36819         sys_time_.h.
36820         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36821         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36822         sysexits_.h.
36823         * lib/time.in.h: Renamed from lib/time_.h.
36824         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36825         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36826         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36827         unistd_.h.
36828         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36829         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36830         wchar_.h.
36831         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36832         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36833         wctype_.h.
36834         * build-aux/bootstrap (slurp): Update.
36835         * lib/.cppi-disable: Update.
36836
36837 2007-09-30  Bruno Haible  <bruno@clisp.org>
36838
36839         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36840         Needed on BeOS.
36841
36842 2007-09-30  Bruno Haible  <bruno@clisp.org>
36843
36844         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36845
36846 2007-09-29  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36849
36850 2007-09-29  Bruno Haible  <bruno@clisp.org>
36851
36852         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36853         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36854         * build-aux/install-reloc: Compile also areadlink.c.
36855         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36856
36857 2007-09-29  Bruno Haible  <bruno@clisp.org>
36858
36859         * gnulib-tool (func_emit_initmacro_done): Indentation.
36860
36861 2007-09-29  Bruno Haible  <bruno@clisp.org>
36862
36863         * README: Add CVS checkout update instructions.
36864         Info from Bob Proulx <bob@proulx.com>.
36865
36866 2007-09-28  Eric Blake  <ebb9@byu.net>
36867
36868         Provide move-if-change.
36869         * build-aux/move-if-change: New file, based on best practice
36870         rather than any canonical upstream location.
36871
36872 2007-09-28  Jim Meyering  <jim@meyering.net>
36873
36874         Fix canonicalize loop-detection corner case.
36875         Do not attempt to stat the symlink values stored via seen_triple.
36876         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36877         on linux-2.6.18, (but not 2.6.22).
36878         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36879         triple_compare.  The former compares dev,ino,filename, while the latter
36880         would actually stat dirname(filename) when dev and ino were equal.
36881         * lib/hash-triple.c: Install <string.h>.
36882         (STREQ): Define.
36883         (triple_compare_ino_str): New function.
36884         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36885
36886 2007-09-28  Eric Blake  <ebb9@byu.net>
36887
36888         Enforce that AC_REPLACE_FUNCS files exist.
36889         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36890         override check for typos.
36891
36892         Fix test-closein on Solaris 10.
36893         * tests/test-closein.c (main): Don't assume stdin can be inherited
36894         closed on all systems.
36895         * tests/test-closein.sh: Likewise.
36896         Reported by Piotr Tarnowski.
36897
36898 2007-09-28  Jim Meyering  <jim@meyering.net>
36899
36900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36901
36902 2007-09-27  Jim Meyering  <jim@meyering.net>
36903
36904         canonicalize: Avoid a false-positive cycle failure.
36905         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36906         Sort.  Remove cycle-check.
36907         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36908         not cycle-check.h.
36909         (seen_triple): New function.
36910         (canonicalize_filename_mode): Use it instead of cycle-check.
36911         * tests/test-canonicalize.c: Add a test for this bug.
36912         * tests/test-canonicalize.sh: Set up and run the test.
36913
36914         New module, file-set, from coreutils.
36915         * modules/file-set: Define it.
36916         * lib/file-set.c, lib/file-set.h: Implement.
36917
36918         New module, hash-triple, from coreutils.
36919         * modules/hash-triple: Define it.
36920         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36921
36922 2007-09-25  Eric Blake  <ebb9@byu.net>
36923
36924         Fix strerror on Interix.
36925         * lib/string_.h (strerror): Declare replacement.
36926         * doc/functions/strerror.texi (strerror): Document the Interix
36927         shortcoming.
36928         * modules/string (Makefile.am): Support new hooks.
36929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36930         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36931         gl_FUNC_STRERROR_SEPARATE.
36932         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36933         * lib/strerror.c (rpl_strerror): Provide replacement.
36934         * modules/strerror (Depends-on): Add string.
36935         (configure.ac): Detect use of module.
36936         * tests/test-strerror.c: New file.
36937         * modules/strerror-tests: New test module.
36938         * modules/argp (Depends-on): Add strerror.
36939         * modules/error (Depends-on): Likewise.
36940         Reported by Martin Koeppe.
36941
36942 2007-09-24  Bruno Haible  <bruno@clisp.org>
36943
36944         * README: Update git instructions.
36945
36946 2007-09-24  Eric Blake  <ebb9@byu.net>
36947
36948         Revert fpending breakage from 2007-09-08.
36949         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36950         __fpending.c.
36951
36952 2007-09-24  Jim Meyering  <jim@meyering.net>
36953
36954         filenamecat.c: Add a test.
36955         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36956         showing how the function works when DIR is the empty string.
36957
36958 2007-09-21  Simon Josefsson  <simon@josefsson.org>
36959
36960         * tests/test-canonicalize.sh: Turn on executable bit.
36961
36962 2007-09-19  Eric Blake  <ebb9@byu.net>
36963
36964         * README: Update CVS instructions.
36965
36966 2007-09-18  Bruno Haible  <bruno@clisp.org>
36967
36968         * modules/areadlink: New file.
36969         * lib/areadlink.h (areadlink): New declaration.
36970         * lib/areadlink.c: New file, based on lib/xreadlink.c.
36971
36972 2007-09-17  Jim Meyering  <jim@meyering.net>
36973
36974         * lib/savewd.c (ESTALE) [!defined]: Define.
36975         Reported to be required on Interix by Martin Koeppe.
36976
36977 2007-09-17  Bruno Haible  <bruno@clisp.org>
36978
36979         * gnulib-tool (func_version): Use $version.
36980
36981 2007-09-16  Bruno Haible  <bruno@clisp.org>
36982
36983         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
36984         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
36985         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
36986         Reported by Greg Schafer <gschafer@zip.com.au>.
36987
36988 2007-09-15  Bruno Haible  <bruno@clisp.org>
36989
36990         * gnulib-tool (sed): Try a little harder to make bash understand the
36991         alias.
36992         Reported by Bruce Korb <bruce.korb@gmail.com>.
36993
36994 2007-09-13  Eric Blake  <ebb9@byu.net>
36995
36996         * ChangeLog: Remove conflict markers.
36997
36998 2007-09-13  Simon Josefsson  <simon@josefsson.org>
36999
37000         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37001         Reported by Bruno Haible <bruno@clisp.org>.
37002
37003 2007-09-12  Bruno Haible  <bruno@clisp.org>
37004
37005         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37006         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37007         is not defined.
37008
37009 2007-09-12  Eric Blake  <ebb9@byu.net>
37010
37011         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37012         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37013         Autoconf definition.
37014         * modules/euidaccess (Depends-on): Add extensions, for
37015         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37016         * modules/fnmatch (Depends-on): Likewise.
37017         * modules/getaddrinfo (Depends-on): Likewise.
37018         * modules/getdelim (Depends-on): Likewise.
37019         * modules/getline (Depends-on): Likewise.
37020         * modules/getsubopt (Depends-on): Likewise.
37021         * modules/gettext (Depends-on): Likewise.
37022         * modules/group-member (Depends-on): Likewise.
37023         * modules/mbchar (Depends-on): Likewise.
37024         * modules/memmem (Depends-on): Likewise.
37025         * modules/mempcpy (Depends-on): Likewise.
37026         * modules/memrchr (Depends-on): Likewise.
37027         * modules/pagealign_alloc (Depends-on): Likewise.
37028         * modules/readutmp (Depends-on): Likewise.
37029         * modules/stpcpy (Depends-on): Likewise.
37030         * modules/stpncpy (Depends-on): Likewise.
37031         * modules/strchrnul (Depends-on): Likewise.
37032         * modules/strndup (Depends-on): Likewise.
37033         * modules/strsep (Depends-on): Likewise.
37034         * modules/strverscmp (Depends-on): Likewise.
37035         * modules/vasprintf (Depends-on): Likewise.
37036         * modules/wcwidth (Depends-on): Likewise.
37037         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37038         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37039         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37041         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37042         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37043         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37044         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37045         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37046         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37048         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37049         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37050         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37051         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37052         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37056         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37057         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37059         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37060         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37061         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37063         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37064         so that lock.m4 can be used in gettext without extensions module.
37065
37066 2007-09-11  Bruno Haible  <bruno@clisp.org>
37067
37068         * m4/isc-posix.m4: Remove file.
37069         Suggested by Eric Blake.
37070
37071 2007-09-11  Eric Blake  <ebb9@byu.net>
37072
37073         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37074
37075 2007-09-10  Bruno Haible  <bruno@clisp.org>
37076
37077         * posix-modules: Fix typo in error message.
37078         Reported by Matt <mkraai@beckman.com>.
37079
37080 2007-09-09  Bruno Haible  <bruno@clisp.org>
37081
37082         * doc/functions/getdelim.texi: Update list of platforms lacking the
37083         function.
37084         * doc/functions/getline.texi: Likewise.
37085
37086 2007-09-09  Jim Meyering  <jim@meyering.net>
37087
37088         * lib/hash.c (hash_initialize): Detect calloc failure.
37089         Reported by Bruno Haible.
37090
37091 2007-09-09  Bruno Haible  <bruno@clisp.org>
37092
37093         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37094         malloc or realloc fails.
37095
37096 2007-09-09  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/getcwd (Depends-on): Add malloc-posix.
37099         * modules/glob (Depends-on): Likewise.
37100         * modules/putenv (Depends-on): Likewise.
37101         * modules/strdup (Depends-on): Likewise.
37102         * modules/getdelim (Depends-on): Add realloc-posix.
37103         * modules/read-file (Depends-on): Likewise.
37104
37105 2007-09-09  Bruno Haible  <bruno@clisp.org>
37106
37107         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37108         (gl_FUNC_MALLOC_POSIX): Require it.
37109         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37110         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37111         * modules/realloc (Files): Add m4/malloc.m4.
37112         * modules/calloc (Files): Likewise.
37113
37114 2007-09-09  Bruno Haible  <bruno@clisp.org>
37115
37116         * modules/malloc-posix: New file.
37117         * modules/malloc (Depends-on): Add malloc-posix.
37118         * lib/malloc.c: Include errno.h.
37119         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37120         and a POSIX-compatible malloc into a single function. Set ENOMEM
37121         when returning NULL.
37122         * m4/malloc.m4: New file.
37123         * doc/functions/malloc.texi: Mention the malloc-posix module.
37124         * lib/stdlib_.h (malloc): New declaration.
37125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37126         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37127         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37128         and HAVE_MALLOC_POSIX.
37129
37130 2007-09-09  Bruno Haible  <bruno@clisp.org>
37131
37132         * modules/realloc-posix: New file.
37133         * modules/realloc (Depends-on): Add realloc-posix.
37134         * lib/realloc.c: Include errno.h.
37135         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37136         and a POSIX-compatible realloc into a single function. Set ENOMEM
37137         when returning NULL.
37138         * m4/realloc.m4: New file.
37139         * doc/functions/realloc.texi: Mention the realloc-posix module.
37140         * lib/stdlib_.h (realloc): New declaration.
37141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37142         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37143         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37144         and HAVE_REALLOC_POSIX.
37145
37146 2007-09-09  Bruno Haible  <bruno@clisp.org>
37147
37148         * modules/calloc-posix: New file.
37149         * modules/calloc (Depends-on): Add calloc-posix.
37150         * lib/calloc.c: Include errno.h.
37151         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37152         and a POSIX-compatible calloc into a single function. Set ENOMEM
37153         when returning NULL.
37154         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37155         * doc/functions/calloc.texi: Mention the calloc-posix module.
37156         * lib/stdlib_.h (calloc): New declaration.
37157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37158         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37159         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37160         and HAVE_CALLOC_POSIX.
37161
37162 2007-09-09  Bruno Haible  <bruno@clisp.org>
37163
37164         Allow for modules to show an arbitrary notice.
37165         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37166         * gnulib-tool: New option --extract-notice.
37167         (func_usage): Document it.
37168         (sed_extract_prog): Update.
37169         (func_get_notice): New function.
37170         (func_modules_notice): New function.
37171         (func_import, func_create_testdir): Invoke it.
37172         Suggested by Jim Meyering.
37173
37174 2007-09-09  Bruno Haible  <bruno@clisp.org>
37175
37176         * gnulib-tool: New options --verbose, --quiet.
37177         (func_usage): Document them.
37178         (verbose): New variable.
37179         (func_execute_command): New function.
37180         (func_import): Don't show the module list and the file list if
37181         $verbose < 0.
37182         (func_create_testdir): Likewise. Use func_execute_command.
37183         (func_create_megatestdir): Use func_execute_command.
37184
37185 2007-09-08  Bruno Haible  <bruno@clisp.org>
37186
37187         * gnulib-tool (func_import): Prefer rsync over wget when available,
37188         for fetching the PO files.
37189
37190 2007-09-08  Bruno Haible  <bruno@clisp.org>
37191
37192         * posix-modules: New file. Portions copied from gnulib-tool.
37193         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37194
37195 2007-09-08  Jim Meyering  <jim@meyering.net>
37196
37197         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37198         * lib/fpending.h: Rename from __fpending.h.
37199         * lib/fpending.c: Rename from __fpending.c.
37200         Include "fpending.h", not "__fpending.h".
37201         * lib/__fpending.h, lib/__fpending.c: Remove files.
37202         * modules/fpending (Files): Reflect new file names.
37203         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37204
37205 2007-09-08  Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/inttypes-h.m4: Remove stub file.
37208
37209 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37210
37211         * doc/headers/stdint.texi: Discuss #include_next issue.
37212
37213 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37214
37215         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37216
37217 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37218
37219         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37220         in variable name.
37221
37222 2007-09-03  Jim Meyering  <jim@meyering.net>
37223
37224         New module: git-version-gen.
37225         * modules/git-version-gen: New file.
37226
37227         Import changes from coreutils for bootstrap script.
37228
37229         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37230
37231         bootstrap: uses rsync to download the .po files
37232         * build-aux/bootstrap (po_download_command_format): New global.
37233         (download_po_files): Use rsync.
37234         (update_po_files): Don't remove .po files after download,
37235         so future rsync runs can take advantage of the copies.
37236
37237         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37238
37239         Solve the unnecessary-.po-file-regeneration problem once and for all.
37240         * build-aux/bootstrap (download_po_files): New function, renamed from
37241         get_translations.  Now, downloads, but doesn't update LINGUAS.
37242         (update_po_files): New function.
37243
37244         bootstrap: Ignore more.
37245         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37246         uniwidth to e.g., lib/.gitignore.
37247         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37248
37249         * build-aux/bootstrap: New setting: vc_ignore.
37250         (insert_sorted_if_absent): Create $file if absent.
37251         Adapt to new, possibly empty, list: $vc_ignore.
37252
37253         bootstrap: generate more ignorable names
37254         * build-aux/bootstrap (slurp): When generating ignorable names,
37255         also map .sin to .sed, .gperf to .c, and .y to .c.
37256
37257 2007-09-03  Jim Meyering  <jim@meyering.net>
37258
37259         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37260         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37261
37262 2007-09-02  Bruno Haible  <bruno@clisp.org>
37263
37264         Fix mis-recognition of 'mcs' on QNX 6.
37265         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37266         output contains the string "Mono".
37267         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37268         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37269
37270 2007-09-01  Bruno Haible  <bruno@clisp.org>
37271
37272         Fix collision between uniwidth/* and linebreak modules.
37273         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37274         u32_width): Remove declarations.
37275         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37276         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37277         streq3, streq2, streq1, streq0): Remove functions.
37278         (STREQ): Remove macro.
37279         (is_cjk_encoding): Remove function.
37280         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37281         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37282         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37283         * NEWS: Document the change.
37284
37285 2007-09-01  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/streq.h: Add double-inclusion guard.
37288
37289 2007-09-01  Karl Berry  <karl@gnu.org>
37290
37291         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37292
37293 2007-08-28  Jim Meyering  <jim@meyering.net>
37294
37295         Rename mreadlink_with_size to areadlink_with_size.
37296         * NEWS: Document the change.
37297         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37298         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37299         * lib/mreadlink.h: Rename this to...
37300         * lib/areadlink.h: ...this.
37301         * modules/mreadlink-with-size: Rename this to...
37302         * modules/areadlink-with-size: ...this.
37303         * lib/canonicalize.c: Reflect the renaming.
37304         * modules/canonicalize: Likewise.
37305
37306 2007-08-26  Bruno Haible  <bruno@clisp.org>
37307
37308         * gnulib-tool (func_import): When deciding which files to remove,
37309         consider also dangling symbolic links.
37310         Reported by Eric Blake.
37311
37312 2007-08-26  Bruno Haible  <bruno@clisp.org>
37313
37314         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37315
37316 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37317
37318         * lib/readline.c: Don't include getline.h, the prototype is now
37319         found in stdio.h.
37320
37321 2007-08-23  Jim Meyering  <jim@meyering.net>
37322
37323         Getdelim touchup.
37324         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37325         around the funlockfile call, since funlockfile never sets errno.
37326         Don't set errno upon failed realloc.
37327
37328 2007-08-22  Eric Blake  <ebb9@byu.net>
37329
37330         Getline touchups.
37331         * lib/getdelim.c (getdelim): Revert regression that required *n to
37332         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37333         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37334         getdelim, rather than whether implementation is missing.
37335         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37336         * lib/stdio_.h (getline): Also declare if replacement is
37337         required.
37338         * doc/functions/getdelim.texi: New file.
37339         * doc/functions/getline.texi: Likewise.
37340         * doc/gnulib.texi (Function Substitutes): Add new files.
37341         Reported by Bruno Haible.
37342
37343 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37344
37345         * users.txt: Add Guile.
37346
37347 2007-08-22  Eric Blake  <ebb9@byu.net>
37348
37349         * tests/test-getdelim.c (main): Use remove, not unlink.
37350         * tests/test-getline.c (main): Likewise.
37351
37352         Move getline and getdelim into stdio.h, per POSIX 200x.
37353         * modules/getline (Files): Remove getline.h.
37354         (Depends-on): Add stdio.
37355         (configure.ac): Add module indicator.
37356         * modules/getdelim (Files): Remove getdelim.h.
37357         (Depends-on): Add stdio.
37358         (configure.ac): Add module indicator.
37359         * modules/stdio (Makefile.am): Work with new indicators.
37360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37362         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37363         * lib/getdelim.h: Delete.
37364         * lib/getline.h: Delete.
37365         * lib/stdio_.h (getdelim, getline): Declare.
37366         * modules/getdelim-tests: New module.
37367         * modules/getline-tests: Likewise.
37368         * tests/test-getdelim.c: New file.
37369         * tests/test-getline.c: Likewise.
37370         * NEWS: Document the change.
37371         * lib/getline.c: Update choice of header.
37372         * lib/csharpcomp.c: Likewise.
37373         * lib/getpass.c: Likewise.
37374         * lib/javacomp.c: Likewise.
37375         * lib/javaversion.c: Likewise.
37376         * lib/yesno.c: Likewise.
37377         * lib/getdelim.c: Likewise.
37378         (getdelim): Set errno on failure, and avoid memory leak.
37379
37380 2007-08-19  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/closein (Depends-on): Add freadahead.
37383         * lib/closein.c: Include freadahead.h.
37384         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37385         is zero.
37386
37387 2007-08-19  Bruno Haible  <bruno@clisp.org>
37388
37389         * modules/freadahead-tests: New file.
37390         * tests/test-freadahead.sh: New file.
37391         * tests/test-freadahead.c: New file.
37392
37393         * modules/freadahead: New file.
37394         * lib/freadahead.h: New file.
37395         * lib/freadahead.c: New file.
37396         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37397         fbufmode, fpurge, freadable, fwritable.
37398
37399 2007-08-19  Eric Blake  <ebb9@byu.net>
37400
37401         Test yesno in combination with closein.
37402         * lib/yesno.c (yesno): Document use of stdin.
37403         * modules/yesno-tests (Files): New module.
37404         * tests/test-yesno.c (main): New file.
37405         * tests/test-yesno.sh: Likewise.
37406
37407 2007-08-19  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37410         * lib/fseeko.c (rpl_fseeko): Likewise.
37411         * lib/fseterr.c (fseterr): Likewise.
37412
37413 2007-08-19  Bruno Haible  <bruno@clisp.org>
37414
37415         * tests/test-lseek.c (main): Disable a test for BeOS.
37416         * doc/functions/lseek.texi: Document the BeOS bug.
37417
37418 2007-08-19  Bruno Haible  <bruno@clisp.org>
37419             Eric Blake  <ebb9@byu.net>
37420
37421         * lib/lseek.c: Include <sys/stat.h>.
37422         (rpl_lseek): Add workaround code also for Unix platforms.
37423         Needed for BeOS.
37424         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37425         * doc/functions/lseek.texi: Document BeOS definiency.
37426
37427 2007-08-18  Bruno Haible  <bruno@clisp.org>
37428
37429         * modules/fstrcmp-tests: New file.
37430         * tests/test-fstrcmp.c: New file.
37431
37432 2007-08-18  Bruno Haible  <bruno@clisp.org>
37433
37434         * modules/fstrcmp: New file, from GNU gettext with modifications.
37435         * lib/fstrcmp.h: New file, from GNU gettext.
37436         * lib/fstrcmp.c: New file, from GNU gettext.
37437         * MODULES.html.sh (String handling): Add fstrcmp.
37438
37439 2007-08-18  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37442         'bool'.
37443         (diag, compareseq): Remove const from the ctxt argument.
37444         (USE_HEURISTIC): Undefine at the end.
37445
37446 2007-08-18  Jim Meyering  <jim@meyering.net>
37447
37448         New file: lib/idcache.h
37449         * NEWS: Mention the addition.
37450         * modules/idcache (Files): Add lib/idcache.h
37451         * lib/idcache.c: Include "idcache.h".
37452         Don't include <sys/types.h>.
37453         Add a FIXME comment.
37454         Move file-scoped "static" declarations to the top.
37455         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37456
37457 2007-08-17  Bruno Haible  <bruno@clisp.org>
37458         and Paul Eggert  <eggert@cs.ucla.edu>
37459
37460         * MODULES.html.sh: Add diffseq.
37461         * modules/diffseq: New file.
37462         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37463         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37464
37465 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37466
37467         Import changes from coreutils for bootstrap script.
37468
37469         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37470
37471         * build-aux/bootstrap (slurp): Work even in environments where
37472         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37473         current code does not slurp files whose names start with ".", and
37474         this looks like it might be a troublesome area.
37475
37476         2007-07-11  Jim Meyering  <jim@meyering.net>
37477
37478         If there's a GPL vN copyright comment, require that N == 3.
37479
37480         2007-07-08  Jim Meyering  <jim@meyering.net>
37481
37482         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37483         * build-aux/bootstrap (mam_template): Move definition out of loop.
37484
37485         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37486
37487         * build-aux/bootstrap (symlink_to_dir): Rename function from
37488         symlink_to_gnulib.  Add a directory parameter.  Update all
37489         callers.
37490         (cp_mark_as_generated): Also check for -- and link to -- files in
37491         gl/.
37492
37493         2007-07-08  Jim Meyering  <jim@meyering.net>
37494
37495         Adapt to deeper hierarchy in gnulib.
37496         * build-aux/bootstrap (symlink_to_dir): If the destination
37497         directory doesn't exist, create it. This is required at least for
37498         "lib/uniwidth/cjk.h".
37499
37500         2007-05-15  Jim Meyering  <jim@meyering.net>
37501
37502         * build-aux/bootstrap: Now that generated Makefile.am files
37503         are no longer under version control, they must be created at
37504         bootstrap time.
37505
37506 2007-08-14  Ben Pfaff  <blp@gnu.org>
37507
37508         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37509
37510 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37511
37512         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37513         given the changes below.
37514         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37515         even on hosts that have padding bits beyond the supported 64.
37516
37517 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37518
37519         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37520         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37521         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37522         depends on it.
37523         (xstrtol_error): Remove.
37524         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37525         but with a different signature.
37526         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37527         * lib/xstrtol-error.c: Include exitfail.h.
37528         (xstrtol_fatal): New function, with a different signature from the
37529         old xstrtol_error, so that the caller need not worry about passing
37530         in an exit status, or about storage management of the option argument.
37531         (xstrtol_error): Now a static function.  Redo signature to
37532         implement xstrtol_fatal.  Output the correct number of hyphens in
37533         front of the option so that the caller need not worry about
37534         storage management.
37535         (N_): New macro.
37536         (_): Remove; not used now.
37537         * modules/xstrtol: Depend on getopt.
37538         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37539         of old STRTOL_FATAL_ERROR macro.
37540         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37541         of test program.
37542         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37543         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37544
37545 2007-08-08  Eric Blake  <ebb9@byu.net>
37546
37547         * lib/xstrtol-error.c: Add missing include.
37548
37549         Move xstrtol messages into gnulib domain, when --pobase is used.
37550         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37551         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37552         * modules/xstrtol (Files): Distribute new file.
37553         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37554         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37555         * tests/test-xstrtol.c: ...into new file.
37556         * tests/test-xstrtoul.c: Also test xstrtoul.
37557         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37558         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37559         * tests/test-xstrtol.sh: Drive the tests.
37560         * tests/test-xstrtoimax.sh: Likewise.
37561         * tests/test-xstrtoumax.sh: Likewise.
37562         * modules/xstrtol-tests: New module.
37563         * modules/xstrtoimax-tests: Likewise.
37564         * modules/xstrtoumax-tests: Likewise.
37565
37566 2007-08-08  Jim Meyering  <jim@meyering.net>
37567
37568         New function: mfile_name_concat.
37569         * lib/filenamecat.c (mfile_name_concat): New function, just like
37570         file_name_concat, but return NULL upon failure rather than exiting
37571         with a diagnostic.
37572         * lib/filenamecat.h: Declare it.
37573
37574 2007-08-07  Bruno Haible  <bruno@clisp.org>
37575
37576         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37577         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37578         warning from gcc.
37579         Reported by Eric Blake.
37580
37581 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37582
37583         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37584         * modules/crypto/arcfour (License): Likewise.
37585         * modules/crypto/des-tests (License): Likewise.
37586         * modules/crypto/gc-arctwo-tests (License): Likewise.
37587         * modules/crypto/gc-des-tests (License): Likewise.
37588         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37589         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37590         * modules/crypto/gc-md2-tests (License): Likewise.
37591         * modules/crypto/gc-md4-tests (License): Likewise.
37592         * modules/crypto/gc-md5-tests (License): Likewise.
37593         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37594         * modules/crypto/gc-rijndael-tests (License): Likewise.
37595         * modules/crypto/gc-sha1-tests (License): Likewise.
37596         * modules/crypto/gc-tests (License): Likewise.
37597         * modules/crypto/hmac-md5 (License): Likewise.
37598         * modules/crypto/hmac-sha1 (License): Likewise.
37599         * modules/crypto/md2-tests (License): Likewise.
37600         * modules/crypto/md4-tests (License): Likewise.
37601         * modules/crypto/md5 (License): Likewise.
37602         * modules/crypto/rijndael (License): Likewise.
37603         * modules/crypto/sha1 (License): Likewise.
37604         * modules/memxor (License): Likewise.
37605
37606 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37607         and Bruno Haible  <bruno@clisp.org>
37608
37609         * NEWS: Describe interface changes to human, xstrtol.
37610         * lib/human.h: Include <xstrtol.h>.
37611         (human_options): Return enum strtol_error, not int.  Remove
37612         bool arg; take int * instead.
37613         * lib/human.c: Don't include "gettext.h".
37614         (_): Remove; no longer used.
37615         Don't include <xstrtol.h>, since human.h does it.
37616         (human_options): Adjust to abovementioned interface changes.
37617         Do not report error to stderr; that's now the caller's
37618         responsibility.
37619         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37620         interface change.
37621         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37622         Str, Argument_type_string.  All uses changed.  Put " argument"
37623         in diagnostics to make them clearer.  Change wording of suffix
37624         message for clarity.
37625         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37626         Argument_type_string.
37627         (STRTOL_FATAL_WARN): Remove; no longer used.
37628         * modules/human (Depends-on): Remove gettext-h.
37629
37630 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37631
37632         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37633
37634 2007-07-31  Bruno Haible  <bruno@clisp.org>
37635
37636         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37637         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37638         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37639
37640 2007-07-31  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37643         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37644
37645 2007-07-30  Bruno Haible  <bruno@clisp.org>
37646
37647         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37648         * modules/c-ctype (License): Likewise.
37649         * modules/c-strcase (License): Likewise.
37650         * modules/check-version (License): Likewise.
37651         * modules/iconv (License): Likewise.
37652         * modules/iconv_open (License): Likewise.
37653         * modules/read-file (License): Likewise.
37654         * modules/striconv (License): Likewise.
37655         * modules/strverscmp (License): Likewise.
37656         * modules/vasprintf (License): Likewise.
37657         * modules/crypto/des (License): Likewise.
37658         * modules/crypto/gc (License): Likewise.
37659         * modules/crypto/gc-arcfour (License): Likewise.
37660         * modules/crypto/gc-arctwo (License): Likewise.
37661         * modules/crypto/gc-des (License): Likewise.
37662         * modules/crypto/gc-hmac-md5 (License): Likewise.
37663         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37664         * modules/crypto/gc-md2 (License): Likewise.
37665         * modules/crypto/gc-md4 (License): Likewise.
37666         * modules/crypto/gc-md5 (License): Likewise.
37667         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37668         * modules/crypto/gc-random (License): Likewise.
37669         * modules/crypto/gc-rijndael (License): Likewise.
37670         * modules/crypto/gc-sha1 (License): Likewise.
37671         * modules/crypto/md2 (License): Likewise.
37672         * modules/crypto/md4 (License): Likewise.
37673
37674 2007-07-30  Jim Meyering  <jim@meyering.net>
37675
37676         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37677         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37678         it has valid stat data.  This bug would cause du not to count the
37679         sizes of inaccessible directories.
37680         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37681         in <http://bugzilla.redhat.com/250077>.
37682
37683 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37684             Bruno Haible  <bruno@clisp.org>
37685
37686         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37687         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37688         #include_next, gives a diagnostic about it, but reports no error in
37689         the exit code.
37690         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37691
37692 2007-07-24  Ben Pfaff  <blp@gnu.org>
37693
37694         Improve name: "count-one-bits" is better than "popcount".
37695         * MODULES.html.sh: Update name.
37696         * lib/popcount.h: Renamed lib/count-one-bits.h.
37697         (popcount): Renamed count_one_bits.
37698         (popcountl): Renamed count_one_bits_l.
37699         (popcountll): Renamed count_one_bits_ll.
37700         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37701         * modules/popcount: Renamed module/count-one-bits.
37702         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37703         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37704
37705 2007-07-23  Ben Pfaff  <blp@gnu.org>
37706
37707         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37708         better code generation, and add U to large constants to avoid
37709         warnings, in non-GCC case.
37710         Suggested by Bruno Haible.
37711
37712 2007-07-23  Ben Pfaff  <blp@gnu.org>
37713
37714         * lib/popcount.h: Use verify_true instead of if...abort.
37715         * modules/popcount: Depend on verify module.
37716         Suggested by Jim Meyering.
37717
37718 2007-07-23  Bruno Haible  <bruno@clisp.org>
37719
37720         * gnulib-tool (func_import): Create a .cvsignore file also when the
37721         directory is not yet in CVS but the toplevel directory is. When
37722         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37723         Reported by Karl Berry.
37724
37725 2007-07-22  Ben Pfaff  <blp@gnu.org>
37726
37727         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37728         case.
37729         Suggested by Eric Blake.
37730
37731 2007-07-22  Ben Pfaff  <blp@gnu.org>
37732
37733         New module: popcount.
37734         * MODULES.html.sh: Add popcount.
37735         * modules/popcount: New file.
37736         * modules/popcount-tests: New file.
37737         * tests/test-popcount.c: New file.
37738         * lib/popcount.h: New file.
37739         * m4/popcount.m4: New file.
37740
37741 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37742
37743         * build-aux/announce-gen: Update to GPLv3.
37744
37745         * build-aux/config.guess: Update from config.
37746
37747 2007-07-21  Bruno Haible  <bruno@clisp.org>
37748
37749         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37750         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37751
37752 2007-07-20  Jim Meyering  <jim@meyering.net>
37753
37754         * check-module: Diagnose a self-dependency.
37755
37756 2007-07-19  Bruno Haible  <bruno@clisp.org>
37757
37758         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37759         empty.
37760         Reported by Eric Blake.
37761
37762 2007-07-18  Bruno Haible  <bruno@clisp.org>
37763
37764         * gnulib-tool: New options --po-base, --po-domain.
37765         (func_usage): Document them.
37766         (pobase, po_domain): New variables.
37767         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37768         DEFAULT_TEXT_DOMAIN.
37769         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37770         (func_import): Consider pobase and po_domain. Create a po/ directory.
37771         (func_create_testdir): Set pobase and po_domain to empty.
37772         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37773         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37774
37775 2007-07-18  Bruno Haible  <bruno@clisp.org>
37776
37777         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37778         EXTRA_DIST augmentation for files in build-aux/.
37779
37780 2007-07-16  Bruno Haible  <bruno@clisp.org>
37781
37782         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37783         * modules/getdelim (License): Likewise.
37784
37785 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37786
37787         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37788         * modules/d-type (License): Likewise.
37789         * modules/extensions (License): Likewise.
37790         * modules/fnmatch (License): Likewise.
37791         * modules/fseeko (License): Likewise.
37792         * modules/getaddrinfo (License): Likewise.
37793         * modules/getline (License): Likewise.
37794         * modules/getlogin_r (License): Likewise.
37795         * modules/getpass (License): Likewise.
37796         * modules/gettimeofday (License): Likewise.
37797         * modules/glob (License): Likewise.
37798         * modules/inet_ntop (License): Likewise.
37799         * modules/malloc (License): Likewise.
37800         * modules/malloca (License): Likewise.
37801         * modules/memmem (License): Likewise.
37802         * modules/mempcpy (License): Likewise.
37803         * modules/memset (License): Likewise.
37804         * modules/minmax (License): Likewise.
37805         * modules/mktime (License): Likewise.
37806         * modules/netinet_in (License): Likewise.
37807         * modules/pathmax (License): Likewise.
37808         * modules/poll (License): Likewise.
37809         * modules/regex (License): Likewise.
37810         * modules/snprintf (License): Likewise.
37811         * modules/stdbool (License): Likewise.
37812         * modules/stdint (License): Likewise.
37813         * modules/stdio (License): Likewise.
37814         * modules/strcase (License): Likewise.
37815         * modules/strcasestr (License): Likewise.
37816         * modules/strdup (License): Likewise.
37817         * modules/string (License): Likewise.
37818         * modules/strndup (License): Likewise.
37819         * modules/strnlen (License): Likewise.
37820         * modules/strpbrk (License): Likewise.
37821         * modules/strptime (License): Likewise.
37822         * modules/strsep (License): Likewise.
37823         * modules/sys_select (License): Likewise.
37824         * modules/sys_socket (License): Likewise.
37825         * modules/sys_stat (License): Likewise.
37826         * modules/sys_time (License): Likewise.
37827         * modules/time (License): Likewise.
37828         * modules/time_r (License): Likewise.
37829         * modules/timegm (License): Likewise.
37830         * modules/unistd (License): Likewise.
37831         * modules/vsnprintf (License): Likewise.
37832         * modules/wctype (License): Likewise.
37833
37834 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37835
37836         * modules/argz (License): LGPLv2+.
37837
37838 2007-07-15  Karl Berry  <karl@gnu.org>
37839
37840         * doc/gnulib.texi: revise node structure per new fdl.texi.
37841
37842 2007-07-14  Bruno Haible  <bruno@clisp.org>
37843
37844         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37845         the output file.
37846         * lib/uniname/uninames.h: Regenerated.
37847
37848 2007-07-14  Karl Berry  <karl@gnu.org>
37849
37850         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37851         omitting sectioning and index commands.
37852
37853 2007-07-13  Bruno Haible  <bruno@clisp.org>
37854
37855         New gnulib-tool option --more-symlinks.
37856         * gnulib-tool (func_usage): Document --more-symlinks.
37857         (do_copyrights): New variable.
37858         Recognize option --more-symlinks.
37859         (func_import): Don't add a copyright notice transform to
37860         sed_transform_lib_file if do_copyrights is empty.
37861
37862 2007-07-13  Bruno Haible  <bruno@clisp.org>
37863
37864         * lib/vasnprintf.c (decimal_point_char): Define also if
37865         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37866         && !NEED_PRINTF_DIRECTIVE_A.
37867         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37868         Gary V. Vaughan <gary@gnu.org>.
37869
37870 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37871
37872         * lib/inttypes_.h: Undo previous change, since it was fixed
37873         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37874
37875 2007-07-13  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37878         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37879
37880 2007-07-13  Jim Meyering  <jim@meyering.net>
37881
37882         df: Don't fail for Tru64's "file-on-file mount".
37883         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37884         so we fall through and use statfs instead.  Details here:
37885         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37886         Reported by Albert Chin.
37887
37888 2007-07-13  Bruno Haible  <bruno@clisp.org>
37889
37890         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37891         * modules/configmake (License): Likewise.
37892         * modules/gettext (License): Likewise.
37893         * modules/gettext-h (License): Likewise.
37894         * modules/include_next (License): Likewise.
37895         * modules/link-warning (License): Likewise.
37896         * modules/localcharset (License): Likewise.
37897         * modules/localename (License): Likewise.
37898         * modules/lock (License): Likewise.
37899         * modules/relocatable-lib-lgpl (License): Likewise.
37900         * modules/size_max (License): Likewise.
37901         * modules/vasnprintf (License): Likewise.
37902         * modules/wchar (License): Likewise.
37903         * modules/xsize (License): Likewise.
37904
37905 2007-07-13  Bruno Haible  <bruno@clisp.org>
37906
37907         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37908         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37909
37910 2007-07-12  Bruno Haible  <bruno@clisp.org>
37911
37912         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37913         in the modules files.
37914
37915 2007-07-11  Karl Berry  <karl@gnu.org>
37916
37917         * MODULES.html.sh (func_module): use
37918          sed -e '\|^'"${includefile}"'$|d'
37919          instead of /.../d, to avoid errors on $includefile's containing /.
37920
37921 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37922
37923         * gnulib-tool (func_import): Avoid duplication of --avoid
37924         statements
37925         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37926         names to `_' in variable names.
37927
37928 2007-07-10  Eric Blake  <ebb9@byu.net>
37929
37930         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37931         * NEWS: Document this change.
37932
37933 2007-07-08  Bruno Haible  <bruno@clisp.org>
37934
37935         Update to Unicode 5.0.
37936         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37937         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37938         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37939         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37940         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37941         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37942         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37943         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37944         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37945         U+10A3F, U+1D242..U+1D244.
37946         (nonspacing_table_ind): Update.
37947         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37948         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37949
37950 2007-07-08  Bruno Haible  <bruno@clisp.org>
37951
37952         Update to Unicode 5.0.
37953         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37954         code transform. Extend the name index field of unicode_name_to_code and
37955         unicode_code_to_name from 16 to 24 bits.
37956         * lib/uniname/uniname.c (unicode_character_name,
37957         unicode_name_character): Add the range 0x12xxx to the code transform.
37958         * lib/uniname/uninames.h: Regenerated.
37959         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
37960
37961 2007-07-07  Bruno Haible  <bruno@clisp.org>
37962
37963         * modules/wcwidth-tests: New file.
37964         * tests/test-wcwidth.c: New file.
37965
37966         Work around MacOS X wcwidth() bug.
37967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
37968         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
37969         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
37970         original wcwidth in non-UTF-8 locales.
37971         * modules/wcwidth (Depends-on): Add localcharset, streq,
37972         uniwidth/width.
37973         * doc/functions/wcwidth.texi: Update.
37974
37975 2007-07-07  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
37978         (wcwidth): New declaration.
37979         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
37980         macros.
37981         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
37982         here. Prepare for creating <wchar.h> unconditionally.
37983         * modules/wchar (Depends-on): Add link-warning.
37984         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
37985         REPLACE_WCWIDTH, and GL_LINK_WARNING.
37986         * lib/wcwidth.h: Remove file.
37987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
37988         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
37989         * modules/wcwidth (Files): Remove lib/wcwidth.h.
37990         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
37991         (Include): Replace wcwidth.h with <wchar.h>.
37992         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
37993         * lib/mbchar.h: Don't include wcwidth.h.
37994         * lib/mbswidth.c: Likewise.
37995         * NEWS: Mention the change.
37996
37997 2007-07-07  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38000         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38001         definition with an external declaration.
38002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38003         defined as a function. Remove AC_C_INLINE requirement.
38004         * modules/wcwidth (Files): Add lib/wcwidth.c.
38005         (Makefile.am): Remove redundant statement.
38006
38007 2007-07-07  Bruno Haible  <bruno@clisp.org>
38008
38009         * MODULES.html.sh (Unicode string functions): Add the new modules.
38010
38011         * tests/uniwidth/test-u32-strwidth.c: New file.
38012         * modules/uniwidth/u32-strwidth-tests: New file.
38013
38014         * lib/uniwidth/u32-strwidth.c: New file.
38015         * modules/uniwidth/u32-strwidth: New file.
38016
38017         * tests/uniwidth/test-u16-strwidth.c: New file.
38018         * modules/uniwidth/u16-strwidth-tests: New file.
38019
38020         * lib/uniwidth/u16-strwidth.c: New file.
38021         * modules/uniwidth/u16-strwidth: New file.
38022
38023         * tests/uniwidth/test-u8-strwidth.c: New file.
38024         * modules/uniwidth/u8-strwidth-tests: New file.
38025
38026         * lib/uniwidth/u8-strwidth.c: New file.
38027         * modules/uniwidth/u8-strwidth: New file.
38028
38029         * tests/uniwidth/test-u32-width.c: New file.
38030         * modules/uniwidth/u32-width-tests: New file.
38031
38032         * lib/uniwidth/u32-width.c: New file.
38033         * modules/uniwidth/u32-width: New file.
38034
38035         * tests/uniwidth/test-u16-width.c: New file.
38036         * modules/uniwidth/u16-width-tests: New file.
38037
38038         * lib/uniwidth/u16-width.c: New file.
38039         * modules/uniwidth/u16-width: New file.
38040
38041         * tests/uniwidth/test-u8-width.c: New file.
38042         * modules/uniwidth/u8-width-tests: New file.
38043
38044         * lib/uniwidth/u8-width.c: New file.
38045         * modules/uniwidth/u8-width: New file.
38046
38047         * tests/uniwidth/test-uc_width.c: New file.
38048         * modules/uniwidth/width-tests: New file.
38049
38050         * lib/uniwidth/width.c: New file, from GNU libiconv.
38051         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38052         * modules/uniwidth/width: New file.
38053
38054         * lib/uniwidth.h: New file, from GNU libiconv.
38055         * modules/uniwidth/base: New file.
38056
38057 2007-07-07  Bruno Haible  <bruno@clisp.org>
38058
38059         * lib/uniname.h: New file, from GNU gettext.
38060         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38061         * lib/uniname/uninames.h: New file, from GNU gettext.
38062         * lib/uniname/uniname.c: New file, from GNU gettext.
38063         * tests/uniname/test-uninames.sh: New file.
38064         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38065         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38066         * modules/uniname/base: New file.
38067         * modules/uniname/uniname: New file.
38068         * modules/uniname/uniname-tests: New file.
38069         * MODULES.html.sh (Unicode string functions): Add the new modules.
38070
38071 2007-07-06  Bruno Haible  <bruno@clisp.org>
38072
38073         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38074
38075 2007-07-06  Bruno Haible  <bruno@clisp.org>
38076
38077         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38078         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38079         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38080         include <sys/time.h>.
38081         Reported by Eric Blake.
38082
38083 2007-07-06  Eric Blake  <ebb9@byu.net>
38084
38085         Fix testing canonicalize on cygwin.
38086         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38087         Revert patch from 2007-06-19.
38088         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38089         canonicalize module is also in use.
38090         * tests/test-canonicalize.c: New file.
38091         * tests/test-canonicalize.sh: Likewise.
38092         * modules/canonicalize-tests: Likewise.
38093
38094 2007-07-06  Jim Meyering  <jim@meyering.net>
38095
38096         * lib/getugroups.c (getugroups): Detect getgrent failure.
38097         Adjust comment to reflect reality: this function may return -1.
38098
38099 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38100
38101         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38102         the new TP address.
38103         (usage): Fix typo
38104         (gnulib_mk): New variable.
38105
38106 2007-07-05  Jim Meyering  <jim@meyering.net>
38107
38108         Don't let endgrent clobber errno, no matter how improbable.
38109         * lib/getugroups.c (getugroups): Save and restore errno around
38110         endgrent call.
38111
38112         Close the group DB even when failing with 2^31 or more members.
38113         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38114
38115 2007-07-04  Jim Meyering  <jim@meyering.net>
38116
38117         * lib/getugroups.h: New file.
38118         * lib/getugroups.c: Include "getugroups.h".
38119         Remove uses of "register" keyword.
38120         Move local variable, "cp", down into scope where used.
38121         Give "username" parameter the "const" attribute.
38122         * modules/getugroups (Files): Add lib/getugroups.h
38123
38124 2007-07-04  Karl Berry  <karl@gnu.org>
38125
38126         * MODULES.html.sh (func_all_modules): Complete rename of
38127         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38128
38129 2007-07-02  Bruno Haible  <bruno@clisp.org>
38130
38131         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38132         mode, when inttypes.h comes from gnulib.
38133         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38134
38135 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38136
38137         * NEWS: Mention lgpl module name change.
38138
38139         * modules/lgpl-2.1: Renamed from lgpl.
38140
38141         * NEWS: Mention gpl module name change.
38142
38143         * modules/gpl-3.0: New file, based on gpl-2.0.
38144
38145         * modules/gpl-2.0: Renamed from gpl.
38146
38147         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38148         doc/gpl-2.0.texi.
38149
38150 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38151
38152         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38153         #define __STDC_LIMIT_MACROS temporarily while including
38154         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38155         Problem reported by Joel E. Denny in
38156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38157
38158 2007-07-01  Bruno Haible  <bruno@clisp.org>
38159
38160         * lib/unistdio.h: New file.
38161         * lib/unistdio/u-asnprintf.h: New file.
38162         * lib/unistdio/u-asprintf.h: New file.
38163         * lib/unistdio/u-printf-args.c: New file.
38164         * lib/unistdio/u-printf-args.h: New file.
38165         * lib/unistdio/u-printf-parse.h: New file.
38166         * lib/unistdio/u-snprintf.h: New file.
38167         * lib/unistdio/u-sprintf.h: New file.
38168         * lib/unistdio/u-vasprintf.h: New file.
38169         * lib/unistdio/u-vsnprintf.h: New file.
38170         * lib/unistdio/u-vsprintf.h: New file.
38171         * lib/unistdio/ulc-asnprintf.c: New file.
38172         * lib/unistdio/ulc-asprintf.c: New file.
38173         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38174         * lib/unistdio/ulc-printf-parse.c: New file.
38175         * lib/unistdio/ulc-snprintf.c: New file.
38176         * lib/unistdio/ulc-sprintf.c: New file.
38177         * lib/unistdio/ulc-vasnprintf.c: New file.
38178         * lib/unistdio/ulc-vasprintf.c: New file.
38179         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38180         * lib/unistdio/ulc-vsnprintf.c: New file.
38181         * lib/unistdio/ulc-vsprintf.c: New file.
38182         * lib/unistdio/u8-asnprintf.c: New file.
38183         * lib/unistdio/u8-asprintf.c: New file.
38184         * lib/unistdio/u8-printf-parse.c: New file.
38185         * lib/unistdio/u8-snprintf.c: New file.
38186         * lib/unistdio/u8-sprintf.c: New file.
38187         * lib/unistdio/u8-vasnprintf.c: New file.
38188         * lib/unistdio/u8-vasprintf.c: New file.
38189         * lib/unistdio/u8-vsnprintf.c: New file.
38190         * lib/unistdio/u8-vsprintf.c: New file.
38191         * lib/unistdio/u8-u8-asnprintf.c: New file.
38192         * lib/unistdio/u8-u8-asprintf.c: New file.
38193         * lib/unistdio/u8-u8-snprintf.c: New file.
38194         * lib/unistdio/u8-u8-sprintf.c: New file.
38195         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38196         * lib/unistdio/u8-u8-vasprintf.c: New file.
38197         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38198         * lib/unistdio/u8-u8-vsprintf.c: New file.
38199         * lib/unistdio/u16-asnprintf.c: New file.
38200         * lib/unistdio/u16-asprintf.c: New file.
38201         * lib/unistdio/u16-printf-parse.c: New file.
38202         * lib/unistdio/u16-snprintf.c: New file.
38203         * lib/unistdio/u16-sprintf.c: New file.
38204         * lib/unistdio/u16-vasnprintf.c: New file.
38205         * lib/unistdio/u16-vasprintf.c: New file.
38206         * lib/unistdio/u16-vsnprintf.c: New file.
38207         * lib/unistdio/u16-vsprintf.c: New file.
38208         * lib/unistdio/u16-u16-asnprintf.c: New file.
38209         * lib/unistdio/u16-u16-asprintf.c: New file.
38210         * lib/unistdio/u16-u16-snprintf.c: New file.
38211         * lib/unistdio/u16-u16-sprintf.c: New file.
38212         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38213         * lib/unistdio/u16-u16-vasprintf.c: New file.
38214         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38215         * lib/unistdio/u16-u16-vsprintf.c: New file.
38216         * lib/unistdio/u32-asnprintf.c: New file.
38217         * lib/unistdio/u32-asprintf.c: New file.
38218         * lib/unistdio/u32-printf-parse.c: New file.
38219         * lib/unistdio/u32-snprintf.c: New file.
38220         * lib/unistdio/u32-sprintf.c: New file.
38221         * lib/unistdio/u32-vasnprintf.c: New file.
38222         * lib/unistdio/u32-vasprintf.c: New file.
38223         * lib/unistdio/u32-vsnprintf.c: New file.
38224         * lib/unistdio/u32-vsprintf.c: New file.
38225         * lib/unistdio/u32-u32-asnprintf.c: New file.
38226         * lib/unistdio/u32-u32-asprintf.c: New file.
38227         * lib/unistdio/u32-u32-snprintf.c: New file.
38228         * lib/unistdio/u32-u32-sprintf.c: New file.
38229         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38230         * lib/unistdio/u32-u32-vasprintf.c: New file.
38231         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38232         * lib/unistdio/u32-u32-vsprintf.c: New file.
38233         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38234         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38235         * tests/unistdio/test-ulc-printf1.h: New file.
38236         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38237         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38238         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38239         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38240         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38241         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38242         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38243         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38244         * tests/unistdio/test-u8-asnprintf1.c: New file.
38245         * tests/unistdio/test-u8-asnprintf1.h: New file.
38246         * tests/unistdio/test-u8-printf1.h: New file.
38247         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38248         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38249         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38250         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38251         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38252         * tests/unistdio/test-u8-vasprintf1.c: New file.
38253         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38254         * tests/unistdio/test-u8-vsprintf1.c: New file.
38255         * tests/unistdio/test-u16-asnprintf1.c: New file.
38256         * tests/unistdio/test-u16-asnprintf1.h: New file.
38257         * tests/unistdio/test-u16-printf1.h: New file.
38258         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38259         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38260         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38261         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38262         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38263         * tests/unistdio/test-u16-vasprintf1.c: New file.
38264         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38265         * tests/unistdio/test-u16-vsprintf1.c: New file.
38266         * tests/unistdio/test-u32-asnprintf1.c: New file.
38267         * tests/unistdio/test-u32-asnprintf1.h: New file.
38268         * tests/unistdio/test-u32-printf1.h: New file.
38269         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38270         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38271         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38272         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38273         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38274         * tests/unistdio/test-u32-vasprintf1.c: New file.
38275         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38276         * tests/unistdio/test-u32-vsprintf1.c: New file.
38277         * modules/unistdio/base: New file.
38278         * modules/unistdio/u-printf-args: New file.
38279         * modules/unistdio/ulc-asnprintf: New file.
38280         * modules/unistdio/ulc-asprintf: New file.
38281         * modules/unistdio/ulc-fprintf: New file.
38282         * modules/unistdio/ulc-printf-parse: New file.
38283         * modules/unistdio/ulc-snprintf: New file.
38284         * modules/unistdio/ulc-sprintf: New file.
38285         * modules/unistdio/ulc-vasnprintf: New file.
38286         * modules/unistdio/ulc-vasprintf: New file.
38287         * modules/unistdio/ulc-vfprintf: New file.
38288         * modules/unistdio/ulc-vsnprintf: New file.
38289         * modules/unistdio/ulc-vsprintf: New file.
38290         * modules/unistdio/u8-asnprintf: New file.
38291         * modules/unistdio/u8-asprintf: New file.
38292         * modules/unistdio/u8-printf-parse: New file.
38293         * modules/unistdio/u8-snprintf: New file.
38294         * modules/unistdio/u8-sprintf: New file.
38295         * modules/unistdio/u8-vasnprintf: New file.
38296         * modules/unistdio/u8-vasprintf: New file.
38297         * modules/unistdio/u8-vsnprintf: New file.
38298         * modules/unistdio/u8-vsprintf: New file.
38299         * modules/unistdio/u8-u8-asnprintf: New file.
38300         * modules/unistdio/u8-u8-asprintf: New file.
38301         * modules/unistdio/u8-u8-snprintf: New file.
38302         * modules/unistdio/u8-u8-sprintf: New file.
38303         * modules/unistdio/u8-u8-vasnprintf: New file.
38304         * modules/unistdio/u8-u8-vasprintf: New file.
38305         * modules/unistdio/u8-u8-vsnprintf: New file.
38306         * modules/unistdio/u8-u8-vsprintf: New file.
38307         * modules/unistdio/u16-asnprintf: New file.
38308         * modules/unistdio/u16-asprintf: New file.
38309         * modules/unistdio/u16-printf-parse: New file.
38310         * modules/unistdio/u16-snprintf: New file.
38311         * modules/unistdio/u16-sprintf: New file.
38312         * modules/unistdio/u16-vasnprintf: New file.
38313         * modules/unistdio/u16-vasprintf: New file.
38314         * modules/unistdio/u16-vsnprintf: New file.
38315         * modules/unistdio/u16-vsprintf: New file.
38316         * modules/unistdio/u16-u16-asnprintf: New file.
38317         * modules/unistdio/u16-u16-asprintf: New file.
38318         * modules/unistdio/u16-u16-snprintf: New file.
38319         * modules/unistdio/u16-u16-sprintf: New file.
38320         * modules/unistdio/u16-u16-vasnprintf: New file.
38321         * modules/unistdio/u16-u16-vasprintf: New file.
38322         * modules/unistdio/u16-u16-vsnprintf: New file.
38323         * modules/unistdio/u16-u16-vsprintf: New file.
38324         * modules/unistdio/u32-asnprintf: New file.
38325         * modules/unistdio/u32-asprintf: New file.
38326         * modules/unistdio/u32-printf-parse: New file.
38327         * modules/unistdio/u32-snprintf: New file.
38328         * modules/unistdio/u32-sprintf: New file.
38329         * modules/unistdio/u32-vasnprintf: New file.
38330         * modules/unistdio/u32-vasprintf: New file.
38331         * modules/unistdio/u32-vsnprintf: New file.
38332         * modules/unistdio/u32-vsprintf: New file.
38333         * modules/unistdio/u32-u32-asnprintf: New file.
38334         * modules/unistdio/u32-u32-asprintf: New file.
38335         * modules/unistdio/u32-u32-snprintf: New file.
38336         * modules/unistdio/u32-u32-sprintf: New file.
38337         * modules/unistdio/u32-u32-vasnprintf: New file.
38338         * modules/unistdio/u32-u32-vasprintf: New file.
38339         * modules/unistdio/u32-u32-vsnprintf: New file.
38340         * modules/unistdio/u32-u32-vsprintf: New file.
38341         * modules/unistdio/ulc-asnprintf-tests: New file.
38342         * modules/unistdio/ulc-vasnprintf-tests: New file.
38343         * modules/unistdio/ulc-vasprintf-tests: New file.
38344         * modules/unistdio/ulc-vsnprintf-tests: New file.
38345         * modules/unistdio/ulc-vsprintf-tests: New file.
38346         * modules/unistdio/u8-asnprintf-tests: New file.
38347         * modules/unistdio/u8-vasnprintf-tests: New file.
38348         * modules/unistdio/u8-vasprintf-tests: New file.
38349         * modules/unistdio/u8-vsnprintf-tests: New file.
38350         * modules/unistdio/u8-vsprintf-tests: New file.
38351         * modules/unistdio/u16-asnprintf-tests: New file.
38352         * modules/unistdio/u16-vasnprintf-tests: New file.
38353         * modules/unistdio/u16-vasprintf-tests: New file.
38354         * modules/unistdio/u16-vsnprintf-tests: New file.
38355         * modules/unistdio/u16-vsprintf-tests: New file.
38356         * modules/unistdio/u32-asnprintf-tests: New file.
38357         * modules/unistdio/u32-vasnprintf-tests: New file.
38358         * modules/unistdio/u32-vasprintf-tests: New file.
38359         * modules/unistdio/u32-vsnprintf-tests: New file.
38360         * modules/unistdio/u32-vsprintf-tests: New file.
38361         * MODULES.html.sh (Unicode string functions): Add the new modules.
38362
38363 2007-07-01  Bruno Haible  <bruno@clisp.org>
38364
38365         * lib/sprintf.c (sprintf): Limit the available length estimation,
38366         to avoid address wraparound.
38367         * lib/vsprintf.c (vsprintf): Likewise.
38368         * modules/sprintf-posix (Dependencies): Add stdint.
38369         * modules/vsprintf-posix (Dependencies): Likewise.
38370
38371 2007-07-01  Bruno Haible  <bruno@clisp.org>
38372
38373         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38374         Windows PATH as well. Conservative double-quoting. Comments.
38375
38376 2007-07-01  Bruno Haible  <bruno@clisp.org>
38377             Eric Blake  <ebb9@byu.net>
38378             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38379
38380         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38381         empty components in $PATH, denoting '.'.
38382
38383 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38384
38385         * gnulib-tool: Fix indentation.
38386         (func_create_megatestdir): Likewise.
38387         Report by Bruno Haible.
38388
38389 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38390
38391         Sync from Automake.
38392         * build-aux/gnupload: Fix shell portability issues with for loops.
38393         Report by Karl Berry.
38394
38395 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38396
38397         * build-aux/maint.mk (POURL): Use translationproject.org.
38398
38399 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38400             Bruno Haible  <bruno@clisp.org>
38401
38402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38403         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38404         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38405         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38406         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38407
38408 2007-06-27  Bruno Haible  <bruno@clisp.org>
38409
38410         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38411         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38412
38413 2007-06-26  Karl Berry  <karl@gnu.org>
38414
38415         * MODULES.html.sh: remove xreadlink-with-size.
38416
38417 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38418
38419         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38420         method that I hope also handles the double-include problem noted
38421         by Bruno Haible in
38422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38423
38424 2007-06-23  Bruno Haible  <bruno@clisp.org>
38425
38426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38427         Don't let the 'mostlyclean' target fail if the last subdirectory could
38428         not be removed.
38429         Reported by Karl Berry.
38430
38431 2007-06-23  Bruno Haible  <bruno@clisp.org>
38432
38433         * gnulib-tool (echo): Add a speedier workaround for ksh.
38434         * tests/test-echo.sh: Likewise.
38435
38436 2007-06-23  Bruno Haible  <bruno@clisp.org>
38437
38438         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38439         * tests/test-echo.sh: Likewise.
38440
38441 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38442
38443         * gnulib-tool (IFS): Initialize early, so we don't set it to
38444         empty later.
38445         (self_abspathname): Rewrite algorithm to set it, reindent.
38446         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38447         (func_create_megatestdir): Merge some sed scripts.
38448
38449 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38450
38451         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38452         exposed by Sun Studio 11 cc on Solaris 8.
38453
38454 2007-06-22  Bruno Haible  <bruno@clisp.org>
38455
38456         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38457         backslashes.
38458         * tests/test-echo.sh: New file.
38459
38460 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38461
38462         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38463         simplify `sed_replace_build_aux' scripts, they are portable but
38464         echoing them with `echo' is not.
38465         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38466
38467 2007-06-21  Karl Berry  <karl@gnu.org>
38468
38469         * config/srclist.txt: guess we can't handle the licenses via
38470         srclist at the moment.
38471
38472 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38473
38474         * MODULES.html.sh: Add include_next.
38475         * modules/include_next: New file.
38476
38477 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38478
38479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38480         INCLUDE_NEXT.
38481         (gl_CHECK_NEXT_HEADERS): New macro.
38482         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38483         the obsolescent gl_ABSOLUTE_HEADER.
38484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38485         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38486         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38487         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38488         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38489         * m4/math_h.m4 (gl_MATH_H): Likewise.
38490         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38491         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38492         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38493         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38494         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38495         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38496         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38500         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38501         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38502         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38503         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38504         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38505         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38506         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38507         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38508         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38509         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38510         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38511         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38512         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38513         * lib/float_.h: Likewise.
38514         * lib/inttypes_.h: Likewise.
38515         * lib/math_.h: Likewise.
38516         * lib/search_.h: Likewise.
38517         * lib/signal_.h: Likewise.
38518         * lib/stdint_.h: Likewise.
38519         * lib/stdio_.h: Likewise.
38520         * lib/stdlib_.h: Likewise.
38521         * lib/string_.h: Likewise.
38522         * lib/sys_stat_.h: Likewise.
38523         * lib/sys_time_.h: Likewise.
38524         * lib/time_.h: Likewise.
38525         * lib/unistd_.h: Likewise.
38526         * lib/wchar_.h: Likewise.
38527         * lib/wctype_.h: Likewise.
38528         * lib/dirent_.h: Likewise.
38529         * lib/iconv_.h: Likewise.
38530         * lib/locale_.h: Likewise.
38531         * lib/netinet_in_.h: Likewise.
38532         * lib/sys_select_.h: Likewise.
38533         * lib/sys_socket_.h: Likewise.
38534         * lib/sysexits_.h: Likewise.
38535         * modules/fcntl (Depends-on): Depend on include_next, not
38536         absolute_header.
38537         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38538         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38539         * modules/fchdir: Likewise.
38540         * modules/float: Likewise.
38541         * modules/iconv_open: Likewise.
38542         * modules/inttypes: Likewise.
38543         * modules/locale: Likewise.
38544         * modules/math: Likewise.
38545         * modules/netinet_in: Likewise.
38546         * modules/search: Likewise.
38547         * modules/signal: Likewise.
38548         * modules/stdint: Likewise.
38549         * modules/stdio: Likewise.
38550         * modules/stdlib: Likewise.
38551         * modules/string: Likewise.
38552         * modules/sys_select: Likewise.
38553         * modules/sys_socket: Likewise.
38554         * modules/sys_stat: Likewise.
38555         * modules/sys_time: Likewise.
38556         * modules/sysexits: Likewise.
38557         * modules/time: Likewise.
38558         * modules/unistd: Likewise.
38559         * modules/wchar: Likewise.
38560         * modules/wctype: Likewise.
38561         * modules/sys_stat: Change maintainer to "all".
38562         * modules/unistd: Likewise.
38563
38564 2007-06-20  Karl Berry  <karl@gnu.org>
38565
38566         * config/srclist.txt: track www changes in license files.
38567
38568 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38569
38570         * build-aux/bootstrap: Remove stray dot.
38571         Make sure build_aux settings are honored when linking
38572         gnulib_extra_files.
38573
38574 2007-06-19  Eric Blake  <ebb9@byu.net>
38575
38576         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38577         Allow compilation on cygwin.
38578
38579 2007-06-19  Jim Meyering  <jim@meyering.net>
38580
38581         xreadlink-with-size: Remove module.  No longer used.
38582         Ex-callers now use xreadlink or mreadlink-with-size.
38583         * modules/xreadlink-with-size: Remove module.
38584         * lib/xreadlink-with-size.c: Remove file.
38585         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38586         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38587         just before the function definition *is* accurate.
38588
38589         Eliminate one way canonicalize_filename_mode could exit.
38590         * lib/canonicalize.c (canonicalize_filename_mode):
38591         Use mreadlink_with_size, not xreadlink_with_size.
38592
38593 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38594
38595         Detect porting problems to FreeBSD/arm, which has time_t wider than
38596         long int.  Original problem reported for GNU diff by Xin Li in
38597         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38598         * modules/getdate (Depends-on): Add intprops, verify.
38599         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38600         is an integer type no wider than long int.
38601
38602 2007-06-18  Jim Meyering  <jim@meyering.net>
38603
38604         New module: mreadlink-with-size.
38605         * MODULES.html.sh: Add mreadlink-with-size.
38606         * modules/mreadlink-with-size: New module
38607         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38608         not xreadlink-with-size.
38609         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38610
38611 2007-06-16  Bruno Haible  <bruno@clisp.org>
38612
38613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38614         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38615         Reported by Gary V. Vaughan <gary@gnu.org>.
38616
38617 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38618
38619         Revamp lchown so that it lives in unistd.h where it belongs.
38620         * lib/lchown.h: Remove.
38621         * lib/dirchownmod.c: Don't include lib/lchown.h.
38622         * lib/fchownat.c: Likewise.
38623         * lib/openat.c: Likewise.
38624         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38625         does not follow symlinks.
38626         (EOPNOTSUPP): Define if not defined.
38627         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38628         is defined to 0.
38629         (lchown): New decl.
38630         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38631         Do not check for lchown decl.
38632         Set REPLACE_LCHOWN.
38633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38634         REPLACE_LCHOWN.
38635         * modules/chown: Make it clear it follows symlinks.
38636         * modules/lchown: Make it clear it doesn't follow symlinks.
38637         (Files): Remove lib/lchown.h
38638         (Depends-on): Add unistd.
38639         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38640         (Include): Include <unistd.h>, not "lchown.h".
38641         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38642         REPLACE_LCHOWN.
38643
38644 2007-06-15  Jim Meyering  <jim@meyering.net>
38645
38646         Change license (GPL to LGPL) of fsusage and dependents.
38647         * modules/fsusage (License): Change to LGPL.
38648         * modules/full-read (License): Likewise.
38649         * modules/full-write (License): Likewise.
38650         * modules/safe-read (License): Likewise.
38651         * modules/safe-write (License): Likewise.
38652
38653 2007-06-14  Ben Pfaff  <blp@gnu.org>
38654
38655         Missing part of allocsa -> malloca transition.
38656         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38657         gl_MALLOCA.
38658
38659 2007-06-12  Bruno Haible  <bruno@clisp.org>
38660
38661         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38662         to ia64, x86_64, i386.
38663         Reported by Eric Blake.
38664
38665 2007-06-12  Bruno Haible  <bruno@clisp.org>
38666
38667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38668         cross-compiling to x86_64.
38669
38670 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38673         glitch reported by Ralf Wildenhues in
38674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38675
38676         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38677         Vin Shelton.
38678
38679 2007-06-11  Bruno Haible  <bruno@clisp.org>
38680
38681         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38682         replacement string.
38683         Reported by Eric Blake.
38684
38685 2007-06-10  Bruno Haible  <bruno@clisp.org>
38686
38687         Prepare vasnprintf code for use with Unicode strings.
38688         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38689         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38690         TYPE_U32_STRING.
38691         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38692         a_u32_string variants.
38693         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38694         * lib/printf-args.c: Don't include config.h and the specification
38695         header if PRINTF_FETCHARGS is already defined.
38696         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38697         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38698         TYPE_U16_STRING, TYPE_U32_STRING.
38699         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38700         u16_directive, u16_directives, u32_directive, u32_directives): New
38701         types.
38702         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38703         New declarations.
38704         * lib/printf-parse.c: Don't include config.h and the specification
38705         header if PRINTF_PARSE is already defined. Eliminate the set of
38706         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38707         them now. Include c-ctype.h.
38708         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38709         directive and CHAR_T_ONLY_ASCII.
38710         * lib/vasnprintf.c: Don't include config.h and the specification header
38711         if VASNPRINTF is already defined.
38712         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38713         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38714         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38715         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38716         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38717         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38718         code accordingly.
38719         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38720         pad_ourselves also in this case, with the 'c' and 's' directives, and
38721         with a different notion of "width".
38722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38723
38724 2007-06-10  Bruno Haible  <bruno@clisp.org>
38725
38726         * modules/unistr/u32-mbsnlen: New file.
38727         * lib/unistr/u32-mbsnlen.c: New file.
38728
38729         * modules/unistr/u16-mbsnlen: New file.
38730         * lib/unistr/u16-mbsnlen.c: New file.
38731
38732         * modules/unistr/u8-mbsnlen: New file.
38733         * lib/unistr/u8-mbsnlen.c: New file.
38734
38735         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38736         declarations.
38737
38738 2007-06-10  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/string_.h (mbsnlen): New declaration.
38741         * lib/mbsnlen.c: New file.
38742         * m4/mbsnlen.m4: New file.
38743         * modules/mbsnlen: New file.
38744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38745         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38746         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38747
38748 2007-06-10  Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38751
38752 2007-06-10  Bruno Haible  <bruno@clisp.org>
38753
38754         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38755         * lib/mbuiter.h: Likewise.
38756
38757 2007-06-10  Bruno Haible  <bruno@clisp.org>
38758
38759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38760         declaration.
38761
38762 2007-06-10  Karl Berry  <karl@gnu.org>
38763
38764         * config/srclist.txt: remove gettext entries, Bruno prefers
38765         to update individually.
38766
38767 2007-06-10  Bruno Haible  <bruno@clisp.org>
38768
38769         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38770         'maxlen'. Ensure only length + width bytes are allocated, not
38771         length + 1 + width.
38772
38773 2007-06-09  Bruno Haible  <bruno@clisp.org>
38774
38775         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38776         (CHAR_T): Remove macro.
38777         (VASNPRINTF): Update.
38778
38779 2007-06-09  Bruno Haible  <bruno@clisp.org>
38780
38781         * MODULES.html.sh (Unicode string functions): Add the new modules.
38782
38783         * modules/uniconv/u32-conv-to-enc: New file.
38784         * lib/uniconv/u32-conv-to-enc.c: New file.
38785         * modules/uniconv/u32-conv-to-enc-tests: New file.
38786         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38787
38788         * modules/uniconv/u16-conv-to-enc: New file.
38789         * lib/uniconv/u16-conv-to-enc.c: New file.
38790         * lib/uniconv/u-conv-to-enc.h: New file.
38791         * modules/uniconv/u16-conv-to-enc-tests: New file.
38792         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38793
38794         * modules/uniconv/u8-conv-to-enc: New file.
38795         * lib/uniconv/u8-conv-to-enc.c: New file.
38796         * modules/uniconv/u8-conv-to-enc-tests: New file.
38797         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38798
38799         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38800         u32_conv_to_encoding): New declarations.
38801
38802 2007-06-09  Bruno Haible  <bruno@clisp.org>
38803
38804         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38805
38806 2007-06-09  Bruno Haible  <bruno@clisp.org>
38807
38808         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38809         * modules/malloca: Renamed from modules/allocsa, updated.
38810         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38811         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38812         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38813         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38814         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38815         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38816         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38817         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38818         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38819         * modules/c-strcasestr (Depends-on): Update.
38820         * lib/c-strcasestr.c: Update.
38821         * modules/c-strstr (Depends-on): Update.
38822         * lib/c-strstr.c: Update.
38823         * modules/canonicalize-lgpl (Depends-on): Update.
38824         * lib/canonicalize-lgpl.c: Update.
38825         * modules/clean-temp (Depends-on): Update.
38826         * lib/clean-temp.c: Update.
38827         * modules/csharpcomp (Depends-on): Update.
38828         * lib/csharpcomp.c: Update.
38829         * modules/csharpexec (Depends-on): Update.
38830         * lib/csharpexec.c: Update.
38831         * modules/javacomp (Depends-on): Update.
38832         * lib/javacomp.c: Update.
38833         * modules/javaexec (Depends-on): Update.
38834         * lib/javaexec.c: Update.
38835         * modules/mbscasestr (Depends-on): Update.
38836         * lib/mbscasestr.c: Update.
38837         * modules/mbsstr (Depends-on): Update.
38838         * lib/mbsstr.c: Update.
38839         * modules/setenv (Depends-on): Update.
38840         * lib/setenv.c: Update.
38841         * modules/strcasestr (Depends-on): Update.
38842         * lib/strcasestr.c: Update.
38843         * modules/striconveha (Depends-on): Update.
38844         * lib/striconveha.c: Update.
38845         * modules/relocatable-prog-wrapper (Files): Update.
38846         * lib/relocwrapper.c: Update.
38847         * build-aux/install-reloc: Update.
38848         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38849
38850 2007-06-08  Bruno Haible  <bruno@clisp.org>
38851
38852         Port to uClibc.
38853         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38854         * lib/fpurge.c (fpurge): Likewise.
38855         * lib/freading.c (freading): Likewise.
38856         * lib/fseeko.c (rpl_fseeko): Likewise.
38857         * lib/fseterr.c (fseterr): Likewise.
38858         * lib/fwriting.c (fwriting): Likewise.
38859         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38860
38861 2007-06-08  Bruno Haible  <bruno@clisp.org>
38862
38863         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38864         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38865         * modules/gettext (Files): Add m4/intlmacosx.m4.
38866
38867 2007-06-07  Bruno Haible  <bruno@clisp.org>
38868
38869         * modules/localename-tests: New file.
38870         * tests/test-localename.c: New file.
38871
38872         New module 'localename'.
38873         * lib/localename.h: New file.
38874         * lib/localename.c: New file, from GNU gettext.
38875         * m4/localename.m4: New file.
38876         * modules/localename: New file.
38877
38878 2007-06-07  Bruno Haible  <bruno@clisp.org>
38879
38880         Work around the lack of <wchar.h> on some builds of uClibc.
38881         * doc/headers/wchar.texi: Update.
38882         * lib/wchar_.h: Include <wchar.h> only if it exists.
38883         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38884         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38885         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38886         doesn't exist.
38887         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38888         * modules/mbfile (Depends-on): Add wchar.
38889         * modules/mbiter (Depends-on): Likewise.
38890         * modules/mbuiter (Depends-on): Likewise.
38891         Reported by Simon Josefsson.
38892
38893 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38894
38895         Work around problem reported by Steven M. Schweda in
38896         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38897         Tru64 5.1B with the Compaq compiler environment installed declares
38898         an 'isblank' function but does not define it in the C library.
38899         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38900         * lib/regex_internal.h (isblank): Likewise.
38901         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38902         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38903
38904 2007-06-05  Bruno Haible  <bruno@clisp.org>
38905
38906         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38907         ia64.
38908         * modules/printf-safe: New file.
38909         * modules/fprintf-posix (Depends-on): Add printf-safe.
38910         * modules/printf-posix (Depends-on): Likewise.
38911         * modules/snprintf-posix (Depends-on): Likewise.
38912         * modules/sprintf-posix (Depends-on): Likewise.
38913         * modules/vasnprintf-posix (Depends-on): Likewise.
38914         * modules/vasprintf-posix (Depends-on): Likewise.
38915         * modules/vfprintf-posix (Depends-on): Likewise.
38916         * modules/vprintf-posix (Depends-on): Likewise.
38917         * modules/vsnprintf-posix (Depends-on): Likewise.
38918         * modules/vsprintf-posix (Depends-on): Likewise.
38919         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38920         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38921         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38922         "no" on i386, x86_64, ia64.
38923         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38924         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38925         on i386, x86_64, ia64.
38926         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38927         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38928         on i386, x86_64, ia64.
38929         * tests/test-vasnprintf-posix.c: Include float.h.
38930         (LDBL80_WORDS): New macro.
38931         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38932         on i386, x86_64, ia64.
38933         * tests/test-vasprintf-posix.c: Include float.h.
38934         (LDBL80_WORDS): New macro.
38935         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38936         on i386, x86_64, ia64.
38937         * tests/test-snprintf-posix.c: Include float.h.
38938         * tests/test-sprintf-posix.c: Likewise.
38939         * tests/test-vsnprintf-posix.c: Likewise.
38940         * tests/test-vsprintf-posix.c: Likewise.
38941
38942 2007-06-05  Bruno Haible  <bruno@clisp.org>
38943
38944         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38945         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38946         non-IEEE numbers on i386, x86_64, ia64.
38947         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38948         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38949         * tests/test-isnanl.h: Include float.h.
38950         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38951
38952 2007-06-05  Bruno Haible  <bruno@clisp.org>
38953
38954         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38955         also the %a / %A. Handle the %a / %A code before this extra handling.
38956
38957 2007-06-05  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
38960         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
38961
38962 2007-06-05  Bruno Haible  <bruno@clisp.org>
38963
38964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
38965         typo in variable name.
38966
38967 2007-06-05  Eric Blake  <ebb9@byu.net>
38968
38969         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
38970         Reported by Simon Josefsson.
38971
38972 2007-06-04  Bruno Haible  <bruno@clisp.org>
38973
38974         Avoid test failures on some PowerPC platforms.
38975         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
38976         Define differently for PowerPC.
38977         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
38978         Reported by Gary V. Vaughan <gary@gnu.org>.
38979
38980 2007-06-02  Bruno Haible  <bruno@clisp.org>
38981
38982         Fix test-stdint failure on FreeBSD/ia64.
38983         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
38984         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
38985         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
38986         * doc/headers/stdint.texi: Update.
38987
38988 2007-06-01  Bruno Haible  <bruno@clisp.org>
38989
38990         * tests/test-binary-io.c (main): Pass a third argument to open().
38991         Reported by Gary V. Vaughan <gary@gnu.org>.
38992
38993 2007-06-01  Bruno Haible  <bruno@clisp.org>
38994
38995         * doc/functions/frexpl.texi: Update for mingw.
38996
38997 2007-06-01  Bruno Haible  <bruno@clisp.org>
38998
38999         * tests/test-lseek.c (main): Disable test of errno for invalid third
39000         argument.
39001         * doc/functions/lseek.texi: Update.
39002         Reported by Gary V. Vaughan <gary@gnu.org>.
39003
39004 2007-05-28  Bruno Haible  <bruno@clisp.org>
39005
39006         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39007
39008 2007-05-31  Eric Blake  <ebb9@byu.net>
39009
39010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39011         cross compiling.
39012
39013 2007-05-30  Eric Blake  <ebb9@byu.net>
39014         and Bruno Haible  <bruno@clisp.org>
39015
39016         Work around mingw test failures exposed by m4-1.4.9b.
39017         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39018         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39019         moment.
39020
39021 2007-05-30  Bruno Haible  <bruno@clisp.org>
39022
39023         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39024         assuming that they are closed. Needed on HP-UX 11.
39025
39026 2007-05-29  Bruno Haible  <bruno@clisp.org>
39027
39028         Fix a problem with #include_next.
39029         * lib/dirent_.h: Split the double-inclusion guard.
39030         * lib/fcntl_.h: Likewise.
39031         * lib/float_.h: Likewise.
39032         * lib/iconv_.h: Likewise.
39033         * lib/inttypes_.h: Likewise.
39034         * lib/locale_.h: Likewise.
39035         * lib/math_.h: Likewise.
39036         * lib/netinet_in_.h: Likewise.
39037         * lib/search_.h: Likewise.
39038         * lib/signal_.h: Likewise.
39039         * lib/stdint_.h: Likewise.
39040         * lib/stdio_.h: Likewise.
39041         * lib/stdlib_.h: Likewise.
39042         * lib/string_.h: Likewise.
39043         * lib/sys_select_.h: Likewise.
39044         * lib/sys_socket_.h: Likewise.
39045         * lib/sys_stat_.h: Likewise.
39046         * lib/sys_time_.h: Likewise.
39047         * lib/sysexits_.h: Likewise.
39048         * lib/time_.h: Likewise.
39049         * lib/unistd_.h: Likewise.
39050         * lib/wchar_.h: Likewise.
39051         * lib/wctype_.h: Likewise.
39052
39053 2007-05-29  Bruno Haible  <bruno@clisp.org>
39054
39055         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39056         for the moment.
39057
39058 2007-05-29  Bruno Haible  <bruno@clisp.org>
39059
39060         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39061         invocation.
39062         Reported by Eric Blake.
39063
39064 2007-05-29  Bruno Haible  <bruno@clisp.org>
39065
39066         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39067         compiling case.
39068
39069 2007-05-29  Eric Blake  <ebb9@byu.net>
39070             Bruno Haible  <bruno@clisp.org>
39071
39072         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39073         cross compiles.
39074
39075 2007-05-28  Eric Blake  <ebb9@byu.net>
39076
39077         * modules/closein-tests (test_closein_LDADD): Support test on
39078         cygwin with libtool.
39079
39080 2007-05-28  Bruno Haible  <bruno@clisp.org>
39081
39082         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39083         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39084         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39085         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39086         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39087         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39088         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39089         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39090         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39091
39092 2007-05-28  Eric Blake  <ebb9@byu.net>
39093
39094         Unconditionally include <config.h> in unit tests.
39095         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39096         * tests/test-allocsa.c, tests/test-arcfour.c,
39097         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39098         tests/test-array_list.c, tests/test-array_oset.c,
39099         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39100         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39101         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39102         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39103         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39104         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39105         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39106         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39107         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39108         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39109         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39110         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39111         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39112         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39113         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39114         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39115         test-md5.c, test-memmem.c, test-printf-posix.c,
39116         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39117         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39118         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39119         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39120         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39121         test-vasnprintf-posix2.c, test-vasnprintf.c,
39122         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39123         test-vfprintf-posix.c, test-vprintf-posix.c,
39124         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39125         test-xvasprintf.c: Likewise.
39126
39127 2007-05-28  Bruno Haible  <bruno@clisp.org>
39128
39129         * gnulib-tool (func_import): Remember the --with-tests command-line
39130         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39131         Reported by Eric Blake.
39132
39133 2007-05-28  Bruno Haible  <bruno@clisp.org>
39134
39135         * modules/ftell-tests: New file.
39136         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39137         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39138
39139         * lib/ftell.c: New file.
39140         * modules/ftell: New file.
39141         * m4/ftell.m4: New file.
39142         * doc/functions/ftell.texi: Update.
39143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39144         REPLACE_FTELL.
39145         * lib/stdio_.h (rpl_ftell): New declaration.
39146         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39147         REPLACE_FTELL.
39148
39149 2007-05-28  Eric Blake  <ebb9@byu.net>
39150
39151         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39152
39153 2007-05-28  Bruno Haible  <bruno@clisp.org>
39154
39155         * modules/fseek-tests: New file.
39156         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39157         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39158
39159         * lib/fseek.c: New file.
39160         * modules/fseek: New file.
39161         * m4/fseek.m4: New file.
39162         * doc/functions/fseek.texi: Update.
39163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39164         REPLACE_FSEEK.
39165         * lib/stdio_.h (rpl_fseek): New declaration.
39166         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39167         REPLACE_FSEEK.
39168
39169 2007-05-28  Bruno Haible  <bruno@clisp.org>
39170
39171         * lib/stdio_.h (fflush): More comments.
39172
39173 2007-05-28  Bruno Haible  <bruno@clisp.org>
39174
39175         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39176         runtime test.
39177
39178 2007-05-28  Eric Blake  <ebb9@byu.net>
39179
39180         Improve lseek module.
39181         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39182         * lib/unistd_.h (lseek): Scale back link warning message.
39183         * tests/test-lseek.c: Beef up test.
39184         * tests/test-lseek.sh: Exercise more facets of lseek.
39185         Reported by Bruno Haible.
39186
39187 2007-05-28  Bruno Haible  <bruno@clisp.org>
39188
39189         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39190         to define.
39191
39192 2007-05-27  Bruno Haible  <bruno@clisp.org>
39193
39194         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39195
39196 2007-05-27  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/openmp: New file.
39199         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39200         Noah Misch.
39201
39202 2007-05-26  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/chdir-long (Depends-on): Add fchdir.
39205         * modules/chdir-safer (Depends-on): Likewise.
39206         * modules/fts (Depends-on): Likewise.
39207         * modules/fts-lgpl (Depends-on): Likewise.
39208         * modules/openat (Depends-on): Likewise.
39209         * modules/savewd (Depends-on): Likewise.
39210
39211 2007-05-24  Eric Blake  <ebb9@byu.net>
39212
39213         Fix lseek on mingw.
39214         * modules/lseek: New module.
39215         * m4/lseek.m4: New file.
39216         * lib/lseek.c: New file.
39217         * modules/lseek-tests: New file.
39218         * tests/test-lseek.c: New file.
39219         * tests/test-lseek.sh: New file.
39220         * MODULES.html.sh: Document lseek module.
39221         * modules/fflush (Depends-on): Add lseek, fseeko.
39222         * modules/fseeko (Depends-on): Likewise.
39223         * modules/ftello (Depends-on): Likewise.
39224         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39225         broken.
39226         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39227         broken.
39228         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39229         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39230         * lib/ftello.c (rpl_ftello): Likewise.
39231         * tests/test-fseeko.c (main): Test this.
39232         * tests/test-fseeko.sh: Likewise.
39233         * tests/test-ftello.c (main): Likewise.
39234         * tests/test-ftello.sh: Likewise.
39235         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39236         implies replacing fseek.
39237         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39238         HAVE_FTELLO.
39239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39240         * modules/unistd (Makefile.am): Likewise.
39241         * lib/unistd_.h (lseek): Declare a replacement.
39242         * doc/functions/lseek.texi (lseek): Document this fix.
39243         * doc/functions/fseek.texi (fseek): Likewise.
39244         * doc/functions/ftell.texi (ftell): Likewise.
39245
39246 2007-05-24  Bruno Haible  <bruno@clisp.org>
39247
39248         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39249         in the printed representation of a NaN.
39250         * tests/test-vasprintf-posix.c (test_function): Likewise.
39251         * tests/test-snprintf-posix.h (test_function): Likewise.
39252         * tests/test-sprintf-posix.h (test_function): Likewise.
39253         Reported by Eric Blake.
39254
39255 2007-05-23  Eric Blake  <ebb9@byu.net>
39256
39257         Fix fseeko/ftello on cygwin 1.5.24.
39258         * doc/functions/fseeko.texi (fseeko): Document the fix.
39259         * doc/functions/ftello.texi (ftello): Document the fix.
39260         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39261         * doc/functions/stdout.text (stdout): New file.
39262         * doc/functions/stderr.text (stderr): New file.
39263         * doc/gnulib.texi (Function Substitutes): Use new files.
39264         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39265         prior to 1.7.0.
39266         * tests/test-ftello.c (main): Likewise for ftello.
39267         * tests/test-fseeko.sh: New file.
39268         * tests/test-ftello.sh: New file.
39269         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39270         with seekable stdin.
39271         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39273         (gl_REPLACE_FSEEKO): New macro.
39274         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39275         * modules/fseeko (Files): Distribute fseeko.c.
39276         * modules/ftello (Files): Distribute ftello.c.
39277         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39278         mode.
39279         * lib/ftello.c (rpl_ftello): New file.
39280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39281         fseeko, ftello.
39282         (gl_STDIN_LARGE_OFFSET): New macro.
39283         * modules/stdio (Makefile.am): Perform the replacement.
39284         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39285
39286 2007-05-23  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39289         GNULIB_POSIXCHECK is defined.
39290
39291 2007-05-21  Bruno Haible  <bruno@clisp.org>
39292
39293         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39294         Check also the output for NaN arguments. When cross-compiling, guess
39295         no on IRIX.
39296         * lib/vasnprintf.c: Update comments.
39297         * tests/test-vasnprintf-posix.c (strisnan): New function.
39298         (test_function): Use it.
39299         * tests/test-vasprintf-posix.c (strisnan): New function.
39300         (test_function): Use it.
39301         * tests/test-snprintf-posix.h (strisnan): New function.
39302         (test_function): Use it.
39303         * tests/test-sprintf-posix.h (strisnan): New function.
39304         (test_function): Use it.
39305         Reported by Eric Blake.
39306
39307 2007-05-20  Bruno Haible  <bruno@clisp.org>
39308
39309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39310         numbers that fails on BeOS.
39311         * doc/functions/frexpl.texi: Update.
39312
39313 2007-05-20  Jim Meyering  <jim@meyering.net>
39314
39315         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39316         forced upon us by glibc-2.6.
39317
39318 2007-05-20  Bruno Haible  <bruno@clisp.org>
39319
39320         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39321         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39322         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39323         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39324         NEED_PRINTF_INFINITE.
39325         (is_infinitel): New function.
39326         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39328         gl_PREREQ_VASNPRINTF_INFINITE.
39329         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39331         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39332         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39333         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39334         gl_PREREQ_VASNPRINTF_INFINITE.
39335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39339         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39341         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39342         * doc/functions/fprintf.texi: Update.
39343         * doc/functions/printf.texi: Update.
39344         * doc/functions/snprintf.texi: Update.
39345         * doc/functions/sprintf.texi: Update.
39346         * doc/functions/vfprintf.texi: Update.
39347         * doc/functions/vprintf.texi: Update.
39348         * doc/functions/vsnprintf.texi: Update.
39349         * doc/functions/vsprintf.texi: Update.
39350
39351 2007-05-20  Bruno Haible  <bruno@clisp.org>
39352
39353         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39354         was not found in libc.
39355         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39356
39357 2007-05-20  Bruno Haible  <bruno@clisp.org>
39358
39359         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39360         printed as "-nan" instead of "nan".
39361         * tests/test-vasprintf-posix.c (test_function): Likewise.
39362         * tests/test-snprintf-posix.h (test_function): Likewise.
39363         * tests/test-sprintf-posix.h (test_function): Likewise.
39364         Needed for HP-UX 11.
39365
39366 2007-05-20  Jim Meyering  <jim@meyering.net>
39367
39368         Fix buggy test for the fchownat-deref bug.
39369         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39370         symlink required for the run-test.  Without it, this test would
39371         always declare that fchownat doesn't work, and client code would
39372         unnecessarily use the replacement function with fixed libc.
39373         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39374         Reported by Greg Schafer.
39375
39376 2007-05-19  Bruno Haible  <bruno@clisp.org>
39377
39378         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39379         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39380         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39381         Needed for IRIX 6.5 and Solaris 2.5.1.
39382
39383 2007-05-19  Bruno Haible  <bruno@clisp.org>
39384
39385         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39386         (test_function): Skip tests involving -0.0 on platforms where
39387         -0.0 = 0.0.
39388         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39389         (test_function): Skip tests involving -0.0 on platforms where
39390         -0.0 = 0.0.
39391         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39392         (test_function): Skip tests involving -0.0 on platforms where
39393         -0.0 = 0.0.
39394         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39395         (test_function): Skip tests involving -0.0 on platforms where
39396         -0.0 = 0.0.
39397         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39398         tests.
39399         * tests/test-printf-posix.h (test_function): Likewise.
39400         * tests/test-printf-posix.output: Remove all -0.0 related results.
39401         Needed for IRIX 6.5.
39402
39403 2007-05-19  Bruno Haible  <bruno@clisp.org>
39404
39405         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39406         printed as "nan0x7fffffff" instead of "nan".
39407         * tests/test-vasprintf-posix.c (test_function): Likewise.
39408         * tests/test-snprintf-posix.h (test_function): Likewise.
39409         * tests/test-sprintf-posix.h (test_function): Likewise.
39410         * tests/test-fprintf-posix.h (NaN): Remove macro.
39411         (test_function): Remove all NaN related tests.
39412         * tests/test-printf-posix.h (NaN): Remove macro.
39413         (test_function): Remove all NaN related tests.
39414         * tests/test-printf-posix.output: Remove all NaN related results.
39415         Needed for IRIX 6.5.
39416
39417 2007-05-19  Bruno Haible  <bruno@clisp.org>
39418
39419         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39421
39422 2007-05-19  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/float_.h: New file.
39425         * m4/float_h.m4: New file.
39426         * modules/float: New file.
39427         * modules/isnanl (Dependencies): Add float.
39428         * modules/isnanl-nolibm (Dependencies): Likewise.
39429         * modules/mathl (Dependencies): Likewise.
39430         * modules/printf-frexpl (Dependencies): Likewise.
39431         * modules/signbit (Dependencies): Likewise.
39432         * modules/vasnprintf (Dependencies): Likewise.
39433         * doc/headers/float.texi: Update.
39434
39435 2007-05-19  Jim Meyering  <jim@meyering.net>
39436
39437         * lib/utimens.c (gl_futimens): Rename from futimens,
39438         now that glibc-2.6 declares futimens.
39439         * lib/utimens.h: Likewise.
39440
39441 2007-05-19  Bruno Haible  <bruno@clisp.org>
39442
39443         Avoid test failures on mingw.
39444         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39445         * tests/test-printf-posix.sh: Likewise.
39446         * tests/test-vfprintf-posix.sh: Likewise.
39447         * tests/test-vprintf-posix.sh: Likewise.
39448
39449 2007-05-19  Bruno Haible  <bruno@clisp.org>
39450
39451         Fix *printf result for NaN, Inf, -0.0 on mingw.
39452         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39453         * lib/vasnprintf.c: Include math.h and isnan.h.
39454         (is_infinite_or_zero): New function.
39455         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39456         values in the %f, %F, %e, %E, %g, %G directives.
39457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39459         gl_PRINTF_INFINITE and test its result. Invoke
39460         gl_PREREQ_VASNPRINTF_INFINITE.
39461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39468         * doc/functions/fprintf.texi: Update.
39469         * doc/functions/printf.texi: Update.
39470         * doc/functions/snprintf.texi: Update.
39471         * doc/functions/sprintf.texi: Update.
39472         * doc/functions/vfprintf.texi: Update.
39473         * doc/functions/vprintf.texi: Update.
39474         * doc/functions/vsnprintf.texi: Update.
39475         * doc/functions/vsprintf.texi: Update.
39476
39477 2007-05-19  Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39480         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39481         Instead of multiplying with 10^k, set extra_zeroes to k.
39482         (scale10_round_long_double): Remove function.
39483
39484 2007-05-18  Bruno Haible  <bruno@clisp.org>
39485
39486         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39487         introduced on 2007-05-06.
39488
39489 2007-05-18  Bruno Haible  <bruno@clisp.org>
39490
39491         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39492         %g directives.
39493         * tests/test-vasprintf-posix.c (test_function): Likewise.
39494         * tests/test-snprintf-posix.h (test_function): Likewise.
39495         * tests/test-sprintf-posix.h (test_function): Likewise.
39496
39497 2007-05-18  Bruno Haible  <bruno@clisp.org>
39498
39499         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39500         (strmatch): New function.
39501         (test_function): Test the %f directive on numbers of various exponents.
39502         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39503         (strmatch): New function.
39504         (test_function): Test the %f directive on numbers of various exponents.
39505         * tests/test-snprintf-posix.h (strmatch): New function.
39506         (test_function): Test the %f directive on numbers of various exponents.
39507         * tests/test-sprintf-posix.h (strmatch): New function.
39508         (test_function): Test the %f directive on numbers of various exponents.
39509         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39510         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39511         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39512         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39513
39514 2007-05-18  Bruno Haible  <bruno@clisp.org>
39515
39516         Add support for 'long double' number output.
39517         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39518         * lib/vasnprintf.c: Include math.h and float+.h.
39519         (mp_limb_t): New type.
39520         (GMP_LIMB_BITS): New macro.
39521         (mp_twolimb_t): New type.
39522         (GMP_TWOLIMB_BITS): New macro.
39523         (mpn_t): New type.
39524         (multiply, divide, convert_to_decimal, decode_long_double,
39525         scale10_round_long_double, scale10_round_decimal_long_double,
39526         floorlog10l): New functions.
39527         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39528         for the %f, %F, %e, %E, %g, %G directives.
39529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39531         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39532         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39540         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39541         * modules/snprintf-posix (Depends-on): Likewise.
39542         * modules/sprintf-posix (Depends-on): Likewise.
39543         * modules/vasnprintf-posix (Depends-on): Likewise.
39544         * modules/vasprintf-posix (Depends-on): Likewise.
39545         * modules/vfprintf-posix (Depends-on): Likewise.
39546         * modules/vsnprintf-posix (Depends-on): Likewise.
39547         * modules/vsprintf-posix (Depends-on): Likewise.
39548         * modules/vasnprintf (Files): Add lib/float+.h.
39549         * doc/functions/fprintf.texi: Update.
39550         * doc/functions/printf.texi: Update.
39551         * doc/functions/snprintf.texi: Update.
39552         * doc/functions/sprintf.texi: Update.
39553         * doc/functions/vfprintf.texi: Update.
39554         * doc/functions/vprintf.texi: Update.
39555         * doc/functions/vsnprintf.texi: Update.
39556         * doc/functions/vsprintf.texi: Update.
39557
39558 2007-05-18  Bruno Haible  <bruno@clisp.org>
39559
39560         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39561
39562 2007-05-18  Bruno Haible  <bruno@clisp.org>
39563
39564         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39565         for printing 64-bit integers. Needed for mingw.
39566
39567 2007-05-18  Bruno Haible  <bruno@clisp.org>
39568
39569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39570         gl_FUNC_FREXPL_WORKS.
39571         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39572
39573 2007-05-18  Bruno Haible  <bruno@clisp.org>
39574
39575         * modules/frexpl-nolibm-tests: New file.
39576
39577         * modules/frexpl-nolibm: New file.
39578         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39579
39580 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39581
39582         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39583         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39584         GCC 4.2, which otherwise issues a lot of warnings.
39585         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39586         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39587         Likewise.
39588         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39589         * modules/iconv_open (iconv.h): Likewise.
39590         * modules/locale (locale.h): Likewise.
39591         * modules/netinet_in (netinet/in.h): Likewise.
39592         * modules/sys_select (sys_select.h): Likewise.
39593         * modules/sys_socket (sys/socket.h): Likewise.
39594         * modules/sys_stat (sys/stat.h): Likewise.
39595         * modules/sysexits (sysexits.h): Likewise.
39596         * modules/unistd (unistd.h): Likewise.
39597
39598 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39599
39600         * modules/closein-tests (Makefile.am): Distribute
39601         `test-closein.sh'.
39602
39603 2007-05-17  Bruno Haible  <bruno@clisp.org>
39604
39605         * tests/test-printf-posix.output: Renamed from
39606         tests/test-fprintf-posix.out.
39607         * modules/fprintf-posix-tests: Update.
39608         * modules/printf-posix-tests: Update.
39609         * modules/vfprintf-posix-tests: Update.
39610         * modules/vprintf-posix-tests: Update.
39611         * tests/test-fprintf-posix.sh: Update.
39612         * tests/test-printf-posix.sh: Update.
39613         * tests/test-vfprintf-posix.sh: Update.
39614         * tests/test-vprintf-posix.sh: Update.
39615         Reported by Ralf Wildenhues.
39616
39617 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39618
39619         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39620         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39621         GCC 4.2, which otherwise issues a lot of warnings.
39622         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39623         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39624         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39625         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39626         it should no longer be needed.
39627         * lib/string_.h: Likewise.
39628         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39629         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39630         * modules/inttypes (inttypes.h): Likewise.
39631         * modules/math (math.h): Likewise.
39632         * modules/search (search.h): Likewise.
39633         * modules/signal (signal.h): Likewise.
39634         * modules/stdint (stdint.h): Likewise.
39635         * modules/stdio (stdio.h): Likewise.
39636         * modules/stdlib (stdlib.h): Likewise.
39637         * modules/string (string.h): Likewise.
39638         * modules/sys_time (sys/time.h): Likewise.
39639         * modules/time (time.h): Likewise.
39640         * modules/wchar (wchar.h): Likewise.
39641         * modules/wctype (wtype.h): Likewise.
39642
39643 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39644
39645         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39646
39647 2007-05-13  Bruno Haible  <bruno@clisp.org>
39648
39649         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39650         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39651         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39652         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39653         (gl_PREREQ_STRTOK_R): Don't require it here.
39654
39655 2007-05-13  Bruno Haible  <bruno@clisp.org>
39656
39657         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39658         when used in C++ mode.
39659
39660 2007-05-12  Bruno Haible  <bruno@clisp.org>
39661
39662         * lib/linebuffer.h: Tweak doc.
39663         * lib/linebuffer.c: Likewise.
39664
39665 2007-05-12  James Youngman  <jay@gnu.org>
39666
39667         * lib/linebuffer.c (readlinebuffer_delim): New function,
39668         like readlinebuffer, but use a caller-specified delimiter.
39669         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39670         as the delimiter.
39671         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39672
39673 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39674
39675         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39676         * modules/openat (Files): Remove openat-die.c.
39677         (Depends-on): Add openat-die.
39678         * modules/openat-die: New module.
39679
39680 2007-05-06  Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39683         Update with info about Cygwin.
39684         * doc/functions/fprintf.texi: Update.
39685         * doc/functions/printf.texi: Update.
39686         * doc/functions/snprintf.texi: Update.
39687         * doc/functions/sprintf.texi: Update.
39688         * doc/functions/vfprintf.texi: Update.
39689         * doc/functions/vprintf.texi: Update.
39690         * doc/functions/vsnprintf.texi: Update.
39691         * doc/functions/vsprintf.texi: Update.
39692         Reported by Eric Blake.
39693
39694 2007-05-06  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39697         padding ourselves for the floating-point directives.
39698         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39701         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39702         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39707         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39710         * tests/test-snprintf-posix.h (test_function): Also check the width
39711         and some flags in the %f directive.
39712         * tests/test-sprintf-posix.h (test_function): Likewise.
39713         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39714         * tests/test-vasprintf-posix.c (test_function): Likewise.
39715         * doc/functions/fprintf.texi: Update.
39716         * doc/functions/printf.texi: Update.
39717         * doc/functions/snprintf.texi: Update.
39718         * doc/functions/sprintf.texi: Update.
39719         * doc/functions/vfprintf.texi: Update.
39720         * doc/functions/vprintf.texi: Update.
39721         * doc/functions/vsnprintf.texi: Update.
39722         * doc/functions/vsprintf.texi: Update.
39723
39724 2007-05-06  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39727         pass the ' flag character to sprintf or snprintf.
39728         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39731         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39732         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39737         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39740         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39741         flag.
39742         * tests/test-sprintf-posix.h (test_function): Likewise.
39743         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39744         * tests/test-vasprintf-posix.c (test_function): Likewise.
39745         * doc/functions/fprintf.texi: Update.
39746         * doc/functions/printf.texi: Update.
39747         * doc/functions/snprintf.texi: Update.
39748         * doc/functions/sprintf.texi: Update.
39749         * doc/functions/vfprintf.texi: Update.
39750         * doc/functions/vprintf.texi: Update.
39751         * doc/functions/vsnprintf.texi: Update.
39752         * doc/functions/vsprintf.texi: Update.
39753
39754 2007-05-01  Bruno Haible  <bruno@clisp.org>
39755
39756         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39757
39758 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39759
39760         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39761         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39762
39763 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39764
39765         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39766         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39768
39769 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39770
39771         * lib/argp-help.c (struct hol_entry): New member `ord'.
39772         (HOL_ENTRY_PTRCMP): Use ord for comparison
39773         (hol_sort): Initialize ord.
39774
39775 2007-05-01  Bruno Haible  <bruno@clisp.org>
39776
39777         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39778         Reported by Eric Blake.
39779         * doc/gnulib.texi (Function Substitutes): Update.
39780
39781 2007-05-01  Bruno Haible  <bruno@clisp.org>
39782
39783         * doc/functions.texi: Remove file, now redundant through
39784         doc/functions/*.texi.
39785
39786 2007-05-01  Bruno Haible  <bruno@clisp.org>
39787
39788         * modules/argp (Depends-on): Add sleep.
39789
39790 2007-05-01  Bruno Haible  <bruno@clisp.org>
39791
39792         * modules/sleep-tests: New file.
39793         * tests/test-sleep.c: New file.
39794
39795         * modules/sleep: New file.
39796         * lib/sleep.c: New file.
39797         * m4/sleep.m4: New file.
39798         * lib/unistd_.h (sleep): New declaration.
39799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39800         HAVE_SLEEP.
39801         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39802         * doc/functions/sleep.texi: Document the sleep module.
39803
39804 2007-05-01  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/sigprocmask.h: Remove file.
39807         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39808         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39809         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39810         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39811         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39812         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39813         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39814         HAVE_SIGSET_T as a shell variable.
39815         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39816         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39817         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39818         (Depends-on): Add signal. Remove verify.
39819         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39820         (Include): Mention <signal.h> instead of sigprocmask.h.
39821         * NEWS: Mention the change.
39822         * lib/fatal-signal.c: Don't include sigprocmask.h.
39823
39824 2007-05-01  Bruno Haible  <bruno@clisp.org>
39825
39826         * modules/signal: New file.
39827         * lib/signal_.h: New file.
39828         * m4/signal_h.m4: New file.
39829
39830 2007-05-01  Bruno Haible  <bruno@clisp.org>
39831
39832         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39833         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39834         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39835         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39836
39837 2007-05-01  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39840         configure time.
39841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39842         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39843         * modules/sys_stat (Makefile.am): Substitute their values into
39844         sys/stat.h.
39845
39846 2007-05-01  Bruno Haible  <bruno@clisp.org>
39847
39848         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39849         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39850         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39851
39852 2007-05-01  Bruno Haible  <bruno@clisp.org>
39853
39854         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39855         'assert' module here.
39856
39857 2007-05-01  Bruno Haible  <bruno@clisp.org>
39858
39859         * doc/functions/*.texi: New files.
39860         * doc/functions/google-ranking.txt: New file.
39861         * doc/gnulib.texi (Function Substitutes): New chapter.
39862         (ctime, inet_ntoa): Remove sections.
39863         * doc/ctime.texi: Remove file.
39864         * doc/inet_ntoa.texi: Remove file.
39865         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39866         dependencies.
39867         (%.info): New rule, specifying a --reference-limit.
39868
39869 2007-05-01  Bruno Haible  <bruno@clisp.org>
39870
39871         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39872
39873 2007-05-01  Bruno Haible  <bruno@clisp.org>
39874
39875         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39876         the portability of 'mkdir' to mingw systems.
39877
39878 2007-05-01  Bruno Haible  <bruno@clisp.org>
39879
39880         * doc/headers/google-ranking.txt: New file.
39881
39882 2007-04-30  Eric Blake  <ebb9@byu.net>
39883
39884         Prefer fseeko to fseek.
39885         * modules/getpass (Depends-on): Add fseeko.
39886         * lib/getpass.c (getpass): Use fseeko, not fseek.
39887
39888 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39889
39890         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39891         assumes the sorting is stable, while most qsort implementations
39892         are not.  Use argument addresses to ensure they never compare as
39893         equal.
39894
39895         * tests/test-argp-2.sh (usage-indent test): Fix output
39896         (func_compare): Restore diff options
39897         * tests/test-argp.c: Restore #include "progname.h"
39898
39899 2007-04-29  Bruno Haible  <bruno@clisp.org>
39900
39901         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39902         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39903         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39905         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39906         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39907         (TESTS, check_PROGRAMS): Add test-snprintf.
39908         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39909         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39910         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39911         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39912         assertions that fail on HP-UX, OSF/1, or IRIX.
39913         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39914
39915 2007-04-29  Bruno Haible  <bruno@clisp.org>
39916
39917         * MODULES.html.sh (posix_functions): Remove 'contents'.
39918
39919 2007-04-29  Karl Berry  <karl@gnu.org>
39920
39921         * config/srclist.txt (gendocs_template_min): new entry.
39922
39923 2007-04-29  Bruno Haible  <bruno@clisp.org>
39924
39925         Work around fpurge bug on BSD systems.
39926         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39927         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39928         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39929         fpurge to rpl_fpurge if the system already has this function.
39930         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39931         the case where the system already has this function. Correct invariants
39932         on BSD systems.
39933         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39934         BSD systems.
39935
39936 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39937
39938         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39939         proposed by Sven Verdoolaege.
39940
39941         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39942         options.
39943         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39944         (usage and help tests): Update
39945
39946 2007-04-29  Bruno Haible  <bruno@clisp.org>
39947
39948         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39949         Print more information in case of failure. Disable a test on BeOS.
39950
39951 2007-04-29  Bruno Haible  <bruno@clisp.org>
39952
39953         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39954         This helps debugging on systems on which no gdb is available.
39955
39956 2007-04-29  Bruno Haible  <bruno@clisp.org>
39957
39958         * lib/freading.h: Improve comments.
39959         * lib/fwriting.h: Likewise.
39960         * tests/test-freading.c (main): Don't check freading immediately after
39961         repositioning. Needed for glibc.
39962
39963 2007-04-29  Bruno Haible  <bruno@clisp.org>
39964
39965         * lib/freading.c (freading): Trivial simplification.
39966
39967 2007-04-28  Bruno Haible  <bruno@clisp.org>
39968
39969         * tests/test-fwriting.c (main): Also test the interaction between
39970         fflush and fwriting.
39971         * modules/fwriting-tests (Depends-on): Add fflush.
39972
39973         * tests/test-freading.c (main): Also test the interaction between
39974         fflush and freading.
39975         * modules/freading-tests (Depends-on): Add fflush.
39976
39977 2007-04-28  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
39980         fseeko and ftello.
39981         Suggested by Eric Blake.
39982
39983 2007-04-28  Jim Meyering  <jim@meyering.net>
39984
39985         Avoid false-negative in gl_STDINT_H's C99 conformance test.
39986         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
39987         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
39988
39989 2007-04-27  Eric Blake  <ebb9@byu.net>
39990
39991         * doc/headers/assert.texi (assert.h): Document assert module use.
39992
39993 2007-04-27  Bruno Haible  <bruno@clisp.org>
39994
39995         * doc/headers/*.texi: New files.
39996         * doc/gnulib.texi (Header File Substitutes): New chapter.
39997         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
39998         dependencies.
39999         (standards.info ,standards.html, standards.dvi): Update dependencies.
40000         (mostlyclean, clean): New targets.
40001
40002 2007-04-27  Bruno Haible  <bruno@clisp.org>
40003
40004         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40005         * modules/sysexits (Files, Makefile.am): Update.
40006
40007         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40008         * modules/sys_socket (Files, Makefile.am): Update.
40009
40010         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40011         * modules/sys_stat (Files, Makefile.am): Update.
40012
40013 2007-04-27  Eric Blake  <ebb9@byu.net>
40014
40015         * lib/freading.h: Improve comments.
40016         * lib/fwriting.h: Likewise.
40017         * lib/fflush.c: Likewise.
40018
40019         Fix closein for mingw.
40020         * modules/closein-tests: Add tests for closein.
40021         * tests/test-closein.c: New file.
40022         * tests/test-closein.sh: Likewise.
40023         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40024         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40025
40026 2007-04-27  Bruno Haible  <bruno@clisp.org>
40027
40028         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40029         version is < 6.
40030         * lib/math_.h [__DECC]: Likewise.
40031         * lib/stdio_.h [__DECC]: Likewise.
40032         * lib/stdlib_.h [__DECC]: Likewise.
40033         * lib/string_.h [__DECC]: Likewise.
40034         * lib/time_.h [__DECC]: Likewise.
40035         * lib/wchar_.h [__DECC]: Likewise.
40036         * lib/wctype_.h [__DECC]: Likewise.
40037
40038 2007-04-27  Bruno Haible  <bruno@clisp.org>
40039
40040         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40041
40042 2007-04-27  Bruno Haible  <bruno@clisp.org>
40043
40044         * lib/fflush.c: Add comments.
40045         * modules/fpurge-tests (Depends-on): Add fflush.
40046         * modules/freadable-tests (Depends-on): Likewise.
40047         * modules/fwritable-tests (Depends-on): Likewise.
40048
40049 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40050
40051         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40052         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40053         Report by Bruno Haible <bruno@clisp.org>.
40054
40055 2007-04-26  Eric Blake  <ebb9@byu.net>
40056
40057         Fix fflush on mingw.
40058         * modules/fflush (Depends-on): Add freading.
40059         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40060         but unread data.
40061
40062 2007-04-26  Eric Blake  <ebb9@byu.net>
40063         and Bruno Haible  <bruno@clisp.org>
40064
40065         Implement freading and fwriting.
40066         * lib/freading.c: New file.
40067         * lib/freading.h: Likewise.
40068         * m4/freading.m4: Likewise.
40069         * modules/freading: Likewise.
40070         * modules/freading-tests: Likewise.
40071         * tests/test-freading.c: Likewise.
40072         * lib/fwriting.c: New file.
40073         * lib/fwriting.h: Likewise.
40074         * m4/fwriting.m4: Likewise.
40075         * modules/fwriting: Likewise.
40076         * modules/fwriting-tests: Likewise.
40077         * tests/test-fwriting.c: Likewise.
40078         * MODULES.html.sh (File stream based Input/Output): Mention them.
40079
40080 2007-04-26  Bruno Haible  <bruno@clisp.org>
40081
40082         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40083         'long' when we assume it.
40084         Suggested by Eric Blake.
40085
40086 2007-04-26  Bruno Haible  <bruno@clisp.org>
40087
40088         Ensure fseeko, ftello are declared on glibc systems.
40089         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40090         * modules/fseeko (configure.ac-early): Likewise.
40091         * modules/ftello (configure.ac-early): Likewise.
40092         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40093         AC_FUNC_FSEEKO for this.
40094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40095         (gl_CHECK_FSEEKO): Remove macro.
40096
40097 2007-04-26  Bruno Haible  <bruno@clisp.org>
40098
40099         * tests/test-fflush.c (main): Also check the ftell result after
40100         fflush and fseek/fseeko.
40101         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40102         file descriptor position cache in the stream.
40103         * lib/fseeko.c (rpl_fseeko): Likewise.
40104
40105 2007-04-26  Bruno Haible  <bruno@clisp.org>
40106
40107         * modules/fflush-tests (Depends-on): Add fseeko.
40108
40109 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40110             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40111
40112         * lib/argz_.h: ensure error_t definition is obtained in same
40113         mechanism system argz.h would have.
40114         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40115         argz facilities are known bad.  Err on the side of caution if
40116         cross-compiling.
40117
40118 2007-04-25  Eric Blake  <ebb9@byu.net>
40119
40120         * lib/fpurge.c (includes): Use stdlib.h for free.
40121         * tests/test-fflush.c (main): Also test fflush-fseeko.
40122
40123 2007-04-25  Bruno Haible  <bruno@clisp.org>
40124
40125         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40126         * lib/fseeko.c: New file.
40127         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40128         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40129         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40130         gl_FUNC_FSEEKO.
40131         (gl_FUNC_FSEEKO): Invoke it.
40132         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40133         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40134         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40135
40136 2007-04-25  Bruno Haible  <bruno@clisp.org>
40137
40138         * modules/fflush (Depends-on): Add ftello.
40139
40140 2007-04-25  Bruno Haible  <bruno@clisp.org>
40141
40142         * modules/ftello-tests: New file.
40143         * tests/test-ftello.c: New file.
40144
40145         * modules/ftello: New file.
40146         * m4/ftello.m4: New file.
40147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40148         HAVE_FTELLO.
40149         * lib/stdio_.h (ftello): New declaration.
40150         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40151         HAVE_FTELLO.
40152
40153 2007-04-25  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/fseeko-tests: New file.
40156         * tests/test-fseeko.c: New file.
40157
40158         * modules/fseeko: New file.
40159         * m4/fseeko.m4: New file.
40160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40161         HAVE_FSEEKO.
40162         * lib/stdio_.h (fseeko): New declaration.
40163         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40164         HAVE_FSEEKO.
40165
40166 2007-04-25  Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40169
40170 2007-04-25  Bruno Haible  <bruno@clisp.org>
40171
40172         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40173         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40174         * tests/test-unistd.c: Likewise.
40175         * tests/test-fcntl.c: Likewise.
40176
40177 2007-04-23  Eric Blake  <ebb9@byu.net>
40178
40179         * lib/fflush.c: Fix missing include.
40180         Reported by Bruno Haible.
40181
40182 2007-04-23  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40185         Reported by Eric Blake.
40186
40187 2007-04-23  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40190
40191 2007-04-23  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40194
40195 2007-04-23  Bruno Haible  <bruno@clisp.org>
40196
40197         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40198         Needed on HP-UX 11.
40199
40200 2007-04-16  Eric Blake  <ebb9@byu.net>
40201
40202         Make fflush rely on fpurge.
40203         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40204         open coding all variants.
40205         * modules/fflush (Depends-on): Add fpurge and unistd.
40206         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40207         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40208
40209         Fix --with-tests compilation on cygwin.
40210         * modules/argmatch-tests (Makefile.am): List gnulib library first
40211         in LDADD.
40212         * modules/argp-tests (Makefile.am): Likewise.
40213         * modules/array-list-tests (Makefile.am): Likewise.
40214         * modules/array-oset-tests (Makefile.am): Likewise.
40215         * modules/avltree-list-tests (Makefile.am): Likewise.
40216         * modules/avltree-oset-tests (Makefile.am): Likewise.
40217         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40218         * modules/carray-list-tests (Makefile.am): Likewise.
40219         * modules/dirname-tests (Makefile.am): Likewise.
40220         * modules/frexp-tests (Makefile.am): Likewise.
40221         * modules/isnanl-tests (Makefile.am): Likewise.
40222         * modules/linked-list-tests (Makefile.am): Likewise.
40223         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40224         * modules/lock-tests (Makefile.am): Likewise.
40225         * modules/rbtree-list-tests (Makefile.am): Likewise.
40226         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40227         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40228         * modules/tls-tests (Makefile.am): Likewise.
40229         * modules/tsearch-tests (Makefile.am): Likewise.
40230         * modules/xvasprintf-tests (Makefile.am): Likewise.
40231
40232         Fix fpurge for cygwin.
40233         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40234         value.
40235         * modules/fpurge-tests (Depends-on): Clean up trash.
40236
40237 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40238
40239         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40240
40241         * m4/autobuild.m4: Re-indent.
40242
40243 2007-04-13  Bruno Haible  <bruno@clisp.org>
40244
40245         * modules/fpurge-tests: New file.
40246         * tests/test-fpurge.c: New file.
40247
40248         * modules/fpurge: New file.
40249         * lib/fpurge.h: New file.
40250         * lib/fpurge.c: New file.
40251         * m4/fpurge.m4: New file.
40252
40253 2007-04-13  Bruno Haible  <bruno@clisp.org>
40254
40255         * modules/fbufmode-tests: New file.
40256         * tests/test-fbufmode.c: New file.
40257
40258         * modules/fbufmode: New file.
40259         * lib/fbufmode.h: New file.
40260         * lib/fbufmode.c: New file.
40261         * m4/fbufmode.m4: New file.
40262
40263 2007-04-13  Bruno Haible  <bruno@clisp.org>
40264
40265         * modules/fwritable-tests: New file.
40266         * tests/test-fwritable.c: New file.
40267
40268         * modules/fwritable: New file.
40269         * lib/fwritable.h: New file.
40270         * lib/fwritable.c: New file.
40271         * m4/fwritable.m4: New file.
40272
40273 2007-04-13  Bruno Haible  <bruno@clisp.org>
40274
40275         * modules/freadable-tests: New file.
40276         * tests/test-freadable.c: New file.
40277
40278         * modules/freadable: New file.
40279         * lib/freadable.h: New file.
40280         * lib/freadable.c: New file.
40281         * m4/freadable.m4: New file.
40282
40283 2007-04-13  Bruno Haible  <bruno@clisp.org>
40284
40285         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40286         MOSTLYCLEANFILES.
40287
40288 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40289
40290         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40291         gzip bootstrap.conf to avoid dragging in i18n machinery.
40292         (gnulib_tool_option): Use it.
40293
40294 2007-04-13  Bruno Haible  <bruno@clisp.org>
40295
40296         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40297         %F directives.
40298         * tests/test-vasprintf-posix.c (test_function): Likewise.
40299         * tests/test-snprintf-posix.h (test_function): Likewise.
40300         * tests/test-sprintf-posix.h (test_function): Likewise.
40301         * tests/test-fprintf-posix.h (test_function): Likewise.
40302         * tests/test-printf-posix.h (test_function): Likewise.
40303         * tests/test-fprintf-posix.out: Likewise.
40304
40305 2007-04-13  Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40308         * modules/tls-tests (configure.ac): Likewise.
40309         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40310
40311 2007-04-13  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/tls.c (glthread_tls_get): Fix return type.
40314         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40315
40316 2007-04-12  Eric Blake  <ebb9@byu.net>
40317
40318         * modules/gettime (Depends-on): Remove gettime.
40319         Reported by Dmitry V. Levin.
40320
40321 2007-04-12  Bruno Haible  <bruno@clisp.org>
40322
40323         * modules/fflush (Include): Mention <stdio.h>.
40324         * modules/strtoimax (Include): Mention <inttypes.h>.
40325         * modules/strtoumax (Include): Likewise.
40326
40327 2007-04-12  Eric Blake  <ebb9@byu.net>
40328
40329         * .cvsignore: New file.
40330         * .gitignore: Likewise.
40331
40332 2007-04-12  Bruno Haible  <bruno@clisp.org>
40333
40334         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40335         not before, since $(LDADD) often contains libgnu.a.
40336         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40337         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40338         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40339         Needed on Cygwin.
40340
40341 2007-04-12  Eric Blake  <ebb9@byu.net>
40342
40343         Work around glibc's failure to flush stdin on fclose.
40344         * lib/closein.c (close_stdin): Flush stdin before closing.
40345
40346         Work around glibc's failure to reset seekable stdin on exit.
40347         * modules/closein: New module.
40348         * lib/closein.c: New file.
40349         * lib/closein.h: Likewise.
40350         * m4/closein.m4: Likewise.
40351         * MODULES.html.sh (File stream based Input/Output): Document it.
40352
40353 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40354
40355         * gnulib-tool: Rename generated 'autobuild' script to
40356         'do-autobuild' in --create-megatestdir output.
40357
40358         * doc/gnulib.texi (Build robot for gnulib): Fix.
40359
40360 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40361
40362         * modules/sysexits (Depends-on): Add absolute-header.
40363
40364 2007-04-12  Eric Blake  <ebb9@byu.net>
40365
40366         No need to preserve errno on success.
40367         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40368         Reported by Bruno Haible.
40369
40370 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40371
40372         * MODULES.html.sh (Support for maintaining and releasing
40373         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40374
40375 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40376
40377         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40378
40379 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40380
40381         * modules/autobuild: New module.
40382
40383         * m4/autobuild.m4: New file.
40384
40385 2007-04-11  Bruno Haible  <bruno@clisp.org>
40386
40387         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40388         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40391         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40392         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40393         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40395         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40396         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40398         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40399         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40400         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40401         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40402         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40404         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40405         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40407         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40408         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40409         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40410         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40411         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40413         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40414         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40415         Reported by Eric Blake.
40416
40417 2007-04-11  Bruno Haible  <bruno@clisp.org>
40418
40419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40420
40421 2007-04-10  Bruno Haible  <bruno@clisp.org>
40422
40423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40424         for NaN and Infinity. Needed on FreeBSD 6.1.
40425         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40426         regarding results for "%010a" of Infinity and NaN.
40427         * tests/test-vasprintf-posix.c (test_function): Likewise.
40428         * tests/test-snprintf-posix.h (test_function): Likewise.
40429         * tests/test-sprintf-posix.h (test_function): Likewise.
40430         * tests/test-fprintf-posix.h (test_function): Likewise.
40431         * tests/test-printf-posix.h (test_function): Likewise.
40432         * tests/test-fprintf-posix.out: Likewise.
40433
40434 2007-04-10  Bruno Haible  <bruno@clisp.org>
40435
40436         * modules/locale-tests: New file.
40437         * tests/test-locale.c: New file.
40438
40439         * modules/locale: New file.
40440         * lib/locale_.h: New file.
40441         * m4/locale_h.m4: New file.
40442
40443 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40444             Bruno Haible  <bruno@clisp.org>
40445
40446         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40447         be determined, test for availability of the copysignf, copysign,
40448         copysignl functions.
40449         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40450         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40451         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40452
40453 2007-04-09  Eric Blake  <ebb9@byu.net>
40454
40455         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40456         * modules/stdio (Makefile.am): Support fflush.
40457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40458         * modules/fflush: New file.
40459         * lib/fflush.c: Likewise.
40460         * m4/fflush.m4: Likewise.
40461         * modules/fflush-tests: New test.
40462         * tests/test-fflush.c: Likewise.
40463         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40464
40465 2007-04-06  Bruno Haible  <bruno@clisp.org>
40466
40467         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40468         (VASNPRINTF): Use signbit for faster determination whether to print a
40469         minus sign.
40470         * modules/vasnprintf (Files): Remove lib/float+.h.
40471         * modules/fprintf-posix (Depends-on): Add signbit.
40472         * modules/snprintf-posix (Depends-on): Likewise.
40473         * modules/sprintf-posix (Depends-on): Likewise.
40474         * modules/vasnprintf-posix (Depends-on): Likewise.
40475         * modules/vasprintf-posix (Depends-on): Likewise.
40476         * modules/vfprintf-posix (Depends-on): Likewise.
40477         * modules/vsnprintf-posix (Depends-on): Likewise.
40478         * modules/vsprintf-posix (Depends-on): Likewise.
40479
40480 2007-04-06  Bruno Haible  <bruno@clisp.org>
40481
40482         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40483         * tests/test-frexpl.c (main): Likewise.
40484         * tests/test-ldexpl.c (main): Likewise.
40485         * modules/frexp-tests (Depends-on): Add signbit.
40486         * modules/frexpl-tests (Depdends-on): Likewise.
40487         * modules/ldexpl-tests (Depdends-on): Likewise.
40488
40489 2007-04-06  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/signbit-tests: New file.
40492         * tests/test-signbit.c: New file.
40493
40494         * modules/signbit: New file.
40495         * lib/signbitf.c: New file.
40496         * lib/signbitd.c: New file.
40497         * lib/signbitl.c: New file.
40498         * m4/signbit.m4: New file.
40499         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40500         (signbit): New macro.
40501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40502         REPLACE_SIGNBIT.
40503         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40504         REPLACE_FREXPL into math.h.
40505
40506 2007-04-06  Bruno Haible  <bruno@clisp.org>
40507
40508         * modules/isnanf-nolibm-tests: New file.
40509         * tests/test-isnanf.c: New file.
40510
40511         * modules/isnanf-nolibm: New file.
40512         * lib/isnanf.h: New file.
40513         * lib/isnanf.c: New file.
40514         * lib/isnan.c: Consider the USE_FLOAT macro.
40515         * m4/isnanf.m4: New file.
40516
40517 2007-04-06  Bruno Haible  <bruno@clisp.org>
40518
40519         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40520         (Link): New section.
40521
40522         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40523
40524 2007-04-06  Bruno Haible  <bruno@clisp.org>
40525
40526         Assume the 'long double' type.
40527         * m4/longdouble.m4: Remove file.
40528         * config/srclist.txt: Don't mention longdouble.m4.
40529         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40530         * lib/float+.h: Likewise.
40531         * lib/frexp.c: Likewise.
40532         * lib/printf-args.h: Likewise.
40533         * lib/printf-args.c: Likewise.
40534         * lib/printf-frexp.c: Likewise.
40535         * lib/printf-parse.c: Likewise.
40536         * lib/vasnprintf.c: Likewise.
40537         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40538         * m4/intl.m4: Likewise.
40539         * m4/isnanl.m4: Likewise.
40540         * m4/printf.m4: Likewise.
40541         * m4/printf-frexpl.m4: Likewise.
40542         * m4/vasnprintf.m4: Likewise.
40543         * modules/allocsa (Files): Remove m4/longdouble.m4.
40544         * modules/gettext (Files): Likewise.
40545         * modules/relocatable-prog-wrapper (Files): Likewise.
40546         * modules/vasnprintf (Files): Likewise.
40547         * modules/isnanl (Files): Likewise.
40548         (Include): Simplify.
40549         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40550         (Include): Simplify.
40551         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40552         (Include): Simplify.
40553         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40554         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40555         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40556         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40557         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40558         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40559         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40560         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40561         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40562         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40563         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40564         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40565         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40566         * tests/test-isnanl.c: Likewise.
40567         * tests/test-snprintf-posix.h: Likewise.
40568         * tests/test-sprintf-posix.h: Likewise.
40569         * tests/test-vasnprintf-posix.c: Likewise.
40570         * tests/test-vasnprintf-posix2.c: Likewise.
40571         * tests/test-vasprintf-posix.c: Likewise.
40572
40573 2007-04-06  Bruno Haible  <bruno@clisp.org>
40574
40575         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40576         * lib/math_.h [__DECC]: Include the overridden include file through
40577         #include_next, outside the double-inclusion guard.
40578         * lib/stdio_.h [__DECC]: Likewise.
40579         * lib/stdlib_.h [__DECC]: Likewise.
40580         * lib/string_.h [__DECC]: Likewise.
40581         * lib/time_.h [__DECC]: Likewise.
40582         * lib/wchar_.h [__DECC]: Likewise.
40583         * lib/wctype_.h [__DECC]: Likewise.
40584         * lib/inttypes_.h [__DECC]: Likewise.
40585         Reported by Albert Chin <china@thewrittenword.com> in
40586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40587
40588 2007-04-04  Eric Blake  <ebb9@byu.net>
40589
40590         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40591         1.5.x.
40592
40593 2007-04-04  Bruno Haible  <bruno@clisp.org>
40594
40595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40596         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40597
40598 2007-04-04  Bruno Haible  <bruno@clisp.org>
40599
40600         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40601         results for "%010a" of Infinity and NaN.
40602         * tests/test-vasprintf-posix.c (test_function): Likewise.
40603         * tests/test-snprintf-posix.h (test_function): Likewise.
40604         * tests/test-sprintf-posix.h (test_function): Likewise.
40605         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40606         * tests/test-printf-posix.h (test_function): Likewise.
40607         * tests/test-fprintf-posix.out: Update.
40608         Needed for FreeBSD 6.1.
40609
40610 2007-04-04  Bruno Haible  <bruno@clisp.org>
40611
40612         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40613         directly used by the gnulib modules nor by gnulib-tool.
40614
40615 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40616
40617         * DEPENDENCIES: Give overall description of version dependency
40618         desirability.  Use more-typical names for apps.
40619         Add shell, coreutils, diffutils, grep, tar, gzip.
40620
40621 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40622
40623         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40624
40625 2007-04-04  Karl Berry  <karl@gnu.org>
40626
40627         * MODULES.html.sh (func_module): missing '.
40628
40629 2007-04-03  Bruno Haible  <bruno@clisp.org>
40630
40631         * modules/argmatch-tests (Makefile.am): New variable
40632         test_argmatch_LDADD.
40633         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40634         * modules/array-list-tests (Makefile.am): New variable
40635         test_array_list_LDADD.
40636         * modules/array-oset-tests (Makefile.am): New variable
40637         test_array_oset_LDADD.
40638         * modules/avltree-list-tests (Makefile.am): New variable
40639         test_avltree_list_LDADD.
40640         * modules/avltree-oset-tests (Makefile.am): New variable
40641         test_avltree_oset_LDADD.
40642         * modules/avltreehash-list-tests (Makefile.am): New variable
40643         test_avltreehash_list_LDADD.
40644         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40645         test_canonicalize_lgpl_LDADD.
40646         * modules/carray-list-tests (Makefile.am): New variable
40647         test_carray_list_LDADD.
40648         * modules/dirname-tests (Makefile.am): New variable
40649         test_dirname_LDADD.
40650         * modules/linked-list-tests (Makefile.am): New variable
40651         test_linked_list_LDADD.
40652         * modules/linkedhash-list-tests (Makefile.am): New variable
40653         test_linkedhash_list_LDADD.
40654         * modules/rbtree-list-tests (Makefile.am): New variable
40655         test_rbtree_list_LDADD.
40656         * modules/rbtree-oset-tests (Makefile.am): New variable
40657         test_rbtree_oset_LDADD.
40658         * modules/rbtreehash-list-tests (Makefile.am): New variable
40659         test_rbtreehash_list_LDADD.
40660         * modules/xvasprintf-tests (Makefile.am): New variable
40661         test_xvasprintf_LDADD.
40662         Reported by Eric Blake.
40663
40664 2007-04-03  Eric Blake  <ebb9@byu.net>
40665
40666         * DEPENDENCIES: Weaken m4 requirements.
40667
40668 2007-04-03  Bruno Haible  <bruno@clisp.org>
40669
40670         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40671         * modules/isnanl-tests (configure.ac): Likewise.
40672
40673 2007-04-03  Ben Pfaff  <blp@gnu.org>
40674
40675         * modules/iconv_open: Add $(srcdir)/ to source directory
40676         references in Makefile fragments that call gperf, to fix VPATH
40677         builds.
40678
40679 2007-04-03  Bruno Haible  <bruno@clisp.org>
40680
40681         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40682         * lib/ldexpl.c: Undo last change.
40683
40684 2007-04-03  Bruno Haible  <bruno@clisp.org>
40685
40686         * modules/printf-frexpl (Depends-on): Undo last change.
40687         (Files): Add m4/ldexpl.m4.
40688
40689 2007-04-03  Bruno Haible  <bruno@clisp.org>
40690
40691         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40692         * modules/isnanl (Link): New section.
40693
40694         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40695         * modules/frexp (Link): New section.
40696
40697         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40698         * modules/frexpl (Link): New section.
40699
40700         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40701         * modules/ldexpl (Link): New section.
40702
40703 2007-04-03  Bruno Haible  <bruno@clisp.org>
40704
40705         * modules/TEMPLATE-EXTENDED: New file.
40706         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40707
40708 2007-04-03  Bruno Haible  <bruno@clisp.org>
40709
40710         * DEPENDENCIES: New file.
40711         Suggested by Simon Josefsson.
40712
40713 2007-04-03  Bruno Haible  <bruno@clisp.org>
40714
40715         * doc/gnulib.texi: Escape @.
40716
40717 2007-04-03  James Youngman  <jay@gnu.org>
40718         and Paul Eggert  <eggert@cs.ucla.edu>
40719
40720         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40721         birthtime on all systems that have birthtime, not just those which
40722         use st_birthtimensec rather than st_birthtim.  Putting zero in
40723         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40724         that the birth time is not available for files on an NFS mount.
40725
40726 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40727
40728         * modules/memxor: Move back from crypto/, suggested by Bruno.
40729         * modules/crypto/hmac-sha1: Fix memxor dependency.
40730
40731         * modules/crypto/gc: Moved from ../.
40732
40733 2007-04-02  Eric Blake  <ebb9@byu.net>
40734
40735         * lib/ldexpl.c (includes): Avoid libm.
40736
40737         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40738
40739 2007-04-02  Bruno Haible  <bruno@clisp.org>
40740
40741         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40742         on IRIX.
40743
40744 2007-04-02  Bruno Haible  <bruno@clisp.org>
40745
40746         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40747         x86 or x86_64 platforms running MacOS X.
40748         Reported by Ryan Schmidt <@ryandesign.com>.
40749
40750 2007-04-02  Bruno Haible  <bruno@clisp.org>
40751
40752         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40753         i386.
40754
40755 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40756
40757         * modules/crypto/arcfour: Moved from ../.
40758         * modules/crypto/arcfour-tests: Moved from ../.
40759         * modules/crypto/arctwo: Moved from ../.
40760         * modules/crypto/arctwo-tests: Moved from ../.
40761         * modules/crypto/des: Moved from ../.
40762         * modules/crypto/des-tests: Moved from ../.
40763         * modules/crypto/gc-arcfour: Moved from ../.
40764         * modules/crypto/gc-arcfour-tests: Moved from ../.
40765         * modules/crypto/gc-arctwo: Moved from ../.
40766         * modules/crypto/gc-arctwo-tests: Moved from ../.
40767         * modules/crypto/gc-des: Moved from ../.
40768         * modules/crypto/gc-des-tests: Moved from ../.
40769         * modules/crypto/gc-hmac-md5: Moved from ../.
40770         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40771         * modules/crypto/gc-hmac-sha1: Moved from ../.
40772         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40773         * modules/crypto/gc-md2: Moved from ../.
40774         * modules/crypto/gc-md2-tests: Moved from ../.
40775         * modules/crypto/gc-md4: Moved from ../.
40776         * modules/crypto/gc-md4-tests: Moved from ../.
40777         * modules/crypto/gc-md5: Moved from ../.
40778         * modules/crypto/gc-md5-tests: Moved from ../.
40779         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40780         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40781         * modules/crypto/gc-random: Moved from ../.
40782         * modules/crypto/gc-rijndael: Moved from ../.
40783         * modules/crypto/gc-rijndael-tests: Moved from ../.
40784         * modules/crypto/gc-sha1: Moved from ../.
40785         * modules/crypto/gc-sha1-tests: Moved from ../.
40786         * modules/crypto/gc-tests: Moved from ../.
40787         * modules/crypto/hmac-md5: Moved from ../.
40788         * modules/crypto/hmac-md5-tests: Moved from ../.
40789         * modules/crypto/hmac-sha1: Moved from ../.
40790         * modules/crypto/hmac-sha1-tests: Moved from ../.
40791         * modules/crypto/md2: Moved from ../.
40792         * modules/crypto/md2-tests: Moved from ../.
40793         * modules/crypto/md4: Moved from ../.
40794         * modules/crypto/md4-tests: Moved from ../.
40795         * modules/crypto/md5: Moved from ../.
40796         * modules/crypto/md5-tests: Moved from ../.
40797         * modules/crypto/memxor: Moved from ../.
40798         * modules/crypto/rijndael: Moved from ../.
40799         * modules/crypto/rijndael-tests: Moved from ../.
40800         * modules/crypto/sha1: Moved from ../.
40801
40802 2007-03-30  James Youngman  <jay@gnu.org>
40803
40804         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40805         rename() to change the ctime of a file (because ctime is unaffected
40806         by rename on jfs2 on AIX 5.1).
40807         (main): Start by doing cleanup, in case a previous run failed leaving
40808         test files behind.
40809
40810 2007-03-31  Bruno Haible  <bruno@clisp.org>
40811
40812         Support old proprietary implementations of iconv.
40813         * modules/iconv_open: New file.
40814         * lib/iconv_.h: New file.
40815         * m4/iconv_h.m4: New file.
40816         * lib/iconv_open.c: New file.
40817         * lib/iconv_open-aix.gperf: New file.
40818         * lib/iconv_open-hpux.gperf: New file.
40819         * lib/iconv_open-irix.gperf: New file.
40820         * lib/iconv_open-osf.gperf: New file.
40821         * m4/iconv_open.m4: New file.
40822         * modules/linebreak (Depends-on): Add iconv_open.
40823         * modules/striconv (Depends-on): Likewise.
40824         * modules/striconveh (Depends-on): Likewise.
40825         * modules/unicodeio (Depends-on): Likewise.
40826         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40827         (iconv_t)(-1).
40828         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40829         conversion if cd is (iconv_t)(-1).
40830         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40831         is not possible.
40832
40833 2007-03-31  Bruno Haible  <bruno@clisp.org>
40834
40835         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40836         work on Solaris either. Protect also second use of "autodetect_jp".
40837
40838 2007-03-31  Bruno Haible  <bruno@clisp.org>
40839
40840         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40841         the function is not present.
40842
40843 2007-03-31  Bruno Haible  <bruno@clisp.org>
40844
40845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40846         the function is not present.
40847
40848 2007-03-31  Bruno Haible  <bruno@clisp.org>
40849
40850         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40851         a bug in HP-UX iconv_open().
40852
40853 2007-03-31  Bruno Haible  <bruno@clisp.org>
40854
40855         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40856         (Mathematics <math.h>): New section, add fpieee.
40857         (Input/output <stdio.h>): Add fseterr.
40858         (Mathematics <math.h>): New section, add printf-frexp.
40859         (Container data structures): Add sublist.
40860         (Core language properties): Add fpucw, inline.
40861         (Functions for greatest-width integer types <inttypes.h>): Add
40862         imaxabs, imaxdiv, inttypes.
40863         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40864         isnanl-nolibm, ldexp.
40865         (Mathematics <math.h>): New section, add printf-frexpl.
40866         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40867         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40868         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40869         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40870         (Unicode string functions): Add unistr/u*-mbtoucr.
40871         (Java): Add javacomp-script, javaexec-script.
40872         (C#): Add csharpcomp-script, csharpexec-script.
40873         (Support for building libraries and executables): Add havelib,
40874         relocatable-*.
40875         (Support for maintaining and releasing projects): Renamed from
40876         'Support for maintaining and release projects'. Add announce-gen.
40877
40878 2007-03-31  Bruno Haible  <bruno@clisp.org>
40879
40880         * README: Talk primarily about git.
40881         (git and CVS): Renamed from CVS.
40882         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40883         gnulib is available through git.
40884         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40885
40886 2007-03-30  Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40889         * lib/poll_.h: Likewise.
40890         * lib/stat_.h: Likewise.
40891         * lib/sys_time_.h: Likewise.
40892         * lib/sysexit_.h: Likewise.
40893         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40894         * lib/stdbool_.h: Likewise.
40895         * lib/byteswap_.h: Add double-inclusion guard.
40896
40897 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40898
40899         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40900
40901 2007-03-30  Karl Berry  <karl@gnu.org>
40902
40903         * config/srclist-update: double space after USA in the license
40904         substitution, since that's how it's usually (?) written.
40905
40906 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40907
40908         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40909         reported by Bruno Haible.
40910
40911 2007-03-29  Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40914         a bug in AIX iconv().
40915
40916 2007-03-29  Bruno Haible  <bruno@clisp.org>
40917
40918         * modules/ldexpl-tests: New file.
40919         * tests/test-ldexpl.c: New file.
40920
40921 2007-03-29  Bruno Haible  <bruno@clisp.org>
40922
40923         * lib/ldexpl.c: Include fpucw.h.
40924         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40925         multiplication.
40926         * modules/ldexpl (Depends-on): Add fpucw.
40927
40928 2007-03-29  Bruno Haible  <bruno@clisp.org>
40929
40930         * modules/ldexpl: New file.
40931         * m4/ldexpl.m4: New file.
40932         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40933         set.
40934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40935         REPLACE_LDEXPL.
40936         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40937         REPLACE_LDEXPL.
40938         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40939         gl_FUNC_LDEXPL_WORKS.
40940         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40941         * modules/mathl (Files): Remove lib/ldexpl.c.
40942         (Depends-on): Add ldexpl.
40943
40944 2007-03-29  Bruno Haible  <bruno@clisp.org>
40945
40946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40947
40948 2007-03-29  Bruno Haible  <bruno@clisp.org>
40949
40950         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40951         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40952         and possibly also HP-UX.
40953         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40954         work on AIX, IRIX, HP-UX, OSF/1.
40955         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40956         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40957         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40958         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40959         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
40960         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40961
40962 2007-03-29  Bruno Haible  <bruno@clisp.org>
40963
40964         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
40965
40966 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40967
40968         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
40969         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
40970
40971 2007-03-29  Eric Blake  <ebb9@byu.net>
40972
40973         * lib/acl-internal.h: Remove redundant include.
40974         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
40975         Cygwin when a file is locked.
40976
40977 2007-03-29  Bruno Haible  <bruno@clisp.org>
40978
40979         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
40980         file.
40981         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
40982
40983 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40984
40985         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
40986         try to remove a parent directory if the child couldn't be removed
40987         (except for the first rmdir, which could fail because the child
40988         doesn't exist).  Problem reported by Jeff Blaine in
40989         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
40990
40991 2007-03-28  Bruno Haible  <bruno@clisp.org>
40992
40993         * lib/striconveh.c (utf8conv_carefully): New function.
40994         (mem_cd_iconveh_internal): Invoke it.
40995
40996 2007-03-28  Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
40999         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41000         input.
41001         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41002         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41003         unistr/u8-uctomb.
41004
41005 2007-03-28  Bruno Haible  <bruno@clisp.org>
41006
41007         * modules/unistr/u8-mbtoucr: New file.
41008         * lib/unistr/u8-mbtoucr.c: New file.
41009         * modules/unistr/u16-mbtoucr: New file.
41010         * lib/unistr/u16-mbtoucr.c: New file.
41011         * modules/unistr/u16-mbtoucr: New file.
41012         * lib/unistr/u16-mbtoucr.c: New file.
41013         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41014
41015 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41016             Bruno Haible  <bruno@clisp.org>
41017
41018         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41019         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41020         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41021
41022         * m4/stdio_h.m4: Add stubs for vasprintf too.
41023
41024         * modules/stdio: Support vasprintf in sed command.
41025
41026         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41027         vasprintf.h.  Add stdio module indicator.
41028
41029         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41030         vasprintf.h.
41031
41032         * lib/vasprintf.h: File removed.
41033
41034         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41035         * lib/vasprintf.c: Ditto.
41036         * lib/xvasprintf.c: Ditto.
41037         * tests/test-vasprintf-posix.c: Ditto.
41038         * tests/test-vasprintf.c: Ditto.
41039
41040 2007-03-27  Bruno Haible  <bruno@clisp.org>
41041
41042         Make vasnprintf multithread-safe.
41043         * lib/vasnprintf.c (decimal_point_char): New function.
41044         (VASNPRINTF): Use it.
41045         Suggested by Simon Josefsson.
41046
41047 2007-03-27  Eric Blake  <ebb9@byu.net>
41048
41049         Support sub-second birthtime on cygwin.
41050         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41051         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41052         (get_stat_birthtime): Also work with st_birthtim.
41053
41054 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41055
41056         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41057         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41058         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41059         (get_stat_birthtime_ns): Simplify compile-time tests.
41060         (get_stat_birthtime): Change the API to look like
41061         get_stat_mtime etc., except return a negative tv_nsec on error.
41062         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41063         Don't check for "spare" fields.
41064         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41065         or for struct stat.st_birthtime, as these tests aren't used.
41066         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41067
41068 2007-03-27  Bruno Haible  <bruno@clisp.org>
41069
41070         * lib/stat-time.h: Include <sys/stat.h>.
41071
41072 2007-03-27  James Youngman  <jay@gnu.org>
41073
41074         * lib/stat-time.h (get_stat_birthtime): New function for
41075           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41076         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41077           and its variants.
41078         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41079         * modules/stat-time-test: New file.
41080         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41081
41082 2007-03-26  Bruno Haible  <bruno@clisp.org>
41083
41084         Better support of signalling NaNs.
41085         * lib/atanl.c: Include isnanl.h.
41086         (atanl): Perform test for NaN at the beginning of the function and
41087         through a call to isnanl.
41088         * lib/cosl.c: Include isnanl.h.
41089         (cosl): Perform test for NaN at the beginning of the function and
41090         through a call to isnanl.
41091         * lib/ldexpl.c: Include isnanl.h.
41092         (ldexpl): Perform test for NaN through a call to isnanl.
41093         * lib/logl.c: Include isnanl.h.
41094         (logl): Perform test for NaN at the beginning of the function and
41095         through a call to isnanl.
41096         * lib/sinl.c: Include isnanl.h.
41097         (sinl): Perform test for NaN at the beginning of the function and
41098         through a call to isnanl.
41099         * lib/sqrtl.c: Include isnanl.h.
41100         (sqrtl): Perform test for NaN at the beginning of the function and
41101         through a call to isnanl.
41102         * lib/tanl.c: Include isnanl.h.
41103         (tanl): Perform test for NaN at the beginning of the function and
41104         through a call to isnanl.
41105         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41106         * modules/mathl (Depends-on): Add isnanl.
41107
41108 2007-03-26  Eric Blake  <ebb9@byu.net>
41109
41110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41111         regression in logic sense of previous patch.
41112
41113 2007-03-26  Bruno Haible  <bruno@clisp.org>
41114
41115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41116         unportable shell command "if ! ...".
41117         Reported by Ralf Wildenhues.
41118
41119 2007-03-25  Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41122         <sysexits.h> file, and only add EX_CONFIG.
41123         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41124         absolute file name and whether it is sufficient. Substitute also
41125         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41126         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41127         ABSOLUTE_SYSEXITS_H into sysexits.h.
41128
41129 2007-03-25  Bruno Haible  <bruno@clisp.org>
41130
41131         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41132         hints is NULL.
41133
41134 2007-03-25  Bruno Haible  <bruno@clisp.org>
41135
41136         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41137         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41138
41139 2007-03-25  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/vasnprintf.c: Include langinfo.h.
41142         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41143         multithread-safe.
41144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41153         Reported by Simon Josefsson.
41154
41155 2007-03-25  Bruno Haible  <bruno@clisp.org>
41156
41157         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41158         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41159         * modules/vasnprintf (Depends-on): Add stdint.
41160
41161 2007-03-25  Bruno Haible  <bruno@clisp.org>
41162
41163         * modules/fpieee: New file.
41164         * m4/fpieee.m4: New file.
41165         * modules/isnan-nolibm (Depends-on): Add fpieee.
41166         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41167         * modules/isnanl (Depends-on): Add fpieee.
41168
41169 2007-03-25  Bruno Haible  <bruno@clisp.org>
41170
41171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41172
41173 2007-03-25  Bruno Haible  <bruno@clisp.org>
41174
41175         Avoid test failures on IRIX 6.5.
41176         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41177         (main): Use it.
41178         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41179         macros.
41180         (main): Use them.
41181
41182 2007-03-25  Bruno Haible  <bruno@clisp.org>
41183
41184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41185         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41186         exists but doesn't work.
41187         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41188         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41190         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41191
41192 2007-03-25  Bruno Haible  <bruno@clisp.org>
41193
41194         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41195         returns inf. Needed on IRIX 6.5.
41196
41197 2007-03-25  Bruno Haible  <bruno@clisp.org>
41198
41199         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41200         (main): Use isnanl instead of x != x idiom.
41201         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41202
41203         * tests/test-frexp.c: Include isnan.h.
41204         (main): Use isnan instead of x != x idiom.
41205         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41206
41207 2007-03-25  Bruno Haible  <bruno@clisp.org>
41208
41209         * tests/test-frexp.c (NaN): New function/macro.
41210         (main): Use it instead of 0.0 / 0.0.
41211         * tests/test-isnan.c (NaN): New function/macro.
41212         (main): Use it instead of 0.0 / 0.0.
41213         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41214         (test_function): Use it instead of 0.0 / 0.0.
41215         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41216         (test_function): Use it instead of 0.0 / 0.0.
41217         * tests/test-snprintf-posix.h (NaN): New function/macro.
41218         (test_function): Use it instead of 0.0 / 0.0.
41219         * tests/test-sprintf-posix.h (NaN): New function/macro.
41220         (test_function): Use it instead of 0.0 / 0.0.
41221         * tests/test-fprintf-posix.h (NaN): New function/macro.
41222         (test_function): Use it instead of 0.0 / 0.0.
41223         * tests/test-printf-posix.h (NaN): New function/macro.
41224         (test_function): Use it instead of 0.0 / 0.0.
41225
41226         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41227
41228 2007-03-25  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41231
41232 2007-03-25  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/regexec.c (merge_state_with_log): Make static.
41235
41236 2007-03-25  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/trigl.c (kernel_rem_pio2): Make static.
41239
41240 2007-03-25  Bruno Haible  <bruno@clisp.org>
41241
41242         * lib/sincosl.c (sincosl_table): Make static.
41243
41244 2007-03-25  Bruno Haible  <bruno@clisp.org>
41245
41246         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41247         if the compiler does not support C99.
41248
41249 2007-03-25  Bruno Haible  <bruno@clisp.org>
41250
41251         * modules/time (Makefile.am): Ensure all rule action lines start with a
41252         tab.
41253
41254 2007-03-24  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/tsearch-tests: New file.
41257         * tests/test-tsearch.sh: New file.
41258         * tests/test-tsearch.c: New file, mostly copied from glibc.
41259
41260         * modules/search-tests: New file.
41261         * tests/test-search.c: New file.
41262
41263         * modules/search: New file.
41264         * lib/search_.h: New file, incorporating lib/tsearch.h.
41265         * m4/search_h.m4: New file.
41266         * lib/tsearch.h: Remove file.
41267         * lib/tsearch.c: Include search.h instead of tsearch.h.
41268         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41269         HAVE_TSEARCH.
41270         * modules/tsearch (Files): Remove lib/tsearch.h.
41271         (Depends-on): Add search.
41272         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41273         (Include): Change tsearch.h into search.h.
41274
41275 2007-03-24  Bruno Haible  <bruno@clisp.org>
41276
41277         * modules/fpucw: New file.
41278         * lib/fpucw.h: New file.
41279         * lib/frexp.c: Include fpucw.h.
41280         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41281         (FUNC): Use them.
41282         * lib/printf-frexp.c: Include fpucw.h.
41283         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41284         (FUNC): Use them.
41285         * lib/vasnprintf.c: Include fpucw.h.
41286         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41287         'long double' calculations.
41288         * tests/test-frexpl.c: Include fpucw.h.
41289         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41290         * tests/test-printf-frexpl.c: Include fpucw.h.
41291         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41292         * modules/frexpl (Depends-on): Add fpucw.
41293         * modules/printf-frexpl (Depends-on): Likewise.
41294         * modules/fprintf-posix (Depends-on): Likewise.
41295         * modules/snprintf-posix (Depends-on): Likewise.
41296         * modules/sprintf-posix (Depends-on): Likewise.
41297         * modules/vasnprintf-posix (Depends-on): Likewise.
41298         * modules/vasprintf-posix (Depends-on): Likewise.
41299         * modules/vfprintf-posix (Depends-on): Likewise.
41300         * modules/vsnprintf-posix (Depends-on): Likewise.
41301         * modules/vsprintf-posix (Depends-on): Likewise.
41302         * modules/frexpl-tests (Depends-on): Likewise.
41303         * modules/printf-frexpl-tests (Depends-on): Likewise.
41304
41305 2007-03-24  Bruno Haible  <bruno@clisp.org>
41306
41307         * lib/float+.h: New file.
41308         * lib/isnan.c: Include float+.h.
41309         (SIZE): New macro.
41310         (FUNC): Compare only SIZE bytes of the value.
41311         * lib/vasnprintf.c: Include float+.h.
41312         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41313         SIZEOF_LDBL or SIZEOF_DBL bytes.
41314         * modules/isnan-nolibm (Files): Add lib/float+.h.
41315         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41316         * modules/isnanl (Files): Add lib/float+.h.
41317         * modules/vasnprintf (Files): Add lib/float+.h.
41318
41319 2007-03-24  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41322         include isnanl-nolibm.h.
41323
41324 2007-03-24  Bruno Haible  <bruno@clisp.org>
41325
41326         * tests/test-read-file.c (main): Don't produce spurious output for
41327         expected situations. Make the test fail if it encountered unexpected
41328         results.
41329
41330 2007-03-24  Bruno Haible  <bruno@clisp.org>
41331
41332         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41333         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41334
41335 2007-03-24  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41338
41339 2007-03-24  Bruno Haible  <bruno@clisp.org>
41340
41341         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41342         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41343
41344         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41345         * modules/utf8-ucs4: Turn into a symbolic link to module
41346         unistr/u8-mbtouc.
41347
41348         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41349         utf8-ucs4-unsafe.
41350         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41351         unistr/u8-mbtouc-unsafe.
41352
41353         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41354         * modules/utf16-ucs4: Turn into a symbolic link to module
41355         unistr/u16-mbtouc.
41356
41357         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41358         utf16-ucs4-unsafe.
41359         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41360         unistr/u16-mbtouc-unsafe.
41361
41362         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41363         * modules/ucs4-utf8: Turn into a symbolic link to module
41364         unistr/u8-ubtomb.
41365
41366         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41367         * modules/ucs4-utf16: Turn into a symbolic link to module
41368         unistr/u16-ubtomb.
41369
41370 2007-03-24  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41373         Enable the function only if HAVE_INLINE.
41374         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41375         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41376         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41377         Enable the function only if HAVE_INLINE.
41378         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41379         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41380         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41381         Enable the function only if HAVE_INLINE.
41382         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41383         Enable the function only if HAVE_INLINE.
41384         * modules/utf8-ucs4: Update.
41385         * modules/utf8-ucs4-unsafe: Update.
41386         * modules/utf16-ucs4: Update.
41387         * modules/utf16-ucs4-unsafe: Update.
41388         * modules/ucs4-utf8: Update.
41389         * modules/ucs4-utf16: Update.
41390
41391 2007-03-24  Bruno Haible  <bruno@clisp.org>
41392
41393         * lib/utf8-ucs4.h: Remove file.
41394         * lib/utf8-ucs4-unsafe.h: Remove file.
41395         * lib/utf16-ucs4.h: Remove file.
41396         * lib/utf16-ucs4-unsafe.h: Remove file.
41397         * lib/ucs4-utf8.h: Remove file.
41398         * lib/ucs4-utf16.h: Remove file.
41399         * lib/unistr.h: Include their previous contents.
41400         * m4/utf-ucs4.m4: Remove file.
41401         * m4/ucs4-utf.m4: Remove file.
41402         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41403         (Depends-on): Add unistr/base.
41404         (configure.ac): Remove gl_UTF_UCS4.
41405         (Makefile.am): Update.
41406         (Include): Change to unistr.h.
41407         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41408         (Depends-on): Add unistr/base.
41409         (configure.ac): Remove gl_UTF_UCS4.
41410         (Makefile.am): Update.
41411         (Include): Change to unistr.h.
41412         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41413         (Depends-on): Add unistr/base.
41414         (configure.ac): Remove gl_UTF_UCS4.
41415         (Makefile.am): Update.
41416         (Include): Change to unistr.h.
41417         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41418         (Depends-on): Add unistr/base.
41419         (configure.ac): Remove gl_UTF_UCS4.
41420         (Makefile.am): Update.
41421         (Include): Change to unistr.h.
41422         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41423         (Depends-on): Add unistr/base.
41424         (configure.ac): Remove gl_UCS4_UTF.
41425         (Makefile.am): Update.
41426         (Include): Change to unistr.h.
41427         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41428         (Depends-on): Add unistr/base.
41429         (configure.ac): Remove gl_UCS4_UTF.
41430         (Makefile.am): Update.
41431         (Include): Change to unistr.h.
41432         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41433         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41434         utf8-ucs4-unsafe.h.
41435         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41436         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41437         utf16-ucs4-unsafe.h.
41438         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41439         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41440         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41441         * lib/unistr/u8-strchr.c: Likewise.
41442         * lib/unistr/u8-strrchr.c: Likewise.
41443         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41444         * lib/unistr/u16-strchr.c: Likewise.
41445         * lib/unistr/u16-strrchr.c: Likewise.
41446         * lib/striconveh.c: Update.
41447         * lib/linebreak.c: Update.
41448
41449 2007-03-24  Bruno Haible  <bruno@clisp.org>
41450
41451         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41452         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41453
41454 2007-03-22  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41457
41458 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41459
41460         * MODULES.html.sh (File system functions): New module write-any-file.
41461         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41462         * m4/write-any-file.m4: New files.
41463
41464 2007-03-23  Eric Blake  <ebb9@byu.net>
41465
41466         * gnulib-tool: Rearrange space-tab sequences, since some editors
41467         like to eat them.
41468
41469 2007-03-23  Eric Blake  <ebb9@byu.net>
41470
41471         * lib/version-etc.c (version_etc_va): Update license wording to
41472         be more concise.  Recommended by Richard Stallman.
41473
41474 2007-03-22  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/poll.c (MSG_PEEK): New fallback definition.
41477
41478 2007-03-22  Bruno Haible  <bruno@clisp.org>
41479
41480         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41481         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41482         (main): Update.
41483         Fixes a compilation error on BeOS.
41484
41485 2007-03-22  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/frexpl-tests: New file.
41488         * tests/test-frexpl.c: New file.
41489
41490         * modules/frexpl: New file.
41491         * m4/frexpl.m4: New file.
41492         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41493         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41495         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41496         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41497         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41498
41499 2007-03-22  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/frexpl.c: Share code with lib/frexp.c.
41502         * modules/mathl (Files): Add lib/frexp.c.
41503         (Depends-on): Add isnanl-nolibm.
41504
41505 2007-03-22  Bruno Haible  <bruno@clisp.org>
41506
41507         * modules/printf-frexp (Files): Add m4/frexp.m4.
41508         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41509         only if the found frexp function actually works.
41510
41511 2007-03-22  Bruno Haible  <bruno@clisp.org>
41512
41513         * lib/frexp.c: Remove older implementation that uses divisions.
41514
41515 2007-03-21  Bruno Haible  <bruno@clisp.org>
41516
41517         * modules/frexp-tests: New file.
41518         * tests/test-frexp.c: New file.
41519
41520         * modules/frexp: New file.
41521         * lib/frexp.c: New file.
41522         * m4/frexp.m4: New file.
41523         * lib/math_.h (frexp): New declaration.
41524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41525         REPLACE_FREXP.
41526         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41527
41528 2007-03-21  Bruno Haible  <bruno@clisp.org>
41529
41530         * modules/isnanl-tests: New file.
41531         * tests/test-isnanl.c: New file.
41532
41533         * modules/isnanl: New file.
41534         * lib/isnanl.h: New file.
41535         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41536         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41537         gl_FUNC_ISNANL_WORKS.
41538         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41539         New macros.
41540
41541 2007-03-21  Bruno Haible  <bruno@clisp.org>
41542
41543         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41544         lib/isnanl.h.
41545         (Include): Update.
41546         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41547         * lib/vasnprintf.c: Update.
41548         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41549         tests/test-isnanl.h, remove tests/test-isnanl.c.
41550         (Makefile.am): Update.
41551         * tests/test-isnanl-nolibm.c: New file.
41552         * tests/test-isnanl.h: New file.
41553         * tests/test-isnanl.c: Remove file.
41554
41555 2007-03-21  Jim Meyering  <jim@meyering.net>
41556
41557         When trying to open ".", treat ESTALE like EACCES.
41558         * lib/savewd.c (savewd_save): Resort to forking not just upon
41559         failure with EACCES, but also when errno is ESTALE.
41560
41561 2007-03-20  Bruno Haible  <bruno@clisp.org>
41562
41563         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41564         Needed on AIX 5.1. Reported by Matthew Woehlke.
41565
41566 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41567
41568         Suggestions by Bruno Haible:
41569         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41570         our own.
41571         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41572         * modules/acl (Depends-on): Add gettext.
41573
41574 2007-03-19  Bruno Haible  <bruno@clisp.org>
41575
41576         * modules/iconvme: Remove file.
41577         * lib/iconvme.h: Remove file.
41578         * lib/iconvme.c: Remove file.
41579         * m4/iconvme.m4: Remove file.
41580
41581 2007-03-19  Bruno Haible  <bruno@clisp.org>
41582
41583         * doc/relocatable-maint.texi: Break long shell script line.
41584         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41585
41586 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41587
41588         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41589         handle file_has_acl.
41590         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41591         * lib/acl.c: Move header inclusions and related macro defns into
41592         lib/acl-internal.h.
41593         (S_ISLNK): Remove defn, since that's now done for us.
41594         (file_has_acl): Move to lib/file-has-acl.c.
41595         Call acl_trivial if available.  This is the crucial part of the fix.
41596         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41597         shared within the library.  Rewrite a bit, partly to make it compatible
41598         with the GNU coding style.
41599         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41600         Remove unnecessary double-quotes.
41601         Don't test for acl_to_text; the build will catch that.
41602         Replace acl_entries if it doesn't exist and it is needed.
41603         Check for -lsec and acl_trivial (as used on Solaris 10).
41604         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41605         lib/file-has-acl.c.
41606         (Depends-on): Add sys_stat, for S_ISLNK.
41607
41608 2007-03-19  Ben Pfaff  <blp@gnu.org>
41609
41610         * doc/gnulib.texi: Fix typos.
41611         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41612
41613 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41614
41615         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41616         If size is zero here, buf must be zero.
41617
41618 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41619
41620         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41621         <bruno@clisp.org>.
41622
41623 2007-03-18  Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41626         Suggested by Eric Blake.
41627
41628 2007-03-18  Ben Pfaff  <blp@gnu.org>
41629
41630         * doc/relocatable.texi: Recommend using as prefix a directory
41631         that does not exist and will never be created.  Based on
41632         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41633         and others.
41634
41635 2007-03-17  Bruno Haible  <bruno@clisp.org>
41636
41637         * lib/fchownat.c: Include lchown.h.
41638
41639 2007-03-17  Bruno Haible  <bruno@clisp.org>
41640
41641         Fix endless loop when the given allocated size was > INT_MAX.
41642         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41643         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41644         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41645         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41646         * lib/sprintf.c (sprintf): Likewise.
41647
41648 2007-03-17  Bruno Haible  <bruno@clisp.org>
41649
41650         * tests/test-argp-2.sh (func_compare): Output a context diff.
41651
41652 2007-03-17  Bruno Haible  <bruno@clisp.org>
41653
41654         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41655         locale's decimal-point character.
41656
41657 2007-03-17  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41660         before comparing it. Needed because on some platforms (e.g. x86) a
41661         'long double' occupies less bytes than sizeof (long double).
41662
41663 2007-03-17  Bruno Haible  <bruno@clisp.org>
41664
41665         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41666         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41667         * tests/test-getaddrinfo.c (simple): Likewise.
41668         * tests/test-read-file.c (main): Likewise.
41669
41670 2007-03-17  Bruno Haible  <bruno@clisp.org>
41671
41672         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41673
41674 2007-03-17  Bruno Haible  <bruno@clisp.org>
41675
41676         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41677         unused variable.
41678
41679 2007-03-17  Bruno Haible  <bruno@clisp.org>
41680
41681         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41682         * tests/test-c-strncasecmp.c: Likewise.
41683
41684 2007-03-17  Bruno Haible  <bruno@clisp.org>
41685
41686         * modules/stdlib (Depends-on): Add unistd.
41687         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41688         Needed for MacOS X 10.3.
41689
41690 2007-03-17  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41693
41694 2007-03-17  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41697
41698 2007-03-17  Bruno Haible  <bruno@clisp.org>
41699
41700         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41701         to reflect files copied from gnulib (with or without modifications).
41702         Suggested by Jim Meyering.
41703
41704 2007-03-17  Eric Blake  <ebb9@byu.net>
41705
41706         * NEWS: Document stdlib change from 2007-02-18.
41707
41708 2007-03-17  Jim Meyering  <jim@meyering.net>
41709
41710         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41711         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41712         someone uses a name containing shell meta-characters.
41713         Reported by Alfred M. Szmidt.
41714
41715         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41716
41717 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41718
41719         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41720         and copy gettext configuration files only if configure.ac contains
41721         a use of AM_GNU_GETTEXT_VERSION.
41722
41723 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41724
41725         * build-aux/bootstrap (gnulib_name): New variable.
41726         (gnulib_tool_options): Use it.
41727
41728 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41729
41730         * tests/test-des.c: Use new namespace.
41731
41732 2007-03-15  Bruno Haible  <bruno@clisp.org>
41733
41734         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41735         Reported by James Youngman <jay@gnu.org>.
41736
41737 2007-03-15  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41740         declared prototype. Needed with cc on OSF/1 5.1.
41741
41742 2007-03-15  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41745         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41746         (struct gl_list_implementation): Add dispose_fn argument to the
41747         'create_empty', 'create' methods.
41748         (struct gl_list_impl_base): Add field 'dispose_fn'.
41749         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41750         argument.
41751         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41752         dispose_fn argument.
41753         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41754         dispose_fn on the dropped values.
41755         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41756         dispose_fn argument.
41757         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41758         dropped values.
41759         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41760         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41761         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41762         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41763         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41764         argument.
41765         (gl_tree_list_free): Call dispose_fn on the dropped values.
41766         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41767         the dropped values.
41768         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41769         Add dispose_fn argument.
41770         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41771         Call dispose_fn on the dropped values.
41772         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41773         Add dispose_fn argument.
41774         (gl_sublist_create): Initialize the 'dispose_fn' field.
41775         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41776         * tests/test-array_list.c (main): Update.
41777         * tests/test-carray_list.c (main): Update.
41778         * tests/test-avltree_list.c (main): Update.
41779         * tests/test-rbtree_list.c (main): Update.
41780         * tests/test-avltreehash_list.c (main): Update.
41781         * tests/test-rbtreehash_list.c (main): Update.
41782         * tests/test-linked_list.c (main): Update.
41783         * tests/test-linkedhash_list.c (main): Update.
41784         * tests/test-array_oset.c (main): Update.
41785
41786 2007-03-15  Bruno Haible  <bruno@clisp.org>
41787
41788         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41789         (gl_oset_create_empty): Add dispose_fn argument.
41790         (struct gl_oset_implementation): Add dispose_fn argument to
41791         'create_empty' method.
41792         (struct gl_oset_impl_base): Add dispose_fn field.
41793         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41794         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41795         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41796         values.
41797         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41798         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41799         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41800         dropped value.
41801         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41802         dropped value.
41803         * tests/test-array_oset.c (main): Update.
41804         * tests/test-avltree_oset.c (main): Update.
41805         * tests/test-rbtree_oset.c (main): Update.
41806         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41807
41808 2007-03-13  Bruno Haible  <bruno@clisp.org>
41809
41810         * tests/test-stdbool.c (i): Update after last patch.
41811
41812 2007-03-12  Bruno Haible  <bruno@clisp.org>
41813
41814         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41815         the iswprint macro. Needed on Solaris 2.5.1.
41816
41817 2007-03-12  Bruno Haible  <bruno@clisp.org>
41818
41819         * tests/test-printf-frexp.c (main): Declare x as volatile.
41820
41821 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41822
41823         * doc/gnulib.texi (Build robot for gnulib): New section.
41824
41825 2007-03-12  Jim Meyering  <jim@meyering.net>
41826
41827         * build-aux/bootstrap: New file.
41828         * build-aux/bootstrap.conf: New file, from coreutils.
41829
41830 2007-03-11  Bruno Haible  <bruno@clisp.org>
41831
41832         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41833
41834 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41835
41836         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41837         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41838         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41839
41840 2007-03-11  Bruno Haible  <bruno@clisp.org>
41841
41842         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41843         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41844
41845 2007-03-11  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41848         formula. Needed for SunPRO C 5.0.
41849
41850 2007-03-11  Bruno Haible  <bruno@clisp.org>
41851
41852         * modules/long-options (Depends-on): Add getopt.
41853
41854 2007-03-11  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/modechange (Depends-on): Add stdbool.
41857
41858 2007-03-11  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/i-ring (Depends-on): Add stdbool.
41861
41862 2007-03-11  Bruno Haible  <bruno@clisp.org>
41863
41864         * modules/gc-des (Depends-on): Add stdbool.
41865
41866 2007-03-11  Bruno Haible  <bruno@clisp.org>
41867
41868         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41869
41870 2007-03-11  Bruno Haible  <bruno@clisp.org>
41871
41872         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41873
41874 2007-03-11  Bruno Haible  <bruno@clisp.org>
41875
41876         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41877
41878 2007-03-11  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/vasnprintf.c (sprintf): Undefine.
41881
41882 2007-03-11  Bruno Haible  <bruno@clisp.org>
41883
41884         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41885         initializers in SunPRO C and Compaq C compilers.
41886
41887 2007-03-11  Bruno Haible  <bruno@clisp.org>
41888
41889         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41890         decrementing code ANSI C compliant.
41891
41892 2007-03-11  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41895         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41896
41897 2007-03-11  Bruno Haible  <bruno@clisp.org>
41898
41899         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41900         <stdbool.h> substitute doesn't pass.
41901
41902 2007-03-11  Bruno Haible  <bruno@clisp.org>
41903
41904         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41905
41906 2007-03-11  Bruno Haible  <bruno@clisp.org>
41907
41908         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41909         script, for submission to autobuild.josefsson.org.
41910
41911 2007-03-10  Bruno Haible  <bruno@clisp.org>
41912
41913         * modules/canonicalize-lgpl-tests: New file.
41914         * tests/test-canonicalize-lgpl.sh: New file.
41915         * tests/test-canonicalize-lgpl.c: New file.
41916
41917         * modules/c-strcase-tests: New file.
41918         * tests/test-c-strcase.sh: New file.
41919         * tests/test-c-strcasecmp.c: New file.
41920         * tests/test-c-strncasecmp.c: New file.
41921
41922         * modules/atexit-tests: New file.
41923         * tests/test-atexit.sh: New file.
41924         * tests/test-atexit.c: New file.
41925
41926 2007-03-10  Bruno Haible  <bruno@clisp.org>
41927
41928         * tests/test-binary-io.sh: Use temporary filenames that are not so
41929         likely to clash with those of other tests (in a parallel make).
41930         * tests/test-binary-io.c: Likewise.
41931
41932 2007-03-10  Bruno Haible  <bruno@clisp.org>
41933
41934         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41935         fallback; use #error instead.
41936         Suggested by Simon Josefsson.
41937
41938 2007-03-10  Bruno Haible  <bruno@clisp.org>
41939
41940         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41941         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41942         first and the last.
41943
41944 2007-03-10  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41947
41948 2007-03-10  Bruno Haible  <bruno@clisp.org>
41949
41950         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41951         "make distcheck".
41952         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41953         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41954         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41955
41956 2007-03-10  Bruno Haible  <bruno@clisp.org>
41957
41958         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
41959         variable.
41960         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
41961         variable.
41962
41963 2007-03-09  Eric Blake  <ebb9@byu.net>
41964         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
41965
41966         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
41967         types are not being provided by gnulib.
41968         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
41969         types are supported.
41970
41971 2007-03-10  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/stdio_.h (__attribute__): New macro.
41974         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
41975         vsprintf): Specify __attribute__ __format__ for GCC.
41976         Suggested by Eric Blake.
41977
41978 2007-03-09  Bruno Haible  <bruno@clisp.org>
41979
41980         * modules/printf-posix-tests: New file.
41981         * tests/test-printf-posix.sh: New file.
41982         * tests/test-printf-posix.c: New file.
41983
41984         * modules/printf-posix: New file.
41985         * lib/printf.c: New file.
41986         * m4/printf-posix-rpl.m4: New file.
41987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
41988         REPLACE_PRINTF.
41989         * lib/stdio_.h (printf): New declaration.
41990         (format, __format__, ____printf____, ____scanf____, ____strftime____,
41991         ____strfmon____): New macros.
41992         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
41993         REPLACE_PRINTF.
41994
41995 2007-03-09  Bruno Haible  <bruno@clisp.org>
41996
41997         * tests/test-vasnprintf-posix2.sh: New file.
41998         * tests/test-vasnprintf-posix2.c: New file.
41999         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42000         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42001         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42002
42003         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42004         a locale dependent decimal point, rather than always '.'.
42005
42006 2007-03-09  Eric Blake  <ebb9@byu.net>
42007
42008         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42009         spite of platforms like Tandem/NSK that define it to -1.
42010
42011 2007-03-08  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/vprintf-posix-tests: New file.
42014         * tests/test-vprintf-posix.sh: New file.
42015         * tests/test-vprintf-posix.c: New file.
42016         * tests/test-printf-posix.h: New file.
42017
42018         * modules/vprintf-posix: New file.
42019         * lib/vprintf.c: New file.
42020         * m4/vprintf-posix.m4: New file.
42021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42022         REPLACE_VPRINTF.
42023         * lib/stdio_.h (vprintf): New declaration.
42024         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42025         REPLACE_VPRINTF.
42026
42027 2007-03-08  Bruno Haible  <bruno@clisp.org>
42028
42029         * modules/fprintf-posix-tests: New file.
42030         * tests/test-fprintf-posix.sh: New file.
42031         * tests/test-fprintf-posix.c: New file.
42032
42033         * modules/fprintf-posix: New file.
42034         * lib/fprintf.c: New file.
42035         * m4/fprintf-posix.m4: New file.
42036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42037         REPLACE_FPRINTF.
42038         * lib/stdio_.h (fprintf): New declaration.
42039         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42040         REPLACE_FPRINTF.
42041
42042 2007-03-08  Bruno Haible  <bruno@clisp.org>
42043
42044         * modules/vfprintf-posix-tests: New file.
42045         * tests/test-vfprintf-posix.sh: New file.
42046         * tests/test-vfprintf-posix.c: New file.
42047         * tests/test-fprintf-posix.h: New file.
42048         * tests/test-fprintf-posix.out: New file.
42049
42050         * modules/vfprintf-posix: New file.
42051         * lib/vfprintf.c: New file.
42052         * m4/vfprintf-posix.m4: New file.
42053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42054         REPLACE_VFPRINTF.
42055         * lib/stdio_.h (vfprintf): New declaration.
42056         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42057         REPLACE_VFPRINTF.
42058
42059 2007-03-08  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42062
42063 2007-03-08  Bruno Haible  <bruno@clisp.org>
42064
42065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42066         instead of 'expr' invocations.
42067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42072         Suggested by Paul Eggert.
42073
42074 2007-03-08  Bruno Haible  <bruno@clisp.org>
42075
42076         * modules/fseterr-tests: New file.
42077         * tests/test-fseterr.c: New file.
42078
42079         * modules/fseterr: New file.
42080         * lib/fseterr.h: New file.
42081         * lib/fseterr.c: New file.
42082
42083 2007-03-08  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42086         * lib/getopt_.h: Likewise.
42087         * lib/mbswidth.h: Likewise.
42088         * lib/setenv.h: Likewise.
42089         * lib/vasnprintf.h: Likewise.
42090         * lib/vasprintf.h: Likewise.
42091         * lib/verror.h: Likewise.
42092         * lib/xsetenv.h: Likewise.
42093         * lib/xvasprintf.h: Likewise.
42094
42095 2007-03-08  Jim Meyering  <jim@meyering.net>
42096
42097         * users.txt: Add parted.
42098
42099         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42100
42101 2007-03-07  Bruno Haible  <bruno@clisp.org>
42102
42103         * m4/printf.m4: Make the shell script snippets copy&pastable.
42104
42105 2007-03-02  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/netinet_in_.h: New file.
42108         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42109         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42110         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42111         (Depends-on): Add absolute-header.
42112         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42113         into netinet/in.h.
42114
42115 2007-03-03  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/sys_select_.h: New file.
42118         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42119         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42120         * modules/sys_select (Files): Add lib/sys_select_.h.
42121         (Depends-on): Add absolute-header.
42122         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42123         into sys/select.h.
42124
42125 2007-03-02  Bruno Haible  <bruno@clisp.org>
42126
42127         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42128         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42129         values.
42130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42131         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42132         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42133         * modules/sys_socket (Depends-on): Add absolute-header.
42134         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42135         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42136         (Include): Remove requirement of inclusion of <sys/types.h>.
42137
42138 2007-03-02  Bruno Haible  <bruno@clisp.org>
42139
42140         * lib/byteswap_.h (bswap_32): Fix formula.
42141
42142 2007-03-06  Bruno Haible  <bruno@clisp.org>
42143
42144         * modules/sprintf-posix-tests: New file.
42145         * tests/test-sprintf-posix.c: New file.
42146
42147         * modules/sprintf-posix: New file.
42148         * lib/sprintf.c: New file.
42149         * m4/sprintf-posix.m4: New file.
42150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42151         REPLACE_SPRINTF.
42152         * lib/stdio_.h (sprintf): New declaration.
42153         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42154         REPLACE_SPRINTF.
42155
42156 2007-03-06  Bruno Haible  <bruno@clisp.org>
42157
42158         * modules/vsprintf-posix-tests: New file.
42159         * tests/test-vsprintf-posix.c: New file.
42160         * tests/test-sprintf-posix.h: New file.
42161
42162         * modules/vsprintf-posix: New file.
42163         * lib/vsprintf.c: New file.
42164         * m4/vsprintf-posix.m4: New file.
42165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42166         REPLACE_VSPRINTF.
42167         * lib/stdio_.h (vsprintf): New declaration.
42168         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42169         REPLACE_VSPRINTF.
42170
42171 2007-03-06  Bruno Haible  <bruno@clisp.org>
42172
42173         * modules/vsnprintf (Depend-on): Remove minmax.
42174
42175 2007-03-06  Bruno Haible  <bruno@clisp.org>
42176
42177         * modules/snprintf-posix-tests: New file.
42178         * tests/test-snprintf-posix.c: New file.
42179
42180         * modules/snprintf-posix: New file.
42181         * m4/snprintf-posix.m4: New file.
42182         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42183         gl_FUNC_SNPRINTF.
42184         (gl_FUNC_SNPRINTF): Invoke it.
42185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42186         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42187         is set.
42188         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42189
42190 2007-03-06  Bruno Haible  <bruno@clisp.org>
42191
42192         * modules/vsnprintf-posix-tests: New file.
42193         * tests/test-vsnprintf-posix.c: New file.
42194         * tests/test-snprintf-posix.h: New file.
42195
42196         * modules/vsnprintf-posix: New file.
42197         * m4/vsnprintf-posix.m4: New file.
42198         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42199         gl_FUNC_VSNPRINTF.
42200         (gl_FUNC_VSNPRINTF): Invoke it.
42201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42202         * lib/stdio_.h (vsnprintf): Define as a replacement if
42203         REPLACE_VSNPRINTF is set.
42204         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42205
42206 2007-03-06  Bruno Haible  <bruno@clisp.org>
42207
42208         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42210
42211 2007-03-06  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42214         (asinl): Declare also if HAVE_DECL_ASINL is set.
42215         (atanl): Declare also if HAVE_DECL_ATANL is set.
42216         (ceill): Declare also if HAVE_DECL_CEILL is set.
42217         (cosl): Declare also if HAVE_DECL_COSL is set.
42218         (expl): Declare also if HAVE_DECL_EXPL is set.
42219         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42220         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42221         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42222         (logl): Declare also if HAVE_DECL_LOGL is set.
42223         (sinl): Declare also if HAVE_DECL_SINL is set.
42224         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42225         (tanl): Declare also if HAVE_DECL_TANL is set.
42226         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42228         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42229         declaration of frexpl, ldexpl.
42230         * modules/printf-frexpl (Depends-on): Add math.
42231         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42232
42233 2007-03-05  Bruno Haible  <bruno@clisp.org>
42234
42235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42236         frexpl and ldexpl are declared.
42237         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42238
42239 2007-03-05  Bruno Haible  <bruno@clisp.org>
42240
42241         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42242         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42243
42244 2007-03-05  Bruno Haible  <bruno@clisp.org>
42245
42246         * lib/stdio_.h: Include <stddef.h>.
42247
42248 2007-03-05  Bruno Haible  <bruno@clisp.org>
42249
42250         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42251
42252 2007-03-05  Bruno Haible  <bruno@clisp.org>
42253
42254         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42255         NetBSD 4, from Ralf Wildenhues.
42256
42257 2007-03-04  Bruno Haible  <bruno@clisp.org>
42258
42259         * lib/vasprintf.h: Update #if logic for the case when the functions
42260         exist but are overridden.
42261
42262 2007-03-04  Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42265         implementations: glibc-2.4 and MacOS X 10.3.
42266         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42267         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42268         * tests/test-vasprintf-posix.c (test_function): Likewise.
42269
42270 2007-03-04  Bruno Haible  <bruno@clisp.org>
42271
42272         * modules/vasprintf-posix-tests: New file.
42273         * tests/test-vasprintf-posix.c: New file.
42274
42275         * modules/vasprintf-posix: New file.
42276         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42277         defined.
42278         * m4/vasprintf-posix.m4: New file.
42279         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42280         gl_FUNC_VASPRINTF.
42281         (gl_FUNC_VASPRINTF): Invoke it.
42282         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42283         here.
42284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42285
42286 2007-03-04  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42289         REPLACE_GETTIMEOFDAY.
42290         * modules/sys_time (Makefile.am): Likewise.
42291         * m4/sys_time_h.m4: Likewise.
42292         * m4/gettimeofday.m4: Likewise.
42293
42294 2007-03-04  Bruno Haible  <bruno@clisp.org>
42295
42296         * modules/vasnprintf-posix-tests: New file.
42297         * tests/test-vasnprintf-posix.c: New file.
42298
42299         * modules/vasnprintf-posix: New file.
42300         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42301         printf-frexpl.h.
42302         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42303         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42304         REPLACE_VASNPRINTF is defined.
42305         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42306         gl_FUNC_VASNPRINTF.
42307         (gl_FUNC_VASNPRINTF): Invoke it.
42308         * m4/vasnprintf-posix.m4: New file.
42309         * m4/printf.m4: New file.
42310
42311 2007-03-04  Bruno Haible  <bruno@clisp.org>
42312
42313         Compile progreloc.c only if --enable-relocatable is specified.
42314         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42315         if --enable-relocatable was specified.
42316         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42317         lib_SOURCES.
42318
42319 2007-03-04  Jim Meyering  <jim@meyering.net>
42320
42321         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42322         Use it consistently, rather than enumerating errno constants.
42323
42324 2007-03-04  Bruno Haible  <bruno@clisp.org>
42325
42326         * modules/xvasprintf-tests: New file.
42327         * tests/test-xvasprintf.c: New file.
42328
42329         * modules/vasprintf-tests: New file.
42330         * tests/test-vasprintf.c: New file.
42331
42332         * modules/vasnprintf-tests: New file.
42333         * tests/test-vasnprintf.c: New file.
42334
42335         * modules/vsnprintf-tests: New file.
42336         * tests/test-vsnprintf.c: New file.
42337
42338         * modules/snprintf-tests: New file.
42339         * tests/test-snprintf.c: New file.
42340
42341 2007-03-04  Bruno Haible  <bruno@clisp.org>
42342
42343         Compile relocatable.c only if --enable-relocatable is specified.
42344         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42345         gl_RELOCATABLE_LIBRARY.
42346         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42347         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42348         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42349         gl_RELOCATABLE_LIBRARY.
42350         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42351         (Makefile.am): Remove lib_SOURCES.
42352         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42353         gl_RELOCATABLE_LIBRARY.
42354         (Makefile.am): Remove lib_SOURCES.
42355         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42356         always.
42357         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42358         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42359
42360 2007-03-04  Bruno Haible  <bruno@clisp.org>
42361
42362         * modules/argmatch-tests: New file.
42363         * tests/test-argmatch.c: New file.
42364
42365         * tests/test-allocsa.c (main): Halve the number of loop runs.
42366
42367         * modules/alloca-opt-tests: New file.
42368         * tests/test-alloca-opt.c: New file.
42369
42370 2007-03-04  Jim Meyering  <jim@meyering.net>
42371
42372         Work around difference between Linux ACLs and Solaris 10 ZFS.
42373         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42374         for EINVAL.
42375
42376 2007-03-03  Bruno Haible  <bruno@clisp.org>
42377
42378         * modules/relocatable-prog (Depends-on): Add back progreloc's
42379         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42380
42381 2007-03-03  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42384         * modules/relocatable-lib: New file.
42385
42386 2007-03-03  Bruno Haible  <bruno@clisp.org>
42387
42388         * modules/relocatable-prog: Renamed from modules/relocatable.
42389         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42390
42391 2007-03-03  Bruno Haible  <bruno@clisp.org>
42392
42393         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42394         m4/relocatable-lib.m4.
42395         (Depends-on): Remove 'relocatable'.
42396         (configure.ac): Add gl_RELOCATABLE_NOP.
42397
42398 2007-03-03  Bruno Haible  <bruno@clisp.org>
42399
42400         * modules/relocatable-prog-wrapper: New file.
42401         * modules/relocatable (Depends-on): Add it. Remove all other
42402         dependencies except progname.
42403         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42404
42405         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42406         (gl_FUNC_STRERROR): Nop.
42407         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42408
42409         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42410         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42411
42412         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42413         (gl_FUNC_READLINK): Update.
42414
42415         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42416
42417 2007-03-03  Bruno Haible  <bruno@clisp.org>
42418
42419         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42420         * modules/xreadlink (Depends-on): Add unistd.
42421         * modules/xreadlink-with-size (Depends-on): Likewise.
42422
42423 2007-03-03  Bruno Haible  <bruno@clisp.org>
42424
42425         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42426         extracted from gt_FUNC_SETENV.
42427         (gt_FUNC_SETENV): Remove macro.
42428         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42429         remove gt_FUNC_SETENV.
42430
42431 2007-03-03  Bruno Haible  <bruno@clisp.org>
42432
42433         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42434         ENABLE_RELOCATABLE here.
42435         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42436
42437 2007-03-03  Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42440         * tests/test-rbtreehash_list.c: Include progname.h.
42441         (main): Call set_program_name.
42442
42443         * modules/rbtree-oset-tests (Depends-on): Add progname.
42444         * tests/test-rbtree_oset.c: Include progname.h.
42445         (main): Call set_program_name.
42446
42447         * modules/rbtree-list-tests (Depends-on): Add progname.
42448         * tests/test-rbtree_list.c: Include progname.h.
42449         (main): Call set_program_name.
42450
42451         * modules/linked-list-tests (Depends-on): Add progname.
42452         * tests/test-linked_list.c: Include progname.h.
42453         (main): Call set_program_name.
42454
42455 2007-03-03  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42458         All uses of __restrict changed to _Restrict_.
42459         * lib/glob_.h (__restrict): Remove macro.
42460
42461 2007-03-02  Bruno Haible  <bruno@clisp.org>
42462
42463         * modules/gettext (configure.ac): Require gettext infrastructure
42464         from version 0.16.1.
42465
42466 2007-03-02  Bruno Haible  <bruno@clisp.org>
42467
42468         * modules/linkedhash-list-tests (Depends-on): Add progname.
42469         * tests/test-linkedhash_list.c: Include progname.h.
42470         (main): Call set_program_name.
42471
42472         * modules/carray-list-tests (Depends-on): Add progname.
42473         * tests/test-carray_list.c: Include progname.h.
42474         (main): Call set_program_name.
42475
42476         * modules/avltreehash-list-tests (Depends-on): Add progname.
42477         * tests/test-avltreehash_list.c: Include progname.h.
42478         (main): Call set_program_name.
42479
42480         * modules/avltree-oset-tests (Depends-on): Add progname.
42481         * tests/test-avltree_oset.c: Include progname.h.
42482         (main): Call set_program_name.
42483
42484         * modules/avltree-list-tests (Depends-on): Add progname.
42485         * tests/test-avltree_list.c: Include progname.h.
42486         (main): Call set_program_name.
42487
42488         * modules/array-oset-tests (Depends-on): Add progname.
42489         * tests/test-array_oset.c: Include progname.h.
42490         (main): Call set_program_name.
42491
42492         * modules/array-list-tests (Depends-on): Add progname.
42493         * tests/test-array_list.c: Include progname.h.
42494         (main): Call set_program_name.
42495
42496         * modules/argp-tests (Depends-on): Add progname.
42497         * tests/test-argp.c: Include argp.h first. Include progname.h.
42498         (main): Call set_program_name.
42499
42500 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42501
42502         * doc/gnulib-tool.texi (Initial import): Reword description of
42503         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42504         limited effect even if defined after the first system include.
42505
42506 2007-03-01  Bruno Haible  <bruno@clisp.org>
42507
42508         * build-aux/config.libpath: Update to libtool-1.5.22.
42509         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42510
42511 2007-03-01  Bruno Haible  <bruno@clisp.org>
42512
42513         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42514         foo_CFLAGS.
42515         Reported by Ralf Wildenhues.
42516
42517 2007-03-01  Bruno Haible  <bruno@clisp.org>
42518
42519         * build-aux/install-reloc: Remove object files left over by some
42520         compilers.
42521         Reported by Ralf Wildenhues.
42522
42523 2007-03-01  Bruno Haible  <bruno@clisp.org>
42524
42525         * build-aux/install-reloc: Break long lines.
42526
42527 2007-03-01  Bruno Haible  <bruno@clisp.org>
42528
42529         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42530         Reported by Ralf Wildenhues.
42531
42532 2007-03-01  Bruno Haible  <bruno@clisp.org>
42533
42534         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42535         include ordering constraints.
42536
42537 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42538
42539         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42541         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42542         as another example.
42543         * lib/time_.h: Fix misspelling.
42544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42545         Require gl_HEADER_TIME_H_DEFAULTS.
42546         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42547         * m4/time_r.m4 (gl_TIME_R): Likewise.
42548         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42549
42550 2007-03-01  Bruno Haible  <bruno@clisp.org>
42551
42552         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42553         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42554
42555 2007-03-01  Jim Meyering  <jim@meyering.net>
42556
42557         * modules/xreadlink (Maintainer): Add my name.
42558         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42559
42560 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42561             Bruno Haible  <bruno@clisp.org>
42562
42563         * build-aux/install-reloc: Compile also c-ctype.c.
42564         * build-aux/relocatable.sh.in: New file.
42565         * doc/relocatable.texi: New file.
42566         * doc/relocatable-maint.texi: New file.
42567         * doc/gnulib.texi: Include relocatable-maint.texi.
42568         * lib/progreloc.c: Include unistd.h unconditionally.
42569         * lib/relocwrapper.c: Include unistd.h unconditionally.
42570         Include c-ctype.h.
42571         (add_dotbin): Use c_tolower.
42572         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42573         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42574         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42575         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42576         to m4/relocatable-lib.m4.
42577         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42578         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42579         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42580         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42581         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42582         * modules/relocatable: New file.
42583         * modules/relocatable-lib: New file.
42584         * modules/relocatable-script: New file.
42585
42586 2007-02-28  Bruno Haible  <bruno@clisp.org>
42587
42588         Import --enable-relocatable infrastructure.
42589         * build-aux/config.libpath: New file, from GNU gettext.
42590         * build-aux/install-reloc: New file, from GNU gettext.
42591         * build-aux/reloc-ldflags: New file, from GNU gettext.
42592         * lib/relocatable.h: New file, from GNU gettext.
42593         * lib/relocatable.c: New file, from GNU gettext.
42594         * lib/relocwrapper.c: New file, from GNU gettext.
42595         * m4/relocatable.m4: New file, from GNU gettext.
42596
42597 2007-02-28  Bruno Haible  <bruno@clisp.org>
42598
42599         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42600
42601         * modules/xreadlink: New file, from GNU gettext with modifications.
42602         * lib/xreadlink.c: New file, from GNU gettext.
42603         * lib/xreadlink.h: Add comments.
42604         (xreadlink): New declaration.
42605
42606         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42607         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42608         lib/xreadlink-with-size.c.
42609         (configure.ac): Remove gl_XREADLINK invocation.
42610         (Makefile.am): Augment lib_SOURCES.
42611         * m4/xreadlink.m4: Remove file.
42612         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42613         (xreadlink_with_size): Renamed from xreadink.
42614         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42615         * modules/canonicalize (Depends-on): Replace xreadlink with
42616         xreadlink-with-size.
42617         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42618
42619 2007-02-25  Jim Meyering  <jim@meyering.net>
42620
42621         * build-aux/announce-gen: When complaining about excess arguments,
42622         list them.
42623
42624 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42625
42626         * README: Document signed integer overflow situation more
42627         accurately.
42628
42629 2007-02-25  Bruno Haible  <bruno@clisp.org>
42630
42631         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42632         'a' or 'A' conversion.
42633
42634 2007-02-25  Bruno Haible  <bruno@clisp.org>
42635
42636         * modules/filename: Renamed from modules/pathname.
42637         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42638         lib/concatpath.c with lib/concat-filename.c.
42639         (Makefile.am): Update.
42640         (Include): Replace pathname.h with filename.h.
42641         * lib/filename.h: Renamed from lib/pathname.h.
42642         (concatenated_filename): Renamed from concatenated_pathname.
42643         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42644         (concatenated_filename): Renamed from concatenated_pathname.
42645         * lib/findprog.c: Include filename.h instead of pathname.h.
42646         (find_in_path): Update.
42647         * lib/javacomp.c: Include filename.h instead of pathname.h.
42648         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42649         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42650         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42651         is_oldgcj_14_13_usable, is_javac_usable): Update.
42652         * lib/javaexec.c: Include filename.h instead of pathname.h.
42653         (execute_java_class): Update.
42654         * modules/findprog: Update.
42655         * modules/javacomp: Update.
42656         * modules/javaexec: Update.
42657         * MODULES.html.sh (File system functions): Add 'filename', remove
42658         'pathname'.
42659
42660 2007-02-25  Bruno Haible  <bruno@clisp.org>
42661
42662         * modules/printf-frexpl-tests: New file.
42663         * tests/test-printf-frexpl.c: New file.
42664
42665         * modules/printf-frexpl: New file.
42666         * lib/printf-frexpl.h: New file.
42667         * lib/printf-frexpl.c: New file.
42668         * m4/printf-frexpl.m4: New file.
42669
42670 2007-02-25  Bruno Haible  <bruno@clisp.org>
42671
42672         * modules/printf-frexp-tests: New file.
42673         * tests/test-printf-frexp.c: New file.
42674
42675         * modules/printf-frexp: New file.
42676         * lib/printf-frexp.h: New file.
42677         * lib/printf-frexp.c: New file.
42678         * m4/printf-frexp.m4: New file.
42679
42680 2007-02-25  Bruno Haible  <bruno@clisp.org>
42681
42682         Assume automake >= 1.10 for the tests.
42683         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42684         * modules/arctwo-tests: Likewise.
42685         * modules/argp-tests: Likewise.
42686         * modules/avltree-list-tests: Likewise.
42687         * modules/avltree-oset-tests: Likewise.
42688         * modules/avltreehash-list-tests: Likewise.
42689         * modules/carray-list-tests: Likewise.
42690         * modules/crc-tests: Likewise.
42691         * modules/des-tests: Likewise.
42692         * modules/gc-arcfour-tests: Likewise.
42693         * modules/gc-arctwo-tests: Likewise.
42694         * modules/gc-des-tests: Likewise.
42695         * modules/gc-hmac-md5-tests: Likewise.
42696         * modules/gc-hmac-sha1-tests: Likewise.
42697         * modules/gc-md2-tests: Likewise.
42698         * modules/gc-md4-tests: Likewise.
42699         * modules/gc-md5-tests: Likewise.
42700         * modules/gc-pbkdf2-sha1-tests: Likewise.
42701         * modules/gc-rijndael-tests: Likewise.
42702         * modules/gc-sha1-tests: Likewise.
42703         * modules/gc-tests: Likewise.
42704         * modules/getaddrinfo-tests: Likewise.
42705         * modules/hmac-md5-tests: Likewise.
42706         * modules/hmac-sha1-tests: Likewise.
42707         * modules/linked-list-tests: Likewise.
42708         * modules/linkedhash-list-tests: Likewise.
42709         * modules/lock-tests: Likewise.
42710         * modules/md2-tests: Likewise.
42711         * modules/md4-tests: Likewise.
42712         * modules/md5-tests: Likewise.
42713         * modules/rbtree-list-tests: Likewise.
42714         * modules/rbtree-oset-tests: Likewise.
42715         * modules/rbtreehash-list-tests: Likewise.
42716         * modules/read-file-tests: Likewise.
42717         * modules/rijndael-tests: Likewise.
42718         * modules/stdint-tests: Likewise.
42719         * modules/tls-tests: Likewise.
42720
42721 2007-02-24  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42724         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42725         function; instead check whether isnan with a double argument links.
42726         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42727         function; instead check whether isnan with a 'long double' argument
42728         links.
42729         Reported by Eric Blake <ebb9@byu.net>.
42730
42731 2007-02-24  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42734         defined.
42735         * lib/isnanl.c: Remove all code. Just include isnan.c.
42736         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42737
42738 2007-02-25  Jim Meyering  <jim@meyering.net>
42739
42740         Avoid conflicting types for 'unsetenv' on FreeBSD.
42741         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42742         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42743         in stdlib.h.
42744
42745 2007-02-24  Bruno Haible  <bruno@clisp.org>
42746
42747         * modules/isnanl-nolibm-tests: New file.
42748         * tests/test-isnanl.c: New file.
42749
42750         * modules/isnanl-nolibm: New file.
42751         * lib/isnanl.h: New file.
42752         * lib/isnanl.c: New file.
42753         * m4/isnanl.m4: New file.
42754
42755 2007-02-24  Bruno Haible  <bruno@clisp.org>
42756
42757         * modules/isnan-nolibm-tests: New file.
42758         * tests/test-isnan.c: New file.
42759
42760         * modules/isnan-nolibm: New file.
42761         * lib/isnan.h: New file.
42762         * lib/isnan.c: New file.
42763         * m4/isnan.m4: New file.
42764
42765 2007-02-24  Bruno Haible  <bruno@clisp.org>
42766
42767         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42768         assume that an exponent fits in 20 bits.
42769
42770 2007-02-24  Jim Meyering  <jim@meyering.net>
42771
42772         * m4/regex.m4: Update the description of the configure-time option,
42773         --without-included-regex, to state accurately what the defaults are,
42774         and perhaps to give people an idea why using this option is risky.
42775
42776 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42777
42778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42779         loops on small arguments.  This attempts to avoid the problem
42780         Bruno Haible reported for AIX 4.3.2 in
42781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42782
42783 2007-02-23  Bruno Haible  <bruno@clisp.org>
42784
42785         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42786         Needed for help2man.
42787
42788 2007-02-23  Karl Berry  <karl@gnu.org>
42789
42790         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42791         exists, foo.h should be cvs-ignored, not committed.
42792
42793 2007-02-23  Eric Blake  <ebb9@byu.net>
42794
42795         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42796         * lib/stat-time.h (includes): Likewise.
42797         * lib/utimecmp.c (includes): Likewise.
42798         * lib/utimens.h (includes): Likewise.
42799         * lib/getdate.y (includes): Also include "timespec.h" for use
42800         internal to the module.
42801         * modules/utimens (Depends-on): Revert yesterday's patch.
42802         * modules/nanosleep (Depends-on): Add missing dependency.
42803
42804 2007-02-22  Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/glob.c: Don't include getlogin_r.h.
42807
42808 2007-02-22  Jim Meyering  <jim@meyering.net>
42809
42810         * modules/utimens (Depends-on): Add timespec, required for
42811         utimens.h's inclusion of timespec.h.
42812
42813 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42814
42815         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42816         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42817         Schwab in
42818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42819         I'll try to think of a better way to fix the Solaris problem.
42820
42821         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42822         like glibc; on Solaris 10, it fails with errno == EINVAL.
42823         POSIX says the behavior is unspecified if the first argument is NULL,
42824         so play it safe and never pass NULL to the system getcwd.
42825
42826 2007-02-21  Jim Meyering  <jim@meyering.net>
42827
42828         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42829         of gettimeofday.  It would conflict with the one now always
42830         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42831         an IRIX 6.5 build failure.
42832
42833 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42834
42835         Minor fixups to port to Solaris 10 with Sun C 5.8.
42836         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42837         * modules/getcwd (Depends-on): Add dirfd.
42838         * lib/putenv.c (putenv): #undef it.
42839         (rpl_putenv): New decl.
42840         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42841
42842 2007-02-20  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/stdio-tests: New file.
42845         * tests/test-stdio.c: New file.
42846
42847         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42848         (Depends-on): Add stdio.
42849         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42850         (Include): Use <stdio.h> instead of vsnprintf.h.
42851         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42852         HAVE_DECL_VSNPRINTF.
42853         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42854
42855         * modules/snprintf (Files): Remove lib/snprintf.h.
42856         (Depends-on): Add stdio.
42857         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42858         (Include): Use <stdio.h> instead of snprintf.h.
42859         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42860         HAVE_DECL_SNPRINTF.
42861         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42862         * lib/getaddrinfo.c: Likewise.
42863
42864         * modules/stdio: New file.
42865         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42866         * lib/snprintf.h: Remove file.
42867         * lib/vsnprintf.h: Remove file.
42868         * lib/.cppi-disable: Remove snprintf.h.
42869         * m4/stdio_h.m4: New file.
42870         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42871
42872 2007-02-20  Jim Meyering  <jim@meyering.net>
42873
42874         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42875         used by e.g., mingw.  From Bruno Haible.
42876
42877 2007-02-19  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42880         warnings.
42881         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42882
42883 2007-02-19  Bruno Haible  <bruno@clisp.org>
42884
42885         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42886         from mingw users.
42887
42888 2007-02-19  Bruno Haible  <bruno@clisp.org>
42889
42890         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42891         warnings.
42892         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42893
42894 2007-02-19  Jim Meyering  <jim@meyering.net>
42895
42896         Don't use FD after a successful "fdopendir (fd)".
42897         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42898         Reset it by calling dirfd on the just-obtained DIR*.
42899
42900         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42901         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42902
42903 2007-02-18  Bruno Haible  <bruno@clisp.org>
42904
42905         * lib/readlink.c: Include <unistd.h>.
42906         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42907         HAVE_READLINK.
42908         * modules/readlink (Depends-on): Add unistd.
42909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42910         (Include): Add <unistd.h>.
42911
42912         * lib/getlogin_r.h: Remove file.
42913         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42914         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42915         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42916         HAVE_DECL_GETLOGIN_R.
42917         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42919         (Include): Use <unistd.h> instead of getlogin_r.h.
42920
42921         * lib/getcwd.h: Remove file.
42922         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42923         * lib/xgetcwd.c: Likewise.
42924         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42925         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42926         * modules/getcwd (Files): Remove lib/getcwd.h.
42927         (Depends-on): Add unistd.
42928         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42929         (Include): Use <unistd.h> instad of getcwd.h.
42930
42931         * lib/ftruncate.c: Include <unistd.h> first.
42932         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42933         Set HAVE_FTRUNCATE.
42934         * modules/ftruncate (Depends-on): Add unistd.
42935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42936
42937         * lib/fchdir.c: Include <unistd.h> first.
42938         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42940         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42941         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42942         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42943
42944         * lib/dup2.c: Include <unistd.h> first.
42945         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42946         HAVE_DUP2.
42947         * modules/dup2 (Depends-on): Add unistd.
42948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42949
42950         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42951         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42952         REPLACE_CHOWN. Don't define chown as a macro here.
42953         * modules/chown (Depends-on): Add unistd.
42954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42955
42956         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
42957         Add definition for GL_LINK_WARNING.
42958         (chown, dup2): New declarations.
42959         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
42960         link warning.
42961         (ftruncate): New declaration.
42962         (getcwd): New declaration, taken from old getcwd.h.
42963         (getlogin_r): New declaration, taken from old getlogin_r.h.
42964         (readlink): New declaration.
42965         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
42966         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
42967         (gl_PREREQ_UNISTD): Remove macro.
42968         (gl_UNISTD_MODULE_INDICATOR): New macro.
42969         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
42970         many new variables. Don't set UNISTD_H.
42971         * modules/unistd (Description): Change.
42972         (Depends-on): Add link-warning.
42973         (configure.ac): Update.
42974         (Makefile.am): Create unistd.h always. Substitute many new variables
42975         into it.
42976
42977 2007-02-18  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
42980         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
42981         HAVE_GETSUBOPT.
42982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
42983         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
42984         * lib/getsubopt.h: Remove file.
42985         * modules/getsubopt (Files): Remove lib/getsubopt.h.
42986         (Depends-on): Add stdlib.
42987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42988         (Includes): Use <stdlib.h> instead of getsubopt.h.
42989         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
42990         Set HAVE_GETSUBOPT.
42991         * lib/getsubopt.c: Don't include getsubopt.h.
42992
42993 2007-02-18  Bruno Haible  <bruno@clisp.org>
42994
42995         * modules/fchdir (Depends-on): Add dup2.
42996
42997 2007-02-18  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/stdlib_.h: Handle glibc's special invocation convention
43000         specially.
43001
43002 2007-02-18  Bruno Haible  <bruno@clisp.org>
43003
43004         * modules/stdlib-tests: New file.
43005         * tests/test-stdlib.c: New file.
43006
43007         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43008         (Depends-on): Add stdlib.
43009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43010         (Includes): Use <stdlib.h> instead of mkstemp.h.
43011         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43012         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43013         * lib/mkstemp.c: Don't include mkstemp.h.
43014         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43015         * lib/stdlib--.h: Don't include mkstemp.h.
43016
43017         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43018         (Depends-on): Add stdlib.
43019         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43020         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43021         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43022         HAVE_MKDTEMP.
43023         * lib/mkdtemp.c: Don't include mkdtemp.h.
43024         * lib/clean-temp.c: Don't include mkdtemp.h.
43025
43026         * modules/exit (Files): Remove lib/exit.h.
43027         (Depends-on): Add stdlib.
43028         (Makefile.am): Remove lib_SOURCES.
43029         (Include): Use <stdlib.h> instead of exit.h.
43030         * lib/argmatch.c: Don't include exit.h.
43031         * lib/execute.c: Likewise.
43032         * lib/pagealign_alloc.c: Likewise.
43033         * lib/pipe.c: Likewise.
43034         * lib/wait-process.c: Likewise.
43035         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43036         * lib/exitfail.c: Likewise.
43037         * lib/savewd.c: Likewise.
43038         * lib/xsetenv.c: Likewise.
43039
43040         * modules/stdlib: New file.
43041         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43042         and extra comments about mkstemp().
43043         * lib/exit.h: Remove file.
43044         * lib/mkdtemp.h: Remove file.
43045         * lib/mkstemp.h: Remove file.
43046         * m4/stdlib_h.m4: New file.
43047         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43048
43049 2007-02-18  Bruno Haible  <bruno@clisp.org>
43050
43051         * modules/math-tests: New file.
43052         * tests/test-math.c: New file.
43053
43054         * modules/math: New file.
43055         * modules/mathl (Files): Remove lib/mathl.h.
43056         (Depends-on): Add math.
43057         (Makefile.am): Don't mention mathl.h.
43058         (Include): Use <math.h> instead of mathl.h.
43059         * lib/math_.h: New file.
43060         * lib/mathl.h: Remove file.
43061         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43062         mathl.h.
43063         * lib/asinl.c: Likewise.
43064         * lib/atanl.c: Likewise.
43065         * lib/ceill.c: Likewise.
43066         * lib/cosl.c: Likewise.
43067         * lib/expl.c: Likewise.
43068         * lib/floorl.c: Likewise.
43069         * lib/frexpl.c: Likewise.
43070         * lib/ldexpl.c: Likewise.
43071         * lib/logl.c: Likewise.
43072         * lib/sincosl.c: Likewise.
43073         * lib/sinl.c: Likewise.
43074         * lib/sqrtl.c: Likewise.
43075         * lib/tanl.c: Likewise.
43076         * lib/trigl.c: Likewise.
43077         * m4/math_h.m4: New file.
43078         * MODULES.html.sh (Mathematics): Add math.
43079
43080 2007-02-17  Bruno Haible  <bruno@clisp.org>
43081
43082         * modules/wctype-tests: New file.
43083         * tests/test-wctype.c: New file.
43084
43085         * modules/wchar-tests: New file.
43086         * tests/test-wchar.c: New file.
43087
43088         * modules/unistd-tests: New file.
43089         * tests/test-unistd.c: New file.
43090
43091         * modules/time-tests: New file.
43092         * tests/test-time.c: New file.
43093
43094         * modules/sysexits-tests: New file.
43095         * tests/test-sysexits.c: New file.
43096
43097         * modules/sys_time-tests: New file.
43098         * tests/test-sys_time.c: New file.
43099
43100         * modules/sys_stat-tests: New file.
43101         * tests/test-sys_stat.c: New file.
43102
43103         * modules/sys_socket-tests: New file.
43104         * tests/test-sys_socket.c: New file.
43105
43106         * modules/sys_select-tests: New file.
43107         * tests/test-sys_select.c: New file.
43108
43109         * modules/string-tests: New file.
43110         * tests/test-string.c: New file.
43111
43112         * modules/stdbool-tests: New file.
43113         * tests/test-stdbool.c: New file.
43114
43115         * modules/netinet_in-tests: New file.
43116         * tests/test-netinet_in.c: New file.
43117
43118         * modules/inttypes-tests: New file.
43119         * tests/test-inttypes.c: New file.
43120
43121         * modules/fcntl-tests: New file.
43122         * tests/test-fcntl.c: New file.
43123
43124         * modules/byteswap-tests: New file.
43125         * tests/test-byteswap.c: New file.
43126
43127         * modules/arpa_inet-tests: New file.
43128         * tests/test-arpa_inet.c: New file.
43129
43130 2007-02-17  Bruno Haible  <bruno@clisp.org>
43131
43132         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43133         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43134         if the corresponding module is not enabled. Emit link warnings if
43135         the function is used nevertheless.
43136         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43137         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43138         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43139         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43140         * modules/inttypes (Depends-on): Add link-warning.
43141         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43142         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43143         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43144         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43145         * modules/imaxdiv (configure.ac): Likewise.
43146         * modules/strtoimax (configure.ac): Likewise.
43147         * modules/strtoumax (configure.ac): Likewise.
43148
43149 2007-02-17  Bruno Haible  <bruno@clisp.org>
43150
43151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43152         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43153         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43154         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43155
43156 2007-02-17  Bruno Haible  <bruno@clisp.org>
43157
43158         * modules/link-warning: New file.
43159         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43160         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43161         * modules/string (Depends-on): Add link-warning.
43162         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43163         string.h.
43164         * MODULES.html.sh (Support for building libraries and executables): Add
43165         link-warning.
43166
43167 2007-02-17  Bruno Haible  <bruno@clisp.org>
43168
43169         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43170         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43171         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43172         long lines.
43173
43174 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43175             Bruno Haible  <bruno@clisp.org>
43176
43177         * modules/tmpfile: New file.
43178         * lib/tmpfile.c: New file.
43179         * m4/tmpfile.m4: New file.
43180         * MODULES.html.sh (func_all_modules): New section "Input/output".
43181
43182 2007-02-15  Bruno Haible  <bruno@clisp.org>
43183
43184         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43185         (supports_delete_on_close): New function.
43186         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43187
43188 2007-02-14  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/mbspcasecmp-tests: New file.
43191         * tests/test-mbspcasecmp.sh: New file.
43192         * tests/test-mbspcasecmp.c: New file.
43193
43194         New module mbspcasecmp.
43195         * modules/mbspcasecmp: New file.
43196         * lib/mbspcasecmp.c: New file.
43197         * lib/string_.h (strncasecmp): Change warning message.
43198         (mbspcasecmp): New declaration.
43199         * m4/mbspcasecmp.m4: New file.
43200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43201         GNULIB_MBSPCASECMP.
43202         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43203         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43204
43205 2007-02-14  Bruno Haible  <bruno@clisp.org>
43206
43207         * modules/mbsncasecmp-tests: New file.
43208         * tests/test-mbsncasecmp.sh: New file.
43209         * tests/test-mbsncasecmp.c: New file.
43210
43211         New module mbsncasecmp.
43212         * modules/mbsncasecmp: New file.
43213         * lib/mbsncasecmp.c: New file.
43214         * lib/string_.h (mbsncasecmp): New declaration.
43215         * m4/mbsncasecmp.m4: New file.
43216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43217         GNULIB_MBSNCASECMP.
43218         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43219         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43220
43221 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43222
43223         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43224         Verify that it doesn't overlap with our flags.
43225         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43226         do not have the desired effect in multibyte locales; instead, use
43227         mbscasecmp.
43228         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43229         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43230         we don't require GNU fnmatch ourselves (if our users require it, they
43231         should do so explicitly).
43232
43233         Fix regex code so it doesn't rely on strcasecmp.
43234         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43235         Otherwise, include gnulib's langinfo.h.
43236         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43237         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43238         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43239         * modules/regex (FILES): Remove m4/codeset.m4.
43240         (Depends-on): Add localcharset.  Remove strcase.
43241
43242 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43243
43244         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43245         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43246
43247 2007-02-13  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43251
43252 2007-02-12  Bruno Haible  <bruno@clisp.org>
43253
43254         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43255         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43256         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43257         time warning rather than a link error.
43258
43259 2007-02-12  Bruno Haible  <bruno@clisp.org>
43260
43261         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43262         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43264
43265 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43266
43267         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43268         args, not 2.
43269
43270 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43271
43272         New module 'time', so that apps can include <time.h> as per
43273         POSIX and GNU instead of separate include files like time_r.h
43274         and timegm.h.  This implementation tries out a simpler approach
43275         for replacing decls in standard include files (as compared to
43276         the string module), somewhat as an experiment.
43277
43278         * config/srclist.txt: Comment out mktime.c for now.
43279         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43280         since it doesn't apply any more.  Use generic wording instead.
43281         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43282         'time'.
43283         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43284         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43285         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43286         Don't include <sys/types.h>; no longer needed since we assume C89.
43287         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43288         * lib/strftime.c: Likewise.
43289         * lib/time_r.c: Likewise.
43290         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43291         * lib/nanosleep.c: Include <time.h> first, to check interface.
43292         * lib/strptime.c: Likewise.
43293         * lib/time_r.c: Likewise.
43294         * lib/timegm.c: Likewise.
43295         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43296         needed.
43297         * lib/timegm.c: Don't include timegm.h; no longer needed.
43298         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43299         time.h now handles any problems in that area.
43300         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43301         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43302         that time.h defines struct timespec.
43303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43304         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43305         handles that.
43306         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43307         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43308         needed.  Set REPLACE_LOCALTIME.
43309         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43310         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43311         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43312         nanosleep; time_h.m4 now does that.  Don't require
43313         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43314         module handles this now.
43315         * modules/getdate (Depends-on): Remove timespec.  Add time.
43316         * modules/nanosleep (Depends-on): Likewise.
43317         * modules/stat-time (Depends-on): Likewise.
43318         * modules/nanosleep (Include): Include time.h, not timespec.h.
43319         * modules/strptime (Files): Remove lib/strptime.h.
43320         (Depends-on): Add extensions, time.
43321         (Include): Include time.h, not strptime.h.
43322         * modules/time_r (Files): Remove lib/time_r.h.
43323         (Depends-on): Add time.
43324         (Include): Include time.h, not time_r.h.
43325         * modules/timegm: Likewise.
43326         * modules/timespec (Description): Now does timespec-related decls
43327         of our own, instead of struct timespec itself.
43328         (Depends-on): Add time; remove extensions.
43329         (Maintainer): Add self.
43330         * modules/utimecmp (Depends-on): Add time; remove timespec.
43331         * modules/utimens (Depends-on): Likewise.
43332         * modules/xnanosleep (Depends-on): Likewise.
43333
43334 2007-02-11  Bruno Haible  <bruno@clisp.org>
43335
43336         * lib/c-strstr.c: Include allocsa.h.
43337         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43338         * lib/c-strcasestr.c: Include allocsa.h.
43339         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43340         * lib/strcasestr.c: Include allocsa.h.
43341         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43342         * lib/mbsstr.c: Include allocsa.h.
43343         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43344         allocsa/freesa instead of malloc/free.
43345         * lib/mbscasestr.c: Include allocsa.h.
43346         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43347         allocsa/freesa instead of malloc/free.
43348         * modules/c-strstr (Depends-on): Add allocsa.
43349         * modules/c-strcasestr (Depends-on): Likewise.
43350         * modules/strcasestr (Depends-on): Likewise.
43351         * modules/mbsstr (Depends-on): Likewise.
43352         * modules/mbscasestr (Depends-on): Likewise.
43353
43354 2007-02-11  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43357
43358         * modules/mbsspn-tests: New file.
43359         * tests/test-mbsspn.sh: New file.
43360         * tests/test-mbsspn.c: New file.
43361
43362 2007-02-11  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43365
43366         * modules/mbspbrk-tests: New file.
43367         * tests/test-mbspbrk.sh: New file.
43368         * tests/test-mbspbrk.c: New file.
43369
43370 2007-02-11  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43373         unneeded cast.
43374
43375         * modules/mbscspn-tests: New file.
43376         * tests/test-mbscspn.sh: New file.
43377         * tests/test-mbscspn.c: New file.
43378
43379 2007-02-11  Bruno Haible  <bruno@clisp.org>
43380
43381         * modules/mbscasecmp-tests: New file.
43382         * tests/test-mbscasecmp.sh: New file.
43383         * tests/test-mbscasecmp.c: New file.
43384
43385 2007-02-11  Bruno Haible  <bruno@clisp.org>
43386
43387         Ensure O(n) worst-case complexity of mbscasestr.
43388         * lib/mbscasestr.c: Include stdbool.h.
43389         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43390         functions.
43391         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43392         the bookkeeping indicates that it's worth it.
43393         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43394
43395         * modules/mbscasestr-tests: New file.
43396         * tests/test-mbscasestr1.c: New file.
43397         * tests/test-mbscasestr2.sh: New file.
43398         * tests/test-mbscasestr2.c: New file.
43399         * tests/test-mbscasestr3.sh: New file.
43400         * tests/test-mbscasestr3.c: New file.
43401         * tests/test-mbscasestr4.sh: New file.
43402         * tests/test-mbscasestr4.c: New file.
43403         * m4/locale-tr.m4: New file.
43404
43405 2007-02-11  Bruno Haible  <bruno@clisp.org>
43406
43407         Ensure O(n) worst-case complexity of mbsstr.
43408         * lib/mbsstr.c: Include stdbool.h.
43409         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43410         functions.
43411         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43412         bookkeeping indicates that it's worth it.
43413         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43414
43415         * modules/mbsstr-tests: New file.
43416         * tests/test-mbsstr1.c: New file.
43417         * tests/test-mbsstr2.sh: New file.
43418         * tests/test-mbsstr2.c: New file.
43419         * tests/test-mbsstr3.sh: New file.
43420         * tests/test-mbsstr3.c: New file.
43421         * m4/locale-fr.m4: New file.
43422
43423 2007-02-11  Bruno Haible  <bruno@clisp.org>
43424
43425         * lib/mbsrchr.c (mbsrchr): Fix bug.
43426
43427         * modules/mbsrchr-tests: New file.
43428         * tests/test-mbsrchr.sh: New file.
43429         * tests/test-mbsrchr.c: New file.
43430
43431 2007-02-11  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/mbschr.c (mbschr): Fix bug.
43434
43435         * modules/mbschr-tests: New file.
43436         * tests/test-mbschr.sh: New file.
43437         * tests/test-mbschr.c: New file.
43438         * m4/locale-zh.m4: New file.
43439
43440 2007-02-11  Bruno Haible  <bruno@clisp.org>
43441
43442         Support for copying multibyte string iterators.
43443         * lib/mbiter.h: Include <string.h>.
43444         (mbiter_multi_copy): New function.
43445         (mbi_copy): New macro.
43446         * lib/mbuiter.h: Include <string.h>.
43447         (mbuiter_multi_copy): New function.
43448         (mbui_copy): New macro.
43449
43450 2007-02-11  Bruno Haible  <bruno@clisp.org>
43451
43452         New module mbslen.
43453         * modules/mbslen: New file.
43454         * lib/mbslen.c: New file.
43455         * lib/string_.h (mbslen): New declaration.
43456         * m4/mbslen.m4: New file.
43457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43458         GNULIB_MBSLEN.
43459         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43460         * MODULES.html.sh (Internationalization functions): Add mbslen.
43461
43462 2007-02-11  Bruno Haible  <bruno@clisp.org>
43463
43464         Ensure O(n) worst-case complexity of strcasestr substitute.
43465         * lib/strcasestr.c: Include stdbool.h.
43466         (knuth_morris_pratt): New function.
43467         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43468         bookkeeping indicates that it's worth it.
43469         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43470
43471         * modules/strcasestr-tests: New file.
43472         * tests/test-strcasestr.c: New file.
43473
43474 2007-02-11  Bruno Haible  <bruno@clisp.org>
43475
43476         Ensure O(n) worst-case complexity of c_strcasestr.
43477         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43478         (knuth_morris_pratt): New function.
43479         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43480         the bookkeeping indicates that it's worth it.
43481         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43482
43483         * modules/c-strcasestr-tests: New file.
43484         * tests/test-c-strcasestr.c: New file.
43485
43486 2007-02-11  Bruno Haible  <bruno@clisp.org>
43487
43488         Ensure O(n) worst-case complexity of c_strstr.
43489         * lib/c-strstr.c: Include stdbool.h, string.h.
43490         (knuth_morris_pratt): New function.
43491         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43492         bookkeeping indicates that it's worth it.
43493         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43494
43495         * lib/c-strstr.c: Complete rewrite for maintainability.
43496
43497         * modules/c-strstr-tests: New file.
43498         * tests/test-c-strstr.c: New file.
43499
43500 2007-02-11  Bruno Haible  <bruno@clisp.org>
43501
43502         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43503         5.2.1 and earlier, whereby \055 was treated just like the range
43504         delimiter '-'.
43505         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43506
43507 2007-02-08  Bruno Haible  <bruno@clisp.org>
43508
43509         * modules/regex (Depends-on): Add stdbool.
43510         Reported by Dalibor Topic <robilad@kaffe.org>.
43511
43512 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43513
43514         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43515         Prefer returning from main to exiting from it.
43516         Remove unnecessary parens after sizeof.
43517
43518 2007-02-05  Bruno Haible  <bruno@clisp.org>
43519
43520         New module mbssep.
43521         * modules/mbssep: New file.
43522         * lib/mbssep.c: New file.
43523         * lib/string_.h (strsep): Add a conditional link warning.
43524         (mbssep): New declaration.
43525         * m4/mbssep.m4: New file.
43526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43527         GNULIB_MBSSEP.
43528         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43529         * MODULES.html.sh (Internationalization functions): Add mbssep.
43530
43531 2007-02-05  Bruno Haible  <bruno@clisp.org>
43532
43533         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43534         Optimize search in case of 1 delimiter.
43535
43536 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43537
43538         * lib/acl.h: Include sys/types.h before sys/acl.h.
43539
43540 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43541
43542         Merge upstream fix for glibc bugzilla #3957:
43543
43544         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43545
43546         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43547         bit for RE_HAT_LISTS_NOT_NEWLINE.
43548         (build_charclass_op): Remove bogus comment.
43549
43550 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43551
43552         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43553
43554 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43557         * lib/memmem.c [!defined _LIBC]: Include config.h.
43558
43559 2007-02-04  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43562         warning message.
43563
43564 2007-02-04  Bruno Haible  <bruno@clisp.org>
43565
43566         New module mbstok_r.
43567         * modules/mbstok_r: New file.
43568         * lib/mbstok_r.c: New file.
43569         * lib/string_.h (strtok_r): Change argument names to match the
43570         comments. Add a conditional link warning.
43571         (mbstok_r): New declaration.
43572         * m4/mbstok_r.m4: New file.
43573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43574         GNULIB_MBSTOK_R.
43575         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43576         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43577
43578 2007-02-04  Bruno Haible  <bruno@clisp.org>
43579
43580         New module mbsspn.
43581         * modules/mbsspn: New file.
43582         * lib/mbsspn.c: New file.
43583         * lib/string_.h (strspn): Add a conditional link warning.
43584         (mbsspn): New declaration.
43585         * m4/mbsspn.m4: New file.
43586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43587         GNULIB_MBSSPN.
43588         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43589         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43590
43591 2007-02-04  Bruno Haible  <bruno@clisp.org>
43592
43593         New module mbspbrk.
43594         * modules/mbspbrk: New file.
43595         * lib/mbspbrk.c: New file.
43596         * lib/string_.h (strpbrk): Add a conditional link warning.
43597         (mbspbrk): New declaration.
43598         * m4/mbspbrk.m4: New file.
43599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43600         GNULIB_MBSPBRK.
43601         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43602         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43603
43604 2007-02-04  Bruno Haible  <bruno@clisp.org>
43605
43606         New module mbscspn.
43607         * modules/mbscspn: New file.
43608         * lib/mbscspn.c: New file.
43609         * lib/string_.h (strcspn): Add a conditional link warning.
43610         (mbscspn): New declaration.
43611         * m4/mbscspn.m4: New file.
43612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43613         GNULIB_MBSCSPN.
43614         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43615         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43616
43617 2007-02-04  Bruno Haible  <bruno@clisp.org>
43618
43619         New module mbscasestr, reduced goal of strcasestr.
43620         * modules/mbscasestr: New file.
43621         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43622         (mbscasestr): Renamed from strcasestr.
43623         * lib/strcasestr.c: Don't include mbuiter.h.
43624         (strcasestr): Remove support for multibyte locales.
43625         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43626         Change the conditional link warning.
43627         (mbscasestr): New declaration.
43628         * m4/mbscasestr.m4: New file.
43629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43630         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43631         REPLACE_STRCASESTR.
43632         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43634         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43635         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43636         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43637         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43638         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43639         (Depends-on): Remove mbuiter.
43640         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43641
43642 2007-02-04  Bruno Haible  <bruno@clisp.org>
43643
43644         Simplify handling of strncasecmp.
43645         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43646         the conditional link warning.
43647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43648         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43649         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43650         * modules/strcase (configure.ac): Don't invoke
43651         gl_STRING_MODULE_INDICATOR.
43652         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43653
43654 2007-02-04  Bruno Haible  <bruno@clisp.org>
43655
43656         New module mbscasecmp, reduced goal of strcasecmp.
43657         * modules/mbscasecmp: New file.
43658         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43659         (mbscasecmp): Renamed from strcasecmp.
43660         * lib/strcasecmp.c: Don't include mbuiter.h.
43661         (strcasecmp): Remove support for multibyte locales.
43662         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43663         Change the conditional link warning.
43664         (mbscasecmp): New declaration.
43665         * m4/mbscasecmp.m4: New file.
43666         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43667         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43668         REPLACE_STRCASECMP.
43669         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43671         GNULIB_MBSCASECMP.
43672         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43673         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43674         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43675         (Depends-on): Remove mbuiter.
43676         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43677
43678 2007-02-04  Bruno Haible  <bruno@clisp.org>
43679
43680         New module mbsstr. Remove module strstr.
43681         * modules/mbsstr: New file.
43682         * modules/strstr: Remove file.
43683         * lib/mbsstr.c: Renamed from lib/strstr.c.
43684         (mbsstr): Renamed from strstr.
43685         * lib/string_.h (strstr): Remove declaration. Change the conditional
43686         link warning.
43687         (mbsstr): New declaration.
43688         * m4/mbsstr.m4: New file.
43689         * m4/strstr.m4: Remove file.
43690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43691         REPLACE_STRSTR.
43692         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43693         Don't initialize GNULIB_STRSTR.
43694         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43695         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43696         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43697         (Support for systems lacking ANSI C 89): Remove strstr.
43698
43699 2007-02-04  Bruno Haible  <bruno@clisp.org>
43700
43701         New module mbsrchr.
43702         * modules/mbsrchr: New file.
43703         * lib/mbsrchr.c: New file.
43704         * lib/string_.h (strrchr): Add a conditional link warning.
43705         (mbsrchr): New declaration.
43706         * m4/mbsrchr.m4: New file.
43707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43708         GNULIB_MBSRCHR.
43709         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43710         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43711
43712 2007-02-04  Bruno Haible  <bruno@clisp.org>
43713
43714         New module mbschr.
43715         * modules/mbschr: New file.
43716         * lib/mbschr.c: New file.
43717         * lib/string_.h (strchr): Add a conditional link warning.
43718         (mbschr): New declaration.
43719         * m4/mbschr.m4: New file.
43720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43721         GNULIB_MBSCHR.
43722         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43723         * MODULES.html.sh (Internationalization functions): Add mbschr.
43724
43725 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43728
43729         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43730
43731 2007-02-04  Bruno Haible  <bruno@clisp.org>
43732
43733         New module description section 'configure.ac-early'.
43734         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43735         (func_get_autoconf_early_snippet): New function.
43736         (func_import, func_create_testdir): Use it. Remove special cases for
43737         modules 'extensions' and 'lock'.
43738         * modules/extensions (configure.ac-early): Require
43739         gl_USE_SYSTEM_EXTENSIONS.
43740         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43741
43742 2007-02-04  Bruno Haible  <bruno@clisp.org>
43743
43744         Make use of gcj-4.3's -fsource and -ftarget option.
43745         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43746         and if so try the options -fsource and -ftarget.
43747         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43748         source_version, ftarget_option, target_version arguments.
43749         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43750         (is_envjavac_oldgcj_14_14_usable): Renamed from
43751         is_envjavac_gcj_14_14_usable.
43752         (is_envjavac_oldgcj_14_13_usable): Renamed from
43753         is_envjavac_gcj_14_13_usable.
43754         (is_gcj_present): Update.
43755         (is_gcj_43, is_gcj43_usable): New functions.
43756         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43757         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43758         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43759         try the options -fsource and -ftarget.
43760
43761 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43762
43763         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43764         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43765         larger value.
43766
43767 2007-02-03  Jim Meyering  <jim@meyering.net>
43768
43769         Give tools a better chance to allocate space for very large buffers.
43770         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43771
43772         Make pwd and readlink work also when run with an unreadable parent dir
43773         on systems with openat support.
43774         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43775         provided getcwd function, even when we have openat support.
43776         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43777
43778 2007-02-02  Bruno Haible  <bruno@clisp.org>
43779
43780         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43781         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43782         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43783         portability problems if one of these functions is only used on specific
43784         platforms.
43785         Reported by Paul Eggert.
43786
43787 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43788
43789         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43790         is causing more trouble than it's curing.
43791         * lib/regex_internal.h (__mempcpy): Remove.
43792         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43793         (and make the code a tad smaller to boot).
43794         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43795
43796 2007-02-02  Jim Meyering  <jim@meyering.net>
43797
43798         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43799         section, not in the Makefile.am: one.
43800
43801 2007-02-02  Eric Blake  <ebb9@byu.net>
43802
43803         * lib/strchrnul.c: Always include config.h first.
43804
43805         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43806         gnulib strstr is not necessary here.
43807
43808 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43809
43810         * m4/socklen.m4: Fix typo.
43811
43812 2007-02-02  Eric Blake  <ebb9@byu.net>
43813
43814         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43815         * modules/netinet_in (Makefile.am): Likewise.
43816
43817 2007-02-01  Bruno Haible  <bruno@clisp.org>
43818
43819         * lib/string_.h (GL_LINK_WARNING): New macro.
43820         (strcasecmp, strstr, strcasestr): If provided by the system,
43821         conditionally define as a macro that leads to a warning instead of to
43822         an error.
43823         (strncasecmp): Conditionally define as a macro that leads to a warning.
43824
43825 2007-02-01  Karl Berry  <karl@gnu.org>
43826
43827         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43828
43829 2007-02-01  Bruno Haible  <bruno@clisp.org>
43830
43831         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43832         renamings.
43833
43834 2007-02-01  Eric Blake  <ebb9@byu.net>
43835
43836         * modules/regex (Depends-on): Revert dependence on mempcpy.
43837         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43838         module's definition of mempcpy.
43839         Reported by Paul Eggert.
43840
43841 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43842
43843         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43844         the symbol XYZ before redefining it.  This fixes a problem with
43845         programs that don't use XYZ, when compiled on systems that define
43846         XYZ to something else.
43847
43848 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43849
43850         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43851         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43852         writeable to group or other and (2) is intended to have a special
43853         mode bit that is set or cleared.  In such a case, the directory
43854         should be neither group- nor other-writeable until the special
43855         mode bits are right.
43856
43857 2007-01-31  Eric Blake  <ebb9@byu.net>
43858
43859         * modules/mountlist (Depends-on): Add strstr.
43860
43861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43862         bug.
43863         * modules/string (Makefile.am): Remove redundant replacement.
43864         * modules/regex (Depends-on): Add mempcpy.
43865
43866 2007-01-31  Bruno Haible  <bruno@clisp.org>
43867
43868         New module description field 'Link'.
43869         * gnulib-tool (func_usage): Document --extract-link-directive.
43870         (sed_extract_prog): Recognize 'Link' directive.
43871         (func_get_link_directive): New function.
43872         (func_import): Show summary of link directives.
43873         Handle --extract-link-directive option.
43874         * modules/acl (Link): New section.
43875         * modules/clock-time (Link): New section.
43876         * modules/euidaccess (Link): New section.
43877         * modules/gettext (Link): New section.
43878         * modules/iconv (Link): New section.
43879         * modules/lock (Link): New section.
43880         * modules/nanosleep (Link): New section.
43881         * modules/readline (Link): New section.
43882
43883 2007-01-27  Bruno Haible  <bruno@clisp.org>
43884
43885         Enforce the use of gnulib modules for unportable <string.h> functions.
43886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43887         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43888         (gl_HEADER_STRING_H_BODY): Require it.
43889         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43890         the symbol XYZ to one that gives a link error.
43891         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43892         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43893         * modules/mempcpy (configure.ac): Likewise.
43894         * modules/memrchr (configure.ac): Likewise.
43895         * modules/stpcpy (configure.ac): Likewise.
43896         * modules/stpncpy (configure.ac): Likewise.
43897         * modules/strcase (configure.ac): Likewise.
43898         * modules/strcasestr (configure.ac): Likewise.
43899         * modules/strchrnul (configure.ac): Likewise.
43900         * modules/strdup (configure.ac): Likewise.
43901         * modules/strndup (configure.ac): Likewise.
43902         * modules/strnlen (configure.ac): Likewise.
43903         * modules/strpbrk (configure.ac): Likewise.
43904         * modules/strsep (configure.ac): Likewise.
43905         * modules/strstr (configure.ac): Likewise.
43906         * modules/strtok_r (configure.ac): Likewise.
43907
43908 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43909
43910         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43911
43912 2007-01-30  Jim Meyering  <jim@meyering.net>
43913
43914         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43915
43916 2007-01-29  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43919         * lib/execute.c: Likewise.
43920         * lib/pipe.c: Likewise.
43921         * lib/printf-args.h: Likewise.
43922         * lib/printf-args.c: Likewise.
43923         * lib/printf-parse.c: Likewise.
43924         * lib/vasnprintf.c: Likewise.
43925
43926 2007-01-29  Eric Blake  <ebb9@byu.net>
43927
43928         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43929         declaration.
43930
43931 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43932
43933         * lib/strptime.h (strptime): Use 'restrict' for args where
43934         POSIX requires this.
43935         * lib/strptime.c (strptime): Likewise.
43936         Change license notice from LGPL to GPL, since gnulib-tool will
43937         change this as needed.
43938         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43939         defined.
43940         Include "strptime.h" first, to check interface.
43941         Do not #undef _LIBC and _NL_CURRENT.
43942         Do not include <stdlib.h>; no longer needed.
43943         Include "time_r.h" and declare ptime_locale_status
43944         only if _LIBC is not defined.
43945         (__P): Remove unused macro.
43946         (match_string): Bring back glibc version, but use it only if _LIBC
43947         is defined.
43948         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43949         Remove unnecessary assertion and abort() call.
43950         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43951         * m4/strptime.m4: Fix serial number comment.
43952         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43953         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43954         (Depends-on): Add time_r.
43955
43956 2007-01-29  Bruno Haible  <bruno@clisp.org>
43957
43958         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43959         strptime.
43960         * modules/strptime (Depends-on): Add stdbool.
43961         * lib/strptime.h: Include <time.h> always. Add comments.
43962
43963 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43964
43965         * modules/strptime: New file.
43966         * lib/strptime.h: New file.
43967         * lib/strptime.c: New file.
43968         * m4/strptime.m4: New file.
43969
43970 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43971
43972         * MODULES.html.sh: New module mpsort.
43973         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
43974
43975         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
43976         a circularity problem with HP-UX ia64 reported by Bob Proulx in
43977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
43978         All uses changed.
43979         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
43980         All uses changed.
43981         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
43982         to _Restrict_.
43983         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
43984         the parameter matches the prototype.
43985
43986 2007-01-28  Jim Meyering  <jim@meyering.net>
43987
43988         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
43989         sys/time.h here, reverting that part of the previous patch:
43990         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
43991
43992 2007-01-28  Bruno Haible  <bruno@clisp.org>
43993
43994         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
43995         value of $(SYS_TIME_H).
43996         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
43997         remove it conditionally, too. [added by Jim Meyering]
43998         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
43999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44000         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44001         GETTIMEOFDAY_REPLACEMENT to 1.
44002
44003 2007-01-28  Bruno Haible  <bruno@clisp.org>
44004
44005         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44006         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44008         Set UNISTD_H instead of UNISTD_H2.
44009         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44010
44011 2007-01-28  Bruno Haible  <bruno@clisp.org>
44012
44013         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44014         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44015
44016 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44017
44018         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44019         (func_create_testdir): Ensure C locale for `grep' and `tr'
44020         character ranges.
44021         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44022         ACLOCAL_AMFLAGS parsing state machine.
44023
44024 2007-01-27  Bruno Haible  <bruno@clisp.org>
44025
44026         * modules/unistr/base: Update.
44027
44028 2007-01-27  Bruno Haible  <bruno@clisp.org>
44029
44030         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44031         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44032         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44033         modules/unistr/u32-mbtouc.
44034         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44035         * lib/unistr.h: Update.
44036         * lib/linebreak.c: Update.
44037         * modules/unistr/u32-mbtouc: Renamed from
44038         modules/unistr/u32-mbtouc-safe.
44039         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44040         * lib/unistr.h: Update.
44041         * lib/unistr/u32-to-u8.c: Update.
44042         * lib/unistr/u32-to-u16.c: Update.
44043
44044 2007-01-27  Bruno Haible  <bruno@clisp.org>
44045
44046         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44047         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44048         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44049         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44050         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44051         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44052         modules/unistr/u16-mbtouc.
44053         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44054         * lib/unistr.h: Update.
44055         * lib/linebreak.c: Update.
44056         * modules/linebreak: Update.
44057         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44058         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44059         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44060         * modules/unistr/u16-mbtouc: Renamed from
44061         modules/unistr/u16-mbtouc-safe.
44062         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44063         * lib/unistr.h: Update.
44064         * lib/unistr/u16-to-u8.c: Update.
44065         * modules/unistr/u16-to-u8: Update.
44066         * lib/unistr/u16-to-u32.c: Update.
44067         * modules/unistr/u16-to-u32: Update.
44068
44069 2007-01-27  Bruno Haible  <bruno@clisp.org>
44070
44071         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44072         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44073         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44074         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44075         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44076         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44077         modules/unistr/u8-mbtouc.
44078         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44079         * lib/unistr.h: Update.
44080         * lib/striconveh.c: Update.
44081         * modules/striconveh: Update.
44082         * lib/linebreak.c: Update.
44083         * modules/linebreak: Update.
44084         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44085         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44086         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44087         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44088         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44089         * lib/unistr.h: Update.
44090         * lib/striconveh.c: Update.
44091         * modules/striconveh: Update.
44092         * lib/unistr/u8-to-u16.c: Update.
44093         * modules/unistr/u8-to-u16: Update.
44094         * lib/unistr/u8-to-u32.c: Update.
44095         * modules/unistr/u8-to-u32: Update.
44096
44097 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44098
44099         Sync from Libtool.
44100         * lib/argz.c: Do not include strings.h nor memory.h, include
44101         string.h unconditionally.  Patch by Simon Josefsson.
44102
44103 2007-01-27  Bruno Haible  <bruno@clisp.org>
44104
44105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44106         from gl_HEADER_STRING_H_BODY.
44107         (gl_HEADER_STRING_H_BODY): Require it.
44108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44109         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44110         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44111         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44112         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44113         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44115         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44116         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44117         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44118         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44119         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44120         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44121         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44122         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44123
44124 2007-01-27  Bruno Haible  <bruno@clisp.org>
44125
44126         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44127         check_PROGRAMS into noinst_PROGRAMS.
44128         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44129         check_PROGRAMS in this case.
44130         (func_import): Set for_test to false.
44131         (func_create_testdir): Set for_test to true.
44132
44133 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44134             Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44137         (Depends-on): Add string.
44138         (Includes): Use <string.h> instead of strcasestr.h.
44139         * modules/string (Makefile.am): Also substitute the value of
44140         REPLACE_STRCASESTR.
44141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44142         assume strcasestr is declared in <string.h> not <strings.h>. Also
44143         set REPLACE_STRCASESTR.
44144         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44145         REPLACE_STRCASESTR.
44146         * lib/strcasestr.h: Remove file.
44147         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44148         * lib/string_.h (strcasestr): New declaration.
44149
44150 2007-01-27  Bruno Haible  <bruno@clisp.org>
44151
44152         * lib/string_.h: Use 'extern'.
44153
44154 2007-01-27  Jim Meyering  <jim@meyering.net>
44155
44156         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44157         of set-but-not-used local, "q".
44158
44159         * lib/mempcpy.c: Include <config.h> before <string.h>.
44160         This fixes a compilation error on HP-UX, due to the system's
44161         "restrict"-using mempcpy prototype.
44162
44163 2007-01-26  Bruno Haible  <bruno@clisp.org>
44164
44165         Small optimization.
44166         * lib/javacomp.c: Include c-strstr.h.
44167          (is_envjavac_gcj): Use c_strstr instead of strstr.
44168         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44169
44170 2007-01-26  Bruno Haible  <bruno@clisp.org>
44171
44172         * MODULES.html.sh (Unicode string functions): Add the new modules.
44173
44174         * modules/uniconv/u32-strconv-to-locale: New file.
44175         * lib/uniconv/u32-strconv-to-locale.c: New file.
44176
44177         * modules/uniconv/u16-strconv-to-locale: New file.
44178         * lib/uniconv/u16-strconv-to-locale.c: New file.
44179
44180         * modules/uniconv/u8-strconv-to-locale: New file.
44181         * lib/uniconv/u8-strconv-to-locale.c: New file.
44182
44183         * modules/uniconv/u32-strconv-from-locale: New file.
44184         * lib/uniconv/u32-strconv-from-locale.c: New file.
44185
44186         * modules/uniconv/u16-strconv-from-locale: New file.
44187         * lib/uniconv/u16-strconv-from-locale.c: New file.
44188
44189         * modules/uniconv/u8-strconv-from-locale: New file.
44190         * lib/uniconv/u8-strconv-from-locale.c: New file.
44191
44192         * modules/uniconv/u32-strconv-to-enc: New file.
44193         * lib/uniconv/u32-strconv-to-enc.c: New file.
44194         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44195         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44196
44197         * modules/uniconv/u16-strconv-to-enc: New file.
44198         * lib/uniconv/u16-strconv-to-enc.c: New file.
44199         * lib/uniconv/u-strconv-to-enc.h: New file.
44200         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44201         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44202
44203         * modules/uniconv/u8-strconv-to-enc: New file.
44204         * lib/uniconv/u8-strconv-to-enc.c: New file.
44205         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44206         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44207
44208         * modules/uniconv/u32-strconv-from-enc: New file.
44209         * lib/uniconv/u32-strconv-from-enc.c: New file.
44210         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44211         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44212
44213         * modules/uniconv/u16-strconv-from-enc: New file.
44214         * lib/uniconv/u16-strconv-from-enc.c: New file.
44215         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44216         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44217
44218         * modules/uniconv/u8-strconv-from-enc: New file.
44219         * lib/uniconv/u8-strconv-from-enc.c: New file.
44220         * lib/uniconv/u-strconv-from-enc.h: New file.
44221         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44222         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44223
44224         * modules/uniconv/u32-conv-from-enc: New file.
44225         * lib/uniconv/u32-conv-from-enc.c: New file.
44226         * modules/uniconv/u32-conv-from-enc-tests: New file.
44227         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44228
44229         * modules/uniconv/u16-conv-from-enc: New file.
44230         * lib/uniconv/u16-conv-from-enc.c: New file.
44231         * lib/uniconv/u-conv-from-enc.h: New file.
44232         * modules/uniconv/u16-conv-from-enc-tests: New file.
44233         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44234
44235         * modules/uniconv/u8-conv-from-enc: New file.
44236         * lib/uniconv/u8-conv-from-enc.c: New file.
44237         * modules/uniconv/u8-conv-from-enc-tests: New file.
44238         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44239
44240         * modules/uniconv/base: New file.
44241         * lib/uniconv.h: New file.
44242
44243 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         * doc/gnulib-tool.texi (Initial import): Update to match current
44246         behavior with strdup module.
44247         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44248         * lib/memmem.h: Remove; all uses removed.  This is now done
44249         by <string.h>.
44250         * lib/mempcpy.h: Likewise.
44251         * lib/memrchr.h: Likewise.
44252         * lib/stpcpy.h: Likewise.
44253         * lib/stpncpy.h: Likewise.
44254         * lib/strcase.h: Likewise.
44255         * lib/strchrnul.h: Likewise.
44256         * lib/strdup.h: Likewise.
44257         * lib/strndup.h: Likewise.
44258         * lib/strnlen.h: Likewise.
44259         * lib/strpbrk.h: Likewise.
44260         * lib/strsep.h: Likewise.
44261         * lib/strstr.h: Likewise.
44262         * lib/strtok_r.h: Likewise.
44263         * lib/string_.h: New file.
44264         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44265         Rely on <string.h> instead.
44266         * lib/canon-host.c: Likewise.
44267         * lib/chdir-long.c: Likewise.
44268         * lib/concatpath.c: Likewise.
44269         * lib/exclude.c: Likewise.
44270         * lib/fchdir.c: Likewise.
44271         * lib/getaddrinfo.c: Likewise.
44272         * lib/getcwd.c: Likewise.
44273         * lib/getsubopt.c: Likewise.
44274         * lib/glob.c: Likewise.
44275         * lib/hard-locale.c: Likewise.
44276         * lib/iconvme.c: Likewise.
44277         * lib/javacomp.c: Likewise.
44278         * lib/mempcpy.c: Likewise.
44279         * lib/memrchr.c: Likewise.
44280         * lib/regex_internal.h: Likewise.
44281         * lib/stpncpy.c: Likewise.
44282         * lib/strcasecmp.c: Likewise.
44283         * lib/strchrnul.c: Likewise.
44284         * lib/strdup.c: Likewise.
44285         * lib/striconv.c: Likewise.
44286         * lib/striconveh.c: Likewise.
44287         * lib/striconveha.c: Likewise.
44288         * lib/strncasecmp.c: Likewise.
44289         * lib/strndup.c: Likewise.
44290         * lib/strnlen.c: Likewise.
44291         * lib/strsep.c: Likewise.
44292         * lib/strstr.c: Likewise.
44293         * lib/strtok_r.c: Likewise.
44294         * lib/userspec.c: Likewise.
44295         * lib/w32spawn.h: Likewise.
44296         * lib/xstrndup.c: Likewise.
44297         * lib/mountlist.c (strstr): Remove decl.
44298         * m4/string_h.m4: New file.
44299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44301         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44302         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44303         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44304         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44305         Set REPLACE_STRCASECMP if necessary.
44306         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44307         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44308         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44309         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44310         HAVE_DECL_STRDUP if necessary.
44311         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44312         since gl_FUNC_STRNDUP does that now.
44313         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44314         Check for decl here...
44315         (gl_PREREQ_STRNLEN): ... not here.
44316         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44317         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44318         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44319         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44320         necessary.
44321         * modules/string: New file.
44322         * modules/memmem (Files): Remove special-purpose include file.
44323         (Depends-on): Add string.
44324         (Include): Include <string.h>, not the removed file.
44325         * modules/mempcpy: Likewise.
44326         * modules/memrchr: Likewise.
44327         * modules/stpcpy: Likewise.
44328         * modules/stpncpy: Likewise.
44329         * modules/strcase: Likewise.
44330         * modules/strchrnul: Likewise.
44331         * modules/strdup: Likewise.
44332         * modules/strndup: Likewise.
44333         * modules/strnlen: Likewise.
44334         * modules/strpbrk: Likewise.
44335         * modules/strsep: Likewise.
44336         * modules/strstr: Likewise.
44337         * modules/strtok_r: Likewise.
44338         * tests/test-dirname.c: Don't include "strdup.h", since
44339         <string.h> now suffices.
44340         * tests/test-memmem.c: Don't include "memmem.h", since
44341         <string.h> now suffices.
44342
44343 2007-01-25  Bruno Haible  <bruno@clisp.org>
44344
44345         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44346         *resultp is 0.
44347
44348         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44349         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44350         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44351         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44352
44353         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44354         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44355         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44356         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44357         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44358         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44359
44360 2007-01-24  Bruno Haible  <bruno@clisp.org>
44361
44362         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44363         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44364         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44365         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44366         gl_FUNC_FTS_CORE.
44367         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44368         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44369         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44370         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44371         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44372         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44373         gl_FUNC_FCHOWNAT.
44374         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44375         gl_FUNC_STRFTIME.
44376         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44377         Reported by Ralf Wildenhues.
44378
44379 2007-01-24  Bruno Haible  <bruno@clisp.org>
44380
44381         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44382         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44383         gl_GETADDRINFO.
44384         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44385         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44386         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44387
44388 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44389
44390         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44391         Don't use 'exit'; just return from 'main'.
44392         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44393
44394         * lib/fnmatch_.h: Readjust white space and comments to match
44395         glibc, to avoid spurious diffs.
44396
44397 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44398
44399         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44400         2004-12-01 change by Jakub Jelinek, since this code won't compile
44401         if !LIBC.  Problem reported by Bob Proulx.
44402
44403 2007-01-23  Bruno Haible  <bruno@clisp.org>
44404
44405         * lib/striconveh.c: Include c-strcaseeq.h.
44406         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44407         * modules/striconveh (Depends-on): Add c-strcaseeq.
44408
44409 2007-01-23  Bruno Haible  <bruno@clisp.org>
44410
44411         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44412
44413         * modules/c-strcaseeq: New file.
44414         * lib/c-strcaseeq.h: New file.
44415
44416         * modules/streq: New file.
44417         * lib/streq.h: New file.
44418
44419 2007-01-23  Bruno Haible  <bruno@clisp.org>
44420
44421         * modules/striconveha-tests: New file.
44422         * tests/test-striconveha.c: New file.
44423
44424         * lib/striconveha.h: Include <stdbool.h>.
44425         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44426         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44427         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44428         (mem_iconveha): New function.
44429         (str_iconveha_notranslit): Renamed from str_iconveha.
44430         (str_iconveha): New function.
44431         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44432         c-strcase.
44433
44434 2007-01-23  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44437         encodings without forgiving before trying any encoding with handler.
44438         (str_iconveha): Try all encodings without forgiving before trying any
44439         encoding with handler.
44440
44441 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44442
44443         Import the following changes from libc.
44444
44445         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44446
44447         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44448
44449         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44450
44451         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44452         normal_bracket label.
44453
44454         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44455
44456         [BZ #361]
44457         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44458         to normal_bracket after fetching the next character.
44459
44460 2007-01-22  Bruno Haible  <bruno@clisp.org>
44461
44462         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44463         argument.
44464         * lib/striconveh.c (iconv_carefully_1): New function.
44465         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44466         argument.
44467         (str_cd_iconveh): Update.
44468         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44469         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44470         * tests/test-striconveh.c (MAGIC): New macro.
44471         (new_offsets): New function.
44472         (main): Test call with and without offsets.
44473
44474 2007-01-22  Bruno Haible  <bruno@clisp.org>
44475
44476         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44477         * modules/sys_select (Makefile.am): Likewise.
44478         * modules/sys_socket (Makefile.am): Likewise.
44479         * modules/sys_time (Makefile.am): Likewise.
44480
44481 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44482
44483         * modules/gettimeofday (License): Change from GPL to LGPL, since
44484         gettimeofday is a library function.
44485
44486 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44487
44488         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44489
44490 2007-01-21  Bruno Haible  <bruno@clisp.org>
44491
44492         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44493
44494 2007-01-21  Bruno Haible  <bruno@clisp.org>
44495
44496         * modules/striconveha: New file.
44497         * lib/striconveha.h: New file.
44498         * lib/striconveha.c: New file.
44499         * MODULES.html.sh (Internationalization functions): Add striconveha.
44500         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44501         string.
44502         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44503
44504 2007-01-21  Bruno Haible  <bruno@clisp.org>
44505
44506         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44507         * lib/striconveh.c (str_iconveh): Likewise.
44508
44509 2007-01-21  Bruno Haible  <bruno@clisp.org>
44510
44511         * lib/striconveh.h (mem_iconveh): New declaration.
44512         * lib/striconveh.c (mem_iconveh): New function.
44513         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44514
44515 2007-01-21  Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44518
44519         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44520         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44521         original result buffer.
44522         (str_cd_iconveh): Update.
44523         * tests/test-striconveh.c (main): Update.
44524
44525         * lib/striconv.h (mem_cd_iconv): Change specification.
44526         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44527         result buffer.
44528         (str_cd_iconv): Update.
44529         * tests/test-striconv.c (main): Update.
44530
44531 2007-01-21  Bruno Haible  <bruno@clisp.org>
44532
44533         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44534
44535 2007-01-20  Jim Meyering  <jim@meyering.net>
44536
44537         * lib/userspec.c (parse_with_separator): If a user or group string
44538         starts with "+", skip the corresponding name-to-ID look-up, since
44539         such a look-up must fail: user and group names may not include "+".
44540
44541 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44542
44543         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44544         since we now assume the sys_time module.
44545         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44546         check for sys/time.h; no longer needed.
44547         * modules/poll (Depends-on): Depend on sys_time.
44548
44549 2007-01-18  Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44552         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44553
44554         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44555         gettimeofday.
44556
44557         * tests/test-gettimeofday.c: Include <time.h>.
44558         (dummy): Remove variable.
44559
44560         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44561         gl_HEADER_SYS_TIME_H.
44562         (gl_HEADER_SYS_TIME_H): New macro.
44563
44564         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44565         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44566         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44567         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44568         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44570         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44571         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44572         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44573         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44574         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44575
44576         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44577         last change; it caused a compilation error when cross-compiling to
44578         Cygwin.
44579
44580 2007-01-18  Jim Meyering  <jim@meyering.net>
44581
44582         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44583         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44584         than the race-prone "test -d sys || mkdir sys".
44585         (configure.ac): Use AC_PROG_MKDIR_P.
44586         * modules/sys_select: Likewise.
44587         * modules/sys_socket: Likewise.
44588         * modules/sys_time: Likewise.
44589
44590 2007-01-18  Eric Blake  <ebb9@byu.net>
44591
44592         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44593         replace gettimeofday.
44594         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44595         name, to avoid infinite recursion.
44596
44597 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44598
44599         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44600         module sys_time.
44601         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44602         assume timespec.h defines struct timeval.
44603         * lib/settime.c: Likewise.
44604         * lib/utimens.c: Likewise.
44605         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44606         since we now assume the gettimeofday module.
44607         * lib/tempname.c (__gen_tempname): Likewise.
44608         * lib/gettimeofday.h: Remove.
44609         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44610         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44611         Include <time.h>, for 'time()'.
44612         (localtime_buffer_addr): Also use this workaround if
44613         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44614         to simplify the uses.  All uses changed.
44615         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44616         that #undef is inside {}, and 'const' follows type name consistently.
44617         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44618         (gettimeofday): Do not use the maximum possible value for
44619         tv->tv_usec, since that might break usages other than ls.c.
44620         Instead, we'll leave ls.c alone.  This undoes today's patch
44621         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44622         we've never observed the problem but might as well keep the
44623         canary.
44624         * lib/nanosleep.c: Include timespec.h first, for interface check.
44625         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44626         now assume the sys_time module.
44627         * lib/tempname.c: Likewise.
44628         * lib/timespec.h: Likewise.
44629         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44630         needed.
44631         * lib/strftime.c: Likewise.
44632         * lib/timespec.h: Likewise.
44633         * lib/posixtm.c: Include posixtm.h first, for interface check.
44634         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44635         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44636         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44637         * lib/sys_time_.h: New file.
44638         * lib/timespec.h (struct timespec): Use long int, not long.
44639         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44640         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44641         Remove obsolescent call to AC_HEADER_TIME.
44642         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44644         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44645         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44646         Likewise.
44647         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44648         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44649         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44650         into the sys_time module.  Check for gettimeofday just once.
44651         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44652         for gettimeofday signature to just check the signature.  Merely
44653         compile it, since linking doesn't test signature.  Improve test for
44654         whether gettimeofday.o is actually needed.
44655         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44656         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44657         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44658         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44659         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44660         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44661         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44662         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44663         than worrying about sys/time.h.
44664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44665         Don't bother worrying about TIME_WITH_SYS_TIME.
44666         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44667         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44668         * m4/sys_time_h.m4: New file.
44669         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44670         Don't include sys/time.h.  Return from main rather than exiting.
44671         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44672         all uses changed.
44673         * modules/gethrxtime (Depends-on): Add sys_time.
44674         * modules/gettime (Depends-on): Likewise.
44675         * modules/gettimeofday (Depends-on): Likewise.
44676         * modules/nanosleep (Depends-on): Likewise.
44677         * modules/settime (Depends-on): Likewise.
44678         * modules/tempname (Depends-on): Likewise.
44679         * modules/utimens (Depends-on): Likewise.
44680         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44681         (Include:) Change back to <sys/time.h>.
44682         (Maintainer:) Add self.
44683         * modules/sys_time: New file.
44684         * modules/tempname (Depends-on): Add gettimeofday.
44685         * tests/test-gettimeofday.c: Include <sys/time.h>
44686         rather than gettimeofday.h.
44687
44688 2007-01-17  Bruno Haible  <bruno@clisp.org>
44689
44690         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44691         the license default to GPL.
44692         (func_create_testdir): Don't complain if a module is LGPL and its
44693         tests module depends on GPLed modules.
44694
44695 2007-01-17  Bruno Haible  <bruno@clisp.org>
44696
44697         * lib/gettimeofday.c (gettimeofday): Add code for the case
44698         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44699         maximum possible value for tv->tv_usec, rather than the minimum one.
44700
44701 2005-10-08  Martin Lambers  <marlam@marlam.de>
44702 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44703 2007-01-16  Bruno Haible  <bruno@clisp.org>
44704
44705         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44706         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44707         gl_FUNC_GETTIMEOFDAY.
44708         (Include): Add gettimeofday.h.
44709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44710         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44711         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44712         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44713         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44714         * lib/gettimeofday.h: New file.
44715         * lib/gettimeofday.c: Include <sys/timeb.h>.
44716         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44717         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44718         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44719         fall back on time().
44720
44721         * tests/test-gettimeofday.c: New file.
44722         * modules/gettimeofday-tests: New file.
44723
44724 2007-01-16  Eric Blake  <ebb9@byu.net>
44725
44726         * modules/fnmatch (Depends-on): Depend on wchar.
44727         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44728         * m4/fnmatch.m4: Likewise.
44729         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44730         * m4/mbchar.m4: Likewise.
44731         * modules/mbswidth (Depends-on): Depend on wchar.
44732         * lib/mbswidth.c: Assume <wchar.h>.
44733         * m4/mbswidth.m4: Likewise.
44734         * modules/quotearg (Depends-on): Depend on wchar.
44735         * lib/quotearg.c: Assume <wchar.h>.
44736         * m4/quotearg.m4: Likewise.
44737         * modules/regex (Depends-on): Depend on wchar.
44738         * lib/regex_internal.h: Assume <wchar.h>.
44739         * m4/regex.m4: Likewise.
44740         * modules/stdint (Depends-on): Depend on wchar.
44741         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44742         * m4/stdint.m4: Likewise.
44743         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44744         * modules/strftime (Depends-on): Depend on wchar.
44745         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44746         * modules/strtol (Depends-on): Depend on wchar.
44747         * lib/strtol.c: Assume <wchar.h>.
44748         * modules/wcwidth (Depends-on): Depend on wchar.
44749         * lib/wcwidth.h: Assume <wchar.h>.
44750         * m4/wcwidth.m4: Likewise.
44751
44752 2007-01-16  Bruno Haible  <bruno@clisp.org>
44753
44754         * modules/csharpexec-script: New, created from...
44755         * modules/csharpexec: ... this.
44756
44757 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44758
44759         * modules/javaexec-script: New, created from...
44760         * modules/javaexec: ... this.
44761
44762 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44763
44764         * modules/poll (Dependencies): Add sys_select.
44765
44766 2007-01-15  Jim Meyering  <jim@meyering.net>
44767
44768         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44769         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44770         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44771         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44772
44773 2007-01-15  Bruno Haible  <bruno@clisp.org>
44774
44775         * modules/striconveh: New file.
44776         * lib/striconveh.h: New file.
44777         * lib/striconveh.c: New file.
44778         * MODULES.html.sh (Internationalization functions): Add striconveh.
44779
44780         * modules/striconveh-tests: New file.
44781         * tests/test-striconveh.c: New file.
44782
44783 2007-01-15  Bruno Haible  <bruno@clisp.org>
44784
44785         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44786         not from GNU libiconv or GNU libc.
44787
44788 2007-01-15  Bruno Haible  <bruno@clisp.org>
44789
44790         * doc/gnulib-intro.texi (Copyright): Explain the different license
44791         terms for module descriptions, autoconf macros, tests, documentation.
44792
44793 2007-01-14  Bruno Haible  <bruno@clisp.org>
44794
44795         * modules/striconv-tests: New file.
44796         * tests/test-striconv.c: New file.
44797
44798 2007-01-14  Bruno Haible  <bruno@clisp.org>
44799
44800         * modules/iconv-tests: New file.
44801         * tests/test-iconv.c: New file.
44802
44803 2007-01-14  Bruno Haible  <bruno@clisp.org>
44804
44805         * gnulib-tool (func_get_license): For test modules, use the license of
44806         the main module.
44807
44808 2007-01-14  Bruno Haible  <bruno@clisp.org>
44809
44810         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44811         if iconv is found to exist.
44812
44813 2007-01-14  Bruno Haible  <bruno@clisp.org>
44814
44815         * modules/c-ctype-tests: New file.
44816         * tests/test-c-ctype.c: New file.
44817
44818 2007-01-14  Bruno Haible  <bruno@clisp.org>
44819
44820         * modules/binary-io-tests: New file.
44821         * tests/test-binary-io.sh: New file.
44822         * tests/test-binary-io.c: New file.
44823
44824 2007-01-14  Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/array-oset-tests: New file.
44827         * tests/test-array_oset.c: New file.
44828
44829 2007-01-14  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/array-list-tests: New file.
44832         * tests/test-array_list.c: New file.
44833
44834 2007-01-14  Bruno Haible  <bruno@clisp.org>
44835
44836         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44837         and make.
44838         Reported by Simon Josefsson in
44839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44840
44841 2007-01-14  Bruno Haible  <bruno@clisp.org>
44842
44843         * modules/allocsa-tests: New file.
44844         * tests/test-allocsa.c: New file.
44845
44846 2007-01-14  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/fchdir (Depends-on): Add absolute-header.
44849         * modules/unistd (Depends-on): Likewise.
44850
44851 2006-12-30  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/fchdir: New file.
44854         * modules/unistd (Files): Add lib/unistd_.h.
44855         (Makefile.am): Generate unistd.h from unistd_.h.
44856         * lib/fchdir.c: New file.
44857         * lib/dirent_.h: New file.
44858         * lib/unistd_.h: New file.
44859         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44860         * m4/fchdir.m4: New file.
44861         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44862         (gl_HEADER_UNISTD): Invoke it.
44863         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44864         function.
44865         * lib/backupfile.c (opendir, closedir): Undefine.
44866         * lib/chown.c (open, close): Undefine.
44867         * lib/clean-temp.c (open, close): Undefine.
44868         * lib/copy-file.c (open, close): Undefine.
44869         * lib/execute.c (open, close): Undefine.
44870         * lib/fsusage.c (open, close): Undefine.
44871         * lib/gc-gnulib.c (open, close): Undefine.
44872         * lib/getcwd.c (opendir, closedir): Undefine.
44873         * lib/glob.c (opendir, closedir): Undefine.
44874         * lib/javacomp.c (open, close): Undefine.
44875         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44876         * lib/openat-proc.c (open, close): Undefine.
44877         * lib/pagealign_alloc.c (open, close): Undefine.
44878         * lib/pipe.c (open, close): Undefine.
44879         * lib/progreloc.c (open, close): Undefine.
44880         * lib/savedir.c (opendir, closedir): Undefine.
44881         * lib/utime.c (open, close): Undefine.
44882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44883
44884 2007-01-10  Bruno Haible  <bruno@clisp.org>
44885
44886         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44887
44888 2007-01-12  Eric Blake  <ebb9@byu.net>
44889
44890         Provide a robust <wchar.h>.  Further simplifications are now
44891         possible in other modules, but not included here.
44892         * modules/wchar: New module.
44893         * m4/wchar.m4: New file.
44894         * lib/wchar_.h: Likewise.
44895         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44896         of the new module.
44897         * MODULES.html.sh (Extended multibyte and wide character utilities):
44898         New section.
44899
44900 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44903         to a reasonable default for memory allocation.
44904         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44905         file system that reports garbage st_size values for symlinks.
44906         Problem reported by Liyang Hu.
44907
44908 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44909
44910         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44911         Emacs .#* auto-save files).
44912
44913 2007-01-11  Bruno Haible  <bruno@clisp.org>
44914
44915         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44916         directory.
44917
44918 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         Use @...@ consistently in lib/wctype_.h.
44921         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44922         on it being set to 1 or 0.
44923         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44924         go back to AC_SUBSTing it.
44925         * modules/wctype (Makefile.am): Undo previous change.
44926
44927 2007-01-10  Eric Blake  <ebb9@byu.net>
44928
44929         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44930         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44931         * modules/wctype (Makefile.am): Likewise.
44932         Reported by Chris McGuire.
44933
44934 2007-01-10  Jim Meyering  <jim@meyering.net>
44935
44936         fts.c: a small readability/maintainability improvement
44937         * lib/fts.c (fts_read): Make this code slightly more readable and
44938         maintainable by hoisting the "sp->fts_cur = p" assignments to
44939         immediately follow the statements that set P.  Derived from
44940         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44941
44942 2007-01-10  Eric Blake  <ebb9@byu.net>
44943
44944         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44945         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44947         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44948         Reported by Chris McGuire.
44949
44950 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44951
44952         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44953         in sed script.
44954
44955 2007-01-09  Bruno Haible  <bruno@clisp.org>
44956
44957         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
44958         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
44959         variables.
44960         (func_module): Use them.
44961
44962 2007-01-09  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/unistr/base: New file.
44965         * lib/unistr.h: New file.
44966
44967         * modules/unistr/u8-to-u16: New file.
44968         * lib/unistr/u8-to-u16.c: New file.
44969
44970         * modules/unistr/u8-to-u32: New file.
44971         * lib/unistr/u8-to-u32.c: New file.
44972
44973         * modules/unistr/u16-to-u8: New file.
44974         * lib/unistr/u16-to-u8.c: New file.
44975
44976         * modules/unistr/u16-to-u32: New file.
44977         * lib/unistr/u16-to-u32.c: New file.
44978
44979         * modules/unistr/u32-to-u8: New file.
44980         * lib/unistr/u32-to-u8.c: New file.
44981
44982         * modules/unistr/u32-to-u16: New file.
44983         * lib/unistr/u32-to-u16.c: New file.
44984
44985         * modules/unistr/u8-check: New file.
44986         * modules/unistr/u16-check: New file.
44987         * modules/unistr/u32-check: New file.
44988         * lib/unistr/u8-check.c: New file.
44989         * lib/unistr/u16-check.c: New file.
44990         * lib/unistr/u32-check.c: New file.
44991
44992         * modules/unistr/u8-chr: New file.
44993         * modules/unistr/u16-chr: New file.
44994         * modules/unistr/u32-chr: New file.
44995         * lib/unistr/u8-chr.c: New file.
44996         * lib/unistr/u16-chr.c: New file.
44997         * lib/unistr/u32-chr.c: New file.
44998
44999         * modules/unistr/u8-cmp: New file.
45000         * modules/unistr/u16-cmp: New file.
45001         * modules/unistr/u32-cmp: New file.
45002         * lib/unistr/u8-cmp.c: New file.
45003         * lib/unistr/u16-cmp.c: New file.
45004         * lib/unistr/u32-cmp.c: New file.
45005
45006         * modules/unistr/u8-cpy: New file.
45007         * modules/unistr/u16-cpy: New file.
45008         * modules/unistr/u32-cpy: New file.
45009         * lib/unistr/u8-cpy.c: New file.
45010         * lib/unistr/u16-cpy.c: New file.
45011         * lib/unistr/u32-cpy.c: New file.
45012         * lib/unistr/u-cpy.h: New file.
45013
45014         * modules/unistr/u8-cpy-alloc: New file.
45015         * modules/unistr/u16-cpy-alloc: New file.
45016         * modules/unistr/u32-cpy-alloc: New file.
45017         * lib/unistr/u8-cpy-alloc.c: New file.
45018         * lib/unistr/u16-cpy-alloc.c: New file.
45019         * lib/unistr/u32-cpy-alloc.c: New file.
45020         * lib/unistr/u-cpy-alloc.h: New file.
45021
45022         * modules/unistr/u8-endswith: New file.
45023         * modules/unistr/u16-endswith: New file.
45024         * modules/unistr/u32-endswith: New file.
45025         * lib/unistr/u8-endswith.c: New file.
45026         * lib/unistr/u16-endswith.c: New file.
45027         * lib/unistr/u32-endswith.c: New file.
45028         * lib/unistr/u-endswith.h: New file.
45029
45030         * modules/unistr/u8-mblen: New file.
45031         * modules/unistr/u16-mblen: New file.
45032         * modules/unistr/u32-mblen: New file.
45033         * lib/unistr/u8-mblen.c: New file.
45034         * lib/unistr/u16-mblen.c: New file.
45035         * lib/unistr/u32-mblen.c: New file.
45036
45037         * modules/unistr/u8-mbtouc: New file.
45038         * modules/unistr/u16-mbtouc: New file.
45039         * modules/unistr/u32-mbtouc: New file.
45040         * lib/unistr/u8-mbtouc.c: New file.
45041         * lib/unistr/u16-mbtouc.c: New file.
45042         * lib/unistr/u32-mbtouc.c: New file.
45043
45044         * modules/unistr/u8-mbtouc-safe: New file.
45045         * modules/unistr/u16-mbtouc-safe: New file.
45046         * modules/unistr/u32-mbtouc-safe: New file.
45047         * lib/unistr/u8-mbtouc-safe.c: New file.
45048         * lib/unistr/u16-mbtouc-safe.c: New file.
45049         * lib/unistr/u32-mbtouc-safe.c: New file.
45050
45051         * modules/unistr/u8-move: New file.
45052         * modules/unistr/u16-move: New file.
45053         * modules/unistr/u32-move: New file.
45054         * lib/unistr/u8-move.c: New file.
45055         * lib/unistr/u16-move.c: New file.
45056         * lib/unistr/u32-move.c: New file.
45057         * lib/unistr/u-move.h: New file.
45058
45059         * modules/unistr/u8-next: New file.
45060         * modules/unistr/u16-next: New file.
45061         * modules/unistr/u32-next: New file.
45062         * lib/unistr/u8-next.c: New file.
45063         * lib/unistr/u16-next.c: New file.
45064         * lib/unistr/u32-next.c: New file.
45065
45066         * modules/unistr/u8-prev: New file.
45067         * modules/unistr/u16-prev: New file.
45068         * modules/unistr/u32-prev: New file.
45069         * lib/unistr/u8-prev.c: New file.
45070         * lib/unistr/u16-prev.c: New file.
45071         * lib/unistr/u32-prev.c: New file.
45072
45073         * modules/unistr/u8-set: New file.
45074         * modules/unistr/u16-set: New file.
45075         * modules/unistr/u32-set: New file.
45076         * lib/unistr/u8-set.c: New file.
45077         * lib/unistr/u16-set.c: New file.
45078         * lib/unistr/u32-set.c: New file.
45079         * lib/unistr/u-set.h: New file.
45080
45081         * modules/unistr/u8-startswith: New file.
45082         * modules/unistr/u16-startswith: New file.
45083         * modules/unistr/u32-startswith: New file.
45084         * lib/unistr/u8-startswith.c: New file.
45085         * lib/unistr/u16-startswith.c: New file.
45086         * lib/unistr/u32-startswith.c: New file.
45087         * lib/unistr/u-startswith.h: New file.
45088
45089         * modules/unistr/u8-stpcpy: New file.
45090         * modules/unistr/u16-stpcpy: New file.
45091         * modules/unistr/u32-stpcpy: New file.
45092         * lib/unistr/u8-stpcpy.c: New file.
45093         * lib/unistr/u16-stpcpy.c: New file.
45094         * lib/unistr/u32-stpcpy.c: New file.
45095         * lib/unistr/u-stpcpy.h: New file.
45096
45097         * modules/unistr/u8-stpncpy: New file.
45098         * modules/unistr/u16-stpncpy: New file.
45099         * modules/unistr/u32-stpncpy: New file.
45100         * lib/unistr/u8-stpncpy.c: New file.
45101         * lib/unistr/u16-stpncpy.c: New file.
45102         * lib/unistr/u32-stpncpy.c: New file.
45103         * lib/unistr/u-stpncpy.h: New file.
45104
45105         * modules/unistr/u8-strcat: New file.
45106         * modules/unistr/u16-strcat: New file.
45107         * modules/unistr/u32-strcat: New file.
45108         * lib/unistr/u8-strcat.c: New file.
45109         * lib/unistr/u16-strcat.c: New file.
45110         * lib/unistr/u32-strcat.c: New file.
45111         * lib/unistr/u-strcat.h: New file.
45112
45113         * modules/unistr/u8-strchr: New file.
45114         * modules/unistr/u16-strchr: New file.
45115         * modules/unistr/u32-strchr: New file.
45116         * lib/unistr/u8-strchr.c: New file.
45117         * lib/unistr/u16-strchr.c: New file.
45118         * lib/unistr/u32-strchr.c: New file.
45119
45120         * modules/unistr/u8-strcmp: New file.
45121         * modules/unistr/u16-strcmp: New file.
45122         * modules/unistr/u32-strcmp: New file.
45123         * lib/unistr/u8-strcmp.c: New file.
45124         * lib/unistr/u16-strcmp.c: New file.
45125         * lib/unistr/u32-strcmp.c: New file.
45126
45127         * modules/unistr/u8-strcpy: New file.
45128         * modules/unistr/u16-strcpy: New file.
45129         * modules/unistr/u32-strcpy: New file.
45130         * lib/unistr/u8-strcpy.c: New file.
45131         * lib/unistr/u16-strcpy.c: New file.
45132         * lib/unistr/u32-strcpy.c: New file.
45133         * lib/unistr/u-strcpy.h: New file.
45134
45135         * modules/unistr/u8-strcspn: New file.
45136         * modules/unistr/u16-strcspn: New file.
45137         * modules/unistr/u32-strcspn: New file.
45138         * lib/unistr/u8-strcspn.c: New file.
45139         * lib/unistr/u16-strcspn.c: New file.
45140         * lib/unistr/u32-strcspn.c: New file.
45141         * lib/unistr/u-strcspn.h: New file.
45142
45143         * modules/unistr/u8-strdup: New file.
45144         * modules/unistr/u16-strdup: New file.
45145         * modules/unistr/u32-strdup: New file.
45146         * lib/unistr/u8-strdup.c: New file.
45147         * lib/unistr/u16-strdup.c: New file.
45148         * lib/unistr/u32-strdup.c: New file.
45149         * lib/unistr/u-strdup.h: New file.
45150
45151         * modules/unistr/u8-strlen: New file.
45152         * modules/unistr/u16-strlen: New file.
45153         * modules/unistr/u32-strlen: New file.
45154         * lib/unistr/u8-strlen.c: New file.
45155         * lib/unistr/u16-strlen.c: New file.
45156         * lib/unistr/u32-strlen.c: New file.
45157         * lib/unistr/u-strlen.h: New file.
45158
45159         * modules/unistr/u8-strmblen: New file.
45160         * modules/unistr/u16-strmblen: New file.
45161         * modules/unistr/u32-strmblen: New file.
45162         * lib/unistr/u8-strmblen.c: New file.
45163         * lib/unistr/u16-strmblen.c: New file.
45164         * lib/unistr/u32-strmblen.c: New file.
45165
45166         * modules/unistr/u8-strmbtouc: New file.
45167         * modules/unistr/u16-strmbtouc: New file.
45168         * modules/unistr/u32-strmbtouc: New file.
45169         * lib/unistr/u8-strmbtouc.c: New file.
45170         * lib/unistr/u16-strmbtouc.c: New file.
45171         * lib/unistr/u32-strmbtouc.c: New file.
45172
45173         * modules/unistr/u8-strncat: New file.
45174         * modules/unistr/u16-strncat: New file.
45175         * modules/unistr/u32-strncat: New file.
45176         * lib/unistr/u8-strncat.c: New file.
45177         * lib/unistr/u16-strncat.c: New file.
45178         * lib/unistr/u32-strncat.c: New file.
45179         * lib/unistr/u-strncat.h: New file.
45180
45181         * modules/unistr/u8-strncmp: New file.
45182         * modules/unistr/u16-strncmp: New file.
45183         * modules/unistr/u32-strncmp: New file.
45184         * lib/unistr/u8-strncmp.c: New file.
45185         * lib/unistr/u16-strncmp.c: New file.
45186         * lib/unistr/u32-strncmp.c: New file.
45187
45188         * modules/unistr/u8-strncpy: New file.
45189         * modules/unistr/u16-strncpy: New file.
45190         * modules/unistr/u32-strncpy: New file.
45191         * lib/unistr/u8-strncpy.c: New file.
45192         * lib/unistr/u16-strncpy.c: New file.
45193         * lib/unistr/u32-strncpy.c: New file.
45194         * lib/unistr/u-strncpy.h: New file.
45195
45196         * modules/unistr/u8-strnlen: New file.
45197         * modules/unistr/u16-strnlen: New file.
45198         * modules/unistr/u32-strnlen: New file.
45199         * lib/unistr/u8-strnlen.c: New file.
45200         * lib/unistr/u16-strnlen.c: New file.
45201         * lib/unistr/u32-strnlen.c: New file.
45202         * lib/unistr/u-strnlen.h: New file.
45203
45204         * modules/unistr/u8-strpbrk: New file.
45205         * modules/unistr/u16-strpbrk: New file.
45206         * modules/unistr/u32-strpbrk: New file.
45207         * lib/unistr/u8-strpbrk.c: New file.
45208         * lib/unistr/u16-strpbrk.c: New file.
45209         * lib/unistr/u32-strpbrk.c: New file.
45210         * lib/unistr/u-strpbrk.h: New file.
45211
45212         * modules/unistr/u8-strrchr: New file.
45213         * modules/unistr/u16-strrchr: New file.
45214         * modules/unistr/u32-strrchr: New file.
45215         * lib/unistr/u8-strrchr.c: New file.
45216         * lib/unistr/u16-strrchr.c: New file.
45217         * lib/unistr/u32-strrchr.c: New file.
45218
45219         * modules/unistr/u8-strspn: New file.
45220         * modules/unistr/u16-strspn: New file.
45221         * modules/unistr/u32-strspn: New file.
45222         * lib/unistr/u8-strspn.c: New file.
45223         * lib/unistr/u16-strspn.c: New file.
45224         * lib/unistr/u32-strspn.c: New file.
45225         * lib/unistr/u-strspn.h: New file.
45226
45227         * modules/unistr/u8-strstr: New file.
45228         * modules/unistr/u16-strstr: New file.
45229         * modules/unistr/u32-strstr: New file.
45230         * lib/unistr/u8-strstr.c: New file.
45231         * lib/unistr/u16-strstr.c: New file.
45232         * lib/unistr/u32-strstr.c: New file.
45233         * lib/unistr/u-strstr.h: New file.
45234
45235         * modules/unistr/u8-strtok: New file.
45236         * modules/unistr/u16-strtok: New file.
45237         * modules/unistr/u32-strtok: New file.
45238         * lib/unistr/u8-strtok.c: New file.
45239         * lib/unistr/u16-strtok.c: New file.
45240         * lib/unistr/u32-strtok.c: New file.
45241         * lib/unistr/u-strtok.h: New file.
45242
45243         * modules/unistr/u8-uctomb: New file.
45244         * modules/unistr/u16-uctomb: New file.
45245         * modules/unistr/u32-uctomb: New file.
45246         * lib/unistr/u8-uctomb.c: New file.
45247         * lib/unistr/u16-uctomb.c: New file.
45248         * lib/unistr/u32-uctomb.c: New file.
45249
45250         * MODULES.html.sh (Unicode string functions): Add the new modules.
45251
45252 2007-01-08  Bruno Haible  <bruno@clisp.org>
45253
45254         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45255         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45256         subdirectories.
45257
45258 2007-01-08  Karl Berry  <karl@gnu.org>
45259
45260         * doc/error.texi: mention that main() fns must set program_name
45261         when progname is used.
45262
45263 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45264
45265         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45266         WCTYPE_H is empty, for the benefit of builds from non-distclean
45267         directories.  Problem reported by Eric Blake in
45268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45269
45270 2007-01-08  Bruno Haible  <bruno@clisp.org>
45271
45272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45273         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45274         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45275         PROVIDE_CANONICALIZE_FILENAME_MODE.
45276         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45277
45278 2007-01-08  Bruno Haible  <bruno@clisp.org>
45279
45280         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45281         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45282         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45283         * lib/fts.c: Likewise.
45284         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45285
45286 2006-12-25  Bruno Haible  <bruno@clisp.org>
45287
45288         * modules/utf8-ucs4-safe: New file.
45289         * lib/utf8-ucs4-safe.h: New file.
45290         * lib/unistr/utf8-ucs4-safe.c: New file.
45291
45292         * modules/utf16-ucs4-safe: New file.
45293         * lib/utf16-ucs4-safe.h: New file.
45294         * lib/unistr/utf16-ucs4-safe.c: New file.
45295
45296         * MODULES.html.sh (Unicode string functions): Add the new modules.
45297
45298 2007-01-08  Bruno Haible  <bruno@clisp.org>
45299
45300         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45301         (Depends-on): Add unitypes.
45302         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45303         (u8_mbtouc_aux): Move out to separate file.
45304         (u8_mbtouc): Use ucs4_t, uint8_t types.
45305         * lib/unistr/utf8-ucs4.c: New file.
45306
45307         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45308         (Depends-on): Add unitypes.
45309         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45310         (u16_mbtouc_aux): Move out to separate file.
45311         (u16_mbtouc): Use ucs4_t, uint16_t types.
45312         * lib/unistr/utf16-ucs4.c: New file.
45313
45314         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45315         (Depends-on): Add unitypes.
45316         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45317         (u8_uctomb_aux): Move out to separate file.
45318         (u8_uctomb): Use ucs4_t, uint8_t types.
45319         * lib/unistr/ucs4-utf8.c: New file.
45320
45321         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45322         (Depends-on): Add unitypes.
45323         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45324         (u16_uctomb_aux): Move out to separate file.
45325         (u16_uctomb): Use ucs4_t, uint16_t types.
45326         * lib/unistr/ucs4-utf16.c: New file.
45327
45328 2006-12-25  Bruno Haible  <bruno@clisp.org>
45329
45330         * modules/unitypes: New file.
45331         * lib/unitypes.h: New file.
45332         * MODULES.html.sh (func_all_modules): New section "Unicode string
45333         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45334         this section. Add unitypes.
45335
45336 2007-01-08  Bruno Haible  <bruno@clisp.org>
45337
45338         Avoid variable names that conflict with those from libtool.
45339         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45340         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45341         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45342         library_names_spec to acl_library_names_spec, hardcode_* to
45343         acl_hardcode_*.
45344         Reported by Ralf Wildenhues.
45345
45346 2007-01-08  Bruno Haible  <bruno@clisp.org>
45347
45348         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45349         definition.
45350         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45351         definition.
45352         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45353         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45354         definition.
45355         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45356         definition.
45357         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45358         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45359         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45360         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45361         definition.
45362         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45363         definition.
45364         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45365         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45366         GC_USE_<algorithm>.
45367         * lib/gc-libgcrypt.c: Likewise.
45368         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45369         * modules/gc-arctwo (configure.ac): Likewise.
45370         * modules/gc-des (configure.ac): Likewise.
45371         * modules/gc-hmac-md5 (configure.ac): Likewise.
45372         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45373         * modules/gc-md2 (configure.ac): Likewise.
45374         * modules/gc-md4 (configure.ac): Likewise.
45375         * modules/gc-md5 (configure.ac): Likewise.
45376         * modules/gc-random (configure.ac): Likewise.
45377         * modules/gc-rijndael (configure.ac): Likewise.
45378         * modules/gc-sha1 (configure.ac): Likewise.
45379
45380 2007-01-08  Bruno Haible  <bruno@clisp.org>
45381
45382         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45383         macro definition.
45384         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45385         definition.
45386         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45387         definition.
45388         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45389         * modules/fcntl-safer (configure.ac): Likewise.
45390         * modules/fopen-safer (configure.ac): Likewise.
45391         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45392         GNULIB_FWRITEERROR macro definition.
45393
45394 2007-01-08  Bruno Haible  <bruno@clisp.org>
45395
45396         * m4/gnulib-common.m4: New file.
45397         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45398         (func_get_filelist): Add m4/gnulib-common.m4.
45399
45400 2007-01-08  Bruno Haible  <bruno@clisp.org>
45401
45402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45403         command.
45404
45405 2007-01-08  Jim Meyering  <jim@meyering.net>
45406
45407         Use a more robust test for a "can't happen" condition.
45408         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45409         narrowed the st_size value.  Presuming the "can't happen" condition
45410         is true, that narrowing could conceivably convert an invalid st_size
45411         value into a valid one.  Instead, use a change based on Matthew
45412         Woehlke's original patch.
45413
45414         Slight readability improvement: use an assert-like macro
45415         in place of literal "abort ()" uses.
45416         * lib/fts.c (fts_assert): Define.
45417         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45418         Use this macro instead of a bare 'abort'.
45419
45420 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45421
45422         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45423         simply work around them.
45424         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45425         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45426         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45427         declaring.
45428         Don't bother to define as macros, since the standard doesn't require it.
45429         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45430         longer worry about IRIX 5.3.
45431         (HAVE_WCTYPE_CTMP_BUG): Remove.
45432
45433 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45434
45435         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45436         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45437         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45438         Problems reported by Georg Schwarz for IRIX 5.3.
45439
45440         * gnulib-tool (autoconf_minversion): Take the maximum version number
45441         found, not the minimum.  Problem reported by James Youngman.
45442
45443 2007-01-03  Karl Berry  <karl@gnu.org>
45444
45445         * doc/error.texi: new file, explaining interaction with progname.
45446         * doc/gnulib.texi: include it.  Update copyright.
45447
45448 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45449
45450         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45451         AC_CANONICAL_HOST, to improve autobuild outputs.
45452
45453 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45454             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45455
45456         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45457         sockets, server sockets, and other file descriptors.  Count errors
45458         to compute the return value.  Reorder the code a bit to be easier
45459         to follow.  Don't set event bits that were not requested (except
45460         POLLERR and POLLHUP).
45461
45462 2007-01-01  Bruno Haible  <bruno@clisp.org>
45463
45464         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45465
45466 2007-01-03  Jim Meyering  <jim@meyering.net>
45467
45468         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45469
45470 2007-01-02  Bruno Haible  <bruno@clisp.org>
45471
45472         * modules/settime (Include): Require timespec.h.
45473         * modules/nanosleep (Include): Likewise.
45474
45475 2007-01-01  Bruno Haible  <bruno@clisp.org>
45476
45477         * gnulib-tool (func_emit_copyright_notice): Bump year.
45478         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45479
45480 2007-01-01  Bruno Haible  <bruno@clisp.org>
45481
45482         Improve support for OpenBSD.
45483         * build-aux/config.rpath (libname_spec): Export.
45484         (library_names_spec): New variable. Export.
45485         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45486         library_names_spec from the config.rpath output. Locate shared library
45487         through the name pattern in library_names_spec.
45488
45489 2007-01-01  Eric Blake  <ebb9@byu.net>
45490
45491         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45492
45493 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45494
45495         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45496         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45497         assume the C locale, and avoid an "eval" that could cause trouble.
45498         Problem with SORT reported by Bob Proulx.
45499
45500         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45501         Define.  Trivial patch from Henning Nielsen Lund, originally
45502         sent to bug-grep@gnu.org today.
45503
45504 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45505
45506         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45507         struct stat.  Problem reported by Henning Nielsen Lund.
45508         * lib/acl.c: Include acl.h first, to check interface.  Don't
45509         bother to include sys/types.h and sys/stat.h again.
45510
45511 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45512
45513         Import the following change from libc; problem reported by
45514         Sven Verdoolaege.
45515
45516         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45517
45518         [BZ #1373]
45519         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45520
45521 2006-12-28  Jim Meyering  <jim@meyering.net>
45522
45523         * build-aux/announce-gen: Do not assume that the package
45524         builds any of tar.gz, tar.bz2, and .xdelta files.
45525         Suggestion from Simon Josefsson.
45526
45527 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45528
45529         * modules/announce-gen: New file.
45530
45531 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45532
45533         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45534         handles its gotchas now.
45535         * lib/mbswidth.c: Likewise.
45536         * lib/wcwidth.h: Likewise.
45537         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45538         and iswcntrl; the wctype module does this stuff now.
45539         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45541         * modules/mbchar (Depends-on): Add wctype.
45542         * modules/mbswidth (Depends-on): Likewise.
45543         * modules/wcwidth (Depends-on): Likewise.
45544
45545 2006-12-27  Eric Blake  <ebb9@byu.net>
45546
45547         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45548         module uses more than what <wctype.h> is required to provide.
45549
45550 2006-12-26  Eric Blake  <ebb9@byu.net>
45551
45552         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45553
45554 2006-12-26  Eric Blake  <ebb9@byu.net>
45555
45556         * modules/absolute-header: New module.
45557         * modules/fcntl (Depends-on): Depend on it.
45558         * modules/inttypes (Depends-on): Likewise.
45559         * modules/stdint (Depends-on): Likewise.
45560         * modules/sys_stat (Depends-on): Likewise.
45561         * modules/wctype (Depends-on): Likewise.
45562         * MODULES.html.sh (Support for building libraries and
45563         executables): Document it.
45564
45565 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45566
45567         * gnulib-tool (SED): Remove, undoing previous change.
45568         The problem was that it broke coreutils on Solaris, because
45569         "sed --posix" leaked into a makefile.
45570         (sed): New alias, if 'alias' and GNU sed.
45571
45572 2006-12-24  Jim Meyering  <jim@meyering.net>
45573
45574         Work around an fchownat bug in glibc-2.4:
45575         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45576         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45577         in spite of the -P option.
45578         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45579         New macros.
45580         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45581         * modules/openat (Files): Add lib/fchownat.c.
45582         * lib/openat.c (fchownat): Don't define here.  Move to...
45583         * lib/fchownat.c: ...this new file.
45584
45585 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45586
45587         Fix bug reported by Bruno Haible in
45588         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45589         where quotearg.c didn't compile on Mac OS X 10.2 because it
45590         lacks <wchar.h> and wint_t.
45591         * lib/wctype_.h (__wctype_wint_t): New type.
45592         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45593         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45594         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45595         Arg is now of type __wctype_wint_t, not wint_t.
45596         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45597         substitute HAVE_WINT_T.
45598         * modules/wctype (Files): Add m4/wint_t.m4.
45599         (wctype.h): Substitute HAVE_WINT_T.
45600
45601 2006-12-23  Bruno Haible  <bruno@clisp.org>
45602
45603         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45604
45605 2006-12-23  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45608         S_ISLNK.
45609         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45610         mingw.
45611
45612 2006-12-22  Bruno Haible  <bruno@clisp.org>
45613
45614         * lib/copy-file.c: Include acl.h.
45615         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45616         Close the file descriptors only after being done with copy_acl.
45617         * modules/copy-file (Depends-on): Add acl.
45618
45619 2006-12-22  Bruno Haible  <bruno@clisp.org>
45620
45621         * gnulib-tool (SED): New variable.
45622         Use $SED instead of sed everywhere.
45623
45624 2006-12-22  Bruno Haible  <bruno@clisp.org>
45625
45626         * modules/no-c++: New file.
45627         * m4/no-c++.m4: New file.
45628         * MODULES.html.sh (Support for building libraries and executables):
45629         Add no-c++.
45630
45631 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45634         Include <limits.h>, and use its INT_MAX to rewrite the
45635         j loop so that it does not overflow 'int'.  Problem reported by
45636         Ralf Wildenhues in
45637         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45638         Play it safe by shifting left by 1 rather than multiplying by 2,
45639         as GCC is less likely to optimize this away when the value
45640         is signed (when it assumes overflow leads to undefined behavior).
45641         Also, don't assume time_t uses two's complement.
45642
45643 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45644
45645         * MODULES.html.sh: New module wctype.
45646         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45647         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45648         <wctype.h>, since the new wctype module should fix this.
45649         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45650         the wctype module should arrange for it.
45651         * lib/regex_internal.h: Likewise.
45652         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45653         since the wctype module should handle this now.
45654         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45655         * modules/fnmatch (Depends-on): Add wctype.
45656         * modules/quotearg (Depends-on): Likewise.
45657         * modules/regex (Depends-on): Likewise.
45658
45659 2006-12-19  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45662         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45663
45664 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45665
45666         * modules/savewd (Depends-on): Fix dependency on fcntl.
45667
45668 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45669
45670         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45671         conforms to C99, rather than relying on the user's environment
45672         setting of STDINT_H.
45673
45674 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45675         and Eric Blake  <ebb9@byu.net>
45676
45677         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45678         This is more consistent with the other defines here.
45679         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45680         Port to z/OS.  Problem reported by Paul Gilmartin.
45681         Change local vars to use gl_ prefix rather than ac_.
45682         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45683         with other defines.
45684         * modules/double-slash-root: New module.
45685         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45686         (Depends-on): Add double-slash-root.
45687         * MODULES.html.sh (File system functions): Mention new module.
45688
45689 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45690
45691         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45692         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45693         This is for the benefit of gzip, which doesn't do i18n.
45694
45695 2006-12-12  Jim Meyering  <jim@meyering.net>
45696
45697         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45698         Reported by Andreas Schwab <schwab@suse.de>.
45699
45700 2006-12-12  Bruno Haible  <bruno@clisp.org>
45701
45702         Merge these changes.
45703         2006-09-05  Bruno Haible  <bruno@clisp.org>
45704         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45705         iconv_alloc succeeded.
45706         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45707         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45708         test for " && dest " at the end - dest is always != NULL there. Call
45709         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45710         with 2xNULL arguments, also to flush the state storage. Handle the
45711         IRIX iconv behaviour. Realloc the final result, to throw away unused
45712         memory.
45713
45714 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45715
45716         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45717         and fchmodat unconditionally, since glibc 2.4 has them.
45718         Problem reported by Arkadiusz Miskiewicz.
45719
45720 2006-12-10  Bruno Haible  <bruno@clisp.org>
45721
45722         * gnulib-tool (func_import): Show the include files only for those
45723         modules that are copied and specified.
45724         Reported by Karl Berry.
45725
45726 2006-12-08  Jim Meyering  <jim@meyering.net>
45727
45728         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45729         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45730
45731         * build-aux/announce-gen: Add two new options, both optional:
45732         --bootstrap-tools=TOOL_LIST
45733               a comma-separated list of tools, e.g.,
45734               autoconf,automake,bison,gnulib
45735         --gnulib-snapshot-date=DATE
45736               if gnulib is in the bootstrap tool list,
45737               then report this as the snapshot date.
45738               If not specified, use the current date/time.
45739               If you specify a date here, be sure it's UTC.
45740
45741 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45742
45743         * tests/test-argp-2.sh: Fix test to match actual output.
45744         (func_compare): Fix sed script to be portable.
45745
45746 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45747
45748         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45749         workaround for this case.  It is not autoconfigured now; offhand
45750         it's hard to see how to autoconfigure it.
45751
45752 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45753
45754         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45755         a directory that is about to be chowned.  Such a directory's
45756         initial file permissions should permit the owner only and this
45757         should not be changed until after the chown, since the group and
45758         other bits would be incorrect if they granted permission before
45759         the chown.
45760
45761         Fix porting problem for iswctype reported by Georg Schwarz in:
45762         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45763         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45764         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45765         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45766         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45767
45768 2006-12-03  Jim Meyering  <jim@meyering.net>
45769
45770         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45771         p->fts_statp may not yet be defined.
45772         (fts_read): Instead, set it in the caller, once p->fts_statp is
45773         sure to be defined, and corresponds to a top-level directory.
45774         This bug made du -x fail.  Here's the coreutils test case:
45775         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45776         Reported by Mike Frysinger.
45777
45778 2006-12-01  Jim Meyering  <jim@meyering.net>
45779
45780         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45781         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45782         Reported by Simon Josefsson.
45783
45784 2006-11-30  Jim Meyering  <jim@meyering.net>
45785
45786         * m4/warning.m4: Use the all-permissive copyright notice
45787         recommended by RMS (rather than LGPL).
45788         * m4/vararrays.m4: Likewise.
45789         * m4/flexmember.m4: Likewise.
45790
45791 2006-11-29  Bruno Haible  <bruno@clisp.org>
45792
45793         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45794         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45795         using +=.
45796         Reported by Simon Josefsson <simon@josefsson.org>.
45797
45798 2006-11-28  James Youngman <jay@gnu.org>
45799
45800         * README: Advise users that they might find the bug-gnulib@gnu.org
45801         and autotools-announce@gnu.org mailing lists useful.
45802
45803 2006-11-28  Bruno Haible  <bruno@clisp.org>
45804
45805         * m4/ptrdiff_max.m4: Remove file.
45806
45807 2006-11-21  Bruno Haible  <bruno@clisp.org>
45808
45809         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45810         _AC_COMPUTE_INT.
45811         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45812         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45813         _AC_COMPUTE_INT.
45814         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45815         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45816         _AC_COMPUTE_INT.
45817         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45818
45819 2006-11-28  Jim Meyering  <jim@meyering.net>
45820
45821         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45822         warning from "gcc -Wshadow" about shadowing the builtin.
45823
45824 2006-11-27  Bruno Haible  <bruno@clisp.org>
45825
45826         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45827         _AC_COMPUTE_INT.
45828         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45829
45830 2006-11-27  Bruno Haible  <bruno@clisp.org>
45831             Paul Eggert  <eggert@cs.ucla.edu>
45832
45833         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45834
45835 2006-11-26  Bruno Haible  <bruno@clisp.org>
45836
45837         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45838         noinst_LTLIBRARIES.
45839
45840 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45841             Bruno Haible  <bruno@clisp.org>
45842
45843         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45844         if compiling with "gcc -ansi".
45845
45846 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45847
45848         Fix some incompatibilities with gcc -ansi -pedantic.
45849         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45850         if compiling pedantically with GCC, unless it's C99 or later.
45851         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45852         it mishandles gcc -ansi -pedantic as well.
45853         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45854         if gcc -pedantic.
45855         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45856         initializers for struct if -pedantic, unless it's C99 or later.
45857
45858 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45859
45860         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45861         Don't close an fd more than once. Identical atimes indicate
45862         success, not failure.
45863
45864 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45865
45866         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45867
45868 2006-11-23  Jim Meyering  <jim@meyering.net>
45869
45870         * build-aux/announce-gen: New file.  From coreutils.
45871
45872 2006-11-22  Jim Meyering  <jim@meyering.net>
45873
45874         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45875         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45876         (fts_read): Use a temporary to narrow the overused st_size member
45877         before using it in a switch statement.  Reported by Matthew Woehlke.
45878
45879         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45880         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45881
45882 2006-11-20  Bruno Haible  <bruno@clisp.org>
45883
45884         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45885         changequote instead of pairs of brackets.
45886         Reported by Andreas Schwab <schwab@suse.de>.
45887
45888 2006-11-21  Jim Meyering  <jim@meyering.net>
45889
45890         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45891         so as to remain compatible with older compilers.
45892         Patch from Michael Deutschmann.
45893
45894 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45895
45896         * MODULES.html.sh (File system functions): Add openat.
45897
45898         * lib/openat.h (rpl_fstatat): New macro, if
45899         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45900         (fstatat): Define to rpl_fstatat under the same conditions,
45901         unless COMPILING_FSTATAT.
45902         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45903         seems to have the bug.
45904         * lib/fstatat.c: New file.
45905         * modules/openat (Files): Add it.
45906
45907 2006-11-20  Bruno Haible  <bruno@clisp.org>
45908
45909         * Makefile: New file.
45910
45911 2006-11-20  Jim Meyering  <jim@meyering.net>
45912
45913         The beginnings of syntax-related checks for gnulib.
45914         * lib/Makefile: New file.
45915         * lib/t-idcache: New script.  Ensure that the two halves of
45916         idcache.c stay in sync.
45917
45918         * lib/idcache.c: Adjust comments in user- and group- portions to
45919         be more accurate, and to be consistent with one another.
45920
45921 2006-11-20  Jim Meyering  <jim@meyering.net>
45922
45923         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45924         continue using the flexible array member (thus, this module performs
45925         half as many malloc calls), with the addition that...
45926         (getgroup, getuser): Consistently record a non-match via an empty
45927         "name" string, and map an empty string match to a NULL return value.
45928         * modules/idcache (Depends-on): Re-add flexmember.
45929
45930         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45931         (getuidbyname, getgroup, getgidbyname): Likewise.
45932
45933         Use cleaner syntax: NULL rather than 0.
45934         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45935
45936 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45937
45938         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45939         It mishandled the case where the group was missing.
45940         Problem reported by Greg Schafer.
45941         * modules/idcache: Likewise.
45942
45943 2006-11-18  Jim Meyering  <jim@meyering.net>
45944
45945         * check-module (%exempt_header): Add exception for some
45946         conditionally-included headers.
45947
45948         * modules/i-ring (Depends-on): Add verify.
45949         (License): Change to LGPL.
45950
45951 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45952
45953         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45954         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45955         and inttostr.h.  Use snprintf rather than uinttostr, so that
45956         LGPLed code doesn't depend on GPLed.
45957
45958 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45959
45960         * modules/inline (License): Change from GPL to LGPL.
45961
45962 2006-11-17  Jim Meyering  <jim@meyering.net>
45963
45964         * modules/d-type (License): Switch to LGPL.
45965
45966 2006-11-15  Bruno Haible  <bruno@clisp.org>
45967
45968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
45969
45970 2006-11-15  Eric Blake  <ebb9@byu.net>
45971
45972         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
45973         the module dependency.
45974
45975 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45976             Bruno Haible  <bruno@clisp.org>
45977
45978         * gnulib-tool (func_create_testdir): Add license consistency check.
45979
45980 2006-11-15  Eric Blake  <ebb9@byu.net>
45981
45982         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
45983         random "(cached)" in configure output.
45984
45985 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45986
45987         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
45988         test for conforming inttypes.h is both announced and cached.
45989
45990         * MODULES.html.sh (seen_modules, seen_files): New variables.
45991         (func_module): Rewrite to use a few less gnulib-tool and sed
45992         invocations.  Avoid a couple of quadratic algorithms for ...
45993         (missed_modules, missed_files): ... these, with ...
45994         (func_append, func_tmpdir): ... these new functions, from
45995         gnulib-tool.  Analogously, install traps for cleanup.
45996
45997         * tests/test-gc.c (main): Remove unused variables.
45998         * tests/test-read-file.c: Include stdlib.h, for 'free'.
45999
46000 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46001
46002         * modules/inttostr (License): Change to LGPL.
46003
46004 2006-11-14  Eric Blake  <ebb9@byu.net>
46005
46006         * modules/tempname (License): Change to LGPL.
46007
46008 2006-11-14  Eric Blake  <ebb9@byu.net>
46009
46010         * doc/functions.texi (Function Portability): *printf functions on
46011         Cygwin now understand all POSIX size specifiers.
46012
46013 2006-11-14  Bruno Haible  <bruno@clisp.org>
46014
46015         * modules/c-ctype (License): Change to LGPL.
46016
46017 2006-11-12  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46020         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46021         for GNOME libraries, for which the include files are installed in
46022         subdirectories of $prefix/include.
46023
46024 2006-11-12  Bruno Haible  <bruno@clisp.org>
46025
46026         * m4/lib-link.m4: Require at least autoconf-2.54.
46027         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46028         name to underscores for the --with option.
46029
46030 2006-11-13  Bruno Haible  <bruno@clisp.org>
46031
46032         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46033         the tests directory.
46034         Reported by Ralf Wildenhues.
46035
46036 2006-11-13  Bruno Haible  <bruno@clisp.org>
46037
46038         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46039         (func_emit_initmacro_end): Undo the override here.
46040         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46041         Works around the famous automake error in coreutils.
46042
46043 2006-11-13  Eric Blake  <ebb9@byu.net>
46044
46045         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46046         element, not its node.
46047
46048 2006-11-12  Bruno Haible  <bruno@clisp.org>
46049
46050         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46051         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46052
46053 2006-11-12  Bruno Haible  <bruno@clisp.org>
46054
46055         * gnulib-tool: New option --local-symlink.
46056         (func_usage): Document it.
46057         (lsymbolic): New variable.
46058         (func_import, func_create_testdir): If --symlink was not specified,
46059         test whether --local-symlink was specified and the file comes from
46060         the local_gnulib_dir.
46061
46062 2006-11-12  Bruno Haible  <bruno@clisp.org>
46063
46064         * gnulib-tool (func_ln): New function.
46065         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46066
46067 2006-11-12  Bruno Haible  <bruno@clisp.org>
46068
46069         Finish support for source files in subdirectories.
46070         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46071         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46072         AUTOMAKE_OPTIONS.
46073         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46074
46075 2006-11-12  Bruno Haible  <bruno@clisp.org>
46076
46077         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46078         EXTRA_lib_SOURCES augmentation.
46079         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46080
46081 2006-11-12  Jim Meyering  <jim@meyering.net>
46082
46083         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46084         file descriptors.  This also averts a failure on systems with
46085         native openat support when a traversed directory lacks "x" access.
46086         * lib/fts_.h: Include "i-ring.h"
46087         (struct FTS) [fts_fd_ring]: New member.
46088         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46089         (FCHDIR): Add parentheses.
46090         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46091         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46092         When descending, rather than simply closing the previous
46093         fts_cwd_fd value, push that file descriptor onto the ring.
46094         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46095         (fts_open): Initialize the new fd_ring member.
46096         (fts_close): Clear the ring.
46097         (fts_safe_changedir): When possible, use our new fd_ring to skip
46098         the diropen and fstat and dev/ino comparison that would normally
46099         accompany a virtual `chdir ("..")'.
46100
46101         * modules/fts (Depends-on): Add i-ring.
46102         * modules/i-ring: New module.
46103         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46104         * m4/i-ring.m4: New file.
46105
46106 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46107
46108         * gnulib-tool (func_create_testdir): Fix replacement of
46109         `build-aux' in configure.ac.  Run autotools in gltests
46110         subdirectory.
46111         (func_create_testdir, func_create_megatestdir, test): There is
46112         no need for '--force' in most autotool invocations in a new
46113         tree.  Actually fail the whole test if any of the tools, or the
46114         configure or make stages fail.
46115
46116         Sync from Automake.
46117         * build-aux/gnupload: Revert last change.  Add pointer to upload
46118         instructions of the GNU Maintenance Instructions.
46119         Suggestion by Karl Berry.
46120
46121 2006-11-10  Jim Meyering  <jim@meyering.net>
46122
46123         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46124
46125 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46126
46127         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46128         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46129         (bind_textdomain_codeset) [! ENABLE_NLS]:
46130         Evaluate all the arguments.  That way, callers get compatible behavior
46131         if the arguments have side effects.  Also, it avoids some GCC
46132         diagnostics in some cases; Joel E. Denny reported problems when Bison
46133         was configured with --enable-gcc-warnigs.
46134
46135 2006-11-10  Jim Meyering  <jim@meyering.net>
46136
46137         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46138         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46139         account.
46140
46141 2006-11-10  Jim Meyering  <jim@meyering.net>
46142
46143         * modules/inline: New file/module.
46144         * modules/xalloc (Files): Remove m4/inline.m4.
46145         (Depends-on): Add inline, instead.
46146         * modules/oset: Likewise.
46147         * modules/list: Likewise.
46148
46149 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46152         Problem reported by Matthew Woehlke.
46153
46154 2006-11-09  Bruno Haible  <bruno@clisp.org>
46155
46156         * lib/tempname.c (gen_tempname): Remove variant that invokes
46157         __gen_tempname.
46158         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46159         __gen_tempname.
46160
46161 2006-11-08  Bruno Haible  <bruno@clisp.org>
46162
46163         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46164         to 'yes' instead of 'cross-compiling'.
46165
46166 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * lib/quotearg.h (quotearg_free): New decl.
46169         * lib/quotearg.c (quotearg_free): New function.
46170         (slot0, nslots, slotvec0, slotvec):
46171         Now file-scope so that quotearg_free can get at them.
46172
46173 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46174
46175         Sync from Automake.
46176         * build-aux/gnupload: Add missing 'gnu' to example URL.
46177         Report by Karl Berry.
46178
46179 2006-11-08  Bruno Haible  <bruno@clisp.org>
46180
46181         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46182         Suggested by Paul Eggert.
46183
46184 2006-11-08  Jim Meyering  <jim@meyering.net>
46185
46186         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46187         It's already included if !_LIBC.
46188         (fts_safe_changedir): Add a comment.
46189
46190 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46191
46192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46193         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46194         Matthew Woehlke.
46195
46196         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46197         definitions up, to avoid colliding with change below.
46198         (static_inline) [HAVE_INLINE]: New macro.
46199         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46200         Provide extern decls when !HAVE_INLINE.  Do not define unless
46201         static_inline is defined, either by us or by xmalloc.c.  Use
46202         static_inline rather than static inline.
46203         (XCALLOC): Optimize sizeof(T) = 1 case.
46204         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46205
46206 2006-11-07  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46209         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46210         AC_C_INLINE.
46211         * modules/xalloc (Files): Add m4/inline.m4.
46212
46213 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46214
46215         * README: Fix typo.
46216         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46217         (Miscellanous Notes): ...from this.
46218
46219 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46220
46221         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46222         Mention that offsetof should be used instead of sizeof.
46223         From Bruno Haible.
46224
46225 2006-11-07  Bruno Haible  <bruno@clisp.org>
46226
46227         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46228
46229 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46230
46231         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46232         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46233         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46234         (gl_tree_add_before, gl_tree_add_after):
46235         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46236         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46237         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46238         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46239         (gl_linked_add_after, gl_linked_add_at): Likewise.
46240         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46241         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46242         (gl_tree_add_before, gl_tree_add_after): Likewise.
46243         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46244         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46245         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46246
46247 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46248
46249         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46250
46251 2006-11-06  Bruno Haible  <bruno@clisp.org>
46252
46253         * m4/inline.m4: New file.
46254         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46255         * modules/list (Files): Add m4/inline.m4.
46256         * modules/oset (Files): Likewise.
46257
46258 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46259
46260         * lib/idcache.c: Include <stddef.h>, for offsetof.
46261         (struct userid.name): Change from char * to a flexible array member.
46262         All uses changed.
46263         * modules/idcache (Depends-on): Add flexmember.
46264
46265         * MODULES.html.sh (Core language properties): New module flexmember.
46266         * modules/flexmember, m4/flexmember.m4: New files.
46267
46268         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46269         inline functions that are identical with the old xnmalloc_inline,
46270         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46271         that we can avoid some unnecessary integer multiplications and
46272         divisions in the common case where the element size is known at
46273         compile time.
46274         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46275         needed.
46276         (xnboundedmalloc): Remove.
46277         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46278         arguments, for consistency with rest of this header.
46279         (xcharalloc): Rewrite using XNMALLOC.
46280         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46281         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46282         versions have been moved to lib/xalloc.h and renamed to be the
46283         non-*_inline versions.
46284         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46285         and xnrealloc functions, since those functions are now inline and
46286         now call us.
46287         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46288         renaming described above.
46289         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46290         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46291         captures the dependency in AC_C_INLINE.
46292
46293         New module canonicalize-lgpl, proposed by Charles Wilson in
46294         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46295         with a few small changes afterwards.
46296         * MODULES.html.sh (File system functions): New module
46297         canonicalize-lgpl.
46298         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46299         and canonicalize_file_name.
46300         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46301         * modules/canonicalize-lgpl: New files.
46302
46303 2006-11-05  Bruno Haible  <bruno@clisp.org>
46304
46305         * gnulib-tool (func_import, func_create_testdir): Create directories
46306         also for files in subdirectories of lib/.
46307
46308 2006-11-05  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46311         ANSI C compliant.
46312
46313 2006-11-03  Bruno Haible  <bruno@clisp.org>
46314
46315         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46316         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46317         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46318         (xnboundedmalloc): New inline function.
46319         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46320         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46321         xmalloc.
46322         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46323         xmalloc.
46324         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46325         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46326         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46327         xmalloc.
46328         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46329         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46330         xmalloc.
46331         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46332         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46333         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46334         xmalloc.
46335         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46336         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46337         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46338         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46339         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46340         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46341         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46342
46343 2006-11-03  Bruno Haible  <bruno@clisp.org>
46344
46345         * lib/c-ctype.h [C++]: Define functions without name mangling.
46346         * lib/fwriteerror.h [C++]: Likewise.
46347         * lib/gcd.h [C++]: Likewise.
46348         * lib/linebreak.h [C++]: Likewise.
46349
46350 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46351
46352         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46353         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46354         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46355         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46356         Check for functions and headers just once.
46357         Check for declaration of canonicalize_file_name.
46358         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46359
46360 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46361
46362         * gnulib-tool (func_import): Fix typo in actioncmd.
46363
46364 2006-11-02  Bruno Haible  <bruno@clisp.org>
46365
46366         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46367         newline sequence in the Makefile.am snippet as a space, like "make"
46368         does.
46369         Reported by Roger Persson <perrog@gmail.com>.
46370
46371 2006-11-01  Bruno Haible  <bruno@clisp.org>
46372
46373         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46374         already declared in <string.h>.
46375         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46376
46377 2006-11-01  Bruno Haible  <bruno@clisp.org>
46378
46379         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46380         * lib/strcase.h: Include <string.h>.
46381         (strcasecmp): Define to rpl_strcasecmp here.
46382
46383 2006-11-01  Bruno Haible  <bruno@clisp.org>
46384
46385         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46386
46387 2006-11-01  Eric Blake  <ebb9@byu.net>
46388
46389         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46390
46391         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46392
46393 2006-10-29  Bruno Haible  <bruno@clisp.org>
46394
46395         Make it compile in C++ mode.
46396         * lib/full-write.c (full_rw): Add a cast.
46397
46398 2006-11-01  Bruno Haible  <bruno@clisp.org>
46399
46400         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46401         be POSIX compliant.
46402         Reported by Roger Persson <perrog@gmail.com>.
46403
46404 2006-11-01  Eric Blake  <ebb9@byu.net>
46405
46406         * lib/getopt_.h: Fix comments.
46407
46408 2006-10-31  Eric Blake  <ebb9@byu.net>
46409
46410         * modules/tmpdir (Depends-on): Add sys_stat.
46411         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46412         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46413         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46414         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46415         tempname.
46416
46417 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46418
46419         Avoid some C++ diagnostics reported by Bruno Haible.
46420         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46421         xmalloc.
46422         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46423         (struct slotvec): Move to top level.
46424         (quotearg_n_options): Rewrite to avoid xmalloc.
46425         * lib/xalloc.h (xcharalloc): New function.
46426         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46427         [defined __cplusplus]: Add function template that provides result
46428         type propagation.  This part of the change is from Bruno Haible.
46429
46430 2006-10-29  Bruno Haible  <bruno@clisp.org>
46431
46432         Make it compile in C++ mode.
46433         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46434         * lib/strnlen1.c (strnlen1): Cast memchr result.
46435         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46436         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46437         (create_temp_dir): Rename local variable 'template'.
46438         (compile_csharp_using_sscli): Add cast.
46439         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46440         * lib/findprog.c (find_in_path): Likewise.
46441         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46442         * lib/wait-process.c (register_slave_subprocess): Likewise.
46443
46444 2006-10-22  Bruno Haible  <bruno@clisp.org>
46445
46446         * modules/tsearch: New file.
46447         * lib/tsearch.h: New file.
46448         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46449         * m4/tsearch.m4: New file.
46450         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46451
46452 2006-10-29  Eric Blake  <ebb9@byu.net>
46453
46454         * lib/arcfour.c: Assume config.h.
46455         * lib/arctwo.c: Likewise.
46456         * lib/base64.c: Likewise.
46457         * lib/check-version.c: Likewise.
46458         * lib/crc.c: Likewise.
46459         * lib/des.c: Likewise.
46460         * lib/gc-gnulib.c: Likewise.
46461         * lib/gc-libgcrypt.c: Likewise.
46462         * lib/gc-pbkdf2-sha1.c: Likewise.
46463         * lib/getaddrinfo.c: Likewise.
46464         * lib/getdelim.c: Likewise.
46465         * lib/getline.c: Likewise.
46466         * lib/hmac-md5.c: Likewise.
46467         * lib/hmac-sha1.c: Likewise.
46468         * lib/iconvme.c: Likewise.
46469         * lib/md2.c: Likewise.
46470         * lib/md4.c: Likewise.
46471         * lib/memxor.c: Likewise.
46472         * lib/read-file.c: Likewise.
46473         * lib/readline.c: Likewise.
46474         * lib/rijndael-alg-fst.c: Likewise.
46475         * lib/rijndael-api-fst.c: Likewise.
46476         * lib/xgetdomainname.c: Likewise.
46477
46478 2006-10-28  Eric Blake  <ebb9@byu.net>
46479
46480         * lib/xstrndup.c: Assume config.h.
46481
46482 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46483
46484         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46485         stat-macros.h is now for our own macros, whereas stat_h is for
46486         macros in the <sys/stat.h> name space.
46487         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46488         (STAT_MACROS_H): Remove.
46489         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46490         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46491         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46492         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46493         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46494         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46495         Move these macros to ...
46496         * lib/stat_.h: here.  Don't include stat-macros.h.
46497         * lib/canonicalize.c: Don't include stat-macros.h.
46498         * lib/chown.c: Likewise.
46499         * lib/euidaccess.c: Likewise.
46500         * lib/file-type.c: Likewise.
46501         * lib/filemode.c: Likewise.
46502         * lib/glob.c: Likewise.
46503         * lib/isapipe.c: Likewise.
46504         * lib/lchown.c: Likewise.
46505         * lib/lstat.c: Likewise.
46506         * lib/mkdir-p.c: Likewise.
46507         * lib/rmdir.c: Likewise.
46508         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46509         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46510         unless mkdir isn't declared, to speed up 'configure'.
46511         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46512         would define all the S_* symbols.
46513         * modules/canonicalize (Depends-on):
46514         Depend on sys_stat, not stat-macros.
46515         * modules/chown: Likewise.
46516         * modules/euidaccess: Likewise.
46517         * modules/filemode: Likewise.
46518         * modules/file-type: Likewise.
46519         * modules/glob: Likewise.
46520         * modules/isapipe: Likewise.
46521         * modules/lchown: Likewise.
46522         * modules/lstat: Likewise.
46523         * modules/mkancesdirs: Likewise.
46524         * modules/rmdir: Likewise.
46525         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46526         * modules/modechange: Likewise.
46527         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46528         (configure.ac): Remove gl_STAT_MACROS.
46529         * modules/sys_stat (Depends-on): Remove stat-macros.
46530
46531 2006-10-27  Bruno Haible  <bruno@clisp.org>
46532
46533         * m4/signed.m4: Remove file.
46534         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46535         invocation.
46536         * modules/vasnprintf (Files): Remove m4/signed.m4.
46537
46538 2006-10-27  Bruno Haible  <bruno@clisp.org>
46539
46540         Update to GNU gettext 0.16.
46541         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46542         m4/inttypes-h.m4, m4/signed.m4.
46543         * m4/gettext.m4: Update to GNU gettext 0.16.
46544         * m4/intl.m4: New file, from GNU gettext.
46545         * m4/intldir.m4: New file, from GNU gettext.
46546         * config/srclist.txt: Update
46547
46548 2006-10-27  Eric Blake  <ebb9@byu.net>
46549
46550         * MODULES.html.sh: Document tempname.
46551         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46552         dependencies.
46553         (Files): Move lib/tempname.c...
46554         * modules/tempname: ...to this new module.
46555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46556         (gl_PREREQ_TEMPNAME): Move...
46557         * m4/tempname.m4: ...to this new file.
46558         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46559         * modules/sys_stat (Depends-on): Add stat-macros.
46560         * lib/stat_.h (includes): Pick up stat macros.
46561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46562         if stat macros are broken.
46563         * lib/tempname.c (includes): No need to include "stat-macros.h".
46564         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46565         (direxists, __path_search) [!_LIBC]: Don't compile these in
46566         gnulib; the tmpdir module covers that.
46567         * lib/tempname.h: New file.
46568
46569 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46570
46571         * COPYING: Explain how gnulib-tool converts licence headers.
46572         Almost all wording by Eric Blake.
46573
46574 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         * lib/mbchar.h (is_basic_table): Make read-only.
46577         * lib/mbchar.c (is_basic_table): Likewise.
46578         Reported by John Darrington.
46579
46580 2006-10-25  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/progname.h (set_program_name): Undefine before defining.
46583
46584 2006-10-25  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46587         false for non-gcc C++ compilers.
46588         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46589
46590 2006-10-24  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46593         iconv implementations like Irix iconv.
46594
46595 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46596
46597         * modules/vararrays: New file.
46598         * m4/vararrays.m4: New file, taken from diffutils.
46599         * MODULES.html.sh: New module vararrays.
46600
46601 2006-10-24  Karl Berry  <karl@gnu.org>
46602
46603         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46604         Don't call GNU Unix.
46605
46606 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46607
46608         * users.txt: Add Libtool.
46609
46610         Sync from Libtool:
46611
46612         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46613
46614         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46615         to gnulib's policy of including config.h unconditionally.
46616
46617 2006-10-24  Bruno Haible  <bruno@clisp.org>
46618
46619         * modules/wcwidth (Files): Add m4/wint_t.m4.
46620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46621         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46622
46623 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46624
46625         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46626         to pacify GCC with some -W flags enabled.  Problem reported by
46627         Bruno Haible.
46628
46629 2006-10-24  Jim Meyering  <jim@meyering.net>
46630
46631         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46632         Reported by Karl Berry.
46633
46634 2006-10-23  Bruno Haible  <bruno@clisp.org>
46635
46636         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46637
46638 2006-10-24  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/gl_list.h: Use C comment style, not C++ comment style.
46641
46642 2006-10-23  Eric Blake  <ebb9@byu.net>
46643
46644         * lib/getaddrinfo.c (includes): Add missing include.
46645
46646 2006-10-23  Bruno Haible  <bruno@clisp.org>
46647             Paul Eggert  <eggert@cs.ucla.edu>
46648
46649         Ability to rename obstack_free.
46650         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46651         obstack_free.
46652         (obstack_free): Invoke the __obstack_free macro.
46653         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46654
46655 2006-10-23  Bruno Haible  <bruno@clisp.org>
46656             Paul Eggert  <eggert@cs.ucla.edu>
46657
46658         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46659         __argc, __argv from the declaration. (They are defined as macros on
46660         mingw.)
46661
46662 2006-10-22  Bruno Haible  <bruno@clisp.org>
46663
46664         * doc/gnulib-intro.texi: New file.
46665         * doc/gnulib.texi: Include it.
46666
46667 2006-10-21  Bruno Haible  <bruno@clisp.org>
46668
46669         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46670         "Introduction", "Miscellanous Notes", "Particular Modules".
46671
46672 2006-10-21  Bruno Haible  <bruno@clisp.org>
46673
46674         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46675         Change mostlyclean-local rule to avoid sh syntax error from bash
46676         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46677
46678 2006-10-23  Jim Meyering  <jim@meyering.net>
46679
46680         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46681         in place of snprintf.
46682
46683         * modules/inttostr (Files): Add lib/uinttostr.c.
46684         * lib/uinttostr.c (inttostr): New file/function.
46685         * lib/inttostr.h (uinttostr): Declare.
46686         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46687         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46688         Add uinttostr.
46689         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46690
46691 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * lib/canonicalize.c (ELOOP): Define if not already defined.
46694         Problem reported by Bruno Haible in
46695         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46696
46697 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46698
46699         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46700         Problem reported by Perry Smith and Ville Laurikari.
46701
46702         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46703         uses.
46704
46705 2006-10-19  Bruno Haible  <bruno@clisp.org>
46706
46707         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46708         for mingw.
46709
46710 2006-10-19  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46713         Needed for mingw.
46714
46715 2006-10-19  Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46718
46719 2006-10-19  Bruno Haible  <bruno@clisp.org>
46720
46721         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46722         it.
46723
46724 2006-10-19  Bruno Haible  <bruno@clisp.org>
46725
46726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46727         invocation.
46728
46729 2006-10-19  Bruno Haible  <bruno@clisp.org>
46730
46731         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46732         mountlist by default.
46733
46734 2006-10-16  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/c-strstr.c: Include c-strstr.h.
46737
46738 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46739
46740         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46741         in a slash.
46742
46743 2006-10-18  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/lock.h [C++]: Wrap definitions in extern "C".
46746
46747 2006-10-18  Bruno Haible  <bruno@clisp.org>
46748
46749         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46750         gl_LIBOBJS list.
46751
46752 2006-10-18  Bruno Haible  <bruno@clisp.org>
46753
46754         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46755
46756 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46757
46758         * lib/xstrtol.h: Include gettext.h.
46759         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46760         Problem reported by Eric Blake.
46761         * modules/xstrtol (Depends-on): Add gettext-h.
46762
46763 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46764
46765         * lib/strftime.c (advance): New macro.
46766         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46767         incomplete type, so you can't add 0 to it.  Problem and patch
46768         reported by Eelco Dolstra for dietlibc.
46769
46770 2006-10-18  Jim Meyering  <jim@meyering.net>
46771
46772         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46773         type for a local, and rename it: s/up/user_proc/.
46774
46775 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46776
46777         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46778         READ_UTMP_USER_PROCESS.
46779         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46780
46781 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46782
46783         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46784         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46785
46786 2006-10-17  Eric Blake  <ebb9@byu.net>
46787
46788         * lib/sigprocmask.c (sigprocmask): Fix typo.
46789
46790         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46791
46792         * modules/clean-temp (Makefile.am): Don't add to make output...
46793         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46794         config.h.
46795
46796 2006-10-17  Bruno Haible  <bruno@clisp.org>
46797
46798         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46799         differently if DEFAULT_TEXT_DOMAIN is set.
46800
46801 2006-10-16  Bruno Haible  <bruno@clisp.org>
46802
46803         * lib/clean-temp.c: Include fwriteerror.h.
46804
46805 2006-10-16  Bruno Haible  <bruno@clisp.org>
46806
46807         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46808
46809 2006-10-16  Bruno Haible  <bruno@clisp.org>
46810
46811         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46812         * lib/sigprocmask.h: Include <sys/types.h>.
46813         (sigset_t): Use the system's definition if present.
46814
46815 2006-10-17  Eric Blake  <ebb9@byu.net>
46816
46817         * lib/xvasprintf.c (includes): Assume config.h.
46818         * lib/xasprintf.c (includes): Likewise.
46819
46820 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46821
46822         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46823         at least as wide as intmax_t.
46824
46825 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46826
46827         (Imported from Automake.)
46828         * build-aux/gnupload: Update to version 1.1 of directive file.
46829
46830 2006-10-16  Eric Blake  <ebb9@byu.net>
46831
46832         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46833         match Automake 1.10a.
46834
46835 2006-10-14  Bruno Haible  <bruno@clisp.org>
46836
46837         * modules/sigprocmask: New file.
46838         * lib/sigprocmask.h: New file.
46839         * lib/sigprocmask.c: New file.
46840         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46841         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46842         request sigprocmask.o.
46843         (gl_PREREQ_SIGPROCMASK): New macro.
46844         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46845         (Depends-on): Add sigprocmask.
46846         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46847         gt_SIGNALBLOCKING. Test for 'raise' only once.
46848         * lib/fatal-signal.c: Include sigprocmask.h.
46849         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46850         unblock_fatal_signals): Define always.
46851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46852         sigprocmask.
46853
46854 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46855
46856         Sync from Automake.
46857         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46858         which incorrectly sets the mode of an existing destination
46859         directory.  In some cases the unpatched install-sh could do the
46860         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46861         system.  We hope this is rare in practice, but it's clearly worth
46862         fixing.  Problem reported by Alex Unleashed in
46863         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46864         Also, don't bother to check for -m bugs unless we're using -m;
46865         suggested by Stepan Kasal.
46866
46867 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46868
46869         Sync from Automake.
46870         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46871         `-c' flag, so they appear at the same position as in %FASTDEP%
46872         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46873         which ignores unknown options only after the first non-option.
46874         Bug report against M4 by Nelson H. F. Beebe.
46875
46876 2006-10-13  Jim Meyering  <jim@meyering.net>
46877
46878         Fix a bug in yesterday's change.
46879         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46880         p->fts_statp->st_dev would be used uninitialized.
46881         Ensures that we always call fts_stat on the very first entry.
46882         Miklos Szeredi reported that find -xdev stopped working.
46883
46884 2006-10-12  Bruno Haible  <bruno@clisp.org>
46885
46886         * gnulib-tool (func_get_automake_snippet): Append an automatically
46887         computed EXTRA_DIST augmentation.
46888         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46889         * modules/alloca-opt (Makefile.am): Likewise.
46890         * modules/allocsa (Makefile.am): Likewise.
46891         * modules/arcfour (Makefile.am): Likewise.
46892         * modules/arctwo (Makefile.am): Likewise.
46893         * modules/argmatch (Makefile.am): Likewise.
46894         * modules/argz (Makefile.am): Likewise.
46895         * modules/atexit (Makefile.am): Likewise.
46896         * modules/backupfile (Makefile.am): Likewise.
46897         * modules/byteswap (Makefile.am): Likewise.
46898         * modules/c-strtod (Makefile.am): Likewise.
46899         * modules/c-strtold (Makefile.am): Likewise.
46900         * modules/calloc (Makefile.am): Likewise.
46901         * modules/canon-host (Makefile.am): Likewise.
46902         * modules/canonicalize (Makefile.am): Likewise.
46903         * modules/chdir-long (Makefile.am): Likewise.
46904         * modules/chdir-safer (Makefile.am): Likewise.
46905         * modules/check-version (Makefile.am): Likewise.
46906         * modules/chown (Makefile.am): Likewise.
46907         * modules/cloexec (Makefile.am): Likewise.
46908         * modules/close-stream (Makefile.am): Likewise.
46909         * modules/closeout (Makefile.am): Likewise.
46910         * modules/crc (Makefile.am): Likewise.
46911         * modules/csharpexec (Makefile.am): Likewise.
46912         * modules/cycle-check (Makefile.am): Likewise.
46913         * modules/des (Makefile.am): Likewise.
46914         * modules/dev-ino (Makefile.am): Likewise.
46915         * modules/dirfd (Makefile.am): Likewise.
46916         * modules/dirname (Makefile.am): Likewise.
46917         * modules/dup2 (Makefile.am): Likewise.
46918         * modules/eealloc (Makefile.am): Likewise.
46919         * modules/error (Makefile.am): Likewise.
46920         * modules/euidaccess (Makefile.am): Likewise.
46921         * modules/exclude (Makefile.am): Likewise.
46922         * modules/exitfail (Makefile.am): Likewise.
46923         * modules/fcntl-safer (Makefile.am): Likewise.
46924         * modules/fcntl (Makefile.am): Likewise.
46925         * modules/file-type (Makefile.am): Likewise.
46926         * modules/fileblocks (Makefile.am): Likewise.
46927         * modules/filemode (Makefile.am): Likewise.
46928         * modules/filenamecat (Makefile.am): Likewise.
46929         * modules/fnmatch (Makefile.am): Likewise.
46930         * modules/fopen-safer (Makefile.am): Likewise.
46931         * modules/fpending (Makefile.am): Likewise.
46932         * modules/fprintftime (Makefile.am): Likewise.
46933         * modules/free (Makefile.am): Likewise.
46934         * modules/fsusage (Makefile.am): Likewise.
46935         * modules/ftruncate (Makefile.am): Likewise.
46936         * modules/fts (Makefile.am): Likewise.
46937         * modules/gc-arcfour (Makefile.am): Likewise.
46938         * modules/gc-des (Makefile.am): Likewise.
46939         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46940         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46941         * modules/gc-md4 (Makefile.am): Likewise.
46942         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46943         * modules/gc-sha1 (Makefile.am): Likewise.
46944         * modules/gc (Makefile.am): Likewise.
46945         * modules/getaddrinfo (Makefile.am): Likewise.
46946         * modules/getcwd (Makefile.am): Likewise.
46947         * modules/getdelim (Makefile.am): Likewise.
46948         * modules/getdomainname (Makefile.am): Likewise.
46949         * modules/getgroups (Makefile.am): Likewise.
46950         * modules/gethostname (Makefile.am): Likewise.
46951         * modules/gethrxtime (Makefile.am): Likewise.
46952         * modules/getline (Makefile.am): Likewise.
46953         * modules/getloadavg (Makefile.am): Likewise.
46954         * modules/getlogin_r (Makefile.am): Likewise.
46955         * modules/getndelim2 (Makefile.am): Likewise.
46956         * modules/getopt (Makefile.am): Likewise.
46957         * modules/getpagesize (Makefile.am): Likewise.
46958         * modules/getpass-gnu (Makefile.am): Likewise.
46959         * modules/getpass (Makefile.am): Likewise.
46960         * modules/getsubopt (Makefile.am): Likewise.
46961         * modules/gettime (Makefile.am): Likewise.
46962         * modules/gettimeofday (Makefile.am): Likewise.
46963         * modules/getugroups (Makefile.am): Likewise.
46964         * modules/getusershell (Makefile.am): Likewise.
46965         * modules/glob (Makefile.am): Likewise.
46966         * modules/group-member (Makefile.am): Likewise.
46967         * modules/hard-locale (Makefile.am): Likewise.
46968         * modules/hash (Makefile.am): Likewise.
46969         * modules/hmac-md5 (Makefile.am): Likewise.
46970         * modules/hmac-sha1 (Makefile.am): Likewise.
46971         * modules/human (Makefile.am): Likewise.
46972         * modules/idcache (Makefile.am): Likewise.
46973         * modules/imaxabs (Makefile.am): Likewise.
46974         * modules/imaxdiv (Makefile.am): Likewise.
46975         * modules/inet_ntop (Makefile.am): Likewise.
46976         * modules/inet_pton (Makefile.am): Likewise.
46977         * modules/intprops (Makefile.am): Likewise.
46978         * modules/inttostr (Makefile.am): Likewise.
46979         * modules/inttypes (Makefile.am): Likewise.
46980         * modules/isapipe (Makefile.am): Likewise.
46981         * modules/javaversion (Makefile.am): Likewise.
46982         * modules/lchmod (Makefile.am): Likewise.
46983         * modules/lchown (Makefile.am): Likewise.
46984         * modules/localcharset (Makefile.am): Likewise.
46985         * modules/long-options (Makefile.am): Likewise.
46986         * modules/lstat (Makefile.am): Likewise.
46987         * modules/malloc (Makefile.am): Likewise.
46988         * modules/mathl (Makefile.am): Likewise.
46989         * modules/mbchar (Makefile.am): Likewise.
46990         * modules/md2 (Makefile.am): Likewise.
46991         * modules/md4 (Makefile.am): Likewise.
46992         * modules/md5 (Makefile.am): Likewise.
46993         * modules/memcasecmp (Makefile.am): Likewise.
46994         * modules/memchr (Makefile.am): Likewise.
46995         * modules/memcmp (Makefile.am): Likewise.
46996         * modules/memcoll (Makefile.am): Likewise.
46997         * modules/memcpy (Makefile.am): Likewise.
46998         * modules/memmem (Makefile.am): Likewise.
46999         * modules/memmove (Makefile.am): Likewise.
47000         * modules/mempcpy (Makefile.am): Likewise.
47001         * modules/memrchr (Makefile.am): Likewise.
47002         * modules/memset (Makefile.am): Likewise.
47003         * modules/memxor (Makefile.am): Likewise.
47004         * modules/mkancesdirs (Makefile.am): Likewise.
47005         * modules/mkdir-p (Makefile.am): Likewise.
47006         * modules/mkdir (Makefile.am): Likewise.
47007         * modules/mkdtemp (Makefile.am): Likewise.
47008         * modules/mkstemp (Makefile.am): Likewise.
47009         * modules/mktime (Makefile.am): Likewise.
47010         * modules/modechange (Makefile.am): Likewise.
47011         * modules/mountlist (Makefile.am): Likewise.
47012         * modules/nanosleep (Makefile.am): Likewise.
47013         * modules/obstack (Makefile.am): Likewise.
47014         * modules/openat (Makefile.am): Likewise.
47015         * modules/pagealign_alloc (Makefile.am): Likewise.
47016         * modules/pathmax (Makefile.am): Likewise.
47017         * modules/physmem (Makefile.am): Likewise.
47018         * modules/poll (Makefile.am): Likewise.
47019         * modules/posixtm (Makefile.am): Likewise.
47020         * modules/posixver (Makefile.am): Likewise.
47021         * modules/putenv (Makefile.am): Likewise.
47022         * modules/quote (Makefile.am): Likewise.
47023         * modules/quotearg (Makefile.am): Likewise.
47024         * modules/raise (Makefile.am): Likewise.
47025         * modules/read-file (Makefile.am): Likewise.
47026         * modules/readline (Makefile.am): Likewise.
47027         * modules/readlink (Makefile.am): Likewise.
47028         * modules/readtokens (Makefile.am): Likewise.
47029         * modules/readutmp (Makefile.am): Likewise.
47030         * modules/realloc (Makefile.am): Likewise.
47031         * modules/regex (Makefile.am): Likewise.
47032         * modules/rename-dest-slash (Makefile.am): Likewise.
47033         * modules/rename (Makefile.am): Likewise.
47034         * modules/rijndael (Makefile.am): Likewise.
47035         * modules/rmdir (Makefile.am): Likewise.
47036         * modules/rpmatch (Makefile.am): Likewise.
47037         * modules/safe-read (Makefile.am): Likewise.
47038         * modules/safe-write (Makefile.am): Likewise.
47039         * modules/same-inode (Makefile.am): Likewise.
47040         * modules/same (Makefile.am): Likewise.
47041         * modules/save-cwd (Makefile.am): Likewise.
47042         * modules/savedir (Makefile.am): Likewise.
47043         * modules/setenv (Makefile.am): Likewise.
47044         * modules/settime (Makefile.am): Likewise.
47045         * modules/sha1 (Makefile.am): Likewise.
47046         * modules/sig2str (Makefile.am): Likewise.
47047         * modules/snprintf (Makefile.am): Likewise.
47048         * modules/stat-macros (Makefile.am): Likewise.
47049         * modules/stat-time (Makefile.am): Likewise.
47050         * modules/stdbool (Makefile.am): Likewise.
47051         * modules/stdint (Makefile.am): Likewise.
47052         * modules/stdlib-safer (Makefile.am): Likewise.
47053         * modules/stpcpy (Makefile.am): Likewise.
47054         * modules/stpncpy (Makefile.am): Likewise.
47055         * modules/strcase (Makefile.am): Likewise.
47056         * modules/strcasestr (Makefile.am): Likewise.
47057         * modules/strchrnul (Makefile.am): Likewise.
47058         * modules/strcspn (Makefile.am): Likewise.
47059         * modules/strdup (Makefile.am): Likewise.
47060         * modules/strerror (Makefile.am): Likewise.
47061         * modules/strftime (Makefile.am): Likewise.
47062         * modules/strndup (Makefile.am): Likewise.
47063         * modules/strnlen (Makefile.am): Likewise.
47064         * modules/strpbrk (Makefile.am): Likewise.
47065         * modules/strsep (Makefile.am): Likewise.
47066         * modules/strstr (Makefile.am): Likewise.
47067         * modules/strtod (Makefile.am): Likewise.
47068         * modules/strtoimax (Makefile.am): Likewise.
47069         * modules/strtok_r (Makefile.am): Likewise.
47070         * modules/strtol (Makefile.am): Likewise.
47071         * modules/strtoll (Makefile.am): Likewise.
47072         * modules/strtoul (Makefile.am): Likewise.
47073         * modules/strtoull (Makefile.am): Likewise.
47074         * modules/strtoumax (Makefile.am): Likewise.
47075         * modules/strverscmp (Makefile.am): Likewise.
47076         * modules/sys_socket (Makefile.am): Likewise.
47077         * modules/sys_stat (Makefile.am): Likewise.
47078         * modules/sysexits (Makefile.am): Likewise.
47079         * modules/time_r (Makefile.am): Likewise.
47080         * modules/timegm (Makefile.am): Likewise.
47081         * modules/timespec (Makefile.am): Likewise.
47082         * modules/tmpfile-safer (Makefile.am): Likewise.
47083         * modules/trim (Makefile.am): Likewise.
47084         * modules/unistd-safer (Makefile.am): Likewise.
47085         * modules/unlinkdir (Makefile.am): Likewise.
47086         * modules/unlocked-io (Makefile.am): Likewise.
47087         * modules/userspec (Makefile.am): Likewise.
47088         * modules/utime (Makefile.am): Likewise.
47089         * modules/utimecmp (Makefile.am): Likewise.
47090         * modules/utimens (Makefile.am): Likewise.
47091         * modules/vasnprintf (Makefile.am): Likewise.
47092         * modules/vasprintf (Makefile.am): Likewise.
47093         * modules/vsnprintf (Makefile.am): Likewise.
47094         * modules/xalloc (Makefile.am): Likewise.
47095         * modules/xgetcwd (Makefile.am): Likewise.
47096         * modules/xnanosleep (Makefile.am): Likewise.
47097         * modules/xreadlink (Makefile.am): Likewise.
47098         * modules/xstrtod (Makefile.am): Likewise.
47099         * modules/xstrtol (Makefile.am): Likewise.
47100         * modules/xstrtold (Makefile.am): Likewise.
47101         * modules/yesno (Makefile.am): Likewise.
47102         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47103
47104 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47105
47106         * modules/error (Makefile.am): Distribute files through
47107         EXTRA_DIST, not lib_SOURCES.
47108
47109 2006-10-12  Eric Blake  <ebb9@byu.net>
47110
47111         * modules/error (Makefile.am): Distribute files in /lib.
47112         * modules/obstack (Makefile.am): Likewise.
47113
47114 2006-10-12  Bruno Haible  <bruno@clisp.org>
47115
47116         * modules/acl (Makefile.am): Distribute all files in lib/ through
47117         EXTRA_DIST.
47118         * modules/arcfour (Makefile.am): Likewise.
47119         * modules/arctwo (Makefile.am): Likewise.
47120         * modules/argmatch (Makefile.am): Likewise.
47121         * modules/argz (Makefile.am): Likewise.
47122         * modules/atexit (Makefile.am): Likewise.
47123         * modules/backupfile (Makefile.am): Likewise.
47124         * modules/c-strtod (Makefile.am): Likewise.
47125         * modules/c-strtold (Makefile.am): Likewise.
47126         * modules/calloc (Makefile.am): Likewise.
47127         * modules/canon-host (Makefile.am): Likewise.
47128         * modules/canonicalize (Makefile.am): Likewise.
47129         * modules/chdir-long (Makefile.am): Likewise.
47130         * modules/chdir-safer (Makefile.am): Likewise.
47131         * modules/check-version (Makefile.am): Likewise.
47132         * modules/chown (Makefile.am): Likewise.
47133         * modules/cloexec (Makefile.am): Likewise.
47134         * modules/close-stream (Makefile.am): Likewise.
47135         * modules/closeout (Makefile.am): Likewise.
47136         * modules/crc (Makefile.am): Likewise.
47137         * modules/cycle-check (Makefile.am): Likewise.
47138         * modules/des (Makefile.am): Likewise.
47139         * modules/dirfd (Makefile.am): Likewise.
47140         * modules/dirname (Makefile.am): Likewise.
47141         * modules/dup2 (Makefile.am): Likewise.
47142         * modules/euidaccess (Makefile.am): Likewise.
47143         * modules/exclude (Makefile.am): Likewise.
47144         * modules/exitfail (Makefile.am): Likewise.
47145         * modules/fcntl-safer (Makefile.am): Likewise.
47146         * modules/file-type (Makefile.am): Likewise.
47147         * modules/fileblocks (Makefile.am): Likewise.
47148         * modules/filemode (Makefile.am): Likewise.
47149         * modules/filenamecat (Makefile.am): Likewise.
47150         * modules/fnmatch (Makefile.am): Likewise.
47151         * modules/fopen-safer (Makefile.am): Likewise.
47152         * modules/fpending (Makefile.am): Likewise.
47153         * modules/fprintftime (Makefile.am): Likewise.
47154         * modules/free (Makefile.am): Likewise.
47155         * modules/fsusage (Makefile.am): Likewise.
47156         * modules/ftruncate (Makefile.am): Likewise.
47157         * modules/fts (Makefile.am): Likewise.
47158         * modules/gc (Makefile.am): Likewise.
47159         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47160         * modules/getaddrinfo (Makefile.am): Likewise.
47161         * modules/getcwd (Makefile.am): Likewise.
47162         * modules/getdelim (Makefile.am): Likewise.
47163         * modules/getdomainname (Makefile.am): Likewise.
47164         * modules/getgroups (Makefile.am): Likewise.
47165         * modules/gethostname (Makefile.am): Likewise.
47166         * modules/gethrxtime (Makefile.am): Likewise.
47167         * modules/getline (Makefile.am): Likewise.
47168         * modules/getloadavg (Makefile.am): Likewise.
47169         * modules/getlogin_r (Makefile.am): Likewise.
47170         * modules/getopt (Makefile.am): Likewise.
47171         * modules/getpass (Makefile.am): Likewise.
47172         * modules/getpass-gnu (Makefile.am): Likewise.
47173         * modules/getsubopt (Makefile.am): Likewise.
47174         * modules/gettime (Makefile.am): Likewise.
47175         * modules/gettimeofday (Makefile.am): Likewise.
47176         * modules/getugroups (Makefile.am): Likewise.
47177         * modules/getusershell (Makefile.am): Likewise.
47178         * modules/glob (Makefile.am): Likewise.
47179         * modules/group-member (Makefile.am): Likewise.
47180         * modules/hard-locale (Makefile.am): Likewise.
47181         * modules/hash (Makefile.am): Likewise.
47182         * modules/hmac-md5 (Makefile.am): Likewise.
47183         * modules/hmac-sha1 (Makefile.am): Likewise.
47184         * modules/human (Makefile.am): Likewise.
47185         * modules/idcache (Makefile.am): Likewise.
47186         * modules/imaxabs (Makefile.am): Likewise.
47187         * modules/imaxdiv (Makefile.am): Likewise.
47188         * modules/inet_ntop (Makefile.am): Likewise.
47189         * modules/inet_pton (Makefile.am): Likewise.
47190         * modules/inttostr (Makefile.am): Likewise.
47191         * modules/isapipe (Makefile.am): Likewise.
47192         * modules/lchown (Makefile.am): Likewise.
47193         * modules/long-options (Makefile.am): Likewise.
47194         * modules/lstat (Makefile.am): Likewise.
47195         * modules/malloc (Makefile.am): Likewise.
47196         * modules/mathl (Makefile.am): Likewise.
47197         * modules/mbchar (Makefile.am): Likewise.
47198         * modules/md2 (Makefile.am): Likewise.
47199         * modules/md4 (Makefile.am): Likewise.
47200         * modules/md5 (Makefile.am): Likewise.
47201         * modules/memcasecmp (Makefile.am): Likewise.
47202         * modules/memchr (Makefile.am): Likewise.
47203         * modules/memcmp (Makefile.am): Likewise.
47204         * modules/memcoll (Makefile.am): Likewise.
47205         * modules/memcpy (Makefile.am): Likewise.
47206         * modules/memmem (Makefile.am): Likewise.
47207         * modules/memmove (Makefile.am): Likewise.
47208         * modules/mempcpy (Makefile.am): Likewise.
47209         * modules/memrchr (Makefile.am): Likewise.
47210         * modules/memset (Makefile.am): Likewise.
47211         * modules/memxor (Makefile.am): Likewise.
47212         * modules/mkancesdirs (Makefile.am): Likewise.
47213         * modules/mkdir (Makefile.am): Likewise.
47214         * modules/mkdir-p (Makefile.am): Likewise.
47215         * modules/mkdtemp (Makefile.am): Likewise.
47216         * modules/mkstemp (Makefile.am): Likewise.
47217         * modules/mktime (Makefile.am): Likewise.
47218         * modules/modechange (Makefile.am): Likewise.
47219         * modules/mountlist (Makefile.am): Likewise.
47220         * modules/nanosleep (Makefile.am): Likewise.
47221         * modules/openat (Makefile.am): Likewise.
47222         * modules/pagealign_alloc (Makefile.am): Likewise.
47223         * modules/physmem (Makefile.am): Likewise.
47224         * modules/poll (Makefile.am): Likewise.
47225         * modules/posixtm (Makefile.am): Likewise.
47226         * modules/posixver (Makefile.am): Likewise.
47227         * modules/putenv (Makefile.am): Likewise.
47228         * modules/quote (Makefile.am): Likewise.
47229         * modules/quotearg (Makefile.am): Likewise.
47230         * modules/raise (Makefile.am): Likewise.
47231         * modules/read-file (Makefile.am): Likewise.
47232         * modules/readline (Makefile.am): Likewise.
47233         * modules/readlink (Makefile.am): Likewise.
47234         * modules/readtokens (Makefile.am): Likewise.
47235         * modules/readutmp (Makefile.am): Likewise.
47236         * modules/realloc (Makefile.am): Likewise.
47237         * modules/regex (Makefile.am): Likewise.
47238         * modules/rename (Makefile.am): Likewise.
47239         * modules/rename-dest-slash (Makefile.am): Likewise.
47240         * modules/rijndael (Makefile.am): Likewise.
47241         * modules/rmdir (Makefile.am): Likewise.
47242         * modules/rpmatch (Makefile.am): Likewise.
47243         * modules/safe-read (Makefile.am): Likewise.
47244         * modules/safe-write (Makefile.am): Likewise.
47245         * modules/same (Makefile.am): Likewise.
47246         * modules/save-cwd (Makefile.am): Likewise.
47247         * modules/savedir (Makefile.am): Likewise.
47248         * modules/setenv (Makefile.am): Likewise.
47249         * modules/settime (Makefile.am): Likewise.
47250         * modules/sha1 (Makefile.am): Likewise.
47251         * modules/sig2str (Makefile.am): Likewise.
47252         * modules/snprintf (Makefile.am): Likewise.
47253         * modules/stdlib-safer (Makefile.am): Likewise.
47254         * modules/stpcpy (Makefile.am): Likewise.
47255         * modules/stpncpy (Makefile.am): Likewise.
47256         * modules/strcase (Makefile.am): Likewise.
47257         * modules/strcasestr (Makefile.am): Likewise.
47258         * modules/strchrnul (Makefile.am): Likewise.
47259         * modules/strcspn (Makefile.am): Likewise.
47260         * modules/strdup (Makefile.am): Likewise.
47261         * modules/strerror (Makefile.am): Likewise.
47262         * modules/strftime (Makefile.am): Likewise.
47263         * modules/strndup (Makefile.am): Likewise.
47264         * modules/strnlen (Makefile.am): Likewise.
47265         * modules/strpbrk (Makefile.am): Likewise.
47266         * modules/strsep (Makefile.am): Likewise.
47267         * modules/strstr (Makefile.am): Likewise.
47268         * modules/strtod (Makefile.am): Likewise.
47269         * modules/strtoimax (Makefile.am): Likewise.
47270         * modules/strtok_r (Makefile.am): Likewise.
47271         * modules/strtol (Makefile.am): Likewise.
47272         * modules/strtoll (Makefile.am): Likewise.
47273         * modules/strtoul (Makefile.am): Likewise.
47274         * modules/strtoull (Makefile.am): Likewise.
47275         * modules/strtoumax (Makefile.am): Likewise.
47276         * modules/strverscmp (Makefile.am): Likewise.
47277         * modules/time_r (Makefile.am): Likewise.
47278         * modules/timegm (Makefile.am): Likewise.
47279         * modules/tmpfile-safer (Makefile.am): Likewise.
47280         * modules/unistd-safer (Makefile.am): Likewise.
47281         * modules/unlinkdir (Makefile.am): Likewise.
47282         * modules/userspec (Makefile.am): Likewise.
47283         * modules/utime (Makefile.am): Likewise.
47284         * modules/utimecmp (Makefile.am): Likewise.
47285         * modules/utimens (Makefile.am): Likewise.
47286         * modules/vasnprintf (Makefile.am): Likewise.
47287         * modules/vasprintf (Makefile.am): Likewise.
47288         * modules/vsnprintf (Makefile.am): Likewise.
47289         * modules/xalloc (Makefile.am): Likewise.
47290         * modules/xgetcwd (Makefile.am): Likewise.
47291         * modules/xnanosleep (Makefile.am): Likewise.
47292         * modules/xreadlink (Makefile.am): Likewise.
47293         * modules/xstrtod (Makefile.am): Likewise.
47294         * modules/xstrtol (Makefile.am): Likewise.
47295         * modules/xstrtold (Makefile.am): Likewise.
47296         * modules/yesno (Makefile.am): Likewise.
47297
47298 2006-10-12  Jim Meyering  <jim@meyering.net>
47299
47300         * m4/getloadavg.m4: Revert the change below.
47301
47302         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47303         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47304         fail with a symlink, which is what coreutils' ./bootstrap now
47305         creates by default.
47306
47307 2006-10-12  Bruno Haible  <bruno@clisp.org>
47308
47309         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47310         mingw.
47311         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47312         MSVC and mingw explicitly.
47313
47314 2006-10-11  Simon Josefsson  <jas@extundo.com>
47315             Bruno Haible  <bruno@clisp.org>
47316
47317         Add support for multiple gnulib-tool invocations in the scope of a
47318         single configure.ac file.
47319         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47320         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47321         with the same contents as the _LIBADD variable.
47322         (func_emit_initmacro_start, func_emit_initmacro_end,
47323         func_emit_initmacro_done): New functions.
47324         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47325         gl_LIBOBJS and gl_LTLIBOBJS.
47326
47327 2006-10-11  Bruno Haible  <bruno@clisp.org>
47328
47329         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47330         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47331         autoreconf. Instead, invoke autopoint explicitly but move back the
47332         *.m4 files from gnulib.
47333
47334 2006-10-11  Bruno Haible  <bruno@clisp.org>
47335
47336         * gnulib-tool (func_usage): Make module names after --create-testdir
47337         optional.
47338         (func_create_testdir): If no module was specified, use nearly all
47339         modules.
47340
47341 2006-10-12  Jim Meyering  <jim@meyering.net>
47342
47343         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47344         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47345         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47346         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47347         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47348         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47349         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47350         (fts_set_stat_required): New function.
47351         (fts_open): Defer the calls to fts_stat, if possible or requested.
47352         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47353         into fts_stat itself.
47354         (fts_read): Perform any required (deferred) fts_stat call.
47355         (fts_build): Likewise, for the directory we're about to open and read.
47356         In the readdir loop, carefully decide whether each entry will require
47357         an eventual call to fts_stat, using dirent.d_type info if available.
47358         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47359         a command line argument into this function.  Update all callers.
47360         Map a return value of FTS_DOT to FTS_D for a command line argument.
47361         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47362         Thanks to Miklos Szeredi for his tenacity and for the initial
47363         bug report about "find" failing on a FUSE-based file system.
47364
47365         * lib/fts.c (fts_open): Use consistent indentation.
47366
47367 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47368
47369         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47370         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47371         reported by Jim Meyering.  All uses of cache variables renamed
47372         to match Autoconf's.
47373         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47374         the other one.
47375
47376         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47377         Fix misspelling in diagnostic.
47378
47379 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47380
47381         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47382         defined.  Problem reported by Matthew Woehlke.
47383
47384         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47385         Add support for Tandem NonStop R series.
47386         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47387         Use new macro.
47388
47389         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47390         (has_trailing_slash): Omit size arg; all callers changed.
47391         Omit 'inline', since it doesn't help performance and we'd
47392         need to configure it.
47393         Don't count //, ///, etc. as having a trailing slash.
47394         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47395         (rpl_rename_dest_slash): On failure, use rename's errno rather
47396         than (in some cases) an incorrect or junk errno.
47397         Simplify code by removing need to compute length; this does
47398         cause it to make two passes instead of one over the file name,
47399         but it's worth it.
47400
47401         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47402         change, since Autoconf's version may no longer be appropriate now
47403         that we are using CVS Autoconf's version.  Add support for Tandem.
47404
47405 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47406             Bruno Haible  <bruno@clisp.org>
47407
47408         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47409         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47410         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47411         gl_AC_TYPE_LONG_LONG.
47412
47413         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47414         instead of HAVE_LONG_LONG.
47415         * lib/printf-args.c (printf_fetchargs): Likewise.
47416         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47417         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47418         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47419         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47420         gl_AC_TYPE_LONG_LONG.
47421
47422 2006-10-11  Bruno Haible  <bruno@clisp.org>
47423
47424         * m4/longlong.m4: Add comments.
47425         * m4/ulonglong.m4: Likewise.
47426
47427 2006-10-10  Bruno Haible  <bruno@clisp.org>
47428
47429         Make it possible to #define stpcpy, strdup to aliases.
47430         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47431         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47432
47433 2006-10-10  Bruno Haible  <bruno@clisp.org>
47434
47435         Make it possible to #define gcd to an alias.
47436         * lib/gcd.c: Include config.h.
47437
47438 2006-10-10  Bruno Haible  <bruno@clisp.org>
47439
47440         Make it possible to #define c_isascii to an alias.
47441         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47442         defined. Undefine the macros before defining them, to avoid gcc
47443         warnings.
47444         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47445         define NO_C_CTYPE_MACROS early.
47446
47447 2006-10-10  Bruno Haible  <bruno@clisp.org>
47448
47449         Make it possible to #define set_program_name to an alias.
47450         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47451         ENABLE_RELOCATABLE early.
47452
47453 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47454
47455         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47456         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47457         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47458         More generally, don't assume that 64-bit signed int is available
47459         if unsigned int is, and vice versa.
47460         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47461         unsigned symbols, not on their signed counterparts.
47462         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47463         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47464         (UINT64_C, UINTMAX_C):
47465         Likewise.
47466         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47467         unsigned counterparts.
47468         (Have_long_long, Unsigned): New macros.
47469         (Int): Renamed from INT.
47470         (strtoimax): Use the new macros.
47471         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47472         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47473         * modules/inttypes (inttypes.h): Substitute
47474         HAVE_UNSIGNED_LONG_LONG_INT.
47475         * modules/stdint (stdint.h): Likewise.
47476         (Files): Add m4/ulonglong.m4.
47477
47478 2006-10-10  Bruno Haible  <bruno@clisp.org>
47479
47480         Fix a gcc -Wshadow warning.
47481         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47482         to 'bucket'.
47483         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47484         gl_linked_indexof_from_to): Likewise.
47485         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47486         Likewise.
47487         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47488         Likewise.
47489         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47490         Reported by Eric Blake.
47491
47492 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47493
47494         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47495         for NetBSD.  Problem reported by Bruno Haible.
47496
47497 2006-10-09  Jim Meyering  <jim@meyering.net>
47498
47499         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47500         Patch from Bruno Haible.
47501
47502 2006-10-09  Jim Meyering  <jim@meyering.net>
47503
47504         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47505         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47506         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47507
47508 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         Don't include <config.h> twice; this doesn't work in some cases,
47511         e.g., when config.h has "#define intmax_t long long int" and
47512         we include <config.h>, <inttypes.h>, <config.h> in that order.
47513         Problem reported by Matthew Woehlke in:
47514         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47515         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47516         * lib/fts-cycle.c: Don't include config.h.
47517         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47518         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47519         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47520         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47521         inttypes.h.
47522         * lib/xstrtoumax.c: Likewise.
47523         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47524         __strtol and the like, so that this module is more like its siblings.
47525         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47526         Remove; no longer needed now that we assume gnulib inttypes.h.
47527
47528 2006-10-08  Bruno Haible  <bruno@clisp.org>
47529
47530         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47531         option.
47532
47533 2006-10-07  Jim Meyering  <jim@meyering.net>
47534
47535         * modules/inttypes (inttypes.h): Revert what seems to have been
47536         an inadvertent part of today's change: use "|", not "/" in the
47537         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47538
47539 2006-10-07  Bruno Haible  <bruno@clisp.org>
47540
47541         * modules/sublist: New file.
47542
47543 2006-10-07  Bruno Haible  <bruno@clisp.org>
47544
47545         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47546         * modules/argz (argz.h): Likewise.
47547         * modules/arpa_inet (arpa/inet.h): Likewise.
47548         * modules/byteswap (byteswap.h): Likewise.
47549         * modules/configmake (configmake.h): Likewise.
47550         * modules/fcntl (fcntl.h): Likewise.
47551         * modules/fnmatch (fnmatch.h): Likewise.
47552         * modules/getopt (getopt.h): Likewise.
47553         * modules/glob (glob.h): Likewise.
47554         * modules/inttypes (inttypes.h): Likewise.
47555         * modules/netinet_in (netinet/in.h): Likewise.
47556         * modules/poll (poll.h): Likewise.
47557         * modules/stdbool (stdbool.h): Likewise.
47558         * modules/stdint (stdint.h): Likewise.
47559         * modules/sys_select (sys/select.h): Likewise.
47560         * modules/sys_socket (sys/socket.h): Likewise.
47561         * modules/sys_stat (sys/stat.h): Likewise.
47562         * modules/sysexits (sysexits.h): Likewise.
47563         * modules/unistd (unistd.h): Likewise.
47564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47565         Add a "DO NOT EDIT" comment to the generated file.
47566         (func_import): Likewise for gnulib-comp.m4.
47567
47568 2006-10-07  Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/gl_sublist.h: New file.
47571         * lib/gl_sublist.c: New file.
47572
47573 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47574
47575         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47576         name (relative to the original working directory) and the file
47577         name component (relative to the temporary working directory).  All
47578         callers changed.
47579         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47580         * lib/mkdir-p.c (make_dir_parents): Likewise.
47581         * lib/mkdir-p.h (make_dir_parents): Likewise.
47582
47583 2006-10-06  Eric Blake  <ebb9@byu.net>
47584
47585         Define several macros for use by the clean-temp module.
47586         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47587         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47588         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47589
47590         * lib/clean-temp.h (close_stream_temp): New declaration.
47591         * lib/clean-temp.c (includes): Pull in headers according to what
47592         other modules are in use.
47593         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47594
47595 2006-10-06  Bruno Haible  <bruno@clisp.org>
47596
47597         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47598         instead of fopen, fwriteerror.
47599
47600 2006-10-06  Bruno Haible  <bruno@clisp.org>
47601
47602         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47603         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47604         int.
47605         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47606         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47607         Return an error indicator.
47608         Suggested by Eric Blake.
47609
47610 2006-10-06  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47613         Reported by Eric Blake.
47614
47615 2006-10-06  Bruno Haible  <bruno@clisp.org>
47616
47617         * modules/closeout (Description): Mention stderr too.
47618
47619 2006-10-06  Bruno Haible  <bruno@clisp.org>
47620         and Paul Eggert  <eggert@cs.ucla.edu>
47621
47622         * lib/closeout.c (close_stdout): Also close stderr.
47623         * lib/closeout.h: Update comment.
47624
47625 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47626
47627         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47628         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47629         * lib/dirchownmod.c: Include lchown.h.
47630         * lib/lchown.c: Don't include files that lchown.h now includes.
47631         Don't declare chown, since lchown.h now does that.
47632         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47633         (lchown): Define to rpl_chown if lchown is declared but
47634         does not exist.  Declare using a prototype if lchown is not
47635         declared.  Add a copyright notice.
47636         * lib/mkstemp.h: Include <unistd.h>.
47637         * lib/openat.c: Include lchown.h.
47638
47639         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47640         we now test for that separately.
47641         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47642         rather than O_NOFOLLOW, when testing whether it's possible to
47643         avoid a race condition reliably.
47644         * lib/savewd.c (savewd_chdir): Likewise.
47645
47646         Remove macros that are no longer needed now that stdint.h is
47647         reliable.
47648         * lib/fsusage.c (UINTMAX_MAX): Remove.
47649         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47650         * lib/utimecmp.c (SIZE_MAX): Remove.
47651
47652         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47653
47654         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47655         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47656         O_NOATIME works.
47657
47658 2006-10-05  Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/gl_list.h (gl_sortedlist_search_from_to,
47661         gl_sortedlist_indexof_from_to): New declarations.
47662         (gl_list_implementation): New fields sortedlist_search_from_to,
47663         sortedlist_indexof_from_to.
47664         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47665         inline functions.
47666         * lib/gl_list.c (gl_sortedlist_search_from_to,
47667         gl_sortedlist_indexof_from_to): New functions.
47668         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47669         function.
47670         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47671         (gl_array_sortedlist_search_from_to): New function.
47672         (gl_array_list_implementation): Update.
47673         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47674         function.
47675         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47676         (gl_carray_sortedlist_search_from_to): New function.
47677         (gl_carray_list_implementation): Update.
47678         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47679         gl_linked_sortedlist_indexof_from_to): New functions.
47680         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47681         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47682         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47683         gl_tree_sortedlist_indexof_from_to): New functions.
47684         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47685         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47686         Update.
47687         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47688         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47689         Update.
47690
47691 2006-10-05  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47694         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47695         (struct gl_list_implementation): Add fields search_from_to,
47696         indexof_from_to. Remove fields search, indexof.
47697         (gl_list_search): Use the search_from_to method.
47698         (gl_list_search_from, gl_list_search_from_to): New functions.
47699         (gl_list_indexof): Use the indexof_from_to method.
47700         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47701         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47702         (gl_list_search_from, gl_list_search_from_to): New functions.
47703         (gl_list_indexof): Use the indexof_from_to method.
47704         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47705         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47706         gl_array_indexof. Add start_index, end_index arguments.
47707         (gl_array_search_from_to): Renamed from gl_array_search. Add
47708         start_index, end_index arguments.
47709         (gl_array_remove, gl_array_list_implementation): Update.
47710         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47711         gl_carray_indexof. Add start_index, end_index arguments.
47712         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47713         start_index, end_index arguments.
47714         (gl_carray_remove, gl_carray_list_implementation): Update.
47715         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47716         gl_linked_search. Add start_index, end_index arguments.
47717         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47718         start_index, end_index arguments.
47719         (gl_linked_remove): Update.
47720         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47721         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47722         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47723         field to 'size_t'.
47724         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47725         gl_tree_search. Add start_index, end_index arguments.
47726         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47727         start_index, end_index arguments.
47728         (gl_tree_remove): Update.
47729         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47730         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47731         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47732         function.
47733         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47734         gl_tree_search. Add start_index, end_index arguments.
47735         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47736         start_index, end_index arguments.
47737         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47738         Update.
47739         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47740
47741 2006-10-05  Bruno Haible  <bruno@clisp.org>
47742
47743         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47744
47745         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47746         fwriteerror_temp): New declarations.
47747         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47748         (descriptors): New variable.
47749         (cleanup): First, close the descriptors.
47750         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47751         fclose_temp, fwriteerror_temp): New functions.
47752
47753 2006-10-04  Jim Meyering  <jim@meyering.net>
47754
47755         * lib/fts.c (fts_open): Tiny comment change.
47756
47757 2006-10-04  Bruno Haible  <bruno@clisp.org>
47758
47759         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47760         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47761         gl_LOCK_BODY.
47762         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47763         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47764         gl_LOCK_EARLY_BODY.
47765         (gl_LOCK): Require gl_LOCK_BODY.
47766
47767 2006-10-04  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47770         (gl_oset_search_atleast): New declaration.
47771         (struct gl_oset_implementation): Add field 'search_atleast'.
47772         (gl_oset_search_atleast): New inline function.
47773         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47774         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47775         (gl_array_oset_implementation): Update.
47776         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47777         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47778         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47779
47780 2006-10-04  Bruno Haible  <bruno@clisp.org>
47781
47782         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47783
47784 2006-10-03  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47787         from gl_avltreehash_list_implementation.
47788
47789 2006-10-03  Bruno Haible  <bruno@clisp.org>
47790
47791         * lib/gl_oset.c (gl_oset_add): Fix return type.
47792
47793 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47794
47795         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47796
47797 2006-10-02  Eric Blake  <ebb9@byu.net>
47798
47799         * modules/strnlen (Depends-on): Add extensions.
47800
47801 2006-10-02  Eric Blake  <ebb9@byu.net>
47802
47803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47804         definition in 2.60+.
47805
47806 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47807
47808         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47809         checks.
47810
47811 2006-10-02  Bruno Haible  <bruno@clisp.org>
47812
47813         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47814         to the AUTOMAKE_OPTIONS.
47815         Reported by Jim Meyering.
47816
47817 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47818
47819         Work around bug in Solaris 10 /proc file system:
47820         /proc/self/fd/NNN/.. isn't the parent directory of
47821         the directory whose file descriptor is NNN.  This needs to
47822         be worked around at run time, not compile time, since a
47823         program might be built on Solaris 8, where things work, and
47824         run on Solaris 10.
47825         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47826         to use the following interface instead:
47827         (OPENAT_BUFFER_SIZE): New macro.
47828         (openat_proc_name): New function.
47829         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47830         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47831         Likewise.
47832         * lib/openat-proc.c: New file.
47833         * modules/openat (Files): Add lib/openat-proc.c.
47834         (Depends-on): Add same-inode, stdbool.
47835         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47836
47837 2006-09-29  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47840         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47841         argument. Set stdout_closed before testing for ferror, not after.
47842         (fwriteerror, fwriteerror_no_ebadf): New functions.
47843
47844 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47845
47846         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47847
47848 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47849
47850         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47851         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47852
47853 2006-09-28  Jim Meyering  <jim@meyering.net>
47854
47855         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47856         Include <unistd.h>.
47857
47858 2006-09-28  Bruno Haible  <bruno@clisp.org>
47859
47860         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47861         * modules/linkedhash-list (Depends-on): Likewise.
47862         * modules/rbtreehash-list (Depends-on): Likewise.
47863
47864 2006-09-28  Bruno Haible  <bruno@clisp.org>
47865
47866         * lib/strndup.h: Simplify the redefinition of strndup.
47867         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47868         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47869
47870 2006-09-28  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47873         * lib/gl_linkedhash_list.c: Likewise.
47874         * lib/gl_rbtreehash_list.c: Likewise.
47875
47876 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47877
47878         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47879         getaddrinfo.
47880
47881         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47882         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47883         it causes <stdio_ext.h> to cause a compile-time error.
47884         Problem reported by Nelson H. F. Beebe.
47885         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47886         of HAVE_DECL___PENDING.
47887
47888         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47889         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47890         declaration.
47891
47892 2006-09-27  Jim Meyering  <jim@meyering.net>
47893
47894         This file could end up with a definition for a function
47895         named __strndup, rather than rpl_strndup on a system with
47896         incomplete weak_alias support.
47897         * lib/strndup.c (strndup): Rename from __strndup.
47898         Remove #defines that used to map __strndup to strndup.
47899         Don't use K&R prototypes.
47900         Remove LIBC-related code, since this file is not sync'd with glibc.
47901         * lib/strndup.h: Revamp, accordingly.
47902         * m4/strndup.m4: Modernize.
47903
47904 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47905
47906         * modules/savewd (Depends-on): Add 'raise'.
47907         * lib/savewd.c: Include <signal.h>, for 'raise'.
47908
47909 2006-09-26  Jim Meyering  <jim@meyering.net>
47910
47911         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47912         when we detect Darwin 8.7.0's acl_get_file bug.
47913         Rearrange to perform the new (below) run-test while $LIBS
47914         contains any acl-related library.  Set USE_ACL at the end.
47915         (gl_ACL_GET_FILE): New function.
47916
47917 2006-09-26  Eric Blake  <ebb9@byu.net>
47918
47919         * lib/verror.c: Include <config.h> unconditionally.
47920
47921 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47922
47923         * modules/clock-time (Maintainer): Add self.
47924         * modules/getlogin_r (Depends-on): Add extensions.
47925
47926 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47927
47928         * modules/clock-time: New module.
47929         * modules/nanosleep (Depends-on): Add clock-time.
47930         * modules/gethrxtime (Depends-on): Likewise.
47931         * modules/gettime (Depends-on): Likewise.
47932         * modules/settime (Depends-on): Likewise.
47933
47934         * modules/fts-lgpl: Depend on openat.
47935         * modules/mkancesdirs: Depend on savewd.
47936         * modules/mkdir-p: Likewise.
47937
47938 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47939
47940         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47941
47942         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47943         `gl_have_arbitrary_file_name_length_limit' to
47944         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47945         actually works between configure runs.
47946
47947 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47948             Bruno Haible  <bruno@clisp.org>
47949
47950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47951
47952 2006-09-25  Jim Meyering  <jim@meyering.net>
47953
47954         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47955         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47956
47957 2006-09-25  Eric Blake  <ebb9@byu.net>
47958
47959         * gnulib-tool (func_import, func_create_testdir): Fix typos in
47960         exec's in 2006-09-18 patch when shuffling fds.
47961
47962 2006-09-25  Bruno Haible  <bruno@clisp.org>
47963
47964         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
47965         Reported by Jim Meyering.
47966
47967 2006-09-24  Jim Meyering  <jim@meyering.net>
47968
47969         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
47970         compare a pointer against a literal "0".  That caused failures with
47971         at least HP-UX's hpcc.
47972
47973 2006-09-22  Simon Josefsson  <jas@extundo.com>
47974
47975         * modules/gc-sha1:
47976         * modules/gc-md4:
47977         * modules/gc-hmac-sha1:
47978         * modules/gc-hmac-md5:
47979         * modules/gc-des:
47980         * modules/gc-arcfour: Distribute more files.
47981
47982 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47983
47984         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
47985         (gl_linked_iterator_from_to): Initialize struct completely.
47986         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
47987         (gl_tree_iterator_from_to): Likewise
47988         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
47989         * lib/gl_array_list.c [lint] (gl_array_iterator)
47990         (gl_array_iterator_from_to): Likewise.
47991         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
47992         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
47993         (gl_carray_iterator_from_to): Likewise.
47994
47995         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
47996         * lib/md4.c (md4_process_block): Remove unused variable.
47997         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
47998         parentheses for clarity.
47999
48000 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48001
48002         * modules/bison-i18n (Depends-on): Add gettext.
48003
48004 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48005
48006         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48007         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48008         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48009         also add missing comma that caused broken test.
48010         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48011         stdlib.h, for `abort'.
48012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48013         variables.
48014         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48015         include unistd.h if present, for `rmdir'.
48016         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48017         variables.
48018         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48019         in the process include standard headers for prototypes.
48020         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48021         gets declared on GNU/Linux.
48022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48023         unistd.h, for `rmdir'.
48024         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48025
48026         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48027         always true.
48028         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48029
48030         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48031
48032 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48033
48034         * gnulib-tool (func_version): Create output all at once.  This
48035         may help avoid triggering unnecessary SIGPIPEs, and at any
48036         rate it doesn't hurt.
48037
48038 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48039             Bruno Haible  <bruno@clisp.org>
48040
48041         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48042         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48043         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48044
48045         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48046         (gl_FUNC_VASPRINTF): Invoke it.
48047
48048 2006-09-22  Bruno Haible  <bruno@clisp.org>
48049
48050         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48051         getloadavg.c as first argument.
48052
48053 2006-09-22  Bruno Haible  <bruno@clisp.org>
48054
48055         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48056         at the beginning of the gl_INIT macro.
48057         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48058         gl_GETLOADAVG.
48059
48060 2006-09-22  Bruno Haible  <bruno@clisp.org>
48061
48062         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48063         module.
48064         Suggested by Ralf Wildenhues.
48065
48066 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48067
48068         Import this patch from libc:
48069
48070         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48071
48072         * lib/regex_internal.c (re_string_reconstruct): Handle
48073         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48074         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48075         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48076         re_string_context_at.
48077
48078         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48079         now requires it.
48080         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48081         gl_REGEX now does it for us.
48082         (gl_REGEX): Add test taken from
48083         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48084
48085         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48086         Check that large offsets work.  Modernize Autoconf usages.
48087         Prefer "yes" to mean a good thing rather than a bad.
48088         Don't put "#define mkstemp" in config.h, as this might interfere
48089         with standard system headers that "#define mkstemp mkstemp64".
48090
48091         * modules/mkstemp (Depends-on): Add extensions, so that
48092         mkstemp is visible on some platforms.
48093         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48094         (Include): Change to "mkstemp.h" from <stdlib.h>.
48095         (Files): Add mkstemp.h.
48096
48097         * lib/mkstemp.h: New file, since some standard headers
48098         #define mkstemp.
48099         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48100         Include "mkstemp.h".
48101         Make the _LIBC code resemble glibc original more,
48102         e.g., use K&R style.
48103         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48104         (mkstemp): Remove, since mkstemp.h does this for us.
48105         * lib/stdlib--.h: Include mkstemp.h.
48106
48107         Import this patch from libc:
48108
48109         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48110
48111         * lib/tempname.c (__gen_tempname): Change attempts_min
48112         into a macro.  Use preprocessor to decide how to initialize
48113         attempts [Coverity CID 67].
48114
48115 2006-09-20  Bruno Haible  <bruno@clisp.org>
48116
48117         * lib/mkdtemp.c: Import from libc.
48118         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48119                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48120                 attempts_min into a macro.  Use preprocessor to decide how to
48121                 initialize attempts [Coverity CID 67].
48122         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48123                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48124                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48125
48126 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48127
48128         * gnulib-tool (func_exit): New function, to allow to pass the
48129         exit status portably through the trap.  Use everywhere.
48130         (--help, --version): Signal a write error.
48131         (trap): catch SIGPIPE, for write errors.
48132         Exit at the end of the trap, with the correct exit status.
48133
48134 2006-09-19  Karl Berry  <karl@gnu.org>
48135
48136         * doc/gnulib.texi: note about the license texinfo files.
48137
48138 2006-09-19  Eric Blake  <ebb9@byu.net>
48139
48140         * gnulib-tool: Avoid space-tab.
48141
48142 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48143
48144         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48145         that prevented coreutils 6.1 from building.  Problem reported
48146         by Petter Reinholdtsen.
48147
48148 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48149
48150         * gnulib-tool (avoidlist): Fix typo that broke options like
48151         --avoid=lock that are used by coreutils bootstrap.
48152
48153 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48154
48155         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48156         more systematically.
48157
48158 2006-09-18  Jim Meyering  <jim@meyering.net>
48159
48160         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48161
48162 2006-09-18  Bruno Haible  <bruno@clisp.org>
48163
48164         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48165
48166 2006-09-18  Bruno Haible  <bruno@clisp.org>
48167
48168         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48169         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48170         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48171         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48172         * m4/gettext.m4: Require autoconf >= 2.52.
48173         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48174         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48175         of gl_cv_header_inttypes_h.
48176
48177 2006-09-18  Bruno Haible  <bruno@clisp.org>
48178
48179         * lib/javaversion.c: Include configmake.h.
48180
48181 2006-09-18  Bruno Haible  <bruno@clisp.org>
48182
48183         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48184         avoid that the while loops be executed in a subshell.
48185
48186 2006-09-18  Bruno Haible  <bruno@clisp.org>
48187
48188         * MODULES.html.sh (func_module): Break long lines.
48189         Suggested by Bruce Korb <bkorb@gnu.org>.
48190
48191 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48192
48193         Speed up by a factor of 1.12.
48194         * gnulib-tool (nl): New variable.
48195         (func_import): Rewrite include directive extraction to only read each
48196         directive once.
48197
48198 2006-09-17  Bruno Haible  <bruno@clisp.org>
48199
48200         * modules/javaversion (Makefile.am): Remove DEFS setting.
48201         (Depends-on): Add configmake, for PKGDATADIR definition.
48202
48203 2006-09-17  Bruno Haible  <bruno@clisp.org>
48204
48205         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48206
48207 2006-09-17  Bruno Haible  <bruno@clisp.org>
48208
48209         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48210         (func_modules_transitive_closure, func_modules_add_dummy,
48211         func_modules_to_filelist, func_import, func_create_testdir,
48212         func_create_megatestdir, ...): Use it wherever possible.
48213         Suggested by Ralf Wildenhues.
48214
48215 2006-09-16  Karl Berry  <karl@gnu.org>
48216
48217         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48218         to avoid sectioning errors.
48219         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48220         [ifinfo]: blank line after @center-ed titles.
48221         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48222         Spell FSF address consistently with others.
48223         (These changes approved by rms.)
48224
48225 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48226
48227         Speed up by a factor of 1.61.
48228         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48229         already checked module names again.
48230
48231 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48232
48233         Speed up by a factor of 1.13.
48234         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48235         for new_files, and the input to func_add_or_update.
48236
48237 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48238
48239         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48240         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48241
48242 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * modules/mkancesdirs (Depends-on): Add fcntl.
48245         * modules/savewd: New file.
48246         * MODULES.html.sh (File system functions): Add savewd.
48247
48248         * modules/configmake (Makefile.am): Add support for the
48249         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48250
48251 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48252
48253         * m4/savewd.m4: New file.
48254
48255 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48256
48257         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48258         (dirchownmod): New arg FD.  All callers changed.
48259         Use FD rather than opening the directory ourself, as opening is
48260         now the caller's responsibility.
48261         * lib/dirchownmod.h: Likewise.
48262         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48263         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48264         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48265         (test_dir): Remove.
48266         (mkancesdirs): Return length of prefix of FILE that has already
48267         been made, or -2 if there is a child doing the work.  Redo
48268         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48269         ".", and treat ".." specially since it might stray back into
48270         already-created areas.  Use a subprocess if necessary.  New arg
48271         WD; all users changed.  MAKE_DIR function should now return 1
48272         if it creates a directory that is not readable.  Return -2 if
48273         a child process is spun off.
48274         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48275         Adjust signature to match code.
48276         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48277         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48278         all users changed.
48279         * lib/savewd.c, lib/savewd.h: New files.
48280
48281 2006-09-15  Jim Meyering  <jim@meyering.net>
48282
48283         * modules/rename-dest-slash: New module.
48284         * MODULES.html.sh (posix_compat): Add it here.
48285
48286         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48287
48288 2006-09-15  Jim Meyering  <jim@meyering.net>
48289
48290         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48291         file.
48292
48293         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48294
48295 2006-09-15  Jim Meyering  <jim@meyering.net>
48296
48297         * lib/rename-dest-slash.c (has_trailing_slash): Use
48298         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48299         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48300         test before testing whether SRC is a directory.
48301         Suggestions from Bruno Haible.
48302
48303         Avoid a warning about an unused variable.
48304         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48305         into the #ifdef block where it's used.
48306
48307         * lib/rename-dest-slash.c: New file.
48308
48309 2006-09-14  Bruno Haible  <bruno@clisp.org>
48310
48311         * lib/allocsa.c: Include <config.h> unconditionally.
48312         * lib/asnprintf.c: Likewise.
48313         * lib/asprintf.c: Likewise.
48314         * lib/c-strcasecmp.c: Likewise.
48315         * lib/c-strcasestr.c: Likewise.
48316         * lib/c-strncasecmp.c: Likewise.
48317         * lib/c-strstr.c: Likewise.
48318         * lib/classpath.c: Likewise.
48319         * lib/clean-temp.c: Likewise.
48320         * lib/concatpath.c: Likewise.
48321         * lib/copy-file.c: Likewise.
48322         * lib/csharpcomp.c: Likewise.
48323         * lib/csharpexec.c: Likewise.
48324         * lib/execute.c: Likewise.
48325         * lib/fatal-signal.c: Likewise.
48326         * lib/findprog.c: Likewise.
48327         * lib/fwriteerror.c: Likewise.
48328         * lib/gl_array_list.c: Likewise.
48329         * lib/gl_array_oset.c: Likewise.
48330         * lib/gl_avltree_list.c: Likewise.
48331         * lib/gl_avltree_oset.c: Likewise.
48332         * lib/gl_avltreehash_list.c: Likewise.
48333         * lib/gl_carray_list.c: Likewise.
48334         * lib/gl_linked_list.c: Likewise.
48335         * lib/gl_linkedhash_list.c: Likewise.
48336         * lib/gl_list.c: Likewise.
48337         * lib/gl_oset.c: Likewise.
48338         * lib/gl_rbtree_list.c: Likewise.
48339         * lib/gl_rbtree_oset.c: Likewise.
48340         * lib/gl_rbtreehash_list.c: Likewise.
48341         * lib/imaxabs.c: Likewise.
48342         * lib/imaxdiv.c: Likewise.
48343         * lib/javacomp.c: Likewise.
48344         * lib/javaexec.c: Likewise.
48345         * lib/javaversion.c: Likewise.
48346         * lib/linebreak.c: Likewise.
48347         * lib/localcharset.c: Likewise.
48348         * lib/lock.c: Likewise.
48349         * lib/mbchar.c: Likewise.
48350         * lib/mbswidth.c: Likewise.
48351         * lib/mkdtemp.c: Likewise.
48352         * lib/pipe.c: Likewise.
48353         * lib/printf-args.c: Likewise.
48354         * lib/printf-parse.c: Likewise.
48355         * lib/progname.c: Likewise.
48356         * lib/progreloc.c: Likewise.
48357         * lib/readlink.c: Likewise.
48358         * lib/sh-quote.c: Likewise.
48359         * lib/stpcpy.c: Likewise.
48360         * lib/stpncpy.c: Likewise.
48361         * lib/strcasecmp.c: Likewise.
48362         * lib/strcasestr.c: Likewise.
48363         * lib/strcspn.c: Likewise.
48364         * lib/striconv.c: Likewise.
48365         * lib/strncasecmp.c: Likewise.
48366         * lib/strnlen1.c: Likewise.
48367         * lib/strstr.c: Likewise.
48368         * lib/strtok_r.c: Likewise.
48369         * lib/tls.c: Likewise.
48370         * lib/tmpdir.c: Likewise.
48371         * lib/unicodeio.c: Likewise.
48372         * lib/unsetenv.c: Likewise.
48373         * lib/vasnprintf.c: Likewise.
48374         * lib/vasprintf.c: Likewise.
48375         * lib/wait-process.c: Likewise.
48376         * lib/xallocsa.c: Likewise.
48377         * lib/xsetenv.c: Likewise.
48378         * lib/xstriconv.c: Likewise.
48379
48380 2006-09-13  Simon Josefsson  <jas@extundo.com>
48381
48382         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48383         that internally, suggested by Ralf Wildenhues
48384         <Ralf.Wildenhues@gmx.de>.
48385
48386 2006-09-13  Simon Josefsson  <jas@extundo.com>
48387
48388         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48389         @LIBOBJS@.
48390         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48391
48392 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48395         longer worry about uses that don't define HAVE_CONFIG_H.
48396         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48397         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48398         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48399         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48400         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48401         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48402         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48403         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48404         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48405         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48406         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48407         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48408         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48409         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48410         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48411         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48412         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48413         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48414         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48415         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48416         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48417         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48418         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48419         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48420         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48421         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48422         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48423         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48424         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48425         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48426         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48427         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48428         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48429         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48430         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48431         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48432         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48433         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48434         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48435         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48436         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48437         Likewise.
48438
48439 2006-09-13  Eric Blake  <ebb9@byu.net>
48440
48441         * lib/getopt.c: Fix typo in last commit.
48442
48443 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48444
48445         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48446         dgettext.
48447
48448 2006-09-12  Jim Meyering  <jim@meyering.net>
48449
48450         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48451         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48452         Reported by Nelson H. F. Beebe.
48453
48454 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48455
48456         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48457         program_invocation_name and program_invocation_short_name are
48458         initialized.
48459         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48460         and program_invocation_short_name to argp.h, so they are visible
48461         to user programs.
48462         * lib/argp.h: Likewise
48463
48464 2006-09-10  Bruno Haible  <bruno@clisp.org>
48465
48466         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48467         m4/inttypes_h.m4, m4/uintmax_t.m4.
48468
48469 2006-09-10  Bruno Haible  <bruno@clisp.org>
48470
48471         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48472         gl_AC_TYPE_UINTMAX_T.
48473
48474 2006-09-10  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48477
48478 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48479
48480         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48481         convention.  Text proposed by Bruno Haible.
48482         (struct argp_option): Document the use of N_() wrappers.
48483
48484         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48485         '\v', and translate the two parts separately, instead of feeding
48486         the whole string to gettext.  This allows to exclude
48487         '\v' from the strings visible to the translator by writing doc
48488         strings as N_("..") "\v" N_("..").
48489
48490 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48491
48492         * config/srclist.txt: Undo latest change; the bug was fixed.
48493
48494 2006-09-09  Bruno Haible  <bruno@clisp.org>
48495
48496         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48497         assignments if building a library without libtool.
48498         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48499         in func_emit_lib_Makefile_am.
48500         (func_import): When building a static library libfoo.a, arrange to
48501         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48502         (func_create_testdir): Likewise.
48503         * modules/gc (configure.ac, Makefile.am): If building statically,
48504         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48505         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48506         * modules/striconv (configure.ac, Makefile.am): Likewise.
48507         Based on a suggestion by Ralf Wildenhues.
48508
48509 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48510
48511         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48512         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48513         Also:
48514
48515         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48516         Add year_2050_test to catch glibc bug 2821
48517         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48518
48519         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48520         Prefer #ifdef to #if.
48521
48522         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48523         Return from 'main' instead of calling 'exit'.
48524
48525 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48526
48527         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48528         returned the maximum time_t value rather than (time_t) -1.
48529         Problem originally reported by William Bardwell
48530         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48531
48532         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48533         Moved to here ...
48534         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48535         ... from here.
48536
48537 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48538
48539         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48540         2821 is fixed.
48541
48542 2006-09-08  Jim Meyering  <jim@meyering.net>
48543
48544         Don't make generated files read-only.  That would bother too many
48545         people.  However, do retain the ability to work when targets are
48546         read-only: remove the destination and temporary files before writing
48547         them (when generated via sed or echo), or by using the -f option for
48548         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48549         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48550         * modules/byteswap, modules/configmake, modules/fcntl:
48551         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48552         * modules/localcharset, modules/netinet_in, modules/poll:
48553         * modules/stdbool, modules/stdint, modules/sys_select:
48554         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48555
48556 2006-09-08  Jim Meyering  <jim@meyering.net>
48557
48558         Avoid new build failure on FreeBSD 6.0.
48559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48560         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48561         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48562
48563 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48564
48565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48566
48567 2006-09-07  Jim Meyering  <jim@meyering.net>
48568
48569         Fix global typo in last change: use chmod u-w, not chmod u-x.
48570         Spotted by Paul Eggert and Bruce Korb.
48571         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48572         * modules/byteswap, modules/configmake, modules/fcntl:
48573         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48574         * modules/localcharset, modules/netinet_in, modules/poll:
48575         * modules/stdbool, modules/stdint, modules/sys_select:
48576         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48577
48578 2006-09-06  Jim Meyering  <jim@meyering.net>
48579
48580         Make generated files be read-only.
48581         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48582         Ensure that each generated file is now read-only.
48583         * modules/argz: Likewise.
48584         * modules/arpa_inet: Likewise.
48585         * modules/byteswap: Likewise.
48586         * modules/configmake: Likewise.
48587         * modules/fcntl: Likewise.
48588         * modules/fnmatch: Likewise.
48589         * modules/getopt: Likewise.
48590         * modules/glob: Likewise.
48591         * modules/inttypes: Likewise.
48592         * modules/netinet_in: Likewise.
48593         * modules/poll: Likewise.
48594         * modules/stdbool: Likewise.
48595         * modules/stdint: Likewise.
48596         * modules/sys_select: Likewise.
48597         * modules/sys_socket: Likewise.
48598         * modules/sys_stat: Likewise.
48599         * modules/sysexits: Likewise.
48600         * modules/localcharset: Same as above, but continue using temporary
48601         file named "t-$@" (why different?) rather than the "$@-t" used
48602         everywhere else.
48603
48604         * modules/sysexits (Makefile.am): Replace literal occurrences
48605         of "sysexit.h" more readable, and more consistent, "$@".
48606
48607 2006-09-06  Bruno Haible  <bruno@clisp.org>
48608
48609         * modules/striconv: New file.
48610         * modules/xstriconv: New file.
48611         * MODULES.html.sh (Internationalization functions): Add striconv,
48612         xstriconv.
48613
48614 2006-09-06  Bruno Haible  <bruno@clisp.org>
48615
48616         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48617         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48618         not using libtool correctly.
48619
48620 2006-09-06  Bruno Haible  <bruno@clisp.org>
48621
48622         * lib/striconv.h: New file.
48623         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48624         iconvstring.c.
48625         * lib/xstriconv.h: New file.
48626         * lib/xstriconv.c: New file.
48627
48628 2006-09-06  Bruno Haible  <bruno@clisp.org>
48629
48630         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48631         lib_..._LDFLAGS.
48632
48633 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48634
48635         * lib/argz_.h: Sync from Libtool.
48636
48637         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48638                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48639
48640         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48641
48642 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48643
48644         * modules/trim: New file.
48645
48646 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48647
48648         * lib/trim.h: New file.
48649         * lib/trim.c: New file.
48650
48651 2006-09-05  Bruno Haible  <bruno@clisp.org>
48652
48653         * MODULES.html.sh (String handling): Add trim.
48654
48655 2006-09-04  Karl Berry  <karl@gnu.org>
48656
48657         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48658         until next release.
48659
48660 2006-09-03  Bruno Haible  <bruno@clisp.org>
48661
48662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48663         correctly.
48664
48665 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48666
48667         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48668         not gl_GETLOADAVG.  Omit unneeded semicolons.
48669         Problems reported by Ralf Wildenhues in
48670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48671         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48672         at the end, which is the usual gnulib style.
48673
48674         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48675         of doing all the work ourselves.
48676         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48677         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48678
48679 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48680
48681         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48682         Problem reported by Ralf Wildenhues in
48683         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48684
48685         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48686         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48687
48688 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48691         yesterday's patch by changing test -n to test -z.
48692
48693 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48694
48695         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48696         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48697         the former is now obsolescent.
48698
48699         * modules/chdir-long (Depends-on): Add fcntl.
48700
48701 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48702
48703         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48704         obsolescent, and programs should use gnulib instead.
48705         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48706         but with prefixes changed.
48707
48708 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48709
48710         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48711         or stdbool.h, because they might not exist while configuring.
48712
48713         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48714         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48715         does that for us.
48716         (O_DIRECTORY): Remove.
48717
48718 2006-08-31  Eric Blake  <ebb9@byu.net>
48719
48720         * gnulib-tool: Don't let emacs change spaces to TAB.
48721
48722 2006-08-31  Bruno Haible  <bruno@clisp.org>
48723
48724         * gnulib-tool: When calling func_import more than once, do it in a
48725         subshell.
48726         Reported by Eric Blake <ebb9@byu.net>.
48727
48728 2006-08-31  Bruno Haible  <bruno@clisp.org>
48729
48730         * gnulib-tool (nl): Remove variable.
48731         (sed_transform_lib_file): Use more robust test for config-h module.
48732         (func_import): Fix typo in 2006-08-25 patch.
48733
48734 2006-08-31  Bruno Haible  <bruno@clisp.org>
48735
48736         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48737         specified, augment Makefile.am variables instead of assigning them.
48738
48739 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48740
48741         Work around a bug in both the Linux and SunOS 64-bit kernels:
48742         nanosleep mishandles sleeps for longer than 2**31 seconds.
48743         Problem reported by Frank v Waveren in
48744         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48746         Check for nanosleep bug.
48747         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48748
48749 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48750
48751         Work around a bug in both the Linux and SunOS 64-bit kernels:
48752         nanosleep mishandles sleeps for longer than 2**31 seconds.
48753         Problem reported by Frank v Waveren in
48754         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48755         * lib/nanosleep.c (BILLION): New constant.
48756         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48757         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48758         implementation.
48759
48760 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         * modules/nanosleep (Depends-on): Add gettime.
48763
48764 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48765         and Simon Josefsson  <jas@extundo.com>
48766         and Oskar Liljeblad  <oskar@osk.mine.nu>
48767
48768         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48769         * gnulib-tool (func_import): New license type 'unmodifiable license
48770         text'.
48771         * modules/fdl: Use it.  Longer description.
48772         * module/gpl, module/lgpl: New files.
48773
48774 2006-08-30  Jim Meyering  <jim@meyering.net>
48775
48776         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48777         shadowing the parameter.
48778
48779 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48780
48781         Sync from Libtool:
48782
48783         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48784
48785         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48786         sharing with gnulib.  Report by Eric Blake.
48787
48788 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48789
48790         * modules/isapipe: New file.
48791         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48792
48793 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * modules/configmake (Makefile.am): Add a comment, and omit
48796         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48797         by Bruno Haible.
48798
48799 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48800
48801         * m4/isapipe.m4: New file.
48802
48803 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48804
48805         * lib/isapipe.c, lib/isapipe.h: New files.
48806
48807 2006-08-29  Jim Meyering  <jim@meyering.net>
48808
48809         * modules/configmake (Makefile.am): Make configmake.h depend on
48810         Makefile.  Otherwise, a stale configmake.h could hang around.
48811
48812 2006-08-29  Eric Blake  <ebb9@byu.net>
48813
48814         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48815         resolution of upstream bug 3044.
48816
48817 2006-08-29  Bruno Haible  <bruno@clisp.org>
48818
48819         * modules/localcharset (Depends-on): Add configmake.
48820         (Makefile.am): Remove setting of LIBDIR through DEFS.
48821
48822 2006-08-29  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48825         defined.
48826
48827 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48828
48829         * modules/fcntl: New file.
48830         * modules/chdir-safer (Depends-on): Add fcntl.
48831         * modules/fts: Likewise.
48832         * modules/mkdir-p: Likewise.
48833
48834         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48835         This undoes the most recent change, since we're now addressing the
48836         problem in a different way.
48837
48838         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48839         into output, since the output might be called Makefile.am even
48840         if $makefile_name is something different.
48841         (func_import): Use $makefile_am rather than
48842         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48843         empty.
48844
48845         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48846
48847 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48850         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48851         recent change to stdint.m4, since we're now addressing the problem in a
48852         different way.
48853
48854 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48855
48856         * m4/fcntl_h.m4: New file.
48857
48858 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48859
48860         * lib/fcntl_.h: New file.
48861         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48862         the fcntl module.
48863         * lib/dirchownmod.c: Likewise.
48864         * lib/fts.c: Likewise.
48865
48866         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48867         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48868         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48869         just before including <inttypes.h>, to avoid circular inclusion.
48870
48871 2006-08-28  Jim Meyering  <jim@meyering.net>
48872
48873         * doc/visibility.texi: Actually read and correct the grammar of the
48874         sentence affected by yesterday's change.
48875
48876 2006-08-28  Eric Blake  <ebb9@byu.net>
48877
48878         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48879         needs wrapper.
48880
48881 2006-08-28  Eric Blake  <ebb9@byu.net>
48882
48883         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48884
48885 2006-08-28  Eric Blake  <ebb9@byu.net>
48886
48887         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48888
48889 2006-08-28  Bruno Haible  <bruno@clisp.org>
48890
48891         * modules/c-strstr: New file, from GNU gettext.
48892         * MODULES.html.sh (String handling): Add c-strstr.
48893
48894 2006-08-28  Bruno Haible  <bruno@clisp.org>
48895
48896         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48897         macros.
48898         Reported by Eric Blake.
48899
48900 2006-08-28  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48903         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48904         * lib/vasprintf.c: Include errno.h, limits.h.
48905         (EOVERFLOW): New fallback definition.
48906         (vasprintf): Test here whether the string length is > INT_MAX.
48907         * lib/vsnprintf.c: Include errno.h, limits.h.
48908         (EOVERFLOW): New fallback definition.
48909         (vsnprintf): Fix bug when generated string was too long for the buffer.
48910         Test here whether the string length is > INT_MAX.
48911
48912 2006-08-28  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/inttypes_.h (SCNX*): Remove definitions.
48915         Reported by Eric Blake.
48916
48917 2006-08-28  Bruno Haible  <bruno@clisp.org>
48918
48919         * lib/c-strstr.h: New file, from GNU gettext.
48920         * lib/c-strstr.c: New file, from GNU gettext.
48921
48922 2006-08-28  Bruno Haible  <bruno@clisp.org>
48923
48924         * gnulib-tool: Reorder some statements.
48925
48926 2006-08-28  Bruno Haible  <bruno@clisp.org>
48927
48928         * gnulib-tool: New option --makefile-name.
48929         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48930         $makefile_name.
48931         (func_import): Write $makefile_name to the cache file, and read it from
48932         there unless explicitly specified. Use $makefile_name as file name
48933         instead of Makefile.am. Adjust the recommendations accordingly.
48934
48935 2006-08-28  Bruno Haible  <bruno@clisp.org>
48936
48937         * gnulib-tool (func_verify_module): Check against misapplying patch.
48938
48939 2006-08-28  Bruno Haible  <bruno@clisp.org>
48940
48941         * gnulib-tool (func_relativize, func_relconcat): New functions.
48942         Give an error if --local-dir is given with --update.
48943         Remove trailing slashes from $local_gnulib_dir.
48944         (func_import): Store the relativized $local_gnulib_dir in
48945         gnulib-cache.m4, and read it from there if not specified explicitly.
48946
48947 2006-08-28  Bruno Haible  <bruno@clisp.org>
48948
48949         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48950         is the current directory. Respect also $local_gnulib_dir.
48951
48952 2006-08-28  Bruno Haible  <bruno@clisp.org>
48953             Simon Josefsson  <jas@extundo.com>
48954
48955         BeOS portability.
48956         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
48957
48958 2006-08-27  Jim Meyering  <jim@meyering.net>
48959
48960         * doc/visibility.texi: Remove duplicate word: "pointer".
48961
48962 2006-08-26  Bruno Haible  <bruno@clisp.org>
48963
48964         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
48965         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
48966         (Makefile.am): Create inttypes.h from inttypes_.h.
48967         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
48968
48969         * modules/imaxabs: New file.
48970
48971         * modules/imaxdiv: New file.
48972
48973 2006-08-26  Bruno Haible  <bruno@clisp.org>
48974
48975         * m4/inttypes.m4: New file.
48976         * m4/_inttypes_h.m4: Remove file.
48977         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
48978         PRI_MACROS_BROKEN.
48979         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
48980
48981         * m4/imaxabs.m4: New file.
48982
48983         * m4/imaxdiv.m4: New file.
48984
48985 2006-08-26  Bruno Haible  <bruno@clisp.org>
48986
48987         * lib/inttypes_.h: New file.
48988         * lib/inttypes.h: Remove file.
48989         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
48990
48991         * lib/imaxabs.c: New file.
48992
48993         * lib/imaxdiv.c: New file.
48994
48995 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48996
48997         New config-h module, so that "make" output needn't be cluttered
48998         by -DHAVE_CONFIG_H.
48999         * MODULES.html.sh (Support for building libraries and executables):
49000         Add config-h.
49001         * modules/config-h: New file.
49002         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49003         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49004         the config-h module is used.
49005
49006         New configmake module, so that "make" output needn't be cluttered
49007         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49008         * MODULES.html.sh (Support for building libraries and executables):
49009         Add configmake.
49010         * modules/configmake: New file.
49011
49012 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49013
49014         * m4/config-h.m4: New file.
49015
49016 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49017
49018         * config/srclist.txt: Add elisp-comp.
49019
49020 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49021
49022         * MODULES.html.sh (Support for building libraries and executables):
49023         Add elisp-comp.
49024         * build-aux/elisp-comp: New file.
49025         * modules/elisp-comp: New file.
49026
49027 2006-08-24  Bruno Haible  <bruno@clisp.org>
49028
49029         * gnulib-tool (func_create_testdir): Use non-default values of
49030         sourcebase and m4base.
49031
49032 2006-08-24  Bruno Haible  <bruno@clisp.org>
49033
49034         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49035         HTML structure.
49036
49037 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49038
49039         * modules/openat (Depends-on): Add lchown.
49040
49041 2006-08-23  Bruno Haible  <bruno@clisp.org>
49042
49043         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49044         of gl_LOCK_EARLY instead of gl_LOCK.
49045
49046 2006-08-23  Bruno Haible  <bruno@clisp.org>
49047
49048         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49049         on OSF/1 to no.
49050         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49051
49052 2006-08-23  Bruno Haible  <bruno@clisp.org>
49053
49054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49055         as unusable.
49056
49057         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49058         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49059         (gl_LOCK): New macro.
49060
49061 2006-08-22  Simon Josefsson  <jas@extundo.com>
49062
49063         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49064         to md5 module.
49065
49066 2006-08-22  Simon Josefsson  <jas@extundo.com>
49067
49068         * MODULES.html.sh: Add "Support for maintaining and release
49069         projects".
49070
49071         * build-aux/gnupload: New file, from coreutils.
49072
49073 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         Avoid the need for AC_LIBSOURCES in m4 macros.
49076         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49077         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49078         * modules/check-version (EXTRA_DIST): Add check-version.h.
49079         * modules/crc (EXTRA_DIST): Add crc.h.
49080         * modules/des (EXTRA_DIST): Add des.h.
49081         * modules/gc (EXTRA_DIST): Add gc.h.
49082         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49083         * modules/getline (EXTRA_DIST): Add getline.h.
49084         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49085         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49086         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49087         * modules/md2 (EXTRA_DIST): Add md2.h.
49088         * modules/md4 (EXTRA_DIST): Add md4.h.
49089         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49090         * modules/read-file (EXTRA_DIST): Add read-file.h.
49091         * modules/readline (EXTRA_DIST): Add readline.h.
49092         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49093         rijndael-api-fst.h.
49094
49095 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49096
49097         * m4/rijndael.m4 (gl_ARCFOUR):
49098         * m4/arctwo.m4 (gl_ARCTWO):
49099         * m4/check-version.m4 (gl_CHECK_VERSION):
49100         * m4/crc.m4 (gl_CRC):
49101         * m4/des.m4 (gl_DES):
49102         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49103         * m4/gc.m4 (gl_GC):
49104         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49105         * m4/getline.m4 (gl_FUNC_GETLINE):
49106         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49107         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49108         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49109         * m4/md2.m4 (gl_MD2):
49110         * m4/md4.m4 (gl_MD4):
49111         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49112         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49113         * m4/readline.m4 (gl_FUNC_READLINE):
49114         * m4/rijndael.m4 (gl_RIJNDAEL):
49115         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49116         to get the necessary .h files and whatnot.
49117
49118 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49119
49120         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49121         gnulib rather than the other way around.
49122         * config/srclistvars.sh (COREUTILS): Remove.
49123
49124 2006-08-22  Jim Meyering  <jim@meyering.net>
49125
49126         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49127
49128         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49129
49130 2006-08-22  Eric Blake  <ebb9@byu.net>
49131
49132         * modules/regexprops-generic: New file.
49133         * MODULES.html.sh (Support for building documentation): List it.
49134
49135 2006-08-22  Eric Blake  <ebb9@byu.net>
49136
49137         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49138         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49139         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49140         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49141
49142 2006-08-22  Bruno Haible  <bruno@clisp.org>
49143
49144         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49145         and lib_LTLIBRARIES like the other lib_* variables.
49146
49147 2006-08-22  Bruno Haible  <bruno@clisp.org>
49148
49149         * build-aux/x-to-1.in: New file, from GNU gettext.
49150
49151 2006-08-22  Bruno Haible  <bruno@clisp.org>
49152
49153         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49154         <utmpx.h> exists.
49155
49156 2006-08-22  Bruno Haible  <bruno@clisp.org>
49157
49158         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49159         <utmpx.h> exists.
49160
49161 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         BeOS portability.
49164         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49165         exist.
49166         Problem reported by Bruno Haible.
49167
49168 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49169
49170         Avoid the need for AC_LIBSOURCES in m4 macros.
49171         * modules/acl (EXTRA_DIST): Add acl.h.
49172         * modules/argmatch (Files): Add m4/argmatch.m4.
49173         (configure.ac): Add gl_ARGMATCH.
49174         (EXTRA_DIST): Renamed from lib_SOURCES, for
49175         consistency with the other modules.  Remove argmatch.c.
49176         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49177         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49178         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49179         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49180         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49181         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49182         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49183         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49184         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49185         * modules/closeout (EXTRA_DIST): Add closeout.h.
49186         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49187         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49188         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49189         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49190         dirname.h; remove basename.c and stripslash.c.
49191         * modules/exclude (EXTRA_DIST): Add exclude.h.
49192         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49193         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49194         * modules/file-type (EXTRA_DIST): Add file-type.h.
49195         * modules/filemode (EXTRA_DIST): Add filemode.h.
49196         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49197         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49198         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49199         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49200         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49201         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49202         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49203         * modules/getdate (EXTRA_DIST): Add getdate.c.
49204         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49205         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49206         * modules/getpass (EXTRA_DIST): Add getpass.h.
49207         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49208         * modules/group-member (EXTRA_DIST): Add group-member.h.
49209         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49210         * modules/hash (EXTRA_DIST): Add hash.h.
49211         * modules/human (EXTRA_DIST): Add human.h.
49212         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49213         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49214         * modules/lchown (EXTRA_DIST): Add lchown.h.
49215         * modules/long-options (EXTRA_DIST): Add long-options.h.
49216         * modules/lstat (EXTRA_DIST): Add lstat.h.
49217         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49218         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49219         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49220         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49221         * modules/memxor (EXTRA_DIST): Add memxor.h.
49222         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49223         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49224         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49225         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49226         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49227         * modules/physmem (EXTRA_DIST): Add physmem.h.
49228         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49229         * modules/posixver (EXTRA_DIST): Add posixver.h.
49230         * modules/quote (EXTRA_DIST): Add quote.h.
49231         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49232         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49233         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49234         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49235         regex_internal.h regexec.c.
49236         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49237         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49238         * modules/same (EXTRA_DIST): Add same.h.
49239         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49240         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49241         * modules/savedir (EXTRA_DIST): Add savedir.h.
49242         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49243         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49244         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49245         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49246         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49247         * modules/strdup (EXTRA_DIST): Add strdup.h.
49248         * modules/strftime (EXTRA_DIST): Add strftime.h.
49249         * modules/strndup (EXTRA_DIST): Add strndup.h.
49250         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49251         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49252         * modules/time_r (EXTRA_DIST): Add time_r.h.
49253         * modules/timespec (EXTRA_DIST): Add timespec.h.
49254         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49255         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49256         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49257         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49258         * modules/userspec (EXTRA_DIST): Add userspec.h.
49259         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49260         * modules/utimens (EXTRA_DIST): Add utimens.h.
49261         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49262         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49263         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49264         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49265         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49266         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49267         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49268         * modules/yesno (EXTRA_DIST): Add yesno.h.
49269
49270 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49271
49272         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49273
49274         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49275         * m4/dev-ino.m4, same-inode.m4: Remove.
49276
49277         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49278         * m4/acl.m4 (AC_FUNC_ACL):
49279         * m4/backupfile.m4 (gl_BACKUPFILE):
49280         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49281         * m4/canon-host.m4 (gl_CANON_HOST):
49282         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49283         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49284         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49285         * m4/cloexec.m4 (gl_CLOEXEC):
49286         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49287         * m4/closeout.m4 (gl_CLOSEOUT):
49288         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49289         * m4/dirname.m4 (gl_DIRNAME):
49290         * m4/exclude.m4 (gl_EXCLUDE):
49291         * m4/exitfail.m4 (gl_EXITFAIL):
49292         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49293         * m4/file-type.m4 (gl_FILE_TYPE):
49294         * m4/filemode.m4 (gl_FILEMODE):
49295         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49296         * m4/fpending.m4 (gl_FUNC_FPENDING):
49297         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49298         * m4/fts.m4 (gl_FUNC_FTS):
49299         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49300         * m4/getdate.m4 (gl_GETDATE):
49301         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49302         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49303         * m4/getpass.m4 (gl_FUNC_GETPASS):
49304         * m4/gettime.m4 (gl_GETTIME):
49305         * m4/getugroups.m4 (gl_GETUGROUPS):
49306         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49307         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49308         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49309         * m4/hash.m4 (gl_HASH):
49310         * m4/idcache.m4 (gl_IDCACHE):
49311         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49312         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49313         * m4/long-options.m4 (gl_LONG_OPTIONS):
49314         * m4/lstat.m4 (gl_FUNC_LSTAT):
49315         * m4/md5.m4 (gl_MD5):
49316         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49317         * m4/memcoll.m4 (gl_MEMCOLL):
49318         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49319         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49320         * m4/memxor.m4 (gl_MEMXOR):
49321         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49322         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49323         * m4/modechange.m4 (gl_MODECHANGE):
49324         * m4/mountlist.m4 (gl_MOUNTLIST):
49325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49326         * m4/openat.m4 (gl_FUNC_OPENAT):
49327         * m4/pathmax.m4 (gl_PATHMAX):
49328         * m4/physmem.m4 (gl_PHYSMEM):
49329         * m4/posixtm.m4 (gl_POSIXTM):
49330         * m4/posixver.m4 (gl_POSIXVER):
49331         * m4/quote.m4 (gl_QUOTE):
49332         * m4/quotearg.m4 (gl_QUOTEARG):
49333         * m4/readtokens.m4 (gl_READTOKENS):
49334         * m4/readutmp.m4 (gl_READUTMP):
49335         * m4/regex.m4 (gl_REGEX):
49336         * m4/safe-read.m4 (gl_SAFE_READ):
49337         * m4/safe-write.m4 (gl_SAFE_WRITE):
49338         * m4/same.m4 (gl_SAME):
49339         * m4/save-cwd.m4 (gl_SAVE_CWD):
49340         * m4/savedir.m4 (gl_SAVEDIR):
49341         * m4/settime.m4 (gl_SETTIME):
49342         * m4/sha1.m4 (gl_SHA1):
49343         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49344         * m4/stat-macros.m4 (gl_STAT_MACROS):
49345         * m4/stat-time.m4 (gl_STAT_TIME):
49346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49347         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49348         * m4/strdup.m4 (gl_FUNC_STRDUP):
49349         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49350         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49351         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49353         * m4/time_r.m4 (gl_TIME_R):
49354         * m4/timespec.m4 (gl_TIMESPEC):
49355         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49356         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49357         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49358         * m4/userspec.m4 (gl_USERSPEC):
49359         * m4/utimecmp.m4 (gl_UTIMECMP):
49360         * m4/utimens.m4 (gl_UTIMENS):
49361         * m4/xalloc.m4 (gl_XALLOC):
49362         * m4/xgetcwd.m4 (gl_XGETCWD):
49363         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49364         * m4/xreadlink.m4 (gl_XREADLINK):
49365         * m4/xstrtod.m4 (gl_XSTRTOD):
49366         * m4/yesno.m4 (gl_YESNO):
49367         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49368         to get the necessary .h files and whatnot.
49369
49370 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49371             Bruno Haible  <bruno@clisp.org>
49372
49373         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49374         /bin/sh understanding of '!' conditional negation.
49375
49376 2006-08-21  Jim Meyering  <jim@meyering.net>
49377
49378         * modules/openat (Depends-on): Really alphabetize.
49379
49380         * modules/acl (Depends-on): Add error and quote.
49381
49382         * check-module (find_included_lib_files): Add at-func.c to the
49383         ok-to-include-more-than-once white list.
49384
49385         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49386
49387 2006-08-21  Bruno Haible  <bruno@clisp.org>
49388
49389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49390         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49391         Reported by Martin Lambers <marlam@marlam.de>.
49392
49393 2006-08-21  Bruno Haible  <bruno@clisp.org>
49394
49395         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49396         specify an installation location, don't emit a noinst_LIBRARIES or
49397         noinst_LTLIBRARIES assignment.
49398
49399 2006-08-21  Bruno Haible  <bruno@clisp.org>
49400
49401         BeOS portability.
49402         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49403         BeOS has mbrtowc() but no <wctype.h>.
49404
49405 2006-08-21  Bruno Haible  <bruno@clisp.org>
49406
49407         BeOS portability.
49408         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49409         exist.
49410
49411 2006-08-21  Bruno Haible  <bruno@clisp.org>
49412
49413         BeOS portability.
49414         * lib/mbchar.h: Include <wctype.h> only if it exists.
49415
49416 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         Remove files that are no longer needed by their respective modules.
49419         * m4/obstack.m4: Remove.
49420         * m4/strerror_r.m4: Remove.
49421         * m4/uint32_t.m4: Remove.
49422         * m4/uintptr_t.m4: Remove.
49423         * m4/ullong_max.m4: Remove.
49424         * m4/xstrtoimax.m4: Remove.
49425         * m4/xstrtoumax.m4: Remove.
49426
49427         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49428         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49429         dependencies now capture this.
49430
49431         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49432         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49433         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49434         * m4/human.m4 (gl_HUMAN): Likewise.
49435         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49436         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49437
49438         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49439
49440         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49441         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49442         stdint.
49443         * m4/human.m4 (gl_HUMAN): Likewise.
49444         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49445         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49446         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49447         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49448         * m4/xstrtol (gl_XSTRTOL): Likewise.
49449
49450         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49451         AC_TYPE_LONG_LONG_INT.
49452         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49453         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49454         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49455         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49456
49457         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49458         on stdbool.
49459
49460         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49461         (gl_PREREQ_XSTRTOUL): Remove.
49462
49463         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49464
49465         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49466         mode.
49467
49468 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49469
49470         Add and change modules to make it easier for coreutils to use
49471         gnulib-tool.
49472         * modules/backupfile (Files): Remove m4/d-ino.m4.
49473         (Depends-on): Add d-ino.
49474         * modules/cycle-check (Depends-on): Add stdint.
49475         (lib_SOURCES): Add cycle-check.h.
49476         * modules/d-ino: New module.
49477         * modules/d-type: New module.
49478         * modules/error (Files): Remove m4/strerror_r.m4.
49479         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49480         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49481         m4/inttypes_h.m4, m4/uintmax_t.m4.
49482         (Depends-on): Add stdint.
49483         (lib_SOURCES): Add fsusage.h.
49484         * modules/getcwd (Files): Remove d-ino.m4.
49485         (Depends-on): Add d-ino.
49486         * modules/getndelim2 (Depends-on): Add stdint.
49487         * modules/glob (Files): Remove m4/d-type.m4.
49488         (Depends-on): Add d-type.
49489         * modules/host-os: New module.
49490         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49491         m4/inttypes_h.m4, m4/uintmax_t.m4.
49492         * Depends-on: Add stdint.
49493         (lib_SOURCES): Add human.h.
49494         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49495         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49496         m4/uintmax_t.m4, m4/ulonglong.m4.
49497         (Depends-on): Add stdint.
49498         (EXTRA_DIST): Add inttostr.h.
49499         * modules/lchmod: New module.
49500         * modules/link-follow: New module.
49501         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49502         (Depends-on): Add lchmod.
49503         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49504         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49505         (Depends-on): Add stdint.
49506         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49507         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49508         (Depends-on): Add stdint.
49509         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49510         * modules/perl: New module.
49511         * modules/regex (Depends-on): Add stdint.
49512         * modules/rmdir-errno: New module.
49513         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49514         m4/intmax_t.m4.
49515         (Depends-on): Add stdint.
49516         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49517         m4/uintmax_t.m4.
49518         (Depends-on): Add stdint.
49519         * modules/unlink-busy: New module.
49520         * modules/utimecmp (Depends-on): Add stdint.
49521         * modules/uptime: New module.
49522         * modules/winsz-ioctl: New module.
49523         * modules/winsz-termios: New module.
49524         * modules/xnanosleep (Depends-on): Add nanosleep.
49525         * modules/ullong_max: Remove.
49526         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49527         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49528         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49529         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49530         (Depends-on): Add inttypes.
49531         (lib_SOURCES): Add xstrtol.h.
49532         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49533         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49534         * MODULES.html.sh: Move 'assert' into the assert section.
49535         Move 'dummy' into the linking section.
49536         Remove ullong_max.
49537         Add section for compatibility checks for POSIX:2001 functions,
49538         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49539         winsz-ioctl, and winsz-termios into it.
49540         Add lchmod.
49541         Add top-level Misc section and put host-os, perl, and uptime
49542         into it.
49543
49544 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49545
49546         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49547         now assume the stdint module.  Do not include inttypes.h.
49548         * lib/fsusage.h: Likewise.
49549         * lib/getndelim2.c: Likewise.
49550         * lib/human.h: Likewise.
49551         * lib/inttostr.h: Likewise.
49552         * lib/obstack.c: Likewise.
49553         * lib/regex_internal.h: Likewise.
49554         * lib/tempname.c: Likewise.
49555         * lib/utimecmp.c: Likewise.
49556         * lib/xstrtol.h: Likewise.
49557
49558         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49559
49560         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49561         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49562         * lib/xtime.h: Likewise.
49563
49564 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49565
49566         * modules/openat (Files): Add lib/fchmodat.c.
49567         Fixes problem reported by Jay Youngman.
49568
49569 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49570
49571         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49572         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49573
49574 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49575             Bruno Haible  <bruno@clisp.org>
49576
49577         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49578         and is a script that invokes bison. Tighten the code. Add comments.
49579
49580 2006-08-18  Jim Meyering  <jim@meyering.net>
49581
49582         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49583         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49584         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49585         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49586
49587 2006-08-18  Bruno Haible  <bruno@clisp.org>
49588
49589         * modules/bison-i18n: New file.
49590         * MODULES.html.sh (Internationalization functions): Add it.
49591
49592 2006-08-18  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49595         sys/statvfs.h. When getmntinfo was found, check its declaration and
49596         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49597
49598 2006-08-18  Bruno Haible  <bruno@clisp.org>
49599
49600         * m4/bison-i18n.m4: New file, from bison.
49601
49602 2006-08-18  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49605         (ME_DUMMY): Treat "kernfs" as a dummy.
49606         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49607
49608 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49609
49610         Update from coreutils.
49611
49612         2006-08-15  Jim Meyering  <jim@meyering.net>
49613
49614         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49615
49616         2006-01-17  Jim Meyering  <jim@meyering.net>
49617
49618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49619
49620         2006-01-11  Jim Meyering  <jim@meyering.net>
49621
49622         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49623         Check for the lchmod function.
49624
49625 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49626
49627         Update from coreutils.
49628
49629         * lib/__fpending.h: Add copyright notice.
49630         * lib/fprintftime.h: Likewise.
49631         * lib/savedir.c: Use (C) in copyright notice.
49632         * lib/savedir.h: Likewise.
49633
49634         2006-08-15  Jim Meyering  <jim@meyering.net>
49635
49636         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49637         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49638         in support of the EXPECTED_ERRNO macro.
49639         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49640         definitions.  Instead, define the appropriate symbols and include
49641         "at-func.c".
49642         * lib/mkdirat.c (mkdirat): Likewise.
49643         * lib/fchmodat.c (fchmodat): Likewise.
49644         (ENOSYS): Remove definition.
49645         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49646         it.  Don't include "unistd--.h" -- it wasn't ever used.
49647
49648         2006-01-17  Jim Meyering  <jim@meyering.net>
49649
49650         Rewrite fts.c not to change the current working directory,
49651         by using openat, fstatat, fdopendir, etc..
49652
49653         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49654         (HAVE_OPENAT_SUPPORT): Define.
49655         [_LIBC] (fchdir): Don't undef or define; no longer used.
49656         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49657         Now, this `function' always succeeds, and consumes its file descriptor
49658         parameter -- so callers must not close such FDs.  Update callers.
49659         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49660         (diropen): Add parameter, SP.  Adjust all callers.
49661         Implement using diropen_fd, rather than open.
49662         (fts_open): Initialize new member, fts_cwd_fd.
49663         Remove fts_rft-setting code.
49664         (fts_close): Close fts_cwd_fd, if necessary.
49665         (__opendir2): Define in terms of opendir or opendirat,
49666         depending on whether the FST_NOCHDIR flag is set.
49667         (fts_build): Since fts_safe_changedir consumes its FD, and since
49668         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49669         and close the dup'd file descriptor upon failure.
49670         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49671         (fts_safe_changedir): Tweak semantics to reflect that this function
49672         now calls cwd_advance_fd and hence consumes its FD argument.
49673         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49674         [struct FTS] (fts_rft): Remove now-unused member.
49675         [struct FTS] (fts_cycle.state): Improve comment.
49676
49677         * lib/openat.c (openat_needs_fchdir): New function.
49678         * lib/openat.h (openat_needs_fchdir): Declare it.
49679
49680 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49683         Problem and fix reported by Pádraig Brady in
49684         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49685
49686 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49687
49688         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49689
49690 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49691
49692         * lib/memcoll.c (memcoll): Optimize for the common case where the
49693         arguments are bytewise equal.
49694
49695 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49696
49697         * doc/regexprops-generic.texi: Add a copyright notice.
49698
49699 2006-08-15  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/tmpdir (License): Change to LGPL.
49702
49703 2006-08-15  Bruno Haible  <bruno@clisp.org>
49704
49705         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49706         module.
49707
49708 2006-08-14  Simon Josefsson  <jas@extundo.com>
49709
49710         * config/srclist.txt: Add gnupload.
49711
49712 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49713
49714         Change copyright notice from LGPL 2 to GPL 2, since that's the
49715         standard form used in the gnulib repository.
49716         * tests/test-lock.c: Likewise.
49717         * tests/test-stdint.c: Likewise.
49718         * tests/test-tls.c: Likewise.
49719
49720         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49721         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49722         Add copyright notice.
49723
49724         * check-module: Add copyright notice.  Output a copyright
49725         notice if "--version" is specified.
49726         * modules/COPYING: New file.
49727         * tests/test-getaddrinfo.c: Add copyright notice.
49728         * tests/test-verify.c: Likewise.
49729
49730 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49731
49732         Change copyright notice from LGPL 2 to GPL 2, since that's the
49733         standard form used in the gnulib repository.
49734         * lib/lock.c: LGPL -> GPL.
49735         * lib/lock.h: Likewise.
49736         * lib/strnlen1.c: Likewise.
49737         * lib/strnlen1.h: Likewise.
49738         * lib/tls.c: Likewise.
49739         * lib/tls.h: Likewise.
49740         * lib/tmpdir.c: Likewise.
49741
49742         * lib/TODO: Remove; this belongs only in coreutils.
49743
49744 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49745
49746         Add copyright notices to long-enough files that lack them, since
49747         otherwise the files aren't clearly free.  Use the same notice that
49748         getdate.texi already uses.
49749         * doc/alloca-opt.texi: Add copyright notice.
49750         * doc/alloca.texi: Likewise.
49751         * doc/ctime.texi: Likewise.
49752         * doc/functions.texi: Likewise.
49753         * doc/gcd.texi: Likewise.
49754         * doc/gnulib-tool.texi: Likewise.
49755         * doc/inet_ntoa.texi: Likewise.
49756         * doc/visibility.texi: Likewise.
49757
49758         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49759         * doc/quote.texi: Add copyright notice.
49760
49761         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49762         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49763         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49764         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49765         is now obsolete, and give a pointer to the Sun list.
49766         Add copyright notice.
49767
49768 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49769
49770         * config/srclistvars.sh: Add copyright notice.
49771
49772 2006-08-14  Eric Blake  <ebb9@byu.net>
49773
49774         Import the following change from libc:
49775
49776         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49777
49778         Upstream bug 2997.
49779         * lib/misc/error.c: Add space between program name and message if file
49780         name is missing.
49781
49782 2006-08-12  Karl Berry  <karl@gnu.org>
49783
49784         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49785         remove, these originate in gnulib now.
49786
49787 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49788
49789         * doc/Makefile (standards.info standards.html standards.dvi):
49790         Also depend on make-stds.texi.
49791
49792 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49793
49794         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49795         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49796
49797         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49798         in wchar_t.  Problem reported by Eric Blake.
49799
49800         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49801         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49802         Also, help the compiler to keep LEN in a register.
49803
49804 2006-08-11  Eric Blake  <ebb9@byu.net>
49805
49806         * users.txt: Sort.  Add tar.
49807
49808 2006-08-11  Bruno Haible  <bruno@clisp.org>
49809
49810         * users.txt: New file.
49811
49812 2006-08-11  Bruno Haible  <bruno@clisp.org>
49813
49814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49815         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49816
49817 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49818
49819         * modules/snprintf (Depends-on): Remove minmax.
49820         (Maintainer): Add self and Bruno.
49821
49822 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49825         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49826         (EOVERFLOW): Define if the system does not.
49827         Do not include "minmax.h"; it wasn't used.
49828         (snprintf): Don't assume size_t promotes to an unsigned type.
49829         Fix bug when generated string was too long for the buffer: the
49830         buffer's contents are supposed to be the initial prefix of the
49831         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49832         exceeds INT_MAX; do the check ourselves.
49833
49834         Import the following changes from libc:
49835
49836         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49837
49838         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49839         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49840         set wc to the byte which couldn't be converted.
49841         (re_string_reconstruct): Don't clear valid_raw_len before calling
49842         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49843         tip_context using re_string_context_at.
49844
49845         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49846
49847         * lib/posix/regex.h: g++ still cannot handled [restrict].
49848
49849         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49850
49851         * lib/posix/regex.h: Remove special handling for VMS.
49852
49853 2006-08-10  Jim Meyering  <jim@meyering.net>
49854
49855         * modules/same-inode: New module.
49856         * modules/dev-ino: New module.
49857         * modules/cycle-check: Depend on these modules, rather than simply
49858         including their .h files.
49859         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49860         required via m4/cycle-check.m4.
49861         * modules/same: Depend on new same-inode module, rather than
49862         including same-inode.h.
49863         * modules/chdir-safer: New file.
49864
49865         * modules/chown (Depends-on): Add stat-macros.
49866
49867 2006-08-10  Jim Meyering  <jim@meyering.net>
49868
49869         * m4/cycle-check.m4: New file.
49870         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49871         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49872
49873 2006-08-10  Eric Blake  <ebb9@byu.net>
49874
49875         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49876         in from original proposal.
49877
49878 2006-08-10  Eric Blake  <ebb9@byu.net>
49879         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49880
49881         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49882         namespace.
49883
49884 2006-08-10  Bruno Haible  <bruno@clisp.org>
49885
49886         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49887         as well.
49888
49889 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49890
49891         Sync from coreutils.
49892
49893         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49894
49895         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49896         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49897
49898 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49899
49900         * modules/restrict: Remove; no longer needed now that we assume
49901         Autoconf 2.59 or later.
49902         * MODULES.html.sh: Remove 'restrict'.
49903         * modules/argp (Depends-on): Remove 'restrict'.
49904         * modules/base64 (Depends-on): Likewise.
49905         * modules/gc (Depends-on): Likewise.
49906         * modules/getaddrinfo (Depends-on): Likewise.
49907         * modules/glob (Depends-on): Likewise.
49908         * modules/inet_ntop (Depends-on): Likewise.
49909         * modules/inet_pton (Depends-on): Likewise.
49910         * modules/memxor (Depends-on): Likewise.
49911         * modules/regex (Depends-on): Likewise.
49912         * modules/strtok_r (Depends-on): Likewise.
49913         * modules/time_r (Depends-on): Likewise.
49914
49915 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49916
49917         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49918         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49919         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49920         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49921         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49922         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49923         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49924         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49925
49926         Merge from coreutils.
49927         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49928         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49930         * m4/time_r.m4 (gl_TIME_R): Likewise.
49931
49932 2006-08-09  Karl Berry  <karl@gnu.org>
49933
49934         * config/srclist.txt: no more gettext-tools, per Bruno.
49935
49936 2006-08-08  Eric Blake  <ebb9@byu.net>
49937
49938         * modules/verror: New module.
49939         * MODULES.html.sh: Document it.
49940
49941 2006-08-08  Eric Blake  <ebb9@byu.net>
49942
49943         * lib/verror.h, lib/verror.c: New files.
49944
49945 2006-08-08  Eric Blake  <ebb9@byu.net>
49946
49947         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49948         verror_at_line output complies with GNU Coding Standards even when
49949         file is NULL.
49950
49951 2006-08-07  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49954         versions of AIX.
49955         Reported by Ralf Wildenhues.
49956
49957 2006-08-07  Bruno Haible  <bruno@clisp.org>
49958
49959         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
49960         in an AC_DEFUN. Needed so that the autoconf snippets can use
49961         AC_REQUIRE.
49962
49963 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49964
49965         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49966         Initialize pkgdata_DATA.
49967         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
49968         overriding it.
49969
49970 2006-08-06  Eric Blake  <ebb9@byu.net>
49971
49972         * lib/error.h: Fold in some upstream changes from glibc.
49973         * lib/error.c: Likewise.
49974
49975 2006-08-04  Bruno Haible  <bruno@clisp.org>
49976
49977         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49978         Make the mostlyclean-local rule depend on mostlyclean-generic.
49979         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
49980
49981 2006-07-31  Bruno Haible  <bruno@clisp.org>
49982
49983         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
49984         <stdlib.h>, <string.h>.
49985
49986 2006-07-30  Bruno Haible  <bruno@clisp.org>
49987
49988         * modules/readlink (License): Change to LGPL.
49989
49990 2006-07-30  Bruno Haible  <bruno@clisp.org>
49991
49992         * modules/javaversion (Makefile.am): Distribute javaversion.java and
49993         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
49994         set PKGDATADIR to point to it.
49995
49996 2006-07-30  Bruno Haible  <bruno@clisp.org>
49997
49998         * modules/csharpexec (configure.ac): Comment out macro invocation.
49999         * modules/javaexec (configure.ac): Likewise.
50000         * modules/javacomp-script (configure.ac): Likewise.
50001
50002         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50003
50004 2006-07-30  Bruno Haible  <bruno@clisp.org>
50005
50006         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50007         linked-list.
50008
50009 2006-07-30  Bruno Haible  <bruno@clisp.org>
50010
50011         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50012
50013 2006-07-30  Bruno Haible  <bruno@clisp.org>
50014
50015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50016         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50017         get removed.
50018
50019 2006-07-29  Bruno Haible  <bruno@clisp.org>
50020
50021         Make it possible for gnulib-tool to work with locally modified or
50022         augmented gnulib repositories.
50023         * gnulib-tool (func_usage): Document --local-dir option.
50024         (local_gnulib_dir): New variable.
50025         Handle --local-dir option.
50026         (func_lookup_file): New function.
50027         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50028         (func_get_description, func_get_filelist, func_get_description,
50029         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50030         func_get_automake_snippet, func_get_include_directive,
50031         func_get_license, func_get_maintainer): Use func_lookup_file.
50032         (func_import, func_create_testdir): Use func_lookup_file.
50033
50034 2006-07-29  Bruno Haible  <bruno@clisp.org>
50035
50036         * modules/setenv (Depends-on): Add unistd.
50037
50038 2006-07-29  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50041
50042 2006-07-29  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50045
50046 2006-07-29  Bruno Haible  <bruno@clisp.org>
50047
50048         * gnulib-tool (import, update): If there is no Makefile.am, look at
50049         aclocal.m4, instead of bailing out.
50050
50051 2006-07-29  Bruno Haible  <bruno@clisp.org>
50052
50053         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50054         Categorize the options by when they are useful.
50055
50056 2006-07-29  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_usage): Document option --no-libtool.
50059         Handle option --no-libtool.
50060         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50061         for changed semantics of $libtool variable.
50062         (func_import): Likewise. If libtool is not used, show this through
50063         an option --no-libtool.
50064         (func_create_testdir): Update.
50065
50066 2006-07-29  Bruno Haible  <bruno@clisp.org>
50067
50068         * gnulib-tool (func_import): Extend error message about missing
50069         --doc-base.
50070
50071 2006-07-29  Bruno Haible  <bruno@clisp.org>
50072
50073         * gnulib-tool (func_import): Don't create the $docbase directory if
50074         there is no file to store there.
50075
50076 2006-07-29  Bruno Haible  <bruno@clisp.org>
50077
50078         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50079         relevant, look for configure.ac there, not in the current directory.
50080         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50081
50082 2006-07-29  Bruno Haible  <bruno@clisp.org>
50083
50084         * gnulib-tool (SORT): New variable.
50085         (func_usage): Undocument --assume-autoconf option.
50086         Remove --assume-autoconf option handling.
50087         (autoconf_minversion): Determine from the contents of configure.ac.
50088         (func_import): Remove autoconf_minversion handling.
50089         Suggested by Eric Blake.
50090
50091 2006-07-29  Bruno Haible  <bruno@clisp.org>
50092
50093         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50094
50095 2006-07-29  Bruno Haible  <bruno@clisp.org>
50096
50097         * config/srclist.txt (*setenv.[ch]): Remove rules.
50098
50099 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50100
50101         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50102
50103 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50104
50105         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50106         arpa/inet.h.
50107
50108 2006-07-28  Simon Josefsson  <jas@extundo.com>
50109
50110         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50111         * modules/inet_pton (Depends-on): Likewise.
50112
50113 2006-07-28  Simon Josefsson  <jas@extundo.com>
50114
50115         * m4/netinet_in_h.m4: New file.
50116
50117 2006-07-28  Simon Josefsson  <jas@extundo.com>
50118
50119         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50120         #include's.
50121
50122 2006-07-28  Simon Josefsson  <jas@extundo.com>
50123
50124         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50125         #include's.
50126
50127 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50128
50129         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50130         setgid on directories only if they set these bits.
50131         * lib/modechange.h: Remove obsolete comment about masks.
50132
50133 2006-07-28  Eric Blake  <ebb9@byu.net>
50134
50135         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50136         macro expansion.
50137
50138 2006-07-28  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50141
50142 2006-07-28  Bruno Haible  <bruno@clisp.org>
50143
50144         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50145
50146 2006-07-28  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50149         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50150         Define fallbacks.
50151         Avoids link error on FreeBSD 4.x.
50152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50153
50154         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50155         encoding.
50156         * lib/mbswidth.c (iswcntrl): Likewise.
50157
50158 2006-07-27  Bruno Haible  <bruno@clisp.org>
50159
50160         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50161         test.
50162
50163 2006-07-27  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50166         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50167         defined.
50168
50169 2006-07-26  Eric Blake  <ebb9@byu.net>
50170
50171         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50172
50173 2006-07-26  Eric Blake  <ebb9@byu.net>
50174
50175         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50176         like mingw that lack mkstemp.
50177         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50178         avoid compilation warning on mingw.
50179
50180 2006-07-26  Bruno Haible  <bruno@clisp.org>
50181
50182         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50183         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50184         INT_FAST*_MIN, INTPTR_MIN.
50185
50186 2006-07-25  Bruno Haible  <bruno@clisp.org>
50187
50188         * modules/version-etc (Depends-on): Add stdarg.
50189
50190 2006-07-25  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50193         complex commands.
50194
50195 2006-07-25  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50198         defined in <stdarg.h> or config.h.
50199
50200 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50201
50202         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50203         (gl_STDIO_SAFER): Remove.
50204
50205 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50206
50207         * MODULES.html.sh (File stream based Input/Output):
50208         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50209         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50210         * modules/fopen-safer, modules/tmpfile-safer: New files.
50211         * modules/stdio-safer: Remove.
50212
50213 2006-07-24  Bruno Haible  <bruno@clisp.org>
50214
50215         * modules/tmpdir: New file.
50216         * MODULES.html.sh (File system functions): Add it.
50217
50218 2006-07-24  Bruno Haible  <bruno@clisp.org>
50219
50220         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50221         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50222
50223 2006-07-24  Bruno Haible  <bruno@clisp.org>
50224
50225         * modules/clean-temp: New file.
50226
50227 2006-07-24  Bruno Haible  <bruno@clisp.org>
50228
50229         * m4/tmpdir.m4: New file, from GNU gettext.
50230
50231 2006-07-24  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/tmpdir.h: New file, from GNU gettext.
50234         * lib/tmpdir.c: New file, from GNU gettext.
50235
50236 2006-07-24  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/clean-temp.h: New file, from GNU gettext.
50239         * lib/clean-temp.c: New file, from GNU gettext.
50240
50241 2006-07-23  Eric Blake  <ebb9@byu.net>
50242
50243         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50244         (Depends-on): Add binary-io.
50245
50246 2006-07-23  Eric Blake  <ebb9@byu.net>
50247
50248         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50249
50250 2006-07-23  Eric Blake  <ebb9@byu.net>
50251
50252         * lib/tmpfile-safer.c: New file.
50253         * lib/stdio-safer.h (fopen_safer): Add prototype.
50254         * lib/stdio--.h (tmpfile): Make safer.
50255
50256 2006-07-23  Bruno Haible  <bruno@clisp.org>
50257
50258         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50259         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50260         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50261         gl_linked_remove_at): Use it.
50262
50263 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50264         and Simon Josefsson <jas@extundo.com>
50265
50266         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50267
50268         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50269
50270 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50271
50272         * modules/close-stream: New file.
50273         * modules/closeout (Description): Make it clear that it exits
50274         with a diagnostic on error.
50275         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50276         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50277
50278 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50279
50280         * m4/close-stream.m4: New file.
50281
50282 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         * lib/close-stream.c, lib/close-stream.h: New files.
50285
50286 2006-07-22  Bruno Haible  <bruno@clisp.org>
50287
50288         Merge from GNU gettext 0.15.
50289
50290         2006-05-01  Bruno Haible  <bruno@clisp.org>
50291
50292                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50293
50294         2006-07-22  Bruno Haible  <bruno@clisp.org>
50295
50296                 * modules/javaversion: New file.
50297                 * MODULES.html.sh (Java): Add javaversion.
50298
50299         2006-03-12  Bruno Haible  <bruno@clisp.org>
50300
50301                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50302
50303         2005-12-04  Bruno Haible  <bruno@clisp.org>
50304
50305                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50306                 (untested).
50307
50308         2006-06-21  Bruno Haible  <bruno@clisp.org>
50309
50310                 Avoid warnings from recent versions of mcs.
50311                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50312                 -o, -L, -r any more. Use options documented since mcs-1.0
50313                 instead. Similarly for -g.
50314
50315         2005-12-04  Bruno Haible  <bruno@clisp.org>
50316
50317                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50318                 .resources, not .resource.
50319
50320         2005-07-09  Bruno Haible  <bruno@clisp.org>
50321
50322                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50323                 add a .dll suffix.
50324                 Reported by Mark Junker <mjscod@gmx.de>.
50325
50326         2006-07-22  Bruno Haible  <bruno@clisp.org>
50327
50328                 * modules/gettext: Upgrade to gettext-0.15.
50329                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50330                 m4/visibility.m4.
50331                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50332
50333 2006-07-22  Bruno Haible  <bruno@clisp.org>
50334
50335         Merge from GNU gettext 0.15.
50336
50337         2006-03-25  Bruno Haible  <bruno@clisp.org>
50338
50339                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50340
50341         2006-07-21  Bruno Haible  <bruno@clisp.org>
50342
50343                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50344                 "1.1".
50345
50346         2006-05-09  Bruno Haible  <bruno@clisp.org>
50347
50348                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50349                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50350                 for the conftestver execution.
50351
50352         2006-05-01  Bruno Haible  <bruno@clisp.org>
50353
50354                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50355                 optional target-version argument. Verify that the compiler
50356                 groks source of the specified source-version, or add -source
50357                 option as necessary. Verify that the compiler produces
50358                 bytecode in the specified target-version, or add -target and
50359                 -source options as necessary. Make the result of the test
50360                 available as variable CONF_JAVAC. Also log error output in
50361                 config.log.
50362
50363         2006-03-11  Bruno Haible  <bruno@clisp.org>
50364
50365                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50366
50367         2006-05-09  Bruno Haible  <bruno@clisp.org>
50368
50369                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50370                 CLASSPATH_SEPARATOR to a semicolon.
50371
50372         2006-03-12  Bruno Haible  <bruno@clisp.org>
50373
50374                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50375                 available as variable CONF_JAVA, for subsequent autoconf
50376                 tests. Also log error output in config.log.
50377
50378         2006-07-19  Bruno Haible  <bruno@clisp.org>
50379
50380                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50381                 that getline works on glibc2 systems. Needed to avoid trouble
50382                 in relocatable.c.
50383                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50384
50385         2005-12-04  Bruno Haible  <bruno@clisp.org>
50386
50387                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50388                 launcher (untested).
50389
50390         2005-12-04  Bruno Haible  <bruno@clisp.org>
50391
50392                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50393
50394         2006-07-22  Bruno Haible  <bruno@clisp.org>
50395
50396                 * gettext.m4: Update from GNU gettext-0.15.
50397                 * nls.m4: Likewise.
50398                 * po.m4: Likewise.
50399                 * inttypes-pri.m4: Likewise.
50400                 * inttypes-h.m4: Renamed from inttypes.m4.
50401                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50402
50403 2006-07-22  Bruno Haible  <bruno@clisp.org>
50404
50405         Merge from GNU gettext 0.15.
50406
50407         2005-07-05  Bruno Haible  <bruno@clisp.org>
50408
50409                 * printf-args.c (printf_fetchargs): Work around broken
50410                 definition of wint_t on mingw.
50411
50412         2005-02-12  Bruno Haible  <bruno@clisp.org>
50413
50414                 * xallocsa.h: Add extern "C" for C++.
50415
50416         2006-05-17  Bruno Haible  <bruno@clisp.org>
50417
50418                 Cygwin portability.
50419                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50420
50421         2006-04-30  Bruno Haible  <bruno@clisp.org>
50422
50423                 * progreloc.c: Include <mach-o/dyld.h> if available.
50424                 (find_executable): Use _NSGetExecutablePath when possible.
50425
50426         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50427
50428                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50429                 function.
50430
50431         2005-12-29  Bruno Haible  <bruno@clisp.org>
50432
50433                 * progreloc.c (set_program_name_and_installdir): Fix
50434                 compilation error.
50435
50436         2005-12-04  Bruno Haible  <bruno@clisp.org>
50437
50438                 Cygwin portability.
50439                 * progreloc.c: Include <windows.h> also on Cygwin.
50440                 (find_executable): Add support for Cygwin.
50441                 (set_program_name_and_installdir): Handle also platforms with
50442                 nonempty EXEEXT.
50443
50444         2006-07-11  Bruno Haible  <bruno@clisp.org>
50445
50446                 * javacomp.c: Fix a comment.
50447                 Reported by Jim Meyering.
50448
50449         2006-04-30  Bruno Haible  <bruno@clisp.org>
50450
50451                 * javacomp.h (compile_java_class): Add source_version,
50452                 target_version arguments.
50453                 * javacomp.c: Rewritten to choose only a compiler that
50454                 respects the specified source_version and target_version.
50455
50456         2006-06-27  Bruno Haible  <bruno@clisp.org>
50457
50458                 Assume correct S_ISDIR macro.
50459                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50460
50461         2006-07-22  Bruno Haible  <bruno@clisp.org>
50462
50463                 * javaversion.h: New file, from GNU gettext.
50464                 * javaversion.c: New file, from GNU gettext.
50465                 * javaversion.java: New file, from GNU gettext.
50466                 * javaversion.class: New file, from GNU gettext.
50467
50468         2006-05-17  Bruno Haible  <bruno@clisp.org>
50469
50470                 Cygwin portability.
50471                 * javaexec.c (execute_java_class): Test for jview program
50472                 also on Cygwin.
50473
50474         2006-04-09  Bruno Haible  <bruno@clisp.org>
50475
50476                 * fatal-signal.c: Don't include string.h.
50477                 (at_fatal_signal): Use a copying loop instead of memcpy.
50478
50479         2005-12-04  Bruno Haible  <bruno@clisp.org>
50480
50481                 * csharpexec.c: Add support for 'clix' launcher (untested).
50482                 (execute_csharp_using_sscli): New function.
50483                 (execute_csharp_program): Call it.
50484
50485         2006-06-21  Bruno Haible  <bruno@clisp.org>
50486
50487                 Avoid warnings from recent versions of mcs.
50488                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50489                 -o, -L, -r any more. Use options documented since mcs-1.0
50490                 instead. Similarly for -g.
50491
50492         2005-07-09  Bruno Haible  <bruno@clisp.org>
50493
50494                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50495                 add a .dll suffix.
50496                 Reported by Mark Junker <mjscod@gmx.de>.
50497
50498         2006-06-17  Bruno Haible  <bruno@clisp.org>
50499
50500                 * config.charset: Update for NetBSD 3.0.
50501
50502         2006-05-17  Bruno Haible  <bruno@clisp.org>
50503
50504                 Cygwin portability.
50505                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50506
50507         2006-05-16  Bruno Haible  <bruno@clisp.org>
50508
50509                 * localcharset.c [CYGWIN]: Include <windows.h>.
50510                 (get_charset_aliases): For Cygwin, return the same CPxxx
50511                 aliases list as under WIN32.
50512                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50513                 the environment variables. Fall back to GetACP().
50514
50515         2006-04-05  Bruno Haible  <bruno@clisp.org>
50516
50517                 * config.charset: Update Juan Manuel Guerrero's address.
50518
50519         2005-02-12  Bruno Haible  <bruno@clisp.org>
50520
50521                 * allocsa.h: Add extern "C" for C++.
50522
50523         2005-02-10  Bruno Haible  <bruno@clisp.org>
50524
50525                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50526                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50527
50528         2006-07-22  Bruno Haible  <bruno@clisp.org>
50529
50530                 * gettext.h: Update to GNU gettext-0.15.
50531
50532 2006-07-22  Bruno Haible  <bruno@clisp.org>
50533
50534         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50535         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50536         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50537
50538 2006-07-21  Eric Blake  <ebb9@byu.net>
50539
50540         * modules/stdlib-safer: New file.
50541         * MODULES.html.sh (File stream based Input/Output): Add
50542         stdlib-safer.
50543
50544 2006-07-21  Eric Blake  <ebb9@byu.net>
50545
50546         * lib/stdlib-safer.h: New file from coreutils, required by
50547         stdlib--.h.
50548
50549 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50552
50553 2006-07-20  Bruno Haible  <bruno@clisp.org>
50554
50555         * gnulib-tool: Recognize new option --assume-autoconf.
50556         (autoconf_minversion): New variable.
50557         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50558
50559 2006-07-20  Bruno Haible  <bruno@clisp.org>
50560
50561         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50562
50563 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50564
50565         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50566         Reindent and repaginate.
50567
50568 2006-07-19  Derek Price  <derek@ximbiot.com>
50569
50570         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50571         Correct grammar.
50572
50573 2006-07-17  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/list: New file.
50576         * modules/array-list: New file.
50577         * modules/carray-list, modules/carray-list-tests: New files.
50578         * modules/linked-list, modules/linked-list-tests: New files.
50579         * modules/avltree-list, modules/avltree-list-tests: New files.
50580         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50581         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50582         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50583         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50584         * modules/oset: New file.
50585         * modules/array-oset: New file.
50586         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50587         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50588         * tests/test-carray_list.c: New file.
50589         * tests/test-linked_list.c: New file.
50590         * tests/test-avltree_list.c: New file.
50591         * tests/test-rbtree_list.c: New file.
50592         * tests/test-linkedhash_list.c: New file.
50593         * tests/test-avltreehash_list.c: New file.
50594         * tests/test-rbtreehash_list.c: New file.
50595         * tests/test-avltree_oset.c: New file.
50596         * tests/test-rbtree_oset.c: New file.
50597         * MODULES.html.sh (Container data structures): New section.
50598
50599 2006-07-17  Bruno Haible  <bruno@clisp.org>
50600
50601         * m4/gl_list.m4: New file.
50602
50603 2006-07-17  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/gl_list.h: New file.
50606         * lib/gl_list.c: New file.
50607         * lib/gl_array_list.h: New file.
50608         * lib/gl_array_list.c: New file.
50609         * lib/gl_carray_list.h: New file.
50610         * lib/gl_carray_list.c: New file.
50611         * lib/gl_linked_list.h: New file.
50612         * lib/gl_linked_list.c: New file.
50613         * lib/gl_anylinked_list1.h: New file.
50614         * lib/gl_anylinked_list2.h: New file.
50615         * lib/gl_avltree_list.h: New file.
50616         * lib/gl_avltree_list.c: New file.
50617         * lib/gl_anyavltree_list1.h: New file.
50618         * lib/gl_anyavltree_list2.h: New file.
50619         * lib/gl_rbtree_list.h: New file.
50620         * lib/gl_rbtree_list.c: New file.
50621         * lib/gl_anyrbtree_list1.h: New file.
50622         * lib/gl_anyrbtree_list2.h: New file.
50623         * lib/gl_anytree_list1.h: New file.
50624         * lib/gl_anytree_list2.h: New file.
50625         * lib/gl_linkedhash_list.h: New file.
50626         * lib/gl_linkedhash_list.c: New file.
50627         * lib/gl_anyhash_list1.h: New file.
50628         * lib/gl_anyhash_list2.h: New file.
50629         * lib/gl_avltreehash_list.h: New file.
50630         * lib/gl_avltreehash_list.c: New file.
50631         * lib/gl_rbtreehash_list.h: New file.
50632         * lib/gl_rbtreehash_list.c: New file.
50633         * lib/gl_anytreehash_list1.h: New file.
50634         * lib/gl_anytreehash_list2.h: New file.
50635
50636         * lib/gl_oset.h: New file.
50637         * lib/gl_oset.c: New file.
50638         * lib/gl_array_oset.h: New file.
50639         * lib/gl_array_oset.c: New file.
50640         * lib/gl_avltree_oset.h: New file.
50641         * lib/gl_avltree_oset.c: New file.
50642         * lib/gl_rbtree_oset.h: New file.
50643         * lib/gl_rbtree_oset.c: New file.
50644         * lib/gl_anytree_oset.h: New file.
50645
50646 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50647
50648         * m4/mkancesdirs.m4: New file.
50649         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50650         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50651         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50652         it.
50653
50654 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50655
50656         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50657         * lib/mkancesdirs.h: New files.
50658         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50659         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50660         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50661         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50662         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50663         callers changed.  Revamp internals significantly, by not
50664         attempting to create directories that are temporarily more
50665         permissive than the final results.  Do not attempt to use
50666         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50667         This removes some race conditions, fixes some bugs, and simplifies
50668         things.  Use new dirchownmod function to do owner and mode changes.
50669         * lib/mkdir-p.h: Likewise.
50670         * lib/modechange.c (octal_to_mode): New function.
50671         (struct mode_change): New member mentioned.
50672         (make_node_op_equals): New arg mentioned.  All callers changed.
50673         (mode_compile): Keep track of which mode bits the user has explicitly
50674         mentioned.
50675         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50676         New arg PMODE_BITS, to keep track of which mode bits the user
50677         mentioned; it treats S_ISUID and S_ISGID speciall.
50678         All callers changed.
50679         * lib/modechange.h: Likewise.
50680
50681 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * MODULES.html.sh: Add mkancestors.
50684         * modules/mkancesdirs: New module.
50685         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50686         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50687         The chdir-safer and afs files are now orphans; I'll remove them
50688         unless someone speaks up.
50689         Add lib/dirchownmod.c, lib/dirchownmod.h.
50690         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50691         Add lchown, mkancesdirs.
50692         (Maintainer): Add self.
50693
50694 2006-07-15  Karl Berry  <karl@gnu.org>
50695
50696         * gnulib-tool: help message wording/arrangement.
50697
50698 2006-07-14  Simon Josefsson  <jas@extundo.com>
50699
50700         * doc/gnulib.texi (Libtool and Windows): New section.
50701
50702 2006-07-12  Simon Josefsson  <jas@extundo.com>
50703
50704         * modules/gendocs (License): Fix license, approved by Karl.
50705
50706 2006-07-12  Eric Blake  <ebb9@byu.net>
50707
50708         * MODULES.html.sh: Add gendocs.
50709
50710 2006-07-11  Eric Blake  <ebb9@byu.net>
50711
50712         * modules/fdl: New module, to install doc/fdl.texi.
50713         * MODULES.html.sh: Add new section for documentation modules.
50714         * gnulib-tool: Avoid space-tab.
50715         (--doc-base): New option, to manage files from doc.
50716
50717 2006-07-11  Eric Blake  <ebb9@byu.net>
50718
50719         * m4/absolute-header.m4: Fix comments to match recent change.
50720
50721 2006-07-11  Eric Blake  <ebb9@byu.net>
50722
50723         * gnulib-tool: List --doc-base before --tests-base.
50724
50725 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50726
50727         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50728
50729 2006-07-11  Bruno Haible  <bruno@clisp.org>
50730
50731         * README: Mention where to put documentation.
50732
50733 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50734
50735         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50736
50737 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50740         to stdint.m4.
50741
50742 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50743
50744         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50745         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50746         "no/such/file/stdint.h" when there is no such file, so that
50747         the resulting C code can be parsed by dodgy compilers.
50748         Problems reported by Bob Proulx.
50749
50750 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50751
50752         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50753         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50754         macros into the GNU _D_EXACT_NAMLEN.
50755         * lib/savedir.c:  Likewise.
50756         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50757
50758 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50759         and Paul Eggert  <eggert@cs.ucla.edu>
50760
50761         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50762         * m4/savedir.m4:
50763         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50764         macros into the GNU _D_EXACT_NAMLEN.
50765
50766 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50767
50768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50769         around the absolute name, to work around a problem with the HP-UX
50770         11.23 native C compiler, reported by Bob Proulx.
50771
50772 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * doc/maintain.texi, make-stds.texi: Sync from
50775         <http://savannah.gnu.org/projects/gnustandards>.
50776
50777 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50778
50779         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50780
50781 2006-07-09  Jim Meyering  <jim@meyering.net>
50782
50783         * m4/glob.m4: Remove a doubled word in a comment.
50784
50785 2006-07-09  Jim Meyering  <jim@meyering.net>
50786
50787         * lib/argp-pv.c: Remove a doubled word in a comment.
50788         * lib/check-version.c (check_version): Likewise.
50789         * lib/javacomp.c (compile_java_class): Likewise.
50790
50791 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50794         for the benefit of people using Autoconf 2.60.  If you want to
50795         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50796         (or m4/onceonly.m4, if pre-2.57) manually.
50797
50798 2006-07-08  Jim Meyering  <jim@meyering.net>
50799
50800         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50801         comment.
50802         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50803         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50804         comment.
50805
50806 2006-07-08  Jim Meyering  <jim@meyering.net>
50807
50808         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50809
50810 2006-07-07  Simon Josefsson  <jas@extundo.com>
50811
50812         * tests/test-crc.c: Change expected crc value, the test vector
50813         were probably computed using the old broken crc.c?
50814
50815 2006-07-06  Simon Josefsson  <jas@extundo.com>
50816
50817         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50818         now the canonical place for the M4 file).
50819
50820         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50821         from the sys_socket dependency now.
50822
50823         * modules/inet_pton (Files): Ditto.
50824
50825         * modules/inet_ntop (Files): Ditto.
50826
50827 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50828
50829         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50830         not gl_PREREQ_GETUSERSHELL.
50831
50832 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50833
50834         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50835         with only one argument, for Autoconf 2.60.
50836         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50837         expand to nothing, so add a shell command to avoid syntax error.
50838         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50839
50840 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50841
50842         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50843
50844 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50845
50846         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50847         no longer needed.  Check for isblank decl.
50848         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50849         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50850         of existence.
50851
50852 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         * lib/getloadavg.c: Use __VMS, not VMS.
50855         * lib/getopt.c: Likewise.
50856         * lib/getpagesize.h: Likewise.
50857         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50858         and probably does not work.
50859
50860 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50861
50862         * lib/.cppi-disable: Add wcwidth.
50863         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50864         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50865         (ISGRAPH): Remove.  All uses changed to isgraph.
50866         (FOLD) [!defined _LIBC]: Remove special case.
50867         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50868         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50869         HAVE_ISBLANK.
50870         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50871         case.
50872
50873 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50874
50875         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50876         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50877         brackets.  Other minor changes to suppress some compiler
50878         warnings.
50879
50880 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50881         and Paul Eggert  <eggert@cs.ucla.edu>
50882
50883         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50884         of invoking obsolescent AC_HEADER_DIRENT macro.
50885         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50886         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50888         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50889         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50890         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50891         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50892         * m4/readdir.m4: Remove; no longer needed.
50893
50894 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50895         and Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50898         Don't worry about this obsolete case any more.
50899         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50900         directories.
50901         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50902         worry about this obsolete case any more.
50903         * lib/fts.c: Likewise.
50904         * lib/getcwd.c: Likewise.
50905         * lib/glob.h: Likewise.
50906         * lib/savedir.c: Likewise.
50907
50908 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50909
50910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50911         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50912         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50913         needed.
50914         All uses removed.
50915         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50916         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50917         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50918         needed.
50919         * m4/getdate.m4 (gl_GETDATE): Likewise.
50920         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50921         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50922         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50923         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50924         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50925         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50926         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50927         needed.
50928
50929 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * lib/memcasecmp.c: Include <limits.h>.
50932         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50933         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50934         Don't assume isdigit succeeds only on '0' through '9'.
50935
50936 2006-07-05  Eric Blake  <ebb9@byu.net>
50937
50938         * modules/getaddrinfo (Depends-on): Add snprintf.
50939
50940 2006-07-05  Eric Blake  <ebb9@byu.net>
50941
50942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50943         to avoid 'header present but could not be compiled' on cygwin.
50944
50945 2006-07-05  Eric Blake  <ebb9@byu.net>
50946
50947         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50948         missing from netdb.h.
50949         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50950
50951 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50952
50953         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50954         no longer needed.
50955         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
50956         * m4/getdate.m4 (gl_GETDATE): Likewise.
50957         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50958         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50959         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50960         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50961         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50962
50963 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50964
50965         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
50966         All uses of is_space replaced by isspace.
50967         * lib/exit.h: Don't talk about STDC_HEADERS.
50968         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
50969         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
50970         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
50971         replaced by isprint etc.
50972         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
50973         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50974         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
50975         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
50976         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
50977         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50978
50979 2006-07-05  Bruno Haible  <bruno@clisp.org>
50980
50981         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
50982         the function exists, before testing against AIX.
50983         Reported by Martin Lambers <marlam@marlam.de>.
50984
50985 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
50988         From Mark D. Baushke.
50989
50990 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50991
50992         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
50993         to the absolute name, not just one, to bypass Sun C 5.8's
50994         "warning: #include of /usr/include/... may be non-portable".
50995
50996 2006-07-04  Eric Blake  <ebb9@byu.net>
50997
50998         * modules/dirname-tests: New test module.
50999         * tests/test-dirname.c: New file, replacing dirname.c
51000         TEST_DIRNAME section that was recently deleted.
51001
51002 2006-07-04  Bruno Haible  <bruno@clisp.org>
51003
51004         Assume ANSI C header files and <ctype.h> functions.
51005         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51006         (mbsnwidth): Use isprint, iscntrl instead.
51007
51008 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51009
51010         Merge from coreutils.
51011         * MODULES.html.sh: Add xstrtold.
51012         * modules/xstrtold: New file.
51013         * modules/cycle-check (Files): Add lib/same-inode.h.
51014         * modules/dirname (Files): Add m4/double-slash-root.m4.
51015         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51016         * modules/mkdir-p (Files): Add lib/same-inode.h.
51017         * modules/same (Files): Add lib/same-inode.h.
51018
51019 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51022         This is to keep the terminology clean; POSIX talks about
51023         "absolute pathnames", not "full pathnames", but the GNU
51024         Coding Standards say to use "path" for something else;
51025         so use "absolute" to keep both sides happy.
51026         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51027         Set gl_absolute_header, not gl_full_header_path.
51028         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51029         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51030         All uses changed.
51031
51032         Merge from coreutils.
51033
51034         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51035
51036         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51037         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51038         want to require the building of c-strtod.o.
51039         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51040         needs -lm directly.
51041         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51042
51043         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51044
51045         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51046         --as-needed option if available.  Problem reported by Albert Chin in
51047         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51048         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51049         cc merely issues a bunch of annoying warnings for --as-needed
51050         (this problem was reported by Bob Proulx).  Also, try linking with
51051         -lm to detect a bug in binutils 2.16 (this problem was reported
51052         by Ralf Wildenhues).
51053
51054         2006-06-18  Jim Meyering  <jim@meyering.net>
51055
51056         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51057         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51058         macro.
51059         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51060         also check for glibc-2.4's abort-inducing bug.
51061
51062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51063         Low-probability clean-up should be to use rmdir to get rid of
51064         the just-created directory, not unlink.
51065
51066         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51067         configure fail, and request a bug report to inform us about it.
51068         Add a comment that, barring reports to the contrary, in 2007 we'll
51069         assume ftruncate is universally available.
51070
51071         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51072
51073         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51074
51075         2006-03-12  Jim Meyering  <jim@meyering.net>
51076
51077         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51078         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51079         * m4/same.m4 (gl_SAME): Likewise.
51080         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51081
51082         2006-03-11  Eric Blake  <ebb9@byu.net>
51083
51084         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51085         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51086         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51087         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51088
51089 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51092         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51093         reported by Mark D. Baushke, one in
51094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51095
51096         Merge from coreutils.
51097
51098         * lib/.cppi-disable: Add stdint_.h.
51099         * lib/.cvsignore: Add stdint.h.
51100
51101         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51104         both double and long double versions.
51105         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51106         * lib/xstrtold.c: New file.
51107         * lib/xstrtod.h (xstrtold): New decl.
51108
51109         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51110
51111         * lib/filemode.c (setst): Remove.
51112         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51113         (arguably) clearer, and the generated code is a bit smaller on my
51114         Debian GNU/Linux stable x86 host.
51115
51116         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51117
51118         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51119         Assume that filemode.h includes sys/types.h and sys/stat.h.
51120         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51121         (ftypelet): Reorder to put common cases first, for efficiency.
51122         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51123         to do 'M'.
51124         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51125         of 10, for compatibility with FreeBSD.  All callers changed.
51126         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51127         types that can't be deduced solely from st_mode.  First arg is now a
51128         const pointer.
51129         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51130         (strmode): Renamed from mode_string.
51131         (filemodestring): New decl.
51132         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51133         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51134         needed.
51135         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51136
51137         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51138
51139         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51140         fsusage.h now does that.  Include fsusage.h first, to test interface.
51141         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51142         at most one method (the old code could have generated decls that
51143         didn't conform to C89, not that this was ever exercised).
51144         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51145
51146         2006-03-19  Jim Meyering  <jim@meyering.net>
51147
51148         Work even in a chroot where d_ino values for entries in "/"
51149         don't match the stat.st_ino values for the same names.
51150         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51151         number, iterate through all entries again, using lstat instead.
51152         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51153         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51154
51155         * lib/getcwd.c (__getcwd): Clarify a comment.
51156         Use memcpy in place of a call to strcpy.
51157
51158         2006-03-12  Jim Meyering  <jim@meyering.net>
51159
51160         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51161         matches that of the current directory (which we're about to chdir ".."
51162         out of), then save the dev-ino of the parent, instead.
51163
51164         * lib/same-inode.h (SAME_INODE): New file/macro.
51165         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51166         Include "same-inode.h", instead.
51167         * lib/same.c: Likewise.
51168         * lib/cycle-check.h: Include "same-inode.h".
51169         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51170         * lib/cycle-check.c (SAME_INODE): Remove definition.
51171         * lib/root-dev-ino.h: Include "same-inode.h".
51172
51173         2006-03-11  Eric Blake  <ebb9@byu.net>
51174
51175         * lib/same.c (same_name): s/base_name/last_component/
51176         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51177         * lib/filenamecat.c (file_name_concat): Likewise.
51178
51179         2006-03-11  Eric Blake  <ebb9@byu.net>,
51180                     Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51183         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51184         drive prefix.
51185         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51186         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51187         (last_component): New method.
51188         * lib/dirname.c (dir_len): Determine when drive letters need a
51189         subsequent slash.  Preserve // when it is special.
51190         (dir_name): Don't append dot when drive letter is absolute.
51191         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51192         * lib/basename.c (base_name): New semantics - malloc the result.
51193         Preserve // when it is special.  Preserve relative files that look
51194         like drive letters.
51195         (base_len): Preserve // when it is special.
51196         (last_component): New method, similar to old base_name semantics.
51197         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51198         base_name.  Strip redundant slashes from ///.
51199
51200 2006-07-03  Jim Meyering  <jim@meyering.net>
51201
51202         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51203         macro is used before the first cycle_check call.
51204
51205 2006-07-03  Eric Blake  <ebb9@byu.net>
51206
51207         * modules/dirname (Depends-on): Add xstrndup.
51208
51209 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51210
51211         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51212         test cases, so that config.log is a bit easier to follow.
51213
51214 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51215
51216         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51217         both are 64 bits, since this seems to be the tradition, and this
51218         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51219         we ever run into a host that prefers long long to long in this
51220         case, we'll need another configure-time test.  Problem reported by
51221         Jim Meyering.
51222
51223 2006-07-02  Eric Blake  <ebb9@byu.net>
51224
51225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51226
51227 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         * modules/inttypes (Depends-on): No longer depends on stdint.
51230         * modules/stdint (Description): Say more about assumptions.
51231         Say that the fast types might differ.  Say macros are used.
51232         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51233         (Makefile.am): Revise list of substituted symbols to match
51234         new stdint.m4.
51235         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51236         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51237         * tests/test-stdint.c (verify_same_types)
51238         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51239         the code conforms to C99/C89.
51240         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51241         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51242
51243 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51244
51245         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51246         but fix a bug, by requiring at least 64 bits.
51247         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51248         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51249         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51250         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51251
51252         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51253         changes.  Make 2.59 a prerequisite.  Check and substitute for
51254         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51255         inttypes.h.  Do not use special include files; just use the
51256         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51257         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51258         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51259         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51260         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51261         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51262         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51263         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51264         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51265         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51266         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51267         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51268         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51269         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51270         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51271         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51272         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51273         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51274         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51275         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51276         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51277         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51278         not check for things that C99 does not require, e.g., int8_t.  If
51279         a test isn't needed unless <stdint.h> isn't working, and is
51280         unlikely to be needed for any other reason, then don't do it
51281         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51282         size_t, since we assume C89 freestanding at least.  Do not check
51283         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51284         the right thing even if the types are not defined.  Instead use:
51285         (gl_STDINT_TYPE_PROPERTIES): New macro.
51286         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51287         testing whether <sys/types.h> clashes, as Autoconf does this for
51288         us now.  All uses removed.
51289         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51290         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51291         (gl_CHECK_TYPE_SAME):
51292         Remove; no longer needed.
51293         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51294         exists, since we'll return 0 anyway in that case.
51295         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51296
51297 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51298
51299         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51300         possible collision with system files.
51301         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51302         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51303         WCHAR_MIN and WCHAR_MAX in this case.
51304         (<stddef.h>): Do not include; no longer needed.
51305         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51306         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51307         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51308         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51309         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51310         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51311         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51312         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51313         !defined(__c99))]: Include in this case too, since it's harmless
51314         now.
51315         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51316         dangerous to do so.
51317         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51318         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51319         (_STDINT_MIN, _STDINT_MAX): New macros.
51320         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51321         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51322         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51323         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51324         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51325         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51326         macros, not typedefs; this simplifies things quite a bit.
51327         Use long int for all types narrower than int64_t.
51328         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51329         Define in terms of long long int or int64_t or long int,
51330         not int64_t or int32_t.  This saves some compile-time testing.
51331         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51332         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51333         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51334         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51335         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51336         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51337         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51338         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51339         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51340         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51341         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51342         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51343         undef any previous version and define our own version, for
51344         simplicity and consistency with the new macros for types.
51345         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51346         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51347         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51348         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51349         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51350         @WINT_T_SUFFIX@ to keep things simple here.
51351         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51352         Simplify by assuming typical 8/16/32/64 host, since we're
51353         already doing that elsewhere anyway.
51354         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51355         and assume long long int is 64 bits if available.  This
51356         speeds up 'configure'.
51357
51358 2006-07-01  Eric Blake  <ebb9@byu.net>
51359
51360         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51361         Reported by Andreas Buening.
51362
51363 2006-07-01  Eric Blake  <ebb9@byu.net>
51364
51365         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51366
51367 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51368
51369         * lib/getaddrinfo.c: fixed typo
51370
51371 2006-06-29  Jim Meyering  <jim@meyering.net>
51372
51373         * modules/strftime (Maintainer): Add my name, since with the
51374         FPRINTFTIME changes strftime.c has forked from glibc.
51375
51376 2006-06-29  Eric Blake  <ebb9@byu.net>
51377
51378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51379
51380 2006-06-29  Eric Blake  <ebb9@byu.net>
51381
51382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51383
51384 2006-06-29  Eric Blake  <ebb9@byu.net>
51385
51386         * lib/stat_.h: New file.
51387
51388 2006-06-29  Eric Blake  <ebb9@byu.net>
51389
51390         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51391         unused static function.
51392
51393 2006-06-29  Eric Blake  <ebb9@byu.net>
51394
51395         * doc/functions.texi (Function Portability): Document missing lstat
51396         on mingw.
51397
51398 2006-06-29  Eric Blake  <ebb9@byu.net>
51399
51400         * MODULES.html.sh: Add sys_stat.
51401         * modules/sys_stat: New module.
51402         * modules/mkstemp (Depends-on): Add sys_stat.
51403
51404 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51405
51406         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51407
51408 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51409
51410         * m4/c-bs-a.m4: Removed.
51411
51412 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51413
51414         * lib/strftime.c: Assume strftime() exists.
51415
51416 2006-06-29  Derek Price  <derek@ximbiot.com>
51417
51418         * modules/c-bs-a: Removed - \a is C89.
51419         * MODULES.html.sh: Remove c-bs-a.
51420
51421 2006-06-29  Bruno Haible  <bruno@clisp.org>
51422
51423         * modules/wcwidth (License): Change to LGPL.
51424
51425 2006-06-28  Simon Josefsson  <jas@extundo.com>
51426
51427         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51428         on _WIN32.
51429
51430         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51431         getnameinfo.
51432
51433 2006-06-28  Simon Josefsson  <jas@extundo.com>
51434
51435         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51436
51437 2006-06-28  Simon Josefsson  <jas@extundo.com>
51438
51439         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51440         functions there.  It will succeed on Windows XP, but on Windows
51441         2000 and (presumably) earlier, it will fail, and use the internal
51442         re-implementation.
51443         (use_win32_p): New function.
51444         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51445         Support AI_NUMERICSERV to disable getservbyname.
51446         (getnameinfo): New function, only supports
51447         NI_NUMERICHOST|NI_NUMERICSERV for now.
51448
51449         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51450         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51451         getnameinfo.
51452
51453 2006-06-28  Eric Blake  <ebb9@byu.net>
51454
51455         * modules/wcwidth: New file.
51456         * modules/mbchar (Depends-on): Add wcwidth.
51457         * modules/mbswidth (Depends-on): Add wcwidth.
51458         * MODULES.html.sh: Add wcwidth.
51459
51460 2006-06-28  Eric Blake  <ebb9@byu.net>
51461
51462         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51464
51465 2006-06-28  Eric Blake  <ebb9@byu.net>
51466
51467         * lib/xvasprintf.h: Fix comments.
51468
51469 2006-06-28  Eric Blake  <ebb9@byu.net>
51470
51471         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51472         * lib/mbswidth.c (wcwidth): Move from here...
51473         * lib/wcwidth.h: ...to this new file.
51474
51475 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51476
51477         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51478
51479         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51480         it's obsolete.
51481         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51482
51483 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51484
51485         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51486         Autoconf 2.60 says this stuff was obsolete.
51487
51488 2006-06-28  Bruno Haible  <bruno@clisp.org>
51489
51490         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51491
51492 2006-06-28  Bruno Haible  <bruno@clisp.org>
51493
51494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51495         gt_TYPE_WCHAR_T.
51496
51497 2006-06-28  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51500         declaration for wcwidth.
51501         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51502
51503 2006-06-28  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51506         (mkdir): Define using _mkdir.
51507
51508 2006-06-28  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/getaddrinfo.h: Fix POSIX URL.
51511         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51512         _WIN32.
51513         (use_win32_p): Make static.
51514         (getaddrinfo): Reject service name if it is empty or does not consist
51515         solely of decimal digits, or if its value is > 65535.
51516         (getnameinfo): Remove useless casts.
51517
51518 2006-06-27  Simon Josefsson  <jas@extundo.com>
51519
51520         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51521         Eggert and Martin Lambers.
51522
51523 2006-06-27  Simon Josefsson  <jas@extundo.com>
51524
51525         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51526         Eggert and Martin Lambers.
51527
51528 2006-06-27  Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51531         result to 0, not to empty.
51532         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51533
51534 2006-06-27  Bruno Haible  <bruno@clisp.org>
51535
51536         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51537
51538 2006-06-26  Simon Josefsson  <jas@extundo.com>
51539
51540         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51541         present.
51542
51543 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51546         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51548
51549 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51550
51551         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51552
51553 2006-06-26  Bruno Haible  <bruno@clisp.org>
51554
51555         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51556
51557 2006-06-26  Bruno Haible  <bruno@clisp.org>
51558
51559         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51560
51561 2006-06-26  Bruno Haible  <bruno@clisp.org>
51562
51563         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51564         SGI C compiler in pre-C99 mode.
51565         Suggested by Mark D. Baushke and Larry Jones.
51566
51567 2006-06-26  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51570         WCHAR_MAX.
51571         Reported by Mark D. Baushke and Larry Jones.
51572
51573 2006-06-26  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51576         in pre-C99 mode.
51577         Suggested by Mark D. Baushke and Larry Jones.
51578
51579 2006-06-23  Simon Josefsson  <jas@extundo.com>
51580             Bruno Haible  <bruno@clisp.org>
51581
51582         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51583         Emit mostlyclean-local rule.
51584         (func_emit_tests_Makefile_am): Likewise.
51585         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51586
51587 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51588
51589         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51590
51591 2006-06-23  Bruno Haible  <bruno@clisp.org>
51592
51593         * tests/test-stdint.c: Update to match ISO C 99 Technical
51594         Corrigendum 1.
51595
51596 2006-06-23  Bruno Haible  <bruno@clisp.org>
51597
51598         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51599
51600 2006-06-23  Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/stdint_.h: Treat IRIX like OpenBSD.
51603
51604 2006-06-23  Bruno Haible  <bruno@clisp.org>
51605
51606         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51607         ISO C 99 Technical Corrigendum 1.
51608
51609 2006-06-22  Simon Josefsson  <jas@extundo.com>
51610
51611         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51612         MinGW.
51613
51614 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51615
51616         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51617         needed.  Some compiler complained about some of them.  Problem reported
51618         by Larry Jones in
51619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51620
51621 2006-06-21  Simon Josefsson  <jas@extundo.com>
51622
51623         * tests/test-getaddrinfo.c: New file.
51624
51625         * modules/getaddrinfo-tests: New file.
51626
51627         * MODULES.html.sh: Add inet_pton.
51628
51629         * modules/inet_pton: New file.
51630
51631 2006-06-21  Simon Josefsson  <jas@extundo.com>
51632
51633         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51634         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51635         of using the (limited) gnulib implementation on Windows XP.
51636
51637         * m4/inet_pton.m4: New file.
51638
51639 2006-06-21  Simon Josefsson  <jas@extundo.com>
51640
51641         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51642         variable.
51643
51644         * lib/socket_.h: Don't define WINVER.
51645
51646         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51647         slightly modified to work in gnulib.
51648
51649 2006-06-21  Simon Josefsson  <jas@extundo.com>
51650
51651         * doc/gnulib.texi (Windows sockets): Add.
51652
51653 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51654
51655         * lib/read-file.c (fread_file): Start with buffer allocation of
51656         0 bytes rather than 1 byte; this simplifies the code.
51657         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51658         code to free buffer and save/restore errno.
51659         (internal_read_file): Remove unused local.
51660
51661 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51662
51663         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51664         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51665         Problem reported by Denis Excoffier in
51666         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51667
51668 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51669
51670         * modules/sys_socket, modules/socklen: Include sys/types since
51671         FreeBSD 4.x's sys/socket.h needs it.
51672
51673 2006-06-19  Simon Josefsson  <jas@extundo.com>
51674
51675         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51676
51677 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51678
51679         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51680
51681 2006-06-19  Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51684         and FULL_PATH_INTTYPES_H in angle brackets.
51685         Reported by Mark D. Baushke <mdb@gnu.org>.
51686
51687 2006-06-17  Eric Blake  <ebb9@byu.net>
51688
51689         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51690         errno.
51691
51692 2006-06-17  Bruno Haible  <bruno@clisp.org>
51693
51694         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51695         <sys/inttypes.h>.
51696
51697 2006-06-17  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51700         whether errno is declared. Assume <errno.h> declares errno.
51701
51702 2006-06-17  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51705
51706 2006-06-17  Bruno Haible  <bruno@clisp.org>
51707
51708         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51709         problem on Solaris 2.5.1.
51710
51711 2006-06-16  Eric Blake  <ebb9@byu.net>
51712
51713         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51714         * lib/unicodeio.c [!defined errno]: Likewise.
51715         * lib/strtol.c [!defined errno]: Likewise.
51716         * lib/strtod.c [!defined errno]: Likewise.
51717
51718 2006-06-15  Eric Blake  <ebb9@byu.net>
51719
51720         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51721
51722 2006-06-15  Eric Blake  <ebb9@byu.net>
51723
51724         * config/srclist.txt (ssize_t.m4): Lose sync.
51725
51726 2006-06-15  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/stdint (Files): Include m4/full-header-path.m4,
51729         m4/size_max.m4, m4/wchar_t.m4.
51730         (Makefile.am): Many more substitutions.
51731         * modules/stdint-tests: New file.
51732         * tests/test-stdint.c: New file.
51733
51734 2006-06-15  Bruno Haible  <bruno@clisp.org>
51735
51736         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51737         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51738         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51739         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51740         gl_CHECK_TYPE_SAME): New macros.
51741
51742 2006-06-15  Bruno Haible  <bruno@clisp.org>
51743
51744         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51745
51746 2006-06-15  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/stdint_.h: Rewritten to be fully auto-configured.
51749         Fixes bug on HP-UX/IA64.
51750
51751 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51752
51753         * lib/getdate.y (__attribute__): Don't define if already defined.
51754         Problem reported by Larry Jones.
51755         * lib/utimens.c (__attribute__): Likewise.
51756
51757 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51758
51759         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51760         reported by Andreas Schwab.
51761
51762 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51763             Bruno Haible  <bruno@clisp.org>
51764
51765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51766         check for the declaration of strnlen and a run test that exposes the
51767         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51768         rpl_strndup.
51769
51770 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51771             Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51774
51775 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51776
51777         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51778         compile test, for Tru64 4.0D.
51779
51780 2006-05-28  Karl Berry  <karl@gnu.org>
51781
51782         * config/srclist.txt (printf-args.c): lose sync.
51783
51784 2006-05-26  Martin Lambers  <marlam@marlam.de>
51785
51786         * lib/getpass.c: Updates the test for the native W32 API, and adds
51787         missing includes, thus fixing compilation warnings.
51788
51789 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51790
51791         * lib/exclude.c (exclude_fnmatch): New function.
51792         (excluded_file_name): Call exclude_fnmatch.
51793         * lib/exclude.h (excluded_file_name): New prototype
51794
51795 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51796
51797         * lib/tempname.c (small_open, large_open): New macros.
51798         (__open, __open64) [!_LIBC]: Remove.
51799         (__gen_tempname): Use small_open and large_open instead of __open
51800         and __open64.  This fixes a portability bug on HP-UX 11.11i
51801         reported by Simon Wing-Tang in
51802         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51803
51804 2006-05-24  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51807         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51808         Reported by Thorsten Maerz <torte@netztorte.de> via
51809         Aaron Stone <aaron@serendipity.cx>.
51810
51811 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51814         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51815         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51816         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51817         not really conditional on the cache.
51818         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51819
51820 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51821
51822         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51823         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51824         (my_usleep): Don't mishandle maximum value.
51825
51826 2006-05-19  Jim Meyering  <jim@meyering.net>
51827
51828         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51829
51830 2006-05-17  Bruno Haible  <bruno@clisp.org>
51831
51832         Cygwin portability.
51833         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51834
51835 2006-05-17  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/stdint_.h: Fix recognition of Cygwin.
51838
51839 2006-05-15  Bruno Haible  <bruno@clisp.org>
51840
51841         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51842         on libtool patch by Ralf Wildenhues.
51843
51844 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51847         test for C99 conformance; (bool) 0.5 is an integer constant
51848         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51849         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51850
51851 2006-05-11  Simon Josefsson  <jas@extundo.com>
51852
51853         * m4/xvasprintf.m4: Fix obvious typo.
51854
51855 2006-05-11  Jim Meyering  <jim@meyering.net>
51856
51857         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51858         James Lemley.
51859
51860 2006-05-10  Simon Josefsson  <jas@extundo.com>
51861
51862         * lib/md4.c: Typo fix, update copyright years.
51863         (K1, K2): Don't use L because it turn computations into 64-bit on
51864         64-bit platforms.
51865
51866 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51869         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51870         unwanted sign propagation, e.g., on hosts with 64-bit int.
51871         There still are some problems with reeelly weird theoretical hosts
51872         (e.g., 33-bit int) but it's not worth worrying about now.
51873         * lib/sha1.c (rol): Likewise.
51874         (K1, K2, K3, K4): Remove unnecessary L suffix.
51875
51876 2006-05-10  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/des.c: Cast to avoid warnings.
51879
51880 2006-05-09  Bruno Haible  <bruno@clisp.org>
51881
51882         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51883         (Depends-on): Depend also on xsize, stdarg.
51884         (configure.ac): Add gl_XVASPRINTF.
51885
51886 2006-05-09  Bruno Haible  <bruno@clisp.org>
51887
51888         * m4/xvasprintf.m4: New file.
51889
51890 2006-05-09  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51893         (EOVERFLOW): Define fallback value.
51894         (xstrcat): New function.
51895         (xvasprintf): Recognize the special case of a string concatenation.
51896
51897 2006-05-08  Eric Blake  <ebb9@byu.net>
51898
51899         * gnulib-tool (func_version): Base copyright year on CVS date.
51900         (func_emit_copyright_notice): New function.
51901         (func_emit_lib_Makefile_am): Use it.
51902         (func_emit_tests_Makefile_am): Likewise.
51903         (func_import): Likewise.
51904
51905 2006-05-08  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/stdarg: New file.
51908         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51909
51910 2006-05-08  Bruno Haible  <bruno@clisp.org>
51911
51912         * m4/stdarg.m4: New file, from GNU gettext.
51913
51914 2006-05-08  Bruno Haible  <bruno@clisp.org>
51915
51916         * config/srclist.txt (build-aux/config.rpath): different from latest
51917         release.
51918
51919 2006-05-08  Bruno Haible  <bruno@clisp.org>
51920
51921         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51922
51923 2006-05-05  Jim Meyering  <jim@meyering.net>
51924
51925         * m4/warning.m4: New file, derived from bison's file by the same name.
51926
51927 2006-05-03  Bruno Haible  <bruno@clisp.org>
51928
51929         * lib/stdint_.h: Shorter URL.
51930         * lib/inttypes.h: Likewise.
51931
51932 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51935
51936 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * lib/verify.h: Document the internals better.  Most of this change
51939         was written by Bruno Haible.
51940
51941 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51942
51943         * doc/verify.texi: New file, partly based on a proposal by
51944         Bruno Haible.
51945
51946 2006-05-02  Bruno Haible  <bruno@clisp.org>
51947
51948         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51949         test from here...
51950         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51951
51952 2006-04-29  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51955         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51956
51957 2006-04-29  Bruno Haible  <bruno@clisp.org>
51958
51959         * gnulib-tool: Make --update option actually work.
51960
51961 2006-04-29  Bruno Haible  <bruno@clisp.org>
51962
51963         * doc/gcd.texi: New file.
51964         * doc/gnulib.texi: Include it.
51965
51966 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
51967
51968         * lib/getdate.y (get_date): When adding relative date, start with the
51969         initial time, not with the result of the first mktime call.
51970
51971 2006-04-25  Bruno Haible  <bruno@clisp.org>
51972
51973         * gnulib-tool (func_import): Output the include directives in three
51974         blocks, sorted separately.
51975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51976
51977 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
51980         to define main with arguments, for C++.  Reported by Eric Blake.
51981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51982         Prefer 'int main ()' to 'int main (void)', for C++.
51983         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51984         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
51985         for 'main', for C99 and C++.
51986
51987 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
51990         Don't assume that exit status -1 is valid.
51991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51992         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51993         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
51994         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
51995         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
51996         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
51997         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
51998         functions can be used without declaring them, or that you can
51999         exit with status -1.
52000         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52001
52002 2006-04-24  Karl Berry  <karl@gnu.org>
52003
52004         * config/srclist.txt (longdouble.m4): sync lost.
52005
52006 2006-04-24  Eric Blake  <ebb9@byu.net>
52007
52008         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52009
52010 2006-04-24  Bruno Haible  <bruno@clisp.org>
52011
52012         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52013         poll() implementation in AIX.
52014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52015
52016 2006-04-24  Bruno Haible  <bruno@clisp.org>
52017
52018         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52019         assigned exactly once.
52020
52021 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52022             Bruno Haible  <bruno@clisp.org>
52023
52024         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52025         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52026         for AM_CPPFLAGS.
52027
52028 2006-04-23  Bruno Haible  <bruno@clisp.org>
52029
52030         * modules/copy-file: Depend on unistd.
52031         * modules/execute: Likewise.
52032         * modules/fatal-signal: Likewise.
52033         * modules/findprog: Likewise.
52034         * modules/mkdtemp : Likewise.
52035         * modules/pipe: Likewise.
52036         * modules/wait-process: Likewise.
52037
52038 2006-04-23  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52041         condition was already detected.
52042         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52043
52044 2006-04-23  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/copy-file.c: Include <unistd.h> unconditionally.
52047         * lib/execute.c: Likewise.
52048         * lib/fatal-signal.c: Likewise.
52049         * lib/findprog.c: Likewise.
52050         * lib/mkdtemp.c: Likewise.
52051         * lib/pipe.h: Likewise.
52052         * lib/pipe.c: Likewise.
52053         * lib/wait-process.h: Likewise.
52054
52055 2006-04-23  Bruno Haible  <bruno@clisp.org>
52056
52057         * gnulib-tool (func_usage): Fix --import description. Document
52058         --update.
52059         (func_import): Create temporary file in a temporary directory, if
52060         --dry-run is specified. Silence errors from 'grep' when there are no
52061         m4 files in $m4dir.
52062         (func_create_testdir): Silence errors from 'grep' when there are no
52063         m4 files in $m4dir.
52064         Reported by Karl Berry <karl@freefriends.org>.
52065
52066 2006-04-20  Bruno Haible  <bruno@clisp.org>
52067
52068         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52069         one argument, so that the code will be portable to Autoconf 2.60.
52070         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52071         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52072         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52073
52074 2006-04-19  Derek Price  <derek@ximbiot.com>
52075             Eric Blake  <ebb9@byu.net>
52076
52077         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52078         rather than "/full/path.h".  Update comment to match.  Shorten &
52079         generalize m4_translit call via AS_TR_CPP.
52080
52081 2006-04-19  Derek Price  <derek@ximbiot.com>
52082             Eric Blake  <ebb9@byu.net>
52083
52084         * lib/inttypes.h: Correct grammar in comment.
52085
52086 2006-04-18  Derek Price  <derek@ximbiot.com>
52087             Paul Eggert  <eggert@cs.ucla.edu>
52088
52089         * modules/inttypes: New file.
52090         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52091
52092 2006-04-18  Derek Price  <derek@ximbiot.com>
52093             Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52096         New files.
52097
52098 2006-04-18  Derek Price  <derek@ximbiot.com>
52099             Paul Eggert  <eggert@cs.ucla.edu>
52100
52101         * lib/inttypes.h: New file.
52102         * lib/strtoimax.c: Assume <inttypes.h>.
52103
52104 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52107         isn't mounted.  Problem reported by Kir Kolyshkin.
52108
52109 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52112         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52113         Derek R. Price.
52114         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52115         implementation.
52116
52117 2006-04-12  Eric Blake  <ebb9@byu.net>
52118
52119         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52120         is now done automatically by the corresponding Autoconf macro.
52121
52122 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52123
52124         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52125         time_r.h.
52126
52127 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52128
52129         Merge regex changes from libc, removing some of our
52130         POSIX-conformance changes that were rejected and redoing them in a
52131         less-intrusive way.
52132
52133         * lib/regcomp.c (re_compile_internal, init_dfa):
52134         Length arg is now size_t, not Idx.  All uses changed.
52135         (peek_token): Forward decl now says internal_function.
52136         (__re_error_msgid, __re_error_msgid_idx):
52137         Now static rather than extern with attribute_hidden.
52138         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52139         For some reason libc prefers K&R style defns for external functions.
52140         (regerror) [!defined _LIBC]: Likewise.
52141         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52142         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52143         (build_range_exp, build_collating_symbol):
52144         Use K&R-style defn.
52145         (re_compile_fastmap): Use '\0' to memset, not 0.
52146         (utf8_sb_map): Make the calculations more obvious.
52147         (init_dfa, parse_bracket_exp, build_charclass_op):
52148         Call calloc and cast result, as glibc does.
52149         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52150         (build_range_exp, build_collating_symbol):
52151         Now internal functions.
52152
52153         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52154
52155         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52156         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52157         Don't depend on VMS; depend on __VMS instead, for POSIX
52158         namespace cleanness.
52159         (regoff_t): Define to ssize_t, not long int.
52160
52161         Remove the REG_ macros named below.  Instead, make the old names
52162         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52163         __USE_GNU_REGEX.
52164         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52165         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52166         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52167         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52168         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52169         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52170         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52171         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52172         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52173         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52174         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52175         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52176         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52177         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52178         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52179         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52180         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52181         (REG_NREGS):
52182         Remove.  All uses replaced by the old RE_* names.
52183         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52184         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52185         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52186         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52187         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52188         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52189         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52190         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52191         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52192         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52193         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52194         Don't bother having these macros be independent of each others'
52195         values, since they no longer exist in the POSIX name space.
52196
52197         Rename the following member names back to their old names,
52198         unless !__USE_GNU_REGEX.  All uses changed back.
52199         (buffer): Renamed from re_buffer.
52200         (allocated): Renamed from re_allocated.
52201         (used): Renamed from re_used.
52202         (syntax): Renamed from re_syntax.
52203         (fastmap): Renamed from re_fastmap.
52204         (translate): Renamed from re_translate.
52205         (can_be_null): Renamed from re_can_be_null.
52206         (regs_allocated): Renamed from re_regs_allocated.
52207         (fastmap_accurate): Renamed from re_fastmap_accurate.
52208         (no_sub): Renamed from re_no_sub.
52209         (not_bol): Renamed from re_not_bol.
52210         (not_eol): Renamed from re_not_eol.
52211         (newline_anchor): Renamed from re_newline_anchor.
52212         (num_regs): Renamed from rm_num_regs.
52213         (start): Renamed from rm_start.
52214         (end): Renamed from rm_end.
52215
52216         (free_state): Move up a bit.
52217
52218         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52219         #define to be empty.
52220         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52221         when that is what is intended.
52222         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52223         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52224         (MAX): New macro.
52225         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52226         All uses changed back to re_malloc, etc.  It's now the caller's
52227         responsibility to check for overflow; all callers changed.
52228         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52229         (re_x2nrealloc): Remove.
52230         (free_state): Remove decl.
52231
52232         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52233         (re_set_registers, re_exec):
52234         Use K&R-style defn.
52235
52236         2006-01-31  Roland McGrath  <roland@redhat.com>
52237
52238         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52239         Reported by Mike Frysinger <vapier@gentoo.org>.
52240
52241         2006-01-15  Andreas Jaeger  <aj@suse.de>
52242
52243         [BZ #1950]
52244         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52245         build_wcs_upper_buffer change.
52246         (build_wcs_upper_buffer): Change return type.
52247
52248         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52249
52250         * lib/regex_internal.h: Include <stdint.h> if available.
52251
52252         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52253
52254         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52255
52256         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52257
52258         * lib/regcomp.c: Adjust for changed secondary hash function.
52259
52260         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52261
52262         * lib/regex.h: Pretty printing.
52263         Clean up namespace a bit.
52264
52265         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52266
52267         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52268         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52269
52270         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52271                     Ulrich Drepper  <drepper@redhat.com>
52272
52273         [BZ #1302]
52274         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52275         changed.
52276         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52277
52278         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52279
52280         [BZ #281]
52281         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52282         * lib/regcomp.c: Remove unnecessary uses of
52283         unsigned RE_TRANSLATE_TYPE.
52284         * lib/regex_internal.h: Likewise.
52285         * lib/regex_internal.c: Likewise.
52286         * lib/regexec.c: Likewise.
52287         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52288
52289         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52290
52291         * lib/regexec.c (find_recover_state): Remove unnecessary
52292         initialization.
52293         (transit_state_bkref): Make DFA a const pointer.
52294         (get_subexp): Likewise.
52295         (check_arrival): Likewise.
52296         (update_cur_sifted_state): Likewise.
52297         (re_search_internal): Likewise.
52298         (prune_impossible_nodes): Likewise.
52299         (acquire_init_state_context): Likewise.
52300         (proceed_next_node): Likewise.
52301         (set_regs): Likewise.
52302         (free_fail_stack_return): Likewise.
52303         (check_arrival_expand_ecl): Mark DFA parameter as const.
52304         (check_arrival_expand_ecl_sub): Likewise.
52305         (check_subexp_limits): Likewise.
52306         (sub_epsilon_src_nodes):  Likewise.
52307         (add_epsilon_src_nodes):  Likewise.
52308         (merge_state_array): Likewise.
52309         (update_regs): Likewise.
52310         (build_trtable): Likewise.
52311         (sift_states_backward): Mark MCTX parameter as const.
52312         (build_sifted_states): Likewise.
52313         (update_cur_sifted_state): Likewise.
52314         (sift_states_mkref): Likewise.
52315         (check_arrival_expand_ecl): Mark eclosure as const.
52316         (check_dst_limits_calc_pos_1): Likewise.
52317         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52318         pointer.
52319
52320         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52321
52322         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52323         (transit_state_sb): Likewise.
52324         (transit_state_mb): Likewise.
52325         (sift_states_iter_mb): Likewise.
52326         (check_arrival_add_next_nodes): Likewise.
52327         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52328         [_LIBC] (re_search_2_stub): Use mempcpy.
52329
52330         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52331         mbrtowc for very simple UTF-8 case.
52332
52333         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52334         a pointer-to-const.
52335         (re_acquire_state_context): Likewise.
52336         * lib/regex_internal.h: Adjust prototypes.
52337
52338         * lib/regex.c: Prevent using C++ compilers.
52339
52340         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52341         (re_acquire_state_context): Likewise.
52342
52343 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52344
52345         * modules/regex (Depends-on): Add ssize_t.
52346
52347 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52348
52349         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52350         translation table.
52351
52352 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52353
52354         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52355
52356 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52357             Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52360         <sys/types.h> and <inttypes.h>.
52361
52362 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52363
52364         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52365         `__error_t_defined', so argp.h will not typedef the former.
52366
52367 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52370         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52371         glibc names.  Even if glibc is changed to conform to POSIX, the
52372         traditional names will be available anyway, since regex depends on
52373         the extensions module.  Also, fix a longstanding typo in the
52374         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52375         reported by Emanuele Giaquinta.  Also, change sense of cached
52376         variable, so that the message makes sense.
52377
52378 2006-03-24  Simon Josefsson  <jas@extundo.com>
52379
52380         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52381         including some doc fixes.
52382         (base64_encode_alloc): Fix +1 bug on allocation failures.
52383
52384 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52385
52386         * lib/base64.c (base64_encode): Do not read past end of array with
52387         unsanitized input on systems with CHAR_BIT > 8.
52388
52389 2006-03-24  Eric Blake  <ebb9@byu.net>
52390
52391         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52392
52393 2006-03-22  Karl Berry  <karl@gnu.org>
52394
52395         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52396         * config/srclistvars.sh (COREUTILS): new var.
52397
52398 2006-03-17  Jim Meyering  <jim@meyering.net>
52399
52400         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52401         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52402
52403 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52404
52405         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52406         no longer needs it.  Instead, check that regoff_t is as least
52407         as wide as ptrdiff_t.
52408
52409         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52410         so that our regex.h stays compatible with the installed regex.
52411         This is helpful for installers who configure --without-included-regex.
52412         Problem reported by Emanuele Giaquinta.
52413
52414 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52415
52416         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52417         Typedef to long int, not to off_, as POSIX will likely change
52418         in that direction.
52419
52420 2006-03-15  Eric Blake  <ebb9@byu.net>
52421
52422         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52423
52424 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52425
52426         * lib/argp-help.c (validate_uparams): Fix typo
52427         * lib/argp-parse.c (argp_default_options): Consistently begin help
52428         messages with a lowercase letter.
52429
52430 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52431
52432         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52433         overrun buffers and shouldn't be used (much as gets shouldn't be
52434         used).
52435         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52436
52437 2006-03-08  Simon Josefsson  <jas@extundo.com>
52438
52439         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52440         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52441
52442 2006-03-08  Simon Josefsson  <jas@extundo.com>
52443
52444         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52445         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52446
52447 2006-03-08  Simon Josefsson  <jas@extundo.com>
52448
52449         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52450         signal that configure disabled the device.
52451
52452 2006-03-08  Simon Josefsson  <jas@extundo.com>
52453
52454         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52455         languages.
52456
52457 2006-03-07  Simon Josefsson  <jas@extundo.com>
52458
52459         * modules/getopt (Depends-on): Add unistd.
52460
52461         * modules/unistd: New file.
52462
52463 2006-03-07  Simon Josefsson  <jas@extundo.com>
52464
52465         * modules/gc-random: New file.
52466
52467 2006-03-07  Simon Josefsson  <jas@extundo.com>
52468
52469         * m4/unistd_h.m4: New file.
52470
52471 2006-03-07  Simon Josefsson  <jas@extundo.com>
52472
52473         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52474         test to be side-effect free by storing the result in the cache
52475         variable gl_cv_lib_readline, and moving the assignment of
52476         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52477         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52478
52479 2006-03-07  Simon Josefsson  <jas@extundo.com>
52480
52481         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52482         error on missing devices (the functions will return an error).
52483
52484         * m4/gc.m4: Move random stuff to gc-random.m4
52485
52486 2006-03-07  Simon Josefsson  <jas@extundo.com>
52487
52488         * lib/unistd_.h: New file.
52489
52490 2006-03-07  Simon Josefsson  <jas@extundo.com>
52491
52492         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52493
52494 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52497         Problem reported by Juan Manuel Guerrero.
52498
52499 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52500
52501         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52502         the unistd module.
52503         * lib/getlogin_r.c: Likewise.
52504         * lib/getlogin_r.h: Likewise.
52505         * lib/glob.c: Likewise.
52506         * lib/pagealign_alloc.c: Likewise.
52507         * lib/unistd_.h: Remove; no longer needed.
52508
52509 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52510
52511         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52512         Add unistd.
52513         * modules/c-stack (Depends-on): Add unistd.
52514         * modules/getlogin_r: Likewise.
52515         * modules/glob: Likewise.
52516         * modules/pagealign_alloc: Likewise.
52517         * modules/unistd (Files): Remove lib/unistd_.h.
52518         (EXTRA_DIST): Remove.
52519         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52520         need unistd_.h.
52521         (MOSTLYCLEANFILES): Remove unistd.h-t.
52522
52523 2006-03-03  Simon Josefsson  <jas@extundo.com>
52524
52525         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52526
52527 2006-03-03  Simon Josefsson  <jas@extundo.com>
52528
52529         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52530         libidn and bison.
52531
52532 2006-03-03  Simon Josefsson  <jas@extundo.com>
52533
52534         * build-aux/maint.mk: Add indent target.
52535
52536 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52537
52538         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52539         our replacement poll.h in any case, to avoid a differing
52540         declaration from a system header.  Seen on AIX.
52541
52542 2006-03-01  Simon Josefsson  <jas@extundo.com>
52543
52544         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52545         <kasal@ucw.cz>.
52546
52547 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * modules/gettime (Depends-on): Add extensions module.
52550         * modules/nanosleep (Depends-on): Likewise.
52551         * modules/settime (Depends-on): Likewise.
52552
52553 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52556         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52557         pedantically.
52558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52559         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52560
52561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52562         not "==".  Reported by Ralf Wildenhues.
52563
52564 2006-03-01  Karl Berry  <karl@gnu.org>
52565
52566         * doc/Copyright/request-*: new files, synced from gnuorg.
52567
52568 2006-03-01  Karl Berry  <karl@gnu.org>
52569
52570         * config/srclist.txt (Copyright/*): new entries.
52571
52572 2006-02-28  Simon Josefsson  <jas@extundo.com>
52573
52574         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52575
52576 2006-02-27  Simon Josefsson  <jas@extundo.com>
52577
52578         * lib/base64.h: Indent #define's.  From Jim Meyering
52579         <jim@meyering.net>.
52580
52581 2006-02-27  Jim Meyering  <jim@meyering.net>
52582
52583         Revert the change of 2006-02-24, so these files can continue
52584         to be sync'd from gettext.
52585         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52586         of `config.h'.
52587
52588 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52589
52590         * modules/intprops: New file.
52591         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52592         Add intprops.
52593         * modules/getloadavg (Files): Remove lib/intprops.h.
52594         (Depends-on): Add intprops.
52595         * modules/human: Likewise.
52596         * modules/inttostr: Likewise.
52597         * modules/openat: Likewise.
52598         * modules/sig2str: Likewise.
52599         * modules/userspec: Likewise.
52600         * modules/utimecmp: Likewise.
52601         * modules/xnanosleep: Likewise.
52602         * modules/xstrtol: Likewise.
52603
52604 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52605
52606         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52607         * modules/lock-tests (TESTS): Use $(EXEEXT).
52608         * modules/tls-tests: Likewise.
52609         * modules/argp-tests: Likewise.
52610         (check_PROGRAMS): New var, replacing...
52611         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52612
52613 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52614
52615         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52616         `config.h'.
52617
52618 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52621
52622 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52623
52624         Sync from coreutils.
52625         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52626         gl_CHDIR_SAFER.
52627
52628 2006-02-22  Jim Meyering  <jim@meyering.net>
52629
52630         Sync from coreutils.
52631         * m4/chdir-safer.m4: New file.
52632
52633 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52636         AT_FDCWD exceeds INT_MAX.
52637         * lib/openat.h (AT_FDCWD): Likewise.
52638
52639 2006-02-17  Eric Blake  <address@hidden>
52640
52641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52642
52643 2006-02-16  Simon Josefsson  <jas@extundo.com>
52644
52645         * modules/getaddrinfo (Depends-on): Add sys_socket.
52646
52647 2006-02-15  Simon Josefsson  <jas@extundo.com>
52648
52649         * build-aux/maint.mk: Add dsyntax-check rule.
52650
52651 2006-02-15  Eric Blake  <ebb9@byu.net>
52652
52653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52654         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52655         'present but cannot compile' warnings on cygwin.
52656         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52657         use ws2tcpip.h if sys/socket.h works.
52658         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52659         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52660
52661 2006-02-14  Simon Josefsson  <jas@extundo.com>
52662
52663         * modules/maintainer-makefile (Files): Rename.
52664
52665         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52666         and (the local) Makefile.cfg to maint-cfg.mk.
52667
52668         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52669         to the latter.
52670
52671         * modules/maintainer-makefile: New module.
52672
52673         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52674         severaly stripped to make it possible to build it up from scratch
52675         with reliable tests.
52676
52677         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52678         fixes to permit overriding the default actions when configure and
52679         makefile are not available.
52680
52681 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         Sync from coreutils.
52684         * modules/lstat (Depends-on): Don't depend on xalloc.
52685         (License): Change from GPL to LGPL, since this is now simply a
52686         replacement for a libc function.
52687
52688 2006-02-14  Jim Meyering  <jim@meyering.net>
52689
52690         Sync from coreutils.
52691
52692         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52693         failure on deficient systems, and simplify gnulib lgpl dependencies.
52694         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52695         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52696
52697         * lib/xalloc-die.c: Remove unused definition of N_.
52698
52699 2006-02-14  Jim Meyering  <jim@meyering.net>
52700
52701         Sync from coreutils.
52702         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52703         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52704         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52705         double-quote uses of that variable, to accommodate the rare case in
52706         which getmntent is available in none of the libraries checked.  This
52707         happens at least on FreeBSD 5.0.
52708
52709 2006-02-13  Simon Josefsson  <jas@extundo.com>
52710
52711         * gnulib-tool (Usage): Fix --import, from
52712         karl@freefriends.org (Karl Berry).
52713
52714 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52715
52716         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52717
52718 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52719
52720         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52721         "autoupdate" on 2005-12-12.
52722
52723 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52724
52725         * modules/closeout (Depends-on): Remove atexit.
52726
52727 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52730         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52731
52732 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52733
52734         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52735         __EXTENSIONS__ if this causes compilation to fail.  Problem
52736         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52737         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52738
52739 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52742         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52744         All uses changed.
52745
52746 2006-01-26  Simon Josefsson  <jas@extundo.com>
52747
52748         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52749         prototype is visible on mingw32.
52750
52751         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52752         for mingw32.
52753
52754         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52755         mingw32).
52756
52757 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52760         attempt to open for write; this always fails, at least on POSIX
52761         hosts.  This reinstates the 2006-01-09 change, which was
52762         inadvertently removed.
52763
52764 2006-01-26  Bruno Haible  <bruno@clisp.org>
52765
52766         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52767         Reported by Paul Eggert.
52768
52769 2006-01-26  Bruno Haible  <bruno@clisp.org>
52770             Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * lib/stdbool_.h (_Bool)
52773         [(! (defined __cplusplus || defined __BEOS__)
52774           && !defined __GNUC__
52775           && !(defined __HP_cc || defined __xlc__
52776                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52777                || defined __sgi))]:
52778         #define to signed char in these cases too; this simplifies
52779         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52780         etc., separately) and makes it more conservative.
52781
52782 2006-01-25  Simon Josefsson  <jas@extundo.com>
52783
52784         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52785         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52786         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52787
52788 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52789
52790         * lib/argp-namefrob.h: Bugfix. Remove stray #
52791
52792 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52795         so that we test the test.
52796         Check for yet another HP-UX cc bug involving *bool |= bool.
52797
52798 2006-01-25  Karl Berry  <karl@gnu.org>
52799
52800         * config/srclist.txt (vasnprintf.c): sync lost.
52801
52802 2006-01-25  Jim Meyering  <jim@meyering.net>
52803
52804         Sync from the stable (b5) branch of coreutils:
52805
52806         * lib/fts.c (fts_children): Don't let close() clobber errno from
52807         failed fchdir().
52808
52809         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52810         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52811         a dangling symlink.  That can also happen at least for ELOOP.
52812         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52813         FYI, this bug predates the inclusion of fts.c in coreutils.
52814
52815         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52816         in their own block, so pre-c99 compilers don't object.
52817
52818         Avoid the double-free (first in fts_read, second in fts_close) that
52819         would occur when an `active' directory is made inaccessible (e.g.,
52820         via chmod a-x) during a traversal.
52821         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52822         before returning.  Reproduce this failure by
52823         mkdir -p a/b; cd a; chmod a-x . b
52824         Reported by Stavros Passas.
52825
52826 2006-01-25  Jim Meyering  <jim@meyering.net>
52827
52828         * lib/fileblocks.c: Remove more useless parentheses.
52829         * lib/readutmp.h: Likewise.
52830
52831 2006-01-25  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52834         warnings.
52835         Reported by Paul Eggert.
52836
52837 2006-01-25  Bruno Haible  <bruno@clisp.org>
52838
52839         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52840         rid of a trap command. For Solaris sh.
52841         Reported by Mark D. Baushke <mdb@gnu.org>.
52842
52843 2006-01-24  Simon Josefsson  <jas@extundo.com>
52844
52845         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52846         Bruno.
52847
52848 2006-01-24  Karl Berry  <karl@gnu.org>
52849
52850         * config/srclist.txt (argp-namefrob.h): sync lost.
52851
52852 2006-01-24  Jim Meyering  <jim@meyering.net>
52853
52854         * modules/openat (Files): Add lib/intprops.h.
52855         From Mark D. Baushke.
52856
52857 2006-01-24  Jim Meyering  <jim@meyering.net>
52858
52859         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52860         Reported by Mark D. Baushke.
52861
52862 2006-01-24  Jim Meyering  <jim@meyering.net>
52863
52864         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52865
52866 2006-01-24  Bruno Haible  <bruno@clisp.org>
52867
52868         * modules/strnlen (Maintainer): Change from glibc to all.
52869
52870 2006-01-24  Bruno Haible  <bruno@clisp.org>
52871
52872         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52873         Patch by Paul Eggert.
52874
52875 2006-01-24  Bruno Haible  <bruno@clisp.org>
52876
52877         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52878         already has it.
52879         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52880         2005-11-26.
52881
52882         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52883         'signed char' to avoid problems with the built-in _Bool type.
52884         Reported by Paul Eggert on 2005-11-26.
52885
52886 2006-01-24  Bruno Haible  <bruno@clisp.org>
52887
52888         * gnulib-tool (func_import): Avoid constructing complicated sed
52889         expressions inside backquote.
52890         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52891
52892 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52893
52894         These changes imported from libc.
52895         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52896         test and two separate function calls.
52897         * lib/strndup.c (__strndup): Add libc_hidden_def.
52898
52899 2006-01-23  Simon Josefsson  <jas@extundo.com>
52900
52901         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52902         Remove the test_*_SOURCES variable: automake infers it by default.
52903         * modules/tls-tests: Likewise.
52904
52905 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52906
52907         Work around porting bugs reported by Dieter in
52908         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52909         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52910         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52911         Include "getopt.h" first, to check interface.
52912         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52913         !HAVE_DECL_GETENV.
52914         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52915         (__strndup): Revert to K&R-style function dfns, the glibc style.
52916         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52917         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52918         Include strnlen.h first, to get prototype properly.
52919         (strnlen): Renamed from __strnlen.
52920         Remove weak alias.
52921
52922 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52923
52924         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52925
52926 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52927
52928         * config/srclist.txt: Adjust to reflect glibc reorganization.
52929         This affects only comments.
52930
52931 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52932
52933          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52934          Reported by Bruce Korb <bkorb@gnu.org>.
52935
52936 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52937
52938         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52939         to pacify gcc -Wswitch-default.
52940
52941 2006-01-22  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52944         temporary buffer for sprintf, take into account the precision also
52945         for 'd', 'i', 'u', 'o', 'x', 'X'.
52946
52947 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52948
52949         * modules/argp-tests: New module
52950         * tests/test-argp.c: New file
52951         * tests/test-argp-2.sh: New file
52952
52953 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52954
52955         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52956         (__argp_base_name): Removed
52957         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
52958         typo.
52959         (__argp_base_name): Provide macro definition or extern declaration
52960         depending on the configuration
52961
52962 2006-01-20  Simon Josefsson  <jas@extundo.com>
52963
52964         * modules/inet_ntop (Depends-on): Depend on sys_socket.
52965
52966 2006-01-20  Simon Josefsson  <jas@extundo.com>
52967
52968         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
52969
52970 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52971
52972         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
52973         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
52974         Suggested by Bruno Haible.
52975
52976 2006-01-20  Karl Berry  <karl@gnu.org>
52977
52978         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
52979         until changes propagate, I guess.
52980
52981 2006-01-19  Simon Josefsson  <jas@extundo.com>
52982
52983         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
52984
52985 2006-01-19  Simon Josefsson  <jas@extundo.com>
52986
52987         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
52988
52989 2006-01-19  Simon Josefsson  <jas@extundo.com>
52990
52991         * gnulib-tool: Set check_PROGRAMS.
52992
52993         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52994         modules/des-tests, modules/gc-arcfour-tests,
52995         modules/gc-arctwo-tests, modules/gc-des-tests,
52996         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52997         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52998         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52999         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53000         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53001         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53002         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53003         test_*_SOURCES.
53004
53005 2006-01-18  Simon Josefsson  <jas@extundo.com>
53006
53007         * modules/socklen (Depends-on): Depend on sys_socket.
53008
53009 2006-01-18  Simon Josefsson  <jas@extundo.com>
53010
53011         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53012         modules/des-tests, modules/gc-arcfour-tests,
53013         modules/gc-arctwo-tests, modules/gc-des-tests,
53014         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53015         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53016         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53017         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53018         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53019         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53020         $(EXEEXT) to automake TESTS variable, for mingw32.
53021
53022 2006-01-17  Simon Josefsson  <jas@extundo.com>
53023
53024         * modules/socklen (Include): Need sys/socket.h.
53025
53026 2006-01-17  Bruno Haible  <bruno@clisp.org>
53027
53028         * modules/ssize_t (Include): Add <sys/types.h>.
53029
53030 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53033         it's not portable and it doesn't work with cross-compiles.
53034         Problem reported by Bruno Haible.  Fix missing-$ typo in
53035         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53036         -zignore from being used with Sun's C compiler.
53037
53038 2006-01-12  Simon Josefsson  <jas@extundo.com>
53039
53040         * lib/base64.c: Fix warning, reported by Bruno Haible
53041         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53042
53043 2006-01-12  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/ldd: New file.
53046         * build-aux/ldd.sh.in: New file.
53047         * MODULES.html.sh (Support for building libraries and executables): Add
53048         ldd.
53049
53050 2006-01-12  Bruno Haible  <bruno@clisp.org>
53051
53052         * m4/ldd.m4: New file.
53053
53054 2006-01-12  Bruno Haible  <bruno@clisp.org>
53055
53056         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53057         endless loop while replacing $auxdir with build-aux.
53058
53059 2006-01-11  Simon Josefsson  <jas@extundo.com>
53060
53061         * lib/stdint_.h (SIZE_MAX): Add missing (.
53062
53063 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53064
53065         Sync from coreutils.
53066         * lib/md5.c: Fix commentary typos.
53067         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53068         * lib/md5.h (__attribute__): Remove; unused.
53069         * lib/sha1.c: Fix commentary to match md5 better.
53070         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53071         so that we don't need to worry about alignment.  All uses changed.
53072         This merges the 2005-10-28 md5 change into sha1.
53073
53074 2006-01-11  Jim Meyering  <jim@meyering.net>
53075
53076         Sync from coreutils.
53077         * lib/md5.c (OP): Fix spacing.
53078
53079 2006-01-11  Bruno Haible  <bruno@clisp.org>
53080
53081         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53082         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53083         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53084
53085 2006-01-11  Bruno Haible  <bruno@clisp.org>
53086
53087         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53088         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53089         the "early" section as well.
53090
53091 2006-01-11  Bruno Haible  <bruno@clisp.org>
53092
53093         Avoid "ar: no archive members specified" error on MacOS X.
53094         * gnulib-tool (func_modules_add_dummy): New function.
53095         (func_import, func_create_testdir): Invoke it.
53096
53097 2006-01-11  Bruno Haible  <bruno@clisp.org>
53098
53099         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53100         with $auxdir in AC_CONFIG_FILES statements.
53101
53102 2006-01-11  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53105         Initialize also noinst_HEADERS to empty.
53106
53107 2006-01-11  Bruno Haible  <bruno@clisp.org>
53108
53109         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53110         variables.
53111         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53112         autoreconf.
53113
53114 2006-01-11  Bruno Haible  <bruno@clisp.org>
53115
53116         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53117         overridable by the user.
53118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53119
53120 2006-01-10  Simon Josefsson  <jas@extundo.com>
53121
53122         * modules/sys_socket: New file.
53123
53124 2006-01-10  Simon Josefsson  <jas@extundo.com>
53125
53126         * m4/sys_socket_h.m4: New file.
53127
53128 2006-01-10  Simon Josefsson  <jas@extundo.com>
53129
53130         * lib/socket_.h: New file.
53131
53132 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         * modules/readutmp (Maintainer): Add myself.
53135
53136 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53137
53138         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53139         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53140         People who are still concerned with buggy memcmp implementations
53141         can invoke gl_FUNC_MEMCMP themselves.
53142
53143 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         * lib/regex_internal.h (BITSET_WORD_BITS):
53146         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53147         preprocessor mishandles large unsigned values as if they were signed.
53148         Problem reported by Claudio Fontana in
53149         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53150
53151 2006-01-10  Jim Meyering  <jim@meyering.net>
53152
53153         Avoid the double-free (first in fts_read, second in fts_close) that
53154         would occur when an `active' directory is made inaccessible (e.g.,
53155         via chmod a-x) during a traversal.
53156         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53157         before returning.  Reproduce this failure by
53158         mkdir -p a/b; cd a; chmod a-x . b
53159         Reported by Stavros Passas.
53160
53161         Sync from coreutils.
53162         * lib/sha1.c: Tweak grammar in a comment.
53163
53164 2006-01-10  Jim Meyering  <jim@meyering.net>
53165
53166         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53167         Patch by Joerg Sonnenberger.
53168
53169 2006-01-10  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/readutmp: Depend on module free.
53172         * modules/strtok_r: Depend on module restrict.
53173
53174 2006-01-10  Bruno Haible  <bruno@clisp.org>
53175
53176         * modules/gettext (configure.ac): Add an invocation of
53177         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53178
53179 2006-01-10  Bruno Haible  <bruno@clisp.org>
53180
53181         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53182         Reported by Werner Lemberg <wl@gnu.org>.
53183
53184 2006-01-10  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/localcharset.c: Update from GNU gettext.
53187
53188 2006-01-10  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/argp.h (__const): Remove macro. Use const instead.
53191         * lib/argp-fmtstream.h (__const): Likewise.
53192         * lib/glob_.h (__const): Remove macro.
53193         * lib/glob-libc.h: Use const instead of __const.
53194
53195 2006-01-10  Bruno Haible  <bruno@clisp.org>
53196
53197         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53198         variable.
53199         Needed to avoid an automake error regarding the 'gettext' module.
53200
53201 2006-01-09  Simon Josefsson  <jas@extundo.com>
53202
53203         * modules/inet_ntop (Depends-on): Add restrict.
53204
53205 2006-01-09  Simon Josefsson  <jas@extundo.com>
53206
53207         * modules/gc-rijndael-tests (License): Put under LGPL.
53208
53209         * modules/gc-des-tests (License): Likewise.
53210
53211         * modules/gc-arcfour-tests (License): Likewise.
53212
53213         * modules/gc-arctwo-tests (License): Likewise.
53214
53215         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53216
53217         * modules/gc-hmac-sha1-tests (Files): Likewise.
53218
53219         * modules/gc-hmac-md5-tests (License): Likewise.
53220
53221         * modules/gc-sha1-tests (License): Likewise.
53222
53223         * modules/gc-md5-tests (License): Likewise.
53224
53225         * modules/gc-md4-tests (License): Likewise.
53226
53227         * modules/gc-md2-tests (License): Likewise.
53228
53229         * modules/gc-tests (License): Likewise.
53230
53231         * modules/des-tests (License): Likewise.
53232
53233         * modules/md4-tests (License): Likewise.
53234
53235         * modules/md2-tests (License): Likewise.
53236
53237 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         Sync from coreutils:
53240
53241         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53242         * modules/lib-ignore: New file.
53243         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53244         chdir-safer.m4, lchmod.m4.
53245         * modules/openat: Add mkdirat.c, openat-priv.h.
53246
53247 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         Sync from coreutils.
53250         * m4/lib-ignore.m4: New file.
53251         * m4/lchmod.m4: New file.
53252
53253 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         Sync from coreutils.
53256         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53257         for write access: POSIX says that must fail.
53258         * lib/fts.c (diropen): Likewise.
53259         * lib/save-cwd.c (save_cwd): Likewise.
53260         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53261         well, for minor improvements on hosts that lack O_DIRECTORY.
53262         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53263         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53264         Fall back on chown if open failed with EACCES.
53265
53266         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53267         Report an error at compile-time if only a 1-second nominal clock
53268         resolution is found.
53269
53270         * lib/lchmod.h: New file.
53271         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53272         (make_dir_parents): Use lchown rather than chown, and
53273         lchmod rather than chmod.
53274
53275         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53276         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53277         "proc" reported by n0dalus.
53278
53279         * lib/mountlist.c: Include <limits.h>.
53280         (dev_from_mount_options)
53281         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53282         New function.  It no longer assumes "dev=" has the System V meaning
53283         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53284         (read_file_system_list)
53285         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53286         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53287         dev= in that case.
53288
53289         * lib/posixtm.h (PDS_PRE_2000): New macro.
53290         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53291         allow_century.  All usages changed.  Reject dates outside the range
53292         1969-1999 if PDS_PRE_2000 is used.
53293
53294 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         Sync from coreutils.
53297         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53298         (Time of day items): Mention the possibility of leap seconds.
53299         Problem reported by Dr. David Alan Gilbert.
53300
53301 2006-01-09  Jim Meyering  <jim@meyering.net>
53302
53303         Sync from coreutils.
53304
53305         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53306
53307         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53308
53309         * lib/modechange.c (mode_compile): Reject an invalid mode string
53310         that starts with an octal digit.  From Andreas Gruenbacher.
53311
53312         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53313         and dup to open_safer and dup_safer, respectively.
53314         (openat_permissive): Fix typo in comment.
53315
53316         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53317         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53318         (_): Remove; no longer needed.
53319         (openat): Renamed from rpl_openat; no need for rpl_openat
53320         since openat.h renames openat for us.
53321         Replace most of the body with a call to openat_permissive,
53322         to avoid duplicate code.
53323         Port to (probably hypothetical) environments were mode_t is
53324         wider than int.
53325         (openat_permissive): Require mode arg, so that we can check
53326         types better.  Put it just after flags.  Change cwd failure
53327         indicator from pointer-to-bool to pointer-to-errno-value.
53328         All callers changed.
53329         Invoke openat_save_fail and/or openat_restore_fail if
53330         cwd_errno is null, so that openat can call us.
53331         (openat_permissive, fdopendir, fstatat, unlinkat):
53332         Simplify errno handling to avoid some duplicate code,
53333         as it's OK to set errno on success.
53334         * lib/openat.h: Revamp code so that function macros depend on
53335         __OPENAT_PREFIX only, not also on AT_FDCWD.
53336         (openat_ro): Remove.  Caller changed to use openat_permissive.
53337         (openat_permissive): Now a macro, if not a function.
53338         (openat_restore_fail, openat_save_fail): Now always functions,
53339         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53340
53341         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53342         and openat.c.
53343         * lib/mkdirat.c: Include openat-priv.h.
53344         Remove definitions of macros defined therein.
53345         * lib/openat.c: Likewise.
53346
53347         * lib/mkdirat.c (mkdirat): New file and function.
53348         * lib/openat.h (mkdirat): Declare.
53349
53350         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53351
53352         * lib/openat.h (openat_permissive): Declare.
53353         (openat_ro): Define.
53354
53355         * lib/openat.c (EXPECTED_ERRNO): New macro.
53356         (openat_permissive): New function -- used in remove.c rewrite.
53357         (all functions): Set errno just before returning, only if there
53358         was an actual failure.
53359         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53360
53361         Emulate openat-family functions using Linux's procfs, if possible.
53362         Idea and some code based on Ulrich Drepper's glibc changes.
53363
53364         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53365         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53366         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53367         before falling back on save_cwd and restore_cwd.
53368         (fdopendir, fstatat, unlinkat): Likewise.
53369
53370         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53371         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53372
53373         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53374         as second argument to va_arg.  Otherwise, some versions of gcc
53375         warn that `if this code is reached, the program will abort'.
53376
53377 2006-01-09  Jim Meyering  <jim@meyering.net>
53378
53379         Sync from coreutils.
53380         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53381         Require openat-priv.h.
53382
53383 2006-01-09  Bruno Haible  <bruno@clisp.org>
53384
53385         * modules/strnlen (Include): Use strnlen.h.
53386
53387 2006-01-09  Bruno Haible  <bruno@clisp.org>
53388
53389         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53390
53391 2006-01-09  Bruno Haible  <bruno@clisp.org>
53392
53393         * lib/sysexit_.h (EX_OK): New macro.
53394         Suggested by Martin Lambers <marlam@marlam.de>.
53395
53396 2006-01-09  Bruno Haible  <bruno@clisp.org>
53397
53398         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53399         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53400
53401 2006-01-09  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53404         numbers.
53405
53406 2006-01-09  Bruno Haible  <bruno@clisp.org>
53407
53408         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53409         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53410         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53411         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53412
53413 2006-01-09  Bruno Haible  <bruno@clisp.org>
53414
53415         * build-aux/javacomp.sh.in: New file, moved from lib/.
53416         * modules/javacomp-script (Files): Update.
53417         (configure.ac): Add AC_CONFIG_FILES invocation.
53418         (EXTRA_DIST): Remove variable.
53419
53420         * build-aux/javaexec.sh.in: New file, moved from lib/.
53421         * modules/javaexec (Files): Update.
53422         (configure.ac): Add AC_CONFIG_FILES invocation.
53423         (EXTRA_DIST): Remove javaexec.sh.in.
53424
53425         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53426         * modules/csharpcomp-script (Files): Update.
53427         (configure.ac): Add AC_CONFIG_FILES invocation.
53428         (EXTRA_DIST): Remove variable.
53429
53430         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53431         * modules/csharpexec (Files): Update.
53432         (configure.ac): Add AC_CONFIG_FILES invocation.
53433         (EXTRA_DIST): Remove csharpexec.sh.in.
53434
53435 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53436
53437         Sync from coreutils.
53438
53439         Add POSIX ACL support
53440         * lib/acl.h (copy_acl, set_acl): Add declarations.
53441         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53442         systems other than Linux.
53443         (chmod_or_fchmod): New function: use fchmod when possible,
53444         and chmod otherwise.
53445         (file_has_acl): Add a POSIX ACL implementation, with a
53446         Linux-specific subcase.
53447         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53448         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53449         acls are unsupported.
53450         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53451         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53452         are unsupported.
53453
53454 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53455
53456         Sync from coreutils.
53457         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53458
53459 2006-01-07  Bruno Haible  <bruno@clisp.org>
53460
53461         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53462         gl_EARLY.
53463
53464 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53465
53466         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53467         Problem reported for Mingw by Mark Junker.
53468
53469 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * README: Gnulib normally doesn't generate a tarball.
53472
53473 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53474
53475         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53476         long int, not int, for nanosecond counts, so that people who are
53477         used to POSIX struct timespec won't be surprised.  Reported by Jim
53478         Meyering.
53479
53480 2005-12-28  Bruno Haible  <bruno@clisp.org>
53481
53482         * build-aux/config.rpath: Update from GNU gettext.
53483
53484 2005-12-16  Jim Meyering  <jim@meyering.net>
53485
53486         * modules/fprintftime: New module.
53487         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53488
53489 2005-12-16  Jim Meyering  <jim@meyering.net>
53490
53491         * m4/fprintftime.m4: New file.
53492
53493 2005-12-16  Jim Meyering  <jim@meyering.net>
53494
53495         * lib/fprintftime.c, lib/fprintftime.h: New files.
53496
53497 2005-12-15  Simon Josefsson  <jas@extundo.com>
53498
53499         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53500         new m4/socklen.m4.
53501
53502 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53503
53504         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53505         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53506
53507 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53508
53509         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53510         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53511         struct uparams is valid. Fall back to the default values if it is
53512         not.
53513
53514 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53515
53516         * modules/argp (Files): Add argp-pin.c
53517         (Depends-on): dirname
53518         (lib_SOURCES): Add argp-pin.c
53519
53520 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53521
53522         * m4/argp.m4:  Check if program_invocation_name and
53523         program_invocation_short_name are declared and define appropriate
53524         macros if they are not.
53525
53526 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53527
53528         * lib/argp-help.c (__argp_base_name): New function
53529         (__argp_short_program_name): Rewrite using __argp_base_name
53530         * lib/argp-namefrob.h: Define program_invocation_name and
53531         program_invocation_short_name if requested
53532         (__argp_base_name): Add prototype
53533         * lib/argp-parse.c (argp_def): Use gettext wrappers
53534         (argp_default_parser): Use __argp_base_name
53535         * lib/argp-pin.c: New file. Defines program_invocation_name and
53536         program_invocation_short_name on systems that lack them.
53537
53538 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53539
53540         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53541         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53542         porting problem reported by Georg Schwarz in
53543         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53544
53545 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53546
53547         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53548         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53549         porting problem reported by Georg Schwarz in
53550         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53551
53552 2005-12-05  Bruno Haible  <bruno@clisp.org>
53553
53554         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53555         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53556         Reported by Mark Junker <mjscod@gmx.de>.
53557
53558 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53561         Use implementation from Albert Chin, with some
53562         comments/corrections by Stepan Kasal and myself.
53563
53564 2005-12-02  Bruno Haible  <bruno@clisp.org>
53565
53566         * gnulib-tool (func_import): Accept GPLed build tool modules when
53567         --lgpl is given.
53568         * modules/csharpcomp-script: New file.
53569         * modules/csharpcomp: Depend on it.
53570         * modules/javacomp-script: New file.
53571         * modules/javacomp: Depend on it.
53572         Suggested by Simon Josefsson.
53573
53574 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53577         statement, to work around an HP-UX 10.20 compiler bug reported by
53578         Peter O'Gorman.
53579
53580 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53581
53582         * modules/savedir (Depends-on): Add openat.
53583
53584 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53587         (uintmax_t) [defined uintmax_t]: Do not declare.
53588         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53589         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53590         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53591         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53592         sake of portability to weird hosts that C allows (though we don't
53593         know of any practical examples).
53594
53595         * lib/savedir.h (fdsavedir): New decl.
53596         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53597         contains most of the former guts of savedir.
53598         (savedir): Use savedirstream.
53599         Include "openat.h".
53600
53601 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * modules/obstack (Files): Add m4/ulonglong.m4.
53604         Problem reported by Davide Angelocola.
53605
53606 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53609         coreutils no longer futzes with rounding modes.
53610
53611 2005-11-14  Jim Meyering  <jim@meyering.net>
53612
53613         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53614         replacement of mkstemp.
53615
53616 2005-11-10  Simon Josefsson  <jas@extundo.com>
53617
53618         * lib/readline.c: Remove EOL.
53619
53620 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53621
53622         * modules/gethrxtime (Depends-on): Add gettime.
53623
53624 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53627         or gettimeofday; no longer needed.
53628
53629 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53632         time business.
53633         (gethrxtime) [! (HAVE_NANOUPTIME
53634         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53635         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53636         our own approximation.
53637
53638 2005-11-08  Eric Blake  <ebb9@byu.net>
53639
53640         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53641
53642 2005-11-08  Eric Blake  <ebb9@byu.net>
53643
53644         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53645
53646 2005-11-04  Bruno Haible  <bruno@clisp.org>
53647
53648         * gnulib-tool: Implement --update mode.
53649
53650 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53651
53652         Fix porting problem reported by Theodoros V. Kalamatianos.
53653         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53654         Don't assume that futimes failing means we must fail.
53655
53656 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53659         variables to suggest the intended function of the PATH_MAX check.
53660
53661 2005-10-30  Kean Johnston  <jkj@sco.com>
53662
53663         Trivial changes to support SCO systems.
53664         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53665         as PATH_MAX.
53666         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53667         where __ptr is null when no I/O is pending.
53668
53669 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53672         leave errno alone.  Problem reported by Dmitry V. Levin.
53673
53674 2005-10-28  Simon Josefsson  <jas@extundo.com>
53675
53676         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53677         Test more.
53678
53679         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53680
53681         * modules/md2, modules/md2-tests: New files.
53682
53683 2005-10-28  Simon Josefsson  <jas@extundo.com>
53684
53685         * m4/inet_ntop.m4: More tests.
53686
53687         * m4/gc-md2.m4, md2.m4: New file.
53688
53689 2005-10-28  Simon Josefsson  <jas@extundo.com>
53690
53691         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53692         "restrict" keywords, as per POSIX.  Protect the function
53693         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53694         Don't use K&R prototypes.  Check the sprintf return values.
53695         Re-define EAFNOSUPPORT if not present.  Indent.
53696
53697         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53698         suggested by Bruno Haible <bruno@clisp.org>.
53699
53700         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53701
53702         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53703
53704         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53705         libgcrypt).
53706
53707         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53708
53709         * lib/md2.h, lib/md2.c: New files.
53710
53711 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53714         errno alone.  Problem reported by Frederic Jolliton.
53715
53716 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53717
53718         * modules/verify (License): Change from GPL to LGPL.  This is a
53719         tiny module and there are apparently near-equivalents that are
53720         under the BSD license.
53721
53722 2005-10-24  Simon Josefsson  <jas@extundo.com>
53723
53724         * modules/sha1: Relicense to LGPL.
53725
53726 2005-10-24  Simon Josefsson  <jas@extundo.com>
53727
53728         * lib/md4.h: Shrink buffer size, now that we changed the type.
53729
53730 2005-10-23  Simon Josefsson  <jas@extundo.com>
53731
53732         * gnulib-tool (func_import): Fix --tests-base.
53733
53734 2005-10-22  Simon Josefsson  <jas@extundo.com>
53735
53736         * modules/arcfour (Depends-on): Need stdint.
53737
53738 2005-10-22  Simon Josefsson  <jas@extundo.com>
53739
53740         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53741         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53742
53743 2005-10-22  Simon Josefsson  <jas@extundo.com>
53744
53745         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53746         suggested by Bruno Haible <bruno@clisp.org>.
53747
53748 2005-10-22  Simon Josefsson  <jas@extundo.com>
53749
53750         * lib/crc.h: Include stddef.h, for size_t.
53751
53752 2005-10-22  Simon Josefsson  <jas@extundo.com>
53753
53754         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53755         arcfour_context struct (simplify test vector testing in GNU
53756         Shishi).
53757
53758 2005-10-21  Simon Josefsson  <jas@extundo.com>
53759
53760         * modules/des, modules/des-tests: New files.
53761
53762         * modules/gc-des, modules/gc-des-tests: New files.
53763
53764         * tests/test-des.c, tests/test-gc-des.c: New file.
53765
53766 2005-10-21  Simon Josefsson  <jas@extundo.com>
53767
53768         * modules/arctwo, modules/arctwo-tests: New files.
53769
53770         * tests/test-arctwo.c: New file.
53771
53772         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53773
53774         * tests/test-gc-arctwo.c: New file.
53775
53776 2005-10-21  Simon Josefsson  <jas@extundo.com>
53777
53778         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53779         Bruno Haible <bruno@clisp.org>.
53780
53781         * m4/gc-des.m4: New file.
53782
53783 2005-10-21  Simon Josefsson  <jas@extundo.com>
53784
53785         * m4/arctwo.m4: New file.
53786
53787         * m4/gc-arctwo.m4: New file.
53788
53789 2005-10-21  Simon Josefsson  <jas@extundo.com>
53790
53791         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53792         block.
53793
53794 2005-10-21  Simon Josefsson  <jas@extundo.com>
53795
53796         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53797         <bruno@clisp.org>.
53798
53799         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53800
53801         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53802         Bruno Haible <bruno@clisp.org>.
53803
53804         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53805         <bruno@clisp.org>.
53806
53807 2005-10-21  Simon Josefsson  <jas@extundo.com>
53808
53809         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53810
53811 2005-10-21  Simon Josefsson  <jas@extundo.com>
53812
53813         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53814
53815 2005-10-21  Simon Josefsson  <jas@extundo.com>
53816
53817         * lib/des.h, lib/des.c: New files.
53818
53819         * lib/gc-gnulib.c: Support DES.c
53820
53821 2005-10-21  Simon Josefsson  <jas@extundo.com>
53822
53823         * lib/arctwo.h, lib/arctwo.c: New files.
53824
53825         * lib/gc-gnulib.c: Support ARCTWO.
53826
53827 2005-10-21  Simon Josefsson  <jas@extundo.com>
53828
53829         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53830         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53831
53832 2005-10-21  Simon Josefsson  <jas@extundo.com>
53833
53834         * gnulib-tool (func_import, func_create_testdir): Define automake
53835         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53836         Makefile.am snippet),
53837         suggested by Bruno Haible <bruno@clisp.org>.
53838
53839         * modules/gc (Makefile.am): Use it.
53840
53841 2005-10-21  Bruno Haible  <bruno@clisp.org>
53842
53843         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53844         patch.
53845
53846 2005-10-19  Simon Josefsson  <jas@extundo.com>
53847
53848         * tests/test-gc-rijndael.c: New file.
53849
53850         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53851
53852 2005-10-19  Simon Josefsson  <jas@extundo.com>
53853
53854         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53855         interface too.
53856
53857 2005-10-19  Simon Josefsson  <jas@extundo.com>
53858
53859         * tests/test-gc-arcfour.c: New file.
53860
53861         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53862
53863 2005-10-19  Simon Josefsson  <jas@extundo.com>
53864
53865         * modules/gc-md4, modules/gc-md4-tests: New file.
53866
53867         * tests/test-gc-md4.c: New file.
53868
53869 2005-10-19  Simon Josefsson  <jas@extundo.com>
53870
53871         * m4/gc-md4.m4: New file.
53872
53873 2005-10-19  Simon Josefsson  <jas@extundo.com>
53874
53875         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53876         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53877         <kasal@ucw.cz>.
53878
53879 2005-10-19  Simon Josefsson  <jas@extundo.com>
53880
53881         * m4/gc-arcfour.m4: New file.
53882
53883         * m4/gc-rijndael.m4: New file.
53884
53885 2005-10-19  Simon Josefsson  <jas@extundo.com>
53886
53887         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53888
53889 2005-10-19  Simon Josefsson  <jas@extundo.com>
53890
53891         * lib/gc-gnulib.c: Support ARCFOUR.
53892
53893 2005-10-19  Simon Josefsson  <jas@extundo.com>
53894
53895         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53896         support.
53897
53898         * lib/gc.h: Add ECB enum type.
53899
53900         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53901
53902 2005-10-18  Simon Josefsson  <jas@extundo.com>
53903
53904         * tests/test-md5.c: New file.
53905
53906         * modules/md5-tests: New file.
53907
53908 2005-10-18  Simon Josefsson  <jas@extundo.com>
53909
53910         * tests/test-md4.c: New file.
53911
53912         * modules/md4, modules/md4-tests: New files.
53913
53914 2005-10-18  Simon Josefsson  <jas@extundo.com>
53915
53916         * m4/md4.m4: New file.
53917
53918 2005-10-18  Simon Josefsson  <jas@extundo.com>
53919
53920         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53921
53922 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53923
53924         * gnulib-tool (func_create_testdir): Omit the second check whether
53925         BUILT_SOURCES in nonempty.
53926
53927 2005-10-17  Simon Josefsson  <jas@extundo.com>
53928
53929         * tests/test-rijndael.c: New file.
53930
53931 2005-10-17  Simon Josefsson  <jas@extundo.com>
53932
53933         * modules/sha1: Depend on stdint instead of md5.
53934
53935         * modules/md5: Depend on stdint, remove uint32_t.
53936
53937 2005-10-17  Simon Josefsson  <jas@extundo.com>
53938
53939         * modules/gc-sha1-tests: New file.
53940
53941         * tests/test-gc-sha1.c: New file.
53942
53943 2005-10-17  Simon Josefsson  <jas@extundo.com>
53944
53945         * m4/md5.m4: Remove call to uint32_t.m4.
53946
53947 2005-10-17  Simon Josefsson  <jas@extundo.com>
53948
53949         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53950
53951         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53952         md5.h.
53953
53954         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53955
53956         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
53957
53958 2005-10-17  Simon Josefsson  <jas@extundo.com>
53959
53960         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
53961
53962 2005-10-17  Simon Josefsson  <jas@extundo.com>
53963
53964         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
53965
53966 2005-10-17  Simon Josefsson  <jas@extundo.com>
53967
53968         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
53969
53970         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
53971
53972 2005-10-17  Bruno Haible  <bruno@clisp.org>
53973
53974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
53975         that it can also be used in a test.
53976
53977 2005-10-16  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_emit_tests_Makefile_am): Also define
53980         TESTS_ENVIRONMENT, so that individual tests can augment it.
53981
53982         * gnulib-tool (func_create_testdir): Use an intermediate target for
53983         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
53984         macros, like $(ALLOCA_H), which cannot be passed through the command
53985         line.
53986
53987 2005-10-15  Simon Josefsson  <jas@extundo.com>
53988
53989         * modules/rijndael-tests: New file.
53990
53991         * modules/rijndael: New file.
53992
53993 2005-10-15  Simon Josefsson  <jas@extundo.com>
53994
53995         * m4/rijndael.m4: New file.
53996
53997 2005-10-15  Simon Josefsson  <jas@extundo.com>
53998
53999         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54000
54001         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54002
54003 2005-10-14  Simon Josefsson  <jas@extundo.com>
54004
54005         * tests/test-arcfour.c: New file.
54006
54007         * modules/arcfour, modules/arcfour-tests: New files.
54008
54009 2005-10-14  Simon Josefsson  <jas@extundo.com>
54010
54011         * m4/arcfour.m4: New file.
54012
54013 2005-10-14  Simon Josefsson  <jas@extundo.com>
54014
54015         * lib/arcfour.h, lib/arcfour.c: New files.
54016
54017 2005-10-14  Roland McGrath  <roland@redhat.com>
54018
54019         Import from libc.  [BZ #1331]
54020         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54021         macro argument.
54022         Reported by Matej Vela <vela@debian.org>.
54023
54024 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54025
54026         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54027         include <wchar.h>; no longer needed.
54028
54029 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54030
54031         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54032
54033 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54034         and  Ulrich Drepper  <drepper@redhat.com>
54035
54036         Import from libc.
54037         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54038         instead of inline stream orientation test and two separate
54039         function calls.  Pay no attention to USE_IN_LIBIO.
54040
54041 2005-10-13  Simon Josefsson  <jas@extundo.com>
54042
54043         * modules/gc-hmac-md5-tests: New file.
54044
54045         * tests/test-gc-hmac-sha1.c: New file.
54046
54047         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54048
54049         * modules/gc-hmac-md5-tests: New file.
54050
54051         * tests/test-gc-md5.c: New file.
54052
54053         * modules/gc-md5-tests: New file.
54054
54055 2005-10-13  Simon Josefsson  <jas@extundo.com>
54056
54057         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54058         Move memory allocation outside of loop.
54059
54060 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54061
54062         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54063         intermediate directory is in a read-only file system.  Problem
54064         reported by Eric Blake.
54065
54066 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54067
54068         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54069
54070 2005-10-12  Simon Josefsson  <jas@extundo.com>
54071
54072         * tests/test-hmac-sha1.c: New file.
54073
54074         * modules/hmac-sha1-tests: New file.
54075
54076         * modules/hmac-sha1: New file.
54077
54078 2005-10-12  Simon Josefsson  <jas@extundo.com>
54079
54080         * modules/gc-sha1: New file.
54081
54082 2005-10-12  Simon Josefsson  <jas@extundo.com>
54083
54084         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54085
54086         * tests/test-gc-pbkdf2-sha1.c: New file.
54087
54088 2005-10-12  Simon Josefsson  <jas@extundo.com>
54089
54090         * modules/gc-md5, modules/gc-hmac-md5: New files.
54091
54092         * modules/gc (Files): Remove md5, memxor and hmac files.
54093
54094 2005-10-12  Simon Josefsson  <jas@extundo.com>
54095
54096         * m4/gc-pbkdf2-sha1.m4: New file.
54097
54098         * m4/gc-hmac-sha1.m4: New file.
54099
54100         * m4/gc-sha1: New file.
54101
54102         * m4/hmac-sha1.m4: New file.
54103
54104 2005-10-12  Simon Josefsson  <jas@extundo.com>
54105
54106         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54107
54108         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54109
54110 2005-10-12  Simon Josefsson  <jas@extundo.com>
54111
54112         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54113         suggested by Bruno Haible <bruno@clisp.org>.
54114
54115 2005-10-12  Simon Josefsson  <jas@extundo.com>
54116
54117         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54118
54119 2005-10-12  Simon Josefsson  <jas@extundo.com>
54120
54121         * lib/gc-pbkdf2-sha1.c: New file.
54122
54123         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54124
54125 2005-10-12  Simon Josefsson  <jas@extundo.com>
54126
54127         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54128
54129         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54130
54131 2005-10-12  Simon Josefsson  <jas@extundo.com>
54132
54133         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54134         GC_USE_HMAC_MD5, respectively.
54135
54136         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54137         (gc_md5): Fix typo.
54138
54139         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54140
54141         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54142
54143         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54144
54145 2005-10-12  Bruno Haible  <bruno@clisp.org>
54146
54147         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54148         Reported by Stepan Kasal <kasal@ucw.cz>.
54149
54150 2005-10-11  Simon Josefsson  <jas@extundo.com>
54151
54152         * tests/test-crc.c: New file.
54153
54154         * modules/crc, modules/crc-tests: New files.
54155
54156 2005-10-11  Simon Josefsson  <jas@extundo.com>
54157
54158         * m4/crc.m4: New file.
54159
54160 2005-10-11  Simon Josefsson  <jas@extundo.com>
54161
54162         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54163
54164         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54165
54166         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54167
54168 2005-10-11  Simon Josefsson  <jas@extundo.com>
54169
54170         * lib/crc.h, lib/crc.c: New files.
54171
54172         * lib/gc.h (gc_hash_buffer): Add doc.
54173
54174 2005-10-11  Bruno Haible  <bruno@clisp.org>
54175
54176         * modules/c-strcasestr: New file.
54177         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54178
54179 2005-10-11  Bruno Haible  <bruno@clisp.org>
54180
54181         * modules/c-strcase: New file.
54182         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54183
54184 2005-10-11  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/strcasecmp.c: Include limits.h.
54187         (strcasecmp): Avoid integer overflow on exotic platforms.
54188         * lib/strncasecmp.c: Include limits.h.
54189         (strncasecmp): Avoid integer overflow on exotic platforms.
54190         Reported by Paul Eggert.
54191
54192 2005-10-11  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/c-strcasestr.h: New file, from GNU gettext.
54195         * lib/c-strcasestr.c: New file, from GNU gettext.
54196
54197 2005-10-11  Bruno Haible  <bruno@clisp.org>
54198
54199         * lib/c-strcase.h: New file, from GNU gettext.
54200         * lib/c-strcasecmp.c: New file, from GNU gettext.
54201         * lib/c-strncasecmp.c: New file, from GNU gettext.
54202
54203 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54204
54205         * modules/mempcpy (License): GPL -> LGPL.
54206         * modules/strchrnul (License): Likewise.
54207         * modules/sysexits (License): Likewise.
54208
54209 2005-10-08  Simon Josefsson  <jas@extundo.com>
54210
54211         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54212
54213 2005-10-07  Simon Josefsson  <jas@extundo.com>
54214
54215         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54216
54217 2005-10-06  Simon Josefsson  <jas@extundo.com>
54218
54219         * tests/test-hmac-md5.c: New file.
54220
54221         * modules/hmac-md5-tests: New file.
54222
54223         * modules/hmac-md5: New file.
54224
54225 2005-10-06  Simon Josefsson  <jas@extundo.com>
54226
54227         * m4/hmac-md5.m4: New file.
54228
54229         * m4/memxor.m4: Require gl_C_RESTRICT.
54230
54231 2005-10-06  Simon Josefsson  <jas@extundo.com>
54232
54233         * lib/memxor.c (memxor): Avoid casts and warnings.
54234
54235 2005-10-06  Simon Josefsson  <jas@extundo.com>
54236
54237         * lib/hmac-md5.c: New file.
54238
54239         * lib/hmac.h: New file.
54240
54241 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54242
54243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54244         promotes to int, not unsigned int, to catch the AIX 5.3
54245         compiler bug.
54246
54247 2005-10-05  Simon Josefsson  <jas@extundo.com>
54248
54249         * modules/memxor: New file.
54250
54251         * modules/iconv (Files): Move config.rpath to havelib, it is used
54252         there.
54253
54254         * modules/havelib (Files): Add config.rpath.
54255
54256 2005-10-05  Simon Josefsson  <jas@extundo.com>
54257
54258         * m4/memxor.m4: New file.
54259
54260 2005-10-05  Simon Josefsson  <jas@extundo.com>
54261
54262         * lib/memxor.c (memxor): Fix compiler error.
54263
54264         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54265         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54266
54267         * lib/memxor.h, lib/memxor.c: New files.
54268
54269         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54270         we assume all systems have it, suggested by Jim Meyering
54271         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54272         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54273         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54274         same reasons.
54275
54276 2005-10-05  Simon Josefsson  <jas@extundo.com>
54277
54278         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54279
54280 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54281
54282         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54283         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54284         needed, since the source code now assumes these .h files.
54285
54286 2005-10-05  Derek Price  <derek@ximbiot.com>
54287
54288         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54289
54290 2005-10-05  Bruno Haible  <bruno@clisp.org>
54291
54292         * modules/stdint (License): Change to LGPL.
54293
54294 2005-10-04  Simon Josefsson  <jas@extundo.com>
54295
54296         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54297         D. Baushke" <mdb@gnu.org>.
54298
54299 2005-10-04  Bruno Haible  <bruno@clisp.org>
54300
54301         * lib/verify.h (verify_true): Provide alternative definition for C++.
54302
54303 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54306         (SSIZE_MAX): New macro, if not already defined.
54307         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54308         than 2 GiB.
54309
54310 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         Sync from coreutils.
54313         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54314         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54315         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54316         ULLONG_MAX doesn't work with 2.7.2.1.
54317
54318 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54319
54320         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54321         From Ben Pfaff.
54322
54323         * modules/exclude (Depends-on): Depend on verify.
54324         * modules/strtoimax (Depends-on): Likewise.
54325         * modules/utimecmp (Depends-on): Likewise.
54326
54327 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54328
54329         * lib/exclude.c: Include verify.h.
54330         (verify): Remove.  All callers changed to use verify.h's version.
54331         * lib/strtoimax.c: Likewise.
54332         * lib/utimecmp.c: Likewis.e
54333
54334         Sync from coreutils.
54335         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54336         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54337         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54338         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54339         bother returning ENOSYS if settimeofday or stime fails; just let
54340         them return whatever errno they want to return.
54341         * lib/utimens.c: Include unistd.h, for dup2.
54342         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54343         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54344
54345 2005-10-02  Jim Meyering  <jim@meyering.net>
54346
54347         Sync from coreutils.
54348         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54349         from glibc-2.2.5 that fails for read-only files.
54350
54351 2005-10-02  Jim Meyering  <jim@meyering.net>
54352
54353         Sync from coreutils.
54354         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54355         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54356         `#if HAVE_CONFIG_H'.
54357         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54358         Remove AT_FDCWD test.
54359         Do not consume the fd unless successful.
54360         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54361         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54362         block, so that we don't even try to compile it if settimeofday is
54363         available.  This works around a compilation failure on OSF1 V5.1,
54364         due to stime requiring a `long int*' while tv_sec is `int'.
54365
54366 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54367
54368         Sync from coreutils.
54369         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54370         against `yes', rather than just testing for nonempty.
54371
54372 2005-10-01  Simon Josefsson  <jas@extundo.com>
54373
54374         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54375         and Darwin.
54376
54377         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54378         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54379         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54380         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54381         Check if struct addrinfo is declared.
54382
54383 2005-10-01  Simon Josefsson  <jas@extundo.com>
54384
54385         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54386         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54387         AI_* and EAI_* definitions.  Protect function declarations.
54388
54389 2005-10-01  Jim Meyering  <jim@meyering.net>
54390
54391         Sync from coreutils.
54392
54393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54394         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54395         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54397         in the inet and nsl libraries.  Required on Solaris 5.7.
54398
54399 2005-10-01  Jim Meyering  <jim@meyering.net>
54400
54401         Sync from coreutils.
54402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54403         in the inet and nsl libraries.  Required on Solaris 5.7.
54404
54405 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54406
54407         * lib/getdelim.c (getdelim): Remove unused variables.
54408
54409 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54412         so that the code works even with ancient cpp.  Portability problem
54413         with GCC 2.7.2.1 reported by Thomas M.Ott.
54414
54415 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54416
54417         * modules/regex (Depends-on): Add strcase.
54418
54419         * modules/gethostname (Licence): Change from GPL to LGPL, since
54420         gethostname.c is a trivial implementation of a standard library
54421         function.
54422         * modules/poll (License): Change from GPL to LGPL, since it's
54423         derived from LGPL code.
54424
54425 2005-09-27  Jim Meyering  <jim@meyering.net>
54426
54427         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54428         HAVE_CONFIG_H.
54429
54430         * lib/intprops.h (signed_type_or_expr__): Define.
54431         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54432         for unsigned types.
54433
54434 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         * lib/verify.h (verify_expr): Remove, replacing with:
54437         (verify_true): New macro that returns true instead of void.
54438         (verify_type__): Remove.
54439         (verify): Use verify_true rather than verify_type__.
54440
54441 2005-09-26  Bruno Haible  <bruno@clisp.org>
54442
54443         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54444         is necessary.
54445         (lib_SOURCES): Remove mbchar.c.
54446         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54447         (Files): Add m4/mbrtowc.m4.
54448         * modules/mbiter: Likewise.
54449         * modules/mbuiter: Likewise.
54450
54451 2005-09-26  Bruno Haible  <bruno@clisp.org>
54452
54453         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54454         compile mbchar.c if they are not both present.
54455         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54456         * m4/mbiter.m4 (gl_MBITER): Likewise.
54457         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54458         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54459         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54460
54461 2005-09-25  Jim Meyering  <jim@meyering.net>
54462
54463         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54464         also uses socklen_t.
54465
54466 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         * lib/utimens.c (ENOSYS): Define if not already defined.
54469         (futimens): Support having a null PATH if the file descriptor
54470         is nonnegative.
54471
54472         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54473         Remove.
54474         (__attribute): Define to empty unless GCC 3.1 or later.
54475         This works around a core dump on OpenBSD 3.4, which has GCC
54476         2.95.3, which dumps core when given __attribute__(()).  It also
54477         simplifies other tests, since we really don't want to bother with
54478         worrying about which ancient version of GCC supported what.
54479         Original problem reported by Yoann Vandoorselaere, with part of
54480         the fix suggested by Derek Price.
54481
54482 2005-09-24  Jim Meyering  <jim@meyering.net>
54483
54484         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54485         so we can once again use a positive bitfield width of 1 -- now we
54486         don't have to explain why we were using a bitfield width of 2.
54487
54488 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54491         and similarly for the other external symbols.  Problem reported
54492         by James Gallager.
54493
54494         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54495         bug reported by Jim Meyering.
54496
54497         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54499         not needed, since socklen is a prerequisite module.
54500
54501 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54504         Problem reported by Eric Blake.
54505         (getaddrinfo): Initialize se so that it's not garbage.
54506         Redo internal storage allocation so that it doesn't make unportable
54507         assumptions about alignment.
54508         Fix a memory leak.
54509
54510         * lib/utimens.c (futimens): Use futimesat if available.
54511         Prefer it to futimes since it doesn't have the futimes bug.
54512
54513         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54514         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54515         Instead, declare a function that returns a pointer to an array,
54516         and use verify_type__ to declare the size of the array.
54517         Problem and germ of a solution reported by Bruno Haible.
54518         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54519         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54520
54521 2005-09-23  Jim Meyering  <jim@meyering.net>
54522
54523         Sync from coreutils.
54524         Correct build failure (socklen_t not defined) on at least
54525         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54527
54528 2005-09-23  Jim Meyering  <jim@meyering.net>
54529
54530         * modules/getaddrinfo (Depends-on): Add socklen.
54531
54532 2005-09-23  Bruno Haible  <bruno@clisp.org>
54533
54534         * tests/test-verify.c: New file.
54535
54536 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54537
54538         Sync from coreutils.
54539
54540         * modules/argmatch (Depends-on): Add verify.
54541         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54542         unistd-safer.
54543         * modules/save-cwd (Depends-on): Likewise.
54544
54545         * modules/openat (Files): Add lib/openat-die.c.
54546         (Depends-on): Remove error, exitfail.
54547         Add dirname.
54548
54549         * modules/verify: New file.
54550         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54551         with "verify" module.
54552
54553 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         Sync from coreutils.
54556
54557         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54558         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54559         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54560         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54561         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54562         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54563         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54564         Don't bother checking for string.h, stdlib.h, unistd.h.
54565         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54566         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54567         module's job.
54568         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54569         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54570
54571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54572         (gl_GETDATE): Use it.
54573
54574         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54575
54576 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         Sync from coreutils.
54579
54580         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54581         stat-time.h.
54582         * lib/argmatch.h: Include verify.h
54583         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54584         (ARGMATCH_ASSERT): Remove; unused.
54585         * lib/canonicalize.c: Assume STDC_HEADERS.
54586         * lib/exclude.c: Include "strcase.h".
54587         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54588         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54589         and stdio-safer.h.
54590         (getusershell): Call fopen, not fopen_safer.
54591         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54592         Do not include unistd-safer.h.
54593         (save_cwd): Don't call fd_safer; no longer needed
54594         now that we include fcntl--.h.
54595
54596         * lib/getdate.y (relative_time): New type.
54597         (RELATIVE_TIME_0): New constant.
54598         (parser_control): Use relative_time instead of doing it ourselves.
54599         (%union): Add new relative_time rel member.
54600         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54601         Now typeless.
54602         (relunit, relunit_snumber): Now of type rel.
54603         (zone, rel, relunit, get_date): Adjust to above changes.
54604
54605         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54606         Do not include unistd-safer.h.
54607         (getloadavg): Don't call fd_safer; no longer needed
54608         now that we include fcntl--.h.
54609
54610         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54611         (make_dir_parents): Treat ENOSYS like EEXIST.
54612
54613         Improve quality of diagnostics on restore_cwd failure.
54614         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54615         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54616         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54617         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54618         each time through the loop.  Do not diagnose restore_cwd failure;
54619         that is the caller's job (and perhaps the caller does not care).
54620
54621         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54622         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54623         If the file already exists but is not a directory, don't bother
54624         to try to make its parents.
54625         Close potential file descriptor leak if we can't chdir("/") (!).
54626         Don't always return true if chdir($PWD) fails; return true only
54627         if the requested action was done successfully (except for the
54628         chdir($PWD)).
54629         Don't log final directory unless we actually made it.
54630         Refactor to avoid duplicate code to fix up permissions.
54631         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54632
54633         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54634         to make it a bit faster and (I hope) clearer.
54635         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54636         Fix bug in formats like %2N.
54637
54638         * lib/verify.h: New file.
54639
54640 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54641
54642         Sync from coreutils.
54643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54644
54645 2005-09-22  Jim Meyering  <jim@meyering.net>
54646
54647         Sync from coreutils.
54648
54649         * m4/lstat.m4 (gl_FUNC_LSTAT):
54650         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54651         Remove obsolete comment.
54652         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54653         * m4/xstrtod.m4: Likewise.
54654
54655         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54656
54657 2005-09-22  Jim Meyering  <jim@meyering.net>
54658
54659         Sync from coreutils.
54660
54661         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54662
54663         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54664         the .tm_year member, since otherwise gcc-4.0 would now warn about
54665         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54666
54667         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54668         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54669
54670         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54671         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54672         when run in a time zone for which daylight savings time is in effect
54673         for the starting date.
54674
54675         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54676         stop us from restricting permissions of just-created absolute-named
54677         directories.
54678         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54679         to restore initial working directory.
54680         * lib/mkdir-p.c (make_dir_parents): New parameter:
54681         different_working_dir, to tell caller if/when we change the working
54682         directory and are unable to return to the initial one.
54683         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54684         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54685         `return false'.  This fixes a bug introduced on 2004-07-30.
54686
54687         * lib/openat.c (fdopendir): Be sure to close the supplied
54688         file descriptor before returning.  This makes our replacement
54689         implementation a little closer to Solaris's, where fdopendir
54690         ties the file descriptor to the returned DIR* pointer.
54691         * lib/openat.c (unlinkat): New function.
54692         * lib/openat.h (unlinkat): Add prototype.
54693         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54694         (openat_restore_fail): Rename from openat_restore_die.
54695         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54696
54697         Provide an alternative to exiting immediately upon save_cwd or
54698         restore_cwd failure.  Now, an application can arrange e.g.,
54699         to perform a longjump in that case.
54700         * lib/openat.c: Include dirname.h.
54701         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54702         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54703         and openat_restore_die rather than calling error directly.
54704         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54705
54706         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54707         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54708         define.
54709
54710         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54711         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54712                             int utc, int nanoseconds);
54713         Background:
54714         date should not have to allocate a megabyte of virtual memory to
54715         handle a format argument like +%1048575T.  When implemented with
54716         strftime, it must allocate such a buffer, use strftime to fill it
54717         in, print it, then free it.
54718         With fprintftime, it simply prints everything and exits.
54719         With no need for memory allocation, that's one fewer way to fail.
54720         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54721         optional field width, not before, so we accept %9:z, not %:9z.
54722         (my_strftime): Be sure to use L_('x') for literals.
54723
54724         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54725         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54726         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54727         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54728         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54729         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54730         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54731         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54732         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54733         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54734         * lib/xgethostname.c, lib/xreadlink.c:
54735         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54736
54737         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54738         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54739         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54740         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54741         and don't include <sys/file.h>).
54742
54743 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54744
54745         Sync from coreutils.
54746
54747         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54748         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54749         [!LDAV_DONE]: Avoid unused variable warning.
54750
54751 2005-09-21  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/unicodeio.h (unicode_to_mb): New declaration.
54754
54755 2005-09-20  Derek Price  <derek@ximbiot.com>
54756
54757         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54758         getaddrinfo.h.
54759
54760 2005-09-20  Bruno Haible  <bruno@clisp.org>
54761
54762         * gnulib-tool: Remove trailing slashes from the values specified for
54763         --source-base, --m4-base, --tests-base, --aux-dir.
54764         Suggested by Simon Josefsson <jas@extundo.com>.
54765
54766 2005-09-20  Bruno Haible  <bruno@clisp.org>
54767
54768         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54769         func_modules_to_filelist, func_import, func_create_testdir): Make all
54770         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54771         change when gnulib-tool is invoked in a different locale.
54772
54773 2005-09-19  Simon Josefsson  <jas@extundo.com>
54774
54775         * m4/socklen.m4: Fix typo.
54776
54777 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54778
54779         Use a consistent style for including <config.h>.
54780         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54781         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54782         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54783         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54784         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54785         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54786         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54787         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54788         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54789         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54790         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54791         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54792         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54793         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54794         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54795         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54796         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54797         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54798         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54799         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54800         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54801         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54802         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54803         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54804         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54805         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54806         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54807         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54808         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54809         lib/xstrtoumax.c, lib/yesno.c:
54810         Standardize inclusion of config.h.
54811         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54812         lib/inttostr.h:  Removed inclusion of config.h from header files.
54813         * lib/inttostr.c:  Adjusted in-tree users.
54814         * lib/timespec.h: Remove superfluous warning to include config.h.
54815         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54816         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54817         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54818         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54819         config.h with HAVE_CONFIG_H.
54820
54821 2005-09-19  Jim Meyering  <jim@meyering.net>
54822
54823         * modules/pathmax (License): Change to LGPL.
54824
54825 2005-09-19  Derek Price  <derek@ximbiot.com>
54826
54827         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54828
54829 2005-09-19  Bruno Haible  <bruno@clisp.org>
54830
54831         * gnulib-tool (import): Provide default for --tests-base.
54832
54833 2005-09-19  Bruno Haible  <bruno@clisp.org>
54834
54835         * doc/quote.texi: New file, extracted from gnulib.texi.
54836         * doc/ctime.texi: New file, extracted from gnulib.texi.
54837         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54838         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54839         * doc/gnulib.texi: Include them.
54840
54841 2005-09-18  Bruno Haible  <bruno@clisp.org>
54842
54843         Portability fix.
54844         * gnulib-tool (func_readlink): New function.
54845         (func_ln_if_changed): Use it.
54846
54847 2005-09-18  Bruno Haible  <bruno@clisp.org>
54848
54849         * gnulib-tool: Support --with-tests also with --import.
54850         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54851         (func_import): Use variables $testsbase and $inctests. Emit a
54852         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54853         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54854         SUBDIRS += $testsdir.
54855         (func_create_testdir): Update.
54856
54857 2005-09-18  Bruno Haible  <bruno@clisp.org>
54858
54859         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54860         instead of $dry_run.
54861         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54862         (func_ln_if_changed): Don't handle dry-run here.
54863         (func_import): In dry-run mode, detect more precisely which actions
54864         would be performed, and don't use "...ing" verbs.
54865
54866 2005-09-18  Bruno Haible  <bruno@clisp.org>
54867
54868         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54869         (func_import): Use join on two temporary files instead of three nested
54870         loops, in order to determine which files are new or old.
54871
54872 2005-09-18  Bruno Haible  <bruno@clisp.org>
54873
54874         * gnulib-tool (func_import): Comment out code that spits out the
54875         new files with --dry-run.
54876
54877 2005-09-18  Bruno Haible  <bruno@clisp.org>
54878
54879         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54880
54881 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54882
54883         * lib/stat-time.h: New file.
54884         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54885         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54886         in a different way.
54887         (timespec_cmp): New function.
54888         * lib/utimecmp.c: Include stat-time.h.
54889         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54890         members exist, not on the obsolescent ST_MTIM_NSEC.
54891         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54892
54893 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54896
54897 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54898
54899         * MODULES.html.sh (File system functions): Add stat-time.
54900         * modules/stat-time: New file.
54901         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54902         is now done in a different way, by the stat-time module.
54903         * modules/utimecmp (Depends-on): Add stat-time.
54904
54905 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54906
54907         * m4/st_mtim.m4: Remove.  Superseded by...
54908         * m4/stat-time.m4: New file.
54909         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54910         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54911
54912 2005-09-15  Derek Price  <derek@ximbiot.com>
54913
54914         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54915
54916 2005-09-15  Derek Price  <derek@ximbiot.com>
54917
54918         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54919         * lib/regex_internal.c: Ditto, using this...
54920         (__GNUC_PREREQ): ...new macro.
54921         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54922         using...
54923         (__GNUC_PREREQ): ...this new macro.
54924
54925         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54926
54927 2005-09-15  Derek Price  <derek@ximbiot.com>
54928             Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54931         changes, consolidating in...
54932         * lib/regex_internal.h: ...this file.
54933
54934 2005-09-13  Jim Meyering  <jim@meyering.net>
54935
54936         * lib/canon-host.c: Filter through gnu indent and reword comments
54937         slightly.
54938         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54939
54940 2005-09-13  Derek Price  <derek@ximbiot.com>
54941
54942         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54943         failure.
54944         Reported by Jim Meyering  <jim@meyering.net>.
54945
54946 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54947
54948         * lib/base64.c: Typo.
54949         (base64_encode): Put b64str in initialized data section.
54950
54951 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54952
54953         Merge glibc and coreutils changes into gnulib, plus a few
54954         extra fixes.
54955         * lib/md5.c: Use #error rather than a string.
54956         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
54957         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
54958         (__attribute__): Define to empty for non recent-GCC.
54959         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
54960         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
54961         Renamed from their non-__ counterparts, with new macros replacing
54962         them if not _LIBC.  Add __THROW attribute.
54963         (rol): Remove.
54964         (struct md5_ctx): Align buffer if using GCC.
54965         * lib/sha1.h (struct sha1_ctx): Likewise.
54966         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
54967         The old name was backwards.
54968         (NOTSWAP): Remove; not used.
54969         (rol): New macro, moved here from md5.h.
54970         (sha1_process_block): Remove a FIXME that doesn't make sense.
54971
54972 2005-09-12  Derek Price  <derek@ximbiot.com>
54973
54974         Return usable errors from canon-host.
54975         * lib/canon-host.h: New file.
54976         * lib/canon-host.c (canon_host): Wrap...
54977         (canon_host_r): ...this new function, which now relies exclusively on
54978         getaddrinfo.
54979         (ch_strerror): New function.
54980         (last_cherror): New global.
54981         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
54982         interface.
54983         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
54984         void *.
54985         (freeaddrinfo): Free ai->ai_canonname when set.
54986
54987 2005-09-12  Derek Price  <derek@ximbiot.com>
54988
54989         Make canon-host require getaddrinfo.
54990         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
54991         AC_LIBSOURCE canon-host.h.  Call...
54992         (gl_PREREQ_CANON_HOST): ...this new function, which requires
54993         gl_GETADDRINFO.
54994         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
54995
54996 2005-09-12  Derek Price  <derek@ximbiot.com>
54997
54998         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
54999         LGPL.
55000         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55001
55002 2005-09-12  Derek Price  <derek@ximbiot.com>
55003
55004         * lib/gai_strerror.c: Include config.h when available.  Include
55005         getaddrinfo.h before other headers to test interface.
55006         Reported by Larry Jones <lawrence.jones@ugs.com>.
55007
55008 2005-09-12  Derek Price  <derek@ximbiot.com>
55009             Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * modules/glob (Files): Add glob-libc.h.
55012
55013 2005-09-12  Derek Price  <derek@ximbiot.com>
55014             Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55017         glob_.h, glob-libc.h.
55018         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55019
55020 2005-09-12  Derek Price  <derek@ximbiot.com>
55021             Paul Eggert  <eggert@cs.ucla.edu>
55022
55023         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55024         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55025         protecting things that should be done only in gnulib contexts.
55026         * lib/glob_.h: New file, containing only the glob things needed for
55027         gnulib.
55028         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55029         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55030         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55031         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55032         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55033         and to respect the namespace rules better.
55034
55035 2005-09-08  Simon Josefsson  <jas@extundo.com>
55036
55037         * modules/socklen: New file.
55038
55039 2005-09-08  Simon Josefsson  <jas@extundo.com>
55040
55041         * m4/socklen.m4: New file.
55042
55043 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55044
55045         * modules/utimens (Files): Add m4/utimbuf.m4, since
55046         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55047         Reported by Sergey Poznyakoff.
55048
55049 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55052         definitions, since that's the preferred style in glibc.
55053         Fix a minor spacing issue, and update copyright notice to match
55054         glibc's.
55055
55056 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55059
55060 2005-09-06  Simon Josefsson  <jas@extundo.com>
55061
55062         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55063         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55064
55065 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55068         warning.
55069
55070 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         * config/srclist.txt: Add glibc bug 1302.
55073
55074 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55075
55076         Change bitset word type from unsigned int to unsigned long int,
55077         as this has better performance on typical 64-bit hosts.
55078         Port bitset code to hosts with unusual word sizes.
55079         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55080         (build_collating_symbol):
55081         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55082         argument is a bitset.  This is merely a style issue, but it makes
55083         it clearer that an entire array is expected.
55084         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55085         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55086         Port to the case where bitset_word is not the same as unsigned int.
55087         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55088         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55089         Likewise.
55090         * lib/regexec.c (check_dst_limits_calc_pos_1,
55091         check_subexp_matching_top):
55092         (build_trtable, group_nodes_into_DFAstates):
55093         Likewise.
55094         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55095         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55096         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55097         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55098         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55099         * lib/regcomp.c (optimize_subexps, lower_subexp):
55100         Work even if bitset_word has holes in its bitwise representation.
55101         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55102         * lib/regexec.c (check_dst_limits_calc_pos_1,
55103         check_subexp_matching_top):
55104         Likewise.
55105         * lib/regex_internal.c (re_string_reconstruct):
55106         Don't assume UCHAR_MAX == 255.
55107         * lib/regex_internal.h (bitset_set_all): Likewise.
55108         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55109         All uses changed.
55110         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55111         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55112         All uses changed.
55113         (BITSET_WORD_MAX): New macro.
55114         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55115         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55116         (bitset_empty, bitset_copy):
55117         Prefer sizeof (bitset) to multiplying it out ourselves.
55118         (bitset_not_merge): Remove; unused.
55119         (bitset_contain): Return bool, not unsigned int with one bit on.
55120         All callers changed.
55121         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55122         alignment than re_node_set; do this by defining a new internal
55123         type struct dests_alloc and using it to allocate memory.
55124
55125 2005-09-05  Bruno Haible  <bruno@clisp.org>
55126
55127         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55128         links.
55129
55130 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55131
55132         * modules/size_max (Makefile.am): Add size_max.h
55133
55134 2005-09-04  Derek Price  <derek@ximbiot.com>
55135
55136         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55137
55138 2005-09-03  Simon Josefsson  <jas@extundo.com>
55139
55140         * gnulib-tool: Fix typo.
55141
55142 2005-09-03  Simon Josefsson  <jas@extundo.com>
55143
55144         * config/srclist.txt: Add glibc bug 1293.
55145
55146 2005-09-03  Derek Price  <derek@ximbiot.com>
55147
55148         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55149         From Larry Jones <lawrence.jones@ugs.com>.
55150
55151 2005-09-02  Simon Josefsson  <jas@extundo.com>
55152
55153         * modules/socklen: New file.
55154
55155 2005-09-02  Simon Josefsson  <jas@extundo.com>
55156
55157         * modules/havelib: New module.
55158
55159         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55160         Use havelib.
55161
55162 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55163
55164         Check for arithmetic overflow when calculating sizes, to prevent
55165         some buffer-overflow issues.  These patches are conservative, in the
55166         sense that when I couldn't determine whether an overflow was possible,
55167         I inserted a run-time check.
55168         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55169         macros.
55170         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55171         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55172         (re_xnrealloc, re_x2nrealloc): New inline functions.
55173         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55174         parse_bracket_exp):
55175         (build_equiv_class, build_charclass): Check for arithmetic overflow
55176         in size expression calculations.
55177         * lib/regex_internal.c (re_string_realloc_buffers):
55178         (build_wcs_upper_buffer, re_node_set_add_intersect):
55179         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55180         (re_dfa_add_node, register_state): Likewise.
55181         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55182         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55183         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55184         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55185
55186 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55187
55188         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55189         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55190
55191 2005-09-02  Bruno Haible  <bruno@clisp.org>
55192
55193         Support for lib vs. lib64 distinction on biarch platforms.
55194         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55195         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55196         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55197
55198 2005-09-02  Bruno Haible  <bruno@clisp.org>
55199
55200         * gnulib-tool (import): In the other first-use case, provide defaults
55201         as well.
55202
55203 2005-09-02  Bruno Haible  <bruno@clisp.org>
55204
55205         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55206         patches not yet found in the latest gettext release.
55207
55208 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55211         to avoid a collision with bits/local_lim.h in glibc.
55212         All uses changed.  Problem reported by Dmitry V. Levin in
55213         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55214
55215         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55216         bugs in int versus size_t comparisons.
55217         (re_string_context_at): Fix bug where the code assumed that
55218         Idx is signed.
55219
55220         Use bool where appropriate.
55221         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55222         All callers changed.
55223         (calc_eclosure_iter): Likewise, for ROOT arg.
55224         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55225         (build_charclass_op): Likewise, for NON_MATCH arg.
55226         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55227         (re_string_construct_common): Likewise, for ICASE arg.
55228         * lib/regexec.c (re_search_2_stub, re_search_stub):
55229         Likewise, for RET_LEN arg.
55230         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55231         (set_regs): Likewise, for FL_BACKTRACK arg.
55232         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55233         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55234         (calc_eclosure_iter, parse_bracket_exp):
55235         Use bool for internal variables that are booleans.
55236         * lib/regexec.c (re_search_internal, check_matching,
55237         proceed_next_node):
55238         (set_regs, build_sifted_states, sift_states_bkref):
55239         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55240         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55241         (find_collation_sequence_value):
55242         Likewise.
55243         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55244         (re_node_set_compare):
55245         Return bool, not int. All callers changed.
55246         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55247         (build_trtable, check_node_accept): Likewise.
55248         * lib/regex_internal.h: Include stdbool.h.
55249
55250         Fix bugs uncovered when converting to bool.
55251         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55252         failure instead of charging ahead blindly.
55253         * lib/regex_internal.c (register_state): Likewise.
55254         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55255         for freeing internal storage.
55256         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55257         bitset pieces used as boolean, to avoid undefined behavior
55258         on hosts that do int overflow checking.
55259
55260 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * config/srclist.txt: Add glibc bugs 1285-1287.
55263
55264 2005-09-01  Jim Meyering  <jim@meyering.net>
55265
55266         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55267         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55268         Require gl_STAT_MACROS, too.
55269
55270 2005-09-01  Bruno Haible  <bruno@clisp.org>
55271
55272         * gnulib-tool (import): In the first-use case, provide defaults.
55273
55274 2005-09-01  Bruno Haible  <bruno@clisp.org>
55275
55276         * gnulib-tool (func_import): Remove the .tmp files.
55277
55278 2005-09-01  Bruno Haible  <bruno@clisp.org>
55279
55280         * gnulib-tool (func_import): Fix handling of symbolic links.
55281
55282 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55285         old glibc regex code mishandles strings longer than 2**31 bytes.
55286         This patch fixes this when the regex code is used in gnulib
55287         (i.e., outside glibc).
55288
55289         This patch should not affect the use of the regex code inside
55290         glibc.  No doubt this problem also needs to be handled for glibc
55291         as well, but the result will be an incompatible change to the
55292         glibc ABI, and the old ABI will have to be supported too.  That
55293         can be the the subject for another patch.
55294
55295         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55296         governing whether the rest of this patch is active.  By default,
55297         the macro is disabled and the patch has no effect.
55298         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55299         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55300         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55301         (re_match_2, re_set_registers): Use the new types.
55302         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55303         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55304         New macros.
55305         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55306         (re_string_context_at, bin_tree_t, re_dfastate_t):
55307         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55308         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55309         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55310         (re_string_char_size_at, re_string_wchar_at):
55311         (re_string_elem_size_at):
55312         Use the new types and macros to port to 64-bit hosts.
55313         Use unsigned types for internal values, so that the code
55314         mostly works even for arrays larger than SSIZE_MAX.
55315         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55316         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55317         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55318         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55319         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55320         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55321         (calc_inveclosure, parse_dup_op, build_range_exp):
55322         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55323         (fetch_number, create_token_tree, mark_opt_subexp):
55324         Likewise.
55325         * lib/regex_internal.c (re_string_construct_common,
55326         create_ci_newstate):
55327         (create_cd_newstate, re_string_allocate, re_string_construct):
55328         (re_string_realloc_buffers, build_wcs_upper_buffer):
55329         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55330         (re_string_reconstruct, re_string_peek_byte_case):
55331         (re_string_fetch_byte_case, re_string_context_at):
55332         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55333         (re_node_set_init_copy, re_node_set_add_intersect):
55334         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55335         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55336         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55337         (re_acquire_state, re_acquire_state_context, register_state):
55338         Likewise.
55339         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55340         search_cur_bkref_entry):
55341         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55342         (re_search_internal, re_search_2_stub, re_search_stub)
55343         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55344         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55345         (update_cur_sifted_state, check_dst_limits):
55346         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55347         (check_subexp_limits, sift_states_bkref, merge_state_array):
55348         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55349         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55350         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55351         (expand_bkref_cache, check_node_accept_bytes):
55352         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55353         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55354         (acquire_init_state_context, check_halt_node_context):
55355         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55356         (sift_states_backward, clean_state_log_if_needed):
55357         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55358         (find_recover_state, transit_state_sb, transit_state_mb):
55359         (transit_state_bkref, build_trtable, match_ctx_clean):
55360         Likewise.
55361         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55362         to work around an assumption that REG_MISSING is negative.
55363
55364         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55365         (seek_collating_symbol_entry) [defined _LIBC]:
55366         (lookup_collation_sequence_value) [defined _LIBC]:
55367         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55368         Use prototypes rather than old-style function definitions.
55369         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55370         (transit_state_sb) [0]:
55371         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55372
55373         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55374         rm_eo.
55375
55376         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55377         (optimize_subexps, lower_subexp):
55378         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55379         since the signed shift might overflow.  Use 1u<<31 instead.
55380         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55381         Likewise.
55382         * lib/regexec.c (check_dst_limits_calc_pos_1,
55383         check_subexp_matching_top): Likewise.
55384
55385         * lib/regcomp.c (optimize_subexps, lower_subexp):
55386         Use CHAR_BIT rather than 8, for clarity.
55387         * lib/regexec.c (check_dst_limits_calc_pos_1):
55388         (check_subexp_matching_top): Likewise.
55389         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55390         have to worry about portability issues when shifting it left.
55391         Remove no-longer-needed test for table_size > 0.
55392         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55393         in a word, as the resulting behavior is undefined.
55394         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55395         in one case, a <= should have been an <, and in another case the
55396         whole test was missing.
55397         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55398         the standard name CHAR_BIT.
55399         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55400         this is not true on one's complement and signed-magnitude hosts.
55401
55402         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55403         next_last_offset.
55404         (struct re_dfa_t): Remove unused member states_alloc.
55405         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55406
55407 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55410         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55411         and large-file glibc and in 32-bit large-file Solaris.
55412
55413 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55416         lengths fit in regoff_t; this isn't true if regoff_t is the same
55417         width as size_t.
55418         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55419         (= START + RANGE) instead of RANGE.  This avoids overflow
55420         problems when regoff_t is the same width as size_t.
55421         All callers changed.
55422         (re_search_2_stub): Check for overflow when adding the
55423         sizes of the two strings.
55424         (re_search_stub): Check for overflow when adding START
55425         to RANGE; if it occurs, substitute the extreme value.
55426
55427 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55430
55431 2005-08-31  Jim Meyering  <jim@meyering.net>
55432
55433         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55434         a pointer-to-const.
55435         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55436         (register_state): Likewise.
55437         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55438         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55439         (group_nodes_into_DFAstates): Likewise.
55440
55441 2005-08-31  Jim Meyering  <jim@meyering.net>
55442
55443         * check-module: Add a FIXME comment.
55444
55445 2005-08-31  Eric Blake  <ebb9@byu.net>
55446
55447         * modules/unistd-safer (Files): Add unistd--.h.
55448         * modules/stdio-safer (Files): Add stdio--.h.
55449
55450 2005-08-31  Derek Price  <derek@ximbiot.com>
55451
55452         * lib/getdelim.c (getdelim): Return EOF on EOF.
55453         Reported by Larry Jones <lawrence.jones@ugs.com>.
55454
55455 2005-08-31  Bruno Haible  <bruno@clisp.org>
55456
55457         Avoid unnecessary diffs in the generated lib/Makefile.am.
55458         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55459         the generated files.
55460         (func_import): Don't set cmd.
55461
55462 2005-08-31  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/strstr.c: Include <stddef.h>, for NULL.
55465         * lib/strcasestr.c: Likewise.
55466         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55467
55468 2005-08-31  Bruno Haible  <bruno@clisp.org>
55469
55470         * gnulib-tool: New option --macro-prefix.
55471         (func_import): Use macro_prefix.
55472         (import): Handle option --macro-prefix.
55473
55474 2005-08-31  Bruno Haible  <bruno@clisp.org>
55475
55476         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55477         Also use new variables cached_lgpl, cached_libtool.
55478
55479 2005-08-31  Bruno Haible  <bruno@clisp.org>
55480
55481         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55482         always instantiating them.
55483
55484 2005-08-31  Bruno Haible  <bruno@clisp.org>
55485
55486         * gnulib-tool (func_import): Read the previous cached settings
55487         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55488         earlier added by gnulib but are now dropped. Warn when a gnulib file
55489         overwrites a non-gnulib file.
55490
55491 2005-08-31  Bruno Haible  <bruno@clisp.org>
55492
55493         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55494         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55495         projects that don't keep autogenerated files in CVS. Put into
55496         actioncmd only the specified modules, not the transitive closure.
55497
55498 2005-08-31  Bruno Haible  <bruno@clisp.org>
55499
55500         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55501         Create directories that shall be filled.
55502         (import): Don't look for gl_* macros in configure.ac. Recurse across
55503         all directories containing a gnulib-cache.m4 files, if meaningful.
55504
55505 2005-08-31  Bruno Haible  <bruno@clisp.org>
55506
55507         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55508         (import): Set seen_libtool when we see gl_LIBTOOL.
55509
55510 2005-08-31  Bruno Haible  <bruno@clisp.org>
55511
55512         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55513         declaration macro definitions from generated gnulib.m4.
55514
55515 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55516
55517         * lib/iconvme.h: Add prototype for iconv_alloc.
55518
55519 2005-08-29  Simon Josefsson  <jas@extundo.com>
55520
55521         * lib/iconvme.c: Fix errno.
55522
55523 2005-08-29  Bruno Haible  <bruno@clisp.org>
55524
55525         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55526         that it works when the directory contains spaces.
55527
55528 2005-08-29  Bruno Haible  <bruno@clisp.org>
55529
55530         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55531
55532 2005-08-29  Bruno Haible  <bruno@clisp.org>
55533
55534         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55535         Emit more advice.
55536
55537 2005-08-29  Bruno Haible  <bruno@clisp.org>
55538         and Stepan Kasal  <kasal@ucw.cz>
55539
55540         * check-module: If more parameters are given, check each of them
55541         separately; add more exceptions, as noted by Jim Meyering.
55542         (check_module): New procedure.
55543         (%exempt_header): Now contains all exceptions.
55544
55545 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55546
55547         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55548
55549 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55550
55551         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55552
55553 2005-08-28  Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/gnulib-tool.m4: New file.
55556
55557 2005-08-27  Jim Meyering  <jim@meyering.net>
55558
55559         * modules/unistd-safer (Files): Add pipe-safer.c.
55560         * modules/fcntl-safer (Files): Add creat-safer.c.
55561
55562 2005-08-27  Jim Meyering  <jim@meyering.net>
55563
55564         * m4/stdlib-safer.m4: New file.  From coreutils.
55565         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55566         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55567         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55568         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55569         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55570
55571 2005-08-27  Jim Meyering  <jim@meyering.net>
55572
55573         * lib/fopen-safer.c: Merge minor changes from coreutils.
55574         * lib/dup-safer.c: Likewise.
55575         * lib/fd-safer.c: Likewise.
55576
55577         Merge from coreutils.
55578         * lib/stdio--.h: New file.
55579         * lib/stdlib--.h: New file.
55580         * lib/mkstemp-safer.c: New file.
55581
55582         GNU tar needs these.
55583         * lib/pipe-safer.c: New file.
55584         * lib/creat-safer.c: New file.
55585         * lib/fcntl--.h (creat): Define to creat_safer.
55586         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55587         * lib/unistd--.h (pipe): Define to pipe_safer.
55588         * lib/unistd-safer.h: Declare pipe_safer.
55589
55590 2005-08-26  Simon Josefsson  <jas@extundo.com>
55591
55592         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55593         Haible <bruno@clisp.org>.
55594
55595 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/regex_internal.h: Remove all references to
55598         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55599         or better.
55600         (bitset_not, bitset_merge, bitset_not_merge):
55601         (bitset_mask, re_string_allocate, re_string_construct):
55602         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55603         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55604         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55605         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55606         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55607         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55608         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55609         (re_acquire_state_context):
55610         Remove unnecessary forward decls.
55611         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55612         Put __attribute at function definition,
55613         now that the function decl has been removed.
55614         * lib/regex_internal.c (re_string_peek_byte_case):
55615         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55616         Likewise.
55617
55618 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55619
55620         * m4/regex.m4: Add AC_PREREQ(2.50).
55621         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55622
55623 2005-08-25  Simon Josefsson  <jas@extundo.com>
55624
55625         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55626         __fsetlocking.
55627
55628 2005-08-25  Simon Josefsson  <jas@extundo.com>
55629
55630         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55631         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55632         GLIBC specific code.
55633
55634 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55635
55636         Make regex safe for g++.  This fixes one real bug (an "err"
55637         that should have been "*err").  g++ problem reported by
55638         Sam Steingold.
55639         * lib/regex_internal.h (re_calloc): New macro, consistent with
55640         re_malloc etc.  All callers of calloc changed to use re_calloc.
55641         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55642         not int.  All callers changed.
55643         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55644         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55645         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55646         (find_recover_state): Change "err" to "*err"; this fixes what
55647         appears to be a real bug.
55648         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55649         versus int.
55650
55651 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * modules/regex (Depends-on): Add malloc, since the code
55654         assumes that !malloc(0) means failure.
55655
55656 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55657
55658         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55659
55660         alloca modernization/simplification for regex.
55661         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55662         needs to be at the start of the file, and can be moved into
55663         regex_internal.h and simplified.
55664         * lib/regex_internal.h: Include <alloca.h>.
55665         (__libc_use_alloca) [!defined _LIBC]: New macro.
55666         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55667         now works outside glibc.
55668
55669 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * config/srclist.txt: Add glibc bugs 1241, 1245.
55672
55673 2005-08-25  Jim Meyering  <jim@meyering.net>
55674
55675         * lib/open-safer.c: Include <config.h>.
55676         Otherwise, we'd lose LARGEFILE support in any file using
55677         e.g. "fcntl--.h"
55678
55679 2005-08-25  Bruno Haible  <bruno@clisp.org>
55680
55681         * m4/minmax.m4: Require autoconf 2.52.
55682         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55683         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55684         alternatives of translit over the alphabet.
55685         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55686
55687 2005-08-24  Simon Josefsson  <jas@extundo.com>
55688
55689         * tests/test-getpass.c: New file.
55690
55691 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55692
55693         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55694         for GNU regex features.
55695
55696 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55697
55698         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55699         * lib/regex.h (regerror): Likewise.
55700
55701         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55702         requires this.  (The code never needed it.)
55703
55704         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55705         All uses of recently-renamed identifiers changed to use the new,
55706         POSIX-compliant names.  The code will build and run just fine
55707         without these changes, but it's better to eat our own dog food
55708         and use the standard-conforming names.
55709
55710         * lib/regex.h: Fix a multitude of POSIX name space violations.
55711         These changes have an effect only for programs that define
55712         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55713         do not change anything for programs compiled in the normal way.
55714         Also, there is no effect on the ABI.
55715
55716         (_REGEX_SOURCE): New macro.
55717         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55718         defined and _GNU_SOURCE is not; this fixes a name space violation.
55719
55720         Rename the following macros to obey POSIX requirements.
55721         The old names are still visible as macros if _REGEX_SOURCE is defined.
55722         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55723         RE_BACKSLASH_ESCAPE_IN_LISTS.
55724         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55725         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55726         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55727         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55728         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55729         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55730         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55731         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55732         (REG_INTERVALS): renamed from RE_INTERVALS.
55733         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55734         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55735         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55736         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55737         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55738         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55739         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55740         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55741         RE_UNMATCHED_RIGHT_PAREN_ORD.
55742         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55743         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55744         (REG_DEBUG): renamed from RE_DEBUG.
55745         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55746         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55747         unusual, since we can't clash with the POSIX REG_ICASE.
55748         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55749         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55750         (REG_NO_SUB): renamed from RE_NO_SUB.
55751         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55752         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55753         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55754         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55755         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55756         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55757         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55758         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55759         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55760         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55761         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55762         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55763         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55764         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55765         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55766         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55767         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55768         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55769         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55770         (REG_FIXED): Renamed from REGS_FIXED.
55771         (REG_NREGS): Renamed from RE_NREGS.
55772
55773         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55774         of other REG_* macros, since POSIX says the user is allowed to
55775         #undef these macros selectively.
55776
55777         (reg_errcode_t): Update comment stating what other tables need
55778         to be consistent.
55779
55780         Rename the following enum values to obey POSIX requirements.
55781         The old names are still visible as macros.
55782         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55783         is not defined, since GNU is supposed to be a superset of POSIX as
55784         much as possible, and since we want reg_errcode_t to be a signed
55785         type for implementation consistency.
55786         (_REG_NOERROR): Renamed from REG_NOERROR.
55787         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55788         (_REG_BADPAT): Renamed from REG_BADPAT.
55789         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55790         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55791         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55792         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55793         (_REG_EBRACK): Renamed from REG_EBRACK.
55794         (_REG_EPAREN): Renamed from REG_EPAREN.
55795         (_REG_EBRACE): Renamed from REG_EBRACE.
55796         (_REG_BADBR): Renamed from REG_BADBR.
55797         (_REG_ERANGE): Renamed from REG_ERANGE.
55798         (_REG_ESPACE): Renamed from REG_ESPACE.
55799         (_REG_BADRPT): Renamed from REG_BADRPT.
55800         (_REG_EEND): Renamed from REG_EEND.
55801         (_REG_ESIZE): Renamed from REG_ESIZE.
55802         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55803         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55804         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55805         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55806         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55807
55808         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55809         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55810         changed.  But support the old name if the new one is not defined
55811         and if _REGEX_SOURCE.
55812
55813         Change the following member names in struct re_pattern_buffer.
55814         The old names are still supported if !_REGEX_SOURCE.
55815         The new names are always supported, regardless of _REGEX_SOURCE.
55816         (re_buffer): Renamed from buffer.
55817         (re_allocated): Renamed from allocated.
55818         (re_used): Renamed from used.
55819         (re_syntax): Renamed from syntax.
55820         (re_fastmap): Renamed from fastmap.
55821         (re_translate): Renamed from translate.
55822         (re_can_be_null): Renamed from can_be_null.
55823         (re_regs_allocated): Renamed from regs_allocated.
55824         (re_fastmap_accurate): Renamed from fastmap_accurate.
55825         (re_no_sub): Renamed from no_sub.
55826         (re_not_bol): Renamed from not_bol.
55827         (re_not_eol): Renamed from not_eol.
55828         (re_newline_anchor): Renamed from newline_anchor.
55829
55830         Change the following member names in struct re_registers.
55831         The old names are still supported if !_REGEX_SOURCE.
55832         The new names are always supported, regardless of _REGEX_SOURCE.
55833         (rm_num_regs): Renamed from num_regs.
55834         (rm_start): Renamed from start.
55835         (rm_end): Renamed from end.
55836
55837         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55838         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55839         Prepend __ to parameter names.
55840
55841         Undo yesterday's changes.
55842
55843 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55846         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55847         lib/regex.c.
55848
55849 2005-08-24  Jim Meyering  <jim@meyering.net>
55850
55851         Sync from coreutils.
55852         * m4/fcntl-safer.m4: New file.
55853
55854         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55855         and object files for this module.
55856
55857 2005-08-24  Jim Meyering  <jim@meyering.net>
55858
55859         Sync from coreutils.
55860         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55861
55862 2005-08-24  Jim Meyering  <jim@meyering.net>
55863
55864         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55865         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55866
55867 2005-08-24  Jim Meyering  <jim@meyering.net>
55868
55869         * modules/fcntl-safer: New module.
55870         * modules/fts (Depends-on): Add fcntl-safer.
55871         * MODULES.html.sh (File descriptor based Input/Output):
55872         Add fcntl-safer.
55873
55874 2005-08-24  Bruno Haible  <bruno@clisp.org>
55875
55876         Support for unit test modules.
55877         * modules/README: Mention tests modules.
55878         * modules/TEMPLATE-TESTS: New file.
55879         * gnulib-tool: New options --extract-tests-module, --with-tests and
55880         --tests-base (unused for the moment).
55881         (testsbase, inctests): New variables.
55882         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55883         (func_verify_module): Exclude TEMPLATE-TESTS.
55884         (func_verify_nontests_module, func_verify_tests_module): New functions.
55885         (func_get_dependencies): Add implicit dependency for tests modules.
55886         (func_get_tests_module): New function.
55887         (func_modules_transitive_closure): When --with-tests was specified,
55888         include the unit tests as well, unless explicitly avoided.
55889         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55890         (func_emit_tests_Makefile_am): New function.
55891         (func_create_testdir): When --with-tests was specified, emit a
55892         tests/ directory.
55893         * MODULES.html.sh (Future developments): Update.
55894
55895 2005-08-24  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/tls-tests: New file.
55898         * tests/test-tls.c: New file, from GNU gettext.
55899
55900 2005-08-24  Bruno Haible  <bruno@clisp.org>
55901
55902         * modules/lock-tests: New file.
55903         * tests/test-lock.c: New file, from GNU gettext.
55904
55905 2005-08-24  Bruno Haible  <bruno@clisp.org>
55906
55907         * lib/lock.h: Add multiple inclusion guard.
55908         * lib/tls.h: Add multiple inclusion guard.
55909
55910 2005-08-24  Bruno Haible  <bruno@clisp.org>
55911
55912         * gnulib-tool: Add support for the --aux-dir option to
55913         --create-testdir, --create-megatestdir, --test, --megatest.
55914         (func_create_testdir, func_create_megatestdir): Optionally emit a
55915         AC_CONFIG_AUX_DIR directive.
55916         (create-testdir, create-megatestdir, test, megatest): Provide a
55917         default value for $auxdir.
55918
55919 2005-08-24  Bruno Haible  <bruno@clisp.org>
55920
55921         * gnulib-tool (import): Use compound statement instead of subshell
55922         where possible.
55923
55924 2005-08-24  Bruno Haible  <bruno@clisp.org>
55925
55926         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55927
55928 2005-08-24  Bruno Haible  <bruno@clisp.org>
55929
55930         * gnulib-tool (func_version): Update.
55931
55932 2005-08-24  Bruno Haible  <bruno@clisp.org>
55933
55934         * gnulib-tool (func_import, func_create_testdir,
55935         func_create_megatestdir): Quote all autoconf macro arguments.
55936
55937 2005-08-24  Bruno Haible  <bruno@clisp.org>
55938
55939         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55940         option --force, because --force causes the aclocal.m4 of each
55941         subdirectory to be newer than the corresponding config.h.in.
55942
55943 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55944
55945         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55946         All contents moved to gl_REGEX.
55947         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55948         assume that it does.
55949
55950 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55951
55952         * lib/regex.h (REG_NOSYS)
55953         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55954         Define, since POSIX requires it as of 2001.
55955         (_REG_ENOSYS)
55956         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
55957         New private symbol, used to keep the enum signed in all cases.
55958         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
55959         Youngman in
55960         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
55961
55962         * lib/regex_internal.c (re_string_skip_chars, register_state):
55963         (calc_state_hash):
55964         Remove forward decls; no longer needed now that we use prototypes.
55965         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
55966         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
55967         (clean_state_log_if_needed): Likewise.
55968
55969 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55970
55971         * config/srclist.txt: Add glibc bugs 1231-1233.
55972
55973 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55974
55975         Fix problems reported by Sam Steingold in
55976         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
55977         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
55978         assumed that reg_errcode_t is a signed type, which is not
55979         necessarily true if _XOPEN_SOURCE is not defined.
55980         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
55981         since some compilers warn about it otherwise.
55982
55983 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55984
55985         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
55986         (init_word_char, create_initial_state, duplicate_node_closure):
55987         (fetch_token, peek_token_bracket, build_range_exp):
55988         (build_collating_symbol): Remove forward decls; no longer needed
55989         now that we use prototypes.
55990
55991         * lib/regcomp.c:
55992         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
55993         (re_compile_fastmap_iter, regcomp, regerror, regfree):
55994         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
55995         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
55996         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
55997         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
55998         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
55999         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56000         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56001         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56002         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56003         (build_charclass, build_charclass_op, fetch_number, create_tree):
56004         (create_token_tree, mark_opt_subexp, duplicate_tree):
56005         Use prototypes rather than old-style definitions.
56006
56007         * lib/regex_internal.c:
56008         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56009         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56010         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56011         (re_string_reconstruct, re_string_peek_byte_case):
56012         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56013         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56014         (re_node_set_init_copy, re_node_set_add_intersect):
56015         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56016         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56017         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56018         (re_acquire_state, re_acquire_state_context, register_state):
56019         (create_ci_newstate, create_cd_newstate, free_state):
56020         Likewise.
56021         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56022         re_search_2):
56023         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56024         (re_search_internal, prune_impossible_nodes):
56025         (acquire_init_state_context, check_matching, static):
56026         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56027         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56028         (update_regs, sift_states_backward, build_sifted_states):
56029         (clean_state_log_if_needed, merge_state_array):
56030         (update_cur_sifted_state, add_epsilon_src_nodes):
56031         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56032         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56033         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56034         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56035         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56036         (check_arrival, check_arrival_add_next_nodes):
56037         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56038         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56039         (check_node_accept_bytes, check_node_accept, extend_buffers):
56040         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56041         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56042         (sift_ctx_init):
56043         Likewise.
56044
56045         * lib/regex_internal.h:
56046         (re_string_allocate, re_string_construct, re_string_reconstruct):
56047         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56048         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56049         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56050         (re_string_context_at, re_string_peek_byte_case):
56051         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56052         is defined, since we now use prototypes always.
56053
56054         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56055         C89 or better.  All uses removed.
56056
56057 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         * config/srclist.txt: Add glibc bugs 1220-1227.
56060
56061 2005-08-20  Jim Meyering  <jim@meyering.net>
56062
56063         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56064         of unused local, dfa.
56065
56066 2005-08-20  Bruno Haible  <bruno@clisp.org>
56067
56068         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56069
56070 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56073         (re_node_set_insert_last, re_dfa_add_node):
56074         Rename local variables to avoid GCC shadowing warnings.
56075
56076 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56079         [defined lint]: Suppress bogus uninitialized-variable warnings.
56080
56081         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56082         and let the caller return REG_ESPACE if out of space.  This
56083         removes an uninitialied-variable warning with GCC 4.0.1, and also
56084         avoids taking the address of a local variable.  All callers
56085         changed.
56086
56087 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56088
56089         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56090         $LIBCSRC/posix/regexec.c.
56091         Add glibc bug 1217 for regcomp.c.
56092
56093 2005-08-19  Jim Meyering  <jim@meyering.net>
56094
56095         * lib/regexec.c (proceed_next_node): Redo local variables to
56096         avoid GCC shadowing warnings.
56097
56098 2005-08-18  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/strstr.c (strstr): Fix return value in multibyte case.
56101         * lib/strcasestr.c (strcasestr): Likewise.
56102
56103 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56104
56105         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56106
56107 2005-08-17  Jim Meyering  <jim@meyering.net>
56108
56109         Make the %s format (seconds since the epoch) work for a negative
56110         number and when used with a zero-padded field width, e.g. %015s.
56111
56112         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56113         label so that it precedes the code to set `digits'.  Otherwise,
56114         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56115         print `00-22'.  Now, it prints `-0022', as it should.
56116
56117 2005-08-17  Bruno Haible  <bruno@clisp.org>
56118
56119         * modules/strstr (Files): Add m4/mbrtowc.m4.
56120         (Depends-on): Add mbuiter.
56121
56122 2005-08-17  Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/strcasestr: New file.
56125         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56126         strcasestr.
56127
56128 2005-08-17  Bruno Haible  <bruno@clisp.org>
56129
56130         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56131
56132 2005-08-17  Bruno Haible  <bruno@clisp.org>
56133
56134         * modules/mbuiter: New file.
56135         * MODULES.html.sh (Extended multibyte and wide character utilities):
56136         Add mbuiter.
56137
56138 2005-08-17  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56141         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56142
56143 2005-08-17  Bruno Haible  <bruno@clisp.org>
56144
56145         * m4/strcasestr.m4: New file.
56146
56147 2005-08-17  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56150         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56151
56152 2005-08-17  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/strcasestr.h: New file.
56155         * lib/strcasestr.c: New file.
56156
56157 2005-08-17  Bruno Haible  <bruno@clisp.org>
56158
56159         * lib/strcasecmp.c: Use mbuiter.h.
56160
56161 2005-08-17  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/mbuiter.h: New file.
56164
56165 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56166
56167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56168         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56169         and gl_GETOPT are both invoked via different paths (as happens
56170         with GNU tar CVS because it uses both argp and getopt), the former
56171         wins.
56172
56173 2005-08-16  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/tls: New file.
56176         * MODULES.html.sh (Multithreading): Add tls.
56177
56178 2005-08-16  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/strnlen1: New file.
56181         * MODULES.html.sh (String handling): Add strnlen1.
56182
56183 2005-08-16  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/strcase (Files): Add m4/mbrtowc.m4.
56186         (Depends-on): Add strnlen1, mbchar.
56187
56188 2005-08-16  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/mbiter: New file.
56191         * MODULES.html.sh (Extended multibyte and wide character utilities):
56192         Add mbiter.
56193
56194 2005-08-16  Bruno Haible  <bruno@clisp.org>
56195
56196         * modules/mbfile: New file.
56197         * MODULES.html.sh (Extended multibyte and wide character utilities):
56198         Add mbfile.
56199
56200 2005-08-16  Bruno Haible  <bruno@clisp.org>
56201
56202         * modules/mbchar: New file.
56203         * MODULES.html.sh (Extended multibyte and wide character utilities):
56204         New section.
56205
56206 2005-08-16  Bruno Haible  <bruno@clisp.org>
56207
56208         * m4/tls.m4: New file, from GNU gettext.
56209
56210 2005-08-16  Bruno Haible  <bruno@clisp.org>
56211
56212         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56213         always.
56214         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56215
56216 2005-08-16  Bruno Haible  <bruno@clisp.org>
56217
56218         * m4/mbiter.m4: New file.
56219
56220 2005-08-16  Bruno Haible  <bruno@clisp.org>
56221
56222         * m4/mbfile.m4: New file.
56223
56224 2005-08-16  Bruno Haible  <bruno@clisp.org>
56225
56226         * m4/mbchar.m4: New file.
56227
56228 2005-08-16  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/tls.h: New file, from GNU gettext.
56231         * lib/tls.c: New file, from GNU gettext.
56232
56233 2005-08-16  Bruno Haible  <bruno@clisp.org>
56234
56235         * lib/strnlen1.h: New file.
56236         * lib/strnlen1.c: New file.
56237
56238 2005-08-16  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56241         (mbi_init): Update.
56242         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56243         NUL byte, not after it.
56244
56245 2005-08-16  Bruno Haible  <bruno@clisp.org>
56246
56247         * lib/strcase.h (strcasecmp): Add note in comments.
56248         * lib/strncasecmp.c: Use code from strcasecmp.c.
56249         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56250         (strcasecmp): Work correctly in multibyte locales.
56251
56252 2005-08-16  Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/mbiter.h: New file.
56255
56256 2005-08-16  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/mbfile.h: New file.
56259
56260 2005-08-16  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/mbchar.h: New file.
56263         * lib/mbchar.c: New file.
56264
56265 2005-08-16  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56268         the valid ones. Makes the comparison operations transitive:
56269         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56270         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56271
56272 2005-08-15  Simon Josefsson  <jas@extundo.com>
56273
56274         * modules/ssize_t (License): Change to 'unlimited'.
56275
56276         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56277
56278 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56279
56280         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56281         Add comments for each pending glibc patch.
56282
56283 2005-08-15  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56286         __cplusplus is defined.
56287
56288 2005-08-14  Jim Meyering  <jim@meyering.net>
56289
56290         Sync from coreutils.
56291
56292         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56293         Use the hash-table-based cycle-detection code not just when
56294         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56295         Reported by James Youngman in
56296         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56297         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56298         FTS_TIGHT_CYCLE_CHECK.
56299         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56300         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56301         once again.
56302         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56303         * lib/fts.c (fd_safer): Remove decl.
56304         Include fcntl--.h rather than unistd-safer.h
56305         (fts_safe_changedir): Don't call fd_safer; no longer needed
56306         now that we include fcntl--.h.
56307
56308 2005-08-12  Simon Josefsson  <jas@extundo.com>
56309
56310         * modules/getndelim2: Use ssize_t module.
56311         * modules/getnline: Likewise.
56312         * modules/safe-read: Likewise.
56313         * modules/xreadlink: Likewise.
56314
56315         * modules/ssize_t: New file.
56316
56317 2005-08-12  Simon Josefsson  <jas@extundo.com>
56318
56319         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56320
56321 2005-08-12  Simon Josefsson  <jas@extundo.com>
56322
56323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56324         ssize_t.
56325
56326 2005-08-12  Simon Josefsson  <jas@extundo.com>
56327
56328         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56329         readline, getdelim and check_version.
56330         (Support for systems lacking ISO C 99: Sizes of integer types):
56331         Add size_max.
56332
56333 2005-08-12  Bruno Haible  <bruno@clisp.org>
56334
56335         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56336
56337 2005-08-11  Simon Josefsson  <jas@extundo.com>
56338
56339         * modules/readline: New file.
56340
56341         * modules/strnlen (Files): Add strnlen.h.
56342
56343 2005-08-11  Simon Josefsson  <jas@extundo.com>
56344
56345         * m4/readline.m4: New file.
56346
56347 2005-08-11  Simon Josefsson  <jas@extundo.com>
56348
56349         * lib/readline.h, readline.c: New file.
56350
56351 2005-08-11  Simon Josefsson  <jas@extundo.com>
56352
56353         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56354         gl_AVOID.
56355
56356 2005-08-11  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56359
56360 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56361
56362         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56363
56364 2005-08-10  Simon Josefsson  <jas@extundo.com>
56365
56366         * tests/test-iconvme.c: New file.
56367
56368 2005-08-10  Simon Josefsson  <jas@extundo.com>
56369
56370         * m4/strnlen.m4: New file.
56371
56372         * m4/strndup.m4: Don't check for strnlen declaration, done in
56373         strnlen.m4.
56374
56375 2005-08-10  Simon Josefsson  <jas@extundo.com>
56376
56377         * lib/strndup.c: Use strnlen.h.
56378
56379         * lib/strnlen.h: New file.
56380
56381 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56382
56383         * README: Typos.
56384
56385 2005-08-02  Simon Josefsson  <jas@extundo.com>
56386
56387         * modules/readline: New file.
56388
56389 2005-08-02  Simon Josefsson  <jas@extundo.com>
56390
56391         * modules/getdelim: New file.
56392
56393         * modules/getline: Rewrite, don't use getndelim2.
56394
56395 2005-08-02  Simon Josefsson  <jas@extundo.com>
56396
56397         * m4/getline.m4: Separate out getdelim stuff into separate module.
56398
56399         * m4/getdelim.m4: New file.
56400
56401 2005-08-02  Simon Josefsson  <jas@extundo.com>
56402
56403         * lib/getline.h, getline.c: Rewrite.
56404
56405         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56406
56407 2005-07-31  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/lock.h (gl_lock_initializer): New macro.
56410         (gl_lock_define_initialized): Use it.
56411         (gl_rwlock_initializer): New macro.
56412         (gl_rwlock_define_initialized): Use it.
56413         (gl_recursive_lock_initializer): New macro.
56414         (gl_recursive_lock_define_initialized): Use it.
56415
56416 2005-07-30  Karl Berry  <karl@gnu.org>
56417
56418         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56419         Report from Ben Pfaff, regarding getopt.
56420
56421 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56424         normal way.
56425         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56426         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56427         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56428         (gl_GETOPT): Use the new macros.  Most of the implementation
56429         is moved to the new macros.  This is for programs like Emacs
56430         that don't want all the functionality of gl_GETOPT.
56431
56432 2005-07-26  Bruno Haible  <bruno@clisp.org>
56433
56434         * m4/lock.m4: Update from GNU gettext.
56435
56436 2005-07-26  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/lock.h: Update from GNU gettext.
56439         * lib/lock.c: Update from GNU gettext.
56440
56441 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56442
56443         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56444         obsolescent AC_TRY_RUN.  Include the default includes files, for
56445         'exit'.
56446
56447 2005-07-24  Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/visibility: New file.
56450         * MODULES.html.sh (Misc): Add visibility.
56451
56452 2005-07-24  Bruno Haible  <bruno@clisp.org>
56453
56454         * m4/visibility.m4: New file.
56455
56456 2005-07-24  Bruno Haible  <bruno@clisp.org>
56457
56458         * doc/visibility.texi: New file.
56459
56460 2005-07-22  Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56463         $(ALLOCA_H), redundant through BUILT_SOURCES.
56464         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56465         redundant through BUILT_SOURCES.
56466         * modules/byteswap (Makefile.am): Remove explicit dependency on
56467         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56468         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56469         $(FNMATCH_H), redundant through BUILT_SOURCES.
56470         * modules/getopt (Makefile.am): Remove explicit dependency on
56471         $(GETOPT_H), redundant through BUILT_SOURCES.
56472         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56473         redundant through BUILT_SOURCES.
56474         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56475         redundant through BUILT_SOURCES.
56476         * modules/stdbool (Makefile.am): Remove explicit dependency on
56477         $(STDBOOL_H), redundant through BUILT_SOURCES.
56478         * modules/stdint (Makefile.am): Remove explicit dependency on
56479         $(STDINT_H), redundant through BUILT_SOURCES.
56480         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56481         Remove explicit dependency on $(SYSEXITS_H).
56482         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56483
56484 2005-07-18  Simon Josefsson  <jas@extundo.com>
56485
56486         * lib/check-version.c (check_version): Accept identical versions too.
56487
56488 2005-07-18  Bruno Haible  <bruno@clisp.org>
56489
56490         * modules/lock: New file.
56491         * MODULES.html.sh (Multithreading): New section.
56492
56493 2005-07-18  Bruno Haible  <bruno@clisp.org>
56494
56495         * m4/lock.m4: New file, from GNU gettext.
56496
56497 2005-07-18  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/lock.h: New file, from GNU gettext.
56500         * lib/lock.c: New file, from GNU gettext.
56501
56502 2005-07-18  Bruno Haible  <bruno@clisp.org>
56503
56504         * lib/lock.h (gl_once_t): New type.
56505         (gl_once_define, gl_once): New macros.
56506         * lib/lock.c (fresh_once): New variable.
56507         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56508         functions.
56509
56510 2005-07-16  Simon Josefsson  <jas@extundo.com>
56511
56512         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56513         workaround, suggested by Bruno.
56514
56515 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * modules/xalloc (Depends-on): Add xalloc-die.
56518         * modules/xvasprintf (Depends-on): Add xalloc-die.
56519
56520 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56521
56522         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56523         with a minor change.
56524
56525 2005-07-15  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56528         When using lib/poll.c, define poll as rpl_poll.
56529
56530 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56531
56532         * modules/argp (Depends-on): Remove unlocked-io.
56533
56534 2005-07-14  Derek Price  <derek@ximbiot.com>
56535
56536         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56537         for glob symlink bug.
56538
56539 2005-07-14  Bruno Haible  <bruno@clisp.org>
56540
56541         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56542         Instead, test for *_unlocked function declarations directly.
56543
56544 2005-07-11  Simon Josefsson  <jas@extundo.com>
56545
56546         * modules/size_max: New file.
56547
56548         * modules/xsize: Depend on size_max module for size_max.m4.
56549
56550 2005-07-11  Simon Josefsson  <jas@extundo.com>
56551
56552         * lib/size_max.h: New file.
56553
56554 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56555
56556         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56557         copyright symbol and the year.
56558         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56559         (version_etc_va): Use parameterized copyright notice.
56560         Reword to conform to the current GNU coding standards.
56561
56562 2005-07-11  Karl Berry  <karl@gnu.org>
56563
56564         * doc/gnulib.texi (Quoting): new node.
56565         (Initial import): more info, from Patrice.
56566
56567 2005-07-11  Bruno Haible  <bruno@clisp.org>
56568
56569         * gnulib-tool (func_usage): Document option --avoid.
56570         (Command line options): Handle --avoid.
56571         (func_acceptable): New function.
56572         (func_modules_transitive_closure): Use it.
56573
56574 2005-07-11  Bruno Haible  <bruno@clisp.org>
56575
56576         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56577         Reported by Jim Meyering.
56578
56579 2005-07-10  Bruno Haible  <bruno@clisp.org>
56580
56581         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56582         Needed when size_t is smaller than 'unsigned int'.
56583         Reported by Paul Eggert.
56584
56585 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56586
56587         * modules/argp (Depends-on): Add unlocked-io
56588
56589 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56590
56591         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56592         block of defines.
56593
56594 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56597         fix now.
56598
56599 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56600         and Paul Eggert  <eggert@cs.ucla.edu>
56601
56602         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56603         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56604
56605 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56606
56607         * modules/regex (Files): Add lib/regex_internal.c,
56608         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56609         (Depends-on): Add extensions.
56610         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56611
56612 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56613
56614         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56615         pathconf.
56616         * m4/same.m4 (gl_SAME): Likewise.
56617         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56618
56619         * m4/regex.m4: Adjust to new libc regex implementation.
56620         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56621         all the .c and .h parts of (the new) regex.
56622         Quote the m4 stuff better.
56623         Check for RE_ICASE bug of old gnulib.
56624         Check for REG_STARTEND of recent libc.
56625         Rename local variables from jm_* to gl_*.
56626         Quote operand of "test -f".
56627         Say "recent enough" version of libc, not "version 2".
56628         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56629         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56630         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56631         Remove check for btowc, isascii.
56632         Require AM_LANGINFO_CODESET.
56633
56634 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56635
56636         * lib/regex.c, regex.h: Sync from libc.
56637         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56638         * lib/regexec.c:
56639         New files, synced from libc, except that regex_internal.h
56640         currently has a small porting fix.
56641
56642 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56643
56644         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56645         regex_internal.c, regexec.c.
56646         Add regex_internal.h too, but as a comment, since the libc version
56647         is currently broken in gnulib mode.
56648
56649 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56650
56651         Support programs like Emacs that use gnulib but not gettext.
56652         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56653         * modules/gettext-h: New file.
56654         * modules/gettext (Files): Remove lib/gettext.h.
56655         (Depends-on): Add gettext-h.
56656         (Makefile.am): Remove lib_SOURCES.
56657         * modules/argmatch, modules/c-stack, modules/closeout:
56658         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56659         * modules/execute, modules/file-type, modules/getaddrinfo:
56660         * modules/getopt, modules/human, modules/javacomp:
56661         * modules/javaexec, modules/mkdir-p, modules/obstack:
56662         * modules/openat, modules/pagealign_alloc, modules/pipe:
56663         * modules/quotearg, modules/regex, modules/rpmatch:
56664         * modules/unicodeio, modules/userspec, modules/version-etc:
56665         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56666         * modules/xsetenv:
56667         Depend on gettext-h, not gettext.
56668
56669 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * gnulib-tool (func_import): Add support for 'public domain' license.
56672         * modules/alloca, modules/atexit, modules/memmove:
56673         Now public domain, not GPL.
56674         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56675         * modules/realloc, modules/strerror, modules/strtod:
56676         Now LGPL, not GPL.
56677
56678 2005-07-05  Bruno Haible  <bruno@clisp.org>
56679
56680         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56681         autoconf CVS. Needed for mingw.
56682
56683 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56684
56685         Remove the dependency of the strftime module on the tzset module.
56686         * modules/strftime (Depends-on): Remove dependency on tzset.
56687
56688 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56689
56690         Remove the dependency of the strftime module on the tzset module.
56691         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56692         gl_FUNC_TZSET_CLOBBER.
56693
56694 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56695
56696         Remove the dependency of the strftime module on the tzset module.
56697         * lib/strftime.c (my_strftime)
56698         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56699         Copy the input structure, to work around some of the bug with
56700         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56701         Solaris releases, you should also use the tzset module, but we won't
56702         require it as a dependency any more since we don't want LGPLed code
56703         to depend on GPLed code.
56704
56705 2005-07-02  Jim Meyering  <jim@meyering.net>
56706
56707         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56708         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56709         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56710         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56711
56712 2005-07-02  Jim Meyering  <jim@meyering.net>
56713
56714         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56715
56716 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56717
56718         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56719         declares only 'struct timespec;' (!).
56720
56721 2005-07-01  Jim Meyering  <jim@meyering.net>
56722
56723         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56724         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56725         * lib/save-cwd.c, tempname.c:
56726         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56727         and don't include <sys/file.h>).
56728
56729 2005-06-29  Jim Meyering  <jim@meyering.net>
56730
56731         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56732         type name.  Use the variable name instead.
56733         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56734         Likewise.
56735
56736 2005-06-28  Simon Josefsson  <jas@extundo.com>
56737
56738         * modules/check-version (Files): Add check-version.m4.
56739
56740 2005-06-28  Simon Josefsson  <jas@extundo.com>
56741
56742         * m4/check-version.m4: New file, suggested by Jim Meyering
56743         <jim@meyering.net>.
56744
56745 2005-06-28  Simon Josefsson  <jas@extundo.com>
56746
56747         * lib/check-version.h, lib/check-version.c: New files.
56748
56749 2005-06-28  Simon Josefsson  <jas@extundo.com>
56750
56751         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56752         collision with global variable.  Better indentation.  Don't
56753         increment buffer pointer beyond buffer end.  Based on comments
56754         from Paul Eggert <eggert@cs.ucla.edu>.
56755
56756         * lib/base64.h: Indent.
56757
56758 2005-06-28  Simon Josefsson  <jas@extundo.com>
56759
56760         * doc/gnulib.texi (Library version handling): New section.
56761
56762 2005-06-28  Jim Meyering  <jim@meyering.net>
56763
56764         * check-module (find_included_lib_files): Hard-code another
56765         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56766         but modules/fts-lgpl (correctly) does not list those files.
56767
56768         * modules/canonicalize (Files): Add lib/pathmax.h.
56769
56770 2005-06-25  Simon Josefsson  <jas@extundo.com>
56771
56772         * modules/check-version: New file.
56773
56774 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56775
56776         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56777         initializer of struct addrinfo, as an indication that we don't
56778         care how many members the structure has.
56779
56780 2005-06-24  Derek Price  <derek@ximbiot.com>
56781         and Bruno Haible  <bruno@clisp.org>
56782
56783         Remove stat module & update lstat.
56784         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56785         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56786         * m4/stat.m4: Remove this file.
56787
56788 2005-06-24  Derek Price  <derek@ximbiot.com>
56789         and Bruno Haible  <bruno@clisp.org>
56790
56791         Remove stat module & update lstat.
56792         * lib/stat.c: Remove this file...
56793         (slash_aware_lstat): ...moving this content and its support...
56794         * lib/lstat.c (rpl_lstat): ...into here.
56795         * lib/lstat.h: New file.
56796
56797 2005-06-24  Derek Price  <derek@ximbiot.com>
56798         and Bruno Haible  <bruno@clisp.org>
56799
56800         Remove stat module & update lstat.
56801         * config/srclist.txt (libc sources): Remove stat.
56802
56803 2005-06-24  Derek Price  <derek@ximbiot.com>
56804         and Bruno Haible  <bruno@clisp.org>
56805
56806         Remove stat module & update lstat.
56807         * MODULES.html.sh (stat): Remove.
56808         * MODULES.html: Regenerated.
56809         * modules/lstat (Description): Correct function name.
56810         (Files): Add "lstat.h".
56811         (Depends-on): Remove stat, add xalloc, stat-macros.
56812         * modules/stat: Remove this file.
56813         (Include): Add "lstat.h", remove <sys/stat.h>.
56814
56815 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56816
56817         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56818         (ranged_convert): Don't save conversion in a temporary struct.
56819         This causes a warning with GCC 4.0.0, and anyway in the typical
56820         case it's not worth the extra 100 bytes or so of code.
56821         (ranged_convert, __mktime_internal): When calling a function via a
56822         pointer P, use P () rather than (*P) (), as we now assume C89 or
56823         better.
56824
56825 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56828         "who -r" failed to give output.  Problem reported by Tim Waugh.
56829
56830         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56831         (xcalloc): Use it to avoid needless tests.
56832         Problem reported by Jim Meyering.
56833
56834 2005-06-20  Derek Price  <derek@ximbiot.com>
56835
56836         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56837         unnecessary for Autoconfs > 2.59c.
56838
56839 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56840
56841         * lib/argp.h (__option_is_short): Check upper limit of
56842         __key. Isprint() requires its argument to have the value
56843         of an unsigned char or EOF.
56844
56845 2005-06-16  Jim Meyering  <jim@meyering.net>
56846
56847         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56848         when either N or S is zero.
56849
56850 2005-06-16  Derek Price  <derek@ximbiot.com>
56851
56852         * m4/bison.m4: Declare YACC & YFLAGS precious.
56853
56854 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56857         multibyte string or pattern, fall back on unibyte matching.
56858         Problem reported by James Youngman.
56859
56860 2005-06-08  Bruno Haible  <bruno@clisp.org>
56861
56862         * modules/csharpcomp: New file.
56863         * MODULES.html.sh (C#): Add csharpcomp.
56864
56865 2005-06-08  Bruno Haible  <bruno@clisp.org>
56866
56867         * m4/csharpcomp.m4: New file, from GNU gettext.
56868
56869 2005-06-08  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/csharpcomp.h: New file, from GNU gettext.
56872         * lib/csharpcomp.c: New file, from GNU gettext.
56873         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56874
56875 2005-06-08  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56878         warning on mingw.
56879
56880 2005-06-07  Derek Price  <derek@ximbiot.com>
56881
56882         Sync from CVS.
56883         * lib/glob_.h: Indent nested #ifdef.
56884
56885 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56886
56887         Sync from coreutils.
56888         Use "file name" when talking about file names, instead of "filename"
56889         or "path", as per the GNU coding standards.
56890         * lib/mkdir-p.c: Renamed from makepath.c.
56891         (make_dir_parents): Renamed from make_path.  All callers changed.
56892         * lib/mkdir-p.h: Likewise.  All includers changed.
56893         * lib/filenamecat.c: Renamed from path-concat.c.
56894         (file_name_concat): Renamed from path_concat.  All callers changed.
56895         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56896         * lib/filenamecat.h: Likewise.  All includers changed.
56897         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56898         in comments or local variable names.
56899         * lib/basename.c: Likewise.
56900         * lib/canonicalize.c, canonicalize.h: Likewise.
56901         * lib/dirname.c, dirname.h: Likewise.
56902         * lib/euidaccess.c: Likewise.
56903         * lib/exclude.c: Likewise
56904         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56905         * lib/fsusage.c, fsuage.h: Likewise.
56906         * lib/fts.c, fts_.h: Likewise.
56907         * lib/getcwd.c: Likewise.
56908         * lib/getloadavg.c: Likewise.
56909         * lib/mkstemp.c: Likewise.
56910         * lib/mountlist.c, mountlist.h: Likewise.
56911         * lib/openat.c, openat.h: Likewise.
56912         * lib/readlink-stub.c: Likewise.
56913         * lib/readutmp.c, readutmp.h: Likewise.
56914         * lib/rename.c: Likewise.
56915         * lib/rmdir.c: Likewise.
56916         * lib/same.c: Likewise.
56917         * lib/savedir.c: Likewise.
56918         * lib/stripslash.c: Likewise.
56919         * lib/tempname.c: Likewise.
56920         * lib/xreadlink.c: Likewise.
56921         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56922         All uses changed.
56923         * lib/exclude.h: Likewise.
56924
56925         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56926         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56927         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56928         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56929         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56930         files have been getting away with it for years (MORE/BSD 4.3
56931         is extinct now).
56932         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56933         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56934
56935         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56936         Define to 256, not 255, as per modern POSIX.
56937
56938 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56939
56940         Sync from coreutils.
56941         Use "file name" when talking about file names, instead of "filename"
56942         or "path", as per the GNU coding standards.
56943         * MODULES.html.sh: mkdir-p renamed from makepath.
56944         filenamecat renamed from path-concat.
56945         * modules/filenamecat: Renamed from modules/path-concat.
56946         (Files): filenamecat.h and filenamecat.c renamed from
56947         path-concat.h and path-concat.c.
56948         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56949         (Include): filenamecat.h, not path-concat.h.
56950         * modules/mkdir-p: Renamed from modules/makepath.
56951         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56952         makepath.c.
56953         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56954         (Include): mkdir-p.h, not makepath.h.
56955
56956 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56957
56958         Sync from coreutils.
56959         * m4/mkdir-p.m4: Renamed from makepath.m4.
56960         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
56961         Rename files from makepath.c to mkdir-p.c, and from
56962         makepath.h to mkdir-p.h.
56963         * m4/filenamecat.m4: Renamed from path-concat.m4.
56964         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
56965         Rename files from path-concat.c to filenamecat.c,
56966         and from path-concat.h to filenamecat.h.
56967         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
56968         "file name" in local variables or comments.
56969         * m4/rename.m4: Likewise.
56970
56971 2005-06-01  Bruno Haible  <bruno@clisp.org>
56972
56973         * modules/csharpexec: New file.
56974         * MODULES.html.sh (C#): New section.
56975
56976 2005-06-01  Bruno Haible  <bruno@clisp.org>
56977
56978         * m4/csharp.m4: New file, from GNU gettext.
56979         * m4/csharpexec.m4: New file, from GNU gettext.
56980
56981 2005-06-01  Bruno Haible  <bruno@clisp.org>
56982
56983         * lib/csharpexec.h: New file, from GNU gettext.
56984         * lib/csharpexec.c: New file, from GNU gettext.
56985         * lib/csharpexec.sh.in: New file, from GNU gettext.
56986
56987 2005-05-31  Derek Price  <derek@ximbiot.com>
56988             Paul Eggert  <eggert@cs.ucla.edu>
56989
56990         Sync from cvs.
56991         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56992
56993 2005-05-31  Derek Price  <derek@ximbiot.com>
56994             Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         Sync from cvs.
56997         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56998
56999 2005-05-29  Derek Price  <derek@ximbiot.com>
57000
57001         * config/srclist.txt (glob_.h, glob.c): Add these files.
57002
57003 2005-05-29  Derek Price  <derek@ximbiot.com>
57004
57005         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57006         * modules/glob: New file.
57007         * modules/getlogin_r: Add link to POSIX spec in description.
57008
57009 2005-05-29  Derek Price  <derek@ximbiot.com>
57010             Paul Eggert  <eggert@cs.ucla.edu>
57011
57012         * m4/glob.m4: New file.
57013
57014 2005-05-29  Derek Price  <derek@ximbiot.com>
57015             Paul Eggert  <eggert@cs.ucla.edu>
57016
57017         * lib/glob_.h, lib/glob.c: New files.
57018
57019 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57020
57021         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57022         * modules/fts-lgpl (Depends-on): Remove gettext.
57023
57024 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57027         and don't require gt_INTTYPES_PRI.
57028
57029 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57030
57031         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57032
57033         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57034         the configuration hassle isn't worth it.
57035         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57036         (LONGEST_MODIFIER, PRIuMAX): Remove.
57037
57038 2005-05-27  Bruno Haible  <bruno@clisp.org>
57039
57040         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57041
57042 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57043
57044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57045         _POSIX_PTHREAD_SEMANTICS for Solaris.
57046
57047 2005-05-25  Derek Price  <derek@ximbiot.com>
57048
57049         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57050
57051 2005-05-25  Derek Price  <derek@ximbiot.com>
57052             Paul Eggert  <eggert@cs.ucla.edu>
57053
57054         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57055         * lib/getlogin_r.c, getlogin_r.h: New files.
57056
57057 2005-05-25  Bruno Haible  <bruno@clisp.org>
57058             Derek Price  <derek@ximbiot.com>
57059
57060         * lib/getlogin_r.h: Simplify API documentation.
57061
57062 2005-05-23  Derek Price  <derek@ximbiot.com>
57063
57064         * modules/minmax (Files): Add m4/minmax.m4.
57065         (configure.ac): Add gl_MINMAX.
57066
57067 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57070         so that unistd-safer.h (GPL'ed code) need not be included.
57071
57072 2005-05-22  Bruno Haible  <bruno@clisp.org>
57073
57074         * m4/minmax.m4: New file.
57075         Based on a patch by Derek Price <derek@ximbiot.com>.
57076
57077 2005-05-22  Bruno Haible  <bruno@clisp.org>
57078
57079         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57080         (INT64_MIN): Fix definition.
57081         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57082
57083         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57084         NEED_SIGNED_INT_TYPES.
57085
57086         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57087         HAVE_SYSTEM_INTTYPES.
57088
57089 2005-05-22  Bruno Haible  <bruno@clisp.org>
57090
57091         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57092         Also include <sys/param.h> if it defines MIN, MAX.
57093         Based on a patch by Derek Price <derek@ximbiot.com>.
57094
57095 2005-05-21  Jim Meyering  <jim@meyering.net>
57096
57097         * modules/fts (Files): Add m4/inttypes-pri.m4.
57098         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57099
57100 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         New fts module.
57103         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57104         (setup_dir, free_dir): New functions.
57105         (enter_dir, leave_dir): Define trivial
57106         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57107         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57108         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57109         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57110         Move to fts-cycle.c.
57111         (fts_open): Use setup_dir.
57112         (fts_close): Use free_dir.
57113         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57114         This adds a label and some gotos, but the alternatives were messier.
57115         Check for memory allocation failure when entering a dir.
57116         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57117         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57118         (FTS): New member fts_cycle, that is a union that contains the
57119         old active_dir_ht and cycle_state.  All uses changed to mention
57120         fts_cycle.ht and fts_cycle.state.
57121         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57122         fts.c, with the following changes:
57123         (setup_dir, free_dir): New functions.
57124         (enter_dir): Now returns bool.  Return true if successful, false
57125         if memory exhausted.  All callers changed.
57126         Do not bother partly cleaning up on
57127         memory allocation failure; that is free_dir's job.
57128         However, free ad if hash_insert fails, to avoid memory leak.
57129         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57130         fts->fts_options to see which union member to use.
57131
57132 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57135         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57136
57137 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57140
57141 2005-05-20  Jim Meyering  <jim@meyering.net>
57142
57143         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57144         Now a macro, to pacify GCC.
57145
57146 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57147
57148         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57149         of -1.
57150
57151 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57152
57153         * lib/chown.c (rpl_chown): Return -1 on failure.
57154
57155 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57158         Don't check for stddef.h.
57159         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57160         don't use its results.
57161         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57162         since we include them unconditionally.  Don't require
57163         AM_STDBOOL_H, since stdbool is a prerequisite.
57164         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57165         since we assume C89 or better.
57166         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57167         as we don't use their results.
57168         Don't check for fchdir, memmove, memset, strrchr, as we use
57169         them unconditionally.
57170         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57171         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57172
57173 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57174
57175         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57176         Include <stddef.h> unconditionally, since we assume C89 now.
57177         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57178         * lib/fts.c: Include fts_.h first, to check interface.
57179         Do not include intprops.h; no longer needed.
57180         Include cycle-check.h and hash.h, since fts_.h no longer does.
57181         Remove unnecessary casts of closedir to void.
57182         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57183         decide whether to decrement nlinks.
57184         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57185         (FTS): Use struct hash_table * instead of Hash_table, so that
57186         we no longer need to include hash.h here.
57187
57188 2005-05-18  Jim Meyering  <jim@meyering.net>
57189
57190         * modules/dirfd (License): Change to LGPL.  Most of the code
57191         is already in the public domain.
57192
57193 2005-05-18  Jim Meyering  <jim@meyering.net>
57194
57195         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57196         Reported by Yoann Vandoorselaere.
57197
57198 2005-05-17  Jim Meyering  <jim@meyering.net>
57199
57200         * m4/fts.m4: New file, from coreutils.
57201
57202 2005-05-17  Jim Meyering  <jim@meyering.net>
57203
57204         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57205
57206 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         Sync from coreutils.
57209         * m4/unlinkdir.m4: New file.
57210
57211 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57212
57213         Sync from coreutils.
57214         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57215         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57216         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57217         White space changes only.
57218         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57219         special.
57220         * lib/yesno.c: Include getline.h, not ctype.h.
57221         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57222         Use getline to remove arbitrary restriction on response length.
57223
57224 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         * config/srclist-update: Spell out "Street" in FSF postal
57227         mail address; this is the style the FSF seems to prefer.
57228
57229         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57230         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57231         this updates FSF postal mail address.
57232
57233         Sync from coreutils.
57234         * modules/unlinkdir: New file.
57235         * modules/yesno (Depends-on): Add getline.
57236         * MODULES.html.sh (File system functions): Add unlinkdir.
57237
57238 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57241         lib/strsep.h:
57242         Change the initial comment to refer to GPL, not LGPL.
57243         gnulib-tool will change it to LGPL as needed.
57244
57245         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57246         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57247         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57248         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57249         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57250         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57251         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57252         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57253         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57254         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57255         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57256         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57257         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57258         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57259         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57260         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57261         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57262         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57263         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57264         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57265         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57266         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57267         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57268         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57269         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57270         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57271         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57272         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57273         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57274         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57275         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57276         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57277         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57278         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57279         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57280         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57281         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57282         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57283         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57284         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57285         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57286         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57287         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57288         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57289         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57290         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57291         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57292         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57293         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57294         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57295         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57296         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57297         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57298         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57299         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57300         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57301         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57302         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57303         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57304         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57305         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57306         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57307         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57308         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57309         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57310         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57311         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57312         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57313         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57314         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57315         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57316         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57317         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57318         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57319         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57320         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57321         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57322         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57323         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57324         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57325         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57326         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57327         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57328         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57329         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57330         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57331         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57332         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57333         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57334         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57335         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57336         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57337         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57338         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57339         lib/yesno.c, lib/yesno.h:
57340         Update FSF postal mail address.
57341
57342 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57343
57344         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57345         tests/test-memmem.c, tests/test-stpncpy.c:
57346         Update FSF postal mail address.
57347
57348 2005-05-13  Bruno Haible  <bruno@clisp.org>
57349
57350         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57351         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57352         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57353         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57354         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57355         Add support for 64-bit integers in the MSVC compiler.
57356
57357 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57358
57359         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57360
57361 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57362
57363         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57364
57365 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57366
57367         * doc/getdate.texi (General date syntax): Don't say that date
57368         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57369         Problem reported by Nic Ferrier.
57370
57371 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57372
57373         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57374         specified in ai_socktype. Fix invalid ai_protocol
57375         check. ai_protocol is usually set to 0 or depending on
57376         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57377         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57378         ai_socktype / ai_protocol in the returned addrinfo structure.
57379
57380 2005-05-10  Simon Josefsson  <jas@extundo.com>
57381
57382         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57383         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57384
57385 2005-05-10  Karl Berry  <karl@gnu.org>
57386
57387         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57388         (from http://www.gnu.org/licenses).
57389         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57390         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57391         fdl.texi suffices.
57392
57393 2005-05-10  Karl Berry  <karl@gnu.org>
57394
57395         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57396         (COPYING.DOC): remove.
57397
57398         * config/srclist-update: new FSF address.
57399
57400 2005-05-10  Derek Price  <derek@ximbiot.com>
57401
57402         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57403         possible.
57404
57405 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57406             Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/inet_ntop: New file.
57409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57410         inet_ntop.
57411
57412 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57413             Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/inet_ntop.m4: New file.
57416
57417 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57418             Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/inet_ntop.h: New file.
57421         * lib/inet_ntop.c: New file, from glibc with modifications.
57422
57423 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * modules/time_r (License): Change to LGPL.
57426         * modules/extensions (License): Change to LGPL.  Actually,
57427         the license is more permissive than that, but currently gnulib-tool
57428         doesn't know how to handle more-permissive licenses.
57429
57430         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57431         Problem reported by Dave Love.
57432
57433 2005-05-08  Jim Meyering  <jim@meyering.net>
57434
57435         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57436         blank.
57437
57438 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57439
57440         * modules/argmatch (Depends-on): Add stdbool.
57441         * modules/backupfile (Depends-on): Likewise.
57442         * modules/chdir-long (Depends-on): Likewise.
57443         * modules/closeout (Depends-on): Likewise.
57444         * modules/cycle-check (Depends-on): Likewise.
57445         * modules/dirname (Depends-on): Likewise.
57446         * modules/fnmatch (Depends-on): Likewise.
57447         * modules/fsusage (Depends-on): Likewise.
57448         * modules/fwriteerror (Depends-on): Likewise.
57449         * modules/getcwd (Depends-on): Likewise.
57450         * modules/getloadavg (Depends-on): Likewise.
57451         * modules/hard-locale (Depends-on): Likewise.
57452         * modules/makepath (Depends-on): Likewise.
57453         * modules/mountlist (Depends-on): Likewise.
57454         * modules/nanosleep (Depends-on): Likewise.
57455         * modules/posixtm (Depends-on): Likewise.
57456         * modules/quotearg (Depends-on): Likewise.
57457         * modules/readtokens (Depends-on): Likewise.
57458         * modules/readtokens0 (Depends-on): Likewise.
57459         * modules/readutmp (Depends-on): Likewise.
57460         * modules/save-cwd (Depends-on): Likewise.
57461         * modules/strftime (Depends-on): Likewise.
57462         * modules/userspec (Depends-on): Likewise.
57463         * modules/utimecmp (Depends-on): Likewise.
57464         * modules/xgetcwd (Depends-on): Likewise.
57465         * modules/xnanosleep (Depends-on): Likewise.
57466         * modules/xstrtod (Depends-on): Likewise.
57467         * modules/yesno (Depends-on): Likewise.
57468
57469 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57470
57471         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57472         needless checks.
57473
57474 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57475
57476         Merge from coreutils.  Among other things,
57477         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57478         * lib/fd-safer.c: New file.
57479         * lib/fcntl-safer.h, open-safer.c: Remove.
57480         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57481         * lib/dup-safer.c: Include unistd-safer.h first.
57482         Don't include errno.h.
57483         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57484         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57485         * lib/file-type.c: Rely on file-type.h change.
57486         * lib/getloadavg.c: Include unistd-safer.h.
57487         (getloadavg): Use safer open.
57488         * lib/getusershell.c: Include "stdio-safer.h".
57489         (getusershell): Use safer fopen.
57490         * lib/long-options.c (long_options): Use NULL rather than 0.
57491         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57492         'free'.
57493         * lib/modechange.c: Likewise.
57494         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57495         (MODE_DONE): New constant.
57496         (struct mode_change): Remove 'next' member.
57497         (make_node_op_equals): New function; like the old one of the
57498         same name, except it allocates an array.
57499         (mode_compile, mode_create_from_ref): Use it.
57500         (mode_compile): Allocate result as an array, not a linked list.
57501         Parse octal string ourself, so that we catch mistakes like "+0".
57502         (mode_adjust): Arg is an array, not a linked list.
57503         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57504         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57505         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57506         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57507         Remove.  This is now stat-macros.h's job.
57508         (talloc): Remove.  All callers replaced by xalloc, so that
57509         our invokers don't have to worry about reporting memory failures.
57510         (make_node_op_equals): Remove.
57511         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57512         New constants.
57513         (struct mode_change): Moved here from modechange.h.
57514         (mode_append_entry): Remove.
57515         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57516         apps to have incorrect behavior.  Use simpler algorithm for head
57517         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57518         Detect more invalid usages rather than having somewhat-random behavior.
57519         Don't insert an "a=" action, as that leads to incorrect behavior.
57520         (mode_compile, mode_create_from_ref): Return NULL on error instead
57521         of an enum, since now there's only one way to have an error.  All
57522         callers changed.
57523         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57524         at the correct time.  Simplify calculation of "+u" and its ilk.
57525         Don't mishandle "+X".
57526         (mode_free): Remove "register" and localize decls.
57527         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57528         (struct mode_change): Move to modechange.c; callers don't
57529         need to see this stuff.
57530         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57531         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57532         (mode_change, mode_adjust): Reflect the new signatures noted above.
57533         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57534         that might redefine system include files.
57535         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57536         (my_usleep): Use NULL rather than (void *) 0.
57537         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57538         Use siginterrupt to specify that system calls should be interrupted.
57539         (rpl_nanosleep): Move initialization of suspended closer to call of
57540         my_usleep.
57541         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57542         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57543         (desirable_utmp_entry): New function.
57544         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57545         using x2nrealloc, to simplify logic.
57546         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57547         size calculation.  Do not assume utmp file is a regular file.
57548         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57549         (READ_UTMP_CHECK_PIDS): New constant.
57550         * lib/save-cwd.c: Include unistd-safer.h.
57551         (save_cwd): Use fd_safer.
57552         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57553         [!_LIBC] Include "stat-macros.h" instead.
57554         * lib/unistd-safer.h (fd_safer): New decl.
57555
57556 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57557
57558         * modules/getloadavg (Depends-on): Add unistd-safer.
57559         * modules/getusershell (Depends-on): Add stdio-safer.
57560         * modules/lstat (Depends-on): Remove xalloc.
57561         * modules/mkstemp (Depends-on): Add stat-macros.
57562         * modules/modechange (Depends-on): Remove xstrtol.
57563         Add stat-macros, xalloc.
57564         * modules/save-cwd (Depends-on): Add unistd-safer.
57565         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57566         * modules/unistd-safer (Files): Add lib/fd-safer.c
57567         (Makefile.am): Remove lib_SOURCES.
57568
57569         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57570         Remove fcntl-safer; unistd-safer supersedes it.
57571
57572 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57573
57574         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57575         AC_HEADER_STAT.
57576         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57577         (gl_PREREQ_CHOWN): Remove.
57578         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57579         it.  Don't require AC_HEADER_STAT.
57580         (gl_PREREQ_LSTAT): Remove.
57581         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57582         Don't require AC_HEADER_STAT.
57583         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57584         (gl_PREREQ_RMDIR): Remove.
57585         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57586         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57587         the stat-macros module a prerequisite.
57588         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57589         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57590         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57591         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57592         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57593         variable names.
57594         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57595         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57596         variable prefixes.
57597         * m4/fcntl-safer.m4: Remove.
57598         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57599         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57600         Invoke gl_PREREQ_FD_SAFER.
57601         (gl_PREREQ_FD_SAFER): New macro.
57602         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57603         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57604         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57605         Remove duplicate call to AC_LIBOBJ(readutmp).
57606         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57607
57608         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57609         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57610
57611 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * MODULES.html.sh (Misc): Add byteswap.
57614
57615 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57616
57617         * modules/getcwd (Depends-on): Add extensions.
57618         * modules/openat (Depends-on): Likewise.
57619
57620 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57621
57622         * modules/byteswap: New file.
57623
57624 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57625
57626         * m4/byteswap.m4: New file.
57627
57628 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57629
57630         * lib/byteswap_.h: New file.
57631
57632 2005-04-25  Karl Berry  <karl@gnu.org>
57633
57634         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57635
57636 2005-04-25  Albert Chin  <china@thewrittenword.com>
57637
57638         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57639         Toolkit C bug.
57640
57641 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57642
57643         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57644         (func_ln_if_changed) Remove forcibly for no error message
57645         in case file does not exist.
57646
57647 2005-04-19  Simon Josefsson  <jas@extundo.com>
57648
57649         * gnulib-tool (Options): Make --symlink mean --symbolic.
57650
57651 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57652
57653         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57654
57655 2005-04-16  Simon Josefsson  <jas@extundo.com>
57656
57657         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57658
57659 2005-04-15  Simon Josefsson  <jas@extundo.com>
57660
57661         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57662
57663 2005-04-15  Simon Josefsson  <jas@extundo.com>
57664
57665         * gnulib-tool: Rename --symlink to --symbolic.
57666
57667 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57668
57669         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57670         symbolic links to files instead of copying/moving.  Add --aux-dir,
57671         specifying directory relative --dir where auxiliary build tools
57672         are placed.
57673
57674 2005-04-14  Bruno Haible  <bruno@clisp.org>
57675
57676         * modules/allocsa (License): Change to LGPL.
57677         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57678
57679 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57682         that "UTC +1 second" continues to work.  Problem reported
57683         by Dmitry V. Levin.
57684         (relunit_snumber): New rule.
57685         (relunit): Use it.
57686
57687 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * lib/getdate.y (universal_time_zone_table): New constant.
57690         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57691         universal_time_zone_table.
57692         (lookup_zone): Prefer universal_time_zone_table to
57693         local_time_zone_table, so that "GMT" time stamps are allowed in
57694         London during the summer.  Problem reported by Ian Abbott.
57695
57696 2005-04-12  Jim Meyering  <jim@meyering.net>
57697
57698         * lib/human.c (humblock): Set *options even when returning due to
57699         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57700         warning from gcc-4.
57701
57702 2005-04-09  Jim Meyering  <jim@meyering.net>
57703
57704         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57705         -Wuninitialized: initialize tm0.tm_year.
57706
57707 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57708
57709         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57710         count, since there's no maximum.  All uses changed.
57711         Add member dsts_seen.
57712         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57713         not being INT_MAX.
57714         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57715         Use pc_rels_seen to decide whther a date is absolute.
57716
57717         * lib/getdate.y (number): Don't overwrite year.
57718         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57719         check.
57720
57721 2005-04-02  Simon Josefsson  <jas@extundo.com>
57722
57723         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57724         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57725
57726 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57727
57728         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57729         where no absolute path name can be longer than PATH_MAX.
57730
57731 2005-03-27  Jim Meyering  <jim@meyering.net>
57732
57733         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57734
57735 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57738         "one's complement" -> "ones' complement" in comment, as per Knuth.
57739         "value of type" -> "type or expression" in comment.
57740         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57741
57742 2005-03-26  Jim Meyering  <jim@meyering.net>
57743
57744         Comment nits.
57745         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57746         Correct typos: s/or/of/.
57747
57748 2005-03-26  Jim Meyering  <jim@meyering.net>
57749
57750         * modules/check-include-files: Move to ../ and rename to...
57751         * check-module: ...this.
57752
57753 2005-03-25  Jim Meyering  <jim@meyering.net>
57754
57755         * modules/xvasprintf (Files): Add xalloc.h.
57756
57757 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57758
57759         * modules/gettext (Files): config/config.rpath ->
57760         build-aux/config.rpath
57761         * modules/iconv (Files): Likewise.
57762         Problem reported by Oskar Liljeblad.
57763
57764 2005-03-23  Jim Meyering  <jim@meyering.net>
57765
57766         * modules/check-include-files: New script to check for
57767         missing dependencies, multiple includes, etc.
57768
57769         * modules/c-strtold (Depends-on): Add xalloc.
57770         * modules/c-strtod (Depends-on): Add xalloc.
57771         * modules/hash (Depends-on): Add xalloc.
57772         (Files): Remove lib/xalloc.h.
57773
57774         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57775         * modules/userspec (Files): Add lib/inttostr.h.
57776
57777 2005-03-23  Jim Meyering  <jim@meyering.net>
57778
57779         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57780
57781 2005-03-22  Jim Meyering  <jim@meyering.net>
57782
57783         * modules/stat-macros: New module.
57784         * modules/canonicalize, modules/euidaccess, modules/file-type,
57785         * modules/filemode, modules/lchown, modules/makepath,
57786         * modules/rmdir, modules/stat: Depend on new stat-macros module
57787         rather than listing lib/stat-macros.h manually.
57788         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57789
57790 2005-03-22  Jim Meyering  <jim@meyering.net>
57791
57792         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57793
57794 2005-03-22  Bruno Haible  <bruno@clisp.org>
57795
57796         * config/srclist.txt: Replace target directory 'config' with
57797         'build-aux'.
57798         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57799         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57800         ../build-aux/.
57801
57802 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57803
57804         * modules/chdir-long (Depends-on): Add mempcpy.
57805
57806         * modules/acl, modules/backupfile, modules/c-strtod,
57807         modules/c-strtold, modules/canon-host, modules/canonicalize,
57808         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57809         modules/exclude, modules/exitfail, modules/file-type,
57810         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57811         modules/getdate, modules/getline, modules/getpagesize,
57812         modules/getpass, modules/getugroups, modules/group-member,
57813         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57814         modules/inttostr, modules/long-options, modules/makepath,
57815         modules/md5, modules/memcasecmp, modules/memcoll,
57816         modules/modechange, modules/mountlist, modules/path-concat,
57817         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57818         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57819         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57820         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57821         modules/strftime, modules/strndup, modules/strverscmp,
57822         modules/timespec, modules/unlocked-io, modules/userspec,
57823         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57824         modules/yesno:
57825         Remove lib_SOURCES line from Makefile.am section, as this is now
57826         done automatically by the corresponding Autoconf macro.
57827
57828 2005-03-21  Jim Meyering  <jim@meyering.net>
57829
57830         Changes imported from coreutils.
57831
57832         * lib/cycle-check.c: Don't include xalloc.h.
57833
57834         * lib/path-concat.c: Don't include assert.h.
57835         (path_concat): Remove assertion that would have triggered
57836         for ABASE starting with more than one slash.
57837         Reported by Andreas Schwab.
57838
57839         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57840         properly when ABASE is an absolute file name.
57841         Correct the description of this function.
57842         Include <assert.h>.
57843         Add an assertion and a test driver.
57844         This fixes a bug introduced on 2004-07-02.
57845         Andreas Schwab reported the resulting failure of cp --parents:
57846         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57847
57848 2005-03-21  Jim Meyering  <jim@meyering.net>
57849
57850         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57851         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57852
57853 2005-03-21  Jim Meyering  <jim@meyering.net>
57854         and  Paul Eggert  <eggert@cs.ucla.edu>
57855
57856         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57857         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57858         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57859         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57860         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57861         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57862         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57863         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57864         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57865         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57866         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57867         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57868         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57869         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57870         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57871         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57872         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57873         for these modules.
57874
57875 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57876
57877         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57878         (which shouldn't happen), generate nothing instead of returning 0
57879         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57880
57881 2005-03-16  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57884         HAVE_LONGLONG_64BIT.
57885
57886 2005-03-16  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57889         HAVE_LONGLONG_64BIT.
57890
57891 2005-03-16  Bruno Haible  <bruno@clisp.org>
57892
57893         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57894         HAVE_LONGLONG_64BIT.
57895
57896 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57899         reliably distinguish strftime failure from empty output on POSIX
57900         hosts.
57901
57902 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57905         (iconv_string): Don't guess a size-zero buffer, as that might cause
57906         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57907         result would be 'too large', where 'too large' is (heuristically)
57908         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57909         overflow concerns.  This will prevent some unwanted malloc failures
57910         when the inputs are very large.
57911
57912 2005-03-15  Karl Berry  <karl@gnu.org>
57913
57914         * config/srclist.txt (config.rpath): from gettext.
57915         * config/config.rpath: update.
57916
57917 2005-03-15  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57920         to 'negate'.
57921
57922         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57923         variable.
57924
57925         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57926         results.
57927
57928 2005-03-14  Simon Josefsson  <jas@extundo.com>
57929
57930         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57931         <fx@gnu.org>.
57932
57933 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57936         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57937         intprops.h.
57938         * lib/strtol.c: Likewise.
57939
57940 2005-03-14  Jim Meyering  <jim@meyering.net>
57941
57942         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57943         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57944         to be nonzero so that we (and caller) can detect the difference
57945         between a valid zero-length expansion and an error return, even
57946         when the underlying strftime fails before writing anything into
57947         that location.
57948
57949 2005-03-14  Bruno Haible  <bruno@clisp.org>
57950
57951         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57952         Update from GNU gettext 0.14.3.
57953
57954 2005-03-10  Jim Meyering  <jim@meyering.net>
57955
57956         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
57957
57958 2005-03-10  Jim Meyering  <jim@meyering.net>
57959
57960         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
57961         so that this module works on systems without fchdir.
57962
57963 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
57964
57965         Factor int-properties macros into a single file, except for
57966         glibc-related files.
57967         * lib/intprops.h: New file.
57968         * lib/getloadavg.c: Include it instead of limits.h.
57969         (INT_STRLEN_BOUND): Remove.
57970         * lib/human.c: Include intprops.h.
57971         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
57972         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
57973         302/1000.
57974         * lib/inttostr.h: Include intprops.h instead of limits.h.
57975         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
57976         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
57977         for consistency with intprops.h.
57978         (time_t_is_integer, twos_complement_arithmetic): Use them.
57979         * lib/sig2str.h: Include <signal.h>, intprops.h.
57980         (INT_STRLEN_BOUND): Remove.
57981         * lib/strftime.c (TYPE_SIGNED): Remove.
57982         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
57983         * lib/strtol.c: Adjust comments to match intprops.h.
57984         * lib/userspec.c: Include intprops.h.
57985         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
57986         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
57987         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
57988         instead of rolling our own expressions.
57989         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
57990
57991         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
57992         instead of int.
57993         (my_strftime): Do not mishandle years close to INT_MAX, by doing
57994         the right thing even if adding 1900 would overflow.  Similarly
57995         for tm_mon + 1 and tm_yday + 1.
57996         Make %Y always equivalent to %C%y, and similarly for %G and %g.
57997         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
57998         (DO_SIGNED_NUMBER): New macro.
57999         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58000
58001 2005-03-07  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58004
58005 2005-03-07  Bruno Haible  <bruno@clisp.org>
58006
58007         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58008
58009 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58010
58011         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58012         (func_import): Only replace files via --import when they have actually
58013         changed.
58014
58015 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58016
58017         * m4/mmap-anon.m4: New file.
58018         * m4/pagealign_alloc.m4: New file.
58019
58020 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58021             Bruno Haible  <bruno@clisp.org>
58022
58023         * modules/pagealign_alloc: New file.
58024         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58025
58026 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58027             Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/pagealign_alloc.h: New file.
58030         * lib/pagealign_alloc.c: New file.
58031
58032 2005-03-03  Bruno Haible  <bruno@clisp.org>
58033
58034         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58035         Use an all-permissive copyright notice, recommended by RMS.
58036
58037 2005-03-02  Bruno Haible  <bruno@clisp.org>
58038
58039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58040         of AIX, the replacement has to be done only after <string.h> is
58041         included, therefore not in config.h. stpncpy.h does the replacement,
58042         and stpncpy.c uses it.
58043
58044 2005-03-02  Bruno Haible  <bruno@clisp.org>
58045
58046         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58047         stpncpy.c uses it.
58048
58049 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58052         The workaround isn't strictly needed for POSIX conformance, and
58053         it's too much of a pain to configure and maintain.  We'll ask
58054         people to fix their kernels instead.
58055         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58056         (NANOSLEEP_BUG_WORKAROUND): Remove.
58057         (xnanosleep): Remove the workaround.
58058
58059 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58062         Reported by Derek Price.
58063         (Include): Add "timespec.h".
58064
58065         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58066
58067 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58068
58069         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58070         to detect nanosleep bug.
58071
58072 2005-03-01  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58075
58076 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * modules/gethrxtime: New file.
58079         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58080         (Depends-on): Add gethrxtime.
58081         (configure.ac): Add gl_XNANOSLEEP.
58082         (Makefile.am): Remove lib_SOURCES line.
58083
58084 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58087         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58088
58089 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58090
58091         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58092         * lib/timespec.h (gettime): Return void, since it always
58093         succeeds now.  All uses changed.
58094         * lib/gettime.c (gettime) Likewise.
58095         [HAVE_NANOTIME]: Prefer nanotime.
58096         Assume gettimeofday succeeds, as POSIX requires.
58097         Assime time () succeeds, since other code already does.
58098         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58099         (timespec_subtract): Remove.
58100         (NANOSLEEP_BUG_WORKAROUND): New constant.
58101         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58102         things considerably.  Use it only on GNU/Linux hosts, since the
58103         workaround shouldn't be needed elsewhere.
58104
58105 2005-02-24  Bruno Haible  <bruno@clisp.org>
58106
58107         * modules/gettext (Files): Add m4/glibc2.m4.
58108
58109 2005-02-24  Bruno Haible  <bruno@clisp.org>
58110
58111         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58112         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58113         * m4/progtest.m4:
58114         Update from GNU gettext 0.14.2.
58115         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58116
58117 2005-02-24  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58120         * lib/config.charset: Update from GNU gettext 0.14.2.
58121
58122 2005-02-24  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/gettext.h: Update from GNU gettext 0.14.2.
58125
58126 2005-02-23  Simon Josefsson  <jas@extundo.com>
58127
58128         * m4/iconvme.m4: New file.
58129
58130 2005-02-23  Jim Meyering  <jim@meyering.net>
58131
58132         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58133         change.
58134         Thanks to Bruno Haible for catching it.
58135
58136 2005-02-22  Simon Josefsson  <jas@extundo.com>
58137
58138         * modules/iconvme: New file.
58139
58140         * MODULES.html.sh: Add iconvme.
58141
58142 2005-02-22  Simon Josefsson  <jas@extundo.com>
58143
58144         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58145
58146 2005-02-22  Simon Josefsson  <jas@extundo.com>
58147
58148         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58149
58150 2005-02-22  Jim Meyering  <jim@meyering.net>
58151
58152         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58153         s/ifndef/ifdef/.
58154
58155 2005-02-20  Neil Conway  <neilc@samurai.com>
58156
58157         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58158         returned by OSX/Darwin if the specified buffer is not large
58159         enough for the hostname.
58160
58161 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58162
58163         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58164         pass it to _help, otherwise the latter coredumps trying to
58165         dereference state.root_argp.
58166
58167 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * modules/chdir-long (Depends-on): Add memrchr.
58170         * modules/memrchr (Files): Add lib/memrchr.h.
58171         (Include): "memrchr.h".
58172
58173 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58174
58175         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58176
58177 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         * lib/memrchr.h: New file.
58180         * lib/chdir-long.c: Include it.
58181         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58182         Don't bother including stddef.h.
58183
58184 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58187         inclusion.
58188         Include <sys/types.h>, for dev_t.
58189         (ME_DUMMY, ME_REMOTE): Move from here....
58190         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58191         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58192         Dmitry V. Levin.
58193         Include mountlist.h first, to test the interface.
58194
58195 2005-01-29  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/progname.c (program_name): Initialize.
58198         Needed when linking statically on MacOS X.
58199
58200 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58201
58202         Sync from coreutils.
58203         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58204         (Depends-on): Add c-strtod.
58205         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58206
58207 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         Sync from coreutils.
58210         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58211
58212         Remove files that are specific to coreutils.
58213         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58214
58215 2005-01-28  Bruno Haible  <bruno@clisp.org>
58216
58217         * modules/javacomp: New file.
58218         * MODULES.html.sh (Java): Add javacomp.
58219
58220 2005-01-28  Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/javacomp.m4: New file, from GNU gettext.
58223
58224 2005-01-28  Bruno Haible  <bruno@clisp.org>
58225
58226         * lib/javacomp.sh.in: New file, from GNU gettext.
58227         * lib/javacomp.h: New file, from GNU gettext.
58228         * lib/javacomp.c: New file, from GNU gettext.
58229
58230 2005-01-26  Simon Josefsson  <jas@extundo.com>
58231
58232         * lib/gai_strerror.c: Use GPL in header.
58233
58234 2005-01-26  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/javaexec: New file.
58237         * MODULES.html.sh (Java): Add javaexec.
58238
58239 2005-01-26  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/javaexec.m4: New file, from GNU gettext.
58242
58243 2005-01-26  Bruno Haible  <bruno@clisp.org>
58244
58245         * lib/javaexec.sh.in: New file, from GNU gettext.
58246         * lib/javaexec.h: New file, from GNU gettext.
58247         * lib/javaexec.c: New file, from GNU gettext.
58248
58249 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58250
58251         * modules/lchown (Depends-on): Remove lchown.h
58252
58253 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58254
58255         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58256         must be defined if the header file was not found, in order
58257         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58258
58259 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58260
58261         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58262         initializers for struct pentry_state.
58263         (__argp_error): Check return value of __asprintf
58264         (__argp_failure): Translate error message
58265
58266         * lib/argp-parse.c: Removed braces around the expansion of N_()
58267
58268 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58271         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58272         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58273         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58274         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58275         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58276         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58277         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58278         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58279         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58280         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58281         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58282         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58283         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58284         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58285         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58286         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58287         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58288         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58289         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58290         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58291         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58292         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58293         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58294         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58295         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58296         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58297         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58298         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58299         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58300         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58301         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58302         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58303         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58304         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58305         Use an all-permissive copyright notice, recommended by RMS.
58306
58307 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58308
58309         * modules/chdir-long (Depends-on): Remove mempcpy.
58310
58311 2005-01-21  Jim Meyering  <jim@meyering.net>
58312
58313         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58314         same value as for Solaris 9.
58315
58316         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58317         component length.  This included changing the parameter to be
58318         of type `char *' rather than `char const *'.
58319         * lib/chdir-long.h (chdir_long): Update prototype.
58320
58321         * lib/openat.c (fdopendir, fstatat): New functions.
58322         * lib/openat.h: Include headers required for use of DIR and struct
58323         stat.
58324         [AT_SYMLINK_NOFOLLOW]: Define.
58325         (fdopendir, fstatat): Add prototypes.
58326
58327 2005-01-21  Bruno Haible  <bruno@clisp.org>
58328
58329         * modules/classpath: New file.
58330         * MODULES.html.sh (Java): Add classpath.
58331
58332 2005-01-21  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/classpath.h: New file, from GNU gettext.
58335         * lib/classpath.c: New file, from GNU gettext.
58336
58337 2005-01-20  Simon Josefsson  <jas@extundo.com>
58338
58339         * modules/version-etc-fsf: New file.
58340
58341 2005-01-20  Simon Josefsson  <jas@extundo.com>
58342
58343         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58344         * lib/version-etc.c: Remove version_etc_copyright.
58345         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58346         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58347
58348 2005-01-20  Simon Josefsson  <jas@extundo.com>
58349
58350         * lib/base64.h (isbase64): Add.
58351
58352         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58353         using a unsigned prototype, don't inline.
58354         (base64_decode): Use it.
58355
58356 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58359         it.
58360
58361 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         * lib/save-cwd.c (save_cwd): Remove code to support the case
58364         where fchdir is missing or flaky.
58365
58366 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58367
58368         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58369
58370 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58371
58372         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58373         AC_LIBSOURCES now does this.
58374         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58375         with new ullong_max module.
58376
58377 2005-01-19  Bruno Haible  <bruno@clisp.org>
58378
58379         * modules/sh-quote: New file.
58380         * MODULES.html.sh (Executing programs): Add sh-quote.
58381
58382 2005-01-19  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/sh-quote.h: New file, from GNU gettext.
58385         * lib/sh-quote.c: New file, from GNU gettext.
58386
58387 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         Merge from coreutils.
58390         * m4/ullong_max.m4: New file.
58391         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58392         (gl_MACROS): Assume localeconv exists.
58393
58394 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58395
58396         Merge changes from coreutils, as described below in several
58397         changelogs dated today.
58398
58399         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58400         (O_DIRECTORY): Remove; not needed here, since "." must be
58401         a directory.  All uses removed.
58402         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58403         universal on Suns, and we also need to test for IRIX.
58404         Revamp code to use 'if' rather than '#if'.
58405         Avoid unnecessary comparison of cwd->desc to 0.
58406
58407         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58408         for known valid error numbers rather than observed invalid ones.
58409
58410 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * modules/ullong_max: New file.
58413
58414         * modules/chdir-long, modules/openat: New files.
58415         * modules/save-cwd (Depends-on): Depend on chdir-long.
58416         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58417
58418 2005-01-18  Jim Meyering  <jim@meyering.net>
58419
58420         Merge from coreutils.
58421         * m4/chdir-long.m4, m4/openat.m4: New files.
58422         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58423         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58424         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58425         is sane and DOES follow symlinks.  Besides, testing 20 different
58426         systems found no broken chown implementations.
58427         Prompted by a change in rsync's copy of this macro.
58428         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58429
58430         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58431
58432         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58433         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58434         NULL-means-set-to-current-time semantics.
58435         Remove temporary file immediately, rather than waiting
58436         for configure's at-exit trap code to do it.
58437
58438 2005-01-18  Jim Meyering  <jim@meyering.net>
58439
58440         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58441
58442         * lib/utimens.c (futimens): Account for the fact that futimes
58443         can also fail with errno == ENOSYS or errno == ENOENT.
58444         Patch from Dmitry V. Levin.
58445
58446         Change the name of the robust chdir function from chdir to chdir_long.
58447         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58448         (restore_cwd): Use chdir_long, not chdir.
58449         * lib/chdir-long.c: Renamed from chdir.c.
58450         * lib/chdir-long.h: Renamed from chdir.h.
58451         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58452         Hurd.
58453
58454 2005-01-18  Bruno Haible  <bruno@clisp.org>
58455
58456         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58457         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58458         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58459         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58460         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58461         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58462         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58463         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58464         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58465         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58466         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58467         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58468         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58469         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58470         Use an all-permissive copyright notice, recommended by RMS.
58471
58472 2005-01-18  Bob Proulx  <bob@proulx.com>
58473
58474         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58475         simplify offsetof() macro construct to avoid compile failure with
58476         native HP-UX 11.0 ANSI C compiler.
58477
58478 2005-01-17  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58481         redundant because stpncpy.m4 takes care of it.
58482
58483 2005-01-17  Bruno Haible  <bruno@clisp.org>
58484
58485         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58486
58487 2005-01-17  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58490         used.
58491
58492 2005-01-17  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/fwriteerror.h (fwriteerror): Change specification to include
58495         fclose.
58496         * lib/fwriteerror.c: Include <stdbool.h>.
58497         (fwriteerror): At the end, close the file stream. Record whether
58498         stdout was already closed.
58499
58500 2005-01-17  Bruno Haible  <bruno@clisp.org>
58501
58502         * lib/execute.c (environ): Declare if needed.
58503         * lib/pipe.c (environ): Likewise.
58504         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58505
58506 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58507
58508         * modules/argp: Depend on vsnprintf
58509
58510 2005-01-10  Jim Meyering  <jim@meyering.net>
58511
58512         * modules/closeout (Depends-on): Add atexit.
58513
58514 2005-01-06  Bruno Haible  <bruno@clisp.org>
58515
58516         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58517
58518 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58519
58520         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58521         definitions to be after all include files, to avoid collisions.
58522         Problem reported by Bob Proulx.
58523
58524 2005-01-04  Jim Meyering  <jim@meyering.net>
58525
58526         Changes imported from coreutils.
58527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58528         as the mkstemp template, use a temporary directory and an
58529         8.3-friendly template to avoid trouble on systems like DJGPP.
58530         Reported by Juan M. Guerrero via Stepan Kasal.
58531         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58532         close. Remove the temporary directory right away, rather than waiting
58533         for configure's at-exit trap code to do it.
58534         Suggestion from Stepan Kasal.
58535
58536 2005-01-01  Simon Josefsson  <jas@extundo.com>
58537
58538         * gnulib-tool: Print #include directives when --import'ing.
58539
58540 2004-12-28  Simon Josefsson  <jas@extundo.com>
58541
58542         * tests/test-base64.c: Include required header files.  Remove
58543         unused variables.
58544
58545 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58546
58547         * modules/error (Depends-on): Remove gettext.
58548
58549 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58552         not needed.  This removes a dependency on the gettext module.
58553         [defined _LIBC]: Do not include <libintl.h>; not needed.
58554
58555 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58556
58557         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58558         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58559
58560 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58561
58562         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58563         HAVE_DECL_STRTOLD.
58564
58565 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58566
58567         * modules/getdate (Depends-on): Remove alloca-opt.
58568
58569 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58570
58571         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58572
58573 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * lib/argp-parse.c: Include <stddef.h>.
58576         (alignof, alignto): New macros.
58577         (parser_init): Don't assume that void * is aligned sufficiently
58578         for struct option.
58579
58580         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58581         need to extend the stack.
58582         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58583         large.
58584
58585 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58586
58587         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58588
58589 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58592         (2004-10-24) change.  Apparently this was a false alarm.
58593
58594         * modules/getdate: Depend on alloca-opt, not alloca.
58595
58596 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58597
58598         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58599         Remove now-obsolete comment about AIX.
58600         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58601         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58602         (YYMAXDEPTH): New macro.
58603
58604 2004-12-18  Simon Josefsson  <jas@extundo.com>
58605
58606         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58607
58608 2004-12-18  Bruno Haible  <bruno@clisp.org>
58609
58610         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58611
58612 2004-12-18  Bruno Haible  <bruno@clisp.org>
58613
58614         * lib/fatal-signal.c (fatal_signals): Make non-const.
58615         (init_fatal_signals): New function.
58616         (uninstall_handlers, install_handlers): Ignore signals that were set to
58617         SIG_IGN.
58618         (at_fatal_signal): Call init_fatal_signals.
58619         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58620         SIG_IGN.
58621         Reported by Paul Eggert.
58622
58623 2004-12-18  Bruno Haible  <bruno@clisp.org>
58624
58625         * doc/alloca.texi: New file.
58626         * doc/alloca-opt.texi: New file.
58627
58628 2004-12-17  Jim Meyering  <jim@meyering.net>
58629
58630         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58631         Otherwise, install-sh could exit with improper exit status when
58632         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58633
58634 2004-12-16  Simon Josefsson  <jas@extundo.com>
58635
58636         * tests/test-base64.c: Add license.
58637
58638 2004-12-15  Stepan Kasal  <address@hidden>
58639
58640         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58641
58642 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58643
58644         * modules/getcwd (Files): Add m4/d-ino.m4.
58645         Suggested by Mark D. Baushke.
58646
58647 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * lib/getdate.y (textint): New member "negative".
58650         (time_zone_hhmm): New function.
58651         Expect 14 shift-reduce conflicts, not 13.
58652         (o_colon_minutes): New rule.
58653         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58654         (yylex): Set the "negative" member of signed numbers.
58655
58656 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * doc/getdate.texi (Time of day items, Time zone items):
58659         Describe new formats +00:00, UTC+00:00.
58660
58661 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58664         spurious "-l"s.  Problem reported by Stepan Kasal.
58665
58666 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58667
58668         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58669         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58670
58671 2004-12-04  Simon Josefsson  <jas@extundo.com>
58672
58673         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58674         Vandoorselaere <yoann@prelude-ids.org>.
58675
58676 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         Changes imported from coreutils.
58679         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58680         exist.
58681         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58682
58683 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58684
58685         Changes imported from coreutils.
58686         * lib/hard-locale.c: Assume <locale.h> exists.
58687         Include "strdup.h".
58688         (GLIBC_VERSION): New macro.
58689         (hard_locale): Assume setlocale exists.
58690         Rewrite to avoid #ifdef.
58691         Use strdup rather than malloc + strcpy.
58692         * lib/human.c: Assume <locale.h> exists.
58693         (human_readable): Assume localeconv exists.
58694
58695 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * modules/hard-locale (Depends-on): Add strdup.
58698
58699 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58700
58701         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58702         convert T2, not T.  (Imported from libc.)
58703
58704 2004-11-30  Simon Josefsson  <jas@extundo.com>
58705
58706         * modules/restrict (License): Change to LGPL.
58707
58708 2004-11-30  Simon Josefsson  <jas@extundo.com>
58709
58710         * m4/restrict.m4: Add copyright and copying conditions.
58711
58712 2004-11-30  Simon Josefsson  <jas@extundo.com>
58713
58714         * m4/base64.m4: New file.
58715
58716 2004-11-30  Simon Josefsson  <jas@extundo.com>
58717
58718         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58719         base64.
58720
58721         * tests/test-base64.c: New file.
58722
58723         * modules/base64: New file.
58724
58725 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58728         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58729
58730         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58731
58732 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58735         (__getcwd.c): Don't restore errno; glibc doesn't.
58736         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58737         first, falling back to our code only if its results look suspicious.
58738         Ensure that the resulting buffer is only as large as necessary.
58739
58740         * lib/readutmp.c: Include readutmp.h first.
58741         Include <errno.h>, since readutmp.h no longer does that.
58742         * lib/readutmp.h: Don't include <errno.h>,
58743         <sys/param.h>, <time.h>; not needed to establish interface.
58744         (errno): Remove decl.
58745         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58746         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58747         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58748
58749 2004-11-28  Simon Josefsson  <jas@extundo.com>
58750
58751         * lib/base64.h, base64.c: New file.
58752
58753 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58756
58757 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58760         (Depends-on): Remove pathmax, same.  Add mempcpy.
58761         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58762         (Makefile.am): Append getcwd.h to lib_SOURCES.
58763         (Include): Add getcwd.h.
58764         (Maintainer): Change from Jim Meyering to "all, glibc",
58765         since getdate now uses intended-for-glibc code.
58766         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58767         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58768
58769 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58772         HP's ANSI C compiler.
58773         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58774         Declaring int functions causes warnings on some modern systems and
58775         shouldn't be needed to compile on ancient ones.
58776         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58777         defined.
58778
58779         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58780         with the following changes.
58781         (__set_errno): Parenthesize properly.
58782         Include <stdbool.h>.
58783         (MIN, MAX, MATCHING_INO): New macros.
58784         (__getcwd): Define with prototype, not K&R form.
58785         Use heuristics to allocate default buffer on stack if possible.
58786         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58787         behavior, and to avoid the PATH_MAX limit when computing
58788         ../../../../...
58789         Use MATCHING_INO to compare inode number to file.
58790         Check for arithmetic overflow in size calculations.
58791         Fix bug in reallocation of dot array that caused getcwd to fail
58792         on directories nested deeper than 75.
58793         Be more careful about saving errno on error.
58794         Do not use realloc; use only free+malloc, as this is a bit
58795         more flexible and avoids a needless copy operation.
58796         Do not inspect st_dev and st_ino for symbolic links; POSIX
58797         doesn't specify the latter.
58798         Check for closedir errors.
58799         Avoid needless casts.
58800         Use "#ifdef weak_alias" around weak_alias, to be like other
58801         glibc code.
58802         The following changes to getcwd.c have effect only when used in
58803         gnulib; they have no effect inside glibc proper.
58804         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58805         as alloca isn't used.
58806         (alloca, __alloca): Likewise.
58807         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58808         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58809         unconditionally, as gnulib assumes C89 or better.
58810         Do not include <sys/param.h>.
58811         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58812         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58813         better.
58814         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58815         Include <dirent.h> in a way that is compatible with modern Autoconf.
58816         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58817         New macros, if not already defined.
58818         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58819         Use "_LIBC", not "defined _LIBC", for consistency.
58820         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58821         a mempcpy module.
58822         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58823         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58824         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58825         credit only to Jim Meyering and adjust the copyright dates.
58826         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58827         <stdlib.h>, <unistd.h>, "pathmax.h".
58828         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58829         (INITIAL_BUFFER_SIZE): Remove.
58830         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58831
58832 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58833
58834         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58835         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58836         Use the _ONCE methods, for efficiency.
58837         Check for fcntl.h.  In test program, include <errno.h>
58838         and <fcntl.h> if available.  Remove old K&R cruft from
58839         test program.  Check for common errors in GNU/Linux,
58840         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58841         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58842         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58843         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58844         name accordingly.
58845         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58846         accommodate new getcwd.c.
58847         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58848         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58849         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58850         that's all we need now.
58851
58852 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58853
58854         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58855         argp-parse.c depends on getopt internals, that means we should
58856         always use our getopt, to be on the safe side.
58857         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58858         order not to spoil the result of an eventual previous invocation
58859         of gl_GETOPT_SUBSTITUTE.
58860
58861 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58862
58863         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58864         redefinition warnings. To avoid them, include the defines
58865         in `#if !defined __need_getopt ... #endif'. The only place
58866         where __getopt_argv_const is used is in definitions
58867         of getopt_long and getopt_long_only below, which are as well
58868         protected by `#ifndef __need_getopt'.
58869         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58870         __need_getopt after including <stdio.h> and <unistd.h> These
58871         headers might have defined it.
58872
58873 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58874
58875         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58876
58877 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58880         (futimens): New function, which uses futimes if available.
58881         (futimens, utimens): Support timespec==NULL, with same semantics
58882         as utime and utimens.
58883         * lib/utimens.h (futimens): New decl.
58884
58885 2004-11-23  Jim Meyering  <jim@meyering.net>
58886
58887         * lib/getopt_.h: Remove trailing blanks.
58888
58889 2004-11-23  Jim Meyering  <jim@meyering.net>
58890
58891         * lib/__fpending.c: Add comment.
58892
58893 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         * modules/canonicalize (Depends-on): Add xreadlink.
58896         Problem reported by James Youngman.
58897
58898 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58899
58900         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58901         New macros.
58902         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58903         optopt): Use them instead of invoking ## directly; otherwise, the
58904         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58905
58906 2004-11-19  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/strtok_r.c: Move comments from here...
58909         * lib/strtok_r.h: ... to here.
58910
58911 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58912
58913         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58914         implementations that mishandle size_t overflow.
58915
58916 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58919         might fail.  Problem reported by Yoann Vandoorselaere.
58920         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58921         implementations that mishandle size_t overflow.
58922
58923 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         * modules/canon-host (Depends-on): Add strdup.
58926
58927 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58930
58931 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * lib/canon-host.c: Include "strdup.h".
58934         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58935         Use strdup instead of malloc/strcpy to duplicate strings.
58936
58937         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58938         (human_space_before_unit): New constant.
58939         * lib/human.c (human_readable): Support it.
58940
58941         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58942         (xgetcwd): Set errno correctly when failing.
58943         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58944         the failure is actually due to a PATH_MAX problem.
58945
58946         Further getopt changes to make it more likely that glibc will
58947         buy the changes back.
58948         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58949         (getopt): Use it, so to preserve glibc semantic
58950         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58951         when compiling for libc.
58952         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58953         (getopt_long, getopt_long_only): Use it.
58954
58955         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58956         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
58957         (getopt): Argv is now char * const *, as per standard.
58958         (_getopt_internal_r, _getopt_internal): Argv is now char **,
58959         not char *__getopt_argv_const *.
58960         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58961         _getopt_long_only_r): Likewise.
58962         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
58963         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58964         _getopt_long_r, _getopt_long_only_r): Likewise.
58965         * lib/getopt_.h (__getopt_argv_const): Remove.
58966         (getopt): Argv is now char * const *, as per standard.
58967
58968         * lib/getdate.y (tORDINAL): New token.
58969         (day, relunit): Allow it for relative times.
58970         (relative_time_table): Use tORDINAL for ordinals.
58971
58972 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
58975         Document that "second" isn't allowed as an ordinal number.
58976
58977 2004-11-16  Jim Meyering  <jim@meyering.net>
58978
58979         * modules/closeout (Depends-on): Add fpending.
58980
58981 2004-11-15  Jim Meyering  <jim@meyering.net>
58982
58983         * lib/closeout.c: Include "__fpending.h" once again.
58984         Include <stdbool.h>.
58985         (close_stdout): Don't fail just because stdout was closed initially,
58986         since some programs don't write to stdout in the normal course of
58987         operation (other than --version and --help), and we don't want this
58988         function to make e.g. `touch file >&-' fail.
58989         But do fail if it was closed and someone has tried to write to it.
58990         E.g., `printf foo >&-' must fail.
58991
58992 2004-11-13  Jim Meyering  <jim@meyering.net>
58993
58994         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
58995
58996 2004-11-12  Simon Josefsson  <jas@extundo.com>
58997
58998         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
58999         small doc fix is still pending.
59000
59001 2004-11-11  Simon Josefsson  <jas@extundo.com>
59002
59003         * modules/strtok_r: New file.
59004
59005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59006         strtok_r.
59007
59008 2004-11-11  Simon Josefsson  <jas@extundo.com>
59009
59010         * m4/strtok_r.m4: New file.
59011
59012         * m4/getopt.m4: Replace opterr.
59013
59014 2004-11-11  Simon Josefsson  <jas@extundo.com>
59015
59016         * lib/strtok_r.h, strtok_r.c: New file.
59017
59018 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59021         of replacing opterr, getopt, etc.  This should handle the
59022         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59023
59024 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59027         we can stop lying to compilers about the constness of argv when we
59028         are compiled outside glibc.
59029         (getopt, getopt_long, getopt_long_only): Use it.
59030         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59031         _getopt_internal, getopt): Likewise.
59032         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59033         _getopt_long_only_r): Likewise.
59034         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59035         _getopt_long_r, _getopt_long_only_r): Likewise.
59036
59037         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59038         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59039         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59040         the other external symbols.
59041         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59042         declaration, since the above renaming now works around collisions.
59043
59044 2004-11-11  Jim Meyering  <jim@meyering.net>
59045
59046         * lib/linebreak.c: Remove trailing blanks.
59047         * lib/alloca_.h: Likewise.
59048         * lib/acosl.c: Likewise.
59049         * lib/euidaccess.c: Likewise.
59050         * lib/allocsa.h: Likewise.
59051
59052 2004-11-10  Simon Josefsson  <jas@extundo.com>
59053
59054         * m4/getaddrinfo.m4: New file.
59055
59056 2004-11-10  Simon Josefsson  <jas@extundo.com>
59057
59058         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59059
59060 2004-11-10  Simon Josefsson  <jas@extundo.com>
59061
59062         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59063         getaddrinfo.
59064
59065         * modules/getaddrinfo: New file.
59066
59067 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59068
59069         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59070
59071 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59072
59073         * lib/mktime.c (SHR): New macro, which is a portable
59074         substitute for >> that should work even on Crays.
59075         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59076         Problem reported by Mark D. Baushke in
59077         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59078         * lib/getdate.y (SHR): Likewise.
59079         (tm_diff): Use it.
59080         * lib/strftime.c (SHR): Likewise.
59081         (tm_diff): Use it.
59082         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59083         quote_these_too, so that right shifts are well defined.  All uses
59084         changed.
59085
59086 2004-11-10  Jim Meyering  <jim@meyering.net>
59087
59088         Ensure that no close failure goes unreported.
59089         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59090         return early when it seems there's nothing to flush.
59091         Don't include __fpending.h.
59092
59093 2004-11-10  Jim Meyering  <jim@meyering.net>
59094
59095         * modules/closeout (Depends-on): Remove fpending.
59096
59097 2004-11-10  Jim Meyering  <jim@meyering.net>
59098
59099         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59100
59101 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59102
59103         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59104         gl_FUNC_STRFTIME.
59105         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59106         and AC_REQUIRE when possible, to avoid duplicate checks.
59107         Check for <wchar.h>.
59108
59109 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59110
59111         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59112
59113 2004-11-09  Bruno Haible  <bruno@clisp.org>
59114
59115         * m4/sockpfaf.m4: New file.
59116
59117 2004-11-05  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59120         Reported by Mark D. Baushke <mdb@cvshome.org>.
59121
59122 2004-11-04  Bruno Haible  <bruno@clisp.org>
59123
59124         2004-09-11  Bruno Haible  <bruno@clisp.org>
59125                 * allocsa.valgrind: New file.
59126         2004-02-06  Bruno Haible  <bruno@clisp.org>
59127                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59128                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59129                 Reported by Christopher Seip <chris.seip@hp.com>.
59130
59131 2004-11-04  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59134         (Makefile.am): Distribute it.
59135
59136 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59137
59138         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59139         with errno == ERANGE if the buffer is too small.
59140         Problem reported by Mark D. Baushke.
59141
59142 2004-11-03  Albert Chin  <china@thewrittenword.com>
59143             Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59146         equivalent, substitute $ac_type for equivalent type rather than
59147         blindly using uint32_t *always* which won't work if uint32_t is not
59148         available.  Define _UINT32_T to work around typedef of uint32_t if
59149         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59150         2.5.1.
59151
59152 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59153
59154         * m4/jm-macros.m4: Sync from coreutils.
59155         (gl_MACROS): Check for mbrlen, for pathchk.
59156         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59157
59158 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59159
59160         * lib/xreadlink.c (MAXSIZE): New macro.
59161         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59162         size does not exceed MAXSIZE.  Avoid cast.
59163         As suggested by Mark D. Baushke in
59164         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59165         if readlink fails with buffer size just under MAXSIZE, try again
59166         with MAXSIZE.
59167
59168 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59169
59170         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59171
59172 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59173         and  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59176         (get_date): Overparenthesize to avoid GCC warning.
59177
59178 2004-11-02  Bruno Haible  <bruno@clisp.org>
59179
59180         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59181         returns void.
59182
59183 2004-11-02  Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59186         function returns void.
59187
59188 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59189
59190         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59191         fflush_unlocked, flockfile, funlockfile, funlockfile,
59192         fputs_unlocked, putc_unlocked.
59193
59194 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59197         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59198         already declared.
59199
59200 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59201
59202         * modules/getdate (Files): Add doc/getdate.texi.
59203         (Depends-on): Add setenv, xalloc.
59204
59205 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * lib/getdate.y: Add support for TZ="foo" within a date string.
59208         Fix some bugs near time_t boundaries.  Reject dates with
59209         out-of-range components, e.g., "Sept 31".
59210         Include <stdlib.h>, "setenv.h", "xalloc.h".
59211         (ISDIGIT_LOCALE): Remove; unused.
59212         Note that the TZ and time functions used here are not reentrant.
59213         (mktime_ok, get_tz): New functions.
59214         (TZBUFSIZE): New constant.
59215         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59216         This requires that we sometimes generate our own TZ="XXX..." setting.
59217
59218 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59219
59220         * doc/getdate.texi: New file, from coreutils with modifications for
59221         the new TZ parsing.
59222
59223 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59224
59225         * lib/mktime.c (not_equal_tm): Remove redundant check.
59226
59227 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * modules/regex (lib_SOURCES): Add regex.c.
59230         Reported by James Youngman in
59231         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59232
59233 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         * lib/getdate.y: Use Bison 1.875 features, and some minor
59236         code cleanups.  This change does not affect semantics.
59237         Don't include <stdlib.h>; no longer needed.
59238         Don't include unlocked-io.h; only the "#if TEST" code uses
59239         stdio, and performance isn't crucial there.
59240         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59241         Bison 1.875 features as described below.
59242         All uses of "PC." replaced by "pc->".
59243         (YYSTYPE): Add a forward declaration.
59244         (yylex, yyerror): Use full prototypes in forward decls.
59245         Use "%pure-parser" rather than obsolescent "%pure_parser".
59246         Use %parse-param and %lex-param instead of obsolescent
59247         YYPARSE_PARAM and YYLEX_PARAM.
59248         (meridian_table, month_and_day_table, time_units_table,
59249         relative_time_table, time_zone_table, military_table,
59250         lookup_zone, lookup_word, get_date):
59251         Use NULL instead of 0 where appropriate.
59252         (to_hour): Avoid abort (), to avoid a dependency on
59253         stdlib.h.
59254         (yyerror, yylex): Now accepts parser_control * arg.
59255         (main) [TEST]: Use '\0' rather than 0 for char.
59256
59257 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59260
59261 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59262
59263         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59264         It's now the caller's responsibility to handle the case where
59265         !HAVE_GETPAGESIZE && !defined getpagesize.
59266
59267         * lib/mktime.c (leapyear): Arg is long int, not int.
59268
59269 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59270
59271         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59272
59273 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59276         missing.  Problem reported by James Youngman.
59277
59278 2004-10-16  Simon Josefsson  <jas@extundo.com>
59279
59280         * gnulib-tool: Fix comments.  Fix parse problem.
59281         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59282
59283 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59286         implementation of getopt_long.  Problem reported by Alexander Taler in:
59287         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59288
59289 2004-10-15  Bruno Haible  <bruno@clisp.org>
59290
59291         * gnulib-tool: Untabify. Initialize supplied_libname.
59292         (func_usage): More homogenous output.
59293         (func_modules_transitive_closure, func_modules_to_filelist,
59294         func_emit_lib_Makefile_am): New functions.
59295         (func_import): New function, extracted from big case statement. Use
59296         func_get_license, func_modules_transitive_closure,
59297         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59298         opt_lgpl. Don't use test -a, as it's not portable.
59299         (func_create_testdir): Use func_modules_transitive_closure,
59300         func_modules_to_filelist, func_emit_lib_Makefile_am.
59301
59302 2004-10-15  Bruno Haible  <bruno@clisp.org>
59303
59304         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59305
59306 2004-10-15  Bruno Haible  <bruno@clisp.org>
59307
59308         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59309         the portions belonging to each module.
59310         Suggested by Derek Robert Price <derek@ximbiot.com>.
59311
59312 2004-10-12  Simon Josefsson  <jas@extundo.com>
59313
59314         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59315         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59316         to real functions.
59317
59318 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59319
59320         * modules/vsnprintf: New file.
59321
59322 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59323
59324         * m4/vsnprintf.m4: New file.
59325
59326 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59327
59328         * lib/vsnprintf.h: New file.
59329         * lib/vsnprintf.c: New file.
59330
59331 2004-10-11  Bruno Haible  <bruno@clisp.org>
59332
59333         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59334         vsnprintf.
59335
59336 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59337
59338         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59339
59340 2004-10-07  Bruno Haible  <bruno@clisp.org>
59341
59342         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59343         fits into the provided buffer.
59344
59345 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59346
59347         * lib/diacrit.c, diacrit.h: Add GPL notice.
59348
59349         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59350         notice.
59351         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59352         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59353         This avoids a potential constant-folding bug.
59354
59355 2004-10-05  Bruno Haible  <bruno@clisp.org>
59356
59357         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59358         for the declaration of strsep.
59359
59360 2004-10-05  Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59363
59364 2004-10-04  Simon Josefsson  <jas@extundo.com>
59365
59366         * modules/memmem: New file.
59367         * tests/test-memmem.c: New file.
59368         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59369
59370 2004-10-04  Simon Josefsson  <jas@extundo.com>
59371
59372         * m4/memmem.m4: New file.
59373
59374 2004-10-04  Simon Josefsson  <jas@extundo.com>
59375
59376         * lib/memmem.h: New file.
59377         * lib/memmem.c: New file, taken from glibc.
59378
59379 2004-10-04  Simon Josefsson  <jas@extundo.com>
59380
59381         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59382         '#ifdef USE_UNLOCKED_IO'.
59383
59384 2004-10-04  Simon Josefsson  <jas@extundo.com>
59385
59386         * config/srclist.txt: Add memmem from glibc.
59387
59388 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59389
59390         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59391
59392         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59393         modules/exclude, modules/getdate, modules/getline,
59394         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59395         modules/getusershell, modules/linebuffer, modules/md5,
59396         modules/mountlist, modules/posixtm, modules/readtokens,
59397         modules/readutmp, modules/regex, modules/sha1,
59398         modules/version-etc, modules/yesno:
59399         Remove dependency on unlocked-io.
59400
59401 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59404
59405         * m4/unlocked-io.m4: Add copyright notice.
59406         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59407
59408 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59411         * lib/xmalloc.c (xmemdup): Likewise.
59412         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59413         XFREE): Remove these long-obsolescent macros.
59414         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59415         * lib/xstrdup.c: Remove.
59416
59417         * lib/regex.c (re_comp): Cast gettext return value to char *,
59418         Problem reported by Martin Neitzel via Mark D. Baushke.
59419
59420 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59421
59422         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59423         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59424         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59425         regex.c, sha1.c, version-etc.c, yesno.c:
59426         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59427         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59428         the includer's responsibility.
59429
59430         Sync from coreutils.
59431
59432         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59433         points to the start of a string, as the C Standard says the
59434         resulting behavior is undefined.
59435
59436         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59437         simple -> simple_backups, numbered_existing ->
59438         numbered_existing_backups, numbered -> numbered_backups
59439         to avoid shadowing problems.  All uses changed.
59440         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59441         * lib/backupfile.c (check_extension, numbered_backup):
59442         Rename locals to avoid shadowing 'basename'.
59443         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59444         once.
59445
59446         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59447         * lib/.cvsignore: Add getopt.h.
59448
59449 2004-10-04  Bruno Haible  <bruno@clisp.org>
59450
59451         * modules/README: New file.
59452         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59453         not a module.
59454
59455 2004-10-02  Jim Meyering  <jim@meyering.net>
59456
59457         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59458
59459 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59460
59461         * modules/strsep: New file.
59462
59463 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59464
59465         * m4/strsep.m4: New file.
59466
59467 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59468
59469         * lib/strsep.h: New file.
59470         * lib/strsep.c: New file.
59471
59472 2004-10-01  Simon Josefsson  <jas@extundo.com>
59473
59474         * lib/snprintf.c (snprintf): Handle size==0.
59475
59476 2004-10-01  Simon Josefsson  <jas@extundo.com>
59477             Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59480         (snprintf): Declare 'args'.
59481
59482 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59483
59484         * lib/snprintf.c: Remove comments as to why each header is needed.
59485
59486 2004-10-01  Bruno Haible  <bruno@clisp.org>
59487
59488         * MODULES.html.sh: Add strsep.
59489
59490 2004-09-30  Simon Josefsson  <jas@extundo.com>
59491
59492         * modules/snprintf: New file.
59493
59494 2004-09-30  Simon Josefsson  <jas@extundo.com>
59495
59496         * m4/snprintf.m4: New file.
59497
59498 2004-09-30  Simon Josefsson  <jas@extundo.com>
59499
59500         * lib/snprintf.h, lib/snprintf.c: New files.
59501
59502 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59503
59504         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59505         (hol_entry_help): Never translate an empty string.
59506         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59507         * lib/argp.h (OPTION_NO_TRANS): New option.
59508
59509 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * modules/argp (Maintainer): Replace Simon Josefsson
59512         by Sergey Poznyakoff.
59513
59514 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59517         changes merged back into glibc.
59518
59519 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59522
59523 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59524
59525         * lib/xvasprintf.c: Include xalloc.h.
59526         (xvasprintf): Use xalloc_die, not xmalloc_die.
59527
59528 2004-09-29  Bruno Haible  <bruno@clisp.org>
59529
59530         * modules/alloca-opt: New file, derived from modules/alloca.
59531         * modules/allocsa: Depend on alloca-opt instead of alloca.
59532         * modules/setenv: Likewise.
59533         * modules/vasnprintf: Likewise.
59534         * MODULES.html.sh: Add alloca-opt.
59535
59536 2004-09-28  Simon Josefsson  <jas@extundo.com>
59537
59538         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59539         LGPL, and to replace license template from GPL to LGPL.
59540
59541 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         * modules/dummy: Change license to LGPL.
59544
59545 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59548
59549 2004-09-24  Simon Josefsson  <jas@extundo.com>
59550
59551         * modules/minmax (License): Change from GPL to LGPL.
59552
59553 2004-09-23  Simon Josefsson  <jas@extundo.com>
59554
59555         * gnulib-tool (--import): Typo.
59556
59557 2004-09-23  Simon Josefsson  <jas@extundo.com>
59558
59559         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59560
59561 2004-09-22  Bruno Haible  <bruno@clisp.org>
59562
59563         * modules/*: Add 'License' field.
59564         * gnulib-tool: Accept --extract-license option.
59565         (func_get_license): New function.
59566
59567 2004-09-21  Bruno Haible  <bruno@clisp.org>
59568
59569         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59570         Reported by Simon Josefsson.
59571
59572 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59575         gl_AC_TYPE_LONG_LONG.
59576
59577 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59578
59579         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59580
59581 2004-09-18  Simon Josefsson  <jas@extundo.com>
59582         and  Paul Eggert  <eggert@cs.ucla.edu>
59583
59584         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59585         calls with autoreconf.  Define GL_LIB.
59586
59587 2004-09-14  Karl Berry  <karl@gnu.org>
59588
59589         * config/srclist.txt: unsync setenv.c, sigh.
59590
59591 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59592
59593         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59594         Problem reported by Bruno Haible in:
59595         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59596
59597 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59598
59599         * config/srclist.txt: Comment out argp-pvh.c.
59600
59601 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59602
59603         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59604         in case some system header has #define'd it.  Problem reported by
59605         Soeren D. Schulze in
59606         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59607
59608 2004-09-09  Karl Berry  <karl@gnu.org>
59609
59610         * regex.[ch]: delete from the root.  These were supposed to be
59611                 synced with emacs cvs, but this has not happened for about
59612                 a year, and anyway nothing else uses emacs regex.[ch].
59613                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59614                 lib/regex[.ch] is untouched.
59615
59616 2004-09-09  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59619
59620 2004-09-09  Bruno Haible  <bruno@clisp.org>
59621
59622         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59623         modifications.
59624         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59625
59626 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59627
59628         * modules/xvasprintf: New file.
59629         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59630
59631 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59632
59633         * lib/xvasprintf.h: New file.
59634         * lib/xvasprintf.c: New file.
59635         * lib/xasprintf.c: New file.
59636
59637 2004-09-08  Bruno Haible  <bruno@clisp.org>
59638
59639         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59640
59641 2004-09-08  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59644         length is > INT_MAX.
59645         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59646         more.
59647
59648 2004-09-08  Bruno Haible  <bruno@clisp.org>
59649
59650         * lib/stdint_.h: New file, taken from GNU clisp.
59651
59652 2004-09-08  Bruno Haible  <bruno@clisp.org>
59653             Oskar Liljeblad  <oskar@osk.mine.nu>
59654
59655         * modules/stdint: New file.
59656         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59657
59658 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         Import from coreutils.
59661         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59662         strings on unbounded length.  alloca's performance benefits aren't
59663         that important here.
59664         (V_STRDUP): Remove.
59665         (parse_with_separator): New function, with most of the internals
59666         of the old parse_user_spec.  Allow user to omit both user and group,
59667         for compatibility with FreeBSD.
59668         Clone only the user name, not the entire spec.
59669         Do not set *uid, *gid unless entirely successful.
59670         Avoid memory leak in some failing cases.
59671         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59672         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59673         (parse_user_spec): Rewrite to use parse_with_separator.
59674
59675 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         * modules/userspec: Don't depend on alloca.
59678
59679 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59680
59681         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59682
59683 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59686         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59687         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59688
59689 2004-08-16  Simon Josefsson  <jas@extundo.com>
59690
59691         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59692         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59693         Add --dry-run for --import.
59694         Let user provided command line parameters override configure.ac
59695         settings.
59696
59697 2004-08-12  Simon Josefsson  <jas@extundo.com>
59698
59699         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59700         as discussed with Paul Eggert in threads rooted at
59701         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59702         and
59703         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59704         Before, the test was empty, and relied on ELIDE_CODE in source
59705         code.)
59706         (gl_PREREQ_GETOPT): New macro.
59707         (gl_GETOPT): Use them.
59708
59709 2004-08-12  Simon Josefsson  <jas@extundo.com>
59710
59711         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59712         * lib/getopt_.h: Renamed from getopt.h.
59713
59714 2004-08-12  Simon Josefsson  <jas@extundo.com>
59715
59716         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59717         Change default library name from libfoo to libgnu.
59718         Now, if you have a configure.ac that says:
59719                 gl_SOURCE_BASE(gl)
59720                 gl_M4_BASE(gl/m4)
59721                 gl_MODULES(error getopt etcetera)
59722                 gl_INIT
59723         you can import all you need by running:
59724                 ../gnulib/gnulib-tool --import
59725
59726         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59727         (Makefile.am): Rewrite, use logic from argz.
59728         (Include): Use <getopt.h> instead of "getopt.h".
59729
59730 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * modules/argp (Files): Add m4/unlocked-io.m4.
59733         (Depends-on): Add extensions.
59734
59735 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59736
59737         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59738         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59739         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59740         Check for program_invocation_name, program_invocation_short_name,
59741         flockfile, funlockfile, features.h, _getopt_long_only_r.
59742
59743 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59746         its complicated substitute.
59747         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59748         and program_invocation_name.
59749         (__argp_basename) [!_LIBC]: Remove; the only use was
59750         replaced by its body.
59751         (__argp_short_program_name): Change condition from
59752         !defined __argp_short_program_name to
59753         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59754         to match argp-namefrob.h.
59755         (__argp_failure): Don't assume strerror_r returns char *.
59756         * lib/argp-parse.c (N_): Define unconditionally.
59757         (argp_default_options): Fill out initializers with 0 to avoid
59758         gcc warnings.
59759
59760 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59761
59762         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59763         getopt1.c.
59764
59765 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59766
59767         Merge from coreutils.
59768
59769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59770
59771         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59772         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59773
59774 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         Merge from coreutils.
59777
59778         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59779         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59780         for Reliant Unix 5.43.
59781
59782         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59783         (union fooround): Use uintmax_t, not long int.
59784         The rest is a merge from libc:
59785         [defined _LIBC]: Include <shlib-compat.h>.
59786         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59787
59788         * lib/settime.c (settime): Recode to avoid warning with
59789         Sun Forte C 6U2.
59790
59791         * lib/strverscmp.c: Convert to UTF-8.
59792
59793 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59794
59795         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59796         m4/uintmax_t.m4.
59797
59798 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59799
59800         * modules/xalloc-die: New file.
59801         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59802
59803         * modules/md5 (Files): Add m4/uint32_t.m4.
59804         * modules/sha1: Renamed from modules/sha.
59805         (Files):
59806         Rename lib/sha.h to lib/sha1.h.
59807         Rename lib/sha.c to lib/sha1.c.
59808         Rename m4/sha.m4 to m4/sha1.m4.
59809         (lib_SOURCES): Likewise.
59810         (configure.ac): Rename gl_SHA to gl_SHA1.
59811         (Include): sha.h -> sha1.h.
59812
59813 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59814
59815         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59816         * m4/sha1.m4: Renamed from sha.m4.
59817         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59818
59819 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59820
59821         * lib/obstack.h (obstack_empty_p):
59822         Don't assume that chunk->contents is suitably aligned.
59823         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59824         Likewise. Problem reported by Benno in
59825         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59826
59827         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59828         readable.  This could be improved further but it'd take some work.
59829
59830 2004-08-08  Simon Josefsson  <jas@extundo.com>
59831
59832         * modules/xgethostname (Depends-on): Remove exit and error (not
59833         used).
59834
59835         * modules/getpass-gnu: Add getpass.h.
59836         (Depends-on): Add stdbool.
59837         * modules/getpass: Add getpass.h.
59838
59839 2004-08-08  Simon Josefsson  <jas@extundo.com>
59840
59841         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59842         Check getpass declaration.
59843
59844 2004-08-08  Simon Josefsson  <jas@extundo.com>
59845
59846         * lib/xgethostname.c: Don't include error.h (not used).
59847
59848         * lib/getpass.h: Add.
59849         * lib/getpass.c: Include getpass.h first.
59850
59851 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59852
59853         * lib/xalloc-die.c: New file.
59854         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59855         All uses removed.
59856         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59857         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59858         xalloc-die.c.
59859         (_, N_, xalloc_die): Move to xalloc-die.c.
59860         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59861         so that we needn't mess with xalloc_msg_memory_exhausted.
59862
59863         * lib/sha1.h: Renamed from sha.h.
59864         (SHA1_H): Renamed from _SHA_H.
59865         (sha1_ctx): Renamed from sha_ctx.
59866         (sha1_init_ctx): Renamed from sha_init_ctx.
59867         (sha1_process_block): Renamed from sha_process_block.
59868         (sha1_process_bytes): Renamed from sha_process_bytes.
59869         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59870         (sha1_read_ctx): Renamed from sha_read_ctx.
59871         (sha1_stream): Renamed from sha_stream.
59872         (sha1_buffer): Renamed from sha_buffer.
59873         * lib/sha1.c: Likewise; renamed from sha.c.
59874         Do not include <sys/types.h>.
59875         Include <stddef.h> rather than <stdlib.h>.
59876
59877 2004-08-08  Bruno Haible  <bruno@clisp.org>
59878
59879         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59880         FILESYSTEM_PREFIX_LEN.
59881         * lib/progreloc.c: Likewise.
59882         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59883
59884 2004-08-06  Simon Josefsson  <jas@extundo.com>
59885
59886         * modules/progname (Depends-on): Don't depend on stdbool.
59887
59888 2004-08-06  Simon Josefsson  <jas@extundo.com>
59889
59890         * modules/getsubopt: New file.
59891         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59892         getsubopt.
59893
59894 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         More merge from coreutils.
59897
59898         * m4/utimens.m4, m4/utimecmp.m4: New files.
59899         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59900         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59901         prereq.m4, sha.m4: Import changes from coreutils.
59902
59903 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59904
59905         More merge from coreutils.
59906         * modules/raise, modules/readtokens0, modules/utimens:
59907         * modules/utimecmp, module/xnanosleep: New files.
59908         * modules/strftime: Add lib/strftime.h.
59909         Change include from <time.h> to "strftime.h".
59910         * modules/yesno: Add lib/yesno.h.
59911         * modules/backupfile: Remove lib/addext.c.
59912         * modules/euidaccess: Add stat-macros.h.
59913         * modules/canonicalize, modules/euidaccess,
59914         modules/filemode, modules/lchown, modules/makepath,
59915         modules/rmdir, modules/stat: Likewise.
59916
59917 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         Merge from tar.
59920         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59921         SIZE_MAX is a valid preprocessor constant.
59922         (__argp_basename): Change from "#ifndef _LIBC"
59923         to "#ifndef __argp_short_program_name", so that
59924         we don't compile these functions for tar.
59925
59926         More merges from coreutils.
59927         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59928         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59929         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59930         * lib/addext.c: Remove; no longer needed.
59931         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59932         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59933         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59934         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59935         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59936         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59937         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59938         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59939         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59940         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59941         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59942         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59943         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59944         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59945         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59946         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59947         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59948         Import changes from coreutils.
59949
59950 2004-08-05  Simon Josefsson  <jas@extundo.com>
59951
59952         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59953
59954 2004-08-05  Simon Josefsson  <jas@extundo.com>
59955
59956         * m4/getsubopt.m4: New file.
59957
59958 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         Merge from coreutils.
59961
59962         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
59963         * m4/getcwd-path-max.m4: New files.
59964
59965         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
59966         FILESYSTEM_PREFIX_LEN ->
59967         FILE_SYSTEM_PREFIX_LEN.
59968         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
59969         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
59970         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
59971         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
59972
59973         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
59974         prerequisite modules now handle the DOS stuff.
59975         Don't check for unistd.h.
59976
59977 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59978
59979         Merge from coreutils.
59980
59981         * lib/.gdb-history: Remove; this doesn't belong here.
59982
59983         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
59984         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
59985         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
59986         * lib/getcwd.c: New files.
59987
59988         * lib/dirname.h: Include <stdbool.h>.
59989         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
59990         for consistency with POSIX terminology.  All uses changed.
59991         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
59992         (strip_trailing_slashes): Use bool for booleans.
59993         * lib/stripslash.c (strip_trailing_slashes): Likewise.
59994
59995         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
59996         sometimes returns a positive errno value even when it succeeds.
59997         (print_errno_message) [!LIBC]: Fall back on strerror if
59998         __strerror_r fails.
59999
60000         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60001         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60002         (longest_relative_suffix): New function.
60003         (path_concat): Use it.  Assume first argument is not NULL.
60004         Port to DOS.  Omit redundant separators.
60005         Report an error instead of returning NULL.
60006         Use mempcpy instead of memcpy.
60007         (xpath_concat): Remove: not declared or used.
60008
60009         * lib/same.h: Include <stdbool.h>
60010         (same_name): Return bool, not int.
60011         * lib/same.c (same_name): Likewise.
60012         (errno): Don't declare; we assume C89 or better now.
60013
60014         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60015         if not already defined.
60016
60017         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60018         * lib/dup-safer.c (errno): Likewise.
60019
60020 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         Merge from coreutils.
60023         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60024         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60025         * modules/path-concat: Don't depend on strdup.
60026
60027 2004-08-03  Simon Josefsson  <jas@extundo.com>
60028
60029         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60030         * lib/progname.h: Don't include stdbool.h.
60031
60032 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60033
60034         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60035         * MODULES.html.sh (func_all_modules): Remove fatal.
60036
60037 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60040
60041 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60042
60043         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60044         working.
60045
60046 2004-08-02  Simon Josefsson  <jas@extundo.com>
60047
60048         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60049         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60050         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60051
60052 2004-08-01  Simon Josefsson  <jas@extundo.com>
60053
60054         * lib/xgetdomainname.c: Include stdlib.h, for free().
60055
60056 2004-07-19  Bruno Haible  <bruno@clisp.org>
60057
60058         * MODULES.html.sh (func_all_modules): Add dummy.
60059
60060 2004-07-16  Simon Josefsson  <jas@extundo.com>
60061
60062         * modules/dummy: New file.
60063
60064 2004-07-16  Simon Josefsson  <jas@extundo.com>
60065
60066         * lib/dummy.c: New file.
60067
60068 2004-07-16  Bruno Haible  <bruno@clisp.org>
60069
60070         * lib/backupfile.h: Add extern "C" for C++.
60071         * lib/closeout.h: Likewise.
60072         * lib/copy-file.h: Likewise.
60073         * lib/findprog.h: Likewise.
60074         * lib/full-write.h: Likewise.
60075         * lib/pathname.h: Likewise.
60076         * lib/progname.h: Likewise.
60077         * lib/stpcpy.h: Likewise.
60078         * lib/stpncpy.h: Likewise.
60079         * lib/strcase.h: Likewise.
60080         * lib/strstr.h: Likewise.
60081         * lib/xalloc.h: Likewise.
60082
60083         * lib/mbswidth.h: Add extern "C" for C++.
60084         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60085
60086 2004-07-13  Robert Millan  <robertmh@gnu.org>
60087
60088         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60089
60090 2004-07-09  Simon Josefsson  <jas@extundo.com>
60091
60092         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60093         failed without this.)
60094
60095 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60096
60097         * modules/chown (Files): Add lib/fchown-stub.c, since
60098         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60099
60100 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60101
60102         * lib/fchown-stub.c: New file.
60103
60104 2004-06-24  Jim Meyering  <jim@meyering.net>
60105
60106         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60107
60108 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         * modules/argz: Omit "#include".
60111
60112         * MODULES.html.sh (func_all_modules): Add calloc, to match
60113         2004-06-01 addition of calloc module.
60114
60115 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * m4/argz.m4: New file, which is autoupdated from libtool.
60118
60119 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60120
60121         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60122         libtool.
60123
60124 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60125
60126         * config/srclist-update: Don't insist on "USA." before the
60127         close-comment, as libtool omits the period and puts the */ on a
60128         separate line.
60129         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60130         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60131
60132 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60133
60134         * modules/argz: New file.
60135         * MODULES.html.sh (func_all_modules): Add argz.
60136
60137 2004-06-12  Jim Meyering  <jim@meyering.net>
60138         and  Paul Eggert  <eggert@cs.ucla.edu>
60139
60140         * modules/hash (Files): Add lib/xalloc.h.
60141         * modules/pipe (Depends-on): Add wait-process.
60142         * modules/stat (Depends-on): Add xalloc.
60143         * modules/userspec (Files): Add lib/userspec.h.
60144         * modules/xstrto
60145
60146         Upgrade from gettext-0.13.
60147         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60148         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60149         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60150
60151 2004-06-10  Jim Meyering  <jim@meyering.net>
60152
60153         * lib/calloc.c: New file.
60154
60155 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * lib/getdate.y (yylex): Allow space between sign and number.
60158         Problem reported by Dan Jacobson.
60159
60160 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         Merge from coreutils CVS.
60163
60164         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60165         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60166         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60167         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60168         xstrtol.m4: Fix copyright date and/or serial number.
60169
60170         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60171         See if we need an fchown replacement.
60172         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60173         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60174         and use the replacement function if we detect either defect.
60175
60176         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60177         gl_UTIMECMP.
60178
60179 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60180         and  Jim Meyering  <jim@meyering.net>
60181
60182         Merge from coreutils CVS.
60183
60184         * lib/stat-macros.h: New file, with contents from file-type.h
60185         and coreutils' system.h.
60186         * lib/file-type.c: Include "stat-macros.h".
60187         * lib/file-type.h (file_type): Move all macro definitions to new file,
60188         stat-macros.h.
60189
60190         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60191         Wrap old code with this conditional.
60192         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60193         function that does not dereference symlinks.
60194         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60195
60196         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60197         dependency problems.
60198         (xreadlink): Accept new arg SIZE, for efficiency.
60199         All decls and uses changed.
60200         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60201
60202         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60203         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60204
60205         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60206         sysexits.h.
60207
60208 2004-06-01  Jim Meyering  <jim@meyering.net>
60209
60210         * m4/calloc.m4: New file.
60211
60212 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60215         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60216         Also, fix a typo in a diagnostic.
60217
60218 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60221         or AC_FUNC_REALLOC.
60222
60223 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60224
60225         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60226         macros to be defined.
60227         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60228         the allocator returns NULL because the requested size is zero.
60229
60230 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60233         var.  Add comment explaining why libc still defines it.  This
60234         merges the following patch from glibc:
60235         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60236
60237 2004-05-20  Andreas Schwab  <schwab@suse.de>
60238
60239         * m4/free.m4: Replace free if it not known to work, not the other
60240         way round.
60241
60242 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60245         present in glibc since revision 1.1 of this file.
60246         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60247         obstack_alignment_mask, obstack_alloc, obstack_base,
60248         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60249         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60250         obstack_grow0, obstack_init, obstack_int_grow,
60251         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60252         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60253         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60254         nonexistent functions.
60255
60256 2004-05-18  Karl Berry  <karl@gnu.org>
60257
60258         * config/srclist.txt: break link for vasnprintf.c.
60259
60260 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         Port obstack to the AS/400, where pointers are 16 bytes wide and
60263         you cannot cast an integer to a valid pointer.  This patch is
60264         currently waiting to be integrated into glibc; see
60265         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60266
60267         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60268         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60269         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60270         (struct obstack): temp member is now a union of a pointer and
60271         an integer, instead of an integer.  All integer uses changed.
60272         This does not affect the physical layout of struct obstack,
60273         except on hosts (like the AS/400) where the size or alignment of
60274         void * is greater than that of ptrdiff_t.
60275         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60276         __STDC__)]: Store temporary in pointer member of union, not
60277         integer member.
60278         * lib/obstack.c: Include <stddef.h>, for offsetof.
60279         (struct fooalign): Remove; it doesn't need a name.
60280         (union fooround): Change double to long double, and add void *.
60281         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60282         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60283         not a macro.  Hence the values are always int; so remove all
60284         casts-to-int in uses.
60285
60286 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60289         we can get this patch merged into glibc.
60290
60291 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60292             Paul Eggert  <eggert@cs.ucla.edu>
60293
60294         * m4/argp: Depend on alloca.
60295
60296 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60297             Paul Eggert  <eggert@cs.ucla.edu>
60298
60299         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60300         freecoding.
60301
60302 2004-05-17  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60305         precision that consists of a '.' followed by an empty digit string.
60306         Patch by Tor Lillqvist <tml@iki.fi>.
60307
60308 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60311         for backward compatibility with older code.  We need our own
60312         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60313         it under some other name, and our alloca.h will define it.
60314
60315 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60316             Derek Price  <derek@ximbiot.com>
60317
60318         * lib/alloca.c: Include <alloca.h>, to get our interface.
60319         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60320         include <alloca.h> first.  Use C89 prototype for alloca; this
60321         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60322         Use #elif for simplicity, since we can assume C89 now.
60323         Don't try to source the system alloca.h since it will not be found
60324         and to prevent recursively including its replacement.
60325         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60326         * lib/regex.c: Likewise.
60327
60328 2004-05-16  Derek Price  <derek@ximbiot.com>
60329             Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         getline cleanup.  This changes the getndelim2 API: both order of
60332         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60333         no delimiter).
60334
60335         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60336         interface does that.
60337         (getline): Always use getdelim, so that we don't have two
60338         copies of this code.
60339         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60340         if available.
60341         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60342         (GETNDELIM2_MAXIMUM): New macro.
60343         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60344         instead of the old practice of delim2==0.  All callers changed.
60345         Return -1 on overflow, instead of returning junk.
60346         Do not set *linesize unless allocation succeeds.
60347         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60348         that we include sys/types.h.
60349         * lib/getnline.h: Likewise.
60350         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60351         (getndelim2): Reorder arguments.
60352         * lib/getnline.c (getnline, getndelim):
60353         Don't discard the NMAX argument.
60354         (getnline): Invoke getndelim, to avoid code duplication.
60355         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60356         of (size_t) -1 by callers of the getnline family.
60357
60358 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60359
60360         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60361         Check for gettimeofday.
60362         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60363         Check for settimeofday, stime.
60364
60365 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * lib/nanosleep.c (suspended): Change its type from int to
60368         sig_atomic_t volatile.
60369         (first_call): Make it private to rpl_nanosleep, and have it
60370         be zero initially as that's a bit faster.
60371         (my_usleep): Round up fractional times instead of truncating them,
60372         as this is the usual meaning for 'sleep'.
60373
60374         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60375         doesn't work.
60376         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60377         (ENOSYS): Define if not defined.
60378         (settime): Fall back on stime if it exists and settimeofday fails.
60379         But don't bother with fallbacks if a method fails with errno == EPERM.
60380
60381 2004-05-11  Jim Meyering  <jim@meyering.net>
60382
60383         Prior to this change, the save_cwd caller required read access to the
60384         current directory on most systems (ones with the fchdir function).
60385
60386         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60387         fails, try write-only, and finally, resort to using xgetcwd.
60388
60389 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60390
60391         * lib/obstack.c, obstack.h: Import changes from libc.
60392
60393 2004-04-28  Bruno Haible  <bruno@clisp.org>
60394
60395         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60396         also implicitly appends .exe to executables.
60397         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60398         accepts Windows pathnames.
60399         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60400         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60401         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60402         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60403         Reported by Derek Robert Price <derek@ximbiot.com>.
60404
60405 2004-04-21  Karl Berry  <karl@gnu.org>
60406
60407         * config/srclist.txt (localcharset.c): break sync.
60408
60409 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60410
60411         * m4/host-os.m4: Add a copyright notice.
60412
60413 2004-04-20  Jim Meyering  <jim@meyering.net>
60414
60415         Change UTILS_ to gl_ in AC_DEFINE'd names.
60416         Change utils_- and jm_-prefixed variables, too.
60417         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60418         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60419         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60420
60421         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60422         Don't emit trailing blanks.
60423         Also rename jm_-prefixed variables to have gl_ prefix.
60424
60425         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60426         Also rename jm_-prefixed variables to have gl_ prefix.
60427
60428         * m4/jm-macros.m4: Reflect the renamings.
60429         * m4/prereq.m4: Likewise.
60430
60431 2004-04-20  Jim Meyering  <jim@meyering.net>
60432
60433         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60434         memory.
60435
60436 2004-04-20  Jim Meyering  <jim@meyering.net>
60437             Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60440         memory when realloc fails.
60441
60442 2004-04-19  Jim Meyering  <jim@meyering.net>
60443
60444         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60445         now that readutmp.c may call `free (0)'.
60446
60447 2004-04-19  Bruno Haible  <bruno@clisp.org>
60448
60449         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60450         * m4/inttypes_h.m4: Likewise.
60451         * m4/stdint_h.m4: Likewise.
60452         * m4/intmax_t.m4: Likewise.
60453         * m4/uintmax_t.m4: Likewise.
60454
60455 2004-04-18  Jim Meyering  <jim@meyering.net>
60456
60457         * m4/prereq.m4: Don't forbid jm_ prefix.
60458
60459         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60460         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60461         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60462         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60463         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60464         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60465         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60466         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60467         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60468         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60469         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60470         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60471         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60472         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60473         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60474         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60475         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60476         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60477         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60478
60479 2004-04-18  Jim Meyering  <jim@meyering.net>
60480
60481         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60482         failure, don't leak memory and do call END_UTMP_ENT.
60483
60484 2004-04-16  Jim Meyering  <jim@meyering.net>
60485
60486         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60487         coreutils' stat program.
60488         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60489
60490 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60491
60492         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60493         C89.
60494         (CHAR_BIT): Remove, since we assume C89.
60495         Include <stdint.h> if available, as per current Autoconf CVS advice.
60496
60497 2004-03-31  Jim Meyering  <jim@meyering.net>
60498
60499         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60500         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60501         * m4/xalloc.m4: Likewise.
60502
60503 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60504
60505         Merge from coreutils.
60506
60507         * m4/inttostr.m4: New file.
60508         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60509         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60510         Require gl_CLOCK_TIME.
60511         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60512
60513 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60514
60515         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60516         not bool, to be more consistent with Unix conventions.
60517         Suggested by Bruno Haible.
60518
60519         Merge from coreutils.
60520
60521         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60522         * lib/umaxtostr.c: New files.
60523
60524         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60525         the usual <time.h> dance.
60526         (get_date): Change signature to support fractional time stamps.
60527         All callers changed.
60528         * lib/getdate.y: Include "getdate.h" first, as we can now
60529         assume C89 and don't need to worry about 'const'.
60530         Similarly, include "unlocked-io.h" near start, not in middle.
60531         Include <limits.h>.
60532         (textint.value): Use long int rather than int.
60533         (textint.digits): Use size_t rather than int.
60534         (BILLION, LOG10_BILLION): New constants.
60535         (parser_control): New member rel_ns.  Members day_ordinal,
60536         time_zone, month, day, hour, minutes, rel_year, rel_month,
60537         rel_day, rel_hour, rel_minutes, rel_seconds
60538         are now long int, not int.  Member seconds is now struct timespec,
60539         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60540         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60541         not int.
60542         (%union.intval): Now long int, not int.
60543         New member timespec.
60544         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60545         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60546         (spec): Now is a timespec or an item list.
60547         (timespec, items): New nonterminals.
60548         (time, rel, relunit, number, get_date):
60549         Add support for fractional seconds.
60550         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60551         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60552         (to_hour): First arg is now long int, not int.
60553         (to_year): Returns long int, not int.
60554         Don't treat year -70 like 70.
60555         (tm_diff): Returns long int, not int.
60556         (lookup_word): Use bool instead of int when appropriate.
60557         (yylex): Use size_t for count, not int.
60558         Detect overflow when parsing large integer constants.
60559         Add support for fractions.
60560         (get_date): Make pointers 'const' if possible.
60561         Use more-portable code to detect integer overflow.
60562         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60563         Don't use ctime; it's not reliable if the year has >4 digits.
60564
60565         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60566         This is for compatibility with BSD.
60567
60568         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60569         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60570         From coreutils' system.h.
60571
60572         * lib/userspec.c: Don't include "posixver.h".
60573         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60574         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60575         compatible extension.  Simplify code by removing a boolean int
60576         that was always nonzero if a string was nonnull.
60577
60578 2004-03-30  Jim Meyering  <jim@meyering.net>
60579
60580         Merge from coreutils.
60581
60582         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60583         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60584         on some systems one must include <grp.h> before it.
60585         Reported by Christian Krackowizer.
60586
60587 2004-03-30  Jim Meyering  <jim@meyering.net>
60588
60589         Merge from coreutils.
60590
60591         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60592
60593         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60594         an empty input stream.
60595
60596         * lib/readtokens.c: Include <stdbool.h>.
60597         (readtoken): Use `size_t' rather than int/long.
60598         All callers adjusted.
60599         Use `bool' rather than `int' where appropriate.
60600         Use memset rather than an explicit loop.
60601         Use x2nrealloc rather than xrealloc.
60602         Allow the use of `\0' as a delimiter.
60603         (readtokens): Likewise.
60604         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60605
60606 2004-03-30  Jim Meyering  <jim@meyering.net>
60607
60608         * m4/realloc.m4: Remove file, since now it does no more than
60609         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60610         the `configure.ac' section of module/realloc.
60611         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60612
60613 2004-03-30  Bruno Haible  <bruno@clisp.org>
60614
60615         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60616         nonnull.
60617
60618 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60619
60620         Merge changes to getloadavg.c from coreutils and Emacs.
60621
60622         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60623         Define to an expression, not to the empty string.
60624         Include cloexec.h and xalloc.h.
60625         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60626         Use set_cloexec_flag rather than rolling our own.
60627         * lib/cloexec.c, lib/cloexec.h: New files.
60628
60629 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60630
60631         * m4/cloexec.m4: New file.
60632
60633 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60634
60635         * lib/getopt.h: Sync with libc CVS.
60636
60637 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60638             Bruno Haible  <bruno@clisp.org>
60639
60640         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60641         mbswidth.
60642
60643 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60644             Bruno Haible  <bruno@clisp.org>
60645
60646         * lib/mbswidth.h: Include <wchar.h> only if
60647         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60648         <wchar.h>.
60649         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60650
60651 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60652
60653         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60654         Sync with libc CVS.
60655         * lib/getopt_int.h: New file, also synced from libc.
60656
60657 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60658
60659         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60660         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60661         Bring back getopt.c, getopt.h, getopt1.c.
60662
60663 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60664
60665         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60666         All uses changed.  Check for sa_sigaction member; this fixes
60667         a bug first reported by Jason Andrade in
60668         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60669
60670 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60671
60672         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60673         '#if' expressions.  Unlike the code it replaces, it does not
60674         depend on (defined _SC_PAGESIZE).  However, it does depend on
60675         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60676         first reported by Jason Andrade in
60677         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60678
60679 2004-02-25  Simon Josefsson  <jas@extundo.com>
60680
60681         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60682
60683 2004-02-25  Simon Josefsson  <jas@extundo.com>
60684
60685         * lib/strdup.h: New file.
60686         * lib/strdup.c: Include it.
60687         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60688         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60689
60690 2004-02-23  Karl Berry  <karl@gnu.org>
60691
60692         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60693         (from fencepost.gnu.org:/gd/gnuorg).
60694
60695 2004-02-23  Karl Berry  <karl@gnu.org>
60696
60697         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60698         * config/srclist.txt: add maintain/standards documents.
60699
60700 2004-02-18  Bruno Haible  <bruno@clisp.org>
60701
60702         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60703         Reported by Derek Robert Price <derek@ximbiot.com>.
60704
60705 2004-02-16  Karl Berry  <karl@gnu.org>
60706
60707         * config/mkinstalldirs, install-sh: update from automake.
60708
60709 2004-02-06  Karl Berry  <karl@gnu.org>
60710
60711         * m4/po.m4: update from gettext 0.14.1.
60712
60713 2004-02-06  Karl Berry  <karl@gnu.org>
60714
60715         * lib/config.charset: update from gettext 0.14.1.
60716
60717 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60718
60719         Add comments and code, prompted by suggestions from Bruno Haible
60720         for sh-quote.
60721         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60722         describing the enum quoting_style values.
60723         * lib/quotearg.c (quotearg_alloc): New function.
60724         (quotearg_buffer_restyled): Treat lone { and } as special.
60725         Treat = as special.  Work around bug with older shells
60726         that "see" a '\' that is really the 2nd byte of a multibyte char.
60727         Quote empty string with shell_quoting_style.
60728
60729 2004-02-03  Bruno Haible  <bruno@clisp.org>
60730
60731         * m4/pipe.m4: New file, from GNU gettext.
60732
60733 2004-02-03  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/pipe.h: New file, from GNU gettext.
60736         * lib/pipe.c: New file, from GNU gettext.
60737
60738 2004-01-27  Bruno Haible  <bruno@clisp.org>
60739
60740         * m4/execute.m4: New file, from GNU gettext.
60741
60742 2004-01-27  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/execute.h: New file, from GNU gettext.
60745         * lib/execute.c: New file, from GNU gettext.
60746         * lib/w32spawn.h: New file, from GNU gettext.
60747
60748 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60749
60750         Merge from diffutils.
60751
60752         * lib/file-type.c (file_type): Add typed memory objects.
60753         * lib/file-type.h (S_TYPEISTMO): New macro.
60754
60755         * lib/c-stack.h (c_stack_action): Remove argv argument.
60756         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60757         (die): Don't calculate message unless segv_action returns.
60758         (get_stack_location, min_address_from_argv, max_address_from_argv,
60759         volatile stack_base, volatile_stack_size): Remove.
60760         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60761         that every segmentation violation is a stack overflow.  (Ouch!)
60762         See Debian bug 136249 (still outstanding) for more info about why
60763         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60764
60765 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60766
60767         Exit-status fix from coreutils.
60768
60769         Use exit_failure consistently in place of EXIT_FAILURE,
60770         so that program exit statuses are consistent on failure.
60771
60772         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60773         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60774         * lib/argmatch.h: Comment fix to match the above.
60775         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60776         Now a macro referring to exit_failure, instead of a separate
60777         variable.  Include "exitfail.h" to get it.
60778         * lib/xstrtol.h: Include "exitfail.h".
60779         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60780
60781         * lib/long-options.c (parse_long_options): Use prototype
60782         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60783         for clarity.
60784
60785 2004-01-21  Jim Meyering  <jim@meyering.net>
60786
60787         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60788         so as not to conflict with a different-sized __mktime_internal
60789         function in GNU libc.
60790         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60791         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60792
60793 2004-01-20  Karl Berry  <karl@gnu.org>
60794
60795         * config/config.guess: update from config.
60796
60797         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60798
60799 2004-01-20  Bruno Haible  <bruno@clisp.org>
60800
60801         Safer stack allocation.
60802         * lib/setenv.c: Include allocsa.h.
60803         (alloca): Remove fallback definition.
60804         (freea): Remove macro.
60805         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60806         instead of freea.
60807
60808 2004-01-20  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/eealloc.m4: New file, from GNU gettext.
60811
60812 2004-01-20  Bruno Haible  <bruno@clisp.org>
60813
60814         * m4/allocsa.m4: New file, from GNU gettext.
60815
60816 2004-01-20  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/xallocsa.h: New file, from GNU gettext.
60819         * lib/xallocsa.c: New file, from GNU gettext.
60820
60821 2004-01-20  Bruno Haible  <bruno@clisp.org>
60822
60823         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60824
60825 2004-01-20  Bruno Haible  <bruno@clisp.org>
60826
60827         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60828         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60829         specially.
60830
60831 2004-01-20  Bruno Haible  <bruno@clisp.org>
60832
60833         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60834         patch.
60835
60836 2004-01-20  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60839
60840 2004-01-20  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/eealloc.h: New file.
60843
60844 2004-01-20  Bruno Haible  <bruno@clisp.org>
60845
60846         * lib/binary-io.h: Avoid warnings on Cygwin.
60847
60848 2004-01-20  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/allocsa.h: New file, from GNU gettext.
60851         * lib/allocsa.c: New file, from GNU gettext.
60852
60853 2004-01-18  Karl Berry  <karl@gnu.org>
60854
60855         * doc/gpl.texi, doc/lgpl.texi: new files.
60856
60857 2004-01-18  Karl Berry  <karl@gnu.org>
60858
60859         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60860         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60861
60862 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60863
60864         Merge from coreutils.
60865
60866         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60867         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60868         (gl_DEFAULT_POSIX2_VERSION): Move
60869         the documentation from 'configure' into 'config.hin',
60870         so that 'configure --help' isn't burdened by it and
60871         we don't have to worry about its formatting there.
60872         Reword the documentation so that it's more succinct
60873         and can be run together into a single paragraph.
60874         * m4/same.m4 (gl_SAME): Check for pathconf.
60875
60876 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60877
60878         Merge from coreutils.
60879
60880         * lib/posixver.c: Include posixver.h.
60881
60882         * lib/same.c: Include <stdbool.h>, <limits.h>.
60883         (_POSIX_NAME_MAX): Define if not defined.
60884         (MIN): New macro.
60885         (same_name): If file names are silently truncated, report
60886         that the file names are the same if they are the same after
60887         the silent truncation.
60888
60889         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60890         conversion function.
60891         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60892         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60893         longer needed.
60894
60895 2004-01-15  Jim Meyering  <jim@meyering.net>
60896
60897         Merge from coreutils.
60898
60899         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60900         if no library is required.
60901         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60902         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60903         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60904         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60905         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60906         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60907         value, $ac_cv_search_crypt, if it's "none required".
60908         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60909         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60910         not gl_FUNC_GETLOADAVG.
60911         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60912         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60913
60914 2004-01-15  Jim Meyering  <jim@meyering.net>
60915
60916         Merge from coreutils.
60917
60918         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60919         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60920         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60921
60922         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60923         optional configure-time default.
60924
60925         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60926
60927         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60928
60929 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60930
60931         Merge from coreutils.
60932
60933         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60934         value, $ac_cv_search_nanosleep, if it's "none required".
60935
60936 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60937
60938         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60939         with like-named macro in fnmatch.c.
60940         (EXT): Use an internal constant instead.
60941
60942         Merge fnmatch patches from glibc.
60943         * lib/fnmatch.c (mbsinit): Remove define.
60944         Add libc_hidden_ver (__fnmatch, fnmatch).
60945         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60946         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60947
60948 2004-01-14  Karl Berry  <karl@gnu.org>
60949
60950         * config/install-sh: update from automake.
60951
60952 2004-01-13  Karl Berry  <karl@gnu.org>
60953
60954         * config/install-sh: update from automake.
60955
60956 2004-01-09  Karl Berry  <karl@gnu.org>
60957
60958         * config/install-sh: update from automake.
60959
60960 2004-01-05  Karl Berry  <karl@gnu.org>
60961
60962         * config/config.{sub,guess}: update from config.
60963
60964 2003-12-31  Karl Berry  <karl@gnu.org>
60965
60966         * config/depcomp: update from automake.
60967
60968 2003-12-14  Karl Berry  <karl@gnu.org>
60969
60970         * lib/config.charset: update from gettext-runtime.
60971
60972 2003-12-03  Paul Eggert  <eggert@twinsun.com>
60973
60974         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
60975         Bug reported by Alfred M. Szmidt.
60976
60977 2003-12-03  Bruno Haible  <bruno@clisp.org>
60978
60979         * m4/gettext.m4: Upgrade from gettext-0.13.
60980         * m4/po.m4: Upgrade from gettext-0.13.
60981         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
60982         * m4/intmax.m4: New file, from gettext-0.13.
60983         * m4/printf-posix.m4: New file, from gettext-0.13.
60984
60985 2003-11-29  Karl Berry  <karl@gnu.org>
60986
60987         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
60988
60989 2003-11-25  Paul Eggert  <eggert@twinsun.com>
60990             Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/printf-parse.h: Don't include sys/types.h.
60993         (ARG_NONE): New macro.
60994         (char_directive): Change type of *arg_index fields to size_t.
60995         * lib/printf-parse.c: Don't include sys/types.h.
60996         (SSIZE_MAX): Remove macro.
60997         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
60998         Remove unnecessary overflow check.
60999         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61000         fields.
61001
61002 2003-11-25  Bruno Haible  <bruno@clisp.org>
61003
61004         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61005
61006 2003-11-25  Bruno Haible  <bruno@clisp.org>
61007
61008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61009         gt_TYPE_SSIZE_T.
61010
61011 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61012
61013         * modules/alloca: Remove dependency on xalloc.
61014
61015 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61016
61017         * lib/alloca.c: Remove dependency on xalloc module.
61018         (xalloc_die): Remove.
61019         (memory_full) [!defined emacs]: New macro.
61020         [!defined emacs]: Don't include xalloc.h.
61021         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61022         address arithmetic overflows.  Change datatypes a bit to avoid
61023         unnecessary casts.
61024
61025 2003-11-22  Jim Meyering  <jim@meyering.net>
61026
61027         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61028         s/size/size_t/.
61029
61030 2003-11-21  Karl Berry  <karl@gnu.org>
61031
61032         * config/config.{sub,guess}: update from config.
61033
61034 2003-11-18  Karl Berry  <karl@gnu.org>
61035
61036         * config/config.{sub,guess}: update from config.
61037
61038         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61039
61040 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61041
61042         * README: Mention that S+T cannot overflow if S is the size of
61043         an existing object and T is sufficiently small.
61044
61045 2003-11-17  Jim Meyering  <jim@meyering.net>
61046
61047         On systems without utime and without a utimes function capable of
61048         dealing with a NULL struct utimbuf* argument, this utime replacement
61049         could -- in unusual circumstances -- leak a file descriptor.
61050         * lib/utime.c: Include <unistd.h> and <errno.h>.
61051         (utime_null): Be sure to close `fd' and to preserve errno.
61052         Reported by Geoff Collyer via Arnold Robbins.
61053
61054 2003-11-17  Bruno Haible  <bruno@clisp.org>
61055
61056         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61057         (Depends-on): Add xsize.
61058
61059 2003-11-17  Bruno Haible  <bruno@clisp.org>
61060
61061         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61062
61063 2003-11-17  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/vasnprintf.c (alloca): Remove fallback definition.
61066         (freea): Remove definition.
61067         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61068         Reported by Paul Eggert.
61069
61070 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61071             Bruno Haible  <bruno@clisp.org>
61072
61073         Protect against address arithmetic overflow.
61074         * lib/printf-args.h: Include stddef.h.
61075         (arguments): Change type of field 'count' to size_t.
61076         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61077         'unsigned int' where appropriate.
61078         * lib/printf-parse.h: Include sys/types.h.
61079         (char_directive): Change type of *arg_index fields to ssize_t.
61080         (char_directives): Change type of fields 'count', max_*_length to
61081         size_t.
61082         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61083         (SSIZE_MAX): Define fallback value.
61084         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61085         instead of 'int' where appropriate. Check a_allocated, d_allocated
61086         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61087         * lib/vasnprintf.c: Include xsize.h.
61088         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61089         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61090         overflow. Avoid wraparound when converting a width or precision from
61091         decimal to binary.
61092
61093 2003-11-16  Bruno Haible  <bruno@clisp.org>
61094
61095         Update from GNU gettext.
61096         * lib/printf-parse.c: Generalize to it can be compiled for wide
61097         strings.
61098         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61099         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61100         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61101         SNPRINTF): New macros.
61102         Don't include <alloca.h> if the file is used inside libintl.
61103         (local_wcslen): New function, for Solaris 2.5.1.
61104         (VASNPRINTF): Use it instead of wcslen.
61105
61106 2003-11-16  Bruno Haible  <bruno@clisp.org>
61107
61108         * lib/xsize.h (xmax): New function.
61109         (xsum, xsum3, xsum4): Declare as "pure" functions.
61110
61111 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61112
61113         * modules/xalloc (Files): Undo latest change, since xalloc.h
61114         no longer needs SIZE_MAX or PTRDIFF_MAX.
61115
61116 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61117
61118         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61119         gl_PTRDIFF_MAX.
61120
61121 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61122
61123         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61124         "return", to pacify some unknown compiler.  Problem reported
61125         by Joerg Schilling.
61126
61127 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61128
61129         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61130         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61131         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61132         heuristic is just as accurate as far as we know, and it removes a
61133         dependency on size_max.m4 and ptrdiff_max.m4.
61134
61135 2003-11-11  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/xsize (Files): Add m4/size_max.m4.
61138         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61139
61140 2003-11-11  Bruno Haible  <bruno@clisp.org>
61141
61142         * m4/size_max.m4: New file.
61143         * m4/ptrdiff_max.m4: New file.
61144         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61145         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61146         (gl_XALLOC): Invoke it.
61147
61148 2003-11-11  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61151         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61152         defined.
61153
61154 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61155
61156         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61157         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61158         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61159         From Bruno Haible.
61160         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61161         not (size_t) -1, since it's defined here.
61162
61163 2003-11-09  Karl Berry  <karl@gnu.org>
61164
61165         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61166
61167 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61168
61169         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61170         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61171         Reject sizes of exactly SIZE_MAX bytes.
61172         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61173         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61174
61175 2003-11-05  Bruno Haible  <bruno@clisp.org>
61176
61177         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61178         SIZE_MAX defined in <limits.h> on Solaris.
61179
61180 2003-11-04  Jim Meyering  <jim@meyering.net>
61181
61182         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61183         variable names, rather than @VAR@.
61184         * modules/poll: Likewise.
61185
61186 2003-11-04  Bruno Haible  <bruno@clisp.org>
61187
61188         * modules/xsize: New file.
61189         * modules/linebreak: Depend on xsize.
61190         * MODULES.html.sh (func_all_modules): Add xsize.
61191
61192 2003-11-04  Bruno Haible  <bruno@clisp.org>
61193
61194         * m4/xsize.m4: New file.
61195
61196 2003-11-04  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/xsize.h: New file.
61199         * lib/linebreak.c: Include xsize.h.
61200         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61201         argument for overflow.
61202         Suggested by Paul Eggert.
61203
61204 2003-11-03  Karl Berry  <karl@gnu.org>
61205
61206         * config/config.{guess,sub}: update from config.
61207
61208 2003-11-03  Jim Meyering  <jim@meyering.net>
61209
61210         * modules/userspec (lib_SOURCES): Add userspec.h.
61211         (Include): Add "userspec.h".
61212         Improve description.
61213
61214 2003-11-03  Jim Meyering  <jim@meyering.net>
61215
61216         * lib/userspec.c: Include "userspec.h".
61217         * lib/userspec.h: New file.
61218
61219 2003-11-03  Bruno Haible  <bruno@clisp.org>
61220
61221         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61222
61223 2003-11-03  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61226         available, to avoid (extremely rare) race condition.
61227         Suggested by Paul Eggert.
61228
61229 2003-11-02  Karl Berry  <karl@gnu.org>
61230
61231         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61232
61233 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61234
61235         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61236         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61237         (read_filesystem_list): Set and use me_type_malloced.
61238         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61239         whatever the type happens to be), for brevity and consistency.
61240         Check for size calculation overflow on Alphas running OSF/1.
61241
61242 2003-10-31  Jim Meyering  <jim@meyering.net>
61243
61244         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61245
61246         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61247
61248 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61249             Bruno Haible  <bruno@clisp.org>
61250
61251         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61252         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61253
61254 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61257         netbsd*-gnu*.  Suggested by Robert Millan.
61258
61259 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61260
61261         * modules/group-member: Depend on stdbool.
61262
61263 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61264
61265         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61266
61267 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61268
61269         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61270         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61271         after the 'gnu' in these cases.  This fixes some bugs in the
61272         previous change, and is based on suggestions by Robert Millan.
61273
61274 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61275
61276         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61277         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61278         no longer needed.
61279         * lib/quotearg.c (quotearg_n_options): Use it.
61280         * lib/group-member.c: Include <stdbool.h>.
61281         (free_group_info): Arg is now const *; don't free arg.
61282         (get_group_info): Now returns bool and accepts struct group_info *,
61283         rather than returning a malloc'ed struct group_info *.
61284         All uses changed.  Check for overflow in internal size calculation.
61285
61286         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61287         rather than xmalloc/xrealloc.
61288         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61289         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61290         conformance bug: the old code used a pointer after freeing the
61291         storage that it addressed.
61292         * lib/hash.c (hash_initialize): Simplify the code by using
61293         xalloc_oversized rather than doing it by hand.
61294         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61295         the buffer preserved.  Use free and xmalloc instead.
61296         * lib/quotearg.c (quotearg_n_options): Likewise.
61297         Use a simpler test for size overflow.  Don't use xalloc_oversized
61298         because unsigned int might be wider than size_t (!); this suggests
61299         that we should switch from unsigned int to size_t for slot numbers.
61300
61301 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61302
61303         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61304         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61305         NetBSD kernels.  Requested by Richard Stallman.
61306
61307 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61308
61309         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61310         to allocate the returned structure.  Do not allocate a subarray,
61311         as x2nrealloc will do that.
61312         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61313         instead of xnrealloc.
61314         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61315
61316 2003-10-27  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/stdbool_.h: Better support for BeOS.
61319
61320 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61321
61322         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61323         now uses inline.
61324
61325 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61326
61327         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61328         callers that want to do their own size-overflow checking.  Include
61329         <stdbool.h>, since xalloc_oversized returns bool.
61330         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61331         to use xalloc_oversized.
61332
61333         Add two functions x2realloc, x2nrealloc, for programs that grow
61334         arrays dynamically by doubling their sizes.
61335         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61336         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61337         New functions.
61338
61339         Port to C99 semantics for 'inline' of external functions.
61340         Bug reported by Bruno Haible.
61341         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61342         with the old contents of xnmalloc.
61343         (xnmalloc, xmalloc): Use it.
61344         (xnrealloc_inline): New static inline function,
61345         with the old contents of xnrealloc.
61346         (xnrealloc, xrealloc): Use it.
61347
61348         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61349         that.
61350
61351 2003-10-26  Karl Berry  <karl@gnu.org>
61352
61353         * config/srclist.txt (COPYING.DOC): no longer available from
61354         /gd/gnuorg; don't know where the ultimate source is.
61355
61356 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61357
61358         Fix several address-calculation bugs in the hash modules,
61359         plus some minor code cleanup.
61360
61361         * lib/hash.h: Include <stdbool.h>, for bool.
61362         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61363         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61364         hash_get_n_entries, hash_get_max_bucket_length,
61365         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61366         hash_rehash): Use size_t rather than unsigned.
61367         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61368         hash_get_n_buckets_used, hash_get_n_entries,
61369         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61370         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61371         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61372         Likewise.
61373         (SIZE_MAX): Define if not defined.
61374         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61375         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61376         hash_print):
61377         Use const * when possible.
61378         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61379         (check_tuning): Fix bug: if tuning parameters were very close to
61380         0 or 1, rounding errors could have caused subscript violations.
61381         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61382         (hash_initialize): Add 'fail:' label
61383         to free table and return NULL, and use it to simplify code.
61384         Use calloc rather than clearing the storage ourself.
61385         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61386         buffer size calculations.
61387         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61388         Include <stddef.h>, for size_t.
61389         * lib/hash-pjw.c (hash_pjw): Likewise.
61390         Switch to method described by Bruno Haible.
61391         Include <limits.h>, for CHAR_BIT.
61392         (SIZE_BITS): New macro.
61393
61394 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61395
61396         * m4/getline.m4 (AM_FUNC_GETLINE):
61397         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61398         hosts.  Problem reported by Derek Robert Price in
61399         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61400         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61401         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61402
61403 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61404
61405         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61406         ceiling the allocation at NMAX bytes rather than silently
61407         discarding input bytes before NMAX is reached.  This makes
61408         a difference only if NMAX exceeds SIZE_MAX / 2.
61409
61410         * lib/obstack.c: Merge from glibc.
61411         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61412         Add libc_hidden_def (_obstack_newchunk).
61413         (_obstack_free) [! defined _LIBC]: Remove.
61414         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61415         a clone of the function body.
61416         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61417         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61418
61419         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61420         glibc.
61421         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61422         arg to memcpy.
61423
61424         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61425         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61426         Don't use lvalue casts, as GCC plans to remove support for them
61427         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61428         was also present in the non-GCC version, indicating that this
61429         code had always been buggy and had never been widely used.
61430         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61431         Use the fast variant of each macro, rather than copying the
61432         definiens of the fast variant; that way, we'll be more likely to
61433         catch future bugs in the fast variants.
61434
61435 2003-10-20  Bruno Haible  <bruno@clisp.org>
61436
61437         * modules/wait-process: New file.
61438         * MODULES.html.sh (func_all_modules): Add wait-process.
61439
61440 2003-10-20  Bruno Haible  <bruno@clisp.org>
61441
61442         * m4/wait-process.m4: New file.
61443
61444 2003-10-20  Bruno Haible  <bruno@clisp.org>
61445
61446         * lib/wait-process.h: New file, from GNU gettext.
61447         * lib/wait-process.c: New file, from GNU gettext.
61448
61449 2003-10-19  Jim Meyering  <jim@meyering.net>
61450
61451         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61452         HPUX 10.20.
61453
61454 2003-10-18  Karl Berry  <karl@gnu.org>
61455
61456         * config/config.guess: update from config.
61457
61458 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61459
61460         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61461         (getgroups): First arg is int, not size_t.
61462         Don't let 'free' mangle errno.
61463
61464 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61465
61466         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61467
61468 2003-10-16  Karl Berry  <karl@gnu.org>
61469
61470         * config/config.{guess,sub}: update from config.
61471
61472 2003-10-16  Jim Meyering  <jim@meyering.net>
61473
61474         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61475         memcpy.
61476
61477 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61478
61479         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61480         (SIZE_MAX): Remove.
61481         (new_exclude, add_exclude_file): Initial size no longer needs to
61482         be a power of 2.
61483         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61484         our own address arithmetic overflow checking.
61485
61486         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61487         (fnmatch): Do not alloca more than 2000 wide characters;
61488         instead, use malloc for large buffers.
61489         Check for address arithmetic overflow, and return -1
61490         with errno set to ENOMEM in that case.
61491         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61492         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61493         instead, return -1.  Check for address arithmetic overflow.
61494
61495 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61496
61497         Handle invalid suffixes and overflow independently, so that
61498         callers can treat them independently as needed.  Fix some bugs in
61499         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61500         suffix for a human-readable blocksize.  The major caller-visible
61501         change is the addition of a new
61502         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61503         that both overflow and suffix chars were found.
61504
61505         * lib/human.c (humblock): Don't check separately for invalid suffix
61506         char; that is xstrtoumax's job (now that its bug is fixed).
61507         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61508         INTMAX_MAX]: New macros.
61509         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61510         TYPE_MAXIMUM): New macros.
61511         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61512         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61513         if overflow occurs, as it's what __strtol does and it's more useful
61514         in practice.
61515         (__xstrtol): If __strtol reports some error other than ERANGE,
61516         reflect it to the caller as LONGINT_INVALID.  If it reports
61517         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61518         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61519         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61520         value.
61521         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61522         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61523         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61524         [defined UINTMAX_MAX]: New macros.
61525
61526 2003-10-14  Bruno Haible  <bruno@clisp.org>
61527
61528         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61529
61530 2003-10-14  Bruno Haible  <bruno@clisp.org>
61531
61532         * m4/sig_atomic_t: New file, from GNU gettext.
61533         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61534
61535 2003-10-14  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61538         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61539         Also use volatile where needed.
61540
61541 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61542
61543         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61544         Change maintainer from Bruno Haible to 'all'.
61545
61546 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61547
61548         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61549
61550 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61551
61552         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61553         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61554         and define in terms of the other primitives.
61555         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61556         (SIZE_MAX): Define if not already defined.
61557         (array_size_overflow): New function.
61558         (xalloc_die): Abort instead of exiting if 'error' returns.
61559         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61560         (xmalloc, xrealloc): Use them.
61561         (xcalloc): Check for address arithmetic overflow.
61562         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61563         a bit faster than strcpy.
61564
61565 2003-10-10  Simon Josefsson  <jas@extundo.com>
61566
61567         * modules/argp (Depends-on): Add restrict and strcase.
61568
61569 2003-10-10  Simon Josefsson  <jas@extundo.com>
61570
61571         * m4/argp.m4: Add AC_C_INLINE.
61572
61573 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61574
61575         Merge getpass from libc, plus a few fixes.
61576
61577         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61578         Include <stdbool.h>.
61579         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61580         __fsetlocking to empty.
61581         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61582         do include <bits/libc-lock.h>.
61583         Do not include <fcntl.h>; not needed.
61584         [_LIBC]: Include <wchar.h>.
61585         (NOTCANCEL_MODE): New macro.
61586         (flockfile, funlockfile) [_LIBC]: New macros.
61587         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61588         [!_LIBC]: New macros.
61589         (call_fclose): New function.
61590         (getpass): Use it.  Save tty stream separately; this simplifies the
61591         code and makes it more reliable if stdin happens to equal stdout.
61592         Invoke __fsetlocking on tty.
61593         Handle thread cancellation if needed.
61594         Namespace cleanup (use __tcgetattr, __getline).
61595         Use bool for Booleans.
61596         [USE_IN_LIBIO]: Handle wide streams.
61597         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61598         stream might go where.
61599
61600         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61601         doesn't have to include <stdio.h> before us.
61602         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61603         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61604         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61605         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61606         if not declared, so that we can use getpass.c code from libc without
61607         rewriting it.
61608         (flockfile, ftrylockfile, funlockfile): New macros.
61609
61610 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61611
61612         * modules/getpass: Depend on stdbool.
61613
61614 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61615
61616         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61617
61618 2003-10-07  Karl Berry  <karl@gnu.org>
61619
61620         * config/config.{guess,sub}: update from config.
61621
61622 2003-10-06  Jim Meyering  <jim@meyering.net>
61623             Bruno Haible  <bruno@clisp.org>
61624
61625         This lets translators provide better translations for the
61626         "Written by ..." part of --version output.
61627         * lib/version-etc.h: Include stdarg.h.
61628         (version_etc_copyright): Declare as readonly.
61629         (version_etc): Make this function variadic with a NULL-terminated list
61630         of author name strings.
61631         (version_etc_va): New declaration.
61632         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61633         (version_etc_copyright): Declare as readonly.
61634         (version_etc_va): New function. Provide a different translatable string
61635         for each possible number of authors < 10. Abbreviate when there are 10
61636         authors or more.
61637         (version_etc): Make this function variadic. Call version_etc_va.
61638         Suggestion from Gary V. Vaughan.
61639
61640         * lib/long-options.h (parse_long_options): Change prototype: the
61641         authors string is moved to the end and becomes variadic.
61642         * lib/long-options.c: Include stdarg.h.
61643         (parse_long_options): Make this function variadic, too.
61644         Call version_etc_va, not version_etc.
61645
61646 2003-10-06  Bruno Haible  <bruno@clisp.org>
61647
61648         * modules/version-etc-2: Remove file.
61649         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61650
61651 2003-10-06  Bruno Haible  <bruno@clisp.org>
61652
61653         * modules/fatal-signal: New file.
61654         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61655
61656 2003-10-06  Bruno Haible  <bruno@clisp.org>
61657
61658         * m4/fatal-signal.m4: New file.
61659         * m4/signalblocking.m4: New file, from GNU gettext.
61660
61661 2003-10-06  Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/version-etc-2.h: Remove file.
61664         * lib/version-etc-2.c: Remove file.
61665
61666 2003-10-06  Bruno Haible  <bruno@clisp.org>
61667
61668         * lib/fatal-signal.h: New file, from GNU gettext.
61669         * lib/fatal-signal.c: New file, from GNU gettext.
61670
61671 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61672
61673         * README: Rework advice for preventing empty .o files.
61674         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61675         not <sys/types.h>.
61676
61677 2003-10-04  Karl Berry  <karl@gnu.org>
61678
61679         * lib/argp*: update from libc.
61680
61681 2003-10-04  Karl Berry  <karl@gnu.org>
61682
61683         * config/config.{guess,sub}: update from config.
61684
61685 2003-10-02  Bruno Haible  <bruno@clisp.org>
61686
61687         * modules/lchown (Include): Add lchown.h.
61688         * modules/time_r (Include): Use "..." syntax.
61689         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61690
61691 2003-10-01  Simon Josefsson  <jas@extundo.com>
61692
61693         * MODULES.html.sh (func_all_modules): Move gethostname from section
61694         'based on' to section 'lacking' POSIX:2001.
61695
61696 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61697
61698         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61699         to output mode on the same stream.
61700
61701 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61702
61703         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61704         Fix arg typo in previous patch.
61705
61706 2003-09-28  Jim Meyering  <jim@meyering.net>
61707
61708         * lib/error.c: Correct cpp indentation.
61709
61710 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61711
61712         * modules/free: New file.
61713
61714 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61715
61716         * m4/free.m4: New file.
61717
61718 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61719
61720         * lib/minmax.h (MIN, MAX)
61721         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61722         Omit the special code that used __typeof__, since we worry that
61723         it could be more trouble than it's worth.  See:
61724         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61725         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61726
61727         * lib/free.c: New file.
61728
61729 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61730
61731         Trivial fixes to Makefile.am parts of module listings.
61732         * modules/strstr: Append strstr.h to lib_SOURCES.
61733         * modules/strcase: Likewise, for strcase.h.
61734
61735 2003-09-27  Karl Berry  <karl@gnu.org>
61736
61737         * config/mkinstalldirs: update from automake.
61738
61739 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61740
61741         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61742         (error_tail): Do not loop, reallocating temporary buffer, since
61743         the output cannot contain more wide characters than the input
61744         contains bytes, the size must be big enough already.  This avoids
61745         one potential size overflow calculation.  Check for size overflow
61746         when calculating temporary buffer size.  Free temporary buffer
61747         when done, if it was allocated with malloc; this plugs a memory
61748         leak.  Remove casts from void * to pointers, that are no longer
61749         needed now that we're assuming C89 or better.
61750
61751         Merge error changes from glibc.
61752
61753         * lib/error.c, error.h: Update copyright notice header to match glibc.
61754         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61755         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61756         Disable cancellation while printing error.
61757         * lib/error.h: Prepend __ to parameter names.
61758
61759 2003-09-26  Jim Meyering  <jim@meyering.net>
61760
61761         * lib/error.c (error_tail): Move some declarations
61762         into inner scope where the local variables are used.
61763
61764 2003-09-26  Bruno Haible  <bruno@clisp.org>
61765
61766         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61767         stpncpy().
61768         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61769
61770 2003-09-26  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61773         (stpncpy): Define as alias for gnu_stpncpy.
61774         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61775
61776 2003-09-25  Simon Josefsson  <jas@extundo.com>
61777
61778         * lib/xgetdomainname.h: New file.
61779         * lib/xgetdomainname.c: New file.
61780
61781 2003-09-25  Simon Josefsson  <jas@extundo.com>
61782             Bruno Haible  <bruno@clisp.org>
61783
61784         * modules/getdomainname: New file.
61785         * modules/xgetdomainname: New file.
61786         * MODULES.html.sh (func_all_modules): Add getdomainname,
61787         xgetdomainname.
61788
61789 2003-09-25  Simon Josefsson  <jas@extundo.com>
61790             Bruno Haible  <bruno@clisp.org>
61791
61792         * m4/getdomainname.m4: New file.
61793
61794 2003-09-25  Simon Josefsson  <jas@extundo.com>
61795             Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/getdomainname.h: New file.
61798         * lib/getdomainname.c: New file.
61799
61800 2003-09-25  Karl Berry  <karl@gnu.org>
61801
61802         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61803
61804 2003-09-25  Karl Berry  <karl@gnu.org>
61805
61806         * config/install-sh: update from automake.
61807
61808 2003-09-25  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/version-etc-2: New file, from modules/version-etc with
61811         modifications.
61812         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61813
61814 2003-09-25  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61817         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61818
61819 2003-09-24  Simon Josefsson  <jas@extundo.com>
61820
61821         * modules/xgethostname: Add xgethostname.h.
61822
61823 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61824
61825         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61826         the buffer associated with the argument.  Bug reported by
61827         Simon Josefsson.
61828
61829 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61830
61831         * README: Document assumptions that 'int' is at least 32 bits
61832         wide, that integer arithmetic is 2's complement without overflow,
61833         that there are no holes in integer values, that adding sizes of
61834         two nonoverlapping objects can't overflow, and that all-bits-zero
61835         yields scalar zero.  Fix spelling and capitalization typos.
61836
61837 2003-09-19  Karl Berry  <karl@gnu.org>
61838
61839         * lib/argp.h: update from libc.
61840
61841 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61842
61843         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61844         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61845         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61846
61847 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61848
61849         * gnulib-tool: Use "test -h", not "test -L", for portability
61850         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61851         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61852         (sed_extract_prog): Issue s commands one-by-one, rather than
61853         using \| in one s command.
61854
61855 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61856
61857         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61858         input error, instead of returning NULL the next time we are called
61859         (and therefore losing track of errno).
61860
61861 2003-09-16  Bruno Haible  <bruno@clisp.org>
61862
61863         * gnulib-tool (func_create_testdir): Warn about duplicated
61864         dependencies.
61865
61866 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61867
61868         * modules/argmatch, modules/fatal, modules/obstack,
61869         modules/xalloc, modules/xgethostname: Sort dependencies by
61870         importance, not alphabetically.
61871
61872 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61873
61874         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61875         fails, so that the caller gets the proper errno.
61876
61877         * lib/readutmp.c (read_utmp): Likewise.
61878         Check for fstat error.  Close stream and free storage
61879         when failing.
61880
61881 2003-09-14  Karl Berry  <karl@gnu.org>
61882
61883         * config/srclist.txt (strdup.c): disable for c89 changes.
61884
61885 2003-09-14  Jim Meyering  <jim@meyering.net>
61886
61887         * lib/getloadavg.c: Correct cpp indentation.
61888         * lib/strdup.c: Likewise.
61889         * lib/vasnprintf.c: Likewise.
61890
61891 2003-09-14  Bruno Haible  <bruno@clisp.org>
61892
61893         * modules/fwriteerror: New file.
61894         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61895
61896 2003-09-14  Bruno Haible  <bruno@clisp.org>
61897
61898         * lib/fwriteerror.h: New file.
61899         * lib/fwriteerror.c: New file.
61900
61901 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61902
61903         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61904         modules/xgethostname, modules/xalloc: Depend on exit.
61905
61906 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61907
61908         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61909
61910         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61911         and AC_MINIX, too, so that their extensions are available.
61912
61913         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61914         This macro has been superseded by gl_BACKUPFILE.
61915
61916         More patches to assume C89 or better.
61917
61918         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61919
61920         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61921         unconditionally.
61922         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61923         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61924         Include <string.h>, <stdlib.h> unconditionally.
61925         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61926         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61927         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61928         headers or for string.h.
61929         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61930         or strtoul.
61931
61932         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61933         headers.
61934         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61935         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61936         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61937         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61938         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61939         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61940         memcpy, memset.
61941         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61942         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61943         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61944         strtol.
61945         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61946         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61947         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61948         strtoul.
61949
61950 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61951
61952         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61953         * lib/obstack.c [!defined _LIBC]: Likewise.
61954         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61955         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61956         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
61957
61958         More changes to assume C89 or better.
61959
61960         * lib/error.c (error_tail): Assume vprintf.
61961
61962         * lib/argmatch.c (getenv): Remove decl.
61963         * lib/progreloc.c (get_full_program_name): Define via prototype.
61964         * lib/setenv.c (clearenv): Likewise.
61965         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
61966         needed.
61967         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
61968         (malloc, memcpy): Remove decls.
61969         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
61970         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
61971         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61972         (memcpy): Remove macro.
61973         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
61974         (__P): Remove.  All uses removed.
61975         (PTR): Remove.  All uses changed to void *.
61976         (CHAR_BIT, NULL): Remove.
61977         (spaces, zeros, memset_space, memset_zero)
61978         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
61979         Remove.
61980         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
61981         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
61982         Define with prototype.
61983         Remove now-unnecessary prototype decl.
61984         (extra_args_spec): Assume ANSI C.  All uses changed.
61985         (extra_args_spec_iso): Remove.
61986         (my_strftime, emacs_strftimeu): Define via prototype.
61987         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
61988         unconditionally.
61989         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
61990         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
61991         (strtoul, strtol): Remove decls.
61992         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
61993         LONG_MAX): Remove.
61994         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61995         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
61996         (LOCALE_PARAM_PROTO): New macro.
61997         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
61998         (INTERNAL (strtol), strtol): Define with a prototype.
61999         (PARAMS): Remove.  All uses removed.
62000         * lib/tempname.c: Include <string.h> unconditionally.
62001         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62002         * lib/xgethostname.c (main): Define with a prototype.
62003         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62004         Include <stdlib.h> unconditionally.
62005         (calloc, malloc, realloc, free): Remove decls.
62006         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62007         Include <stdlib.h> unconditionally.  Sort include file names.
62008         (strtod): Remove.
62009         (xstrtod): Define with a prototype.
62010         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62011         (strtol, strtoul): Remove decls.
62012
62013 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62014
62015         More patches to assume C89 or better.
62016         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62017         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62018         string.h, memchr, STDC_HEADERS.
62019
62020 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62021
62022         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62023         Include <stdlib.h>, <string.h> unconditionally.
62024         Remove now-unnecessary cast to char *.
62025         * lib/strnlen.c: Include <string.h> unconditionally.
62026         * lib/yesno.c (yesno): Define with a prototype.
62027
62028 2003-09-11  Bruno Haible  <bruno@clisp.org>
62029
62030         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62031
62032 2003-09-10  Jim Meyering  <jim@meyering.net>
62033
62034         * lib/error.c: Correct indentation of cpp directives.
62035
62036 2003-09-10  Bruno Haible  <bruno@clisp.org>
62037
62038         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62039         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62040         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62041         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62042         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62043         <stdlib.h> and <string.h> checks.
62044         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62045         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62046
62047 2003-09-10  Bruno Haible  <bruno@clisp.org>
62048
62049         * lib/strcspn.c: Include <string.h> unconditionally.
62050         * lib/strpbrk.c: Include <string.h> unconditionally.
62051         * lib/strstr.c: Include <string.h> unconditionally.
62052         * lib/unicodeio.c: Include <string.h> unconditionally.
62053         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62054         * lib/unsetenv.c: Likewise.
62055         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62056         * lib/yesno.c: Include <stdlib.h> unconditionally.
62057         (rpmatch): Add prototype.
62058
62059 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62060
62061         More patches to assume C89 or better.
62062         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62063         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62064         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62065         or for string.h.
62066         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62067         stdlib.h.
62068         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62069         C headers.
62070         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62071         string.h.
62072         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62073         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62074         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62075         or for string.h.
62076         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62077         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62078         C headers.
62079         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62080         memcpy.
62081         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62082         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62083         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62084         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62085         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62086         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62087         string.h, free.
62088         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62089         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62090         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62091         C headers, or for string.h.
62092         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62093         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62094         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62095         headers, memory.h, stdlib.h, string.h, strings.h.
62096         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62097         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62098         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62099         strchr.
62100         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62101         headers, memory.h, string.h.
62102         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62103         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62104         free.
62105         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62106         headers.
62107         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62108         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62109         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62110         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62111         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62112
62113 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62114
62115         More K&R removal.
62116
62117         * lib/acosl.c (main): Use a prototype.
62118         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62119         tanl.c: Likewise.
62120
62121         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62122
62123         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62124         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62125         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62126         with a prototype.
62127         * lib/getopt.c (const): Remove macro.
62128         Include <string.h> unconditionally.
62129         (my_index): Remove; all uses changed to strchr.
62130         (strlen): Remove decl.
62131         (exchange): Remove forward decl; no longer needed.
62132         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62133         Define with prototype.
62134         * lib/getopt1.c (const): Remove macro.
62135         (getopt_long, getopt_long_only, main): Define with prototype.
62136
62137         * lib/getugroups.c: Include <string.h> unconditionally.
62138
62139         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62140         (getusershell, setusershell, endusershell, readname, main):
62141         Define with prototypes.
62142
62143         * lib/group-member.c: Include group-member.h first.
62144         Include <stdlib.h> unconditionally.
62145
62146         * lib/hard-locale.c: Include hard-locale.h first.
62147         Include <stdlib.h>, <string.h> unconditionally.
62148
62149         * lib/hash.c (free, malloc): Remove decls.
62150         Include <stdlib.h> unconditionally.
62151
62152         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62153         (getenv): Do not declare.
62154
62155         * lib/idcache.c: Include <string.h> unconditionally.
62156
62157         * lib/long-options.c: Include long-options.h first, to test interface.
62158         Include <stdlib.h> unconditionally.
62159
62160         * lib/makepath.c: Include makepath.h first, to test interface.
62161         Include <stdlib.h> and <string.h> unconditionally.
62162
62163         * lib/linebuffer.c: Include <stdlib.h>.
62164         (free): Remove decl.
62165
62166         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62167         stddef.h. rpl_malloc returns void *, not char *.
62168         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62169         prototype.
62170
62171         * lib/md5.h: Include <limits.h> unconditionally.
62172         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62173         (__P): Remove; all uses removed.
62174         * lib/md5.c: Include "md5.h" first.
62175         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62176         md5_buffer, md5_process_bytes, md5_process_block):
62177         Define with prototypes.
62178         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62179         * lib/sha.c: Include "sha.h" first.
62180         Include <stdlib.h>, <string.h> unconditionally.
62181
62182         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62183         * lib/memcmp.c (__ptr_t): Likewise.
62184         * lib/memrchr.c (__ptr_t): Likewise.
62185         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62186         Include <string.h> unconditionally.
62187         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62188         * lib/memchr.c: Include <stdlib.h> unconditionally.
62189         * lib/memchr.c (LONG_MAX): Remove.
62190         * lib/memrchr.c (LONG_MAX): Likewise.
62191         * lib/memchr.c (__memchr): Define via a prototype.
62192         * lib/memrchr.c (__memrchr): Likewise.
62193         * lib/memcmp.c (__P): Remove, and remove all uses.
62194         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62195         Remove forward decls; no longer needed.
62196         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62197         Use types required by C89 in prototype.
62198
62199         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62200         * lib/savedir.c: Likewise.
62201         * lib/mkdir.c (free): Remove decl.
62202         * lib/rmdir.c (rmdir): Define with a prototype.
62203         * lib/savedir.c: Include savedir.h first, to test interface.
62204
62205         * lib/mktime.c (STDC_HEADERS): Remove.
62206         Include <stdlib.h>, <string.h> unconditionally.
62207
62208         * lib/modechange.c: Include <stdlib.h> unconditionally.
62209         (malloc): Remove decl.
62210
62211         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62212         (free): Remove decl.
62213
62214         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62215         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62216         (This type really should be intptr_t, but that's a C99ism.)
62217         (_obstack_memcpy): Remove: all uses changed to memcpy.
62218         Include <string.h> unconditionally.
62219         (struct obstack): Assume __STDC__ for types of members
62220         chunkfun, freefun, extra_arg.
62221         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62222         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62223         obstack_begin, obstack_specify_allocation,
62224         obstack_specify_allocation_with_arg, obstack_chunkfun,
62225         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62226         Remove unprototyped decls and the macros that use them.
62227         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62228         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62229         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62230         (defined __STDC__ && __STDC__)]:
62231         Remove nonprototyped code.
62232         Include <stdlib.h> unconditionally.
62233         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62234         _obstack_allocated_p, _obstack_free, obstack_free,
62235         _obstack_memory_used, print_and_abort):
62236         Define using prototypes.
62237         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62238         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62239         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62240         obstack_next_free, obstack_object_size, obstack_room) [0]:
62241         Remove unused, unprototyped code.
62242
62243         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62244
62245         * lib/physmem.c (physmem_total, physmem_available, main): Define
62246         with prototypes.
62247
62248         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62249         (main): Define with a prototype.
62250
62251         * lib/posixver.c (getenv): Remove decl.
62252
62253         * lib/putenv.c (malloc): Returns void *, not char *.
62254         Include <string.h> unconditionally.
62255         (strchr, memcpy, NULL): Do not define.
62256
62257         * lib/readtokens.c: Include readtokens.h first, to test interface.
62258         Include <stdlib.h>, <string.h> unconditionally.
62259         (init_tokenbuffer): Define with a prototype.
62260
62261         * lib/regex.c (PARAMS): Remove.  All uses removed.
62262         All uses of _RE_ARGS removed, too.
62263         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62264         unconditionally.
62265         (bzero): Assume memset exists.
62266         (memcmp, memcpy, NULL): Remove.
62267         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62268         char, or assignments to local vars of type signed char.
62269         (init_syntax_once, PREFIX(extract_number_and_incr),
62270         PREFIX(print_partial_compiled_pattern),
62271         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62272         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62273         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62274         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62275         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62276         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62277         wcs_compile_range, byte_compile_range, truncate_wchar,
62278         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62279         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62280         count_mbs_length, wcs_re_match_2_internal,
62281         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62282         PREFIX(alt_match_null_string_p),
62283         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62284         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62285         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62286         now-unnecessary declaration, if any.
62287         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62288         regcomp, regexec):
62289         Remove now-unnecessary casts among pointer types.
62290         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62291
62292         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62293         (free): Remove decl.
62294
62295         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62296
62297         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62298         (free): Remove decl.
62299
62300         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62301         * lib/xgetcwd.c: Likewise.
62302
62303         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62304         (free): Remove decl.
62305
62306         * lib/strchrnul.c (strchrnul): Define with a prototype.
62307         Fix bug: c_in was not converted to char before searching.
62308
62309         The following changes are not K&R related:
62310
62311         * lib/group-member.h: Include <sys/types.h>, so that this file is
62312         self-contained.
62313         * lib/makepath.h: Likewise.
62314
62315         * lib/getusershell.c (readname, default_index, line_size, readname):
62316         Use size_t, not int, for sizes.
62317         (readname): If the size overflows, report an error instead of
62318         looping forever.
62319
62320 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62321
62322         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62323         libc.
62324
62325 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62326
62327         * README: New section: portability guidelines.
62328
62329 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62330
62331         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62332         C89 spec.
62333
62334 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62335
62336         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62337
62338 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62339
62340         Assume C89 or better; remove K&R cruft.
62341         A few of these changes were first proposed by Derek Robert Price
62342         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62343
62344         * lib/addext.c: Include <string.h> unconditionally.
62345         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62346         Don't declare getenv or malloc.
62347
62348         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62349         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62350         (NULL): Remove.
62351         (find_stack_direction, alloca): Use prototypes.
62352
62353         * lib/atexit.c (atexit): Define using a prototype.
62354
62355         * lib/basename.c, dirname.c, stripslash.c:
62356         Include <string.h> unconditionally.
62357
62358         * lib/bcopy.c: Include <stddef.h>.
62359         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62360
62361         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62362
62363         * lib/error.h (error, error_at_line, error_print_progname)
62364         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62365         * lib/error.c: Include error.h first, to check interface.
62366         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62367         (VA_START): Remove; all uses changeed to va_start.
62368         (exit, strerror): Remove decls.
62369         (error_print_progname): Prototype uncondionally.
62370         Don't include <errno.h>; no longer needed.
62371         (private_strerror): Remove.
62372         (error_tail): Always define.
62373         (error, error_at_line): Assume C89 or better; always use prototypes.
62374         * lib/fatal.c: Include "fatal.h" first, to test interface.
62375         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62376         (VA_START): Remove; all uses changed to va_start.
62377         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62378         this case.
62379         (exit): Remove decl.
62380         (fatal): Prototype unconditionally.  Assume va_start works.
62381         Abort at end, to pacify gcc.
62382
62383         * lib/euidaccess.c (main): Define with a prototype.
62384
62385         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62386
62387         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62388
62389         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62390         prototypes.
62391         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62392         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62393         (getenv): Remove decl.
62394         (fnmatch): Define using a prototype.
62395         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62396         (FCT): Define using a prototype.
62397
62398         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62399
62400         * lib/gethostname.c: Include <stddef.h>.
62401         (gethostname): Define with prototype.  Length is size_t, not int.
62402
62403 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62404
62405         Assume C89 or better; remove K&R cruft.
62406         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62407         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62408         string.h, getenv, malloc.
62409         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62410         headers.
62411         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62412         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62413         do not check for strerror.
62414         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62415         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62416         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62417         do not check for doprnt or vprintf.
62418         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62419         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62420
62421 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62422
62423         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62424         getversion.c should have been removed then, but was accidentally
62425         preserved.
62426
62427         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62428         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62429
62430 2003-09-08  Karl Berry  <karl@gnu.org>
62431
62432         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62433                 config, forget about prep.
62434
62435         * config/depcomp, missing: update from automake.
62436
62437 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62438
62439         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62440         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62441
62442 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62443
62444         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62445         copy_tm_result.  Bug reported by Simon Josefsson in
62446         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62447
62448 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62449
62450         * m4/time_r.m4: New file.
62451         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62452         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62453         is. Check for timegm declaration.
62454         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62455         Do not check for gmtime_r.
62456         Replace mktime if __mktime_internal does not exist and if mktime
62457         hasn't been replaced already.
62458
62459 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62460
62461         * lib/time_r.c, lib/time_r.h: New files.
62462
62463         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62464         __localtime_r.
62465         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62466         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62467
62468         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62469         __gmtime_r.
62470         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62471         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62472         Include <time_r.h>.
62473
62474         * lib/timegm.c: Switch to glibc implementation, with the following
62475         changes:
62476         [defined HAVE_CONFIG_H]: Include <config.h>.
62477         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62478         (__mktime_internal) [!defined _LIBC]: New decl.
62479         (__gmtime_r) [!defined _LIBC]: New macro and function.
62480         (timegm): Use a prototype, since gnulib assumes C89.
62481         Do not bother declaring tmp to be const, as it's not really usefu.
62482         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62483         (timegm): Declare only if HAVE_DECL_TIMEGM.
62484
62485 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62486
62487         * MODULES.html.sh (func_all_modules): Add time_r.
62488         * modules/time_r: New file.
62489         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62490         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62491
62492 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62493
62494         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62495         Bug reported by Lute Kamstra in
62496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62497
62498         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62499         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62500         course with correspondingly smaller numbers for tomorrow and
62501         yesterday.  From Tadayoshi Funaba.  Originally installed into
62502         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62503         coreutils merge?).
62504
62505 2003-08-31  Simon Josefsson  <jas@extundo.com>
62506
62507         * modules/timegm: New file.
62508         * MODULES.html.sh (func_all_modules): Add timegm.
62509
62510 2003-08-31  Simon Josefsson  <jas@extundo.com>
62511
62512         * m4/timegm.m4: New file.
62513
62514 2003-08-31  Simon Josefsson  <jas@extundo.com>
62515
62516         * lib/timegm.h: New file.
62517         * lib/timegm.c: New file.  Based on
62518         wget-1.8.2/src/http.c:mktime_from_utc.
62519
62520 2003-08-31  Karl Berry  <karl@gnu.org>
62521
62522         * lib/argp.h: update from libc.
62523
62524 2003-08-28  Bruno Haible  <bruno@clisp.org>
62525
62526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62527         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62528         followed by '#define fnmatch fnmatch_posix' gives an error.
62529
62530 2003-08-28  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62533         warning on QNX, which defines O_BINARY to 000000.
62534
62535 2003-08-27  Jim Meyering  <jim@meyering.net>
62536
62537         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62538         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62539         would fail after 32.  Reported by Danny Levinson.  Details here:
62540         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62541
62542 2003-08-24  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62545         MSVC7 <stdio.h> is included later.
62546
62547 2003-08-22  Simon Josefsson  <jas@extundo.com>
62548
62549         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62550
62551 2003-08-20  Karl Berry  <karl@gnu.org>
62552
62553         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62554
62555 2003-08-20  Bruno Haible  <bruno@clisp.org>
62556
62557         * modules/progname: New file.
62558         * MODULES.html.sh (func_all_modules): Add progname.
62559
62560 2003-08-20  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/progname.h: New file, from GNU gettext.
62563         * lib/progname.c: New file, from GNU gettext.
62564         * lib/progreloc.c: New file, from GNU gettext.
62565
62566 2003-08-19  Jim Meyering  <jim@meyering.net>
62567
62568         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62569         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62570
62571 2003-08-19  Bruno Haible  <bruno@clisp.org>
62572
62573         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62574         more.
62575
62576 2003-08-19  Bruno Haible  <bruno@clisp.org>
62577
62578         * lib/xstrdup.c: Assume <string.h> exists.
62579
62580 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62581
62582         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62583         in makefile rules.
62584
62585 2003-08-18  Jim Meyering  <jim@meyering.net>
62586
62587         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62588         * m4/lib-ld.m4: Likewise.
62589
62590 2003-08-18  Jim Meyering  <jim@meyering.net>
62591
62592         * lib/setenv.h: Indent nested cpp directive.
62593         * lib/vasnprintf.c: Remove trailing blanks.
62594
62595 2003-08-17  Simon Josefsson  <jas@extundo.com>
62596
62597         * modules/xstrndup: New file.
62598         * MODULES.html.sh (func_all_modules): Add xstrndup.
62599
62600 2003-08-17  Simon Josefsson  <jas@extundo.com>
62601
62602         * modules/argp: Fix autoconf macro name. Add more dependencies.
62603
62604 2003-08-17  Simon Josefsson  <jas@extundo.com>
62605
62606         * m4/xstrndup.m4: New file.
62607
62608 2003-08-17  Simon Josefsson  <jas@extundo.com>
62609
62610         * m4/argp.m4: New file.
62611
62612 2003-08-17  Simon Josefsson  <jas@extundo.com>
62613             Bruno Haible  <bruno@clisp.org>
62614
62615         * lib/xstrndup.h: New file.
62616         * lib/xstrndup.c: New file.
62617
62618 2003-08-17  Bruno Haible  <bruno@clisp.org>
62619
62620         * modules/strndup (Files, Include): Add lib/strndup.h.
62621
62622 2003-08-17  Bruno Haible  <bruno@clisp.org>
62623
62624         * modules/euidaccess (Files): Add lib/euidaccess.h.
62625
62626 2003-08-17  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/strndup.h: New file.
62629
62630 2003-08-17  Bruno Haible  <bruno@clisp.org>
62631
62632         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62633         like AC_GNU_SOURCE.
62634         * modules/extensions (configure.ac): Comment out the invocation of
62635         gl_USE_SYSTEM_EXTENSIONS.
62636
62637 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62638
62639         Merges from coreutils, etc.
62640         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62641         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62642         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62643         fixing a typo.
62644         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62645         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62646
62647 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62648
62649         Document merge from coreutils.
62650         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62651         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62652         * modules/utime: Add m4/utimes-null.m4.
62653
62654 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62655
62656         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62657         space, undoing this 2003-08-12 change:
62658         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62659
62660 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62661
62662         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62663         strtoul.c from libc, undoing this 2003-08-12 change:
62664         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62665
62666 2003-08-16  Jim Meyering  <jim@meyering.net>
62667
62668         Merges from coreutils.
62669         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62670         prefix.  Adjust cache variables similarly.  Create 500 rather than
62671         just 300 files, to exercise bug on Darwin6.5, too.
62672         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62673         $missing_dir.
62674         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62675         AM_SYS_POSIX_TERMIOS.
62676         Reported by mkc@mathdogs.com.
62677         Also change use of $am_cv_sys_posix_termios
62678         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62679         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62680         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62681         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62682         in /proc/mounts until it finds one with matching device number.  This
62683         is unnecessary when the FILE argument *is* a mount point.  No stat call
62684         is necessary in that case.  So, disable the statvfs-testing code on
62685         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62686         as RedHat bug# 84846.
62687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62688         to 1MB, so as not to render systems with no stack size limit (e.g.,
62689         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62690         Include <unistd.h>.  On some systems,
62691         it is required for the definition of _SC_PAGESIZE.
62692
62693 2003-08-16  Jim Meyering  <jim@meyering.net>
62694
62695         Merge from coreutils.
62696         * lib/xstrtoimax.c: #else #if -> #elif.
62697         * lib/xstrtoumax.c: Likewise.
62698
62699 2003-08-16  Jim Meyering  <jim@meyering.net>
62700
62701         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62702         * m4/utimes.m4: Removed.
62703         * m4/utimes-null.m4: Renamed from utimes.m4.
62704
62705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62706         to 1MB, so as not to render systems with no stack size limit (e.g.,
62707         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62708         Include <unistd.h>.  On some systems,
62709         it is required for the definition of _SC_PAGESIZE.
62710
62711 2003-08-16  Jim Meyering  <jim@meyering.net>
62712         and Paul Eggert  <eggert@cs.ucla.edu>
62713
62714         Merges from coreutils, etc.
62715
62716         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62717         using the latest version from cvs.  This avoids problems with #line
62718         directives using a vendor (Sun) compiler.
62719         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62720         Don't set GETGROUPS_LIB here; now it's
62721         done via getgroups.m4's wrapper function.
62722         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62723         rather than just in sh-util/configure.in, so that the
62724         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62725         same.
62726         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62727         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62728         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62729         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62730         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62731         Remove code that is now done by the newly-required macros.
62732         Append $(EXEEXT) to DF_PROG.
62733         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62734         Do not invoke or require the following here,
62735         since prereq.m4 or some gnulib .m4 now does this for us:
62736         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62737         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62738         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62739         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62740         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62741         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62742         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62743         AC_FUNC_OBSTACK.
62744         Do not replace the following functions, as this is now the job
62745         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62746         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62747         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62748         atexit getpass, strdup, getpagesize.
62749         Replace 'raise'.
62750         Do not check for the following functions, as this is now the job
62751         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62752         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62753         setregid.
62754         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62755         Check for sys/sysctl.h.
62756         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62757         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62758         of checking for ssize_t ourselves.
62759
62760         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62761         Require every macro that gnulib/modules/* suggests for us.
62762         (jm_PREREQ_ADDEXT): New macro.
62763         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62764         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62765
62766         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62767         (gl_PHYSMEM): Use it.
62768         Also check for `table' function.
62769         Check for new headers and functions.
62770         Add check for sys/sysmp.h.
62771         With suggestions from Kaveh Ghazi.
62772         Ignore headers that are present but cannot be compiled.  This
62773         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62774         C 5.4.
62775
62776 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62777
62778         Document merge from coreutils.
62779         * modules/userspec: Depend on posixver.
62780         * modules/strftime: Depend on tzset.
62781
62782 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62783
62784         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62785         rather than tab, after '#' in shell-script copyright notices.
62786         Suggested by Bruno Haible.
62787
62788 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62789
62790         * config/srclist-update: Use three spaces, rather than tab, after '#'
62791         in shell-script copyright notices.  Suggested by Bruno Haible.
62792         Remove unnecessary parenthesization in regular expression.
62793
62794 2003-08-15  Jim Meyering  <jim@meyering.net>
62795
62796         Merge from coreutils.
62797         * lib/xgethostname.c: Include <stdlib.h>.
62798         (xghostname): Don't exit for anything other than memory-related
62799         failure; just return NULL.
62800         * lib/userspec.c: Include "posixver.h".
62801         (parse_user_spec): Accept `.' as a separator only
62802         in pre-POSIX-200112 mode.
62803         * lib/strtoimax.c: Use #elif rather than #else #if.
62804         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62805         Remove function, now that we can rely on a working tzset function.
62806         [!_LIBC]: Ensure that the required autoconf test has been run.
62807         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62808         Use underlying_strftime for %r.
62809         * lib/sha.c: Merge in some clean-up and optimization changes from
62810         glibc.
62811         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62812         Ensure that it is a multiple of 64.
62813         Rearrange loop exit tests so as to avoid performing an
62814         additional fread after encountering an error or EOF.
62815         * lib/realloc.c: Update copyright date.
62816
62817 2003-08-15  Jim Meyering  <jim@meyering.net>
62818         and Paul Eggert  <eggert@twinsun.com>
62819
62820         Merge from coreutils.
62821         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62822         member but strut utmpx does not.  Needed for AIX 4.3.3.
62823         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62824
62825 2003-08-15  Jim Meyering  <jim@meyering.net>
62826         and Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         Merges from coreutils, etc.
62829         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62830         Require gl_FUNC_TZSET_CLOBBER.
62831         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62832         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62833         members.
62834
62835 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62836
62837         Help the merge from coreutils.
62838         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62839         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62840         * m4/tzset.m4: Use it too.
62841
62842 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62843
62844         * modules/tzset: New file.
62845
62846 2003-08-14  Jim Meyering  <jim@meyering.net>
62847
62848         Merges from coreutils.
62849         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62850         variable names, rather than @FNMATCH_H@.
62851         * modules/alloca: Likewise for $(ALLOCA_H).
62852
62853         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62854         the three copies of the literal target, `fnmatch.h'.
62855         * modules/alloca (alloca.h): Likewise.
62856
62857 2003-08-14  Jim Meyering  <jim@meyering.net>
62858
62859         Merge from coreutils.
62860         * m4/tzset.m4: New file.
62861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62862         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62863         otherwise, AIX 5.1 systems would end up using the latter.
62864         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62865         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62866         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62867         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62868
62869 2003-08-14  Jim Meyering  <jim@meyering.net>
62870
62871         Merge from coreutils.
62872         * lib/obstack.h: Whitespace changes.
62873         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62874         and xcalloc return values.
62875         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62876         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62877         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62878         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62879         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62880         error from mntctl.
62881         Use mntctl's return value to drive the entry-processing loop, since
62882         we can't rely on the value of the vmt_length member in the last
62883         entry.  On some systems doing so could result in exhausting
62884         virtual memory.  Based in part on a patch from Mike Jetzer.
62885
62886 2003-08-14  Jim Meyering  <jim@meyering.net>
62887         and Paul Eggert  <eggert@twinsun.com>
62888
62889         Merges from coreutils, plus other fixes.
62890         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62891         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62892         for credits and details.  Thanks to Kaveh Ghazi for helping
62893         to keep these files in sync.
62894         (ARRAY_SIZE): Define it.
62895         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62896         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62897         (memcasecmp): Don't assume size_t fits in unsigned int.
62898         Remove casts and duplicate code.
62899         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62900         (memcpy): Remove definition.
62901         Merge in some clean-up and optimization changes from glibc.
62902         [BLOCKSIZE]: Move definition to top of file.
62903         Ensure that it is a multiple of 64.
62904         Rearrange loop exit tests so as to avoid performing an
62905         additional fread after encountering an error or EOF.
62906         * lib/md5.h (md5_uintptr): Define.
62907         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62908         return to the initial working directory.  Preserve errno
62909         for caller.
62910         * lib/idcache.c: Include "xalloc.h".
62911         (xmalloc, xrealloc): Remove decls.
62912         (getuser): Remove casts no longer required in C89.
62913         * lib/human.c: Include stdio.h, for sprintf.
62914         * lib/group-member.c: Include "xalloc.h".
62915         (xmalloc, xrealloc): Remove decls.
62916         (get_group_info): Remove casts no longer required in C89.
62917         * lib/getusershell.c (readname): Remove casts no longer required in
62918         C89.
62919         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62920         * lib/getline.c: Whitespace fix, from coreutils.
62921
62922 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62923
62924         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62925         Check for isascii.
62926
62927         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62928         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62929         Undo previous (whitespace-only) change.
62930
62931 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62932
62933         * lib/exclude.c: Include <ctype.h>
62934         (IN_CTYPE_DOMAIN): New macro.
62935         (is_space): New fn.
62936         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62937         and empty lines.
62938
62939         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62940         Undo previous (whitespace-only) change.
62941
62942 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62943
62944         * config/srclist-update: Change update back to the old behavior,
62945         leaving whitespace alone.  Use one 'sed' command rather than a
62946         pipeline.
62947         (fixlicense): Now a variable, not a function.
62948         (remove_trailing_blanks): Remove.
62949         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62950         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62951         Undo previous (whitespace-only) change.
62952
62953 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62954
62955         Merge from coreutils.
62956         * modules/euidaccess: Add lib_SOURCES, include for new
62957         file euidaccess.h
62958
62959 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62960
62961         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62962         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62963         Normalize leading white space and remove trailing white space.
62964
62965         Merge from coreutils
62966         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
62967
62968         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
62969         0.12.1.  These files are now being upgraded automatically by
62970         ../config/srclist-update.
62971
62972 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62973
62974         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62975         Normalize leading white space and remove trailing white space.
62976         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
62977         notice, as per ../config/srclist-update.
62978
62979         Merge from coreutils.
62980         * lib/euidaccess.h: New file.
62981         * lib/euidaccess.c: Include it.
62982         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
62983         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
62984         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
62985
62986 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62987
62988         * config/srclist-update: Add copyright notice.
62989         (remove_id_lines, remove_trailing_blanks): New constants.
62990         (fixfile): Use them to normalize spacing a bit in copied files.
62991         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62992         Normalize leading white space and remove trailing white space.
62993
62994         * config/texinfo.tex: Sync with texinfo.
62995
62996         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
62997         strtoul.c from libc, to merge coreutils whitespace changes.
62998
62999         * config/srclist.txt: Get the following m4 files from gettext:
63000         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63001         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63002         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63003         wint_t.m4.
63004
63005 2003-08-12  Karl Berry  <karl@gnu.org>
63006
63007         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63008         been made.
63009
63010 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63011
63012         * modules/gnu-source, m4/gnu-source.m4:
63013         Remove; we're assuming Autoconf 2.54 or later now.
63014         Suggested by Bruno Haible.
63015         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63016
63017 2003-08-11  Bruno Haible  <bruno@clisp.org>
63018
63019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63020
63021 2003-08-11  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63024         (vasnprintf): Use it instead of wcslen.
63025
63026 2003-08-11  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63029         value to ensure that _Bool promotes to int. Use #define for _Bool when
63030         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63031
63032 2003-08-10  Karl Berry  <karl@gnu.org>
63033
63034         * lib/regex.h: update from libc (whitespace fix).
63035
63036 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63037
63038         Merge some files from coreutils.  These changes were
63039         originally made by Jim Meyering.
63040         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63041         many older Unixes require this.
63042         * lib/alloca.c (alloca): Remove cast to argument of free;
63043         no longer needed in C89.
63044         * lib/alloca_.h, regex.h: Fix white space to match
63045         what GNU indent does.
63046
63047 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63048
63049         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63050         apparently Emacs's Unicode mode got confused before my 2003-08-05
63051         checkin.
63052
63053 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63054
63055         * m4/extensions.m4: New file.
63056         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63057         Require gl_USE_SYSTEM_EXTENSIONS.
63058         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63059         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63060
63061 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63062
63063         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63064         * modules/extensions, modules/gnu-source: New files.
63065         * modules/timespec, modules/unlocked-io: Depend on extensions.
63066
63067 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63068
63069         * modules/restrict: New file.
63070         * MODULES.html.sh (func_all_modules): Add restrict.
63071         * modules/regex: Depend on restrict.
63072
63073 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63074
63075         * m4/restrict.m4: New file.
63076         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63077
63078 2003-08-07  Bruno Haible  <bruno@clisp.org>
63079
63080         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63081         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63082
63083 2003-08-07  Bruno Haible  <bruno@clisp.org>
63084
63085         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63086         makes the module 'getndelim2' compatible with the module 'getline'.
63087
63088 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63089
63090         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63091         byte with "\201" to avoid glitches when editing that source file
63092         with multi-gnome-terminal.
63093
63094 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63095
63096         * lib/bumpalloc.h: Remove.
63097
63098 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63099
63100         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63101         * modules/bumpalloc: Remove.
63102
63103 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63104
63105         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63106         GNU coding style.
63107
63108         Merge from coreutils.
63109         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63110         1. From glibc.
63111         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63112         from Karl Berry, implemented by Jim Meyering.
63113         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63114         from Dmitry V. Levin.
63115         Remove anachronistic cast of xrealloc.
63116         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63117         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63118         type. Otherwise, it wouldn't compile with at least /bin/cc on
63119         ymp-cray-unicos9.0.2.X.
63120         Combine two mostly-identical uses of alloca into one.
63121         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63122
63123 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63124
63125         [From Emacs.]
63126
63127         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63128         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63129         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63130         obsolete NLIST_NAME_UNION.
63131         [__GNU__]: Undef BSD and FSCALE.
63132         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63133
63134 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63135
63136         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63137         an enum type, so that it's guaranteed to promote to int.  See:
63138         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63139
63140 2003-08-03  Karl Berry  <karl@gnu.org>
63141
63142         * config/depcomp: update from automake.
63143
63144 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63145
63146         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63147         (strerror): Don't assume that a printable int fits in 14 bytes.
63148
63149 2003-07-31  Bruno Haible  <bruno@clisp.org>
63150
63151         * modules/getpass-gnu: New file.
63152         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63153
63154 2003-07-31  Bruno Haible  <bruno@clisp.org>
63155
63156         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63157
63158 2003-07-24  Karl Berry  <karl@gnu.org>
63159
63160         * config/missing: update from automake.
63161
63162 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63163             Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63166         * lib/getline.c (getline, getdelim): Likewise.
63167         Remove _GNU_SOURCE define; now it's defined in config.h through
63168         m4/getline.m4.
63169
63170 2003-07-23  Karl Berry  <karl@gnu.org>
63171
63172         * config/config.sub: update from prep.
63173
63174 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63175
63176         * modules/xalloc (Depends-on): Add exitfail.
63177         * modules/xmemcoll: Likewise.
63178
63179 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63180
63181         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63182         over-parenthesization in macros.
63183
63184         Sync with coreutils.
63185
63186         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63187         required by C99.
63188
63189         Use `exit_failure' for xalloc and xmemcoll instead of their own
63190         private exit-failure variables.
63191         * lib/xalloc.h (xalloc_exit_failure): Remove.
63192         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63193         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63194         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63195         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63196         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63197
63198 2003-07-20  Jim Meyering  <jim@meyering.net>
63199
63200         * modules/closeout (Depends-on): Add exitfail.
63201         Suggestion from Bruno Haible.
63202
63203 2003-07-19  Karl Berry  <karl@gnu.org>
63204
63205         * config/config.sub: update from prep.
63206
63207 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63208
63209         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63210         Remove.
63211         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63212         to test that it can stand by itself.  Include "exitfail.h".
63213         Clients should set exit_failure instead.
63214         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63215
63216 2003-07-18  Bruno Haible  <bruno@clisp.org>
63217
63218         * modules/getndelim2: New file.
63219         * modules/getline: Share files with module getndelim2.
63220         * modules/getnline: Depend on getndelim2 instead of sharing files with
63221         it. Add getnline.c to lib_SOURCES.
63222         * MODULES.html.sh (func_all_modules): Add getndelim2.
63223
63224 2003-07-18  Bruno Haible  <bruno@clisp.org>
63225
63226         * m4/getndelim2.m4: New file.
63227         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63228         invoke gl_PREREQ_GETNDELIM2.
63229         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63230         gl_PREREQ_GETNDELIM2.
63231         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63232         gl_GETNDELIM2.
63233
63234 2003-07-18  Bruno Haible  <bruno@clisp.org>
63235
63236         * lib/getndelim2.h: New file.
63237         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63238         getndelim2.h.
63239         (getndelim2): Make non-static. Change return type to ssize_t.
63240         * lib/getline.h: Change argument names.
63241         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63242         * lib/getnline.c: Include getndelim2.h.
63243
63244 2003-07-18  Andreas Schwab  <schwab@suse.de>
63245
63246         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63247
63248 2003-07-17  Karl Berry  <karl@gnu.org>
63249
63250         * config/config.sub: update from prep.
63251
63252 2003-07-17  Bruno Haible  <bruno@clisp.org>
63253
63254         * modules/getnline: New file.
63255         * modules/getline: Add lib/getndelim2.c to source file list.
63256         * MODULES.html.sh (func_all_modules): Add getnline.
63257
63258 2003-07-17  Bruno Haible  <bruno@clisp.org>
63259
63260         * m4/getnline.m4: New file.
63261
63262 2003-07-17  Bruno Haible  <bruno@clisp.org>
63263
63264         * m4/Makefile.am.in: Remove file.
63265         * m4/Makefile.am: Remove file.
63266         * m4/Makefile.in: Remove file.
63267
63268 2003-07-17  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/getnline.h: New file.
63271         * lib/getnline.c: New file.
63272         * lib/getndelim2.c: New file, extracted from getline.c.
63273         (getndelim2): Renamed from getdelim2, with added nmax argument.
63274         * lib/getline.c: Include getndelim2.c.
63275         (getdelim2): Moved out to getndelim2.c.
63276         (getline, getdelim): Update.
63277
63278 2003-07-17  Bruno Haible  <bruno@clisp.org>
63279
63280         * lib/Makefile.am: Remove file.
63281         * lib/Makefile.in: Remove file.
63282
63283 2003-07-17  Bruno Haible  <bruno@clisp.org>
63284
63285         * configure.in: Remove file.
63286         * Makefile.in: Remove file.
63287
63288 2003-07-17  Bruno Haible  <bruno@clisp.org>
63289
63290         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63291
63292 2003-07-16  Karl Berry  <karl@gnu.org>
63293
63294         * config/srclist-update: was running fixlicense twice, which caused
63295                 texinfo.tex to be nullified for some reason.  Simplify,
63296                 $gplsrc is no longer needed as far as I can see?
63297
63298 2003-07-16  Jim Meyering  <jim@meyering.net>
63299
63300         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63301
63302 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63303
63304         * config/srclist.txt: Get the following files from gettext-runtime/intl
63305         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63306         ref-del.sin.  From Bruno Haible.
63307         * config/srclist-update (fixfile): Change grep pattern again, since the
63308         previous fix didn't work (there was another trailing $).  Use
63309         '[$]' to escape the $s.
63310
63311 2003-07-15  Karl Berry  <karl@gnu.org>
63312
63313         * lib/vasnprintf.c: update from gettext.
63314
63315 2003-07-15  Karl Berry  <karl@gnu.org>
63316
63317         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63318         gets expanded when surrounded by '$'.
63319
63320 2003-07-15  Jim Meyering  <jim@meyering.net>
63321
63322         * modules/save-cwd: Don't depend on error.  From Derek Price.
63323
63324 2003-07-15  Jim Meyering  <jim@meyering.net>
63325
63326         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63327
63328 2003-07-14  Simon Josefsson  <jas@extundo.com>
63329
63330         * modules/mempcpy: New file.
63331         * MODULES.html.sh (func_all_modules): Add mempcpy.
63332
63333 2003-07-14  Simon Josefsson  <jas@extundo.com>
63334
63335         * m4/mempcpy.m4: New file.
63336
63337 2003-07-14  Simon Josefsson  <jas@extundo.com>
63338
63339         * lib/mempcpy.h: New file.
63340         * lib/mempcpy.c: New file.
63341
63342 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63343
63344         * modules/getdate, modules/posixtm: Depend on mktime.
63345
63346 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63347
63348         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63349         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63350         unicodeio.c, unicodeio.h, unlocked-io.h:
63351         Switch from LGPL to GPL.
63352
63353 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63354
63355         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63356         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63357         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63358         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63359         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63360         updated automatically by ../config/srclist-update.  This changes
63361         their license from LPGL to GPL.
63362
63363 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63364
63365         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63366         assumed to refer to the root of the most recent stable gettext version.
63367         * config/srclistvars.sh: Add defaults for eggert.
63368         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63369         Match "This program" as well as "The program".  This is needed
63370         for gettext.
63371
63372 2003-07-14  Jim Meyering  <jim@meyering.net>
63373
63374         Don't emit diagnostics.  Let callers do that.
63375         * lib/save-cwd.c: Don't include "error.h".
63376         (save_cwd): Don't call error.  Ensure that errno is valid
63377         when returning nonzero.
63378
63379         * lib/save-cwd.h (restore_cwd): Update prototype.
63380         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63381         Simplify.  Don't call error upon failure.  Let callers do that.
63382         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63383         when auditing is enabled.  But don't bother updating the #if.
63384
63385 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63386
63387         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63388         it breaks C++ compilation.
63389         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63390
63391 2003-07-10  Simon Josefsson  <jas@extundo.com>
63392
63393         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63394
63395 2003-07-10  Jim Meyering  <jim@meyering.net>
63396
63397         * m4/clock_time.m4: Remove trailing blank.
63398         * m4/intmax_t.m4: Likewise.
63399
63400 2003-07-10  Jim Meyering  <jim@meyering.net>
63401
63402         * lib/vasnprintf.c: Remove trailing blanks.
63403         Make cpp indentation consistent.
63404
63405 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63406
63407         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63408         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63409         Switch from LGPL to GPL.
63410
63411 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63412
63413         * config/srclist.txt: Sort sublists.  Add
63414         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63415         that differ from gnulib for one reason or another; we'd like this list
63416         to be smaller but for now let's document what we have.
63417
63418 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63419
63420         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63421         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63422         and sweeter "eval x=$x".
63423         * config/srclist.txt: Get lib/argp* from glibc.
63424
63425 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63426
63427         * lib/mktime.c: Fix some boundary cases and remove need for floating
63428         point.
63429
63430         Issue a compile-time diagnostic if time_t is floating point, or if
63431         two's complement arithmetic is not in effect, or if arithmetic
63432         right shift does not propagate the sign.  These assumptions were
63433         all in the original code but they weren't checked.
63434
63435         (TIME_T_MIDPOINT, verify): New macros.
63436         (__isleap): Remove; it has integer overflow problems.
63437         (leapyear): New function, without those problems.
63438         (ydhms_tm_diff): Remove; splitting into two parts.
63439         (ydhms_diff): New function, containing the arithmetic part of
63440         the old ydhms_tm_diff function.  Issue a compile-time
63441         diagnostic if we are not using C99 integer division.
63442         Avoid casts when possible.
63443         (guess_time_tm): New function, containing the checking part of
63444         the old ydhms_tm_diff function.  Return the new value, rather than
63445         the difference between it and the old.  Accept a new argument T
63446         so that *T specifies the old value.  Check for overflow in the result.
63447
63448         (__mktime_internal): Use a time_t offset, not a long int offset.
63449         This undoes the 2003-06-04 change, which is no longer needed now
63450         that we have better overflow checking.
63451         (localtime_offset): Likewise.
63452
63453         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63454         and long are 64-bit but int is only 32-bit.
63455         (ydhms_diff): Use long int to store year1 and yday1.
63456         Issue a compile-time diagnostic if long int is not wide enough.
63457
63458         (__mktime_internal): Use long int to store adjusted year and yday.
63459         Use plain C rather than preprocessor commands, if that doesn't
63460         affect efficiency.
63461         Check for overflow (and try to repair) after each probe
63462         rather than checking only at the very end.  This avoids some bugs
63463         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63464         does not equal GMT offset at maximum time).
63465         Use integer to check for overflow rather than floating point; this
63466         is more portable to non-IEEE hosts, and is a tad faster.
63467         When we detect that we are oscillating between two values,
63468         don't check whether tm_isdst has the requested value, since
63469         we already know the answer.  When tm_isdst has the wrong value,
63470         use a different heuristic to find the right one, based on the
63471         extreme values actually observed in practice in tz2003a,
63472         rather than the (overly optimistic) "previous 3 calendar quarters".
63473
63474         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63475         "T const" to accommodate glibc style.
63476         (check_result): Use less-confusing report format.  "long" -> "long int.
63477         (main): Likewise.
63478         Don't loop if the iteration overflows time_t.
63479         Allow a negative step in the iteration.
63480
63481 2003-07-06  Karl Berry  <karl@gnu.org>
63482
63483         * config/depcomp: update from automake.
63484         * config/config.sub: update from prep.
63485
63486 2003-07-03  Karl Berry  <karl@gnu.org>
63487
63488         * config/config.guess: update from prep.
63489
63490 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63491
63492         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63493         xreadlink.c now includes it unconditionally.
63494
63495 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63496
63497         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63498         having it depend on HAVE_SYS_TYPES_H.
63499
63500 2003-07-01  Bruno Haible  <bruno@clisp.org>
63501
63502         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63503         <sys/types.h> should be sufficient.
63504         Reported by Paul Eggert.
63505
63506 2003-06-26  Karl Berry  <karl@gnu.org>
63507
63508         * config/depcomp: update from automake.
63509
63510 2003-06-26  Bruno Haible  <bruno@clisp.org>
63511
63512         * modules/human: Depend on module stdbool.
63513
63514 2003-06-25  Bruno Haible  <bruno@clisp.org>
63515
63516         * modules/readlink: New file.
63517         * modules/xreadlink: Depend on it.
63518         * MODULES.html.sh (func_all_modules): Add readlink.
63519
63520 2003-06-25  Bruno Haible  <bruno@clisp.org>
63521
63522         * m4/readlink.m4: New file.
63523
63524 2003-06-25  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/readlink.c: New file.
63527
63528 2003-06-22  Karl Berry  <karl@gnu.org>
63529
63530         * config/srclist.txt: update mkinstalldirs from automake.
63531         * config/mkinstalldirs: update.
63532
63533 2003-06-22  Bruno Haible  <bruno@clisp.org>
63534
63535         Portability to mingw32.
63536         * m4/ssize_t.m4: New file, from GNU gettext.
63537         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63538         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63539
63540 2003-06-22  Bruno Haible  <bruno@clisp.org>
63541
63542         * modules/safe-read: Add m4/ssize_t.m4.
63543         * modules/xreadlink: Add m4/ssize_t.m4.
63544
63545 2003-06-20  Bruno Haible  <bruno@clisp.org>
63546
63547         Assume C89, so PARAMS isn't needed.
63548         * lib/unicodeio.h (PARAMS): Remove.
63549         * lib/unicodeio.c: Don't use PARAMS.
63550
63551 2003-06-18  Karl Berry  <karl@gnu.org>
63552
63553         * config/config.{guess,sub}: update from prep.
63554
63555 2003-06-18  Jim Meyering  <jim@meyering.net>
63556
63557         Merge changes from coreutils.
63558         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63559         Remove explicit declarations of xmalloc and realloc.
63560         Include xalloc.h.
63561         (read_utmp): Remove anachronistic cast of xmalloc.
63562
63563 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63564
63565         Assume C89, so PARAMS isn't needed.
63566         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63567         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63568         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63569         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63570         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63571         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63572         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63573         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63574         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63575         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63576         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63577         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63578         no longer needed. Anyway, config.h should always be included before any
63579         other file.
63580
63581 2003-06-11  Simon Josefsson  <jas@extundo.com>
63582
63583         * modules/sysexits: New file.
63584         * MODULES.html.sh (func_all_modules): Add sysexits.
63585
63586 2003-06-11  Simon Josefsson  <jas@extundo.com>
63587
63588         * lib/sysexit_.h: New file.
63589
63590 2003-06-11  Derek Price  <derek@ximbiot.com>
63591
63592         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63593         necessary.
63594
63595 2003-06-11  Bruno Haible  <bruno@clisp.org>
63596
63597         * m4/sysexits.m4: New file.
63598
63599 2003-06-10  Simon Josefsson  <jas@extundo.com>
63600
63601         * lib/argp.h: New file, from glibc.
63602         * lib/argp-ba.c: New file, from glibc.
63603         * lib/argp-eexst.c: New file, from glibc.
63604         * lib/argp-fmtstream.c: New file, from glibc.
63605         * lib/argp-fmtstream.h: New file, from glibc.
63606         * lib/argp-fs-xinl.c: New file, from glibc.
63607         * lib/argp-help.c: New file, from glibc.
63608         * lib/argp-namefrob.h: New file, from glibc.
63609         * lib/argp-parse.c: New file, from glibc.
63610         * lib/argp-pv.c: New file, from glibc.
63611         * lib/argp-pvh.c: New file, from glibc.
63612         * lib/argp-xinl.c: New file, from glibc.
63613
63614 2003-06-10  Simon Josefsson  <jas@extundo.com>
63615
63616         * modules/strchrnul: New file.
63617
63618 2003-06-10  Simon Josefsson  <jas@extundo.com>
63619
63620         * modules/argp: New file.
63621
63622 2003-06-10  Simon Josefsson  <jas@extundo.com>
63623
63624         * m4/strchrnul.m4: New file.
63625
63626 2003-06-10  Simon Josefsson  <jas@extundo.com>
63627
63628         * lib/strchrnul.h: New file.
63629         * lib/strchrnul.c: New file.
63630
63631 2003-06-10  Bruno Haible  <bruno@clisp.org>
63632
63633         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63634
63635 2003-06-07  Karl Berry  <karl@gnu.org>
63636
63637         * config/config.{guess,sub}: update from prep.
63638
63639 2003-06-07  Jim Meyering  <jim@meyering.net>
63640
63641         * modules/strtod: Use $(...) notation, not @...@ for
63642         AC_REPLACE'd variables.
63643         * modules/localcharset: Likewise.
63644
63645 2003-06-07  Jim Meyering  <jim@meyering.net>
63646
63647         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63648         in place of my name in the copyright comment.
63649         Remove definition and uses of __P.
63650
63651         From coreutils.
63652         * lib/stat.c: Don't declare xmalloc explicitly.
63653         Instead, include "xalloc.h".
63654         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63655         xrealloc, and xcalloc return values.
63656         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63657         Improve comment.
63658         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63659
63660 2003-06-07  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63663         avoid AC_CONFIG_LINKS.
63664         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63665         fnmatch.h, to avoid AC_CONFIG_LINKS.
63666         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63667
63668 2003-06-07  Bruno Haible  <bruno@clisp.org>
63669
63670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63671         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63672         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63673         directory.
63674         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63675         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63676         directory.
63677
63678 2003-06-06  Jim Meyering  <jim@meyering.net>
63679
63680         Merge from coreutils.
63681         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63682         Consolidate declarations and initializations of *_base* locals.
63683
63684         Merge from coreutils.
63685         This avoids a core dump on systems without GNU putenv,
63686         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63687         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63688         (unsetenv): New static function, from GNU libc.
63689         (rpl_putenv): Use it.
63690
63691         * lib/modechange.c: Remove trailing blanks.
63692
63693         Merge from coreutils.
63694         * lib/fsusage.c: Remove declaration of statfs.
63695         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63696
63697         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63698
63699 2003-06-06  Jim Meyering  <jim@meyering.net>
63700
63701         * lib/stdbool_.h: Renamed from stdbool.h.in.
63702
63703 2003-06-06  Jim Meyering  <jim@meyering.net>
63704             Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63707         Adjust Makefile.am snippet not to redirect directly to target.
63708         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63709
63710 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63711
63712         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63713         mismatch, look in future quarters as well as past.  This fixes a
63714         bug when processing fall-backwards gaps immediately after a long
63715         period of daylight-saving time.
63716
63717         * lib/mktime.c: Assume freestanding C89 or better.
63718         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63719         (__P): Remove; not used.
63720         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63721         (mktime, not_equal_tm, print_tm, check_result,
63722         main): Use prototypes.  Use const * where appropriate.
63723         (main): Fix typo in testing code that uncovered by above changes.
63724         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63725
63726 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63727
63728         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63729         locale.h, localeconv.  This merges changes from coreutils.
63730
63731         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63732         It can be removed after the next Autoconf is released.
63733         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63734         needed.
63735
63736 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63737
63738         * lib/mktime.c: Fix Debian bug 177940
63739         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63740         (localtime_offset): Now long int, not time_t, because we want it
63741         to be guaranteed to be signed.  All uses changed.
63742         (__mktime_internal): If overflow would occur when adding offset,
63743         don't add it.
63744
63745         Merge 'human' changes from coreutils.  Rewrite to support
63746         locale-specific notations like thousands separators.
63747         * lib/human.c: Simplify authorship notice.
63748         Include human.h immediately after config.h.
63749         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63750         <limits.h>: Do not include, since human.h does.
63751         (SIZE_MAX, UINTMAX_MAX): New macros.
63752         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63753         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63754         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63755         (power_letter): Renamed from suffixes.
63756         (generate_suffix_backwards): Remove.
63757         (adjust_value): Now takes int style (because of human.h changes)
63758         and long double value (for greater precision on some platforms).
63759         (group_number): New function.
63760         (human_readable): Use it.  Use integer options, not enum.
63761         Put the options before the sizes in the arg list.
63762         Support all the new options.
63763         The old human_readable function has been removed;
63764         use inttostr.h instead.
63765         (human_readable, default_block_size, humblock):
63766         Use uintmax_t, not int, for block sizes.
63767         (human_readable_inexact, block_size_types): Remove.
63768         (block_size_opts): New constant.
63769         (human_options): Renamed from human_block_size, with new signature
63770         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63771         * lib/human.h: Add copyright and authorship notice.
63772         Include <limits.h> and <stdbool.h> unconditionally.
63773         (PARAMS): Remove.  All uses removed.
63774         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63775         (enum human_inexact_style): Remove tag; now a nameless enum.
63776         (human_floor, human_ceiling, human_round_to_even): Now have
63777         values 2, 0, 1 rather than -1, 1, 0.
63778         (human_group_digits, human_suppress_point_zero, human_autoscale,
63779         human_base_1024, human_SI, human_B): New constants.
63780         (human_readable_inexact, human_block_size): Remove.
63781         (human_readable): Size args are now uintmax_t, not int.
63782         (human_options): New decl.
63783
63784         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63785         unnecessary now that we assume C89 or better.  This change
63786         imported from coreutils.
63787
63788         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63789         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63790         in the 2003-05-30 sync from glibc.
63791
63792         .h files should stand alone, but we shouldn't include <sys/types.h>
63793         if we can get away with just <stddef.h>.
63794
63795         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63796         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63797         rather than <sys/types.h>, as we merely need size_t.
63798         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63799         to get size_t.
63800         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63801         Include <stdio.h>, to get FILE.
63802         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63803         memcasecmp.h has included <stddef.h> and all we need is size_t.
63804         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63805         our interface, instead of including <sys/types.h>
63806
63807 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63808
63809         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63810         now, as glibc mktime is buggy on non-glibc systems.
63811
63812 2003-06-03  Karl Berry  <karl@gnu.org>
63813
63814         * config/config.sub: update from prep.
63815
63816 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63817
63818         [from coreutils]
63819         Fix some minor time-related bugs with POSIX time arguments.
63820         Some valid time stamps were being rejected (notably -1, and
63821         time stamps before 1900 on 64-bit hosts).  And some invalid
63822         time stamps were being accepted, e.g. September 31.
63823
63824         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63825         that we can return (time_t) -1 successfully.
63826         * lib/posixtm.c: Likewise.
63827         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63828         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63829         (t): Remove static var.
63830         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63831         of static var.  All uses changed.
63832         (year): Do not reject years before 1900; they can occur with
63833         64-bit time_t.
63834         (posix_time_parse): Do not check for out-of-range components;
63835         that is now the caller's responsibility, since our checks were
63836         only approximations.
63837         (posixtime): Use mktime to check for out-of-range components,
63838         since it knows them exactly.
63839         If mktime returns (time_t) -1, check whether an error actually occurred
63840         by invoking localtime on -1.
63841         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63842         posixtime failures better.
63843         Improve the test data (in comments only).
63844
63845 2003-06-02  Karl Berry  <karl@gnu.org>
63846
63847         * config/mkinstalldirs (version): new variable.
63848         (--version): new option.
63849         (usage): improve message.
63850
63851 2003-05-30  Karl Berry  <karl@gnu.org>
63852
63853         * lib/mktime.c: update from libc.
63854
63855 2003-05-30  Bruno Haible  <bruno@clisp.org>
63856
63857         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63858         * config/config.rpath: Upgrade to gettext-0.12.1.
63859
63860 2003-05-30  Bruno Haible  <bruno@clisp.org>
63861
63862         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63863         * m4/nls.m4: New file, from gettext-0.12.1.
63864         * m4/po.m4: New file, from gettext-0.12.1.
63865         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63866
63867 2003-05-30  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63870         * lib/localcharset.h: Likewise.
63871         * lib/localcharset.c: Likewise.
63872
63873 2003-05-29  Karl Berry  <karl@gnu.org>
63874
63875         * config/config.rpath: update from gettext.
63876
63877 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63878
63879         Assume the headers required for C89 freestanding compilers.
63880         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63881         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63882         * m4/human.m4 (gl_HUMAN): Likewise.
63883         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63884         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63885         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63886         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63887         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63888         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63889
63890 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63891
63892         Assume the headers required for C89 freestanding compilers.
63893         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63894         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63895         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63896         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63897         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63898         define, since <limits.h> is guaranteed to do that.
63899         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63900         * lib/exclude.c: Include <stdbool.h> unconditionally.
63901         * lib/tempname.c: Include <stddef.h> unconditionally.
63902         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63903         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63904         <stddef.h> does that.
63905         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63906         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63907         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63908         needed.
63909         * lib/xstrtol.c: Likewise.
63910         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63911         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63912
63913         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63914         warnings on some platforms.
63915
63916         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63917         arbitrarily.
63918
63919 2003-05-26  Jim Meyering  <jim@meyering.net>
63920
63921         Merge in a change from coreutils:
63922         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63923         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63924         that condition, rather than `-1' which is slightly misleading.
63925         Change the name of the cache variable to have the gl_ prefix.
63926         Prompted by a patch from Richard Dawe for DJGPP.
63927
63928 2003-05-24  Karl Berry  <karl@gnu.org>
63929
63930         * config/config.guess: update from prep.
63931
63932 2003-05-22  Karl Berry  <karl@gnu.org>
63933
63934         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63935
63936 2003-05-20  Karl Berry  <karl@gnu.org>
63937
63938         * config/config.guess: update from prep.
63939
63940 2003-05-18  Karl Berry  <karl@gnu.org>
63941
63942         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63943         might actually be set by the user.
63944
63945         * config/depcomp, install-sh, mdate-sh: update from automake.
63946
63947 2003-05-17  Bruno Haible  <bruno@clisp.org>
63948
63949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63950         invalid expansion for AC_EGREP_CPP.
63951         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63952         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63953         Suggested by Akim Demaille <akim@epita.fr> in
63954         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63955
63956 2003-05-12  Jim Meyering  <jim@meyering.net>
63957
63958         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
63959         the space-padded-by-default conversion specifiers, %e, %k, %l.
63960
63961 2003-05-12  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
63964         the string is longer than 4 KB.
63965
63966 2003-05-11  Karl Berry  <karl@gnu.org>
63967
63968         * config/config.{guess,sub}: update from prep.
63969
63970 2003-05-09  Bruno Haible  <bruno@clisp.org>
63971
63972         * modules/error: Add m4/strerror_r.m4 to file list.
63973
63974 2003-05-03  Bruno Haible  <bruno@clisp.org>
63975
63976         Upgrade to Unicode-4.0.
63977         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
63978         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
63979         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
63980         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
63981         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
63982         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
63983         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
63984         Change width of U+E0100..U+E01EF from 1 to 0.
63985
63986 2003-04-25  Jim Meyering  <jim@meyering.net>
63987
63988         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
63989         of type size_t, not int.
63990
63991 2003-04-25  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/copy-file.c: Include <stddef.h>, for size_t.
63994
63995 2003-04-21  Paul Eggert  <eggert@twinsun.com>
63996
63997         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
63998         code which expansion is under static control.  Patch imported from
63999         Akim Demaille's patch to Bison; see
64000         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64001
64002 2003-04-14  Bruno Haible  <bruno@clisp.org>
64003
64004         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64005
64006 2003-04-11  Jim Meyering  <jim@meyering.net>
64007
64008         Merge changes from Coreutils.
64009
64010         2003-03-22  Jim Meyering  <jim@meyering.net>
64011
64012         * lib/strftime.c (widen): Cast alloca return value to proper type.
64013
64014         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64015
64016         From GNU libc.
64017         * lib/strftime.c (my_strftime): Handle very large width
64018         specifications for numeric values correctly.  Improve checks for
64019         overflow.
64020
64021         2003-01-19  Jim Meyering  <jim@meyering.net>
64022
64023         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64024         definitions.
64025         (nl_get_alt_digit) [! defined my_strftime]: Define.
64026         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64027         _nl_get_alt_digit and _nl_get_walt_digit.
64028
64029         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64030         libc. These changes have no effect outside of _LIBC.
64031
64032 2003-04-10  Bruno Haible  <bruno@clisp.org>
64033
64034         * modules/findprog: New file.
64035         * MODULES.html.sh (func_all_modules): Add it.
64036
64037 2003-04-10  Bruno Haible  <bruno@clisp.org>
64038
64039         * m4/findprog.m4: New file.
64040         * m4/eaccess.m4: New file.
64041
64042 2003-04-10  Bruno Haible  <bruno@clisp.org>
64043
64044         * lib/findprog.h: New file, from GNU gettext.
64045         * lib/findprog.c: New file, from GNU gettext.
64046
64047 2003-04-05  Jim Meyering  <jim@meyering.net>
64048
64049         Merge changes from Coreutils.
64050
64051         * lib/exclude.h (PARAMS): Remove definition and uses.
64052         * lib/exclude.c: Remove uses of `PARAMS'.
64053
64054         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64055         Add test-cases for DOS filenames. Declare program_name.
64056         (main): Set up program_name.  Patch by Rich Dawe.
64057
64058         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64059         error from mntctl.
64060         Use mntctl's return value to drive the entry-processing loop, since
64061         we can't rely on the value of the vmt_length member in the last
64062         entry.  On some systems doing so could result in exhausting
64063         virtual memory.  Based in part on a patch from Mike Jetzer.
64064
64065 2003-04-04  Bruno Haible  <bruno@clisp.org>
64066
64067         * modules/linebreak: New file.
64068         * MODULES.html.sh (func_all_modules): Add it.
64069
64070 2003-04-04  Bruno Haible  <bruno@clisp.org>
64071
64072         * m4/linebreak.m4: New file.
64073
64074 2003-04-04  Bruno Haible  <bruno@clisp.org>
64075
64076         * lib/linebreak.h: New file, from GNU gettext.
64077         * lib/linebreak.c: New file, from GNU gettext with slight
64078         modifications.
64079         * lib/lbrkprop.h: New file, from GNU gettext.
64080
64081 2003-04-03  Bruno Haible  <bruno@clisp.org>
64082
64083         * modules/utf8-ucs4: New file.
64084         * modules/utf16-ucs4: New file.
64085         * modules/ucs4-utf8: New file.
64086         * modules/ucs4-utf16: New file.
64087         * MODULES.html.sh (func_all_modules): Add them.
64088
64089 2003-04-03  Bruno Haible  <bruno@clisp.org>
64090
64091         * m4/utf-ucs4.m4: New file.
64092         * m4/ucs4-utf.m4: New file.
64093
64094 2003-04-03  Bruno Haible  <bruno@clisp.org>
64095
64096         * lib/utf8-ucs4.h: New file, from GNU gettext.
64097         * lib/utf16-ucs4.h: New file, from GNU gettext.
64098         * lib/ucs4-utf8.h: New file, from GNU gettext.
64099         * lib/ucs4-utf16.h: New file, from GNU gettext.
64100
64101 2003-04-02  Bruno Haible  <bruno@clisp.org>
64102
64103         * modules/binary-io: New file.
64104         * MODULES.html.sh (func_all_modules): Add it.
64105
64106 2003-04-02  Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/binary-io.h: New file, from GNU gettext.
64109
64110 2003-04-01  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/pathname: New file.
64113         * MODULES.html.sh (func_all_modules): Add it.
64114
64115 2003-04-01  Bruno Haible  <bruno@clisp.org>
64116
64117         * lib/pathname.h: New file, from GNU gettext.
64118         * lib/concatpath.c: New file, from GNU gettext.
64119
64120 2003-03-30  Bruno Haible  <bruno@clisp.org>
64121
64122         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64123
64124 2003-03-30  Bruno Haible  <bruno@clisp.org>
64125
64126         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64127         function chown() doesn't exist.
64128
64129 2003-03-28  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/copy-file: New file.
64132         * MODULES.html.sh (func_all_modules): Add it.
64133
64134 2003-03-28  Bruno Haible  <bruno@clisp.org>
64135
64136         * m4/copy-file.m4: New file.
64137
64138 2003-03-28  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/copy-file.h: New file, from GNU gettext.
64141         * lib/copy-file.c: New file, from GNU gettext.
64142
64143 2003-03-18  Jim Meyering  <jim@meyering.net>
64144
64145         * lib/quote.c (quote_n): Fix typo in comment.
64146
64147 2003-03-18  Bruno Haible  <bruno@clisp.org>
64148
64149         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64150         checking.
64151         * m4/onceonly_2_57.m4: Likewise.
64152
64153 2003-03-17  Bruno Haible  <bruno@clisp.org>
64154
64155         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64156         (m4_quote): Remove macro.
64157         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64158
64159 2003-03-14  Jim Meyering  <jim@meyering.net>
64160
64161         Merge changes from Coreutils.
64162         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64163         to be const, in order to avoid warnings.
64164         (obstack_room): Likewise.
64165         (obstack_empty_p): Likewise.
64166
64167 2003-03-14  Bruno Haible  <bruno@clisp.org>
64168
64169         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64170         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64171
64172 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64173
64174         Merge changes from Bison.
64175         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64176         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64177         when compiling Bison 1.875's `bitset bset = obstack_alloc
64178         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64179         * lib/hash.c: Include <stdbool.h> unconditionally.
64180
64181 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64182
64183         * m4/onceonly.m4 (m4_quote): New macro.
64184         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64185         Quote AC_FOREACH variable-expansions properly.
64186
64187 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64188
64189         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64190
64191 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64192
64193         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64194         Reported by Bruce Becker; see:
64195         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64196
64197 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64198             Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64201         Reported by John Hughes, see
64202         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64203
64204 2003-02-20  Bruno Haible  <bruno@clisp.org>
64205
64206         * MODULES.html.sh (func_all_modules): Add poll.
64207
64208 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64209
64210         * modules/poll: New file.
64211
64212 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64213
64214         * lib/poll_.h: New file.
64215         * lib/poll.c: New file.
64216
64217 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64218
64219         * m4/poll.m4: New file.
64220
64221 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64222
64223         * modules/mathl: New file.
64224
64225 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64226
64227         * lib/mathl.h: New file.
64228         * lib/acosl.c: New file.
64229         * lib/asinl.c: New file.
64230         * lib/atanl.c: New file.
64231         * lib/ceill.c: New file.
64232         * lib/cosl.c: New file.
64233         * lib/expl.c: New file.
64234         * lib/floorl.c: New file.
64235         * lib/frexpl.c: New file.
64236         * lib/ldexpl.c: New file.
64237         * lib/logl.c: New file.
64238         * lib/sincosl.c: New file.
64239         * lib/sinl.c: New file.
64240         * lib/sqrtl.c: New file.
64241         * lib/tanl.c: New file.
64242         * lib/trigl.c: New file.
64243         * lib/trigl.h: New file.
64244
64245 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64246
64247         * m4/mathl.m4: New file.
64248
64249 2003-02-18  Bruno Haible  <bruno@clisp.org>
64250
64251         * MODULES.html.sh (func_all_modules): Add mathl.
64252
64253 2003-02-17  Bruno Haible  <bruno@clisp.org>
64254
64255         * modules/mkdtemp: New module.
64256         * MODULES.html.sh (func_all_modules): Add it.
64257
64258 2003-02-17  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64261
64262 2003-02-17  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/mkdtemp.h: New file, from GNU gettext.
64265         * lib/mkdtemp.c: New file, from GNU gettext.
64266
64267 2003-02-02  Jim Meyering  <jim@meyering.net>
64268
64269         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64270         e.g. glibc-2.2.93.
64271
64272 2003-01-31  Bruno Haible  <bruno@clisp.org>
64273
64274         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64275         'rpl_rename'.
64276         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64277         'rpl_strnlen'.
64278         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64279         'rpl_strtod'.
64280         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64281         'rpl_utime'.
64282
64283 2003-01-31  Bruno Haible  <bruno@clisp.org>
64284
64285         * lib/rename.c: #undef rename before defining rpl_rename.
64286         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64287
64288 2003-01-30  Bruno Haible  <bruno@clisp.org>
64289
64290         * modules/vasnprintf, modules/vasprintf: New modules.
64291         * MODULES.html.sh (func_all_modules): Add them.
64292
64293 2003-01-30  Bruno Haible  <bruno@clisp.org>
64294
64295         * m4/signed.m4: New file, from GNU gettext.
64296         * m4/longdouble.m4: New file, from GNU gettext.
64297         * m4/wchar_t.m4: New file, from GNU gettext.
64298         * m4/wint_t.m4: New file, from GNU gettext.
64299         * m4/vasnprintf.m4: New file.
64300         * m4/vasprintf.m4: New file.
64301
64302 2003-01-30  Bruno Haible  <bruno@clisp.org>
64303
64304         * lib/printf-args.h: New file, from GNU gettext.
64305         * lib/printf-args.c: New file, from GNU gettext.
64306         * lib/printf-parse.h: New file, from GNU gettext.
64307         * lib/printf-parse.c: New file, from GNU gettext.
64308         * lib/vasnprintf.h: New file, from GNU gettext.
64309         * lib/vasnprintf.c: New file, from GNU gettext.
64310         * lib/asnprintf.c: New file, from GNU gettext.
64311         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64312         * lib/vasprintf.c: New file, from GNU gettext.
64313         * lib/asprintf.c: New file, from GNU gettext.
64314
64315 2003-01-29  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/stpncpy: New module.
64318         * MODULES.html.sh (func_all_modules): Add it.
64319
64320 2003-01-29  Bruno Haible  <bruno@clisp.org>
64321
64322         * m4/stpncpy.m4: New file.
64323
64324 2003-01-29  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64327         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64328
64329 2003-01-28  Bruno Haible  <bruno@clisp.org>
64330
64331         * modules/c-ctype: New module.
64332         * MODULES.html.sh (func_all_modules): Add it.
64333
64334 2003-01-28  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64337         Paul Eggert.
64338         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64339         Paul Eggert.
64340
64341 2003-01-27  Bruno Haible  <bruno@clisp.org>
64342
64343         * modules/xsetenv: New module.
64344         * MODULES.html.sh (func_all_modules): Add it.
64345
64346 2003-01-27  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/xsetenv.h: New file, from GNU gettext.
64349         * lib/xsetenv.c: New file, from GNU gettext.
64350
64351 2003-01-23  Jim Meyering  <jim@meyering.net>
64352
64353         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64354         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64355
64356 2003-01-23  Bruno Haible  <bruno@clisp.org>
64357
64358         * modules/minmax: New module.
64359         * MODULES.html.sh (func_all_modules): Add it.
64360
64361 2003-01-23  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64364         Eggert.
64365
64366 2003-01-22  Bruno Haible  <bruno@clisp.org>
64367
64368         * modules/exit: New module.
64369         * MODULES.html.sh (func_all_modules): Add it.
64370
64371 2003-01-22  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/exit.h: New file, from GNU gettext.
64374
64375 2003-01-19  Bruno Haible  <bruno@clisp.org>
64376
64377         * gnulib-tool: Recognize option --extract-maintainer.
64378         (func_get_maintainer): New function.
64379         * modules/*: Add Maintainer entry.
64380
64381 2003-01-16  Jim Meyering  <jim@meyering.net>
64382
64383         * m4/regex.m4: The `regex' struct is both input and output.
64384         Initialize it before each use.  Patch by Tim Waugh.
64385
64386 2003-01-16  Bruno Haible  <bruno@clisp.org>
64387
64388         * MODULES.html.sh: Add a table of contents. Add the module name as
64389         leftmost column. Add hyperlinks.
64390
64391 2003-01-15  Bruno Haible  <bruno@clisp.org>
64392
64393         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64394
64395 2003-01-15  Bruno Haible  <bruno@clisp.org>
64396
64397         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64398         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64399         suffix.
64400
64401 2003-01-15  Bruno Haible  <bruno@clisp.org>
64402
64403         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64404
64405 2003-01-15  Bruno Haible  <bruno@clisp.org>
64406
64407         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64408         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64409
64410 2003-01-14  Jim Meyering  <jim@meyering.net>
64411
64412         * lib/same.c (same_name): Tweak a comment.
64413
64414 2003-01-14  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64417         when a string comparison is sufficient.
64418
64419 2003-01-14  Bruno Haible  <bruno@clisp.org>
64420
64421         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64422         'unsigned int'.
64423
64424 2003-01-14  Bruno Haible  <bruno@clisp.org>
64425
64426         * lib/hash-pjw.c: Add comment about low quality of this function.
64427
64428 2003-01-13  Bruno Haible  <bruno@clisp.org>
64429
64430         * modules/stpcpy: Distribute lib/stpcpy.h.
64431         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64432
64433 2003-01-13  Bruno Haible  <bruno@clisp.org>
64434
64435         * modules/*: Add a description.
64436         * modules/strpbrk: Fix Makefile.am snippet.
64437         * modules/strtoimax: Fix dependencies.
64438         * modules/strtoumax: Likewise.
64439
64440 2003-01-13  Bruno Haible  <bruno@clisp.org>
64441
64442         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64443         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64444         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64445
64446 2003-01-13  Bruno Haible  <bruno@clisp.org>
64447
64448         * gnulib-tool (func_create_testdir): Store config/* files in the main
64449         directory.
64450         * config.rpath: Move to ...
64451         * config/config.rpath: ... here.
64452         * modules/gettext: Contains config/config.rpath, not config.rpath.
64453         * modules/iconv: Likewise.
64454
64455 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64456
64457         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64458         to avoid collisions with libcurses and libreadline.
64459
64460         * m4/getstr.m4: Remove.
64461         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64462
64463 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64464
64465         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64466         to avoid collisions with libcurses and libreadline.
64467
64468         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64469         * lib/getstr.h, getstr.c: Remove.
64470         * lib/getline.c: Include "getline.h", to check interface.
64471         Move body of old getstr.c here: this defines MIN_CHUNK and
64472         declares getdelim2, which is renamed from getstr.
64473         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64474
64475         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64476         All uses changed.
64477         * lib/linebuffer.h: Likewise.
64478         (readline): Remove backward-compatibility macro.
64479
64480 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64481
64482         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64483         to avoid collisions with libcurses and libreadline.
64484         * getstr: Remove.
64485         * MODULES.html.sh: Remove getstr.
64486         * modules/getline: Depend on unlocked-io, not getstr.
64487
64488 2003-01-12  Jim Meyering  <jim@meyering.net>
64489
64490         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64491
64492 2003-01-10  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/alloca: Change Makefile.am requirements. Simplify Include
64495         requirements. Add lib/alloca_.h to file list.
64496
64497 2003-01-10  Bruno Haible  <bruno@clisp.org>
64498
64499         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64500
64501 2003-01-10  Bruno Haible  <bruno@clisp.org>
64502
64503         * lib/alloca_.h: New file.
64504         * lib/getdate.y: Unconditionally include alloca.h.
64505         * lib/makepath.c: Likewise.
64506         * lib/setenv.c: Likewise.
64507         * lib/userspec.c: Likewise.
64508
64509 2003-01-09  Karl Berry  <karl@gnu.org>
64510
64511         * MODULES.html.sh: include `dirname $0` in PATH, to find
64512         gnulib-tool.
64513
64514 2003-01-09  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64517         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64518
64519 2003-01-09  Bruno Haible  <bruno@clisp.org>
64520
64521         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64522
64523 2003-01-09  Bruno Haible  <bruno@clisp.org>
64524
64525         * lib/stdbool.h.in: New file.
64526
64527 2003-01-09  Bruno Haible  <bruno@clisp.org>
64528
64529         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64530         * MODULES.html.sh: Likewise.
64531
64532 2003-01-08  Jim Meyering  <jim@meyering.net>
64533
64534         * lib/full-write.c: Undefine and define-away `const' after inclusion
64535         of errno.h, not before.  Suggestion from Bruno Haible.
64536
64537 2003-01-08  Bruno Haible  <bruno@clisp.org>
64538
64539         * modules/full-read: Depend on full-write.
64540
64541 2003-01-08  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/safe-read.c: Include specification header first, to ensure its
64544         selfcontainedness.
64545         * lib/full-write.c: Likewise.
64546
64547 2003-01-07  Jim Meyering  <jim@meyering.net>
64548
64549         * lib/full-write.c: Rework so that it may serve to define full_read,
64550         too.
64551         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64552
64553 2003-01-07  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64556         <inttypes.h>.
64557         * lib/xstrtol.h: Likewise.
64558         * lib/xstrtoimax.c: Likewise.
64559         * lib/xstrtoumax.c: Likewise.
64560         * lib/human.h: Likewise.
64561
64562         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64563         on systems that have <inttypes.h> but not <stdint.h>.
64564
64565 2003-01-07  Bruno Haible  <bruno@clisp.org>
64566
64567         * MODULES.html.sh: Add copyright notice.
64568         (missed_files): Omit CVS directory entries.
64569         (func_module): Make it work with sed-3.02.
64570         * MODULES.txt: Remove file.
64571
64572 2003-01-06  Jim Meyering  <jim@meyering.net>
64573
64574         * lib/version-etc.c: Update year in translatable copyright string.
64575
64576 2003-01-03  Karl Berry  <karl@gnu.org>
64577
64578         * config/config.{guess,sub}: update from prep.
64579
64580 2003-01-02  Karl Berry  <karl@gnu.org>
64581
64582         * doc/COPYING.DOC: belatedly updated to 1.2.
64583
64584 2003-01-01  Karl Berry  <karl@gnu.org>
64585
64586         * gnulib-tool (func_verify_module): report module name $module in
64587         error message, not $1.
64588         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64589         be created, only if it doesn't exist.
64590         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64591
64592 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64593
64594         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64595
64596 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64597
64598         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64599         memcmp if strcoll doesn't work.
64600
64601 2002-12-31  Bruno Haible  <bruno@clisp.org>
64602
64603         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64604         nonempty.
64605
64606 2002-12-31  Bruno Haible  <bruno@clisp.org>
64607
64608         * lib/memcoll.c (STRCOLL): New macro.
64609         (memcoll): Use it.
64610
64611 2002-12-31  Bruno Haible  <bruno@clisp.org>
64612
64613         * lib/localcharset.h: New file.
64614         * lib/localcharset.c: Include it.
64615         * lib/unicodeio.c: Likewise.
64616
64617 2002-12-31  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64620         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64621
64622 2002-12-31  Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/getline.h: Include <stddef.h>, for size_t.
64625
64626         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64627         * lib/unicodeio.c: Don't include <stddef.h>.
64628
64629 2002-12-31  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64632         HAVE_TM_ZONE.
64633
64634 2002-12-24  Karl Berry  <karl@gnu.org>
64635
64636         * config/config.guess: update from prep.
64637
64638 2002-12-24  Bruno Haible  <bruno@clisp.org>
64639
64640         General infrasructure.
64641         * m4/README: Rewritten.
64642         * m4/onceonly.m4: New file.
64643         * m4/onceonly_2_57.m4: New file.
64644
64645         Module atexit.
64646         * m4/atexit.m4: New file.
64647
64648         Module strtod.
64649         * m4/strtod.m4: New file.
64650
64651         Module strtol.
64652         * m4/strtol.m4: New file.
64653
64654         Module strtoul.
64655         * m4/strtoul.m4: New file.
64656
64657         Module memchr.
64658         * m4/memchr.m4: New file.
64659
64660         Module memcmp.
64661         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64662         (jm_FUNC_MEMCMP): Invoke it.
64663
64664         Module memcpy.
64665         * m4/memcpy.m4: New file.
64666
64667         Module memmove.
64668         * m4/memmove.m4: New file.
64669
64670         Module memset.
64671         * m4/memset.m4: New file.
64672
64673         Module strcspn.
64674         * m4/strcspn.m4: New file.
64675
64676         Module strpbrk.
64677         * m4/strpbrk.m4: New file.
64678
64679         Module strstr.
64680         * m4/strstr.m4: New file.
64681
64682         Module strerror.
64683         * m4/strerror.m4: New file.
64684
64685         Module mktime.
64686         * m4/mktime.m4: Renamed from jm-mktime.m4.
64687         (gl_PREREQ_MKTIME): New macro.
64688         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64689
64690         Module malloc.
64691         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64692         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64693         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64694
64695         Module realloc.
64696         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64697         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64698         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64699
64700         Module strftime.
64701         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64702         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64703         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64704         gl_TM_GMTOFF.
64705         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64706
64707         Module xalloc.
64708         * m4/xalloc.m4: New file.
64709
64710         Module alloca.
64711         * m4/alloca.m4: New file.
64712
64713         Module putenv.
64714         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64715         (jm_FUNC_PUTENV): Invoke it.
64716
64717         Module setenv.
64718         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64719         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64720         when invoked twice.
64721         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64722         gt_FUNC_SETENV.
64723
64724         Module memrchr.
64725         * m4/memrchr.m4: New file.
64726
64727         Module stpcpy.
64728         * m4/stpcpy.m4: New file.
64729
64730         Module strcase.
64731         * m4/strcase.m4: New file.
64732
64733         Module strdup.
64734         * m4/strdup.m4: New file.
64735
64736         Module strnlen.
64737         * m4/strnlen.m4: New file.
64738
64739         Module strndup.
64740         * m4/strndup.m4: New file.
64741
64742         Module xstrtod.
64743         * m4/xstrtod.m4: New file.
64744
64745         Module xstrtol.
64746         * m4/xstrtol.m4: New file.
64747
64748         Module getdate.
64749         * m4/getdate.m4: New file.
64750
64751         Module unlocked-io.
64752         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64753         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64754         * m4/jm-glibc-io.m4n: Remove file.
64755
64756         Module long-options.
64757         * m4/long-options.m4: New file.
64758
64759         Module md5.
64760         * m4/md5.m4: New file.
64761
64762         Module sha.
64763         * m4/sha.m4: New file.
64764
64765         Module getstr.
64766         * m4/getstr.m4: New file.
64767
64768         Module getline.
64769         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64770         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64771         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64772         simply getline. Infoke gl_PREREQ_GETLINE.
64773
64774         Module obstack.
64775         * m4/obstack.m4: New file.
64776
64777         Module hash.
64778         * m4/hash.m4: New file.
64779
64780         Module readtokens.
64781         * m4/readtokens.m4: New file.
64782
64783         Module strverscmp.
64784         * m4/strverscmp.m4: New file.
64785
64786         Module stdbool.
64787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64788         OSF/1.
64789
64790         Module strtoll.
64791         * m4/strtoll.m4: New file.
64792
64793         Module strtoull.
64794         * m4/strtoull.m4: New file.
64795
64796         Module strtoimax.
64797         * m4/strtoimax.m4: New file.
64798
64799         Module strtoumax.
64800         * m4/strtoumax.m4: New file.
64801
64802         Module xstrtoimax.
64803         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64804         jm_AC_PREREQ_XSTRTOIMAX.
64805         Moved the strtol prerequisites to strtol.m4.
64806         Moved the strtoll prerequisites to strtoll.m4.
64807         Moved the strtoimax prerequisites to strtoimax.m4.
64808
64809         Module xstrtoumax.
64810         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64811         jm_AC_PREREQ_XSTRTOUMAX.
64812         Moved the strtoul prerequisites to strtoul.m4.
64813         Moved the strtoull prerequisites to strtoull.m4.
64814         Moved the strtoumax prerequisites to strtoumax.m4.
64815
64816         Module chown.
64817         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64818         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64819
64820         Module dup2.
64821         * m4/dup2.m4: New file.
64822
64823         Module ftruncate.
64824         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64825         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64826
64827         Module getgroups.
64828         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64829         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64830
64831         Module gettimeofday.
64832         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64833         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64834         gl_PREREQ_GETTIMEOFDAY.
64835
64836         Module mkdir.
64837         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64838         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64839
64840         Module mkstemp.
64841         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64842         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64843         jm_AC_TYPE_UINTMAX_T.
64844         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64845
64846         Module stat.
64847         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64848         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64849
64850         Module lstat.
64851         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64852         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64853
64854         Module timespec.
64855         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64856         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64857         * m4/st_mtim.m4: Indentation.
64858
64859         Module nanosleep.
64860         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64861         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64862         gl_PREREQ_NANOSLEEP.
64863
64864         Module regex.
64865         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64866         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64867         (gl_REGEX): New macro.
64868
64869         Module rename.
64870         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64871         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64872
64873         Module rmdir.
64874         * m4/rmdir.m4: New file.
64875
64876         Module utime.
64877         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64878         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64879         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64880
64881         Module dirname.
64882         * m4/dirname.m4: New file.
64883
64884         Module getopt.
64885         * m4/getopt.m4: New file.
64886
64887         Module unistd-safer.
64888         * m4/unistd-safer.m4: New file.
64889
64890         Module fnmatch.
64891         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64892         declaration.
64893         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64894         (gl_FUNC_FNMATCH_POSIX): New macro.
64895         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64896         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64897         simply fnmatch.
64898
64899         Module exclude.
64900         * m4/exclude.m4: New file.
64901
64902         Module human.
64903         * m4/human.m4: New file.
64904
64905         Module acl.
64906         * m4/acl.m4: Nop.
64907
64908         Module backupfile.
64909         * m4/backupfile.m4: New file.
64910         * m4/d-ino.m4: Indentation.
64911
64912         Module fsusage.
64913         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64914         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64915         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64916
64917         Module dirfd.
64918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64919         requirements.
64920
64921         Module euidaccess.
64922         * m4/euidaccess.m4: New file.
64923
64924         Module file-type.
64925         * m4/file-type.m4: New file.
64926
64927         Module fileblocks.
64928         * m4/fileblocks.m4: New file.
64929
64930         Module filemode.
64931         * m4/filemode.m4: New file.
64932
64933         Module isdir.
64934         * m4/isdir.m4: New file.
64935
64936         Module lchown.
64937         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64938         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64939
64940         Module makepath.
64941         * m4/makepath.m4: New file.
64942
64943         Module modechange.
64944         * m4/modechange.m4: New file.
64945
64946         Module mountlist.
64947         * m4/mountlist.m4: New file.
64948         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64949         Indentation.
64950
64951         Module path-concat.
64952         * m4/path-concat.m4: New file.
64953
64954         Module pathmax.
64955         * m4/pathmax.m4: New file.
64956
64957         Module same.
64958         * m4/same.m4: New file.
64959
64960         Module save-cwd.
64961         * m4/save-cwd.m4: New file.
64962
64963         Module savedir.
64964         * m4/savedir.m4: New file.
64965
64966         Module xgetcwd.
64967         * m4/xgetcwd.m4: New file.
64968         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
64969
64970         Module xreadlink.
64971         * m4/xreadlink.m4: New file.
64972
64973         Module safe-read.
64974         * m4/safe-read.m4: New file.
64975
64976         Module safe-write.
64977         * m4/safe-write.m4: New file.
64978
64979         Module closeout.
64980         * m4/closeout.m4: New file.
64981
64982         Module stdio-safer.
64983         * m4/stdio-safer.m4: New file.
64984
64985         Module getpass.
64986         * m4/getpass.m4: New file.
64987
64988         Module getugroups.
64989         * m4/getugroups.m4: New file.
64990
64991         Module group-member.
64992         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
64993         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
64994
64995         Module idcache.
64996         * m4/idcache.m4: New file.
64997
64998         Module userspec.
64999         * m4/userspec.m4: New file.
65000
65001         Module gettime.
65002         * m4/clock_time.m4: New file.
65003         * m4/gettime.m4: New file.
65004
65005         Module settime.
65006         * m4/settime.m4: New file.
65007
65008         Module posixtm.
65009         * m4/posixtm.m4: New file.
65010
65011         Module gethostname.
65012         * m4/gethostname.m4: New file.
65013
65014         Module canon-host.
65015         * m4/canon-host.m4: New file.
65016
65017         Module gettext.
65018         * m4/codeset.m4: New file, from gettext-0.11.5.
65019         * m4/gettext.m4: New file, from gettext-0.11.5.
65020         * m4/glibc21.m4: New file, from gettext-0.11.5.
65021         * m4/iconv.m4: New file, from gettext-0.11.5.
65022         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65023         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65024         * m4/inttypes.m4: New file, from gettext-0.11.5.
65025         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65026         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65027         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65028         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65029         * m4/lib-link.m4: New file, from gettext-0.11.5.
65030         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65031         * m4/progtest.m4: New file, from gettext-0.11.5.
65032         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65033         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65034         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65035
65036         Module localcharset.
65037         * m4/localcharset.m4: New file.
65038
65039         Module hard-locale.
65040         * m4/hard-locale.m4: New file.
65041
65042         Module mbswidth.
65043         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65044         onceonly macros.
65045         * m4/mbrtowc.m4: Add comment.
65046
65047         Module memcasecmp.
65048         * m4/memcasecmp.m4: New file.
65049
65050         Module memcoll.
65051         * m4/memcoll.m4: New file.
65052
65053         Module unicodeio.
65054         * m4/unicodeio.m4: New file.
65055
65056         Module rpmatch.
65057         * m4/rpmatch.m4: New file.
65058
65059         Module yesno.
65060         * m4/yesno.m4: New file.
65061
65062         Module exitfail.
65063         * m4/exitfail.m4: New file.
65064
65065         Module c-stack.
65066         * m4/c-stack.m4 (gl_C_STACK): New macro.
65067         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65068
65069         Module error.
65070         * m4/error.m4 (gl_ERROR): New macro.
65071         (jm_PREREQ_ERROR): Use onceonly macros.
65072
65073         Module fatal.
65074         * m4/fatal.m4: New file.
65075
65076         Module getloadavg.
65077         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65078         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65079
65080         Module getpagesize.
65081         * m4/getpagesize.m4: New file.
65082
65083         Module getusershell.
65084         * m4/getusershell.m4: New file.
65085
65086         Module physmem.
65087         * m4/physmem.m4: New file.
65088
65089         Module posixver.
65090         * m4/posixver.m4: New file.
65091
65092         Module quotearg.
65093         * m4/quotearg.m4: New file.
65094
65095         Module quote.
65096         * m4/quote.m4: New file.
65097
65098         Module readutmp.
65099         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65100
65101         Module sig2str.
65102         * m4/sig2str.m4: New file.
65103
65104         Other.
65105         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65106         ulonglong.m4.
65107         * m4/intmax_t.m4: New file.
65108         * m4/d-type.m4: Indentation.
65109         * m4/jm-macros.m4: Update.
65110         * m4/prereq.m4 (jm_PREREQ): Update.
65111         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65112         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65113         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65114         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65115         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65116         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65117         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65118         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65119         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65120         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65121         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65122         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65123         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65124         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65125         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65126         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65127         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65128         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65129         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65130
65131 2002-12-24  Bruno Haible  <bruno@clisp.org>
65132
65133         * MODULES.txt: Update according to m4/ changes.
65134
65135         Module gettext.
65136         * config.rpath: New file, from gettext-0.11.5.
65137
65138         * modules/*: New module descriptions.
65139         * gnulib-tool: New file.
65140         * MODULES.html.sh: New file.
65141
65142 2002-12-21  Karl Berry  <karl@gnu.org>
65143
65144         * doc/fdl.texi: update to version 1.2.
65145
65146 2002-12-19  Karl Berry  <karl@gnu.org>
65147
65148         * config/config.guess: update from prep.
65149
65150 2002-12-18  Bruno Haible  <bruno@clisp.org>
65151
65152         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65153         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65154
65155 2002-12-17  Bruno Haible  <bruno@clisp.org>
65156
65157         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65158         stdlib.h, string.h.
65159
65160 2002-12-17  Bruno Haible  <bruno@clisp.org>
65161
65162         * lib/canon-host.c (strdup): Remove unused declaration.
65163
65164         * lib/fsusage.c: Include full_read.h.
65165         (get_fs_usage): Use full_read instead of safe_read.
65166
65167         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65168
65169 2002-12-12  Karl Berry  <karl@gnu.org>
65170
65171         * config/config.guess: update from prep.
65172
65173 2002-12-11  Bruno Haible  <bruno@clisp.org>
65174
65175         * m4/setenv.m4: New file, from gettext-0.11.5.
65176
65177 2002-12-11  Bruno Haible  <bruno@clisp.org>
65178
65179         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65180         not unsetenv().
65181         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65182         modifications:
65183
65184         2002-12-11  Bruno Haible  <bruno@clisp.org>
65185
65186                 * setenv.c (alloca): Fall back to malloc.
65187                 (freea): New macro.
65188                 (setenv): Use freea() to free memory allocated with alloca().
65189
65190         2002-11-13  Bruno Haible  <bruno@clisp.org>
65191
65192                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65193                 function declarations.
65194                 * unsetenv.c (unsetenv): Likewise.
65195
65196         2002-03-04  Bruno Haible  <bruno@clisp.org>
65197
65198                 Portability to AIX 4.3.3.
65199                 * unsetenv.c: New file, extracted from setenv.c.
65200                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65201
65202         2001-12-20  Bruno Haible  <bruno@clisp.org>
65203
65204                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65205                 use malloc instead. For SunOS 4.
65206
65207         2001-12-11  Bruno Haible  <bruno@clisp.org>
65208
65209                 * setenv.c: Declare alloca.
65210                 (compar_fn_t): New typedef.
65211                 (KNOWN_VALUE, STORE_VALUE): Use it.
65212
65213         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65214         setenv.h.
65215
65216 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65217
65218         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65219         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65220         Choose values that are less likely to collide with system fnmatch
65221         options.
65222         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65223         defined (e.g., a pure POSIX system).
65224         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65225         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65226
65227 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65228
65229         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65230         a pain in practice to deal with generated m4 files.  This change
65231         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65232
65233         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65234         and jm-glibc-io.m4, as they are no longer a special case.
65235         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65236         kludge and the auto-generation stuff.  Check only whether the
65237         functions are declared, not whether they exist, since older hosts
65238         that don't declare the functions can't use the optimization anyway.
65239
65240 2002-12-06  Jim Meyering  <jim@meyering.net>
65241
65242         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65243
65244         Merge in changes from libc's misc/error.c, in preparation
65245         for the merge of gnulib's changes back into libc.
65246
65247         * lib/error.c (_): Define only if not already defined.
65248         Move definition to follow all #include directives.
65249         Include unlocked-io.h only if !_LIBC.
65250         [_LIBC]: Include <libio/libioP.h>.
65251         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65252         (fflush): Tweak definition to use INTUSE.
65253         (putc): Define.
65254
65255 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65256
65257         * lib/alloca.c [defined emacs]: Include "lisp.h".
65258         (xalloc_die) [defined emacs]: New macro.
65259         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65260         [! defined emacs]: Include <xalloc.h>.
65261         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65262         (pointer): Typedef to POINTER_TYPE *.
65263         (malloc): Remove decl; we now always use xmalloc.
65264         (alloca): Use old-style definition, since Emacs needs this.
65265         Check for arithmetic overflow when computing combined size.
65266
65267 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65268
65269         Do not generate unlocked-io.h automatically, since it's easier to
65270         maintain it by hand.
65271
65272         * lib/unlocked-io.h: New file, from GNU diffutils,
65273         but with proper copyright notice and attribution.
65274         * lib/gen-uio: Remove.
65275         * lib/Makefile.am: Add copyright notice.
65276         (libfetish_a_SOURCES): Add unlocked-io.h.
65277         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65278         (DISTCLEANFILES, io_functions): Remove macros.
65279         (EXTRA_DIST): Remove gen_uio.
65280         (unlocked-io.h): Remove rule.
65281
65282 2002-12-04  Jim Meyering  <jim@meyering.net>
65283
65284         Reflect the fact that stat.c and lstat.c are no longer generated.
65285         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65286         (DISTCLEANFILES): Likewise.
65287         (EXTRA_DIST): Likewise.
65288         (all_local): Don't depend on stat.c or lstat.c.
65289         (stat.c, lstat.c): Remove rules.
65290         (EXTRA_DIST): Remove xstat.in.
65291
65292         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65293         * lib/stat.c: New file.  Contents mostly from xstat.in.
65294         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65295         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65296
65297         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65298         too.
65299         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65300
65301 2002-12-03  Jim Meyering  <jim@meyering.net>
65302
65303         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65304         but not semantics, to minimize the differences between these two files.
65305         (safe_read): Change comment to mention SAFE_READ_ERROR.
65306
65307         * lib/safe-read.c (IS_EINTR): Define.
65308         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65309
65310 2002-12-02  Jim Meyering  <jim@meyering.net>
65311
65312         * lib/safe-read.c (EINTR): Define.
65313         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65314         (INT_MAX): Provide fallback.
65315         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65316
65317         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65318
65319 2002-12-02  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65322         Define, taken from safe-read.c.
65323         (INT_MAX): Provide fallback.
65324         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65325         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65326
65327         * lib/safe-read.c (EINTR): Remove definition.
65328         (safe_read): Don't use EINTR if it is absent.
65329
65330 2002-12-01  Jim Meyering  <jim@meyering.net>
65331
65332         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65333         zero.
65334         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65335
65336 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65337
65338         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65339         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65340         with `if (! (value < limit)) abort ();', for readability.
65341
65342 2002-11-26  Karl Berry  <karl@gnu.org>
65343
65344         * lib/strdup.c: copy from libc again, with jim's ok.
65345         * lib/.cppi-disable: re-add strdup.c
65346
65347 2002-11-25  Karl Berry  <karl@gnu.org>
65348
65349         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65350         instead of "strtol.c".
65351
65352 2002-11-25  Karl Berry  <karl@gnu.org>
65353
65354         * config/install-sh: update from automake for variable quoting, $0 in
65355         error msgs, etc.
65356
65357         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65358         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65359         entry.
65360
65361 2002-11-25  Jim Meyering  <jim@meyering.net>
65362
65363         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65364
65365 2002-11-24  Karl Berry  <karl@gnu.org>
65366
65367         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65368         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65369
65370 2002-11-24  Jim Meyering  <jim@meyering.net>
65371
65372         Update from coreutils:
65373
65374         * lib/mktime.c: Merge in changes from libc.
65375
65376         Avoid a link-time failure on some Linux systems.
65377         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65378         (otherwise).
65379         (__mon_yday): Declare with the STATIC attribute.
65380         (__mktime_internal): Likewise.
65381         Based on a report from Greg Schafer.
65382
65383 2002-11-23  Jim Meyering  <jim@meyering.net>
65384
65385         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65386         Use `unsigned', not `int', as type of index.
65387
65388         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65389
65390         * lib/fsusage.c: Remove unneeded parentheses around operands of
65391         `defined'.
65392
65393 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65394
65395         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65396         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65397         so that we can be included first.
65398         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65399         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65400         No need to include stddef.h or sys/types.h any more.
65401         Surround local include files with "", not "<>".
65402         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65403         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65404         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65405         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65406         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65407         (ISPRINT): Remove; no longer needed now that we assume C89.
65408
65409         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65410         Preserve errno.
65411
65412         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65413         quotearg_char): Use SIZE_MAX rather than
65414         (size_t) -1 when we are talking about "infinity".
65415
65416         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65417
65418 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65419
65420         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65421         hint that one should use `if (! x) abort ();' rather than `assert
65422         (x);', and anyway it's one less thing to worry about configuring.
65423         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65424         hash_rehash, hash_insert): Use abort rather than assert.
65425
65426 2002-11-22  Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/safe-read.h: Assume C89. Add comments.
65429         (safe_read): Change return type to size_t.
65430         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65431         byte counts > SSIZE_MAX correctly.
65432         * lib/safe-write.h: New file.
65433         * lib/safe-write.c: New file.
65434         * lib/full-read.h: New file.
65435         * lib/full-read.c: New file.
65436         * lib/full-write.h: Assume C89. Add comments.
65437         * lib/full-write.c: Include safe-write.h.
65438         (full_write): Rewritten to use safe_write.
65439         Suggested by Jim Meyering and Paul Eggert.
65440
65441 2002-11-21  Jim Meyering  <jim@meyering.net>
65442
65443         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65444
65445         Merge in changes from the coreutils.
65446
65447         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65448         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65449         <stdint.h>.
65450         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65451         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65452         int.  Work more efficiently if X is the same width as uintmax_t.
65453         Do not compare X to -1, to avoid bogus compiler warning.
65454         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65455         Don't assume that f_frsize and f_bsize are the same type.
65456
65457         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65458         warning on FreeBSD.
65459
65460         * lib/makepath.c (make_path): Restore umask *before* creating the final
65461         component.
65462         (make_path): Minor reformatting.
65463
65464         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65465         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65466         HAVE_MALLOC/HAVE_REALLOC.
65467
65468         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65469         dummy ones.  At least on GNU/Linux systems, `auto' means something
65470         else.
65471         From Michael Stone.
65472
65473 2002-11-21  Bruno Haible  <bruno@clisp.org>
65474
65475         Remove case insensitive option matching.
65476         * lib/argmatch.h (argcasematch): Remove declaration.
65477         (ARGCASEMATCH): Remove macro.
65478         (__xargmatch_internal): Remove case_sensitive argument.
65479         (XARGMATCH): Update.
65480         (XARGCASEMATCH): Remove macro.
65481         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65482         case_sensitive argument.
65483         (argcasematch): Remove function.
65484         (__xargmatch_internal): Remove case_sensitive argument.
65485         (main): Use XARGMATCH instead of XARGCASEMATCH.
65486
65487         * lib/xmalloc.c: Change compile-time error message. Add comment about
65488         required autoconf version.
65489
65490 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65491
65492         Merge argmatch cleanups from Bison.  Assume C89.
65493
65494         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65495         Include stdlib.h, for EXIT_FAILURE.
65496         Always include <string.h>, since we assume C89.
65497         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65498         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65499         Include <stddef.h> instead, since it's all we need for size_t.
65500         (PARAMS): Remove.  All uses removed.
65501         (ARRAY_CARDINALITY): Do not bother to #undef.
65502         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65503         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65504         Remove unnecessary parentheses.
65505         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65506         Insert necessary parentheses.
65507         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65508         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65509
65510 2002-11-19  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65513         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65514
65515         * lib/mbswidth.h (PARAMS): Remove macro.
65516         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65517         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65518
65519         * lib/gcd.h (PARAMS): Remove macro.
65520         (gcd): Use ANSI C function declarations.
65521         * lib/gcd.c (gcd): Likewise.
65522
65523 2002-11-15  Bruno Haible  <bruno@clisp.org>
65524
65525         * lib/strcspn.c: Include <stddef.h>.
65526         (strcspn): Use ANSI C function declaration. Change return type to
65527         size_t. Use NULL.
65528         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65529         (strpbrk): Use NULL.
65530         * lib/strpbrk.h (PARAMS): Remove macro.
65531         (strpbrk): Use ANSI C function declaration.
65532         * lib/strstr.c: Don't include <sys/types.h>.
65533         * lib/strstr.h (PARAMS): Remove macro.
65534         (strstr): Use ANSI C function declarations.
65535
65536 2002-11-14  Karl Berry  <karl@gnu.org>
65537
65538         * config/mkinstalldirs: `do' on separate line, instead of
65539         `for var; do'.
65540
65541 2002-11-06  Bruno Haible  <bruno@clisp.org>
65542
65543         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65544         * lib/gcd.c (gcd): Likewise.
65545
65546 2002-11-05  Bruno Haible  <bruno@clisp.org>
65547
65548         * lib/gcd.h: New file, from gettext-0.11.5.
65549         * lib/gcd.c: New file, from gettext-0.11.5.
65550
65551 2002-11-05  Bruno Haible  <bruno@clisp.org>
65552
65553         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65554         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65555         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65556         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65557
65558         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65559         <libintl.h>.
65560         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65561         <libintl.h>.
65562
65563         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65564         * lib/human.c: Include gettext.h instead of <libintl.h>.
65565         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65566         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65567         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65568         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65569         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65570         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65571         (textdomain): Remove definition.
65572         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65573
65574         * lib/long-options.c: Remove include of <libintl.h> and definition of
65575         _.
65576         * lib/same.c: Remove include of <libintl.h> and definition of _.
65577
65578 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65579
65580         * lib/config.charset: A few additions for Solaris.
65581
65582 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65583
65584         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65585         * lib/localcharset.c (locale_charset): Declare as extern "C".
65586
65587 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65588
65589         * lib/config.charset: msdos in uk_UA uses CP1125.
65590
65591 2002-11-04  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65594         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65595         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65596         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65597         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65598
65599 2002-11-04  Bruno Haible  <bruno@clisp.org>
65600
65601         * lib/localcharset.c (locale_charset): Don't return an empty string.
65602
65603 2002-11-04  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65606         aliases.
65607
65608 2002-11-04  Bruno Haible  <bruno@clisp.org>
65609
65610         * lib/config.charset: Update for newest glibc. Add canonical names
65611         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65612
65613 2002-11-04  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/config.charset: Add support for NetBSD.
65616
65617 2002-11-04  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65620
65621 2002-11-01  Bruno Haible  <bruno@clisp.org>
65622
65623         * configure.in: Add AC_CONFIG_AUX_DIR call.
65624         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65625         test/Makefile.
65626         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65627
65628 2002-09-28  Karl Berry  <karl@gnu.org>
65629
65630         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65631         installed automake until the next release, since changes have been
65632         made.
65633
65634 2002-09-25  Karl Berry  <karl@gnu.org>
65635
65636         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65637         * lib/getopt*: copy from libc/posix.
65638         * lib/gettext.h: copy from gettext.
65639         * lib/.cppi-disable: add strdup.c, gettext.h.
65640
65641 2002-09-25  Karl Berry  <karl@gnu.org>
65642
65643         * config/srclist.txt: enable gettext.h check.
65644         * config/config.{guess,sub}: update from prep.
65645         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65646                 from automake 1.6.3.
65647         See srclist*.
65648
65649 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65650
65651         * regex.c (PATFETCH): Remove the translating fetch.
65652         (PATFETCH_RAW): Rename to PATFETCH.
65653         (set_image_of_range): New fun.
65654         (SET_RANGE_TABLE_WORK_AREA): Use it.
65655         (regex_compile): Don't translate the pattern chars so eagerly.
65656         Only do it when inserting an `exactn' bytecode or when handling
65657         a char-range.
65658         (mutually_exclusive_p): Avoid empty statement.
65659
65660 2002-07-06  Jim Meyering  <meyering@lucent.com>
65661
65662         * m4/README: Don't mention Makefile.am.in.
65663         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65664
65665 2002-07-01  Jim Meyering  <meyering@lucent.com>
65666
65667         * lib/c-stack.c: Include sys/time.h.
65668         From Volker Borchert.
65669
65670 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65671
65672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65673
65674 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65675
65676         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65677         New macro.  Use it uniformly instead of
65678         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65679         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65680         reported by Vin Shelton.
65681
65682 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65683
65684         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65685         Do not assume SA_SIGINFO behavior.
65686         Bug reported by Jim Meyering on NetBSD 1.5.2.
65687
65688 2002-06-22  Jim Meyering  <meyering@lucent.com>
65689
65690         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65691         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65692
65693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65694         now that configure.ac uses AC_GNU_SOURCE.
65695         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65696         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65697
65698         Update to latest tools.  Suggestions from Paul Eggert.
65699         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65700         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65701         * m4/fnmatch.m4: Likewise.
65702         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65703         to AC_HEADER_STDBOOL
65704
65705 2002-06-22  Jim Meyering  <meyering@lucent.com>
65706
65707         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65708         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65709
65710 2002-06-22  Jim Meyering  <meyering@lucent.com>
65711
65712         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65713
65714         * lib/exitfail.c, exitfail.h: Likewise.
65715         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65716
65717         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65718         of fnmatch.h.
65719         (EXTRA_DIST): Add fnmatch_loop.c.
65720         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65721
65722         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65723         * lib/fnmatch.c: Update from diffutils-2.8.2.
65724         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65725         * lib/fnmatch.h: Remove file.
65726
65727 2002-06-21  Jim Meyering  <meyering@lucent.com>
65728
65729         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65730         * m4/mbrtowc.m4: Likewise.
65731
65732         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65733         * m4/mbswidth.m4: Reflect name change:
65734         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65735         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65736
65737         * m4/lib-link.m4: Update from gettext-0.11.2.
65738         * m4/gettext.m4: Likewise.
65739
65740         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65741         From Alfred M. Szmidt.
65742
65743 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65744
65745         * lib/file-type.h: Report an error if neither S_ISREG nor
65746         S_IFREG is defined, instead of using a test specific to glibc
65747         2.2.  This should be safe, since POSIX requires S_ISREG and
65748         Unix Version 7 had S_IFREG.  We don't need to check for
65749         <sys/types.h> since we don't use any symbols that it defines.
65750
65751 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65752
65753         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65754         $@-t, so that each temporary file name is unique and valid in the first
65755         8 characters, for operation under DOS.
65756
65757 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65758
65759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65760
65761 2002-06-15  Jim Meyering  <meyering@lucent.com>
65762
65763         Work even with DJGPP 2.03, which lacks support for symlinks.
65764         From Richard Dawe.
65765         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65766         is defined.
65767         * lib/lchown.c (S_ISLNK): Likewise.
65768
65769 2002-06-15  Jim Meyering  <meyering@lucent.com>
65770
65771         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65772         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65773         have been included before this file.
65774
65775 2002-06-14  Jim Meyering  <meyering@lucent.com>
65776
65777         * lib/file-type.h: Use the version from diffutils-2.8.2.
65778         * lib/file-type.c: Likewise.
65779
65780 2002-06-07  Jim Meyering  <meyering@lucent.com>
65781
65782         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65783         They're needed at least for NetBSD 1.5.2.
65784         ($statxfs_includes): Include those same headers.
65785         ($statxfs_includes): Include sys/vfs.h if available.
65786         ($statxfs_includes): Likewise for sys/statvfs.h.
65787         Check for the following members in both structs statfs and statvfs:
65788         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65789
65790 2002-06-01  Jim Meyering  <meyering@lucent.com>
65791
65792         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65793         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65794
65795 2002-05-28  Jim Meyering  <meyering@lucent.com>
65796
65797         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65798         Reported by Volker Borchert.
65799
65800 2002-05-27  Jim Meyering  <meyering@lucent.com>
65801
65802         Fix a problem seen only on nonconforming systems whereby ls.c's
65803         use of localtime, and then of gettimeofday would cause trouble:
65804         the localtime call used to initialize rpl_gettimeofday's save
65805         mechanism would clobber ls's current local time information so
65806         that in any long listing the first file would always be listed
65807         with date 1970-01-01.  Analysis by Volker Borchert.
65808
65809         * lib/gettimeofday.c (localtime): Undefine.
65810         (rpl_localtime): New function.
65811
65812 2002-05-27  Jim Meyering  <meyering@lucent.com>
65813
65814         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65815         localtime.
65816
65817         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65818         use the replacement function; it wouldn't resolve at link time.
65819         Reported by Volker Borchert.
65820
65821 2002-05-22  Jim Meyering  <meyering@lucent.com>
65822
65823         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65824         file-type.h.
65825         * lib/file-type.h: New file.
65826         * lib/file-type.c (file_type): New file/function.  Extracted from
65827         diffutils.
65828
65829 2002-04-30  Jim Meyering  <meyering@lucent.com>
65830
65831         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65832
65833 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65834
65835         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65836
65837 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65838
65839         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65840         Do not check for alloca.h (no longer used) or stdbool.h (was never
65841         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65842
65843 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65844
65845         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65846
65847 2002-04-29  Jim Meyering  <meyering@lucent.com>
65848
65849         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65850         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65851         Use AC_FUNC_STRNLEN here instead.
65852
65853         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65854         With autoconf-2.53a, it's part of AC_PROG_CC.
65855
65856 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65857
65858         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65859         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65860
65861 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65862
65863         * lib/sig2str.h, lib/sig2str.c: New files.
65864         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65865
65866 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65867
65868         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65869         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65870         of 127, since 64 is the largest conceivable number for ancient
65871         nonstandard hosts.
65872         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65873
65874 2002-04-28  Jim Meyering  <meyering@lucent.com>
65875
65876         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65877
65878 2002-04-24  Jim Meyering  <meyering@lucent.com>
65879
65880         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65881         (jm_PREREQ): Use it.
65882
65883         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65884         mach/mach.h fcntl.h.
65885         Check for this function: setlocale.
65886
65887 2002-04-24  Jim Meyering  <meyering@lucent.com>
65888
65889         * lib/gettext.h: New file, from Gettext.
65890         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65891         (libfetish_a_SOURCES): Add gettext.h.
65892
65893 2002-04-16  Jim Meyering  <meyering@lucent.com>
65894
65895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65896         ut_pid, ut_id, ut_exit.
65897
65898 2002-04-16  Jim Meyering  <meyering@lucent.com>
65899
65900         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65901         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65902         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65903
65904 2002-04-12  Jim Meyering  <meyering@lucent.com>
65905
65906         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65907         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65908         existence of the getmntinfo function.  Needed for Darwin 5.3.
65909
65910         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65911         This is necessary at least on Darwin 5.3.
65912
65913         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65914         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65915         strnlen.o in the library, and that makes some versions of ranlib
65916         object.
65917
65918 2002-04-12  Jim Meyering  <meyering@lucent.com>
65919
65920         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65921
65922 2002-04-09  Jim Meyering  <meyering@lucent.com>
65923
65924         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65925         to be more precise.  Rather than saying we're checking whether the
65926         function `works', say what we're testing.
65927         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65928         Reported by Bruno Haible.
65929
65930 2002-03-10  Jim Meyering  <meyering@lucent.com>
65931
65932         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65933         Suggestion from Santiago Vila.
65934
65935 2002-03-08  Jim Meyering  <meyering@lucent.com>
65936
65937         * lib/rename.c: Mention that this wrapper is needed also on
65938         mips-dec-ultrix4.4 systems.
65939
65940 2002-03-02  Jim Meyering  <meyering@lucent.com>
65941
65942         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65943         not HAVE_CLOCK_SETTIME.
65944
65945 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65946
65947         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65948         Check for clock_settime.
65949
65950 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65951
65952         * lib/nanosleep.h: Rename to....
65953         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65954
65955         * lib/gettime.c: New file.
65956         * lib/settime.c: New file.
65957         * lib/stime.c: Remove.
65958
65959         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
65960         timespec.h.  Remove nanosleep.h.
65961
65962 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65963
65964         * m4/acl.m4: New file.
65965         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
65966         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
65967
65968 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65969
65970         * lib/acl.c, lib/acl.h: New files.
65971         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
65972
65973 2002-02-24  Jim Meyering  <meyering@lucent.com>
65974
65975         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
65976         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
65977         cause trouble.  Reported by Nelson Beebe.
65978
65979 2002-02-23  Paul Eggert  <eggert@twinsun.com>
65980
65981         * lib/path-concat.c (xpath_concat): Reorder code to pacify
65982         compilers that don't know that xalloc_die never returns.
65983
65984 2002-02-20  Jim Meyering  <meyering@lucent.com>
65985
65986         * lib/getdate.c: Regenerate using bison-1.33.
65987
65988 2002-02-17  Jim Meyering  <meyering@lucent.com>
65989
65990         * config/config.guess (main): Don't use `head -1'; it's no longer
65991         portable. Use `sed 1q' instead.
65992
65993 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
65994
65995         * m4/codeset.m4: Upgrade to gettext-0.11.
65996         * m4/gettext.m4: Upgrade to gettext-0.11.
65997         * m4/glibc21.m4: Upgrade to gettext-0.11.
65998         * m4/iconv.m4: Upgrade to gettext-0.11.
65999         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66000         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66001         * m4/lib-ld.m4: New file, from gettext-0.11.
66002         * m4/lib-link.m4: New file, from gettext-0.11.
66003         * m4/lib-prefix.m4: New file, from gettext-0.11.
66004         * m4/progtest.m4: Upgrade to gettext-0.11.
66005
66006 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66007
66008         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66009         (jm_PREREQ): Use it.
66010
66011 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66012
66013         * lib/posixver.c, lib/posixver.h: New files.
66014         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66015
66016 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66017             Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66020         (fwrite_success_callback): New declaration.
66021         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66022         print_unicode_char. Call failure callback instead of error.
66023         (fwrite_success_callback): New function.
66024         (exit_failure_callback): New function.
66025         (fallback_failure_callback): New function.
66026         (print_unicode_char): Call unicode_to_mb.
66027
66028 2002-01-26  Jim Meyering  <meyering@lucent.com>
66029
66030         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66031         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66032
66033 2002-01-26  Jim Meyering  <meyering@lucent.com>
66034
66035         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66036
66037 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66038
66039         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66040
66041 2002-01-22  Jim Meyering  <meyering@lucent.com>
66042
66043         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66044         Otherwise, some versions of automake would omit the rule that makes
66045         Makefile from Makefile.in.
66046
66047 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66048
66049         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66050         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66051         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66052         (memcoll): Set errno to zero if there is no error.
66053
66054         * lib/quotearg.c (quotearg_buffer_restyled):
66055         Fix bug with quoting buffers containing NUL when backslashing escapes.
66056         This bug was exposed by the other changes in this patch.
66057         (quotearg_n_options): New arg ARGSIZE.
66058         All callers changed.
66059         (quoting_options_from_style): New function.
66060         (quotearg_n_style): Use it.
66061         (quotearg_n_style_mem): New function.
66062
66063         * lib/quotearg.h (quotearg_n_style_mem): New function.
66064
66065 2002-01-19  Jim Meyering  <meyering@lucent.com>
66066
66067         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66068         Remove useless quotes: DF_PROG="df".
66069         * m4/strnlen.m4: New file.
66070
66071 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66072
66073         * lib/backupfile.c (ISDIGIT): Comment fix.
66074         * lib/getdate.y (ISDIGIT): Likewise.
66075         * lib/posixtm.c (ISDIGIT, year): Likewise.
66076         * lib/strverscmp.c (ISDIGIT): Likewise.
66077         * lib/userspec.c (ISDIGIT): Likewise.
66078
66079 2002-01-16  Jim Meyering  <meyering@lucent.com>
66080
66081         * lib/getdate.y: Add three semicolons, each just before a closing
66082         brace. Bison (as of version 1.31) no longer papers over that mistake.
66083
66084 2002-01-05  Jim Meyering  <meyering@lucent.com>
66085
66086         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66087
66088 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66089
66090         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66091         not silently exit merely because the output buffer happens to
66092         have nothing pending.
66093
66094 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66095
66096         See the big note in ../ChangeLog.
66097         * lib/human.c (suffixes): Prefer K to k for 1024.
66098         (generate_suffix_backwards): New function.
66099         (human_readable_inexact): Use it.
66100         * lib/xstrtol.c (__xstrtol): If there is no number but there
66101         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66102         Accept 'K' as well as 'k'.
66103
66104 2001-12-15  Jim Meyering  <meyering@lucent.com>
66105
66106         * lib/regex.h (__restrict_arr): Update from libc.
66107
66108         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66109         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66110         (STREQ): Define.
66111
66112 2001-12-14  Jim Meyering  <meyering@lucent.com>
66113
66114         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66115         Suggestion from Bruno Haible.
66116
66117 2001-12-10  Jim Meyering  <meyering@lucent.com>
66118
66119         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66120         xrealloc, Instead, include "xalloc.h".
66121         (initbuffer): Don't cast xmalloc return value to char*.
66122         (readline): Reword comment.
66123         Don't cast xrealloc return value to char*
66124         Return NULL, not 0.
66125
66126 2001-12-09  Jim Meyering  <meyering@lucent.com>
66127
66128         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66129         about `signed and unsigned type in conditional expression'.
66130         * lib/posixtm.c (posix_time_parse): Likewise.
66131
66132         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66133
66134         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66135         to avoid a pedantic warning.
66136
66137         * lib/getstr.c: Don't include assert.h.
66138         (getstr): Remove warning-evoking assertions.
66139         Return -1 if offset parameter is out of bounds.
66140         Change the type of a local from int to size_t.
66141
66142         * lib/strftime.c (my_strftime_localtime_r): Include this function
66143         definition in the `#if ! HAVE_TM_GMTOFF' block.
66144
66145         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66146         Include xalloc.h instead.
66147
66148 2001-12-02  Jim Meyering  <meyering@lucent.com>
66149
66150         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66151         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66152         included.
66153
66154         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66155         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66156
66157 2001-11-30  Akim Demaille  <akim@epita.fr>
66158
66159         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66160         before being defined.
66161
66162 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66163
66164         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66165         First arg is int, not unsigned.
66166         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66167         (SIZE_MAX, UINT_MAX): New macros.
66168         (quotearg_n_options): Abort if N is negative.
66169         Avoid overflow check on hosts where size_t is 64 bits and int
66170         is 32 bits, as overflow is impossible there.
66171         Fix off-by-one typo that caused unnecessary reallocation.
66172
66173 2001-11-27  Jim Meyering  <meyering@lucent.com>
66174
66175         * lib/tempname.c: Merge with version from libc.
66176         * lib/regex.c: Likewise.
66177
66178         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66179         systems for which STDC_HEADERS is 0, it was not included, resulting in
66180         a warning about an integer-to-pointer conversion problem with getenv.
66181         Reported by Volker Borchert.
66182
66183 2001-11-26  Jim Meyering  <meyering@lucent.com>
66184
66185         * lib/gtod.h: Remove file.
66186         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66187         * lib/gettimeofday.c: Don't include gtod.h.
66188         (GTOD_init): Remove function.
66189         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66190         Suggestion from Volker Borchert.
66191
66192 2001-11-23  Jim Meyering  <meyering@lucent.com>
66193
66194         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66195         it.
66196         * lib/hash.c (struct hash_table): Define it here instead.
66197
66198 2001-11-22  Jim Meyering  <meyering@lucent.com>
66199
66200         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66201
66202 2001-11-20  Jim Meyering  <meyering@lucent.com>
66203
66204         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66205         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66206
66207 2001-11-19  Jim Meyering  <meyering@lucent.com>
66208
66209         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66210         directory.  Use "conftestXXXXXX" as the template.
66211         Suggestion from Paul Eggert.
66212
66213         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66214         immediately, so the test doesn't mistakenly hit the max-open-files
66215         limit.
66216
66217 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66218
66219         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66220         (TEMPORARIES): New macro.
66221         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66222         removes an artificial limitation (e.g. HP-UX 10.20, where
66223         TMP_MAX is 17576).
66224
66225 2001-11-18  Jim Meyering  <meyering@lucent.com>
66226
66227         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66228
66229 2001-11-18  Jim Meyering  <meyering@lucent.com>
66230
66231         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66232         on SunOS 4.
66233
66234         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66235         files will be created before anything else.
66236
66237 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66238
66239         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66240         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66241
66242 2001-11-17  Jim Meyering  <meyering@lucent.com>
66243
66244         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66245         Prompted by a report from Bob Proulx.
66246
66247         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66248         Instead, require UTILS_FUNC_MKSTEMP.
66249
66250 2001-11-17  Jim Meyering  <meyering@lucent.com>
66251
66252         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66253         Now, that's done as part of AC_FUNC_STRTOD.
66254
66255 2001-11-17  Jim Meyering  <meyering@lucent.com>
66256
66257         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66258         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66259         rather than group writable.  Patch by Juan F. Codagnone.
66260
66261         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66262         xrealloc, Instead, include "xalloc.h".
66263
66264         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66265         Remove explicit declarations of xmalloc, xrealloc,
66266         and xstrdup.  Instead, include "xalloc.h".
66267
66268         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66269         unlocked-io.h.
66270         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66271         Likewise.
66272         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66273
66274         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66275         Reported by Padraig Brady.
66276
66277         * lib/mkstemp.c: #undef mkstemp.
66278         Include config.h.
66279         (rpl_mkstemp): Rename from mkstemp.
66280         Protoize.
66281
66282 2001-11-16  Jim Meyering  <meyering@lucent.com>
66283
66284         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66285         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66286         determine the amount of total physical memory, use pstat_getstatic.
66287         HPUX-11 doesn't define _SC_PHYS_PAGES.
66288         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66289         If sysconf couldn't be used to determine the amount of available
66290         physical memory, use both pstat_getstatic and pstat_getdynamic.
66291         Based on a patch from Bob Proulx.
66292
66293 2001-11-10  Jim Meyering  <meyering@lucent.com>
66294
66295         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66296         (jm_PREREQ): Use it.
66297
66298 2001-11-09  Jim Meyering  <meyering@lucent.com>
66299
66300         * m4/jm-macros.m4: Require autoconf-2.52f.
66301         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66302         Use these AC_-prefixed names, not the AM_-prefixed ones.
66303
66304         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66305
66306 2001-11-05  Jim Meyering  <meyering@lucent.com>
66307
66308         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66309
66310 2001-11-04  Jim Meyering  <meyering@lucent.com>
66311
66312         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66313         $DEFS.
66314
66315 2001-11-03  Jim Meyering  <meyering@lucent.com>
66316
66317         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66318         of AC_DEFUN.
66319
66320         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66321         know the name of the variable in the macro definition.
66322
66323 2001-11-03  Jim Meyering  <meyering@lucent.com>
66324
66325         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66326         in argmatch_to_argument call.
66327
66328         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66329         argument.
66330
66331         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66332         e.g., a fault due to an attempt to free a NULL pointer.
66333
66334 2001-11-01  Jim Meyering  <meyering@lucent.com>
66335
66336         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66337         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66338
66339 2001-11-01  Jim Meyering  <meyering@lucent.com>
66340
66341         * lib/dirfd.c, lib/dirfd.h: New files.
66342         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66343
66344         * lib/hash.c (hash_print) [TESTING]: Clean up.
66345
66346 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66347
66348         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66349         to avoid a warning if -Wall.
66350
66351 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66352
66353         * README: New file
66354         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66355         (per RMS's instructions, this is now the canonical source)
66356         * lgpl/, gpl/: New directories.
66357
66358 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66359
66360         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66361
66362 2001-10-21  Jim Meyering  <meyering@lucent.com>
66363
66364         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66365         this code would end up calling gettext even in packages built
66366         with --disable-nls.
66367         * lib/getopt.c (_): Likewise.
66368         * lib/regex.c (_): Likewise.
66369
66370 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66371
66372         * m4/error.m4 (jm_PREREQ_ERROR):
66373         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66374         AC_FUNC_STRERROR_R does that.
66375         Check for strerror declaration.
66376
66377         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66378         are supposed to have them these days.
66379         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66380         Merge changes from latest Autoconf CVS.
66381         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66382         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66383         POSIX decided to standardize on the int flavor of strerror_r.
66384
66385 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66386
66387         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66388         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66389         Use strerror_r that is only a macro, even if it is not a function.
66390         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66391         (private_strerror): Use prototypes, not old-style function definition.
66392         (print_errno_message): New function.
66393         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66394         char*-flavored one.
66395         (error_tail, error, error_at_line): Use it.
66396
66397 2001-10-11  Jim Meyering  <meyering@lucent.com>
66398
66399         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66400         and quote_n (1, ... to avoid clobbering a buffer.
66401
66402 2001-10-05  Jim Meyering  <meyering@lucent.com>
66403
66404         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66405         hash-pjw.h.
66406         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66407         * lib/hash-pjw.h: New file.
66408
66409 2001-09-30  Jim Meyering  <meyering@lucent.com>
66410
66411         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66412         `struct fsstat' has the `f_fstypename' member.
66413         Use that to define FS_TYPE, which is now used to make
66414         the getfsstat link test tighter.
66415
66416 2001-09-30  Jim Meyering  <meyering@lucent.com>
66417
66418         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66419         Include <sys/ucred.h>, for Apple Darwin.
66420         Include sys/mount.h and sys/fs_types.h only if available.
66421         (FS_TYPE): Define.
66422         (read_filesystem_list): Use FS_TYPE.
66423
66424 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66425
66426         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66427         a boolean context.
66428
66429 2001-09-29  Jim Meyering  <meyering@lucent.com>
66430
66431         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66432         [one-argument getmntent function]): Include stdio.h before mntent.h.
66433         SunOS 4.1.x needs it for the declaration of `FILE'.
66434         Patch by Volker Borchert.
66435
66436         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66437         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66438         sys/fs_types.h, and make the link-test for getfsstat guard #include
66439         directives with appropriate #if HAVE_*_H tests so that we can
66440         detect getfsstat on Apple Darwin1.3.7 systems.
66441         Reported by Nelson Beebe.
66442         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66443
66444 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66445
66446         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66447         #defines strtoimax.  Also treat the other strto* functions
66448         like strtoimax.
66449
66450         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66451         Check for strtoul and strtoumax,
66452         as those declarations are made even in the signed case.
66453         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66454         Likewise, for strtol and strtoimax.
66455
66456 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66457
66458         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66459         #defines strtoimax.  Also treat the other strto* functions
66460         like strtoimax.
66461
66462         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66463         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66464         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66465
66466 2001-09-26  Jim Meyering  <meyering@lucent.com>
66467
66468         Most macros in unlocked-io.h had the wrong number of arguments.
66469         * lib/gen-uio: New script.
66470         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66471         * lib/unlocked-io.hin: Remove file.
66472         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66473         rather than trying to embed it here.
66474         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66475         Reported by Padraig Brady.
66476
66477 2001-09-25  Volker Borchert  <bt@teknon.de>
66478
66479         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66480         `result'.
66481
66482 2001-09-24  Jim Meyering  <meyering@lucent.com>
66483
66484         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66485
66486 2001-09-23  Jim Meyering  <meyering@lucent.com>
66487
66488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66489         instead of the mere test for existence of mntent.h.  The latter
66490         would get a false-positive on AIX 3.4 systems.
66491         In the outer getmntent if-block, don't die if neither of the getmntent
66492         tests succeeds.  Instead, just fall through and continue with the
66493         remaining tests.
66494
66495 2001-09-23  Jim Meyering  <meyering@lucent.com>
66496
66497         * lib/mountlist.c: Remove useless parentheses in #if directives.
66498         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66499         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66500
66501 2001-09-22  Jim Meyering  <meyering@lucent.com>
66502
66503         * m4/gettext.m4: New file.  From gettext.
66504         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66505         * m4/progtest.m4: Likewise
66506         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66507         * m4/glibc21.m4: Likewise.
66508
66509         * m4/libintl.m4: Remove.  No longer used.
66510
66511 2001-09-22  Jim Meyering  <meyering@lucent.com>
66512
66513         * lib/localcharset.c: Update from latest gettext.
66514         * lib/config.charset: Likewise.
66515
66516 2001-09-20  Jim Meyering  <meyering@lucent.com>
66517
66518         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66519         strtoimax.
66520         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66521         strtoumax.
66522
66523 2001-09-20  Jim Meyering  <meyering@lucent.com>
66524
66525         * lib/xstrtol.c (strtoimax): Guard declaration with
66526         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66527         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66528         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66529         (strtoumax): Likewise, for completeness (it wasn't necessary).
66530
66531 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66532
66533         * lib/strtoimax.c (HAVE_LONG_LONG):
66534         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66535         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66536         to work around bug in IBM C compiler.
66537
66538 2001-09-17  Jim Meyering  <meyering@lucent.com>
66539
66540         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66541         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66542         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66543         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66544         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66545         whenever the right hand side need not be expanded by the shell.
66546
66547 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66548
66549         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66550         library.  It's not correct, as some older glibcs are buggy.
66551         fnmatch wasn't fixed until glibc 2.2.
66552
66553         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66554         special shell magic here.
66555
66556 2001-09-16  Jim Meyering  <meyering@lucent.com>
66557
66558         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66559         * m4/jm-macros.m4: Require it.
66560
66561 2001-09-16  Jim Meyering  <meyering@lucent.com>
66562
66563         * lib/mkdir.c: New file.
66564
66565 2001-09-15  Jim Meyering  <meyering@lucent.com>
66566
66567         * m4/jm-macros.m4: Check for help2man.
66568
66569 2001-09-11  Jim Meyering  <meyering@lucent.com>
66570
66571         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66572         The body, by Paul Eggert, was moved here from configure.in.
66573         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66574
66575 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66576
66577         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66578         (jm_PREREQ): Use it.
66579
66580 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66581
66582         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66583         Use ssize_t, not int, to store result of readlink.
66584         Check for ssize_t overflow as well as size_t overflow,
66585         as POSIX says the result of readlink is implementation-defined
66586         when ssize_t overflows.
66587         Remove unnecessary cast to char*.
66588         Use free+malloc instead of realloc, as the storage doesn't need
66589         to be preserved and it's clearer and can be more efficient that way.
66590         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66591         * lib/xreadlink.h (xreadlink): Update prototype.
66592
66593 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66594
66595         * lib/xgetcwd.c: Revert some of the previous change; intead,
66596         fix the HAVE_GETCWD_NULL code to behave more like the
66597         !HAVE_GETCWD_NULL code used to.
66598
66599         Include "xalloc.h".
66600         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66601         invoke xalloc_die.
66602
66603 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66604
66605         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66606         sys/param.h, as pathmax.h includes them.
66607
66608 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66609
66610         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66611         (jm_PREREQ_XGETCWD): New macro.
66612
66613         * m4/getcwd.m4: New file.
66614
66615 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66616
66617         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66618         like the HAVE_GETCWD_NULL code.
66619         Include pathmax.h if not HAVE_GETCWD.
66620         Do not include xalloc.h.
66621         (INITIAL_BUFFER_SIZE): New symbol.
66622         Do not use xmalloc / xrealloc, since the caller is responsible for
66623         handling errors.  Preserve errno around `free' during failure.
66624         Do not overrun buffer when using getwd.
66625
66626 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66627
66628         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66629         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66630         getcwd (NULL, 0).
66631
66632 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66633
66634         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66635         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66636         spotted by Jim Meyering.
66637
66638 2001-09-03  Jim Meyering  <meyering@lucent.com>
66639
66640         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66641         failure.
66642
66643 2001-09-02  Jim Meyering  <meyering@lucent.com>
66644
66645         * lib/error.c: Update from GNU libc.
66646
66647 2001-09-01  Jim Meyering  <meyering@lucent.com>
66648
66649         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66650         Used by df.
66651
66652 2001-09-01  Jim Meyering  <meyering@lucent.com>
66653
66654         * lib/xreadlink.c: New file.
66655         * lib/xreadlink.h: New file.
66656         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66657         xreadlink.h.
66658
66659         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66660         doesn't conflict with sparc Solaris 7's definition in
66661         /usr/include/sys/int_types.h.
66662
66663         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66664         files.
66665         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66666         and strncasecmp as r-values.  Unixware didn't have declarations.
66667
66668 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66669
66670         * lib/xstrtol.h: Add copyright notice.
66671         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66672         LONGINT_INVALID_SUFFIX_CHAR.
66673
66674 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66675
66676         * lib/xstrtol.c (strtoimax): New decl.
66677
66678 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66679
66680         * lib/xgetcwd.c: Don't include pathmax.h.
66681         Include stdlib.h and unistd.h if available.
66682         Include xalloc.h.
66683         (xmalloc, xstrdup, free): Remove decls.
66684         (xgetcwd): Don't assume sizes fit in unsigned.
66685         Check for overflow when computing sizes.
66686         Simplify reallocation code.
66687
66688 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66689
66690         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66691         a directory's st_size can have an arbitrary value, so the old
66692         usage could waste an arbitrary amount of memory.  All uses
66693         changed.
66694         * lib/savedir.h: Update prototype.
66695
66696 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66697
66698         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66699
66700         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66701         old strtoimax.c.
66702
66703         Also, make the following further changes to make this file's
66704         configuration more similar to that of strtol.c:
66705         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66706         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66707         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66708         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66709         changed to signed values.
66710
66711         And make the following changes as well:
66712         Fix copyright notice, as 1999 was missing.
66713         (verify): New macro.
66714         (strtoimax): Check sizes at compile-time, not run-time.
66715         Prefer strtol to strtoll if both work.
66716         (main): Remove; it was not that useful and was a pain to maintain.
66717
66718         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66719
66720 2001-08-31  Jim Meyering  <meyering@lucent.com>
66721
66722         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66723         Use an initial, malloc'd, buffer of length 128 rather than
66724         a statically allocated one of length 1024.
66725
66726 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66727
66728         Simplify code, partly by assuming autoconf 2.52 semantics.
66729
66730         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66731
66732         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66733         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66734         All uses removed.
66735         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66736         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66737         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66738         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66739         jm_AC_HEADER_INTTYPES_H.
66740         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66741
66742         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66743
66744         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66745         Quote first arg of AC_DEFUN.
66746         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66747         since they are needed to parse the include file even if we need
66748         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66749         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66750         but with opposite signedness.
66751
66752 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66753
66754         Merge 'exclude' changes from tar 1.13.22.
66755         This fixes one or two unlikely storage allocation overflow bugs,
66756         but doesn't change user-visible behavior otherwise.
66757
66758 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66759
66760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66761         (jm_PREREQ_EXCLUDE): New macro.
66762
66763 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66764
66765         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66766         tm to be declared.
66767
66768 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66769
66770         * lib/hash.c: Remove '2001' from copyright notice.
66771
66772 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66773
66774         * lib/full-write.h: New file.
66775         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66776         * lib/full-write.c: Correct credits, as cccp.c no longer
66777         exists and anyway it was so heavily changed from the old cccp
66778         code as to be unrecognizable.  Include full-write.h.
66779         (full_write) Return size_t, with short writes meaning failure.
66780         All callers changed.  This fixes a bug with large buffers
66781         on 64-bit hosts.
66782         * lib/utime.c: Include full-write.h.
66783
66784 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66785
66786         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66787         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66788         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66789         Include if available.
66790         (<xalloc.h>): Include
66791         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66792         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66793         collide with FNM macros.
66794         (struct patopts): New struct.
66795         (struct exclude): Use it, as exclude patterns now come with options.
66796         (new_exclude): Support above changes.
66797         (new_exclude, add_exclude_file):
66798         Initial size must now be a power of two to simplify overflow checking.
66799         (free_exclude, fnmatch_no_wildcards): New function.
66800         (excluded_filename): No longer requires options arg, as the options
66801         are determined by add_exclude.  Now returns bool, not int.
66802         (excluded_filename, add_exclude):
66803         Add support for the fancy new exclusion options.
66804         (add_exclude, add_exclude_file): Now takes int options arg.
66805         Check for arithmetic overflow when computing sizes.
66806         (add_exclude_file): xrealloc might modify errno, so don't
66807         realloc until after errno might be used.
66808
66809         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66810         New macros.
66811         (free_exclude): New decl.
66812         (add_exclude, add_exclude_file): Now takes int options arg.
66813         (excluded_filename): No longer requires options arg, as the options
66814         are determined by add_exclude.  Now returns bool, not int.
66815
66816 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66817
66818         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66819
66820 2001-08-27  Jim Meyering  <meyering@lucent.com>
66821
66822         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66823
66824         * lib/version-etc.c (N_): Remove definition.
66825         Revert most of last change.
66826         Instead, simply don't mark the `Copyright...' string for translation.
66827         Based on advice from Paul Eggert.
66828
66829         * lib/strtoxmax.c: Tweak comment.
66830
66831 2001-08-26  Jim Meyering  <meyering@lucent.com>
66832
66833         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66834
66835         * m4/xstrtoimax.m4: New file.
66836         * m4/xstrtoumax.m4: Add comments explaining why we
66837         AC_REPLACE_FUNCS(strtol).
66838
66839 2001-08-26  Jim Meyering  <meyering@lucent.com>
66840
66841         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66842         of copyright with `%s' so translators don't get an untranslated
66843         message in 2002.
66844         (COPYRIGHT_YEAR): Define.
66845         (version_etc): Use fprintf rather than fputs.
66846         Suggestion from Ulrich Drepper.
66847
66848         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66849
66850         * lib/strtoll.c: New file, from GNU libc.
66851         * lib/xstrtoimax.c: New file.
66852
66853         * lib/xstrtol.h: Add xstrtoimax.
66854         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66855         * lib/strtoimax.c: New file.  Likewise, but first define
66856         STRTOUXMAX_SIGNED.
66857
66858         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66859         ...
66860         * lib/strtoxmax.c: ... then renamed to this.
66861
66862 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66863
66864         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66865         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66866         (jm_AC_TYPE_INTMAX_T): New macro.
66867         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66868
66869         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66870
66871         * m4/longlong.m4: Renamed from ulonglong.m4.
66872         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66873         * m4/uintmax_t.m4: Removed.
66874
66875 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66876
66877         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66878         Port to Solaris 8, where 'sed' requires a space after the 'r'
66879         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66880         Redirect output to $tmp just once.
66881
66882 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66883
66884         * lib/addext.c (<errno.h>): Include.
66885         (errno): Declare if not defined.
66886         (addext): Work correctly when pathconf returns -1 and leaves
66887         errno alone because there is no limit.  Also, work even if
66888         pathconf returns a value greater than SIZE_MAX.
66889
66890 2001-08-12  Jim Meyering  <meyering@lucent.com>
66891
66892         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66893         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66894         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66895         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66896         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66897         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66898         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66899         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66900         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66901         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66902         utime.m4, utimes.m4, xstrtoumax.m4:
66903         Quote the first argument in each use of AC_DEFUN.
66904
66905 2001-08-12  Jim Meyering  <meyering@lucent.com>
66906
66907         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66908         Simply `return getcwd (NULL, 0);'.
66909         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66910         Use 1300 as initial value for length, not PATH_MAX.
66911
66912         * lib/pathmax.h: Clean up cpp syntax.
66913
66914 2001-08-12  Jim Meyering  <meyering@lucent.com>
66915
66916         * lib/gettimeofday.c: New file.
66917         * lib/gtod.h: New file.
66918         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66919
66920 2001-08-05  Jim Meyering  <meyering@lucent.com>
66921
66922         * m4/jm-macros.m4: Require autoconf-2.52.
66923
66924 2001-08-04  Jim Meyering  <meyering@lucent.com>
66925
66926         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66927         stmt, to get in sync with glibc.
66928
66929 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66930
66931         The following changes are from gettext 0.10.39 as maintained by
66932         Bruno Haible.
66933
66934         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66935         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66936         with inverted sense.  All uses changed.
66937
66938         * lib/mbswidth.c: Don't include <limits.h>.
66939         Include <stdlib.h> and <string.h> unconditionally.
66940         (iswcntrl, mbsinit, ISCNTRL): New macros.
66941         (mbsnwidth): Use K&R style function declarations.
66942         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66943         can optimize it when MB_CUR_MAX == 1.
66944         The width of control characters is zero, not 1.
66945
66946 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66947
66948         The following changes are from gettext 0.10.39 as maintained by
66949         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66950
66951         * m4/codeset.m4: Upgrade to serial AM1.
66952         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66953         all uses changed.  Quote first arg of AC_DEFUN.
66954         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66955
66956         * m4/iconv.m4: Upgrade to serial AM2.
66957         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
66958         Add --with-libconv-prefix.
66959         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
66960         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
66961         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
66962         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
66963         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
66964
66965         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
66966         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
66967         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
66968         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
66969         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
66970         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
66971         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66972         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
66973         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66974
66975         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
66976         string.h any more.
66977
66978         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
66979         not the default value.
66980
66981         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
66982         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
66983         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
66984         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
66985         Also check for iswcntrl, used for wcwidth fallback.
66986         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
66987         to Autoconf 2.13.
66988
66989 2001-08-03  Jim Meyering  <meyering@lucent.com>
66990
66991         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
66992         as it was in the original.  Reported by Paul Eggert.
66993
66994 2001-07-16  Jim Meyering  <meyering@lucent.com>
66995
66996         * m4/gettimeofday.m4: New file.
66997         Prompted by a report from Bernhard Baehr.
66998
66999 2001-07-15  Jim Meyering  <meyering@lucent.com>
67000
67001         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67002         stuff. Now it's in ../Makefile.cfg.
67003
67004 2001-07-15  Jim Meyering  <meyering@lucent.com>
67005
67006         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67007         (BUILT_SOURCES): Add unlocked-io.h.
67008         (io_functions): Define.
67009         (unlocked-io.h): New rule.
67010         (DISTCLEANFILES): Add unlocked-io.h.
67011         (all-local): Depend on unlocked-io.h, to ensure it is created.
67012
67013         * lib/unlocked-io.hin: New file
67014
67015         * lib/regex.c: Update from glibc.
67016
67017 2001-07-05  Jim Meyering  <meyering@lucent.com>
67018
67019         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67020         recommendation.
67021         (libfetish_a_SOURCES): Put all .h files here instead.
67022         Remove a thus-exposed (better checks in automake) duplicate and
67023         two unnecessary .h files.
67024
67025 2001-07-04  Jim Meyering  <meyering@lucent.com>
67026
67027         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67028         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67029         distcheck failure.
67030
67031 2001-07-02  Jim Meyering  <meyering@lucent.com>
67032
67033         The following changes were prompted by suggestions from Bruno Haible.
67034
67035         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67036         is now generated.
67037         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67038         definition of EXTRA_DIST.
67039         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67040         ensure that the generated file is created/updated whenever the list
67041         of $(unlocked_functions) is changed.
67042         (jm-glibc-io.m4): New rule.
67043         (unlocked-io.h): New rule -- currently unused.
67044
67045 2001-06-24  Jim Meyering  <meyering@lucent.com>
67046
67047         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67048         unmatched right bracket, rather than kludging it with an extra,
67049         falsely-matching quote in a comment.  Patch by Akim Demaille.
67050
67051 2001-06-11  Jim Meyering  <meyering@lucent.com>
67052
67053         * lib/regex.c: Update from GNU libc.
67054
67055 2001-05-27  Jim Meyering  <meyering@lucent.com>
67056
67057         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67058         Check for ut_type in struct utmp.
67059
67060 2001-05-27  Jim Meyering  <meyering@lucent.com>
67061
67062         * lib/readutmp.h (UT_TYPE): Define.
67063
67064 2001-05-24  Jim Meyering  <meyering@lucent.com>
67065
67066         * lib/argmatch.c: Include "quote.h".
67067         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67068         quote function.  Reported by Göran Uddeborg.
67069
67070 2001-05-22  Jim Meyering  <meyering@lucent.com>
67071
67072         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67073         now that we use the package-supplied version unconditionally.
67074         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67075
67076 2001-05-21  Jim Meyering  <meyering@lucent.com>
67077
67078         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67079         shell syntax errors.
67080
67081 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67082
67083         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67084
67085 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67086
67087         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67088         Don't bother to check library strftime, since
67089         we'll be using our own my_strftime function anyway.
67090         Define my_strftime instead of strftime.
67091
67092 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67093
67094         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67095         which is not yet declared.
67096
67097 2001-05-15  Jim Meyering  <meyering@lucent.com>
67098
67099         * m4/regex.m4: Use proper quoting so brackets appear in the test
67100         program.
67101         Reported by, and with help from, Bruno Haible.
67102
67103 2001-05-13  Jim Meyering  <meyering@lucent.com>
67104
67105         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67106         undefined.
67107
67108 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67109
67110         dirname code cleanup.  base_name now behaves more compatibly
67111         with POSIX basename when given file names that have trailing
67112         slashes, and similarly for dir_name.  Add new primitives
67113         base_len and dir_len.  Put the directory-name-related decls
67114         into dirname.h.
67115
67116         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67117         * lib/backupfile.c (base_name): Likewise.
67118         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67119         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67120         * lib/makepath.c (strip_trailing_slashes): Likewise.
67121         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67122         ISSLASH): Likewise.
67123         * lib/rename.c (strip_trailing_slashes): Likewise.
67124         * lib/same.c (base_name): Likewise.
67125         * lib/stripslash.c (ISSLASH): Likewise.
67126
67127         * lib/addext.c: Include <dirname.h> after size_t is defined.
67128         * lib/backupfile.c: Likewise.
67129
67130         * lib/addext.c (addext): Use base_len to trim redundant
67131         trailing slashes instead of doing it ourselves.
67132         But do not trim the last slash if it is not redundant.
67133
67134         * lib/backupfile.c (find_backup_file_name,
67135         max_backup_version): Use base_len instead of rolling it ourselves.
67136         Handle the case of "" and (on DOS) "C:" correctly.
67137
67138         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67139         needed. Include <string.h>, <dirname.h>.
67140         (base_name): Allow file names ending in slashes, other than names
67141         that are all slashes.  In this case, return the basename followed
67142         by the slashes.  This is more general, and can be used in places
67143         where the original base_name purposely had an assertion failure.
67144         (base_len): New function.
67145
67146         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67147         Do not include <assert.h>; no longer needed.
67148         Include xalloc.h.
67149         (memrchr): Remove decl.
67150         (dir_name_r): Remove.
67151         (dir_len): Renamed from dirlen.  All callers changed.
67152         Rewrite in terms of base_name, for simplicity and consistency.
67153         (dir_name): Never return NULL.  All callers changed.
67154         Do not include <stdlib.h> in test program; no longer needed.
67155         return 0; is fine for test program.
67156
67157         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67158         New macros.
67159         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67160
67161         * lib/path-concat.c (path_concat): Use base_len to compute
67162         base length, not strlen; this means we cannot rely on memcpy
67163         to null-terminate.
67164
67165         * lib/same.c (STREQ): Remove.
67166         (same_name): Handle the case where the basename ends in trailing '/'.
67167
67168         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67169         a slash was stripped.  Do not strip the last slash after a
67170         file system prefix.
67171
67172 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67173
67174         * lib/Makefile.am (libfetish_a_SOURCES):
67175         Add strftime.c, since we now compile it on all hosts.
67176
67177         * lib/strftime.c (my_strftime):
67178         Define to nstrftime if emacs, but only if my_strftime is not defined.
67179         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67180         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67181         Add one more extra argument: a nanoseconds value.
67182         All uses changed.
67183         (ns): New macro.
67184         (my_strftime function): Add %N format.
67185         (emacs_strftimeu): Renamed from emacs_strftime,
67186         with extra ut argument.
67187
67188 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67189
67190         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67191
67192 2001-04-21  Jim Meyering  <meyering@lucent.com>
67193
67194         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67195         doesn't interfere.
67196
67197 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67198
67199         * m4/ftruncate.m4: Check for chsize.
67200         Link with ftruncate.o unconditionally if ftruncate is missing.
67201         This was required when cross-compiling to i586-mingw32msvc.
67202
67203 2001-04-08  Jim Meyering  <meyering@lucent.com>
67204
67205         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67206         recomputed; that's necessary when the offset spans a DST transition.
67207         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67208
67209 2001-04-02  Jim Meyering  <meyering@lucent.com>
67210
67211         * lib/regex.h, regex.c: Update from GNU libc.
67212
67213 2001-03-24  Jim Meyering  <meyering@lucent.com>
67214
67215         * m4/jm-macros.m4: Require autoconf-2.49d.
67216
67217 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67218
67219         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67220
67221 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67222
67223         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67224
67225 2001-03-17  Jim Meyering  <meyering@lucent.com>
67226
67227         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67228         now that the version in autoconf is equivalent.
67229         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67230
67231         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67232         Suggestion from Akim Demaille.
67233
67234         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67235         (jm_PREREQ_TEMPNAME): New function.
67236
67237 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67238
67239         * lib/tempname.c (uint64_t): Define to uintmax_t if
67240         not defined, and if UINT64_MAX is not defined.
67241         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67242         Reported by John David Anglin.
67243
67244 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67245
67246         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67247         resolve alias if codeset is empty.
67248         * lib/config.charset (BeOS): Use wildcard syntax.
67249
67250 2001-03-13  Jim Meyering  <meyering@lucent.com>
67251
67252         * lib/path-concat.c (path_concat)
67253         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67254         concatenating e.g., `C:' and `foo'.
67255         From Bruno Haible.
67256
67257 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67258
67259         * lib/localcharset.c (locale_charset): Don't use
67260         setlocale(LC_CTYPE,NULL). Don't return NULL.
67261         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67262
67263 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67264
67265         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67266         support for DOS/DJGPP.
67267
67268 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67269
67270         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67271         lacks mkstemp.  Compile our own tempname.c if we compile our own
67272         mkstemp.c, as mkstemp relies on tempname.
67273
67274 2001-03-01  Jim Meyering  <meyering@lucent.com>
67275
67276         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67277         AH_VERBATIM really does output its argument verbatim.
67278
67279 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67280
67281         * lib/Makefile.am (libfetish_a_SOURCES):
67282         Add dup-safer.c, fopen-safer.c.
67283         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67284
67285         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67286         * lib/unistd-safer.h: New files.
67287
67288 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67289
67290         The mkstemp replacement is taken from glibc 2.2.2, with some
67291         portability fixes for use outside glibc, as follows:
67292
67293         * lib/tempname.c (struct_stat64): New macro.
67294         (direxists, __gen_tempname): Use it.
67295         This avoids a portability problem with Solaris 8.
67296
67297         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67298         (<stddef.h>, <stdint.h>, <string.h>):
67299         Include only if STDC_HEADERS || _LIBC.
67300         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67301         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67302         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67303         (__set_errno): Define this macro if <errno.h> doesn't.
67304         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67305         Define these macros if <stdio.h> doesn't.
67306         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67307         Define these macros if <sys/stat.h>
67308         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67309         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67310         __xstat64): Define if not _LIBC.
67311         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67312         (__gen_tempname): Invoke gettimeofday only if
67313         HAVE_GETTIMEOFDAY || _LIBC;
67314         otherwise, fall back on plain "time".
67315         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67316
67317         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67318
67319         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67320
67321 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67322
67323         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67324
67325 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67326
67327         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67328         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67329         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67330         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67331
67332 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67333
67334         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67335         Remove workaround macros for hosts that have mbrtowc but not
67336         mbstate_t, as we now insist on proper declarations for both
67337         before using mbrtowc.
67338
67339 2001-02-17  Jim Meyering  <meyering@lucent.com>
67340
67341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67342         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67343         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67344         UnixWare 7.1.1.
67345
67346         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67347         rather than AC_CACHE_VAL.
67348
67349 2001-02-17  Jim Meyering  <meyering@lucent.com>
67350
67351         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67352         around included file name.
67353
67354         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67355
67356         * lib/strftime.c: Update from GNU libc (the only changes were to
67357         comments).
67358
67359 2001-02-17  Jim Meyering  <meyering@lucent.com>
67360
67361         * lib/regex.c: Update from libc.
67362
67363 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67364
67365         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67366         clash.
67367
67368 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67369
67370         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67371         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67372         Reported by Mark Hounschell via Paul Eggert.
67373
67374 2001-02-07  Jim Meyering  <meyering@lucent.com>
67375
67376         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67377
67378 2001-02-05  Jim Meyering  <meyering@lucent.com>
67379
67380         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67381         it includes the patch required for `large file' support with at least
67382         HP-UX's 10.20 /bin/cc.
67383
67384 2001-02-03  Jim Meyering  <meyering@lucent.com>
67385
67386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67387         AS_IF, now that it works once again (mysteriously).
67388         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67389
67390 2001-01-30  Jim Meyering  <meyering@lucent.com>
67391
67392         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67393         * m4/chown.m4: Rename conftestchown to conftest.chown.
67394         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67395         s/conftestdir2/conftest.d2/.
67396         * m4/utimes.m4: s/conftestdata/conftest.data/
67397         Inspired by Pavel Roskin's change in autoconf.
67398
67399 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67400
67401         * lib/config.charset: Update for FreeBSD 4.2.
67402
67403 2001-01-27  Jim Meyering  <meyering@lucent.com>
67404
67405         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67406         a use of AS_IF.
67407         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67408
67409 2001-01-26  Jim Meyering  <meyering@lucent.com>
67410
67411         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67412         quotearg.c includes it.
67413
67414 2001-01-26  Jim Meyering  <meyering@lucent.com>
67415
67416         * lib/quotearg.c: Include stddef.h.
67417         * lib/quote.c: Include stddef.h.
67418         Reported by Axel Kittenberger.
67419
67420         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67421         line in double quotes so that it evokes a better diagnostic.
67422         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67423         Reported by Axel Kittenberger.
67424
67425 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67426
67427         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67428         as if it was a `charset'.
67429
67430 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67431
67432         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67433         has const.
67434
67435 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67436
67437         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67438         to avoid a warning.  Add back 'const' to inptr.
67439
67440 2001-01-20  Jim Meyering  <meyering@lucent.com>
67441
67442         Be sure that headers are checked before used in code compiled
67443         for the type checks.
67444         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67445         In place of that, invoke jm_CHECK_ALL_TYPES.
67446         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67447         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67448         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67449         The check for ssize_t was mistakenly run before the test for unistd.h.
67450
67451         The configure-time check for stdbool.h was missing.
67452         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67453         (jm_PREREQ_HASH): New function.
67454
67455 2001-01-17  Jim Meyering  <meyering@lucent.com>
67456
67457         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67458         for autoconf-2.49c.
67459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67460
67461 2001-01-16  Jim Meyering  <meyering@lucent.com>
67462
67463         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67464         From Bruno Haible.
67465
67466 2001-01-14  Jim Meyering  <meyering@lucent.com>
67467
67468         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67469         foo and bar.  Create conftestdir/ in the script, not in the C code.
67470         Remove directories in the script, not in the C code.
67471         Remove conftestdir{,2} before trying to create the directory.
67472         Make the entire configure script fail if the mkdir fails.
67473
67474 2001-01-14  Jim Meyering  <meyering@lucent.com>
67475
67476         * lib/rename.c: New file.  From Volker Borchert.
67477         Include stdlib.h, string.h or strings.h, and xalloc.h.
67478         Use strip_trailing_slashes rather than open-coding it.
67479
67480 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67481
67482         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67483
67484 2001-01-03  Jim Meyering  <meyering@lucent.com>
67485
67486         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67487         of local `inptr' to avoid warning with some system declarations of
67488         iconv.
67489
67490 2001-01-02  Volker Borchert  <bt@teknon.de>
67491
67492         * m4/rename.m4: New file.
67493         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67494
67495 2001-01-01  Jim Meyering  <meyering@lucent.com>
67496
67497         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67498         even on systems with utmpx.h.  It's necessary for the declaration of
67499         utmp's ut_user member.  Reported by Andreas Jaeger.
67500
67501         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67502         available. They are required for the declarations of getgrgid and
67503         getpwuid resp.
67504         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67505         Reported by Andreas Jaeger.
67506
67507 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67508
67509         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67510         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67511         so `make install' also works in VPATH builds.
67512
67513 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67514
67515         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67516         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67517         can be used in subdirectories.
67518
67519 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67520
67521         * lib/modechange.c: Do not assume that mode_t uses the
67522         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67523         the other-execute bit of FOO even if S_IXOTH != 1.
67524
67525         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67526         WOTH, XOTH, ALLM): New macros.
67527         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67528          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67529         Use them.
67530         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67531         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67532         (mode_compile):
67533         No need to use uintmax_t; unsigned long is long enough.
67534         Don't bother to get suffix since we don't use it.
67535
67536 2000-12-26  Jim Meyering  <meyering@lucent.com>
67537
67538         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67539         better with autoheader.
67540
67541 2000-12-24  Jim Meyering  <meyering@lucent.com>
67542
67543         * lib/hash.c (is_prime): Return explicit boolean values.
67544         (hash_get_first): Return NULL to appease Irix5.6's 89.
67545         Reported by Nelson Beebe.
67546
67547 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67548
67549         * lib/localcharset.c (locale_charset): Add support for Win32.
67550
67551 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67552
67553         * lib/physmem.h, lib/physmem.c: New files.
67554
67555         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67556         (noinst_HEADERS): Add physmem.h.
67557
67558         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67559         't' for compatibility with Solaris 8 sort.
67560
67561 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67562
67563         * lib/config.charset: Add support for BeOS.
67564
67565 2000-12-17  Jim Meyering  <meyering@lucent.com>
67566
67567         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67568         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67569
67570 2000-12-16  Jim Meyering  <meyering@lucent.com>
67571
67572         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67573         N and M) would have treated it like `chown N:N FILE'.
67574
67575         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67576
67577 2000-12-16  Jim Meyering  <meyering@lucent.com>
67578
67579         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67580         SHELLS_FILE to a file name that's useful on djgpp systems.
67581         Include stdlib.h.
67582         (ADDITIONAL_DEFAULT_SHELLS): Define.
67583         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67584         Based mostly on a patch from Prashant TR.
67585
67586 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67587
67588         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67589         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67590         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67591
67592 2000-12-08  Andreas Schwab  <schwab@suse.de>
67593
67594         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67595         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67596
67597 2000-12-07  Jim Meyering  <meyering@lucent.com>
67598
67599         * lib/stripslash.c (ISSLASH): Define.
67600         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67601         `/'.
67602         From Prashant TR.
67603
67604         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67605         (dir_name_r): Declare this function as static.
67606         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67607         manifest itself on a name containing a mix of slashes and
67608         backslashes.
67609         Make this function work with names starting with a DOS-style
67610         drive letter and colon prefix.
67611         (dir_name): Append `.' if necessary.
67612         Based mostly on patches from Prashant TR and Eli Zaretskii.
67613
67614         * lib/dirname.h (dir_name_r): Remove prototype.
67615
67616 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67617
67618         * m4/off_t-format.m4: Remove this file.
67619         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67620
67621 2000-12-06  Jim Meyering  <meyering@lucent.com>
67622
67623         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67624         replacement strtoull, we may well need the replacement strtoul, too.
67625         Check for declarations of strtoul and strtoull.
67626         Check for strtol.  Mainly as a cue to cause automake to include
67627         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67628         Check for limits.h -- strtol.c needs it.
67629
67630 2000-12-05  Jim Meyering  <meyering@lucent.com>
67631
67632         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67633
67634 2000-12-04  Jim Meyering  <meyering@lucent.com>
67635
67636         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67637         Also include memory.h, stdlib.h, unistd.h if appropriate.
67638         Reported by Andreas Jaeger (conflicting declaration of malloc).
67639
67640 2000-12-02  Jim Meyering  <meyering@lucent.com>
67641
67642         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67643         * m4/jm-macros.m4 (jm_MACROS): require it.
67644
67645 2000-12-02  Jim Meyering  <meyering@lucent.com>
67646
67647         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67648
67649 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67650
67651         * lib/memrchr.c: Include <config.h> before any system include file.
67652
67653 2000-11-30  Jim Meyering  <meyering@lucent.com>
67654
67655         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67656
67657 2000-11-30  Jim Meyering  <meyering@lucent.com>
67658
67659         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67660
67661 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67662
67663         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67664
67665 2000-11-26  Jim Meyering  <meyering@lucent.com>
67666
67667         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67668
67669 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67670
67671         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67672         size of (size_t) -1; it's not portable.
67673
67674 2000-11-17  Jim Meyering  <meyering@lucent.com>
67675
67676         * lib/strstr.c: Update from GNU libc.
67677
67678 2000-11-17  Akim Demaille  <akim@epita.fr>
67679
67680         * lib/obstack.h: Formatting changes.
67681         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67682         prevent type checking.
67683         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67684         cast the value to (void *): assigning a `foo *' to a `void *'
67685         variable is valid.
67686         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67687
67688 2000-11-16  Jim Meyering  <meyering@lucent.com>
67689
67690         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67691
67692 2000-11-11  Jim Meyering  <meyering@lucent.com>
67693
67694         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67695
67696 2000-11-10  Jim Meyering  <meyering@lucent.com>
67697
67698         * lib/obstack.h: Update from GNU libc.
67699         * lib/obstack.c: Likewise.
67700
67701 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67702
67703         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67704
67705 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67706
67707         * lib/getusershell.c (setusershell): Use rewind rather than
67708         fseek/fseeko, to avoid configuration hassles with fseeko.
67709         Don't bother opening SHELLS_FILE if shellstream is NULL;
67710         it's not necessary.
67711
67712 2000-11-05  Jim Meyering  <meyering@lucent.com>
67713
67714         * lib/makepath.h (make_dir): Declare.
67715         * lib/makepath.c (make_dir): Remove `static' attribute.
67716         Tweak a comment.
67717
67718 2000-11-04  Jim Meyering  <meyering@lucent.com>
67719
67720         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67721
67722 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67723
67724         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67725         last one in a bucket, advance to the next bucket.
67726
67727 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67728
67729         * lib/fnmatch.c: Do not comment out all the code if we are using
67730         the GNU C library, because in some cases we are replacing buggy
67731         code in the GNU C library itself.
67732
67733 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67734
67735         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67736         (regex_compile): Catch bogus \(\1\).
67737
67738 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67739
67740         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67741         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67742         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67743
67744 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67745
67746         * lib/error.h, getline.h, modechange.h:
67747         Remove "2000" from Copyright line, as the file hasn't been
67748         changed this year other than in the copyright notice.
67749
67750         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67751         was changed this year.
67752
67753 2000-10-29  Jim Meyering  <meyering@lucent.com>
67754
67755         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67756         renaming.
67757         * m4/ls-mntd-fs.m4: Likewise
67758
67759 2000-10-29  Jim Meyering  <meyering@lucent.com>
67760
67761         * lib/xstat.in: Fix grammar in comment.
67762
67763 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67764
67765         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67766         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67767         doesn't define __restrict_arr.
67768
67769 2000-10-28  Jim Meyering  <meyering@lucent.com>
67770
67771         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67772         (jm_PREREQ_MEMCHR): New function.
67773
67774 2000-10-28  Jim Meyering  <meyering@lucent.com>
67775
67776         * lib/memchr.c: Update from libc.
67777         Adjust for portability:
67778         [HAVE_STDLIB_H]: Include stdlib.h.
67779         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67780         Undef __memchr, too.
67781         [!weak_alias]: Define __memchr to memchr.
67782
67783         * lib/regex.c: Update from libc.
67784         * lib/regex.h: Likewise.
67785         * lib/getopt1.c: Likewise.
67786         * lib/memcmp.c: Likewise.
67787
67788         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67789         Avoid using fseek, when possible -- it's broken by design.
67790         Patch by Ulrich Drepper.
67791
67792 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67793
67794         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67795         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67796         Giving in to popular pressure to shut up the compiler with casts.
67797
67798 2000-10-26  Jim Meyering  <meyering@lucent.com>
67799
67800         * lib/strftime.c: Update from libc.
67801
67802 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67803
67804         * regex.c: More `unsigned char' -> `re_char' changes.
67805         Also change several `int' into `re_wchar_t'.
67806         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67807         (PUSH_FAILURE_POINTER): Don't cast any more.
67808         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67809         We want GCC to complain, since this piece of code makes
67810         re_match non-reentrant, which *should* be fixed.
67811         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67812         (EXTEND_BUFFER): Use RETALLOC.
67813         (SET_LIST_BIT): Don't cast.
67814         (re_wchar_t): New type.
67815         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67816         that those two functions will always properly return.
67817         (IMMEDIATE_QUIT_CHECK): Cast to void.
67818         (analyse_first): Use recursion rather than an explicit stack.
67819         (re_compile_fastmap): Can't fail anymore.
67820         (re_search_2): Don't check re_compile_fastmap for failure.
67821         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67822         Now also sets the new value (passed in a new argument).
67823         (re_match_2_internal): Use it.
67824         Also, use a new var `reg' of type size_t when looping through regs
67825         rather than reuse the inappropriate `mcnt'.
67826
67827 2000-10-25  Jim Meyering  <meyering@lucent.com>
67828
67829         * lib/obstack.c: Update from libc.
67830
67831 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67832
67833         * regex.c (regex_compile): Change the way of handling a range from
67834         a char less than 256 to a char not less than 256.
67835
67836 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67837
67838         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67839         NT-Emacs only.
67840         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67841         so that re_search functions only quit when callers expect them to.
67842
67843 2000-10-23  Jim Meyering  <meyering@lucent.com>
67844
67845         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67846         wrong.  That set_locale call must not have any side effects.
67847         From Paul Eggert.
67848
67849 2000-10-22  Jim Meyering  <meyering@lucent.com>
67850
67851         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67852         [CYCLIC]: Remove now-unused definition.
67853
67854         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67855         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67856         Suggestion from Ulrich Drepper.
67857
67858 2000-10-21  Jim Meyering  <meyering@lucent.com>
67859
67860         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67861         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67863
67864 2000-10-21  Jim Meyering  <meyering@lucent.com>
67865
67866         * lib/dirname.c (memrchr): Declare if necessary.
67867         (dir_name): Remove the restriction that there be no
67868         trailing slashes.  Now, this code skips past them, effectively
67869         ignoring them.
67870         [TEST_DIRNAME] (main): New unit tests.
67871
67872         * lib/memrchr.c: New file from GNU libc.
67873         Undef __memrchr, too.
67874         [!weak_alias]: Define __memrchr to memrchr.
67875         Guard weak_alias use with `#ifdef weak_alias'.
67876
67877 2000-10-21  Jim Meyering  <meyering@lucent.com>
67878
67879         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67880         (dir_name): Use dir_name_r.
67881         * lib/dirname.h (dir_name_r): Declare it.
67882
67883 2000-10-17  Jim Meyering  <meyering@lucent.com>
67884
67885         * lib/quote.h (PARAMS): Define and use.
67886         Reported by Akim Demaille.
67887
67888         * lib/getopt.c: Update from libc.
67889
67890 2000-10-16  Jim Meyering  <meyering@lucent.com>
67891
67892         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67893         setlocale.
67894         From Jan Fedak.
67895
67896 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67897
67898         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67899
67900 2000-09-25  Jim Meyering  <meyering@lucent.com>
67901
67902         * lib/md5.h (rol): Define (from GnuPG).
67903
67904         * lib/sha.c: Give credit (GnuPG) where due.
67905         (M): Use rol rather than open-coding it.
67906         Add a FIXME comment.
67907
67908 2000-09-21  Jim Meyering  <meyering@lucent.com>
67909
67910         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67911         Reported by Michael Stone.
67912
67913 2000-09-20  Jim Meyering  <meyering@lucent.com>
67914
67915         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67916         (noinst_HEADERS): Add sha.h.
67917         Based on code from Scott G. Miller and from GnuPG.
67918
67919 2000-09-18  Jim Meyering  <meyering@lucent.com>
67920
67921         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67922         LIBS. Otherwise, everyone ends up linking with -lelf for some
67923         configurations.
67924         Reported by Mike Stone.
67925
67926 2000-09-15  Jim Meyering  <meyering@lucent.com>
67927
67928         * lib/regex.c: Update from libc.
67929
67930 2000-09-10  Jim Meyering  <meyering@lucent.com>
67931
67932         * lib/getopt.c (_getopt_internal): Update from glibc.
67933
67934 2000-09-09  Jim Meyering  <meyering@lucent.com>
67935
67936         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67937         think it should be used as a general replacement for isascii.
67938         * lib/fnmatch.c: Likewise.
67939         * lib/mbswidth.c: Likewise
67940         * lib/regex.c: Likewise.
67941
67942         Don't use atoi.
67943         * lib/userspec.c: Include sys/param.h and limits.h.
67944         Include xstrtol.h.
67945         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67946         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67947         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67948         UID, GID.  Check range.
67949
67950 2000-09-06  Jim Meyering  <meyering@lucent.com>
67951
67952         * lib/getopt.c (_getopt_internal): Update from glibc.
67953
67954 2000-08-30  Jim Meyering  <meyering@lucent.com>
67955
67956         * lib/strftime.c: Merge in changes from GNU libc.
67957
67958 2000-08-26  Jim Meyering  <meyering@lucent.com>
67959
67960         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
67961         * m4/fpending.m4: New file.
67962
67963 2000-08-26  Jim Meyering  <meyering@lucent.com>
67964
67965         * lib/closeout.c: Include "__fpending.h".
67966         (close_stdout_status): Return right away if there's nothing to flush.
67967
67968         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
67969         * lib/__fpending.c: New file.
67970         * lib/__fpending.h: New file.
67971
67972 2000-08-20  Jim Meyering  <meyering@lucent.com>
67973
67974         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
67975         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
67976         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
67977
67978 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
67979
67980         Improve fileutils installation on systems where running
67981         programs (like install) can't be unlinked.
67982         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
67983         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
67984
67985 2000-08-07  Paul Eggert  <eggert@twinsun.com>
67986
67987         Standardize on "memory exhausted" instead of "Memory exhausted"
67988         or "virtual memory exhausted".
67989         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
67990         "virtual memory exhausted".
67991         * lib/same.c (same_name): Invoke xalloc_die instead of printing
67992         our own message.
67993         * lib/userspec.c (parse_user_spec): Likewise.
67994         * lib/bumpalloc.h: comment fix
67995         * lib/same.c, userspec.c: Include xalloc.h.
67996
67997         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
67998         not char *const and pointing to a constant array.
67999         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68000         (xrealloc): Comment fix.
68001
68002         * lib/userspec.c (parse_user_spec):
68003         Don't translate a message until just before returning,
68004         to avoid unnecessary translation.
68005
68006 2000-08-07  Jim Meyering  <meyering@lucent.com>
68007
68008         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68009         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68010         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68011         getgroups.c, gethostname.c, getopt.h, group-member.c,
68012         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68013         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68014         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68015         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68016         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68017         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68018         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68019         yesno.c: Back out Copyright date changes for each file with no change
68020         this year.  This eases coordination with other programs using the same
68021         source code modules.  From Paul Eggert.
68022
68023 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68024
68025         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68026         not char, for compatibility with glibc 2.1.3 strftime.c.
68027
68028 2000-08-03  Greg McGary  <greg@mcgary.org>
68029
68030         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68031         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68032         (EXTEND_BUFFER): Use them.
68033
68034 2000-08-01  Jim Meyering  <meyering@lucent.com>
68035
68036         * lib/dirname.c (ISSLASH): Define.
68037         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68038         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68039         both `\' and `/' may be use as path separators.
68040         Based on a patch from Prashant TR.
68041
68042 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68043
68044         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68045         slot vector a constant, since it might get modified.
68046
68047 2000-07-31  Jim Meyering  <meyering@lucent.com>
68048
68049         * lib/xmalloc.c: Use `virtual memory exhausted', not
68050         `Memory exhausted'.
68051         * lib/obstack.c (print_and_abort): Likewise.
68052
68053 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68054
68055         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68056         buffer, so that the caller can always quote one small
68057         component of a "memory exhausted" message in slot 0.
68058         From a suggestion by Jim Meyering.
68059
68060 2000-07-30  Jim Meyering  <meyering@lucent.com>
68061
68062         * lib/makepath.c (make_path): Quote the other instance, too.
68063
68064         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68065         (STATIC_BUF_SIZE): Define.
68066         (quotearg_n_options): Use only statically allocated storage when
68067         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68068         than STATIC_BUF_SIZE.
68069
68070 2000-07-29  Jim Meyering  <meyering@lucent.com>
68071
68072         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68073         * lib/dirname.c (dir_name): Likewise.
68074
68075         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68076         `/'.
68077
68078         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68079         (dir_name): Assert that there are no trailing slashes.
68080
68081 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68082
68083         * lib/mbswidth.h (mbswidth): Add a flags argument.
68084         (mbswidth): New declaration.
68085         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68086         * lib/mbswidth.c (mbswidth): Add a flags argument.
68087         (mbsnwidth): New function.
68088
68089 2000-07-24  Jim Meyering  <meyering@lucent.com>
68090
68091         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68092
68093 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68094
68095         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68096
68097 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68098
68099         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68100         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68101         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68102         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68103         invoke multibyte primitives.
68104
68105 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68106
68107         * lib/quotearg.c:
68108         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68109         so that mbstate_t is always defined.
68110
68111         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68112         be 1 in at least one GCC installation, and this configuration
68113         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68114         performance on hosts that have mbrtowc but have only unibyte
68115         locales, but I assume these hosts are rare.
68116
68117 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68118
68119         * lib/mbswidth.c (_XOPEN_SOURCE):
68120         Don't define; this causes problems on Solaris 7.
68121         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68122
68123 2000-07-23  Jim Meyering  <meyering@lucent.com>
68124
68125         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68126         too: getgrgid, getpwuid, getuid.
68127
68128 2000-07-23  Jim Meyering  <meyering@lucent.com>
68129
68130         * lib/basename.c (base_name): Add an assertion.
68131
68132 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68133
68134         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68135         shadow its mbsinit function.
68136
68137 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68138
68139         * lib/mbswidth.h: New file.
68140         * lib/mbswidth.c: New file.
68141         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68142         (noinst_HEADERS): Add mbswidth.h.
68143
68144 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68145
68146         * lib/config.charset: Add support for FreeBSD. Improve support for
68147         HP-UX and IRIX 6.
68148
68149 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68150
68151         * m4/mbswidth.m4: New file.
68152         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68153
68154 2000-07-15  Jim Meyering  <meyering@lucent.com>
68155
68156         * lib/makepath.c: Include quote.h.
68157         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68158         corresponding argument in a `quote (...)' call.
68159         Give better diagnostics.
68160
68161         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68162         (noinst_HEADERS): Add quote.h.
68163
68164         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68165         from tar's src/misc.c.
68166         * lib/quote.h: New file.  Prototypes for same.
68167
68168 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68169
68170         From a suggestion by Bruno Haible.
68171         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68172         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68173         to decide whether to define the BeOS workaround macro;
68174         this adjusts to the change to AC_MBSTATE_T.
68175
68176 2000-07-14  Jim Meyering  <meyering@lucent.com>
68177
68178         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68179         jm_AC_TYPE_UINTMAX_T.
68180
68181 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68182
68183         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68184
68185         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68186         quotearg_buffer_restyled): Add support for
68187         clocale_quoting_style.  Undo previous change to
68188         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68189         and "{RIGHT QUOTATION MARK}" msgids.
68190
68191 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68192
68193         From a suggestion by Bruno Haible.
68194         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68195         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68196         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68197         and mbstate_t, to a single-part test that simply defines mbstate_t.
68198         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68199         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68200
68201 2000-07-10  Jim Meyering  <meyering@lucent.com>
68202
68203         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68204
68205         * m4/gnu-source.m4: Output to confdefs.h directly.
68206         Suggestion from Akim Demaille.
68207
68208 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68209
68210         The old behavior of quoting `like this' doesn't look good with
68211         newer, ISO-style fonts.  See:
68212         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68213
68214         Instead, quote "like this" by default.  Let the translator
68215         tailor the locale-specific quoting behavior by providing
68216         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68217
68218         * lib/quotearg.c (N_): New macro.
68219         (gettext_default): New function.
68220         (quotearg_buffer_restyled): Use
68221         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68222         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68223
68224 2000-07-09  Jim Meyering  <meyering@lucent.com>
68225
68226         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68227         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68228
68229         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68231
68232 2000-07-09  Jim Meyering  <meyering@lucent.com>
68233
68234         * lib/Most files: Update copyright dates to include 2000.
68235
68236 2000-07-08  Jim Meyering  <meyering@lucent.com>
68237
68238         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68239         if not defined.
68240         (xgethostname): Remove now-unnecessary #ifdef.
68241         Move declaration of `err' into loop where it's used.
68242
68243 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68244         and Bruno Haible  <haible@clisp.cons.org>
68245
68246         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68247         only if the test for an object-type mbstate_t fails.  This
68248         prevents us from mistakenly reporting that mbstate_t is a
68249         system object type after we "#define mbstate_t int" to work
68250         around its lack.
68251
68252 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68253         and Bruno Haible  <haible@clisp.cons.org>
68254
68255         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68256
68257 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68258
68259         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68260         to strerror_r.
68261         Include <ctype.h> for use of isalpha.
68262
68263 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68264
68265         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68266         by allocating a larger buffer. Test the gethostname return value for
68267         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68268         returns an error and ENAMETOOLONG isn't defined.
68269
68270 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68271
68272         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68273         dimension.
68274
68275 2000-07-04  Jim Meyering  <meyering@lucent.com>
68276
68277         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68278         of the deprecated AC_CHECKING.
68279
68280 2000-07-04  Jim Meyering  <meyering@lucent.com>
68281
68282         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68283         Reported by Bruno Haible.
68284
68285 2000-07-04  Jim Meyering  <meyering@lucent.com>
68286
68287         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68288         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68289         lacks mbrtowc.
68290
68291 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68292
68293         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68294         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68295
68296 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68297         and Bruno Haible  <haible@clisp.cons.org>
68298
68299         * lib/quotearg.c (mbrtowc):
68300         Assign to *pwc, and return 1 only if result is nonzero.
68301         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68302
68303 2000-07-03  Jim Meyering  <meyering@lucent.com>
68304
68305         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68306
68307 2000-07-03  Jim Meyering  <meyering@lucent.com>
68308
68309         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68310         This is necessary to get a definition of e.g., UTMP_FILE on
68311         HP-UX 10.20.
68312         From Bob Proulx.
68313
68314 2000-07-02  Jim Meyering  <meyering@lucent.com>
68315
68316         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68317
68318         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68319         AC_LIBOBJ(function_name).
68320         * m4/chown.m4: Likewise.
68321         * m4/fnmatch.m4: Likewise.
68322         * m4/ftruncate.m4: Likewise.
68323         * m4/getgroups.m4: Likewise.
68324         * m4/getline.m4: Likewise.
68325         * m4/group-member.m4: Likewise.
68326         * m4/jm-macros.m4: Likewise.
68327         * m4/lstat.m4: Likewise.
68328         * m4/malloc.m4: Likewise.
68329         * m4/memcmp.m4: Likewise.
68330         * m4/nanosleep.m4: Likewise.
68331         * m4/putenv.m4: Likewise.
68332         * m4/realloc.m4: Likewise.
68333         * m4/regex.m4: Likewise.
68334         * m4/stat.m4: Likewise.
68335         * m4/strftime.m4: Likewise.
68336
68337 2000-07-02  Jim Meyering  <meyering@lucent.com>
68338
68339         * lib/quotearg.c (mbstate_t): Don't define here.
68340
68341 2000-07-02  Jim Meyering  <meyering@lucent.com>
68342
68343         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68344
68345 2000-07-01  Jim Meyering  <meyering@lucent.com>
68346
68347         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68348
68349 2000-07-01  Jim Meyering  <meyering@lucent.com>
68350
68351         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68352         problem.
68353
68354 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68355
68356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68357         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68358
68359 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68360
68361         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68362         per change in ../m4/ls-mntd-fs.m4.
68363         (read_filesystem_list): Ignore symbolic links.
68364
68365 2000-06-29  Jim Meyering  <meyering@lucent.com>
68366
68367         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68368         for declaration of strcmp.
68369
68370         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68371
68372         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68373         Avoid warning by casting result to `char *' to remove `const'.
68374
68375 2000-06-28  Jim Meyering  <meyering@lucent.com>
68376
68377         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68378         included by quotearg.c, for which we perform this test.  From
68379         Bruno Haible.
68380
68381 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68382
68383         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68384         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68385         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68386
68387 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68388
68389         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68390
68391 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68392
68393         savedir now sets errno on failure and invokes xmalloc to get memory.
68394         Fix a couple of other minor bugs while we're at it.
68395
68396         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68397         (NAMLEN): Remove macro.
68398         (malloc, realloc): Remove decls.
68399         (stpcpy): Likewise.
68400         ("xalloc.h"): Include.
68401         (NAME_SIZE_DEFAULT): New macro.
68402         (savedir): Use xmalloc / xrealloc to allocate memory.
68403         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68404         Skip "" directory entries.
68405         Use strlen to calculate directory entry length, since the old method
68406         is rarely used these days and isn't worth supporting.
68407         Don't use a pointer after freeing it.
68408         Check for integer overflow when calculating allocation size.
68409         Use memcpy to copy entries, instead of stpcpy.
68410         Set errno properly when returning NULL.
68411         Check for readdir error.
68412
68413 2000-06-26  Jim Meyering  <meyering@lucent.com>
68414
68415         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68416
68417 2000-06-25  Jim Meyering  <meyering@lucent.com>
68418
68419         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68420         Linux header bug when _XOPEN_SOURCE is defined to 500.
68421
68422 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68423
68424         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68425         deficiency.
68426
68427 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68428
68429         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68430         Include xalloc.h.
68431         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68432
68433 2000-06-24  Jim Meyering  <meyering@lucent.com>
68434
68435         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68436         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68437         for which strerror does return char*, but which lacks a conveniently
68438         accessible declaration of the function.  If the compile-test says
68439         strerror_r doesn't work, then resort to a `run'-test that works on
68440         BeOS and segfaults on DEC Unix.
68441
68442 2000-06-24  Jim Meyering  <meyering@lucent.com>
68443
68444         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68445
68446 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68447
68448         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68449         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68450
68451 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68452
68453         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68454         (mbrtowc, mbstate_t): Define substitutes if
68455         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68456         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68457         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68458
68459 2000-06-23  Jim Meyering  <meyering@lucent.com>
68460
68461         * m4/afs.m4: Add missing AC_MSG_RESULT.
68462         Reported by Bruno Haible.
68463
68464         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68465         Suggestion from Bruno Haible.
68466
68467 2000-06-23  Jim Meyering  <meyering@lucent.com>
68468
68469         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68470
68471 2000-06-21  Jim Meyering  <meyering@lucent.com>
68472
68473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68474
68475 2000-06-21  Jim Meyering  <meyering@lucent.com>
68476
68477         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68478         (noinst_HEADERS): Add getstr.h.
68479
68480         * lib/getline.c (getstr): Move into a separate file.
68481         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68482         the following changes: new parameter, delim2; both delim[12]
68483         parameters have type `int', not `char'.  The latter would lose
68484         with 8-bit delimiters.
68485         * lib/getstr.h: New file.
68486
68487 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68488
68489         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68490         than 1024, return a memory chunk of least possible size, instead
68491         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68492         Use free/xmalloc instead of xrealloc to avoid copying for very long
68493         paths.
68494
68495 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68496
68497         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68498         the empty string.
68499
68500 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68501
68502         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68503         address, not strdup.  Include <stdlib.h> and don't declare free().
68504
68505 2000-06-19  Jim Meyering  <meyering@lucent.com>
68506
68507         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68508
68509 2000-06-18  Jim Meyering  <meyering@lucent.com>
68510
68511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68512
68513         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68514         `checking whether...' message to be consistent with that of the
68515         lstat test.
68516
68517 2000-06-18  Jim Meyering  <meyering@lucent.com>
68518
68519         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68520         Besides, these days every porting target provides a mkdir function.
68521
68522         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68523         needed. (this snippet comes from src/system.h).
68524
68525 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68526
68527         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68528
68529 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68530
68531         * lib/human.c (adjust_value): New function.
68532         (human_readable_inexact): Apply rounding style even when
68533         printing approximate values.
68534
68535 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68536
68537         * lib/human.c (human_readable_inexact): Allow an input block
68538         size that is not a multiple of the output block size, and vice versa.
68539         Reported by Piergiorgio Sartor.
68540
68541 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68542
68543         * lib/getdate.y (get_date): Apply relative times after time
68544         zone indicator, not before.  Reported by Todd A. Jacobs.
68545
68546 2000-06-13  Jim Meyering  <meyering@lucent.com>
68547
68548         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68549
68550         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68551
68552 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68553
68554         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68555
68556 2000-06-12  Jim Meyering  <meyering@lucent.com>
68557
68558         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68559         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68560         optional argument.
68561         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68562         the optional argument, `lib'.
68563
68564 2000-06-08  Jim Meyering  <meyering@lucent.com>
68565
68566         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68567
68568 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68569
68570         Rewrite largefile configuration so that we don't need to run
68571         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68572         AC_CANONICAL_HOST in configure.in -- jmm]
68573
68574         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68575         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68576         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68577         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68578         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68579         All uses changed.
68580         Instead of inspecting the output of getconf, try to compile the
68581         test program without and with the macro definition.
68582         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68583         for getconf.  Instead, check for the needed flags by compiling
68584         test programs.
68585
68586 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68587
68588         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68589
68590 2000-06-04  Jim Meyering  <meyering@lucent.com>
68591
68592         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68593         SunOS 4.1.4 for which gid_t is an unsigned type.
68594
68595 2000-06-03  Jim Meyering  <meyering@lucent.com>
68596
68597         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68598         now that autoconf requires that.
68599
68600         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68601         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68602         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68603
68604 2000-06-03  Jim Meyering  <meyering@lucent.com>
68605
68606         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68607
68608 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68609
68610         * m4/glibc21.m4: New file.
68611         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68612
68613 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68614
68615         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68616         newer, don't install charset.alias.
68617         * lib/config.charset: Change the Linux/glibc rules so they become empty
68618         on glibc-2.1 or newer.
68619
68620 2000-06-02  Jim Meyering  <meyering@lucent.com>
68621
68622         * lib/mountlist.c: Back out last change.  Instead, do this...
68623         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68624         me_dummy member using the same `ignore'-testing code.
68625         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68626         fs_type strings.
68627         From Mark D. Roth.
68628
68629 2000-05-29  Jim Meyering  <meyering@lucent.com>
68630
68631         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68632         mounts with the `ignore' attribute.  Based on a patch from
68633         Mark D. Roth.
68634
68635 2000-05-28  Jim Meyering  <meyering@lucent.com>
68636
68637         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68638         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68639         * m4/stat.m4: Likewise.
68640         * m4/lstat.m4: Likewise.
68641         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68642
68643         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68644         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68645
68646 2000-05-26  Jim Meyering  <meyering@lucent.com>
68647
68648         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68649
68650 2000-05-24  Jim Meyering  <meyering@lucent.com>
68651
68652         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68653         autoconf requires that.
68654         * m4/lib-check.m4: Likewise.
68655         * m4/jm-macros.m4: Likewise.
68656         * m4/strftime.m4: Likewise.
68657
68658         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68659         AC_CHECK_DECLS, now that autoconf requires that.
68660
68661 2000-05-22  Jim Meyering  <meyering@lucent.com>
68662
68663         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68664         * m4/lstat.m4: Likewise.
68665
68666 2000-05-22  Jim Meyering  <meyering@lucent.com>
68667
68668         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68669
68670 2000-05-20  Jim Meyering  <meyering@lucent.com>
68671
68672         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68673         (jm_PREREQ): Use it.
68674
68675 2000-05-18  Jim Meyering  <meyering@lucent.com>
68676
68677         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68678         back, too, since it may have been modified by allocate_entry.
68679         (hash_delete): Rewrite to use neither the assignment operator
68680         nor the comma operator in an if-expression.
68681
68682 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68683
68684         * lib/closeout.c:
68685         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68686         Remove; no longer needed.
68687         "quotearg.h": Add include.
68688         (file_name): Do not bother to explicitly initialize to NULL; it's less
68689         efficient on some hosts.
68690         (close_stdout_status): Remove test as to whether stdout was already
68691         closed; it breaks for the case "echo x | sort >&-".
68692         Quote file name colons.
68693         Do not assume that _("write error") lacks format strings.
68694
68695 2000-05-15  Jim Meyering  <meyering@lucent.com>
68696
68697         * lib/version-etc.c (version_etc_copyright): Update the copyright
68698         string used in all --version output.
68699
68700 2000-05-14  Jim Meyering  <meyering@lucent.com>
68701
68702         * lib/closeout.c (close_stdout_set_file_name): New function.
68703         (close_stdout_status): Use new file-scoped global.
68704         Return right away if fstat says the stdout file descriptor is invalid.
68705         * lib/closeout.h (close_stdout_set_file_name): Declare.
68706
68707 2000-05-10  Jim Meyering  <meyering@lucent.com>
68708
68709         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68710         (close_stdout_set_status): New function.
68711         * lib/closeout.h (close_stdout_set_status): Declare.
68712
68713 2000-05-09  Jim Meyering  <meyering@lucent.com>
68714
68715         * m4/gettext.m4: Rename this...
68716         * m4/libintl.m4: ...to this.
68717
68718 2000-05-08  Jim Meyering  <meyering@lucent.com>
68719
68720         * lib/long-options.c: Don't include closeout.h.
68721         (parse_long_options): Don't call close_stdout for --version.
68722
68723 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68724
68725         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68726         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68727         2.1.3 bug.  This avoids a clash when files like regex.c define
68728         _GNU_SOURCE.
68729
68730 2000-05-06  Jim Meyering  <meyering@lucent.com>
68731
68732         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68733         (AC_REPLACE_FUNCS): Add strnlen.
68734
68735         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68736         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68737
68738         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68739         AC_SEARCH_LIBS call for nanosleep.
68740         (LIB_NANOSLEEP): Set and AC_SUBST.
68741
68742 2000-05-06  Jim Meyering  <meyering@lucent.com>
68743
68744         * lib/strnlen.c: Undefine __strnlen and strnlen.
68745         [!weak_alias]: Define __strnlen to strnlen.
68746
68747         * lib/atexit.c: New file, from libiberty.
68748
68749 2000-05-06  Jim Meyering  <meyering@lucent.com>
68750
68751         * lib/closeout.c (close_stdout_status): Also check for errors on the
68752         stderr stream.
68753
68754 2000-05-05  Jim Meyering  <meyering@lucent.com>
68755
68756         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68757         AC_SEARCH_LIBS call for clock_gettime.
68758         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68759
68760         * m4/search-libs.m4: Update from autoconf.
68761
68762         su doesn't work on Solaris 2.6.
68763         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68764         <shadow.h>.  Reported by Dragos Harabor.
68765
68766 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68767
68768         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68769         memcpy instead of xmalloc, xrealloc, path_concat.
68770         (locale_charset): Treat empty environment variables as absent.
68771         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68772
68773 2000-05-04  Jim Meyering  <meyering@lucent.com>
68774
68775         * lib/getopt.c: Update from glibc.
68776         * lib/obstack.c: Likewise.
68777         * lib/obstack.h: Likewise.
68778         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68779         file
68780
68781         * lib/regex.h: Likewise.
68782         * lib/strndup.c: Likewise.
68783         * lib/strnlen.c: New file, from glibc.
68784
68785 2000-05-03  Jim Meyering  <meyering@lucent.com>
68786
68787         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68788
68789 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68790
68791         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68792         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68793         compile-time test, rather than inspecting host and OS, to
68794         decide whether to define _LARGEFILE_SOURCE.
68795
68796 2000-05-01  Jim Meyering  <meyering@lucent.com>
68797
68798         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68799
68800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68801         Based on a patch from Bruno Haible.
68802
68803 2000-05-01  Jim Meyering  <meyering@lucent.com>
68804
68805         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68806
68807 2000-04-29  Jim Meyering  <meyering@lucent.com>
68808
68809         * lib/path-concat.c: Declare strdup only if it's not defined.
68810         * lib/canon-host.c: Likewise.
68811
68812 2000-04-28  Jim Meyering  <meyering@lucent.com>
68813
68814         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68815         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68816         is included first, then limits.h is included by locale.h by libintl.h.
68817         From John David Anglin.
68818
68819 2000-04-25  Jim Meyering  <meyering@lucent.com>
68820
68821         * lib/makepath.c (S_IRWXUGO): Define.
68822         (make_path): Always perform explicit chmod if MODE specifies any
68823         of the `special' permission bits.  Prompted by a bug report against
68824         install from Mate Wierdl and Joost van Baal.
68825
68826 2000-04-18  Jim Meyering  <meyering@lucent.com>
68827
68828         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68829         (jm_PREREQ): Use it.
68830
68831 2000-04-18  Jim Meyering  <meyering@lucent.com>
68832
68833         * lib/README: New file.
68834
68835         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68836         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68837
68838 2000-04-17  Jim Meyering  <meyering@lucent.com>
68839
68840         Get it right :-)
68841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68842         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68843         Suggestion from Akim Demaille.
68844
68845 2000-04-17  Jim Meyering  <meyering@lucent.com>
68846
68847         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68848         the definition of it to rpl_strftime also defined-away the system's
68849         declaration.
68850
68851 2000-04-15  Jim Meyering  <meyering@lucent.com>
68852
68853         Use `C' to denote so-called `contiguous' files, the same way
68854         that tar does.
68855         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68856         (ftypelet): Use S_ISCTG.
68857         From Michael Deutschmann.
68858
68859 2000-04-14  Jim Meyering  <meyering@lucent.com>
68860
68861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68862         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68863         clobbered.
68864
68865 2000-04-14  Jim Meyering  <meyering@lucent.com>
68866
68867         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68868
68869 2000-04-13  Jim Meyering  <meyering@lucent.com>
68870
68871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68872         AH_VERBATIM to insert required #ifndef into config.h.in.
68873         Suggestion from Akim Demaille.
68874
68875 2000-04-12  Jim Meyering  <meyering@lucent.com>
68876
68877         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68878         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68879         Christian Krackowizer.
68880
68881         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68882         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68883         (AC_SYS_LARGEFILE): Require.
68884         (AM_C_PROTOTYPES): Require.
68885
68886 2000-04-08  Jim Meyering  <meyering@lucent.com>
68887
68888         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68889         names don't conflict.  Reported by Eli Zaretskii.
68890
68891 2000-04-07  Jim Meyering  <meyering@lucent.com>
68892
68893         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68894         sys/types.h, to work around system header problems on AIX 3.2.5.
68895         From Bruno Haible.
68896
68897 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68898
68899         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68900         bug.  Deal with the different error behavior of Irix iconv.
68901
68902 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68903
68904         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68905         IRIX if the installer said otherwise.
68906
68907 2000-04-05  Jim Meyering  <meyering@lucent.com>
68908
68909         Portability tweaks required for ultrix4.3.
68910         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68911         (jm_CHECK_DECLS): Add getutent to the list of functions.
68912         (_jm_DECL_HEADERS): Add utmpx.h.
68913         From John David Anglin.
68914
68915         * m4/strftime.m4: Back out the 2000-04-02 change.
68916         Instead of that change, simply undefine putenv in the test program.
68917
68918 2000-04-05  Jim Meyering  <meyering@lucent.com>
68919
68920         Portability tweaks required for ultrix4.3.
68921         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68922         getutent.
68923         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68924         * lib/canon-host.c: Declare strdup.
68925         * lib/path-concat.c: Likewise.
68926         From John David Anglin.
68927
68928 2000-04-04  Jim Meyering  <meyering@lucent.com>
68929
68930         Be more DOS 8.3-friendly.
68931         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68932         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68933         * lib/Makefile.am: Reflect renaming.
68934         Reported by Eli Zaretskii.
68935
68936         Use a temporary file name that won't clash with `charset.alias'
68937         in the DOS 8.3 name space.
68938         * lib/Makefile.am (charset_tmp): Define.
68939         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68940         (uninstall-local): Likewise.
68941         Reported by Eli Zaretskii.
68942
68943 2000-04-03  Jim Meyering  <meyering@lucent.com>
68944
68945         * m4/gettext.m4: Fix typo in comment.
68946
68947         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68948         textutils/configure.in).  Suggestion from Paul Eggert.
68949         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68950
68951 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68952
68953         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68954         variable in the shell rather than using putenv, which isn't
68955         portable.  This avoids the configure-time inter-test dependency
68956         on the potentially-renamed putenv function.
68957
68958 2000-03-30  Paul Eggert  <eggert@twinsun.com>
68959
68960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
68961         before checking struct stat.st_blksize, so that
68962         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
68963
68964 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68965
68966         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
68967         since strftime.c uses HAVE_STRFTIME to decide whether to use
68968         the underlying strftime.
68969
68970 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68971
68972         * lib/time/strftime.c (my_strftime): Make sure we call the system
68973         strftime, not ourselves, when invoking the underlying strftime.
68974
68975 2000-03-24  Jim Meyering  <meyering@lucent.com>
68976
68977         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
68978         (charset_alias): Define.
68979         (install-exec-local): Factor out common code.
68980         (uninstall-local): Split lines longer than 80.
68981         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
68982         (SUFFIXES): Define.
68983         (.sed.in.sed): New rule.  Don't redirect directly to $@.
68984         (CLEANFILES): Add ref-add.sed and ref-del.sed.
68985
68986 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
68987
68988         * lib/config.charset: Output a line containing "Packages using this
68989         file".
68990         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
68991         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
68992         ref-del.sed): New rules.
68993
68994 2000-03-17  Jim Meyering  <meyering@lucent.com>
68995
68996         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
68997         Otherwise, include <strings.h>
68998
68999 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69000
69001         * lib/unicodeio.c (utf8_wctomb): New function.
69002         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69003         format instead of in UCS-4 with platform dependent endianness.
69004
69005 2000-03-10  Jim Meyering  <meyering@lucent.com>
69006
69007         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69008         From Marco Franzen.
69009
69010 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69011
69012         * lib/savedir.c (savedir): Work even if directory size is
69013         negative; this can happen with some screwy NFS configurations.
69014
69015 2000-03-06  Jim Meyering  <meyering@lucent.com>
69016
69017         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69018         if it's NULL (because we ran out of memory).  From Bruno Haible.
69019
69020 2000-03-05  Jim Meyering  <meyering@lucent.com>
69021
69022         * lib/localcharset.c ("path-concat.h"): Include.
69023         (get_charset_aliases): Use path_concat instead of ANSI string
69024         concatenation.
69025
69026         * lib/unicodeio.h (PARAMS): Define.
69027         Use it to guard prototype.
69028
69029 2000-03-04  Jim Meyering  <meyering@lucent.com>
69030
69031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69032         for lib/localcharset.c.
69033
69034 2000-03-04  Jim Meyering  <meyering@lucent.com>
69035
69036         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69037         installing into it.
69038         (uninstall-local): Uncomment this rule so `make distcheck' works
69039         once again.
69040
69041         * lib/unicodeio.c (<errno.h>): Include it.
69042         (errno): Declare if not defined.
69043
69044         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69045
69046         * lib/config.charset: New version, incorporating remarks from a linux
69047         i18n mailing list.  From Bruno Haible.
69048
69049 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69050
69051         * m4/codeset.m4: New file.
69052         * m4/iconv.m4: New file.
69053         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69054
69055 2000-03-03  Jim Meyering  <meyering@lucent.com>
69056
69057         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69058
69059 2000-03-02  Jim Meyering  <meyering@lucent.com>
69060
69061         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69062         the messages come out on separate lines.
69063
69064         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69065         rather than jm_CHECK_DECLARATIONS.
69066         * m4/decl.m4: Remove now-unused file.
69067
69068         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69069         geteuid.
69070
69071 2000-03-02  Jim Meyering  <meyering@lucent.com>
69072
69073         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69074
69075 2000-03-01  Jim Meyering  <meyering@lucent.com>
69076
69077         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69078         * lib/unicodeio.c: Likewise.
69079
69080 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69081
69082         * lib/config.charset: New file.
69083         * lib/localcharset.c: New file.
69084         * lib/unicodeio.h, lib/unicodeio.c: New files.
69085         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69086         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69087         (noinst_HEADERS): Add unicodeio.h.
69088         (all-local, install-exec-local, charset.alias): New targets.
69089
69090 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69091
69092         * lib/quotearg.c (ALERT_CHAR): New macro.
69093         (quotearg_buffer_restyled): Use it.
69094
69095 2000-02-27  Jim Meyering  <meyering@lucent.com>
69096
69097         * m4/check-decl.m4: Add getenv to the list.
69098
69099 2000-02-27  Jim Meyering  <meyering@lucent.com>
69100
69101         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69102         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69103
69104         * lib/backupfile.c: Guard inclusion of stdlib.h with
69105         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69106         Declare malloc if needed.
69107
69108         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69109         `#ifndef HAVE_DECL..'
69110         now that autoconf always defines the HAVE_DECL_ symbols.
69111         * lib/human.c: Likewise.
69112         * lib/same.c: Likewise.
69113         * lib/strtoumax.c: Likewise.
69114
69115         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69116         declaration check was not run.
69117         * lib/hash.c: Likewise.
69118         * lib/human.c: Likewise.
69119         * lib/same.c: Likewise.
69120         * lib/strtoumax.c: Likewise.
69121
69122         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69123         `.', then first look up the entire `.'-containing string as a login
69124         name.
69125
69126 2000-02-23  Jim Meyering  <meyering@lucent.com>
69127
69128         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69129         in place of my hack.
69130
69131 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69132
69133         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69134         (textint): New typedef.
69135         (parser_control): Member year changed from int to textint.
69136         All uses changed.
69137         (YYSTYPE): Removed; replaced by %union with int and textint members.
69138         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69139         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69140         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69141         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69142         (date, number, to_year): Use width of number in digits, not its value,
69143         to determine whether it's a 2-digit year, or a 2-digit time.
69144         (yylex): Store number of digits of numeric tokens.
69145         Reported by John Kendall.
69146
69147         (parser_control): Changed from struct parser_control to typedef (for
69148         consistency).  All uses changed.
69149
69150         (tID): Removed; not used.
69151         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69152
69153 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69154
69155         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69156         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69157
69158 2000-02-12  Jim Meyering  <meyering@lucent.com>
69159
69160         * lib/userspec.c (ISDIGIT): Define it.
69161         (isdigit): Remove definition.
69162         (is_number): Use ISDIGIT, not isdigit.
69163         <libintl.h>: Include.
69164         (_ and N_): Define.
69165         (parse_user_spec): Mark translatable strings.
69166
69167 2000-02-10  Jim Meyering  <meyering@lucent.com>
69168
69169         With these changes, nanosleep.[ch] are finally enough like the other
69170         lib/* replacement files to compile on a few more losing systems.
69171
69172         * lib/nanosleep.h: Don't include config.h.
69173         Remove prototype from declaration of nanosleep.
69174         (PARAMS): Remove now-unneeded definition.
69175         * lib/nanosleep.c: #undef nanosleep.
69176         (rpl_nanosleep): Rename from nanosleep.
69177
69178 2000-02-10  Jim Meyering  <meyering@lucent.com>
69179
69180         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69181         gnu_nanosleep to rpl_nanosleep.
69182
69183 2000-02-09  Jim Meyering  <meyering@lucent.com>
69184
69185         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69186         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69187
69188 2000-02-08  Akim Demaille  <akim@epita.fr>
69189
69190         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69191         `[' and `]' and remove uses of `changequote'.
69192         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69193         (AC_SYS_LARGEFILE): Likewise.
69194         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69195         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69196         of changequote.
69197         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69198         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69199         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69200         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69201
69202 2000-02-05  Jim Meyering  <meyering@lucent.com>
69203
69204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69205         Remove explicit use of AC_HEADER_TIME.  It is required by
69206         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69207         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69208         in autoconf whereby the expansion of the latter ended up preceding
69209         the expansion of its prerequisite, AC_HEADER_TIME.
69210         Reported by Volker Borchert.
69211
69212 2000-02-03  Jim Meyering  <meyering@lucent.com>
69213
69214         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69215
69216 2000-02-03  Jim Meyering  <meyering@lucent.com>
69217
69218         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69219         rather than with `#if HAVE_UTMPNAME'.
69220
69221 2000-02-02  Jim Meyering  <meyering@lucent.com>
69222
69223         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69224         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69225         Reported by Eli Zaretskii.
69226
69227 2000-02-01  Jim Meyering  <meyering@lucent.com>
69228
69229         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69230
69231 2000-01-31  Jim Meyering  <meyering@lucent.com>
69232
69233         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69234         functions.  Add the time.h and sys/time.h headers along with the
69235         AC_REQUIRE'ment of AC_HEADER_TIME.
69236
69237 2000-01-31  Jim Meyering  <meyering@lucent.com>
69238
69239         * lib/nanosleep.h (nanosleep): Guard declaration with
69240         `#if ! HAVE_DECL_NANOSLEEP'.
69241         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69242         the declaration in that vendor's sys/timers.h.
69243         Reported by Christian Krackowizer.
69244
69245         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69246         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69247         (ISPRINT): Likewise.
69248         Reported by Tom Tromey.
69249
69250 2000-01-30  Jim Meyering  <meyering@lucent.com>
69251
69252         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69253
69254         * m4/prereq.m4 (utmp_includes): Define.
69255         Check for ut_user and ut_name members in both struct utmpx
69256         and struct utmp.
69257
69258 2000-01-30  Jim Meyering  <meyering@lucent.com>
69259
69260         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69261         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69262         header files where only utmpx.ut_user is declared.
69263
69264         * lib/readutmp.h (UT_USER): Define.
69265
69266 2000-01-29  Jim Meyering  <meyering@lucent.com>
69267
69268         * m4/lib-check.m4: New file containing library-related checks from
69269         fileutils and sh-utils (textutils had none).
69270
69271 2000-01-28  Jim Meyering  <meyering@lucent.com>
69272
69273         * m4/perl.m4: Change format of warning message to look more like that
69274         from the missing script.  Suggestion from François Pinard.
69275
69276 2000-01-25  Jim Meyering  <meyering@lucent.com>
69277
69278         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69279         well as time.h in the compile check.
69280         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69281         Fix typo in cross-compiling case: s/yes/no/.
69282
69283 2000-01-23  Jim Meyering  <meyering@lucent.com>
69284
69285         * m4/jm-macros.m4: Move df-related tests here from
69286         fileutils/configure.in
69287
69288         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69289         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69290
69291         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69292         s/space/ac_fsusage_space/.
69293         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69294
69295         * m4/ftruncate.m4: New file (derived from part of
69296         fileutils/configure.in).
69297         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69298         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69299
69300         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69301         AC_SUBST these here, rather than just in sh-util/configure.in, so
69302         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69303         all the same.
69304         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69305         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69306         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69307         (AC_SUBST(POW_LIBM)): Likewise.
69308         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69309
69310 2000-01-23  Jim Meyering  <meyering@lucent.com>
69311
69312         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69313         obstack.c.
69314
69315 2000-01-22  Jim Meyering  <meyering@lucent.com>
69316
69317         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69318
69319         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69320
69321         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69322         configure.in
69323         (AC_CHECK_HEADERS): Likewise for sh-utils.
69324         (AC_CHECK_HEADERS): Likewise for textutils.
69325         Merge the three lists of headers.
69326
69327         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69328         from fileutils' configure.in.
69329
69330         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69331         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69332         check-decl.m4.
69333
69334         * m4/check-decl.m4: Use #if rather than #ifdef.
69335         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69336         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69337         (_jm_DECL_HEADERS): Define new function.
69338         (jm_CHECK_DECLARATIONS): Require it.
69339
69340 2000-01-22  Jim Meyering  <meyering@lucent.com>
69341
69342         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69343         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69344         Required for some AIX systems.  Reported by Christian Krackowizer.
69345         [TESTING] (main): New function.
69346
69347         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69348         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69349         letters.
69350
69351         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69352         iswprint.
69353
69354         * lib/strverscmp.c (ISDIGIT): Define.
69355         (strverscmp): Use ISDIGIT, not isdigit.
69356
69357 2000-01-19  Jim Meyering  <meyering@lucent.com>
69358
69359         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69360         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69361         defines `struct timespec' in <sys/time.h>
69362
69363         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69364         Thanks to Akim for explaining.
69365
69366 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69367
69368         * lib/nanosleep.c (nanosleep):
69369         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69370         POSIX.1 doesn't require SA_INTERRUPT and some systems
69371         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69372         it's been part of POSIX.1 since day 1 (in 1988).
69373
69374 2000-01-17  Jim Meyering  <meyering@lucent.com>
69375
69376         * lib/interlock: Remove unused file.  Reported by François Pinard.
69377
69378 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69379
69380         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69381         alert, backslash, formfeed, and vertical tab unnecessarily in
69382         shell quoting style.
69383
69384 2000-01-16  Jim Meyering  <meyering@lucent.com>
69385
69386         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69387         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69388         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69389         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69390
69391 2000-01-16  Jim Meyering  <meyering@lucent.com>
69392
69393         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69394         because the latter didn't work.
69395
69396 2000-01-15  Jim Meyering  <meyering@lucent.com>
69397
69398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69399         (AC_REPLACE_FUNCS): Add memcpy and memset.
69400         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69401         Add strpbrk.
69402         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69403
69404 2000-01-12  Jim Meyering  <meyering@lucent.com>
69405
69406         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69407         (jm_PREREQ): Use it.
69408         (jm_PREREQ_READUTMP): New macro.
69409         (jm_PREREQ): Use it.
69410
69411 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69412
69413         Quote multibyte characters correctly.
69414         * m4/c-bs-a.m4: New file.
69415         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69416         (jm_PREREQ): Use it.
69417
69418 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69419
69420         * m4/uintmax_t.m4: Port to autoconf 2.13.
69421
69422 2000-01-08  Jim Meyering  <meyering@ascend.com>
69423
69424         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69425         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69426
69427 2000-01-04  Jim Meyering  <meyering@ascend.com>
69428
69429         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69430         jm_STRUCT_DIRENT_D_TYPE.
69431         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69432         jm_STRUCT_DIRENT_D_INO.
69433         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69434         jm_STRUCT_UTIMBUF.
69435         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69436         renamings.
69437         * m4/utime.m4: Likewise.
69438
69439         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69440         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69441
69442 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69443
69444         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69445         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69446
69447 2000-01-02  Jim Meyering  <meyering@ascend.com>
69448
69449         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69450         remember if this is necessary.
69451
69452 1999-12-26  Jim Meyering  <meyering@ascend.com>
69453
69454         * m4/jm-macros.m4: Use it here.
69455         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69456
69457 1999-12-23  Jim Meyering  <meyering@ascend.com>
69458
69459         * m4/jm-macros.m4: Check for clock_gettime (moved from
69460         fileutils/configure.in)
69461         Check for gettimeofday.
69462
69463 1999-12-20  Jim Meyering  <meyering@ascend.com>
69464
69465         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69466         autoconf-2.14a-1999-12-20.
69467
69468 1999-12-19  Jim Meyering  <meyering@ascend.com>
69469
69470         * m4/lstat-slash.m4: New file.
69471         * m4/jm-macros.m4: Use the new macro:
69472         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69473
69474 1999-12-07  Jim Meyering  <meyering@ascend.com>
69475
69476         * m4/perl.m4: Require that File::Compare be available, too.
69477         Too many systems seem to lack it.
69478
69479         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69480         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69481
69482 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69483
69484         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69485         problem with the QNX 4.25 shell, which doesn't propagate exit
69486         status of failed commands inside shell assignments.
69487
69488 1999-11-17  Jim Meyering  <meyering@ascend.com>
69489
69490         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69491
69492 1999-11-07  Jim Meyering  <meyering@ascend.com>
69493
69494         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69495
69496 1999-11-06  Jim Meyering  <meyering@ascend.com>
69497
69498         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69499         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69500
69501 1999-11-05  Jim Meyering  <meyering@ascend.com>
69502
69503         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69504         configure.in of textutils, fileutils, and sh-utils into this one
69505         (shared between those packages) file.
69506         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69507         AC_STRUCT_ST_BLKSIZE.
69508
69509 1999-11-03  Jim Meyering  <meyering@ascend.com>
69510
69511         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69512         of AC_CHECK_TYPE checks includes unistd.h.
69513         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69514         Suggestion from Akim Demaille.
69515
69516 1999-10-30  Jim Meyering  <meyering@ascend.com>
69517
69518         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69519         m4-quoted string.
69520         * m4/ls-mntd-fs.m4: Likewise.
69521         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69522         * m4/jm-winsz1.m4: Likewise.
69523
69524         * m4/const.m4: Remove file, since the fix made it into the experimental
69525         version of autoconf.
69526         * m4/mktime.m4: Likewise.
69527
69528         * m4/check-type.m4: Remove file, now that the latest version of
69529         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69530
69531         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69532         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69533         AC_CHECK_TYPE.
69534
69535 1999-10-04  Jim Meyering  <meyering@ascend.com>
69536
69537         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69538
69539 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69540
69541         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69542         2.95.1 bug with HP-UX 10.20.
69543
69544 1999-09-17  Jim Meyering  <meyering@ascend.com>
69545
69546         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69547         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69548         due to missing strdup (against sh-utils-2.0).
69549
69550 1999-08-29  Jim Meyering  <meyering@ascend.com>
69551
69552         * m4/jm-macros.m4: Require jm_BISON.
69553         * m4/bison.m4: New file.
69554
69555 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69556
69557         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69558         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69559
69560 1999-08-05  Jim Meyering  <meyering@ascend.com>
69561
69562         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69563         to avoid conflicts with `conftest' on 8+3 filesystems.
69564         Suggestion from Eli Zaretskii.
69565
69566 1999-08-04  Jim Meyering  <meyering@ascend.com>
69567
69568         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69569         fileutils and sh-utils (textutils's getline test was inadequate).
69570         (AM_FUNC_GETLINE): Run this test.
69571         (AC_CHECK_FUNCS): Check for getdelim.
69572         Reported by Bob Proulx.
69573
69574 1999-08-02  Jim Meyering  <meyering@ascend.com>
69575
69576         * m4/jm-macros.m4: Add a comment.
69577
69578 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69579
69580         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69581         <inttypes.h> defines strtoumax as a macro (and not as a
69582         function).
69583
69584 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69585
69586         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69587         that we can shift, multiply and divide unsigned long long
69588         values; Ultrix cc can't do it.
69589
69590 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69591
69592         * m4/mktime.m4: New file, which is a preview of what should appear
69593         in the next public autoconf release.
69594
69595 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69596
69597         * m4/lfs.m4: Remove this file.
69598         * m4/largefile.m4: New file.  It contains the old contents of
69599         lfs.m4, except that all names with prefix AC_LFS have been
69600         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69601         compatible with future autoconf versions.  Also, some minor m4
69602         quoting problems have been fixed.
69603
69604 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69605
69606         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69607         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69608         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69609         and simplify the shell code.
69610
69611 1999-08-01  Jim Meyering  <meyering@ascend.com>
69612
69613         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69614         m4.
69615
69616 1999-07-20  Jim Meyering  <meyering@ascend.com>
69617
69618         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69619
69620 1999-07-15  Jim Meyering  <meyering@ascend.com>
69621
69622         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69623
69624 1999-05-22  Jim Meyering  <meyering@ascend.com>
69625
69626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69627
69628 1999-05-20  Jim Meyering  <meyering@ascend.com>
69629
69630         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69631         Add a colon after each `then' in case $4 is empty.
69632
69633 1999-05-16  Jim Meyering  <meyering@ascend.com>
69634
69635         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69636
69637 1999-05-10  Jim Meyering  <meyering@ascend.com>
69638
69639         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69640
69641         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69642         AC_FUNC_MKTIME.
69643
69644 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69645
69646         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69647
69648 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69649
69650         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69651         not CPPFLAGS, so that linking works correctly in IRIX.
69652
69653 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69654
69655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69656
69657 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69658
69659         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69660         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69662         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69663         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69664
69665         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69666
69667 1999-04-20  Jim Meyering  <meyering@ascend.com>
69668
69669         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69670         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69671         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69672
69673 1999-04-18  Jim Meyering  <meyering@ascend.com>
69674
69675         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69676         * m4/jm-macros.m4: Use it.
69677
69678 1999-04-06  Jim Meyering  <meyering@ascend.com>
69679
69680         * m4/strftime.m4: Remove test for %f.
69681
69682 1999-03-29  Jim Meyering  <meyering@ascend.com>
69683
69684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69685         superset of the AC_TYPE_* checks in the textutils, fileutils,
69686         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69687         AC_TYPE_PID_T.
69688
69689 1999-03-28  Jim Meyering  <meyering@ascend.com>
69690
69691         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69692         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69693         replaced e.g., in the *.sh files of the sh-utils.
69694
69695 1999-03-20  Jim Meyering  <meyering@ascend.com>
69696
69697         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69698         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69699         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69700
69701 1999-03-19  Jim Meyering  <meyering@ascend.com>
69702
69703         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69704
69705 1999-03-12  Jim Meyering  <meyering@ascend.com>
69706
69707         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69708
69709 1999-03-07  Jim Meyering  <meyering@ascend.com>
69710
69711         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69712         declared.
69713
69714 1999-02-17  Jim Meyering  <meyering@ascend.com>
69715
69716         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69717         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69718
69719 1999-02-07  Jim Meyering  <meyering@ascend.com>
69720
69721         * m4/group-member.m4: New file -- extracted from sh-utils'
69722         configure.in.
69723
69724         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69725         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69726
69727 1999-02-06  Jim Meyering  <meyering@ascend.com>
69728
69729         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69730         * m4/fnmatch.m4: Likewise.
69731         * m4/getgroups.m4: Likewise.
69732         * m4/lstat.m4: Likewise.
69733         * m4/malloc.m4: Likewise.
69734         * m4/putenv.m4: Likewise.
69735         * m4/realloc.m4: Likewise.
69736         * m4/regex.m4: Likewise.
69737         * m4/stat.m4: Likewise.
69738         * m4/strftime.m4: Likewise.
69739         Suggestion from Alain Magloire.
69740
69741         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69742         * m4/fnmatch.m4: Likewise.
69743         * m4/getgroups.m4: Likewise.
69744         * m4/getline.m4: Likewise.
69745         * m4/lstat.m4: Likewise.
69746         * m4/malloc.m4: Likewise.
69747         * m4/memcmp.m4: Likewise.
69748         * m4/putenv.m4: Likewise.
69749         * m4/realloc.m4: Likewise.
69750         * m4/regex.m4: Likewise.
69751         * m4/stat.m4: Likewise.
69752         * m4/strftime.m4: Likewise.
69753         Suggestion from Alain Magloire.
69754
69755         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69756         an argument.
69757
69758         * m4/regex.m4: Add a run-time Test for proper operation of
69759         re_compile_pattern.
69760
69761 1999-01-31  Jim Meyering  <meyering@ascend.com>
69762
69763         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69764
69765 1999-01-30  Jim Meyering  <meyering@ascend.com>
69766
69767         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69768
69769         * m4/jm-mktime.m4: Make this a wrapper around the official
69770         AM_FUNC_MKTIME rather than my private copy, now that the official one
69771         is up to date.
69772         * m4/mktime.m4: Remove file.
69773
69774         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69775         * m4/uptime.m4: Likewise.
69776         * m4/uintmax_t.m4: Likewise.
69777
69778 1999-01-28  Jim Meyering  <meyering@ascend.com>
69779
69780         * m4/jm-macros.m4: Use jm_AFS.
69781         * m4/afs.m4: New file (from fileutils' configure.in).
69782
69783         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69784         * m4/chown.m4: Likewise.
69785         * m4/d-ino.m4: Likewise.
69786         * m4/d-type.m4: Likewise.
69787         * m4/fnmatch.m4: Likewise.
69788         * m4/getgroups.m4: Likewise.
69789         * m4/gettext.m4: Likewise.
69790         * m4/jm-mktime.m4: Likewise.
69791         * m4/jm-winsz2.m4: Likewise.
69792         * m4/lcmessage.m4: Likewise.
69793         * m4/ls-mntd-fs.m4: Likewise.
69794         * m4/malloc.m4: Likewise.
69795         * m4/memcmp.m4: Likewise.
69796         * m4/putenv.m4: Likewise.
69797         * m4/realloc.m4: Likewise.
69798         * m4/st_mtim.m4: Likewise.
69799         * m4/strftime.m4: Likewise.
69800
69801 1999-01-16  Jim Meyering  <meyering@ascend.com>
69802
69803         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69804         (ARGMATCH_DIE_DECL): Define.
69805
69806 1999-01-12  Jim Meyering  <meyering@ascend.com>
69807
69808         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69809         Reported by Lars Hecking.
69810
69811 1999-01-10  Jim Meyering  <meyering@ascend.com>
69812
69813         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69814         gross kludge.
69815         * m4/inttypes_h.m4: Likewise.
69816         * m4/lstat.m4: Likewise.
69817         * m4/malloc.m4: Likewise.
69818         * m4/readdir.m4: Likewise.
69819         * m4/realloc.m4: Likewise.
69820         * m4/st_dm_mode.m4: Likewise.
69821         * m4/stat.m4: Likewise.
69822         * m4/utimbuf.m4: Likewise.
69823         * m4/utimes.m4: Likewise.
69824
69825         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69826         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69827         comments in config.h.in are meaningful.
69828
69829         * m4/jm-macros.m4: Require autoconf-2.13 here.
69830
69831         * m4/regex.m4: By default, don't use the included regex.c on systems
69832         with glibc 2.  Suggestion from Uli Drepper.
69833
69834 1999-01-02  Jim Meyering  <meyering@ascend.com>
69835
69836         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69837
69838 1998-12-18  Jim Meyering  <meyering@ascend.com>
69839
69840         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69841         Based on a suggestion from Lars Hecking.
69842
69843 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69844
69845         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69846
69847 1998-11-16  Jim Meyering  <meyering@ascend.com>
69848
69849         * m4/lfs.m4: Double-quote the `uname...` expression.
69850
69851 1998-11-14  Jim Meyering  <meyering@ascend.com>
69852
69853         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69854         * m4/stat.m4: Likewise.
69855
69856 1998-11-03  Jim Meyering  <meyering@ascend.com>
69857
69858         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69859         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69860
69861 1998-10-18  Jim Meyering  <meyering@ascend.com>
69862
69863         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69864
69865 1998-10-17  Jim Meyering  <meyering@ascend.com>
69866
69867         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69868         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69869         calls for those previously hard-coded headers.  Instead, take a new
69870         parameter.
69871         (jm_CHECK_DECLARATIONS): Reflect interface change.
69872         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69873         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69874
69875         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69876
69877 1998-10-14  Jim Meyering  <meyering@ascend.com>
69878
69879         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69880         instead of "TZ=America/Vancouver".  From Paul Eggert.
69881
69882 1998-10-11  Jim Meyering  <meyering@ascend.com>
69883
69884         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69885         This adds a test for a recently added compatibility fix for mktime.c.
69886         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69887
69888 1998-09-27  Jim Meyering  <meyering@ascend.com>
69889
69890         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69891
69892         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69893         ../configure.in, including a change from Gordon Matzigkeit to allow
69894         cross-compiling for the Hurd.
69895
69896         * m4/glibc.m4: New file/macro to test for the GNU C Library
69897         versions 1 and 2.  From Gordon Matzigkeit.
69898         Indent.
69899
69900 1998-09-21  Jim Meyering  <meyering@ascend.com>
69901
69902         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69903
69904 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69905
69906         Port nanosecond-resolution times to UnixWare 2.1.2 and
69907         pedantic Solaris 2.6.
69908
69909         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69910         AC_STRUCT_ST_MTIM.
69911         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69912         Generate name of ns member, instead of just 1 or undef.
69913         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69914
69915 1998-08-15  Jim Meyering  <meyering@ascend.com>
69916
69917         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69918         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69919         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69920         instead of jm_TYPE_SSIZE_T.
69921
69922 1998-08-12  Jim Meyering  <meyering@ascend.com>
69923
69924         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69925
69926 1998-08-02  Jim Meyering  <meyering@ascend.com>
69927
69928         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69929         in acconfig.h manually.
69930
69931 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69932
69933         * m4/st_mtim.m4: New file.
69934
69935 1998-07-28  Jim Meyering  <meyering@ascend.com>
69936
69937         * m4/utimes.m4: Undef stat.
69938
69939 1998-07-25  Jim Meyering  <meyering@ascend.com>
69940
69941         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69942         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69943
69944 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69945
69946         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69947         uid and gid actually remain unchanged.
69948
69949 1998-07-07  Jim Meyering  <meyering@ascend.com>
69950
69951         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69952
69953 1998-07-04  Jim Meyering  <meyering@ascend.com>
69954
69955         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69956         to prove that this macro can be used in packages without regex.c.
69957
69958 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69959
69960         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
69961         is to be used.
69962
69963 1998-07-03  Jim Meyering  <meyering@ascend.com>
69964
69965         * m4/gettext.m4: Add -lintl if it's found to be necessary.
69966
69967         * m4/gettext.m4: New file -- from gettext-0.10.35.
69968         * m4/lcmessage.m4: Likewise.
69969         * m4/progtest.m4: Likewise.
69970
69971         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
69972         * m4/jm-macros.m4: Require the new macro.
69973
69974 1998-06-29  Jim Meyering  <meyering@ascend.com>
69975
69976         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
69977         for the definition of NGROUPS (used in a system header included
69978         by sys/mount.h).
69979
69980 1998-06-28  Jim Meyering  <meyering@ascend.com>
69981
69982         * m4/ls-mntd-fs.m4: New file.
69983         * m4/fstypename.m4: New file.
69984
69985         * m4/jm-macros.m4: Require the new macro.
69986         * m4/jm-glibc-io.m4: New file.
69987
69988 1998-05-19  Jim Meyering  <meyering@ascend.com>
69989
69990         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
69991         * m4/lchown.m4: New file.
69992
69993         * m4/Makefile.am.in: New file.
69994         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
69995
69996 1998-05-14  Jim Meyering  <meyering@ascend.com>
69997
69998         * m4/Makefile.am (EXTRA_DIST): Add them.
69999         * m4/jm-macros.m4: New file.
70000         * m4/utimbuf.m4: New file.
70001
70002 1998-05-12  Jim Meyering  <meyering@ascend.com>
70003
70004         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70005
70006 1998-05-11  Jim Meyering  <meyering@ascend.com>
70007
70008         * m4/isc-posix.m4: New file.
70009
70010 1998-05-10  Jim Meyering  <meyering@ascend.com>
70011
70012         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70013
70014 1998-05-09  Jim Meyering  <meyering@ascend.com>
70015
70016         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70017         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70018         with automake.
70019
70020         * m4/ssize_t.m4: New file.
70021         * m4/mktime.m4: Remove file -- the new automake has this now.
70022
70023 1998-04-26  Jim Meyering  <meyering@ascend.com>
70024
70025         * m4/assert.m4: New file.
70026         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70027
70028 1998-04-05  Jim Meyering  <meyering@ascend.com>
70029
70030         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70031         (jm_PREREQ): Use it here.
70032
70033 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70034
70035         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70036         in acconfig.h.
70037
70038 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70039
70040         * m4/prereq.m4: New file.
70041         * m4/error.m4: New file.
70042         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70043
70044 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70045
70046         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70047         cache-check for the same variable -- that defeated the purpose of
70048         the test; the test program was never run.  This was a problem only
70049         on systems with losing getline functions -- HP-UX 10.20 is one.
70050         Reported by Bjorn Helgaas.
70051
70052 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70053
70054         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70055
70056 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70057
70058         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70059
70060         * m4/const.m4: New file.  Use an initializer in this declaration
70061         typedef int charset[2]; const charset x;
70062         Reported by Bob Glickstein.
70063
70064 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70065
70066         * m4/chown.m4: Fix reversed types on -1 args to chown.
70067         From Kaveh Ghazi.
70068
70069 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70070
70071         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70072         Add lseek and memchr.
70073
70074         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70075         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70076         have a 20-character limit on names.
70077
70078 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70079
70080         * m4/inttypes_h.m4: New file.
70081         * m4/uintmax_t.m4: New file.
70082         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70083
70084
70085         -----
70086
70087         Local Variables:
70088         coding: utf-8
70089         End:
70090
70091         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70092
70093         Copying and distribution of this file, with or without
70094         modification, are permitted provided the copyright notice
70095         and this notice are preserved.