fdutimensat: drop atflag validation
[gnulib.git] / ChangeLog
1 2010-09-17  Eric Blake  <eblake@redhat.com>
2
3         fdutimensat: drop atflag validation
4         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5         with valid fd, to close a race scenario where futimens is
6         unsupported and FILE was replaced by a symlink.
7         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8         accordingly.
9         Suggested by Paul Eggert.
10
11 2010-09-16  Bruno Haible  <bruno@clisp.org>
12
13         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15
16 2010-09-16  Bruno Haible  <bruno@clisp.org>
17
18         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20         login_tty exists.
21         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22
23 2010-09-16  Bruno Haible  <bruno@clisp.org>
24
25         login_tty: Make the replacement code work on BSD systems.
26         * lib/login_tty.c: Include <sys/ioctl.h>.
27         (login_tty): Use ioctl TIOCSCTTY when available.
28         * modules/login_tty (Depends-on): Add sys_ioctl.
29         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30
31 2010-09-16  Bruno Haible  <bruno@clisp.org>
32
33         login_tty: Stricter unit test.
34         * modules/login_tty-tests (Depends-on): Add tcgetsid.
35         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
36         and tcgetsid() after login_tty.
37         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
38
39 2010-09-16  Bruno Haible  <bruno@clisp.org>
40
41         New module 'tcgetsid'.
42         * lib/tcgetsid.c: New file.
43         * m4/tcgetsid.m4: New file.
44         * modules/tcgetsid: New file.
45         * modules/termios (Depends-on): Add c++defs, warn-on-use.
46         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
47         GNULIB_TCGETSID, HAVE_TCGETSID.
48         * lib/termios.in.h: Include <sys/types.h>.
49         (tcgetsid): New declaration.
50         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
51         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
52         * doc/posix-functions/tcgetsid.texi: Mention the new module.
53         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
54
55 2010-09-16  Bruno Haible  <bruno@clisp.org>
56
57         Tests for module 'termios'.
58         * modules/termios-c++-tests: New file.
59         * modules/termios-tests: New file.
60         * tests/test-termios-c++.cc: New file.
61         * tests/test-termios.c: New file.
62
63         New module 'termios'.
64         * modules/termios: New file.
65         * lib/termios.in.h: New file.
66         * m4/termios_h.m4: New file.
67         * doc/posix-headers/termios.texi: Mention the new module.
68
69 2010-09-16  Eric Blake  <eblake@redhat.com>
70
71         fdutimensat: add an atflag parameter
72         * lib/fdutimensat.c (fdutimensat): Add new parameter.
73         * lib/utimens.h (fdutimensat): Update prototype.
74         * tests/test-fdutimensat.c: Adjust test to match.
75         * NEWS: Document the change.
76         Suggested by Paul Eggert.
77
78 2010-09-16  Bruno Haible  <bruno@clisp.org>
79
80         Fix typos in comments.
81         * lib/striconveh.h: Fix typo in comment.
82         * lib/login_tty.c (login_tty): Likewise.
83
84 2010-09-15  Bruno Haible  <bruno@clisp.org>
85
86         stdlib: clarify MirBSD WEXITSTATUS bug
87         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
88         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
89
90 2010-09-15  Eric Blake  <eblake@redhat.com>
91
92         stdlib: work around MirBSD WEXITSTATUS bug
93         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
94         * modules/stdlib (Depends-on): Add sys_wait.
95         * tests/test-sys_wait.c (main): Enhance test.
96         * tests/test-stdlib.c (main): Likewise.
97         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
98
99         docs: mention MacOS issue with WEXITSTATUS(constant)
100         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
101         issue.
102         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
103
104         strnlen: add tests
105         * modules/strnlen-tests: New file.
106         * tests/test-strnlen.c: Likewise.
107
108 2010-09-14  Bruno Haible  <bruno@clisp.org>
109
110         unistr/base: Avoid link errors when module 'libunistring' is also used.
111         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
112         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
113         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
114         Declare also when HAVE_LIBUNISTRING is set.
115         Reported by Pádraig Brady <P@draigbrady.com>.
116
117 2010-09-14  Eric Blake  <eblake@redhat.com>
118
119         test-rawmemchr: make more robust
120         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
121         (Depends-on, configure.ac): Add needed prerequisites to use it.
122         * modules/memchr-tests (Files, Depends-on, configure.ac):
123         Likewise, to avoid implicit reliance on memchr module prereqs.
124         * tests/test-memchr.c (main): Ensure proper masking.
125         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
126         reads.
127
128         memchr: detect glibc Alpha bug
129         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
131         Alpha.
132         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
133         * tests/test-memchr.c (main): Enhance test.
134         Reported by Nelson H. F. Beebe.
135
136 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
137
138         fts, getcwd, glob: audit for dirfd returning -1
139         * lib/fts.c (opendir): Remove #define; no longer used.
140         (opendirat): New arg PDIR_FD.  All callers changed.
141         (fts_build, _opendir2): Use new opendirat to avoid the need for
142         dirfd, or for checking whether dirfd returns a negative value.
143         Don't use opendir; always use openat followed by fdopendir.
144         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
145         it.
146         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
147         returns -1 here.
148         * modules/fts (Depends-on): Remove dirfd.
149         * modules/getcwd (Depends-on): Likewise.
150
151 2010-09-13  Eric Blake  <eblake@redhat.com>
152
153         float: fix broken MirBSD header
154         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
155         * doc/posix-headers/float.texi (float.h): Document it.
156
157 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
158
159         fts: use O_NOFOLLOW to avoid race condition when opening a directory
160         * lib/fts.c (opendirat): New arg extra_flags.
161         (__opendir2): Use it to avoid following symlinks when opening
162         a directory, if symlinks are not supposed to be followed.  See
163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
164
165         fdopendir: preserve argument fd before returning
166         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
167         (fdopendir_with_dup, fd_clone_opendir): New static functions.
168         (fdopendir): Use them, arranging for FD to be open to the same
169         directory that it was when it started.  (It might be temporarily
170         closed while fdopendir is running, so this not thread- or
171         signal-safe.)  Be careful to do the right thing even when file
172         descriptors are scarce and dup fails with errno == EMFILE.  See
173         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
174
175 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
176
177         regex: Pass the system regex if its only problem is 32-bit regoff_t.
178         * NEWS: Document change.
179         * m4/regex.m4: Disable test for regoff_t size.
180
181 2010-09-13  Jim Meyering  <meyering@redhat.com>
182
183         fts: don't operate on an invalid file descriptor after failed dup
184         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
185         negative file descriptor.
186
187 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
188
189         savedir: add streamsavedir, deprecate fdsavedir
190         * NEWS: Mention deprecation of fdsavedir.
191         * lib/savedir.c (streamsavedir): New extern function, whose name
192         ends in "savedir" to be consistent with the others.  This differs
193         from savedirstream in that it doesn't close its argument.  The
194         next version of GNU tar will use this instead of fdsavedir, to
195         avoid some race conditions and conserve file descriptors.
196         (savedirstream): Reimplement as a wrapper around streamsavedir.
197         (fdsavedir): Add a comment deprecating this function.  As far as
198         I know, only GNU tar used it, and GNU tar doesn't need it any more.
199         * lib/savedir.h (streamsavedir): New decl.
200         (fdsavedir): Add a comment deprecating this.
201
202 2010-09-10  Bruno Haible  <bruno@clisp.org>
203
204         langinfo: Fix last commit.
205         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
206         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
208
209 2010-09-10  Bruno Haible  <bruno@clisp.org>
210
211         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
212         * lib/progreloc.c (O_EXEC): Define fallback.
213
214 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
215
216         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
217         * NEWS: Document recent changes to fcntl-h.
218         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
219         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
220         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
221         Similarly for O_SEARCH; this last was already true, but not documented.
222         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
223         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
224         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
225         Likewise.
226         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
227         is zero, not whether it is defined.
228         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
229         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
230         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
231
232 2010-09-10  Bruno Haible  <bruno@clisp.org>
233
234         langinfo, nl_langinfo: Fix for IRIX 5.3.
235         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
236         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
237         HAVE_LANGINFO_YESEXPR.
238         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
239         HAVE_LANGINFO_YESEXPR.
240         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
241         HAVE_LANGINFO_T_FMT_AMPM is 0.
242         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
243         HAVE_LANGINFO_YESEXPR is 0.
244         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
245         NOEXPR.
246         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
247         * doc/posix-functions/nl_langinfo.texi: Likewise.
248         Reported by Eric Blake.
249
250 2010-09-10  Bruno Haible  <bruno@clisp.org>
251
252         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
253         * doc/glibc-functions/login_tty.texi: Mention the include file problem
254         on FreeBSD 8.0 and OpenBSD 4.6.
255         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
256         * m4/pty_h.m4 (gl_PTY_H): Likewise.
257         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
258         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
259         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
260         ac_includes_default.
261         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
262
263 2010-09-09  Eric Blake  <eblake@redhat.com>
264
265         strsignal: work around NetBSD bug
266         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
267         * lib/string.in.h (includes): Likewise.
268         * doc/posix-functions/strsignal.texi (strsignal): Document the
269         bug.
270         Reported by Nelson H. F. Beebe.
271
272         gnulib-tool: work with NetBSD /bin/sh
273         * gnulib-tool (func_cache_var, func_cache_lookup_module)
274         (func_get_description, func_get_comment, func_get_status)
275         (func_get_notice, func_get_applicability, func_get_filelist)
276         (func_get_dependencies, func_get_autoconf_early_snippet)
277         (func_get_autoconf_snippet, func_get_automake_snippet)
278         (func_get_include_directive, func_get_link_directive)
279         (func_get_license, func_get_maintainer, func_import): Avoid
280         shell syntax errors from parsing syntax extensions.
281
282 2010-09-09  Bruno Haible  <bruno@clisp.org>
283
284         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
285         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
286         a reliable way to determine whether the 'alias' command works.
287
288 2010-09-08  Jim Meyering  <meyering@redhat.com>
289
290         init.sh: penalize a set-x-impaired shell; don't disqualify it
291         * tests/init.sh: Too many shells corrupt application stderr when
292         you set -x, so we can't afford to disqualify them, since at least
293         on Irix-6.5, that would disqualify all bourne shells.
294         Instead, use a two-pass approach.
295         On the first pass, try to find a shell that meets the stricter
296         condition that set -x does not corrupt stderr.
297         If no shell meets the stricter condition, retest each candidate
298         shell, but without that extra condition.  Finally, when
299         VERBOSE=yes is requested and set -x might cause trouble, simply
300         issue a warning and refrain from enabling debug output.
301
302 2010-09-08  Eric Blake  <eblake@redhat.com>
303
304         unsetenv: fix OpenBSD bug
305         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
306         * doc/posix-functions/unsetenv.texi (unsetenv): Update
307         documentation.
308         Reported by Jim Meyering.
309
310         strtod: work around IRIX 6.5 bug
311         * lib/strtod.c (strtod): Reparse number on shorter string if
312         exponent parse was invalid.
313         * tests/test-strtod.c (main): Add check for "0x1p 2".
314         Reported by Tom G. Christensen.
315
316         getopt: optimize previous patch
317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
318         empty variable.  Speed up awk script.
319         Reported by Paolo Bonzini.
320
321 2010-09-08  Jim Meyering  <meyering@redhat.com>
322
323         test.sh: disqualify shells for which set -x corrupts stderr
324         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
325         and OpenBSD 4.7.  They make it so with "set -x", environment settings
326         appear in stderr output.  For example, this command:
327             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
328         prints "P=1" on those two systems:
329
330 2010-09-08  Bruno Haible  <bruno@clisp.org>
331
332         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
333         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
334         commands, because some shells ignore redirections when there is an
335         error in the command lookup.
336         Reported by Eric Blake.
337
338 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
339
340         * lib/regex.h: Fix a mention of `regex_compile' (should be
341         `re_compile_pattern').
342         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
343         (re_set_registers): Correct name of parameter in comment.
344
345         * doc/regex.texi: Add documentation for missing syntax flags.
346         Remove commented-out documentation of defunct syntax option
347         RE_NO_EMPTY_ALTS.
348         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
349         Add documentation of re_set_registers.
350         Document trick to re-use a pattern buffer by setting fastmap manually.
351         Update documentation of struct re_pattern_buffer per public members.
352         Uncomment documentation of equivalence class operators and
353         collating symbol operators, since they are now implemented,
354         Explain leftmost-longest matching in relation to alternatives.
355         Tidy documentation of substring matching.
356         Remove POSIX documentation, which is done better in
357         glibc, and refer the reader there. Keep BSD API documentation, as
358         that is not readily available elsewhere.
359
360 2010-09-07  Eric Blake  <eblake@redhat.com>
361
362         getopt: handle POSIXLY_CORRECT set but not exported
363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
364         export state of POSIXLY_CORRECT, due to bash set -o posix.
365         Reported by Dustin J. Mitchell.
366
367 2010-09-05  Bruno Haible  <bruno@clisp.org>
368
369         gnulib-tool: Highlight the changed options.
370         * gnulib-tool (func_usage): Display the --import, --add-import,
371         --remove-import explanations in bold font.
372
373 2010-09-06  Karl Berry  <karl@gnu.org>
374
375         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
376
377 2010-09-05  Bruno Haible  <bruno@clisp.org>
378
379         uniwidth/width: Update comment.
380         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
381         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
382
383 2010-09-05  Bruno Haible  <bruno@clisp.org>
384
385         isinf, isnan: Relax license.
386         * modules/isinf (License): Change from GPL to LGPL, with consent from
387         Ben Pfaff.
388         * modules/isnan (License): Likewise.
389         Requested by Ludovic Courtès.
390
391 2010-09-04  Bruno Haible  <bruno@clisp.org>
392
393         gnulib-tool: Help migration from --import to --add-import or --update.
394         * gnulib-tool: Emit a verbose error message when --import is used
395         without any module name.
396
397 2010-09-04  Bruno Haible  <bruno@clisp.org>
398
399         Update doc about gnulib-tool.
400         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
401         'gnulib-tool --update' in more detail.
402         Reported by Eric Blake.
403
404 2010-09-04  Bruno Haible  <bruno@clisp.org>
405
406         gnulib-tool: Change --import. New options --add/remove-import.
407         * gnulib-tool: New options --add-import, --remove-import.
408         (func_usage): Document them.
409         (have_associative): Define always.
410         (func_import): In import mode, don't merge the specified settings with
411         the cached settings. Implement remove-import mode.
412         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
413         Explain when to use them versus --import.
414         (Simple update): Use --add-import instead of --import.
415         * NEWS: Mention the change.
416
417 2010-09-04  Bruno Haible  <bruno@clisp.org>
418
419         * doc/gnulib-tool.texi (Initial import): Update paragraph about
420         separate gnulib.mk.
421
422 2010-09-04  Bruno Haible  <bruno@clisp.org>
423
424         gnulib-tool: Don't talk about CVS any more.
425         * gnulib-tool (func_usage, func_import): Write "version control"
426         instead of CVS.
427
428 2010-09-04  Jim Meyering  <meyering@redhat.com>
429
430         maint.mk: avoid obscure sc_copyright_check failure in coreutils
431         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
432         false positives (whose names may be ill-chosen) when searching
433         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
434         would cause a false-positive.
435
436         avoid coreutils "make distcheck" failure
437         Coreutils tests with an absolute build directory name that contains
438         a space.  Not quoting this directory name caused a failure.
439         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
440         * tests/test-vc-list-files-cvs.sh: Likewise.
441
442 2010-09-04  Bruno Haible  <bruno@clisp.org>
443
444         gnulib-tool: Avoid error when run in a package without Makefile.am.
445         * gnulib-tool: When collecting the m4dirs in a package that does not
446         have a Makefile.am, eliminate those directories that contain no
447         gnulib-cache.m4. Fix expression that counts these directories.
448
449 2010-09-04  Bruno Haible  <bruno@clisp.org>
450
451         update-copyright test: Improve output when perl is missing or too old.
452         * tests/test-update-copyright.sh: Move test of Perl version down after
453         the test whether Perl exists. Provide an explanation relating Perl's
454         error message to Automake's SKIP: message.
455
456 2010-09-04  Bruno Haible  <bruno@clisp.org>
457
458         Don't augment PATH in TESTS_ENVIRONMENT.
459         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
460         set abs_aux_dir instead of augmenting PATH.
461         * modules/vc-list-files-tests (Makefile.am): Likewise.
462         * tests/test-update-copyright.sh: Augment PATH here.
463         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
464         path_prepend_.
465         * tests/test-vc-list-files-git.sh: Likewise.
466
467 2010-09-04  Jim Meyering  <meyering@redhat.com>
468
469         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
470         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
471
472 2010-09-04  Bruno Haible  <bruno@clisp.org>
473
474         strdup: Fix compilation error in C++ mode.
475         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
476         the macro.
477
478 2010-09-04  Bruno Haible  <bruno@clisp.org>
479
480         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
481         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
482         macro into a function.
483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
484
485 2010-09-04  Bruno Haible  <bruno@clisp.org>
486
487         Set PATH_SEPARATOR the same way autoconf does.
488         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
489         the value of PATH_SEPARATOR the same way autoconf-generated configure
490         scripts do.
491         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
492         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
493
494 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
495
496         Set PATH_SEPARATOR the same way autoconf does.
497         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
498         the same way autoconf-generated configure scripts do.
499         * posix-modules: Likewise.
500
501 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
502
503         hash: fix safe_hasher const typo
504         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
505         const; otherwise, there is a type error later.
506
507 2010-09-02  Jim Meyering  <meyering@redhat.com>
508
509         test-update-copyright.sh: require perl 5.8.0
510         * tests/test-update-copyright.sh: Require 5.8.0,
511         which Tom G. Christensen has confirmed is adequate,
512         while 5.6.1 is not.
513
514 2010-09-02  Eric Blake  <eblake@redhat.com>
515
516         tests: init.sh improvements for re-exec'ing with zsh
517         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
518         -vx through shell re-exec.
519         Reported by Tom G. Christensen.
520
521         wctype: fix typo in previous commit
522         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
523         Reported by Ludovic Courtès.
524
525 2010-09-02  Jim Meyering  <meyering@redhat.com>
526
527         test-update-copyright.sh: skip test if Perl is too old
528         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
529         Reported by Tom G. Christensen.
530
531 2010-09-02  Bruno Haible  <bruno@clisp.org>
532
533         wctype: Avoid compilation error on IRIX 6.5.30.
534         * lib/wctype.in.h (iswblank): Declare with a replacement if
535         REPLACE_ISWBLANK is set.
536         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
537         declared. Set REPLACE_ISWBLANK.
538         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
539         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
540         * doc/posix-headers/wctype.texi: Likewise.
541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
542
543 2010-09-01  Bruno Haible  <bruno@clisp.org>
544
545         New module 'socketlib'.
546         * modules/socketlib: New file.
547         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
548         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
549         * modules/sockets (Depends-on): Add socketlib.
550         Suggested by Sam Steingold <sds@gnu.org>.
551
552 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
553
554         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
555
556         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
557         when one needs search access to a directory but not read access.
558         On systems where it is available, it works in some cases where
559         O_RDONLY does not, namely on directories that are searchable but
560         not readable, and which need only to be searchable.  If O_SEARCH
561         is not available, fall back to the traditional method of using
562         O_RDONLY.
563
564         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
565         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
566         when opening a directory that needs only to be searchable.
567         * lib/chdir-safer.c (chdir_no_follow): Likewise.
568         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
569         * lib/openat-proc.c (openat_proc_name): Likewise.
570         * lib/openat.c (openat_needs_fchdir): Likewise.
571         * lib/save-cwd.c (save_cwd): Likewise.
572         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
573
574 2010-08-28  Bruno Haible  <bruno@clisp.org>
575
576         New module 'host-cpu-c-abi'.
577         * modules/host-cpu-c-abi: New file.
578         * m4/host-cpu-c-abi.m4: New file, based on part of
579         clisp/src/m4/general.m4.
580         Requested by Sam Steingold <sds@gnu.org>.
581
582 2010-08-31  Eric Blake  <eblake@redhat.com>
583         and Jim Meyering  <meyering@redhat.com>
584
585         hash: factor, and guard against misbehaving hasher function
586         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
587         of table->hasher's return value.  Also protect against a hash value
588         so large that adding it to table->bucket results in a NULL pointer.
589         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
590         Use it in place of open-coded check-and-abort.
591
592 2010-08-30  Bruno Haible  <bruno@clisp.org>
593
594         hash: silence spurious clang warning
595         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
596         Reported by Eric Blake.
597
598 2010-08-30  Eric Blake  <eblake@redhat.com>
599
600         strstr, memmem, strcasestr: avoid leaked shell message
601         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
602         FreeBSD.
603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
605
606         tests: silence clang warning
607         * tests/test-malloca.c (do_allocation): Avoid dead store.
608
609 2010-08-29  Bruno Haible  <bruno@clisp.org>
610
611         gettext: Fix recent mistake.
612         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
613
614 2010-08-29  Bruno Haible  <bruno@clisp.org>
615
616         selinux-h: Offer a --without-selinux option.
617         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
618         --without-selinux was specified, skip all tests and define
619         HAVE_SELINUX_SELINUX_H to 0.
620         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
621         set LIB_SELINUX to empty.
622         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
623         gl_LIBSELINUX. If --without-selinux was specified, replace
624         selinux/context.h.
625         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
626
627 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
628             Bruno Haible  <bruno@clisp.org>
629
630         Make the module 'realloc-gnu' work again on AIX and OSF/1.
631         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
632         of HAVE_REALLOC.
633         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
634         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
635         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
636         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
637
638 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
639             Bruno Haible  <bruno@clisp.org>
640
641         Make the module 'calloc-gnu' work again on AIX and OSF/1.
642         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
643         HAVE_CALLOC.
644         * lib/xmalloc.c: Update accordingly.
645         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
646         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
647         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
648
649 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
650             Bruno Haible  <bruno@clisp.org>
651
652         Make the module 'malloc-gnu' work again on AIX and OSF/1.
653         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
654         HAVE_MALLOC.
655         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
656         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
657         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
658
659 2010-08-29  Bruno Haible  <bruno@clisp.org>
660
661         Update modules list.
662         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
663         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
664         (String handling <string.h>): Add astrxfrm.
665         (File system functions): Add readlinkat.
666
667 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
668
669         Tests for module 'realloc-gnu'.
670         * modules/realloc-gnu-tests: New file.
671         * tests/test-realloc-gnu.c: New file.
672
673         Tests for module 'calloc-gnu'.
674         * modules/calloc-gnu-tests: New file.
675         * tests/test-calloc-gnu.c: New file.
676
677         Tests for module 'malloc-gnu'.
678         * modules/malloc-gnu-tests: New file.
679         * tests/test-malloc-gnu.c: New file.
680
681 2010-08-28  Bruno Haible  <bruno@clisp.org>
682
683         Rename module 'realloc' -> 'realloc-gnu'.
684         * modules/realloc-gnu: New file, copied from modules/realloc.
685         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
686         obsolete.
687         * modules/mgetgroups (Depends-on): Update.
688         * doc/posix-functions/realloc.texi: Update.
689         * NEWS: Mention the change.
690
691         Rename module 'calloc' -> 'calloc-gnu'.
692         * modules/calloc-gnu: New file, copied from modules/calloc.
693         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
694         obsolete.
695         * doc/posix-functions/calloc.texi: Update.
696         * NEWS: Mention the change.
697
698         Rename module 'malloc' -> 'malloc-gnu'.
699         * modules/malloc-gnu: New file, copied from modules/malloc.
700         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
701         obsolete.
702         * modules/argp (Depends-on): Update.
703         * modules/regex (Depends-on): Update.
704         * doc/posix-functions/malloc.texi: Update.
705         * NEWS: Mention the change.
706
707 2010-08-28  Eric Blake  <eblake@redhat.com>
708
709         pread, pwrite: add missing dependency
710         * modules/pread (Depends-on): Add extensions.
711         * modules/pwrite (Depends-on): Likewise.
712
713 2010-08-28  Bruno Haible  <bruno@clisp.org>
714
715         unistr/u*-strchr: Fix tests dependencies.
716         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
717         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
718         Reported by Ian Beckwith <ianb@erislabs.net>.
719
720 2010-08-28  Bruno Haible  <bruno@clisp.org>
721
722         read-file: Don't occupy too much unused memory.
723         * lib/read-file.c (fread_file): Shrink the buffer at the end.
724
725 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
726             Eric Blake  <eblake@redhat.com>
727             Bruno Haible  <bruno@clisp.org>
728
729         read-file: Avoid memory reallocations with regular files.
730         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
731         (fread_file): With regular files, use the remaining length as the
732         initial buffer size.  Check against overflow.
733         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
734         sys_stat.
735
736 2010-08-28  Bruno Haible  <bruno@clisp.org>
737
738         ftello: Relax license.
739         * modules/ftello (License): Relax to LGPLv2+.
740         Reported by Eric Blake.
741
742 2010-08-28  Bruno Haible  <bruno@clisp.org>
743
744         Avoid relocwrapper link errors due to gnulib replacement functions.
745         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
746         function.
747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
748
749 2010-08-28  Bruno Haible  <bruno@clisp.org>
750
751         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
752         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
753         defined.
754         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
755         Suggested by Eric Blake.
756
757 2010-08-28  Bruno Haible  <bruno@clisp.org>
758
759         sys_socket, netdb: Ensure socklen_t gets defined.
760         * modules/sys_socket (Depends-on): Add socklen.
761         * modules/netdb (Depends-on): Likewise.
762         * modules/getaddrinfo (Depends-on): Remove socklen.
763         * modules/getsockopt (Depends-on): Likewise.
764         * modules/setsockopt (Depends-on): Likewise.
765         * tests/test-sys_socket.c: Check that socklen_t is defined.
766         * tests/test-netdb.c: Likewise.
767         * m4/socklen.m4: Update comments.
768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
769
770 2010-08-27  Eric Blake  <eblake@redhat.com>
771
772         login_tty: add missing dependency
773         * modules/login_tty (Depends-on): Add pty.
774
775 2010-08-26  Eric Blake  <eblake@redhat.com>
776
777         lib-symbol-versions: fix m4 quoting
778         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
779         format for AC_LINK_IFELSE.
780
781         glob: fix compile test
782         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
783
784         btowc: fix missing file
785         * modules/btowc (Files): Also ship locale-fr.m4.
786
787         lseek: fix link test
788         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
789         AC_LINK_IFELSE.
790
791         include_next: silence autoconf 2.68 warning
792         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
793         AC_COMPILE_IFELSE as special.
794         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
795         autoconf < 2.68.
796
797         acl: fix compilation test
798         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
799         AC_COMPILE_IFELSE.
800
801 2010-08-26  Bruno Haible  <bruno@clisp.org>
802
803         Modernize AC_TRY_RUN invocations.
804         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
805         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
806         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
807         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
808         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
809         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
810         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
812         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
813         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
815         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
816         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
819         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
820         gl_MBRLEN_NUL_RETVAL): Likewise.
821         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
822         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
823         Likewise.
824         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
825         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
826         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
827         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
828         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
829         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
830         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
831         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
832         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
833         Likewise.
834         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
835         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
838         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
839         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
841         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
842         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
844
845 2010-08-26  Bruno Haible  <bruno@clisp.org>
846
847         Modernize AC_TRY_LINK invocations.
848         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
849         AC_TRY_LINK.
850         * m4/argp.m4 (gl_ARGP): Likewise.
851         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
852         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
853         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
856         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
857         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
858         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
859         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
860         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
861         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
862         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
863         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
864         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
865         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
866         * m4/hostent.m4 (gl_HOSTENT): Likewise.
867         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
868         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
869         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
870         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
871         Likewise.
872         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
873         Likewise.
874         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
875         Likewise.
876         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
878         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
879         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
880         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
881         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
882         * m4/servent.m4 (gl_SERVENT): Likewise.
883         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
884         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
886         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
887         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
888         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
889         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
891         * modules/tsearch-tests (configure.ac): Likewise.
892
893 2010-08-26  Bruno Haible  <bruno@clisp.org>
894
895         Modernize AC_TRY_COMPILE invocations.
896         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
897         AC_TRY_COMPILE.
898         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
899         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
900         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
901         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
902         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
903         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
904         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
905         * m4/lock.m4 (gl_LOCK): Likewise.
906         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
907         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
908         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
909         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
910         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
911         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
912         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
913         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
914         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
915         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
916         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
917         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
918         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
919         extraneous semicolon.
920
921 2010-08-26  Jim Meyering  <meyering@redhat.com>
922
923         stat-time: relax license LGPL
924         * modules/stat-time (License): Change from GPL to LGPL,
925         with consent from all contributors, for use in libguile.
926         Requested by Ludovic Courtès.
927
928 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
929
930         poll: return immediately on POLLHUP.
931         * lib/poll.c (poll): Always set timeout before wait_timeout is
932         computed.
933
934 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
935
936         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
937         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
938         rmdir ("dir/.//"), unlinkat.
939
940 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
941
942         stdbool: avoid spurious failure with modern xlc
943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
944
945 2010-08-24  Bruno Haible  <bruno@clisp.org>
946
947         getloadavg: simplify code
948         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
949         gl_have_func. Update comments.
950
951 2010-08-24  Eric Blake  <eblake@redhat.com>
952
953         getloadavg: don't define SVR4 on cygwin
954         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
955         only define SVR4 when -lkvm is required.
956         Reported by Yaakov Selkowitz.
957
958 2010-08-24  Bruno Haible  <bruno@clisp.org>
959
960         priv-set: fix comment
961         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
962
963 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
964
965         priv-set: fix comments
966         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
967         to match code, as suggested by David Bartley in:
968         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
969
970 2010-08-23  Eric Blake  <eblake@redhat.com>
971
972         stdbool: avoid rejecting clang
973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
974         * tests/test-stdbool.c: Enable more tests if using the system
975         <stdbool.h> instead of the gnulib replacement.
976         (main): Move xlc bug test to a runtime test for all compilers.
977         Reported by Anders Kaseorg.
978
979         argz: fix shell quoting issue
980         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
981         Reported by Charles Wilson.
982
983 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
984             Erik Faye-Lund <kusmabite@gmail.com>
985
986         poll, select: handle ERROR_BROKEN_PIPE.
987         * lib/poll.c (win32_compute_revents): Return POLLHUP when
988         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
989         * lib/select.c (win32_compute_revents): Do not mark a pipe
990         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
991
992 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
993
994         fts: allow compilation with C++
995         * lib/fts_.h: Specify extern "C" linkage with C++.
996
997 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
998
999         Fix gnulib-tool sed script de-commentation for AIX sed.
1000         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1001         sed.
1002
1003 2010-08-17  Eric Blake  <eblake@redhat.com>
1004
1005         test-stddef: test for (some) offsetof bugs
1006         * tests/test-stddef.c: Enhance test to ensure correct type of
1007         offsetof.
1008         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1009         that we are not fixing at this time.
1010
1011 2010-08-15  Bruno Haible  <bruno@clisp.org>
1012
1013         stpncpy: Allow stpncpy to be defined as a macro.
1014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1015         if it's already correctly declared.
1016         * lib/string.in.h (stpncpy): Undefine before redefining.
1017         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1018
1019 2010-08-14  Bruno Haible  <bruno@clisp.org>
1020
1021         Rename module 'memxfrm' to 'amemxfrm'.
1022         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1023         (amemxfrm): Renamed from memxfrm.
1024         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1025         (amemxfrm): Renamed from memxfrm.
1026         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1027         * NEWS: Mention the change.
1028         * MODULES.html.sh (String handling <string.h>): Update.
1029         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1030         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1031         * lib/unicase/u16-casexfrm.c: Likewise.
1032         * lib/unicase/u32-casexfrm.c: Likewise.
1033         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1034         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1035         * lib/uninorm/u16-normxfrm.c: Likewise.
1036         * lib/uninorm/u32-normxfrm.c: Likewise.
1037         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1038         memxfrm.
1039         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1040         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1041         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1042         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1043         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1044         Suggested by Paul Eggert.
1045
1046 2010-08-14  Bruno Haible  <bruno@clisp.org>
1047
1048         Tests for module 'astrxfrm'.
1049         * modules/astrxfrm-tests: New file.
1050         * tests/test-astrxfrm.c: New file.
1051
1052         New module 'astrxfrm'.
1053         * lib/astrxfrm.h: New file.
1054         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1055         * modules/astrxfrm: New file.
1056
1057 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1058
1059         regex: Tweak doc.
1060         * doc/regex.texi (Overview): Don't mention regex.c.
1061         (GNU Regular Expression Compiling): Likewise.
1062         (Match-end-of-line Operator): Mention 'not_eol'.
1063
1064 2010-08-14  Brian Gough  <bjg@gnu.org>
1065             Bruno Haible  <bruno@clisp.org>
1066
1067         git-merge-changelog: add doc relating to use with bzr and hg.
1068         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1069
1070 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1071
1072         pthread: fix pthread.h creation for srcdir != builddir
1073         * modules/pthread (Makefile.am): Fix the rule to work also in a
1074         non-srcdir build.
1075
1076 2010-08-13  Karl Berry  <karl@gnu.org>
1077
1078         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1079         * doc/posix-*/*: force line break before @url of POSIX
1080         specifications.
1081         Suggested by Werner Lemberg.
1082
1083 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         strtod: fix const diagnostic
1086         * lib/strtod.c (strtod): Don't assign const char * to char *,
1087         as this elicits a warning from GCC when warnings are enabled.
1088
1089 2010-08-10  Pádraig Brady <P@draigbrady.com>
1090         and Eric Blake  <eblake@redhat.com>
1091
1092         copy-acl: ignore ENOTSUP on HP-UX
1093         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1094         so that it is available for HP-UX.
1095         * lib/copy-acl.c (qcopy_acl): Use it.
1096         Reported by Patrick M. Callahan.
1097
1098 2010-08-10  Eric Blake  <eblake@redhat.com>
1099
1100         open, chown: relax license
1101         * modules/open (License): Change to LGPLv2+, with consent by all
1102         authors, for use in augeas.
1103         * modules/chown (License): Likewise.
1104         * modules/lchown (Likewise): Likewise.
1105         Requested by Adam Stokes.
1106
1107 2010-08-09  Karl Berry  <karl@gnu.org>
1108
1109         * build-aux/ar-lib: new file, import from Automake.
1110         * config/srclist.txt: autocheck for updates.
1111
1112 2010-08-09  Eric Blake  <eblake@redhat.com>
1113
1114         readlinkat: adjust client modules
1115         * modules/areadlinkat (Depends-on): Use readlinkat, not
1116         symlinkat.
1117         * modules/areadlinkat-with-size (Depends-on): Likewise.
1118
1119         mknod: be more vocal about danger of running tests as root
1120         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1121         root, since that is just asking for problems.
1122         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1123
1124         readlinkat: split into its own module
1125         * modules/symlinkat: Split readlinkat...
1126         * modules/readlinkat: ...into separate module.
1127         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1128         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1129         * lib/symlinkat.c (readlinkat): Move...
1130         * lib/readlinkat.c: ...into new file.
1131         * modules/symlinkat-tests: Split readlinkat test...
1132         * modules/readlinkat-tests: ...into separate module.
1133         * tests/test-symlinkat.c: Split...
1134         * tests/test-readlinkat.c: ...into new file.
1135         * NEWS: Document the split.
1136         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1137         * lib/unistd.in.h (readlinkat): Likewise.
1138         Suggested by Bruno Haible.
1139
1140 2010-08-08  Bruno Haible  <bruno@clisp.org>
1141
1142         memxfrm: Speed up.
1143         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1144         that usually only one call to strxfrm is necessary for each string
1145         part.
1146         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1147
1148 2010-08-07  Karl Berry  <karl@gnu.org>
1149
1150         * doc/posix-headers/limits.texi,
1151         * doc/posix-functions/malloc.texi,
1152         * doc/posix-functions/strsignal.texi: missing @item.
1153         * doc/ld-version-script.texi: spurious leading i.
1154         * doc/regex.texi (Interval Operators): no commas inside @var.
1155
1156 2010-08-01  Bruno Haible  <bruno@clisp.org>
1157
1158         Integrate the regex documentation.
1159         * doc/gnulib.texi: Define 'cn' index.
1160         (Regular expressions): New a chapter that includes regex.texi and
1161         regexprops-generic.texi.
1162         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1163         syntax.
1164
1165         Whitespace cleanup.
1166         * doc/regex.texi: Remove trailing spaces.
1167
1168         Add regex documentation.
1169         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1170         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1171         Written by Kathy A. Hargreaves and Karl Berry.
1172
1173 2010-08-01  Bruno Haible  <bruno@clisp.org>
1174
1175         link: Update documentation.
1176         * doc/posix-functions/link.texi: Update regarding Solaris.
1177
1178 2010-07-31  Bruno Haible  <bruno@clisp.org>
1179
1180         Update modules list.
1181         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1182         (String handling <string.h>): Add memcmp2, memxfrm.
1183         (Container data structures): Add xlist, xsublist, xoset.
1184         (Core language properties): Add alignof, unused-parameter.
1185         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1186         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1187         (Unibyte characters <ctype.h>): New section.
1188         (String handling <string.h>): New section.
1189         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1190         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1191         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1192         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1193         tan, tanh, tanl, y0, y1, yn.
1194         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1195         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1196         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1197         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1198         unlockpt, vdprintf, vdprintf-posix.
1199         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1200         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1201         xconcat-filename.
1202         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1203         getdtablesize, pipe2, pipe2-safer.
1204         (Security): New section.
1205         (Networking functions): Add accept4.
1206         (Signal handling): Add sigpipe.
1207         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1208         mbmemcasecoll.
1209         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1210         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1211         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1212         pipe-filter-ii.
1213         (Misc): Add argp-version-etc, login_tty, parse-duration.
1214
1215 2010-07-31  Bruno Haible  <bruno@clisp.org>
1216
1217         Improve doc in MODULES.html.
1218         * modules/linkat (Description): Add the word "function".
1219         * modules/mkfifo (Description): Likewise.
1220         * modules/mknod (Description): Likewise.
1221         * modules/remove (Description): Likewise.
1222         * modules/renameat (Description): Likewise.
1223         * modules/stat (Description): Likewise.
1224         * modules/symlink (Description): Likewise.
1225         * modules/unlink (Description): Likewise.
1226
1227 2010-07-31  Bruno Haible  <bruno@clisp.org>
1228
1229         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1230         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1231         option --enable/disable-c++ instead of --enable/disable-cxx.
1232         * NEWS: Mention the change.
1233
1234 2010-07-31  Bruno Haible  <bruno@clisp.org>
1235
1236         readlink, areadlink: Relax test a bit.
1237         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1238         alternative to ENOTDIR.
1239         * tests/test-areadlink.h (test_areadlink): Likewise.
1240         Reported by Rainer Tammer.
1241
1242 2010-07-31  Bruno Haible  <bruno@clisp.org>
1243
1244         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1245         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1246         character, perform the search using U_STRCHR.
1247         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1248         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1249         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1250         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1251         Suggested by Paolo Bonzini.
1252
1253 2010-07-31  Bruno Haible  <bruno@clisp.org>
1254
1255         unistr/u*-strstr: Fix dependencies.
1256         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1257         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1258         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1259
1260 2010-07-31  Bruno Haible  <bruno@clisp.org>
1261
1262         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1263         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1264         the beginning of the loop.
1265         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1266         cases in 'switch' statement.
1267
1268         unistr/u8-strchr: Fix several bugs.
1269         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1270         the string. When not found, return NULL, not a pointer near the end.
1271
1272         More tests for unistr/u8-strchr.
1273         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1274         that the function does not read past the first occurrence of the byte
1275         being searched.
1276         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1277         * tests/unistr/test-u16-strchr.c (main): New function.
1278         * tests/unistr/test-u32-strchr.c (main): New function.
1279
1280 2010-07-31  Bruno Haible  <bruno@clisp.org>
1281
1282         posix-modules: Ignore backup files of documentation files.
1283         * posix-modules: grep only through files named *.texi.
1284
1285 2010-07-31  Bruno Haible  <bruno@clisp.org>
1286
1287         symlinkat: Fix documentation.
1288         * doc/posix-functions/readlinkat.texi: Fix module name.
1289
1290 2010-07-31  Bruno Haible  <bruno@clisp.org>
1291
1292         fchownat: Replace also when chown has the trailing slash bug.
1293         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1294         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1295         introduced on 2010-04-10.
1296         Reported by Rainer Tammer.
1297
1298 2010-07-31  Bruno Haible  <bruno@clisp.org>
1299
1300         linkat: Work around AIX 7.1 bug.
1301         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1302         whether linkat handles trailing slash correctly. If not, replace linkat
1303         and define LINKAT_TRAILING_SLASH_BUG.
1304         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1305         check whether (fd1,file1) points to a directory if file1 or file2 ends
1306         in a slash. Code taken from lib/link.c.
1307         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1308         Reported by Rainer Tammer.
1309
1310 2010-07-31  Bruno Haible  <bruno@clisp.org>
1311
1312         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1313         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1314         This disables an xlc optimization that was causing wrong test results.
1315         Reported by Rainer Tammer.
1316
1317 2010-07-31  Bruno Haible  <bruno@clisp.org>
1318
1319         iconv: Work around AIX 6.1..7.1 bug.
1320         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1321         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1322         cross-compiling, guess no on all versions of AIX.
1323         Reported by Rainer Tammer.
1324
1325 2010-07-31  Bruno Haible  <bruno@clisp.org>
1326
1327         readlink: Relax test a bit.
1328         * tests/test-readlink.h (test_readlink): Allow different errno value
1329         when readlink is called with a file name that ends in / and refers to
1330         a file.
1331         Suggested by Eric Blake.
1332         Reported by Rainer Tammer.
1333
1334 2010-07-31  Bruno Haible  <bruno@clisp.org>
1335
1336         copysign: Does not require -lm on glibc systems.
1337         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1338         gl_COMMON_DOUBLE_MATHFUNC.
1339         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1340
1341 2010-07-31  Bruno Haible  <bruno@clisp.org>
1342
1343         duplocale: Work around AIX 7.1 bug.
1344         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1345         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1346         * lib/duplocale.c (rpl_duplocale): Update comment.
1347         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1348         Reported by Rainer Tammer.
1349
1350 2010-07-30  Bruno Haible  <bruno@clisp.org>
1351
1352         dirfd: Avoid link error on AIX 7.1.
1353         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1354         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1355         exist, set REPLACE_DIRFD.
1356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1357         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1358         * doc/posix-functions/dirfd.texi: Update.
1359         Reported by Rainer Tammer.
1360
1361 2010-07-30  Eric Blake  <eblake@redhat.com>
1362
1363         strtod: next round of AIX fixes
1364         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1365         exponent.
1366         * tests/test-strtod.c (main): Enhance tests.
1367         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1368         Reported by Rainer Tammer.
1369
1370         futimens: fix configure check
1371         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1372         Reported by Bruno Haible.
1373
1374 2010-07-30  Bruno Haible  <bruno@clisp.org>
1375
1376         getline: Update regarding AIX.
1377         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1378         Reported by Rainer Tammer.
1379
1380 2010-07-30  Bruno Haible  <bruno@clisp.org>
1381
1382         wcwidth: Drop replacement on AIX 7.
1383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1384         AIX 7.
1385         Reported by Rainer Tammer.
1386
1387 2010-07-30  Bruno Haible  <bruno@clisp.org>
1388
1389         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1391         a 'char *'.
1392         Reported by Rainer Tammer.
1393
1394 2010-07-30  Bruno Haible  <bruno@clisp.org>
1395
1396         unlink: Update regarding AIX.
1397         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1398         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1399         Reported by Rainer Tammer.
1400
1401 2010-07-30  Bruno Haible  <bruno@clisp.org>
1402
1403         symlink: Update regarding AIX.
1404         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1405         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1406         Reported by Rainer Tammer.
1407
1408 2010-07-30  Bruno Haible  <bruno@clisp.org>
1409
1410         strndup: Update regarding AIX.
1411         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1412         AIX 7.
1413         Reported by Rainer Tammer.
1414
1415 2010-07-30  Bruno Haible  <bruno@clisp.org>
1416
1417         stat: Update regarding AIX.
1418         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1419         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1420         Reported by Rainer Tammer.
1421
1422 2010-07-30  Bruno Haible  <bruno@clisp.org>
1423
1424         truncl: Fix autoconf test.
1425         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1426         whether truncl works.
1427         Reported by Rainer Tammer.
1428
1429 2010-07-30  Bruno Haible  <bruno@clisp.org>
1430
1431         round: Update regarding AIX.
1432         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1433         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1434         Reported by Rainer Tammer.
1435
1436 2010-07-30  Bruno Haible  <bruno@clisp.org>
1437
1438         rename: Update regarding AIX.
1439         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1440         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1441         Reported by Rainer Tammer.
1442
1443 2010-07-30  Bruno Haible  <bruno@clisp.org>
1444
1445         printf.m4: Update regarding AIX.
1446         * m4/printf.m4: Update comments regarding AIX.
1447         Reported by Rainer Tammer.
1448
1449 2010-07-30  Bruno Haible  <bruno@clisp.org>
1450
1451         iconv: Update regarding AIX.
1452         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1453         AIX 7.
1454         Reported by Rainer Tammer.
1455
1456 2010-07-30  Bruno Haible  <bruno@clisp.org>
1457
1458         getopt: Update regarding AIX.
1459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1460         no on AIX.
1461         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1462         Reported by Rainer Tammer.
1463
1464 2010-07-30  Bruno Haible  <bruno@clisp.org>
1465
1466         ldexpl; Update regarding AIX.
1467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1468         on AIX 7.
1469         Reported by Rainer Tammer.
1470
1471 2010-07-30  Bruno Haible  <bruno@clisp.org>
1472
1473         frexpl: Update regarding AIX.
1474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1475         on AIX 7.
1476         Reported by Rainer Tammer.
1477
1478 2010-07-30  Bruno Haible  <bruno@clisp.org>
1479
1480         open, fopen: Update regarding AIX.
1481         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1482         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1483         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1484         * doc/posix-functions/fopen.texi: Likewise.
1485         Reported by Rainer Tammer.
1486
1487 2010-07-30  Bruno Haible  <bruno@clisp.org>
1488
1489         chown: Update doc regarding AIX.
1490         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1491         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1492         Reported by Rainer Tammer.
1493
1494 2010-07-30  Eric Blake  <eblake@redhat.com>
1495
1496         strtod: fix bug in replacement function on AIX
1497         * lib/strtod.c (strtod): Special case broken "0x" parse in
1498         underlying strtod.
1499         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1500         * doc/posix-functions/strtod.texi (strtod): Likewise.
1501         Reported by Rainer Tammer.
1502
1503 2010-07-30  Bruno Haible  <bruno@clisp.org>
1504
1505         mbrlen: Fix cross-compilation guess for AIX.
1506         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1507         guess. Leftover from 2008-12-22.
1508
1509 2010-07-30  Bruno Haible  <bruno@clisp.org>
1510
1511         mbrtowc: Fix cross-compilation guess for AIX.
1512         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1513         guess. Leftover from 2008-12-21.
1514
1515 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1516
1517         init.sh: work around trap limitation of some shells
1518         * tests/init.sh (setup_): Move exit trap outside of shell function.
1519
1520 2010-07-29  Eric Blake  <eblake@redhat.com>
1521
1522         strtod: aid debugging
1523         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1524         understanding why strtod is rejected.
1525
1526 2010-07-28  Bruno Haible  <bruno@clisp.org>
1527
1528         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1529         * lib/unistr/u8-chr.c: Include <string.h>.
1530         * tests/unistr/test-u8-chr.c: Likewise.
1531         * tests/unistr/test-u16-chr.c: Likewise.
1532         * tests/unistr/test-u32-chr.c: Likewise.
1533         * tests/unistr/test-u8-strchr.c: Likewise.
1534         * tests/unistr/test-u16-strchr.c: Likewise.
1535         * tests/unistr/test-u32-strchr.c: Likewise.
1536         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1537         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1538         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1539         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1540
1541 2010-07-28  Bruno Haible  <bruno@clisp.org>
1542
1543         Use spaces for indentation, not tabs.
1544         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1545
1546 2010-07-27  Bruno Haible  <bruno@clisp.org>
1547
1548         mbspcasecmp: Fix function specification.
1549         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1550         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1551         Reported by Eric Blake <eblake@redhat.com>.
1552
1553 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1554
1555         timespec: use cast and not conditional, as truncation isn't possible
1556         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1557         instead of a conditional.  Comment about the situation in more detail.
1558         This undoes most of the 2009-10-29 patch.
1559
1560 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1561
1562         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1563         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1564         * lib/unistr/u8-strchr.c: Likewise.
1565         * modules/unistr/u8-chr: Depend on memchr.
1566
1567         unistr/u*-strchr: add tests
1568         * modules/unistr/u8-strchr-tests: New file.
1569         * modules/unistr/u16-strchr-tests: New file.
1570         * modules/unistr/u32-strchr-tests: New file.
1571         * tests/unistr/test-strchr.h: New file.
1572         * tests/unistr/test-u8-strchr.c: New file.
1573         * tests/unistr/test-u16-strchr.c: New file.
1574         * tests/unistr/test-u32-strchr.c: New file.
1575
1576         unistr/u*-chr: test multibyte sequences more
1577         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1578         test vector.
1579         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1580         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1581         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1582
1583         unistr/u*-chr: test multibyte sequences
1584         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1585
1586         unistr/u*-chr: prepare for multibyte tests
1587         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1588         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1589         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1590         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1591         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1592         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1593
1594 2010-07-18  Bruno Haible  <bruno@clisp.org>
1595
1596         unistr/u8-strchr: Optimize non-ASCII argument case.
1597         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1598         because the first byte often matches anyway.
1599         Reported by Pádraig Brady <P@draigbrady.com>.
1600
1601 2010-07-15  Karl Berry  <karl@gnu.org>
1602
1603         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1604
1605 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1606
1607         getcwd: on Solaris, work better if ancestors are inaccessible
1608         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1609         buffer and size, try again with a large buffer.  This works better
1610         on Solaris, since its getcwd succeeds even if the path to the root
1611         is inaccessible, and this is helpful in common cases such as .zfs
1612         hidden directories.  Problem reported by J Chapman Flack in
1613         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1614         Use system getcwd if it's declared, not merely if it's partly
1615         working; use the partly-working test only to avoid needless effort
1616         if the system getcwd fails.
1617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1618         comment that was already obsolete and is now even more obsolete.
1619         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1620         now might call strdup.
1621
1622 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1623
1624         pthread: Add enough so that coreutils/src/sort.c compiles.
1625         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1626         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1627         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1628         Include <sys/types.h>, in case it defines pthread_t.
1629         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1630         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1631         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1632         (pthread_rwlockattr_t, pthread_spinlock_t):
1633         New typedefs, if HAVE_PTHREAD_T is not defined.
1634         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1635         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1636         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1637         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1638         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1639         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1640         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1641         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1642         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1643         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1644         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1645         New macros.
1646         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1647         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1648         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1649         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1650         (pthread_spin_unlock): New dummy functions.
1651         (pthread_create): Return EAGAIN; don't set errno.
1652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1653         require AC_C_INLINE.
1654         * modules/pthread (Depends-on): Add sched, time.
1655         (pthread.h): Use AM_V_GEN.
1656
1657 2010-07-13  Bruno Haible  <bruno@clisp.org>
1658
1659         striconveh: Don't malloc memory if the result buffer is sufficient.
1660         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1661         buffer if its size is sufficient.
1662         Reported by Ludovic Courtès <ludo@gnu.org>.
1663
1664 2010-07-13  Bruno Haible  <bruno@clisp.org>
1665
1666         strtod: Add safety check.
1667         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1668
1669 2010-07-12  Bruno Haible  <bruno@clisp.org>
1670
1671         Unify tests that set gl_cv_func_ldexpl_no_libm.
1672         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1673         gl_FUNC_LDEXPL.
1674         (gl_FUNC_LDEXPL): Invoke it.
1675         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1676
1677 2010-07-12  Bruno Haible  <bruno@clisp.org>
1678
1679         Unify tests that set gl_cv_func_ldexp_no_libm.
1680         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1681         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1682         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1683         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1684         * modules/strtod (Files): Add m4/ldexp.m4.
1685
1686 2010-07-12  Bruno Haible  <bruno@clisp.org>
1687
1688         Unify tests that set gl_cv_func_frexpl_no_libm.
1689         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1690         gl_FUNC_FREXPL_NO_LIBM.
1691         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1693
1694 2010-07-12  Bruno Haible  <bruno@clisp.org>
1695
1696         Unify tests that set gl_cv_func_frexp_no_libm.
1697         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1698         gl_FUNC_FREXP_NO_LIBM.
1699         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1700         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1701
1702 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1703
1704         memcoll: clarify sizes versus lengths, document better, and tweak perf
1705         * lib/memcoll.c (strcoll_loop, memcoll0):
1706         Improve quality of descriptive comments.  Name variables
1707         consistently as to whether they are lengths (which do not include
1708         terminating null) versus sizes (which do).
1709         * lib/xmemcoll.c (xmemcoll0): Likewise.
1710         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1711         returned when s1size == 0; this is easier to compile and saves
1712         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1713
1714 2010-07-12  Bruno Haible  <bruno@clisp.org>
1715
1716         Tests for module '_Exit'.
1717         * modules/_Exit-tests: New file.
1718         * tests/test-_Exit.sh: New file.
1719         * tests/test-_Exit.c: New file.
1720
1721         New module '_Exit'.
1722         * lib/stdlib.in.h (__attribute__): New macro.
1723         (_Exit): New declaration.
1724         * lib/_Exit.c: New file.
1725         * m4/_Exit.m4: New file.
1726         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1727         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1728         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1729         * modules/_Exit: New file.
1730         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1731         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1732
1733 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1734
1735         strtod: make it more-accurate typically, and don't require libm
1736         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1737         Include limits.h.  Don't include string.h.
1738         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1739         (locale_isspace): New function, so that no casts are needed to
1740         check whether *s is a space.
1741         (ldexp): Provide an unused dummy if not available.
1742         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1743         (strtod): Use them.  This implementation prefers to use the
1744         underlying strtod if available, falling back on our own code
1745         only to fix known bugs.  This is more likely to produce an
1746         accurate result.  Also, it avoids the use of libm functions.
1747         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1748         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1749         was absent, but it caused a test failure with coreutils.
1750         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1751         with libm.
1752         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1753         * modules/strtod-tests (Makefile.am): Likewise.
1754
1755 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1756             Bruno Haible  <bruno@clisp.org>
1757
1758         unistr/u8-strchr: Optimize ASCII argument case.
1759         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1760
1761 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1762
1763         (x)memcoll: minor tweaks
1764         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1765         is after the type that it qualifies.
1766         (memcoll0): Likewise.
1767         * lib/memcoll.h (memcoll0): Likewise.
1768         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1769         * lib/xmemcoll.h (xmemcoll0): Likewise.
1770         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1771         differs from memcoll in that the NUL byte is part of the argument.
1772         Omit the abort-checks, as performance is a real issue here.  Plus,
1773         the checks were wrong anyway (an off-by-one error).  Omit local
1774         variable 'diff', as it's a bit clearer that way.
1775         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1776         no longer needed.
1777
1778 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1779
1780         (x)memcoll: speedup when input is known to be NUL delimited
1781         * lib/memcoll.c: Include stdlib.
1782         (memcoll0) New function.
1783         (strcoll_loop) New function, refactored for use in both memcoll
1784         and memcoll0.
1785         * lib/memcoll.h: Add prototype for memcoll0.
1786         * lib/xmemcoll.c: (xmemcoll0) New function.
1787         (collate_error) New function, refactored for use in both xmemcoll
1788         and xmemcoll0.
1789         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1790         * m4/memcoll.m4: add inline invocation.
1791
1792 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1793
1794         * build-aux/bootstrap: Remove any local translations
1795         from the translation project synchronization directory,
1796         so that local only translations are not distributed.
1797
1798 2010-07-04  Bruno Haible  <bruno@clisp.org>
1799
1800         fsusage: Clarify which code applies to which platforms.
1801         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1802         platform.
1803         * lib/fsusage.c (get_fs_usage): Likewise.
1804
1805 2010-07-04  Bruno Haible  <bruno@clisp.org>
1806
1807         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1808         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1809         Reported by Martin Lambers <marlam@marlam.de>.
1810
1811 2010-07-04  Jim Meyering  <meyering@redhat.com>
1812
1813         hash: once again explicitly disallow insertion of NULL
1814         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1815         inserting a NULL pointer cannot work with these functions.
1816         Add a comment with details.
1817         This reverts part of the 2010-07-01 commit, 5bef1a35
1818         "hash: extend module to deal with non-pointer keys".
1819
1820 2010-07-01  Bruno Haible  <bruno@clisp.org>
1821
1822         stdbool: Update doc.
1823         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1824         Info from Christian Weisgerber <naddy@mips.inka.de>.
1825
1826 2010-07-01  Jim Meyering  <meyering@redhat.com>
1827
1828         hash: extend module to deal with non-pointer keys
1829         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1830         but that allows insertion of non-pointer entries.
1831         Do not disallow an ENTRY value of NULL.
1832         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1833         * lib/hash.h (hash_insert0): Declare.
1834
1835 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1836
1837         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1838         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1839         not present (i.e. with autoconf 2.59 and when using gettextize, not
1840         gnulib), require AC_GNU_SOURCE instead.
1841
1842 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1843
1844         idpriv-drop: Fix tests.
1845         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1846         not to the test-idpriv-droptemp program.
1847
1848 2010-06-29  Bruno Haible  <bruno@clisp.org>
1849
1850         string: Fix syntax error with g++ 2.96.
1851         * lib/string.in.h (__pure__): Remove definition.
1852         (_GL_ATTRIBUTE_PURE): New macro.
1853         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1854         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1855         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1856
1857 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1858
1859         unitypes: Fix bug introduced on 2010-05-18.
1860         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1861
1862 2010-06-22  Eric Blake  <eblake@redhat.com>
1863
1864         memmem: slight optimization
1865         * lib/str-two-way.h (critical_factorization): Update comments.
1866         Reduce work during factorization phase.
1867         Reported by Carlos Bueno <carlos@bueno.org>.
1868
1869 2010-06-21  Bruno Haible  <bruno@clisp.org>
1870
1871         Fix HAVE_CALLOC_POSIX misnomer.
1872         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1873         !HAVE_CALLOC_POSIX.
1874         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1875         HAVE_CALLOC_POSIX.
1876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1877         instead of HAVE_CALLOC_POSIX.
1878         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1879         HAVE_CALLOC_POSIX.
1880
1881         Use modern idiom for calloc() replacement.
1882         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1883         AC_FUNC_CALLOC.
1884         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1885         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1886         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1887         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1888         (gl_REPLACE_CALLOC): New macro.
1889
1890 2010-06-21  Bruno Haible  <bruno@clisp.org>
1891
1892         Fix HAVE_REALLOC_POSIX misnomer.
1893         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1894         !HAVE_REALLOC_POSIX.
1895         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1896         HAVE_REALLOC_POSIX.
1897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1898         instead of HAVE_REALLOC_POSIX.
1899         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1900         HAVE_REALLOC_POSIX.
1901
1902         Use modern idiom for realloc() replacement.
1903         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1904         AC_FUNC_REALLOC.
1905         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1906         Autoconf's AC_FUNC_REALLOC.
1907         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1908         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1909         (gl_REPLACE_REALLOC): New macro.
1910         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1911
1912 2010-06-21  Bruno Haible  <bruno@clisp.org>
1913
1914         Fix HAVE_MALLOC_POSIX misnomer.
1915         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1916         !HAVE_MALLOC_POSIX.
1917         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1918         HAVE_MALLOC_POSIX.
1919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
1920         instead of HAVE_MALLOC_POSIX.
1921         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
1922         HAVE_MALLOC_POSIX.
1923
1924         Use modern idiom for malloc() replacement.
1925         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
1926         AC_FUNC_MALLOC.
1927         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
1928         Autoconf's AC_FUNC_MALLOC.
1929         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1930         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
1931         (gl_REPLACE_MALLOC): New macro.
1932         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1933
1934 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
1935
1936         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
1937         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
1938         This macro takes 3 arguments, not 4.
1939
1940 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
1941
1942         ipv6: fix detection under mingw
1943         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
1944         in6_addr.
1945
1946 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
1947
1948         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
1949         that strtod() works when cross-compiling to a glibc version known
1950         to work.
1951
1952 2010-06-15  Bruno Haible  <bruno@clisp.org>
1953
1954         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
1955
1956 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
1957
1958         select: Correct timeout.
1959         * lib/select.c (rpl_select): Compute wait_timeout correctly.
1960
1961 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1962
1963         git-version-gen: init shell var to avoid env var influence
1964         * build-aux/git-version-gen (v): Init shell var to empty.
1965
1966 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
1967
1968         priv-set: Don't assume that priv.h exists merely because getppriv does.
1969         See Jan Andersen's bug report about AIX 5L in
1970         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
1971         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
1972         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
1973         * lib/priv-set.h: Likewise.
1974         * tests/test-priv-set.c: Likewise.
1975
1976 2010-06-13  Bruno Haible  <bruno@clisp.org>
1977
1978         relocatable: Make it easier to test whether to install wrappers.
1979         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
1980         RELOCATABLE_VIA_WRAPPER.
1981
1982 2010-06-13  Bruno Haible  <bruno@clisp.org>
1983
1984         gnulib-tool: Display specified modules and dependencies differently.
1985         * gnulib-tool (func_show_module_list): New function.
1986         (func_import, func_create_testdir): Invoke it.
1987         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1988
1989 2010-06-13  Bruno Haible  <bruno@clisp.org>
1990
1991         gnulib-tool: Align code of func_import and func_create_testdir.
1992         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
1993         specified_modules.
1994
1995 2010-06-12  Jim Meyering  <meyering@redhat.com>
1996
1997         test-inttostr: avoid spurious failure on Solaris 9
1998         * tests/test-inttostr.c (main): Skip the test when snprintf fails
1999         to accept "%ju".  Reported by Bruno Haible.
2000
2001 2010-06-11  Jim Meyering  <meyering@redhat.com>
2002
2003         test-sys_socket: mark variables as used more readably
2004         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2005         as "used" explicitly via (void) statement casts.  This is more
2006         readable than using them in an artificial return expression.
2007         Suggestion from Bruno Haible.
2008
2009 2010-06-11  Bruno Haible  <bruno@clisp.org>
2010
2011         Avoid some more warnings from "gcc -Wwrite-strings".
2012         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2013         to 'const char *'.
2014         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2015         * tests/test-c-strcasestr.c (main): Likewise.
2016         * tests/test-mbscasestr1.c (main): Likewise.
2017         * tests/test-mbscasestr2.c (main): Likewise.
2018         * tests/test-memmem.c (main): Likewise.
2019         * tests/test-strstr.c (main): Likewise.
2020         * tests/test-strcasestr.c (main): Likewise.
2021
2022 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2023
2024         init.sh: change framework_failure_ to fail with status 99, not 1
2025         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2026         automake's parallel-tests rule that this is an unexpected failure,
2027         even if the test is listed in XFAIL_TESTS.
2028
2029 2010-06-11  Jim Meyering  <meyering@redhat.com>
2030
2031         test-inttostr: avoid warnings about 4-6KB literal strings
2032         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2033         Include "macros.h", for its definition of ASSERT.
2034         (CK): s/assert/ASSERT/
2035         * modules/inttostr-tests (Files): Add macros.h.
2036
2037         init.sh: don't use $ME_ or skip_ before they are defined
2038         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2039         their first uses.  Also hoist their companions: warn_, fail_,
2040         framework_failure_, $stderr_fileno.  Prompted by a patch from
2041         Stefano Lattarini.
2042
2043         test-sys_socket: avoid set-but-not-used warnings from gcc
2044         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2045         avoid warning about set-but-not-used variables.
2046
2047         test-xvasprintf: avoid 'const' discard warnings
2048         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2049         "const" when assigning from literal strings.
2050         (test_xasprintf): Add "void" in function argument list to placate
2051         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2052
2053         tests: avoid compilation warnings in argmatch and exclude tests...
2054         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2055         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2056         Since it always exits, declare with the "noreturn" attribute.
2057         * tests/test-argmatch.c: Likewise.
2058
2059         tests: avoid 'const' discard warnings in mbsstr tests
2060         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2061         * tests/test-mbsstr2.c (main): Likewise.
2062
2063         test-verify: avoid warning from gcc's -Wmissing-declarations
2064         * tests/test-verify.c (function): Declare to be static.
2065
2066         test-inttostr.c: include <string.h> for use of strcmp
2067         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2068
2069         test-linkat: avoid failed assertion on "other" architectures
2070         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2071         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2072         sparc: https://bugs.launchpad.net/bugs/591968
2073
2074 2010-06-11  Jim Meyering  <meyering@redhat.com>
2075
2076         printf.m4: avoid autoconf's "Expanded Before Required" warning
2077         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2078         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2079         autoconf warning.
2080
2081 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2082
2083         Replacement header templates are now named with ".in", not "_".
2084         * doc/gnulib-intro.texi: Correct.
2085
2086 2010-06-10  Jim Meyering  <meyering@redhat.com>
2087
2088         inttostr-tests: depend on snprintf, not snprintf-posix
2089         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2090         snprintf-posix, to avoid this aclocal failure:
2091           missing file gnulib-tests/vasnprintf.c
2092           configure.ac:45: error: expected source file, required through \
2093           AC_LIBSOURCES, not found
2094
2095 2010-06-10  Jim Meyering  <meyering@redhat.com>
2096
2097         inttostr: add a new function, inttostr, and tests
2098         The namesake function was not available.  The existence of the
2099         template file, inttostr.c makes its addition nontrivial.
2100         * lib/anytostr.c: Rename from inttostr.c.
2101         (anytostr): Rename from inttostr.
2102         * lib/inttostr.c: New file.
2103         * modules/inttostr (Files): Add anytostr.c.
2104         (Makefile.am): Set lib_SOURCES instead of ...
2105         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2106         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2107         * lib/offtostr.c: Likewise.
2108         * lib/uinttostr.c: Likewise.
2109         * lib/umaxtostr.c: Likewise.
2110         * modules/inttostr-tests: New file.
2111         * tests/test-inttostr.c: New file.  Test these functions.
2112
2113 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2114             Bruno Haible  <bruno@clisp.org>
2115
2116         Add "Extending Gnulib" chapter to manual.
2117         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2118         chapter.
2119         (Extending Gnulib): New chapter.
2120         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2121         chapter.
2122
2123 2010-06-09  Bruno Haible  <bruno@clisp.org>
2124
2125         Avoid relocwrapper link errors due to gnulib replacement functions.
2126         * lib/areadlink.c: Use the system's malloc, realloc functions.
2127         (areadlink): Set errno to ENOMEM explicitly.
2128         * modules/areadlink (Depends-on): Remove malloc-posix.
2129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2130
2131 2010-06-09  Bruno Haible  <bruno@clisp.org>
2132
2133         Avoid relocwrapper link errors due to gnulib replacement functions.
2134         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2135         * lib/malloca.c: Likewise.
2136         * lib/relocatable.c: Likewise.
2137         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2138         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2139         * lib/setenv.c: Use the system's malloc, realloc functions.
2140         * lib/strerror.c: Use the system's sprintf function.
2141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2142
2143 2010-06-04  Bruno Haible  <bruno@clisp.org>
2144
2145         Prefer documented low-level autoconf macro names.
2146         * m4/lib-link.m4: Use m4_translit instead of translit.
2147         * m4/environ.m4: Likewise.
2148         * m4/mathfunc.m4: Likewise.
2149         * m4/onceonly.m4: Likewise.
2150         * m4/stdint.m4: Likewise.
2151         Suggested by Eric Blake.
2152
2153 2010-06-04  Martin Lambers  <marlam@marlam.de>
2154             Bruno Haible  <bruno@clisp.org>
2155
2156         havelib: Allow library names with '+' characters.
2157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2158         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2159
2160 2010-06-09  Bruno Haible  <bruno@clisp.org>
2161
2162         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2163         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2164         realloc failed.
2165
2166 2010-06-08  Peter Simons  <simons@cryp.to>
2167
2168         maint.mk: make the news-check rule more configurable
2169         * top/maint.mk (news-check-lines-spec) New variable.
2170         (news-check): Use "sed -n 1,10p" in place of "head".
2171
2172 2010-06-07  Jim Meyering  <meyering@redhat.com>
2173
2174         do-release-commit-and-tag: fix typo in --help
2175         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2176
2177         regex: avoid new dead-code warning with gcc-4.6.0
2178         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2179         if-block containing a while-loop.  It's been unused for at least
2180         5 years.
2181
2182 2010-06-05  Bruno Haible  <bruno@clisp.org>
2183
2184         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2185         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2186
2187 2010-06-04  Bruno Haible  <bruno@clisp.org>
2188
2189         Update to GNU gettext 0.18.1.
2190         * modules/gettext (configure.ac): Require gettext infrastructure from
2191         version 0.18.1.
2192
2193 2010-06-03  Bruno Haible  <bruno@clisp.org>
2194
2195         Don't use AC_LIBOBJ with file names in subdirectories.
2196         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2197         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2198         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2199         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2200         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2201         gl_LIBUNISTRING_LIBSOURCE.
2202         (Makefile.am): Augment lib_SOURCES here, conditionally.
2203         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2204
2205 2010-06-03  Bruno Haible  <bruno@clisp.org>
2206
2207         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2208         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2209         expansion does not end with a newline.
2210         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2211         unnecessary newline.
2212
2213 2010-06-03  Bruno Haible  <bruno@clisp.org>
2214
2215         Reduce dependencies.
2216         * tests/test-quotearg.h: New file, extracted from
2217         tests/test-quotearg.c.
2218         * tests/test-quotearg-simple.c: New file, extracted from
2219         tests/test-quotearg.c.
2220         * tests/test-quotearg.c: Don't include <ctype.h>.
2221         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2222         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2223         use_quote_double_quotes, use_quotearg_colon): Moved to
2224         tests/test-quotearg.h.
2225         (results_g, flag_results, custom_quotes, custom_results): Moved
2226         to tests/test-quotearg-simple.c.
2227         (main): Moved the part that does not depend on gettext to
2228         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2229         performed.
2230         * modules/quotearg-simple: New file.
2231         * modules/quotearg-simple-tests: New file.
2232         * modules/quotearg (Depends-on): Add quotearg-simple.
2233         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2234         (Files): Add tests/test-quotearg.h.
2235         Reported by Paolo Bonzini.
2236
2237 2010-06-03  Bruno Haible  <bruno@clisp.org>
2238
2239         Reduce dependencies.
2240         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2241
2242 2010-06-03  Bruno Haible  <bruno@clisp.org>
2243
2244         time: Undefine more broken macros.
2245         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2246         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2247         Reported by Eric Blake.
2248
2249 2010-06-03  Bruno Haible  <bruno@clisp.org>
2250
2251         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2252         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2253         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2254         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2255         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2256         Reported by Ludovic Courtès <ludo@gnu.org>.
2257
2258 2010-06-02  Eric Blake  <eblake@redhat.com>
2259
2260         time: work with mingw + pthreads-win32 library
2261         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2262         if timespec is defined only in pthread.h.
2263         * modules/time (Makefile.am): Substitute it.
2264         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2265         <pthread.h>, when needed.
2266         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2267         from the library.
2268
2269 2010-05-31  Bruno Haible  <bruno@clisp.org>
2270
2271         Avoid expanding two macros in the wrong order.
2272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2273         gl_LIBUNISTRING if it is defined.
2274         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2275         autoconf >= 2.64.
2276         Reported by Ludovic Courtès <ludo@gnu.org>.
2277
2278 2010-05-27  Jim Meyering  <meyering@redhat.com>
2279
2280         maint.mk: also prohibit "#undef" of always-defined symbols
2281         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2282         Allow more than one space before the symbol name.
2283         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2284         the regexp uses alternation.
2285
2286 2010-05-26  Eric Blake  <eblake@redhat.com>
2287
2288         maint.mk: avoid echo -e
2289         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2290         Convert all uses of echo -* to printf.
2291         Reported by Matthias Bolte.
2292
2293 2010-05-25  Bruno Haible  <bruno@clisp.org>
2294
2295         Update to GNU gettext 0.18, part 2.
2296         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2297         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2298
2299 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2300
2301         Add missing include in test-pwrite.c.
2302         * tests/test-pwrite.c: Include string.h, for strcmp.
2303
2304 2010-05-24  Bruno Haible  <bruno@clisp.org>
2305
2306         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2307
2308 2010-05-24  Bruno Haible  <bruno@clisp.org>
2309
2310         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2311         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2312         iconveh_error argument.
2313         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2314         U_STRCONV_TO_LOCALE.
2315         * lib/unistr/u16-strcoll.c: Likewise.
2316         * lib/unistr/u32-strcoll.c: Likewise.
2317         * modules/unistr/u8-strcoll (Depends-on): Add
2318         uniconv/u8-strconv-to-enc, localcharset. Remove
2319         uniconv/u8-strconv-to-locale.
2320         (configure.ac): Bump version number.
2321         * modules/unistr/u16-strcoll (Depends-on): Add
2322         uniconv/u16-strconv-to-enc, localcharset. Remove
2323         uniconv/u16-strconv-to-locale.
2324         (configure.ac): Bump version number.
2325         * modules/unistr/u32-strcoll (Depends-on): Add
2326         uniconv/u32-strconv-to-enc, localcharset. Remove
2327         uniconv/u32-strconv-to-locale.
2328         (configure.ac): Bump version number.
2329
2330 2010-05-24  Bruno Haible  <bruno@clisp.org>
2331
2332         Avoid a test failure on NetBSD 5.0.
2333         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2334         an iconv() bug.
2335
2336 2010-05-24  Bruno Haible  <bruno@clisp.org>
2337
2338         Adjust #include directive style.
2339         * modules/regex (Includes): Recommend to write <regex.h>.
2340
2341 2010-05-24  Bruno Haible  <bruno@clisp.org>
2342
2343         regex: Don't require alloca.
2344         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2345         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2346         only inside if (0).
2347
2348 2010-05-23  Jim Meyering  <meyering@redhat.com>
2349
2350         test-renameat.c: include <sys/stat.h>
2351         * tests/test-renameat.c: Include <sys/stat.h>; required for
2352         definition of S_IS* macros.
2353
2354 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2355
2356         Update maintainer documentation for 'relocatable-prog' module.
2357         * doc/relocatable-maint.texi: Update.
2358         Comments by Bruno Haible.
2359
2360 2010-05-23  Bruno Haible  <bruno@clisp.org>
2361
2362         git-merge-changelog: Enable --split-merged-entry by default.
2363         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2364         (usage): Don't mention this option any more.
2365         Reported by Ralf Wildenhues.
2366
2367 2010-05-23  Jim Meyering  <meyering@redhat.com>
2368
2369         test-pwrite: do not leave behind a test file named "out"
2370         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2371         The trivial-looking use of init.sh is really necessary.
2372         It ensures that the temporary file, "out", is created in
2373         a temporary directory, and removed upon termination.
2374         * tests/test-pwrite.sh: Re-add file.
2375         * modules/pwrite-tests: Reference it.
2376
2377 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2378
2379         Fix output redirection buglet in init.sh.
2380         * tests/init.sh: Fix redirection of stderr.
2381
2382 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2383
2384         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2385
2386 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2387
2388         * modules/valgrind-tests: New file.
2389         * m4/valgrind-tests.m4: New file.
2390         * doc/valgrind-tests.texi: New file.
2391         * doc/gnulib.texi (Running self-tests under valgrind): New
2392         section.
2393
2394 2010-05-19  Bruno Haible  <bruno@clisp.org>
2395
2396         Clean up dead code in recent commit.
2397         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2398         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2399         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2400         Suggested by Paolo Bonzini.
2401
2402 2010-05-19  Bruno Haible  <bruno@clisp.org>
2403
2404         Avoid valgrind error reports from libunistring.
2405         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2406         * modules/libunistring (Files): Add it.
2407         * modules/libunistring-optional (Files): Likewise.
2408
2409 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2410             Bruno Haible  <bruno@clisp.org>
2411
2412         New module 'libunistring-optional'.
2413         * modules/libunistring-optional: New file.
2414         * m4/libunistring-base.m4: New file.
2415         * m4/libunistring-optional.m4: New file.
2416         * lib/unicase.in.h: Renamed from lib/unicase.h.
2417         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2418         * lib/unictype.in.h: Renamed from lib/unictype.h.
2419         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2420         * lib/uniname.in.h: Renamed from lib/uniname.h.
2421         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2422         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2423         * lib/unistr.in.h: Renamed from lib/unistr.h.
2424         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2425         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2426         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2427         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2428         gl_LIBUNISTRING. If the library was found, determine the installed
2429         version and set LIBUNISTRING_VERSION.
2430         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2431         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2432         handle a configuration option --with-included-libunistring.
2433         * modules/libunistring (Files): Add m4/absolute-header.m4.
2434         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2435         Add m4/libunistring-base.m4.
2436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2437         (Makefile.am): Build unicase.h from unicase.in.h.
2438         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2439         Add m4/libunistring-base.m4.
2440         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2441         (Makefile.am): Build uniconv.h from uniconv.in.h.
2442         * modules/unictype/base (Files): Use unictype.in.h instead of
2443         unictype.h. Add m4/libunistring-base.m4.
2444         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2445         (Makefile.am): Build unictype.h from unictype.in.h.
2446         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2447         Add m4/libunistring-base.m4.
2448         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2449         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2450         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2451         Add m4/libunistring-base.m4.
2452         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2453         (Makefile.am): Build uniname.h from uniname.in.h.
2454         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2455         Add m4/libunistring-base.m4.
2456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2457         (Makefile.am): Build uninorm.h from uninorm.in.h.
2458         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2459         unistdio.h. Add m4/libunistring-base.m4.
2460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2461         (Makefile.am): Build unistdio.h from unistdio.in.h.
2462         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2463         Add m4/libunistring-base.m4.
2464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2465         (Makefile.am): Build unistr.h from unistr.in.h.
2466         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2467         Add m4/libunistring-base.m4.
2468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2469         (Makefile.am): Build unitypes.h from unitypes.in.h.
2470         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2471         Add m4/libunistring-base.m4.
2472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2473         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2474         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2475         uniwidth.h. Add m4/libunistring-base.m4.
2476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2477         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2478         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2479         instead of augmenting lib_SOURCES.
2480         * modules/unicase/empty-suffix-context: Likewise.
2481         * modules/unicase/locale-language: Likewise.
2482         * modules/unicase/tolower: Likewise.
2483         * modules/unicase/totitle: Likewise.
2484         * modules/unicase/toupper: Likewise.
2485         * modules/unicase/u8-casecmp: Likewise.
2486         * modules/unicase/u8-casecoll: Likewise.
2487         * modules/unicase/u8-casefold: Likewise.
2488         * modules/unicase/u8-casexfrm: Likewise.
2489         * modules/unicase/u8-ct-casefold: Likewise.
2490         * modules/unicase/u8-ct-tolower: Likewise.
2491         * modules/unicase/u8-ct-totitle: Likewise.
2492         * modules/unicase/u8-ct-toupper: Likewise.
2493         * modules/unicase/u8-is-cased: Likewise.
2494         * modules/unicase/u8-is-casefolded: Likewise.
2495         * modules/unicase/u8-is-lowercase: Likewise.
2496         * modules/unicase/u8-is-titlecase: Likewise.
2497         * modules/unicase/u8-is-uppercase: Likewise.
2498         * modules/unicase/u8-prefix-context: Likewise.
2499         * modules/unicase/u8-suffix-context: Likewise.
2500         * modules/unicase/u8-tolower: Likewise.
2501         * modules/unicase/u8-totitle: Likewise.
2502         * modules/unicase/u8-toupper: Likewise.
2503         * modules/unicase/u16-casecmp: Likewise.
2504         * modules/unicase/u16-casecoll: Likewise.
2505         * modules/unicase/u16-casefold: Likewise.
2506         * modules/unicase/u16-casexfrm: Likewise.
2507         * modules/unicase/u16-ct-casefold: Likewise.
2508         * modules/unicase/u16-ct-tolower: Likewise.
2509         * modules/unicase/u16-ct-totitle: Likewise.
2510         * modules/unicase/u16-ct-toupper: Likewise.
2511         * modules/unicase/u16-is-cased: Likewise.
2512         * modules/unicase/u16-is-casefolded: Likewise.
2513         * modules/unicase/u16-is-lowercase: Likewise.
2514         * modules/unicase/u16-is-titlecase: Likewise.
2515         * modules/unicase/u16-is-uppercase: Likewise.
2516         * modules/unicase/u16-prefix-context: Likewise.
2517         * modules/unicase/u16-suffix-context: Likewise.
2518         * modules/unicase/u16-tolower: Likewise.
2519         * modules/unicase/u16-totitle: Likewise.
2520         * modules/unicase/u16-toupper: Likewise.
2521         * modules/unicase/u32-casecmp: Likewise.
2522         * modules/unicase/u32-casecoll: Likewise.
2523         * modules/unicase/u32-casefold: Likewise.
2524         * modules/unicase/u32-casexfrm: Likewise.
2525         * modules/unicase/u32-ct-casefold: Likewise.
2526         * modules/unicase/u32-ct-tolower: Likewise.
2527         * modules/unicase/u32-ct-totitle: Likewise.
2528         * modules/unicase/u32-ct-toupper: Likewise.
2529         * modules/unicase/u32-is-cased: Likewise.
2530         * modules/unicase/u32-is-casefolded: Likewise.
2531         * modules/unicase/u32-is-lowercase: Likewise.
2532         * modules/unicase/u32-is-titlecase: Likewise.
2533         * modules/unicase/u32-is-uppercase: Likewise.
2534         * modules/unicase/u32-prefix-context: Likewise.
2535         * modules/unicase/u32-suffix-context: Likewise.
2536         * modules/unicase/u32-tolower: Likewise.
2537         * modules/unicase/u32-totitle: Likewise.
2538         * modules/unicase/u32-toupper: Likewise.
2539         * modules/unicase/ulc-casecmp: Likewise.
2540         * modules/unicase/ulc-casecoll: Likewise.
2541         * modules/unicase/ulc-casexfrm: Likewise.
2542         * modules/uniconv/u8-conv-from-enc: Likewise.
2543         * modules/uniconv/u8-conv-to-enc: Likewise.
2544         * modules/uniconv/u8-strconv-from-enc: Likewise.
2545         * modules/uniconv/u8-strconv-from-locale: Likewise.
2546         * modules/uniconv/u8-strconv-to-enc: Likewise.
2547         * modules/uniconv/u8-strconv-to-locale: Likewise.
2548         * modules/uniconv/u16-conv-from-enc: Likewise.
2549         * modules/uniconv/u16-conv-to-enc: Likewise.
2550         * modules/uniconv/u16-strconv-from-enc: Likewise.
2551         * modules/uniconv/u16-strconv-from-locale: Likewise.
2552         * modules/uniconv/u16-strconv-to-enc: Likewise.
2553         * modules/uniconv/u16-strconv-to-locale: Likewise.
2554         * modules/uniconv/u32-conv-from-enc: Likewise.
2555         * modules/uniconv/u32-conv-to-enc: Likewise.
2556         * modules/uniconv/u32-strconv-from-enc: Likewise.
2557         * modules/uniconv/u32-strconv-from-locale: Likewise.
2558         * modules/uniconv/u32-strconv-to-enc: Likewise.
2559         * modules/uniconv/u32-strconv-to-locale: Likewise.
2560         * modules/unictype/bidicategory-byname: Likewise.
2561         * modules/unictype/bidicategory-name: Likewise.
2562         * modules/unictype/bidicategory-of: Likewise.
2563         * modules/unictype/bidicategory-test: Likewise.
2564         * modules/unictype/block-list: Likewise.
2565         * modules/unictype/block-test: Likewise.
2566         * modules/unictype/category-C: Likewise.
2567         * modules/unictype/category-Cc: Likewise.
2568         * modules/unictype/category-Cf: Likewise.
2569         * modules/unictype/category-Cn: Likewise.
2570         * modules/unictype/category-Co: Likewise.
2571         * modules/unictype/category-Cs: Likewise.
2572         * modules/unictype/category-L: Likewise.
2573         * modules/unictype/category-Ll: Likewise.
2574         * modules/unictype/category-Lm: Likewise.
2575         * modules/unictype/category-Lo: Likewise.
2576         * modules/unictype/category-Lt: Likewise.
2577         * modules/unictype/category-Lu: Likewise.
2578         * modules/unictype/category-M: Likewise.
2579         * modules/unictype/category-Mc: Likewise.
2580         * modules/unictype/category-Me: Likewise.
2581         * modules/unictype/category-Mn: Likewise.
2582         * modules/unictype/category-N: Likewise.
2583         * modules/unictype/category-Nd: Likewise.
2584         * modules/unictype/category-Nl: Likewise.
2585         * modules/unictype/category-No: Likewise.
2586         * modules/unictype/category-P: Likewise.
2587         * modules/unictype/category-Pc: Likewise.
2588         * modules/unictype/category-Pd: Likewise.
2589         * modules/unictype/category-Pe: Likewise.
2590         * modules/unictype/category-Pf: Likewise.
2591         * modules/unictype/category-Pi: Likewise.
2592         * modules/unictype/category-Po: Likewise.
2593         * modules/unictype/category-Ps: Likewise.
2594         * modules/unictype/category-S: Likewise.
2595         * modules/unictype/category-Sc: Likewise.
2596         * modules/unictype/category-Sk: Likewise.
2597         * modules/unictype/category-Sm: Likewise.
2598         * modules/unictype/category-So: Likewise.
2599         * modules/unictype/category-Z: Likewise.
2600         * modules/unictype/category-Zl: Likewise.
2601         * modules/unictype/category-Zp: Likewise.
2602         * modules/unictype/category-Zs: Likewise.
2603         * modules/unictype/category-and: Likewise.
2604         * modules/unictype/category-and-not: Likewise.
2605         * modules/unictype/category-byname: Likewise.
2606         * modules/unictype/category-name: Likewise.
2607         * modules/unictype/category-none: Likewise.
2608         * modules/unictype/category-of: Likewise.
2609         * modules/unictype/category-or: Likewise.
2610         * modules/unictype/category-test: Likewise.
2611         * modules/unictype/combining-class: Likewise.
2612         * modules/unictype/ctype-alnum: Likewise.
2613         * modules/unictype/ctype-alpha: Likewise.
2614         * modules/unictype/ctype-blank: Likewise.
2615         * modules/unictype/ctype-cntrl: Likewise.
2616         * modules/unictype/ctype-digit: Likewise.
2617         * modules/unictype/ctype-graph: Likewise.
2618         * modules/unictype/ctype-lower: Likewise.
2619         * modules/unictype/ctype-print: Likewise.
2620         * modules/unictype/ctype-punct: Likewise.
2621         * modules/unictype/ctype-space: Likewise.
2622         * modules/unictype/ctype-upper: Likewise.
2623         * modules/unictype/ctype-xdigit: Likewise.
2624         * modules/unictype/decimal-digit: Likewise.
2625         * modules/unictype/digit: Likewise.
2626         * modules/unictype/mirror: Likewise.
2627         * modules/unictype/numeric: Likewise.
2628         * modules/unictype/property-alphabetic: Likewise.
2629         * modules/unictype/property-ascii-hex-digit: Likewise.
2630         * modules/unictype/property-bidi-arabic-digit: Likewise.
2631         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2632         * modules/unictype/property-bidi-block-separator: Likewise.
2633         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2634         * modules/unictype/property-bidi-common-separator: Likewise.
2635         * modules/unictype/property-bidi-control: Likewise.
2636         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2637         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2638         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2639         * modules/unictype/property-bidi-european-digit: Likewise.
2640         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2641         * modules/unictype/property-bidi-left-to-right: Likewise.
2642         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2643         * modules/unictype/property-bidi-other-neutral: Likewise.
2644         * modules/unictype/property-bidi-pdf: Likewise.
2645         * modules/unictype/property-bidi-segment-separator: Likewise.
2646         * modules/unictype/property-bidi-whitespace: Likewise.
2647         * modules/unictype/property-byname: Likewise.
2648         * modules/unictype/property-combining: Likewise.
2649         * modules/unictype/property-composite: Likewise.
2650         * modules/unictype/property-currency-symbol: Likewise.
2651         * modules/unictype/property-dash: Likewise.
2652         * modules/unictype/property-decimal-digit: Likewise.
2653         * modules/unictype/property-default-ignorable-code-point: Likewise.
2654         * modules/unictype/property-deprecated: Likewise.
2655         * modules/unictype/property-diacritic: Likewise.
2656         * modules/unictype/property-extender: Likewise.
2657         * modules/unictype/property-format-control: Likewise.
2658         * modules/unictype/property-grapheme-base: Likewise.
2659         * modules/unictype/property-grapheme-extend: Likewise.
2660         * modules/unictype/property-grapheme-link: Likewise.
2661         * modules/unictype/property-hex-digit: Likewise.
2662         * modules/unictype/property-hyphen: Likewise.
2663         * modules/unictype/property-id-continue: Likewise.
2664         * modules/unictype/property-id-start: Likewise.
2665         * modules/unictype/property-ideographic: Likewise.
2666         * modules/unictype/property-ids-binary-operator: Likewise.
2667         * modules/unictype/property-ids-trinary-operator: Likewise.
2668         * modules/unictype/property-ignorable-control: Likewise.
2669         * modules/unictype/property-iso-control: Likewise.
2670         * modules/unictype/property-join-control: Likewise.
2671         * modules/unictype/property-left-of-pair: Likewise.
2672         * modules/unictype/property-line-separator: Likewise.
2673         * modules/unictype/property-logical-order-exception: Likewise.
2674         * modules/unictype/property-lowercase: Likewise.
2675         * modules/unictype/property-math: Likewise.
2676         * modules/unictype/property-non-break: Likewise.
2677         * modules/unictype/property-not-a-character: Likewise.
2678         * modules/unictype/property-numeric: Likewise.
2679         * modules/unictype/property-other-alphabetic: Likewise.
2680         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2681         * modules/unictype/property-other-grapheme-extend: Likewise.
2682         * modules/unictype/property-other-id-continue: Likewise.
2683         * modules/unictype/property-other-id-start: Likewise.
2684         * modules/unictype/property-other-lowercase: Likewise.
2685         * modules/unictype/property-other-math: Likewise.
2686         * modules/unictype/property-other-uppercase: Likewise.
2687         * modules/unictype/property-paired-punctuation: Likewise.
2688         * modules/unictype/property-paragraph-separator: Likewise.
2689         * modules/unictype/property-pattern-syntax: Likewise.
2690         * modules/unictype/property-pattern-white-space: Likewise.
2691         * modules/unictype/property-private-use: Likewise.
2692         * modules/unictype/property-punctuation: Likewise.
2693         * modules/unictype/property-quotation-mark: Likewise.
2694         * modules/unictype/property-radical: Likewise.
2695         * modules/unictype/property-sentence-terminal: Likewise.
2696         * modules/unictype/property-soft-dotted: Likewise.
2697         * modules/unictype/property-space: Likewise.
2698         * modules/unictype/property-terminal-punctuation: Likewise.
2699         * modules/unictype/property-test: Likewise.
2700         * modules/unictype/property-titlecase: Likewise.
2701         * modules/unictype/property-unassigned-code-value: Likewise.
2702         * modules/unictype/property-unified-ideograph: Likewise.
2703         * modules/unictype/property-uppercase: Likewise.
2704         * modules/unictype/property-variation-selector: Likewise.
2705         * modules/unictype/property-white-space: Likewise.
2706         * modules/unictype/property-xid-continue: Likewise.
2707         * modules/unictype/property-xid-start: Likewise.
2708         * modules/unictype/property-zero-width: Likewise.
2709         * modules/unictype/scripts: Likewise.
2710         * modules/unictype/syntax-c-ident: Likewise.
2711         * modules/unictype/syntax-c-whitespace: Likewise.
2712         * modules/unictype/syntax-java-ident: Likewise.
2713         * modules/unictype/syntax-java-whitespace: Likewise.
2714         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2715         * modules/unilbrk/u8-width-linebreaks: Likewise.
2716         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2717         * modules/unilbrk/u16-width-linebreaks: Likewise.
2718         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2719         * modules/unilbrk/u32-width-linebreaks: Likewise.
2720         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2721         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2722         * modules/uniname/uniname: Likewise.
2723         * modules/uninorm/canonical-decomposition: Likewise.
2724         * modules/uninorm/composition: Likewise.
2725         * modules/uninorm/decomposing-form: Likewise.
2726         * modules/uninorm/decomposition: Likewise.
2727         * modules/uninorm/filter: Likewise.
2728         * modules/uninorm/nfc: Likewise.
2729         * modules/uninorm/nfd: Likewise.
2730         * modules/uninorm/nfkc: Likewise.
2731         * modules/uninorm/nfkd: Likewise.
2732         * modules/uninorm/u8-normalize: Likewise.
2733         * modules/uninorm/u8-normcmp: Likewise.
2734         * modules/uninorm/u8-normcoll: Likewise.
2735         * modules/uninorm/u8-normxfrm: Likewise.
2736         * modules/uninorm/u16-normalize: Likewise.
2737         * modules/uninorm/u16-normcmp: Likewise.
2738         * modules/uninorm/u16-normcoll: Likewise.
2739         * modules/uninorm/u16-normxfrm: Likewise.
2740         * modules/uninorm/u32-normalize: Likewise.
2741         * modules/uninorm/u32-normcmp: Likewise.
2742         * modules/uninorm/u32-normcoll: Likewise.
2743         * modules/uninorm/u32-normxfrm: Likewise.
2744         * modules/unistdio/u8-asnprintf: Likewise.
2745         * modules/unistdio/u8-asprintf: Likewise.
2746         * modules/unistdio/u8-snprintf: Likewise.
2747         * modules/unistdio/u8-sprintf: Likewise.
2748         * modules/unistdio/u8-u8-asnprintf: Likewise.
2749         * modules/unistdio/u8-u8-asprintf: Likewise.
2750         * modules/unistdio/u8-u8-snprintf: Likewise.
2751         * modules/unistdio/u8-u8-sprintf: Likewise.
2752         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2753         * modules/unistdio/u8-u8-vasprintf: Likewise.
2754         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2755         * modules/unistdio/u8-u8-vsprintf: Likewise.
2756         * modules/unistdio/u8-vasnprintf: Likewise.
2757         * modules/unistdio/u8-vasprintf: Likewise.
2758         * modules/unistdio/u8-vsnprintf: Likewise.
2759         * modules/unistdio/u8-vsprintf: Likewise.
2760         * modules/unistdio/u16-asnprintf: Likewise.
2761         * modules/unistdio/u16-asprintf: Likewise.
2762         * modules/unistdio/u16-snprintf: Likewise.
2763         * modules/unistdio/u16-sprintf: Likewise.
2764         * modules/unistdio/u16-u16-asnprintf: Likewise.
2765         * modules/unistdio/u16-u16-asprintf: Likewise.
2766         * modules/unistdio/u16-u16-snprintf: Likewise.
2767         * modules/unistdio/u16-u16-sprintf: Likewise.
2768         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2769         * modules/unistdio/u16-u16-vasprintf: Likewise.
2770         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2771         * modules/unistdio/u16-u16-vsprintf: Likewise.
2772         * modules/unistdio/u16-vasnprintf: Likewise.
2773         * modules/unistdio/u16-vasprintf: Likewise.
2774         * modules/unistdio/u16-vsnprintf: Likewise.
2775         * modules/unistdio/u16-vsprintf: Likewise.
2776         * modules/unistdio/u32-asnprintf: Likewise.
2777         * modules/unistdio/u32-asprintf: Likewise.
2778         * modules/unistdio/u32-snprintf: Likewise.
2779         * modules/unistdio/u32-sprintf: Likewise.
2780         * modules/unistdio/u32-u32-asnprintf: Likewise.
2781         * modules/unistdio/u32-u32-asprintf: Likewise.
2782         * modules/unistdio/u32-u32-snprintf: Likewise.
2783         * modules/unistdio/u32-u32-sprintf: Likewise.
2784         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2785         * modules/unistdio/u32-u32-vasprintf: Likewise.
2786         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2787         * modules/unistdio/u32-u32-vsprintf: Likewise.
2788         * modules/unistdio/u32-vasnprintf: Likewise.
2789         * modules/unistdio/u32-vasprintf: Likewise.
2790         * modules/unistdio/u32-vsnprintf: Likewise.
2791         * modules/unistdio/u32-vsprintf: Likewise.
2792         * modules/unistdio/ulc-asnprintf: Likewise.
2793         * modules/unistdio/ulc-asprintf: Likewise.
2794         * modules/unistdio/ulc-fprintf: Likewise.
2795         * modules/unistdio/ulc-snprintf: Likewise.
2796         * modules/unistdio/ulc-sprintf: Likewise.
2797         * modules/unistdio/ulc-vasnprintf: Likewise.
2798         * modules/unistdio/ulc-vasprintf: Likewise.
2799         * modules/unistdio/ulc-vfprintf: Likewise.
2800         * modules/unistdio/ulc-vsnprintf: Likewise.
2801         * modules/unistdio/ulc-vsprintf: Likewise.
2802         * modules/unistr/u8-check: Likewise.
2803         * modules/unistr/u8-chr: Likewise.
2804         * modules/unistr/u8-cmp: Likewise.
2805         * modules/unistr/u8-cmp2: Likewise.
2806         * modules/unistr/u8-cpy: Likewise.
2807         * modules/unistr/u8-cpy-alloc: Likewise.
2808         * modules/unistr/u8-endswith: Likewise.
2809         * modules/unistr/u8-mblen: Likewise.
2810         * modules/unistr/u8-mbsnlen: Likewise.
2811         * modules/unistr/u8-mbtouc: Likewise.
2812         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2813         * modules/unistr/u8-mbtoucr: Likewise.
2814         * modules/unistr/u8-move: Likewise.
2815         * modules/unistr/u8-next: Likewise.
2816         * modules/unistr/u8-prev: Likewise.
2817         * modules/unistr/u8-set: Likewise.
2818         * modules/unistr/u8-startswith: Likewise.
2819         * modules/unistr/u8-stpcpy: Likewise.
2820         * modules/unistr/u8-stpncpy: Likewise.
2821         * modules/unistr/u8-strcat: Likewise.
2822         * modules/unistr/u8-strchr: Likewise.
2823         * modules/unistr/u8-strcmp: Likewise.
2824         * modules/unistr/u8-strcoll: Likewise.
2825         * modules/unistr/u8-strcpy: Likewise.
2826         * modules/unistr/u8-strcspn: Likewise.
2827         * modules/unistr/u8-strdup: Likewise.
2828         * modules/unistr/u8-strlen: Likewise.
2829         * modules/unistr/u8-strmblen: Likewise.
2830         * modules/unistr/u8-strmbtouc: Likewise.
2831         * modules/unistr/u8-strncat: Likewise.
2832         * modules/unistr/u8-strncmp: Likewise.
2833         * modules/unistr/u8-strncpy: Likewise.
2834         * modules/unistr/u8-strnlen: Likewise.
2835         * modules/unistr/u8-strpbrk: Likewise.
2836         * modules/unistr/u8-strrchr: Likewise.
2837         * modules/unistr/u8-strspn: Likewise.
2838         * modules/unistr/u8-strstr: Likewise.
2839         * modules/unistr/u8-strtok: Likewise.
2840         * modules/unistr/u8-to-u16: Likewise.
2841         * modules/unistr/u8-to-u32: Likewise.
2842         * modules/unistr/u8-uctomb: Likewise.
2843         * modules/unistr/u16-check: Likewise.
2844         * modules/unistr/u16-chr: Likewise.
2845         * modules/unistr/u16-cmp: Likewise.
2846         * modules/unistr/u16-cmp2: Likewise.
2847         * modules/unistr/u16-cpy: Likewise.
2848         * modules/unistr/u16-cpy-alloc: Likewise.
2849         * modules/unistr/u16-endswith: Likewise.
2850         * modules/unistr/u16-mblen: Likewise.
2851         * modules/unistr/u16-mbsnlen: Likewise.
2852         * modules/unistr/u16-mbtouc: Likewise.
2853         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2854         * modules/unistr/u16-mbtoucr: Likewise.
2855         * modules/unistr/u16-move: Likewise.
2856         * modules/unistr/u16-next: Likewise.
2857         * modules/unistr/u16-prev: Likewise.
2858         * modules/unistr/u16-set: Likewise.
2859         * modules/unistr/u16-startswith: Likewise.
2860         * modules/unistr/u16-stpcpy: Likewise.
2861         * modules/unistr/u16-stpncpy: Likewise.
2862         * modules/unistr/u16-strcat: Likewise.
2863         * modules/unistr/u16-strchr: Likewise.
2864         * modules/unistr/u16-strcmp: Likewise.
2865         * modules/unistr/u16-strcoll: Likewise.
2866         * modules/unistr/u16-strcpy: Likewise.
2867         * modules/unistr/u16-strcspn: Likewise.
2868         * modules/unistr/u16-strdup: Likewise.
2869         * modules/unistr/u16-strlen: Likewise.
2870         * modules/unistr/u16-strmblen: Likewise.
2871         * modules/unistr/u16-strmbtouc: Likewise.
2872         * modules/unistr/u16-strncat: Likewise.
2873         * modules/unistr/u16-strncmp: Likewise.
2874         * modules/unistr/u16-strncpy: Likewise.
2875         * modules/unistr/u16-strnlen: Likewise.
2876         * modules/unistr/u16-strpbrk: Likewise.
2877         * modules/unistr/u16-strrchr: Likewise.
2878         * modules/unistr/u16-strspn: Likewise.
2879         * modules/unistr/u16-strstr: Likewise.
2880         * modules/unistr/u16-strtok: Likewise.
2881         * modules/unistr/u16-to-u32: Likewise.
2882         * modules/unistr/u16-to-u8: Likewise.
2883         * modules/unistr/u16-uctomb: Likewise.
2884         * modules/unistr/u32-check: Likewise.
2885         * modules/unistr/u32-chr: Likewise.
2886         * modules/unistr/u32-cmp: Likewise.
2887         * modules/unistr/u32-cmp2: Likewise.
2888         * modules/unistr/u32-cpy: Likewise.
2889         * modules/unistr/u32-cpy-alloc: Likewise.
2890         * modules/unistr/u32-endswith: Likewise.
2891         * modules/unistr/u32-mblen: Likewise.
2892         * modules/unistr/u32-mbsnlen: Likewise.
2893         * modules/unistr/u32-mbtouc: Likewise.
2894         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2895         * modules/unistr/u32-mbtoucr: Likewise.
2896         * modules/unistr/u32-move: Likewise.
2897         * modules/unistr/u32-next: Likewise.
2898         * modules/unistr/u32-prev: Likewise.
2899         * modules/unistr/u32-set: Likewise.
2900         * modules/unistr/u32-startswith: Likewise.
2901         * modules/unistr/u32-stpcpy: Likewise.
2902         * modules/unistr/u32-stpncpy: Likewise.
2903         * modules/unistr/u32-strcat: Likewise.
2904         * modules/unistr/u32-strchr: Likewise.
2905         * modules/unistr/u32-strcmp: Likewise.
2906         * modules/unistr/u32-strcoll: Likewise.
2907         * modules/unistr/u32-strcpy: Likewise.
2908         * modules/unistr/u32-strcspn: Likewise.
2909         * modules/unistr/u32-strdup: Likewise.
2910         * modules/unistr/u32-strlen: Likewise.
2911         * modules/unistr/u32-strmblen: Likewise.
2912         * modules/unistr/u32-strmbtouc: Likewise.
2913         * modules/unistr/u32-strncat: Likewise.
2914         * modules/unistr/u32-strncmp: Likewise.
2915         * modules/unistr/u32-strncpy: Likewise.
2916         * modules/unistr/u32-strnlen: Likewise.
2917         * modules/unistr/u32-strpbrk: Likewise.
2918         * modules/unistr/u32-strrchr: Likewise.
2919         * modules/unistr/u32-strspn: Likewise.
2920         * modules/unistr/u32-strstr: Likewise.
2921         * modules/unistr/u32-strtok: Likewise.
2922         * modules/unistr/u32-to-u16: Likewise.
2923         * modules/unistr/u32-to-u8: Likewise.
2924         * modules/unistr/u32-uctomb: Likewise.
2925         * modules/uniwbrk/u8-wordbreaks: Likewise.
2926         * modules/uniwbrk/u16-wordbreaks: Likewise.
2927         * modules/uniwbrk/u32-wordbreaks: Likewise.
2928         * modules/uniwbrk/ulc-wordbreaks: Likewise.
2929         * modules/uniwbrk/wordbreak-property: Likewise.
2930         * modules/uniwidth/u8-strwidth: Likewise.
2931         * modules/uniwidth/u8-width: Likewise.
2932         * modules/uniwidth/u16-strwidth: Likewise.
2933         * modules/uniwidth/u16-width: Likewise.
2934         * modules/uniwidth/u32-strwidth: Likewise.
2935         * modules/uniwidth/u32-width: Likewise.
2936         * modules/uniwidth/width: Likewise.
2937         * modules/unicase/cased-tests (Makefile.am): Link all test programs
2938         with $(LIBUNISTRING).
2939         * modules/unicase/ignorable-tests: Likewise.
2940         * modules/unicase/locale-language-tests: Likewise.
2941         * modules/unicase/tolower-tests: Likewise.
2942         * modules/unicase/totitle-tests: Likewise.
2943         * modules/unicase/toupper-tests: Likewise.
2944         * modules/unicase/u8-casecmp-tests: Likewise.
2945         * modules/unicase/u8-casecoll-tests: Likewise.
2946         * modules/unicase/u8-casefold-tests: Likewise.
2947         * modules/unicase/u8-is-cased-tests: Likewise.
2948         * modules/unicase/u8-is-casefolded-tests: Likewise.
2949         * modules/unicase/u8-is-lowercase-tests: Likewise.
2950         * modules/unicase/u8-is-titlecase-tests: Likewise.
2951         * modules/unicase/u8-is-uppercase-tests: Likewise.
2952         * modules/unicase/u8-tolower-tests: Likewise.
2953         * modules/unicase/u8-totitle-tests: Likewise.
2954         * modules/unicase/u8-toupper-tests: Likewise.
2955         * modules/unicase/u16-casecmp-tests: Likewise.
2956         * modules/unicase/u16-casecoll-tests: Likewise.
2957         * modules/unicase/u16-casefold-tests: Likewise.
2958         * modules/unicase/u16-is-cased-tests: Likewise.
2959         * modules/unicase/u16-is-casefolded-tests: Likewise.
2960         * modules/unicase/u16-is-lowercase-tests: Likewise.
2961         * modules/unicase/u16-is-titlecase-tests: Likewise.
2962         * modules/unicase/u16-is-uppercase-tests: Likewise.
2963         * modules/unicase/u16-tolower-tests: Likewise.
2964         * modules/unicase/u16-totitle-tests: Likewise.
2965         * modules/unicase/u16-toupper-tests: Likewise.
2966         * modules/unicase/u32-casecmp-tests: Likewise.
2967         * modules/unicase/u32-casecoll-tests: Likewise.
2968         * modules/unicase/u32-casefold-tests: Likewise.
2969         * modules/unicase/u32-is-cased-tests: Likewise.
2970         * modules/unicase/u32-is-casefolded-tests: Likewise.
2971         * modules/unicase/u32-is-lowercase-tests: Likewise.
2972         * modules/unicase/u32-is-titlecase-tests: Likewise.
2973         * modules/unicase/u32-is-uppercase-tests: Likewise.
2974         * modules/unicase/u32-tolower-tests: Likewise.
2975         * modules/unicase/u32-totitle-tests: Likewise.
2976         * modules/unicase/u32-toupper-tests: Likewise.
2977         * modules/unicase/ulc-casecmp-tests: Likewise.
2978         * modules/unicase/ulc-casecoll-tests: Likewise.
2979         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
2980         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
2981         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
2982         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
2983         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
2984         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
2985         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
2986         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
2987         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
2988         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
2989         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
2990         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
2991         * modules/unictype/bidicategory-byname-tests: Likewise.
2992         * modules/unictype/bidicategory-name-tests: Likewise.
2993         * modules/unictype/bidicategory-of-tests: Likewise.
2994         * modules/unictype/bidicategory-test-tests: Likewise.
2995         * modules/unictype/block-list-tests: Likewise.
2996         * modules/unictype/block-of-tests: Likewise.
2997         * modules/unictype/block-test-tests: Likewise.
2998         * modules/unictype/category-C-tests: Likewise.
2999         * modules/unictype/category-Cc-tests: Likewise.
3000         * modules/unictype/category-Cf-tests: Likewise.
3001         * modules/unictype/category-Cn-tests: Likewise.
3002         * modules/unictype/category-Co-tests: Likewise.
3003         * modules/unictype/category-Cs-tests: Likewise.
3004         * modules/unictype/category-L-tests: Likewise.
3005         * modules/unictype/category-Ll-tests: Likewise.
3006         * modules/unictype/category-Lm-tests: Likewise.
3007         * modules/unictype/category-Lo-tests: Likewise.
3008         * modules/unictype/category-Lt-tests: Likewise.
3009         * modules/unictype/category-Lu-tests: Likewise.
3010         * modules/unictype/category-M-tests: Likewise.
3011         * modules/unictype/category-Mc-tests: Likewise.
3012         * modules/unictype/category-Me-tests: Likewise.
3013         * modules/unictype/category-Mn-tests: Likewise.
3014         * modules/unictype/category-N-tests: Likewise.
3015         * modules/unictype/category-Nd-tests: Likewise.
3016         * modules/unictype/category-Nl-tests: Likewise.
3017         * modules/unictype/category-No-tests: Likewise.
3018         * modules/unictype/category-P-tests: Likewise.
3019         * modules/unictype/category-Pc-tests: Likewise.
3020         * modules/unictype/category-Pd-tests: Likewise.
3021         * modules/unictype/category-Pe-tests: Likewise.
3022         * modules/unictype/category-Pf-tests: Likewise.
3023         * modules/unictype/category-Pi-tests: Likewise.
3024         * modules/unictype/category-Po-tests: Likewise.
3025         * modules/unictype/category-Ps-tests: Likewise.
3026         * modules/unictype/category-S-tests: Likewise.
3027         * modules/unictype/category-Sc-tests: Likewise.
3028         * modules/unictype/category-Sk-tests: Likewise.
3029         * modules/unictype/category-Sm-tests: Likewise.
3030         * modules/unictype/category-So-tests: Likewise.
3031         * modules/unictype/category-Z-tests: Likewise.
3032         * modules/unictype/category-Zl-tests: Likewise.
3033         * modules/unictype/category-Zp-tests: Likewise.
3034         * modules/unictype/category-Zs-tests: Likewise.
3035         * modules/unictype/category-and-not-tests: Likewise.
3036         * modules/unictype/category-and-tests: Likewise.
3037         * modules/unictype/category-byname-tests: Likewise.
3038         * modules/unictype/category-name-tests: Likewise.
3039         * modules/unictype/category-none-tests: Likewise.
3040         * modules/unictype/category-of-tests: Likewise.
3041         * modules/unictype/category-or-tests: Likewise.
3042         * modules/unictype/category-test-withtable-tests: Likewise.
3043         * modules/unictype/combining-class-tests: Likewise.
3044         * modules/unictype/ctype-alnum-tests: Likewise.
3045         * modules/unictype/ctype-alpha-tests: Likewise.
3046         * modules/unictype/ctype-blank-tests: Likewise.
3047         * modules/unictype/ctype-cntrl-tests: Likewise.
3048         * modules/unictype/ctype-digit-tests: Likewise.
3049         * modules/unictype/ctype-graph-tests: Likewise.
3050         * modules/unictype/ctype-lower-tests: Likewise.
3051         * modules/unictype/ctype-print-tests: Likewise.
3052         * modules/unictype/ctype-punct-tests: Likewise.
3053         * modules/unictype/ctype-space-tests: Likewise.
3054         * modules/unictype/ctype-upper-tests: Likewise.
3055         * modules/unictype/ctype-xdigit-tests: Likewise.
3056         * modules/unictype/decimal-digit-tests: Likewise.
3057         * modules/unictype/digit-tests: Likewise.
3058         * modules/unictype/mirror-tests: Likewise.
3059         * modules/unictype/numeric-tests: Likewise.
3060         * modules/unictype/property-alphabetic-tests: Likewise.
3061         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3062         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3063         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3064         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3065         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3066         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3067         * modules/unictype/property-bidi-control-tests: Likewise.
3068         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3069         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3070         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3071         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3072         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3073         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3074         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3075         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3076         * modules/unictype/property-bidi-pdf-tests: Likewise.
3077         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3078         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3079         * modules/unictype/property-byname-tests: Likewise.
3080         * modules/unictype/property-combining-tests: Likewise.
3081         * modules/unictype/property-composite-tests: Likewise.
3082         * modules/unictype/property-currency-symbol-tests: Likewise.
3083         * modules/unictype/property-dash-tests: Likewise.
3084         * modules/unictype/property-decimal-digit-tests: Likewise.
3085         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3086         * modules/unictype/property-deprecated-tests: Likewise.
3087         * modules/unictype/property-diacritic-tests: Likewise.
3088         * modules/unictype/property-extender-tests: Likewise.
3089         * modules/unictype/property-format-control-tests: Likewise.
3090         * modules/unictype/property-grapheme-base-tests: Likewise.
3091         * modules/unictype/property-grapheme-extend-tests: Likewise.
3092         * modules/unictype/property-grapheme-link-tests: Likewise.
3093         * modules/unictype/property-hex-digit-tests: Likewise.
3094         * modules/unictype/property-hyphen-tests: Likewise.
3095         * modules/unictype/property-id-continue-tests: Likewise.
3096         * modules/unictype/property-id-start-tests: Likewise.
3097         * modules/unictype/property-ideographic-tests: Likewise.
3098         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3099         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3100         * modules/unictype/property-ignorable-control-tests: Likewise.
3101         * modules/unictype/property-iso-control-tests: Likewise.
3102         * modules/unictype/property-join-control-tests: Likewise.
3103         * modules/unictype/property-left-of-pair-tests: Likewise.
3104         * modules/unictype/property-line-separator-tests: Likewise.
3105         * modules/unictype/property-logical-order-exception-tests: Likewise.
3106         * modules/unictype/property-lowercase-tests: Likewise.
3107         * modules/unictype/property-math-tests: Likewise.
3108         * modules/unictype/property-non-break-tests: Likewise.
3109         * modules/unictype/property-not-a-character-tests: Likewise.
3110         * modules/unictype/property-numeric-tests: Likewise.
3111         * modules/unictype/property-other-alphabetic-tests: Likewise.
3112         * modules/unictype/property-other-default-ignorable-code-point-tests:
3113         Likewise.
3114         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3115         * modules/unictype/property-other-id-continue-tests: Likewise.
3116         * modules/unictype/property-other-id-start-tests: Likewise.
3117         * modules/unictype/property-other-lowercase-tests: Likewise.
3118         * modules/unictype/property-other-math-tests: Likewise.
3119         * modules/unictype/property-other-uppercase-tests: Likewise.
3120         * modules/unictype/property-paired-punctuation-tests: Likewise.
3121         * modules/unictype/property-paragraph-separator-tests: Likewise.
3122         * modules/unictype/property-pattern-syntax-tests: Likewise.
3123         * modules/unictype/property-pattern-white-space-tests: Likewise.
3124         * modules/unictype/property-private-use-tests: Likewise.
3125         * modules/unictype/property-punctuation-tests: Likewise.
3126         * modules/unictype/property-quotation-mark-tests: Likewise.
3127         * modules/unictype/property-radical-tests: Likewise.
3128         * modules/unictype/property-sentence-terminal-tests: Likewise.
3129         * modules/unictype/property-soft-dotted-tests: Likewise.
3130         * modules/unictype/property-space-tests: Likewise.
3131         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3132         * modules/unictype/property-test-tests: Likewise.
3133         * modules/unictype/property-titlecase-tests: Likewise.
3134         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3135         * modules/unictype/property-unified-ideograph-tests: Likewise.
3136         * modules/unictype/property-uppercase-tests: Likewise.
3137         * modules/unictype/property-variation-selector-tests: Likewise.
3138         * modules/unictype/property-white-space-tests: Likewise.
3139         * modules/unictype/property-xid-continue-tests: Likewise.
3140         * modules/unictype/property-xid-start-tests: Likewise.
3141         * modules/unictype/property-zero-width-tests: Likewise.
3142         * modules/unictype/scripts-tests: Likewise.
3143         * modules/unictype/syntax-c-ident-tests: Likewise.
3144         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3145         * modules/unictype/syntax-java-ident-tests: Likewise.
3146         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3147         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3148         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3149         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3150         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3151         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3152         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3153         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3154         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3155         * modules/uniname/uniname-tests: Likewise.
3156         * modules/uninorm/canonical-decomposition-tests: Likewise.
3157         * modules/uninorm/compat-decomposition-tests: Likewise.
3158         * modules/uninorm/composition-tests: Likewise.
3159         * modules/uninorm/decomposing-form-tests: Likewise.
3160         * modules/uninorm/decomposition-tests: Likewise.
3161         * modules/uninorm/filter-tests: Likewise.
3162         * modules/uninorm/nfc-tests: Likewise.
3163         * modules/uninorm/nfd-tests: Likewise.
3164         * modules/uninorm/nfkc-tests: Likewise.
3165         * modules/uninorm/nfkd-tests: Likewise.
3166         * modules/uninorm/u8-normcmp-tests: Likewise.
3167         * modules/uninorm/u8-normcoll-tests: Likewise.
3168         * modules/uninorm/u16-normcmp-tests: Likewise.
3169         * modules/uninorm/u16-normcoll-tests: Likewise.
3170         * modules/uninorm/u32-normcmp-tests: Likewise.
3171         * modules/uninorm/u32-normcoll-tests: Likewise.
3172         * modules/unistdio/u8-asnprintf-tests: Likewise.
3173         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3174         * modules/unistdio/u8-vasprintf-tests: Likewise.
3175         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3176         * modules/unistdio/u8-vsprintf-tests: Likewise.
3177         * modules/unistdio/u16-asnprintf-tests: Likewise.
3178         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3179         * modules/unistdio/u16-vasprintf-tests: Likewise.
3180         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3181         * modules/unistdio/u16-vsprintf-tests: Likewise.
3182         * modules/unistdio/u32-asnprintf-tests: Likewise.
3183         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3184         * modules/unistdio/u32-vasprintf-tests: Likewise.
3185         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3186         * modules/unistdio/u32-vsprintf-tests: Likewise.
3187         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3188         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3189         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3190         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3191         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3192         * modules/unistr/u8-check-tests: Likewise.
3193         * modules/unistr/u8-chr-tests: Likewise.
3194         * modules/unistr/u8-cmp-tests: Likewise.
3195         * modules/unistr/u8-cmp2-tests: Likewise.
3196         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3197         * modules/unistr/u8-cpy-tests: Likewise.
3198         * modules/unistr/u8-mblen-tests: Likewise.
3199         * modules/unistr/u8-mbsnlen-tests: Likewise.
3200         * modules/unistr/u8-mbtouc-tests: Likewise.
3201         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3202         * modules/unistr/u8-mbtoucr-tests: Likewise.
3203         * modules/unistr/u8-move-tests: Likewise.
3204         * modules/unistr/u8-next-tests: Likewise.
3205         * modules/unistr/u8-prev-tests: Likewise.
3206         * modules/unistr/u8-set-tests: Likewise.
3207         * modules/unistr/u8-stpcpy-tests: Likewise.
3208         * modules/unistr/u8-stpncpy-tests: Likewise.
3209         * modules/unistr/u8-strcat-tests: Likewise.
3210         * modules/unistr/u8-strcmp-tests: Likewise.
3211         * modules/unistr/u8-strcoll-tests: Likewise.
3212         * modules/unistr/u8-strcpy-tests: Likewise.
3213         * modules/unistr/u8-strdup-tests: Likewise.
3214         * modules/unistr/u8-strlen-tests: Likewise.
3215         * modules/unistr/u8-strmblen-tests: Likewise.
3216         * modules/unistr/u8-strmbtouc-tests: Likewise.
3217         * modules/unistr/u8-strncat-tests: Likewise.
3218         * modules/unistr/u8-strncmp-tests: Likewise.
3219         * modules/unistr/u8-strncpy-tests: Likewise.
3220         * modules/unistr/u8-strnlen-tests: Likewise.
3221         * modules/unistr/u8-to-u16-tests: Likewise.
3222         * modules/unistr/u8-to-u32-tests: Likewise.
3223         * modules/unistr/u8-uctomb-tests: Likewise.
3224         * modules/unistr/u16-check-tests: Likewise.
3225         * modules/unistr/u16-chr-tests: Likewise.
3226         * modules/unistr/u16-cmp-tests: Likewise.
3227         * modules/unistr/u16-cmp2-tests: Likewise.
3228         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3229         * modules/unistr/u16-cpy-tests: Likewise.
3230         * modules/unistr/u16-mblen-tests: Likewise.
3231         * modules/unistr/u16-mbsnlen-tests: Likewise.
3232         * modules/unistr/u16-mbtouc-tests: Likewise.
3233         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3234         * modules/unistr/u16-mbtoucr-tests: Likewise.
3235         * modules/unistr/u16-move-tests: Likewise.
3236         * modules/unistr/u16-next-tests: Likewise.
3237         * modules/unistr/u16-prev-tests: Likewise.
3238         * modules/unistr/u16-set-tests: Likewise.
3239         * modules/unistr/u16-stpcpy-tests: Likewise.
3240         * modules/unistr/u16-stpncpy-tests: Likewise.
3241         * modules/unistr/u16-strcat-tests: Likewise.
3242         * modules/unistr/u16-strcmp-tests: Likewise.
3243         * modules/unistr/u16-strcoll-tests: Likewise.
3244         * modules/unistr/u16-strcpy-tests: Likewise.
3245         * modules/unistr/u16-strdup-tests: Likewise.
3246         * modules/unistr/u16-strlen-tests: Likewise.
3247         * modules/unistr/u16-strmblen-tests: Likewise.
3248         * modules/unistr/u16-strmbtouc-tests: Likewise.
3249         * modules/unistr/u16-strncat-tests: Likewise.
3250         * modules/unistr/u16-strncmp-tests: Likewise.
3251         * modules/unistr/u16-strncpy-tests: Likewise.
3252         * modules/unistr/u16-strnlen-tests: Likewise.
3253         * modules/unistr/u16-to-u32-tests: Likewise.
3254         * modules/unistr/u16-to-u8-tests: Likewise.
3255         * modules/unistr/u16-uctomb-tests: Likewise.
3256         * modules/unistr/u32-check-tests: Likewise.
3257         * modules/unistr/u32-chr-tests: Likewise.
3258         * modules/unistr/u32-cmp-tests: Likewise.
3259         * modules/unistr/u32-cmp2-tests: Likewise.
3260         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3261         * modules/unistr/u32-cpy-tests: Likewise.
3262         * modules/unistr/u32-mblen-tests: Likewise.
3263         * modules/unistr/u32-mbsnlen-tests: Likewise.
3264         * modules/unistr/u32-mbtouc-tests: Likewise.
3265         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3266         * modules/unistr/u32-mbtoucr-tests: Likewise.
3267         * modules/unistr/u32-move-tests: Likewise.
3268         * modules/unistr/u32-next-tests: Likewise.
3269         * modules/unistr/u32-prev-tests: Likewise.
3270         * modules/unistr/u32-set-tests: Likewise.
3271         * modules/unistr/u32-stpcpy-tests: Likewise.
3272         * modules/unistr/u32-stpncpy-tests: Likewise.
3273         * modules/unistr/u32-strcat-tests: Likewise.
3274         * modules/unistr/u32-strcmp-tests: Likewise.
3275         * modules/unistr/u32-strcoll-tests: Likewise.
3276         * modules/unistr/u32-strcpy-tests: Likewise.
3277         * modules/unistr/u32-strdup-tests: Likewise.
3278         * modules/unistr/u32-strlen-tests: Likewise.
3279         * modules/unistr/u32-strmblen-tests: Likewise.
3280         * modules/unistr/u32-strmbtouc-tests: Likewise.
3281         * modules/unistr/u32-strncat-tests: Likewise.
3282         * modules/unistr/u32-strncmp-tests: Likewise.
3283         * modules/unistr/u32-strncpy-tests: Likewise.
3284         * modules/unistr/u32-strnlen-tests: Likewise.
3285         * modules/unistr/u32-to-u16-tests: Likewise.
3286         * modules/unistr/u32-to-u8-tests: Likewise.
3287         * modules/unistr/u32-uctomb-tests: Likewise.
3288         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3289         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3290         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3291         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3292         * modules/uniwidth/u8-strwidth-tests: Likewise.
3293         * modules/uniwidth/u8-width-tests: Likewise.
3294         * modules/uniwidth/u16-strwidth-tests: Likewise.
3295         * modules/uniwidth/u16-width-tests: Likewise.
3296         * modules/uniwidth/u32-strwidth-tests: Likewise.
3297         * modules/uniwidth/u32-width-tests: Likewise.
3298         * modules/uniwidth/width-tests: Likewise.
3299
3300 2010-05-18  Richard Jones  <rjones@redhat.com>
3301
3302         doc: users.txt: list hivex
3303         * users.txt: Add hivex.
3304
3305 2010-05-18  Richard Jones  <rjones@redhat.com>
3306
3307         doc: users.txt: list febootstrap
3308         * users.txt: Add febootstrap.
3309
3310 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3311
3312         bootstrap: fix an error when gnulib is not used as a git submodule
3313         * build-aux/bootstrap (gnulib_path): If its length is zero then
3314         assign "gnulib" to it.
3315         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3316
3317 2010-05-16  Bruno Haible  <bruno@clisp.org>
3318
3319         Avoid autoconf warnings about AM_ICONV.
3320         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3321         2.64.
3322
3323 2010-05-16  Bruno Haible  <bruno@clisp.org>
3324
3325         absolute-header: Make the macro usable in more situations.
3326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3327         from gl_ABSOLUTE_HEADER.
3328         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3329
3330 2010-05-16  James Youngman  <jay@gnu.org>
3331
3332         doc: update users.txt
3333         * users.txt: Add CSSC.
3334
3335 2010-05-16  Jim Meyering  <meyering@redhat.com>
3336
3337         init.sh: fix an error in the previous change; add more comments
3338         * tests/init.sh: Compare exit code in loop against 9, not 2.
3339         Patch by Bruno Haible.
3340         Make the two tests more similar by adding an empty "then" clause.
3341         Add comments.
3342
3343         init.sh: avoid unnecessary shell re-exec
3344         * tests/init.sh: Improve the re-exec-required check to first test the
3345         current shell.  If it passes the test, do not search for a shell that
3346         does pass, and do not re-exec.  This test is particularly contorted to
3347         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3348         of $(...) evokes a syntax error and causes immediate shell exit with
3349         status 2.  Bruno Haible reported that the re-exec made it impossible
3350         to single-step through any init.sh-using script.
3351
3352 2010-05-16  Bruno Haible  <bruno@clisp.org>
3353
3354         Fix collision between gnulib's and libintl's printf replacements.
3355         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3356         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3357         (printf): When using GNU C, map the __printf__ function to rpl_printf
3358         via __asm__. When not using GNU C, define rpl_printf instead of
3359         __printf__.
3360         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3361         commit.
3362         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3363         commit.
3364         * m4/asm-underscore.m4: New file.
3365         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3366         * modules/stdio (Files): Add m4/asm-underscore.m4.
3367         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3368         Reported by Ben Pfaff.
3369
3370 2010-05-16  Bruno Haible  <bruno@clisp.org>
3371
3372         verify: Avoid skipping the test on openSUSE 11.0.
3373         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3374
3375 2010-05-13  Bruno Haible  <bruno@clisp.org>
3376
3377         Avoid useless warnings from G++.
3378         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3379         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3381
3382 2010-05-11  Jim Meyering  <meyering@redhat.com>
3383
3384         maint.mk: tweak preceding change
3385         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3386         regexps tighter by anchoring at EOL, and make the new group "shy"
3387         for slightly decreased overhead.
3388
3389 2010-05-11  Eric Blake  <eblake@redhat.com>
3390
3391         maint.mk: gnulib doesn't guarantee NSIG
3392         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3393
3394 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3395
3396         test-pwrite.c: Remove unused variable declaration.
3397         * tests/test-pwrite.c (main): Remove read_buf declaration.
3398
3399         Remove useless test-pwrite.sh file.
3400         * tests/test-pwrite.sh: Delete file.
3401         * modules/pwrite-tests: Remove references.
3402         Reported by Bruno Haible.
3403
3404 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3405
3406         init.sh: fix a typo
3407         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3408
3409 2010-05-10  Jim Meyering  <meyering@redhat.com>
3410
3411         maint.mk: avoid using a temporary file in the always-defined-macros check
3412         * top/maint.mk (.re-defmac): Remove rule.
3413         (gl_trap_): Remove definition.
3414         (sc_prohibit_always-defined_macros): Rewrite not to create and
3415         depend on a temporary file.  Instead, depend on GNU grep's ability
3416         to read a list of regular expressions from stdin when given "-f -".
3417
3418 2010-05-09  Bruno Haible  <bruno@clisp.org>
3419
3420         Update to GNU gettext 0.18, part 1.
3421         * m4/gettext.m4: Update to GNU gettext 0.18.
3422         * m4/intl.m4: Likewise.
3423         * m4/po.m4: Likewise.
3424         * modules/gettext (Files): Add m4/fcntl-o.m4.
3425         (configure.ac): Require gettext infrastructure from version 0.18.
3426
3427 2010-05-09  Jim Meyering  <meyering@redhat.com>
3428
3429         init.sh: enable MALLOC_PERTURB_
3430         * tests/init.sh: Enable glibc's malloc-perturbing option.
3431
3432         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3433         With my recent change in init.sh from the two-line form:
3434             -#   : ${srcdir=.}
3435             -#   . "$srcdir/init.sh"; path_prepend_ .
3436             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3437         I noticed that using the one-line form would cause this test
3438         to fail with a false-positive, or to stop working altogether,
3439         depending on whether help-version changed or all the tests did.
3440         * top/maint.mk (_hv_regex): Remove this definition.
3441         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3442         (_hv_regex_strong): Use a stronger regex to check for conformance.
3443         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3444         Give a separate diagnostic for lack of conforming use.
3445
3446         maint.mk: prohibit definition of symbols defined by gnulib
3447         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3448         definition of symbols defined by gnulib.
3449
3450 2010-05-09  Bruno Haible  <bruno@clisp.org>
3451
3452         acl: Avoid test failure on Cygwin-hosted mingw.
3453         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3454
3455 2010-05-09  Bruno Haible  <bruno@clisp.org>
3456
3457         error: Use system's fcntl function.
3458         * lib/error.c (fcntl): Undefine.
3459
3460 2010-05-09  Jim Meyering  <meyering@redhat.com>
3461
3462         verify: adjust formatting to be more consistent
3463         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3464         argument-list '('s, and after one comma.
3465
3466 2010-05-09  Bruno Haible  <bruno@clisp.org>
3467
3468         error: More reliable output on mingw.
3469         * lib/error.c: Include <windows.h>.
3470         (is_open): New function.
3471         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3472         defined.
3473
3474 2010-05-09  Bruno Haible  <bruno@clisp.org>
3475
3476         vasnprintf: Fix syntax errors in libintl build on mingw.
3477         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3478         pad_ourselves and prec_ourselves after use.
3479
3480 2010-05-08  Bruno Haible  <bruno@clisp.org>
3481
3482         * lib/config.charset: Update comments for Cygwin 1.7.
3483         * lib/localcharset.c: Likewise.
3484
3485 2010-05-07  Jim Meyering  <meyering@redhat.com>
3486
3487         init.sh: improve comments
3488         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3489         . "${srcdir=.}/init.sh"; path_prepend_ .
3490         Add a note about path_prepend_ and the alternative of using
3491         TESTS_ENVIRONMENT.
3492
3493 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3494
3495         exclude: Unescape hashed patterns in wildcard mode.
3496         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3497         to the hash list.
3498         * tests/test-exclude8.sh: New test case.
3499         * modules/exclude-tests: Add new test.
3500
3501 2010-05-05  Eric Blake  <eblake@redhat.com>
3502
3503         verify: automate tests
3504         * modules/verify-tests: New module.
3505         * tests/test-verify.sh: New file.
3506         * tests/test-verify.c: Guard each negative test with a unique id.
3507         Also avoid warning about unused left hand of comma expressions.
3508
3509 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3510
3511         Further improvements to verify.h, suggested by Eric Blake.
3512         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3513         the GL_* versions, to avoid collision with OpenGL.
3514         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3515         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3516         than testing merely whether it's defined.
3517
3518         Modify verify.h to pacify gcc -Wredundant_decls.
3519         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3520         These use the prefix "GL_" since they're likely to be useful elsewhere.
3521         We may need to break them out into a different .h file.
3522         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3523         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3524         of verify_function__.
3525
3526 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3527
3528         Tests for module pwrite.
3529         * modules/pwrite-tests: New file.
3530         * tests/test-pwrite.sh: New file.
3531         * tests/test-pwrite.c: New file.
3532
3533         New module pwrite.
3534         * lib/unistd.in.h (pwrite): New declaration.
3535         * lib/pwrite.c: New file, from glibc with modifications.
3536         * m4/pwrite.m4: New file.
3537         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3538         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3539         REPLACE_PWRITE.
3540         * modules/pwrite: New file.
3541         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3542         REPLACE_PWRITE.
3543         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3544         * doc/posix-functions/pwrite.texi: Mention the new module.
3545
3546 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3547
3548         pread: Update documentation.
3549         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3550
3551 2010-05-04  Eric Blake  <eblake@redhat.com>
3552
3553         docs: update cygwin progress
3554         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3555         this bug.
3556         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3557         Added in cygwin 1.7.2.
3558         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3559         Likewise.
3560         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3561         Likewise.
3562         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3563         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3564         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3565         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3566         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3567         Mention nproc module.
3568         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3569         bug in cygwin 1.7.5 addition.
3570         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3571         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3572         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3573         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3574         1.7.5.
3575         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3576         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3577         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3578         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3579         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3580         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3581         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3582         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3583         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3584         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3585         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3586         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3587         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3588         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3589         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3590         Likewise.
3591         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3592         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3593         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3594         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3595         Likewise.
3596         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3597         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3598         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3599         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3600         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3601         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3602         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3603         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3604         Likewise.
3605         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3606         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3607         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3608         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3609         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3610         Likewise.
3611         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3612         Likewise.
3613         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3614         Likewise.
3615         * doc/glibc-functions/xdrrec_endofrecord.texi
3616         (xdrrec_endofrecord): Likewise.
3617         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3618         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3619         Likewise.
3620         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3621         Likewise.
3622
3623 2010-05-04  Jim Meyering  <meyering@redhat.com>
3624
3625         gendocs.sh: make its "-s FILE" option more useful
3626         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3627         $PACKAGE to reflect the probably-different basename of "FILE".
3628
3629 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3630
3631         bootstrap: don't ignore download_po_files failure
3632         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3633         failure.
3634
3635 2010-05-03  Jim Meyering  <meyering@redhat.com>
3636
3637         maint.mk: allow to pass options to gendocs.sh
3638         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3639         (gendocs_options_): New overridable variable.
3640
3641         gnu-web-doc-update: don't ignore configure or build failure
3642         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3643
3644         announce-gen: backslash-escape '@'s in --help output
3645         * build-aux/announce-gen: Fix syntax errors.
3646
3647         maint.mk, announce-gen: allow project-specific announcement mail headers
3648         * top/maint.mk (translation_project_): Define default.
3649         (announcement_Cc_, announcement_mail_headers_): Likewise.
3650         (announcement): Invoke announce-gen with new --mail-headers option.
3651         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3652
3653         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3654         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3655         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3656         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3657         line in the "err2" output file when running "make check" in verbose
3658         mode (i.e., with set -x enabled).
3659
3660 2010-05-03  Bruno Haible  <bruno@clisp.org>
3661
3662         wctob: Fix for weird platforms.
3663         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3664         argument value.
3665
3666 2010-05-03  Jim Meyering  <meyering@redhat.com>
3667
3668         maint.mk: prohibit unwarranted use of <strings.h>
3669         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3670         strings.h in a file that does not also use strcasecmp, strncasecmp,
3671         ffs or ffsll.
3672
3673         maint.mk: remove obsolete comments
3674         * top/maint.mk: Remove stale, commented-out rules.
3675
3676 2010-05-02  Bruno Haible  <bruno@clisp.org>
3677
3678         wcwidth: Declare also when it's aliased.
3679         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3680         macro.
3681
3682 2010-05-02  Bruno Haible  <bruno@clisp.org>
3683
3684         Fix regression from 2010-04-25.
3685         * gnulib-tool (func_modules_transitive_closure): Check the status of
3686         all modules, not only of the tests that are of the form foo-tests where
3687         foo is a module.
3688
3689 2010-05-02  Bruno Haible  <bruno@clisp.org>
3690
3691         wctob: Work around nasty Cygwin 1.7.2 bug.
3692         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3693         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3694
3695 2010-05-01  Bruno Haible  <bruno@clisp.org>
3696
3697         fpurge: Sharper test.
3698         * tests/test-fpurge.c (main): Add one more ftell check.
3699         * modules/fpurge-tests (Depends-on): Add ftell.
3700         Suggested by Eric Blake.
3701
3702 2010-05-01  Bruno Haible  <bruno@clisp.org>
3703
3704         ftello: Another test.
3705         * tests/test-ftello3.c: New file.
3706         * modules/ftello-tests (Files): Add it.
3707         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3708         MOSTLYCLEANFILES.
3709
3710         ftell: Another test.
3711         * tests/test-ftell3.c: New file.
3712         * modules/ftell-tests (Files): Add it.
3713         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3714         MOSTLYCLEANFILES.
3715
3716 2010-05-01  Bruno Haible  <bruno@clisp.org>
3717
3718         ftell, ftello: Work around Solaris bug.
3719         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3720         * lib/ftello.c: Include stdio-impl.h.
3721         (ftello): On Solaris, when _IOWRT is set, compute the result without
3722         looking at _IOREAD.
3723         * modules/ftello (Files): Add lib/stdio-impl.h.
3724         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3725         * doc/posix-functions/ftello.texi: Likewise.
3726         Reported by Eric Blake.
3727
3728 2010-05-01  Bruno Haible  <bruno@clisp.org>
3729
3730         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3731         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3732         the _IOWRT flag is also set.
3733
3734 2010-05-01  Bruno Haible  <bruno@clisp.org>
3735
3736         Fix doc about a HP-UX stdio bug.
3737         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3738         * doc/posix-functions/ftello.texi: Likewise.
3739
3740 2010-05-01  Bruno Haible  <bruno@clisp.org>
3741
3742         lseek test: Fix failure on Solaris.
3743         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3744         output.
3745
3746 2010-04-30  Jim Meyering  <meyering@redhat.com>
3747
3748         bootstrap: don't ignore failure to generate po*/Makevars
3749         * build-aux/bootstrap (with_gettext): Don't ignore failure
3750         to create po/Makevars or runtime-po/Makevars.
3751
3752 2010-04-29  Eric Blake  <eblake@redhat.com>
3753
3754         headers: relax license to LGPLv2+
3755         * modules/fcntl-h (License): Relax license.
3756         * modules/getopt-posix (License): Likewise.
3757         * modules/locale (License): Likewise.
3758         * modules/math (License): Likewise.
3759         * modules/pty (License): Likewise.
3760         * modules/sched (License): Likewise.
3761         * modules/search (License): Likewise.
3762         * modules/spawn (License): Likewise.
3763         * modules/stdarg (License): Likewise.
3764         * modules/sysexits (License): Likewise.
3765
3766 2010-04-29  Jim Meyering  <meyering@redhat.com>
3767
3768         inttypes: relax license to LGPLv2+
3769         * modules/inttypes (License): Relax license.
3770
3771 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3772
3773         * top/maint.mk (indent): Run twice to produce idempotent results.
3774
3775 2010-04-28  Bruno Haible  <bruno@clisp.org>
3776
3777         getdate: Generate getdate.c in the source directory.
3778         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3779         MOSTLYCLEANFILES.
3780         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3781
3782 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3783
3784         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3785         is not declared as a const *; avoid warnings in that case.
3786
3787 2010-04-28  Eric Blake  <eblake@redhat.com>
3788
3789         canonicalize-lgpl: avoid compiler warning
3790         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3791         declaration' / 'extraneous semicolon' warning with some compilers.
3792         Reported by Andreas Gruenbacher.
3793
3794 2010-04-28  Jim Meyering  <meyering@redhat.com>
3795
3796         init.sh: ensure a more reliable exit status when exiting via trap
3797         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3798         Inspired by patches from Dmitry V. Levin.
3799         Also trap on signal 3 (SIGQUIT).
3800
3801 2010-04-27  Bruno Haible  <bruno@clisp.org>
3802
3803         Update doc about utimes().
3804         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3805         'utimens' module.
3806         Reported by Andreas Gruenbacher <agruen@suse.de>.
3807
3808 2010-04-27  Eric Blake  <eblake@redhat.com>
3809
3810         full-read, full-write: relax license
3811         * modules/full-read (License): Drop to LGPLv2+.
3812         * modules/full-write (License): Likewise.
3813         * modules/safe-read (License): Likewise.
3814         * modules/safe-write (License): Likewise.
3815
3816         pthread: mention library for linking
3817         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3818
3819 2010-04-27  Jim Meyering  <meyering@redhat.com>
3820
3821         maint.mk: fix a bug introduced in last change
3822         * top/maint.mk (gl_assured_headers_): Now that all names are on
3823         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3824         is not anchored to end of word, it should be adequate.
3825
3826         maint.mk: avoid side-effect in latest syntax-check
3827         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3828         to run commands via $(shell...), and hence to incur cost only when
3829         the new rule is actually run.
3830
3831         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3832         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3833         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3834         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3835         (gl_assured_headers_, az_, AZ_): Define.
3836         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3837
3838 2010-04-26  Jim Meyering  <jim@meyering.net>
3839             Bruno Haible  <bruno@clisp.org>
3840
3841         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3842         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3843         Prompted by an exchange with Gilles Espinasse.
3844
3845 2010-04-26  Jim Meyering  <meyering@redhat.com>
3846
3847         git-version-gen: aesthetic tweak
3848         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3849         so that the command remains on a single line.
3850
3851 2010-04-26  Eric Blake  <eblake@redhat.com>
3852
3853         git-version-gen: allow use on EBCDIC hosts
3854         * build-aux/git-version-gen (dirty): Use literal rather than tying
3855         ourselves to ascii.
3856         Reported by Steve Goetze.
3857
3858 2010-04-25  Bruno Haible  <bruno@clisp.org>
3859
3860         netdb: Add support for GNULIB_POSIXCHECK.
3861         * lib/netdb.in.h: Include warn-on-use.h.
3862         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3863         functions are used when GNULIB_POSIXCHECK is defined and the
3864         getaddrinfo module is not in use.
3865         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3866         freeaddrinfo, gai_strerror, getnameinfo are declared.
3867         * modules/netdb (Depends-on): Add warn-on-use.
3868         (Makefile.am): Include warn-on-use.h in netdb.h.
3869
3870 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3871
3872         build: avoid "make check" failure without .git/ directory
3873         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3874         there is no .git/ directory.
3875
3876 2010-04-25  Bruno Haible  <bruno@clisp.org>
3877
3878         ptsname: Fix misuse of ttyname_r.
3879         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3880         of errno.
3881
3882 2010-04-25  Bruno Haible  <bruno@clisp.org>
3883
3884         ttyname_r: Make it work on Solaris 10.
3885         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3886         if the system function has the POSIX declaration. Test whether the
3887         function fails if the buffer is less than 128 bytes large.
3888         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3889         system's ttyname_r function. Provide a reasonably large buffer.
3890         * modules/ttyname_r (Depends-on): Add extensions.
3891         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3892
3893 2010-04-25  Bruno Haible  <bruno@clisp.org>
3894
3895         Use the 'extensions' module for some more functions on Solaris.
3896         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3897         module.
3898         * doc/posix-functions/ctime_r.texi: Likewise.
3899         * doc/posix-functions/getgrgid_r.texi: Likewise.
3900         * doc/posix-functions/getgrnam_r.texi: Likewise.
3901         * doc/posix-functions/getpwnam_r.texi: Likewise.
3902         * doc/posix-functions/getpwuid_r.texi: Likewise.
3903         * doc/posix-functions/readdir_r.texi: Likewise.
3904         * doc/posix-functions/sigwait.texi: Likewise.
3905         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3906         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3907
3908 2010-04-25  Bruno Haible  <bruno@clisp.org>
3909
3910         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3911         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3912         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3913         * lib/ttyname_r.c: Include <limits.h>.
3914         (ttyname_r): Define using the system's ttyname_r function, if it exists
3915         and not on Solaris.
3916         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3917         set.
3918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3919         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
3920         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
3921         Reported by Simon Josefsson.
3922
3923 2010-04-25  Bruno Haible  <bruno@clisp.org>
3924
3925         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
3926         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
3927         * doc/posix-functions/ctime_r.texi: Likewise.
3928         * doc/posix-functions/getgrgid_r.texi: Likewise.
3929         * doc/posix-functions/getgrnam_r.texi: Likewise.
3930         * doc/posix-functions/getlogin_r.texi: Likewise.
3931         * doc/posix-functions/getpwnam_r.texi: Likewise.
3932         * doc/posix-functions/getpwuid_r.texi: Likewise.
3933         * doc/posix-functions/readdir_r.texi: Likewise.
3934         * doc/posix-functions/sigwait.texi: Likewise.
3935         * doc/posix-functions/ttyname_r.texi: Likewise.
3936         Reported by Simon Josefsson.
3937
3938 2010-04-25  Bruno Haible  <bruno@clisp.org>
3939
3940         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
3941         * gnulib-tool (func_usage): Document that --with-*-tests options apply
3942         also to --create-testdir.
3943         (func_acceptable): Don't consider the status of *-tests modules here.
3944         (func_modules_transitive_closure): Consider it here, before including a
3945         test module.
3946         (func_import, func_create_testdir): Set inc_all_direct_tests,
3947         inc_all_indirect_tests.
3948         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
3949         --create-testdir and --create-megatestdir.
3950
3951 2010-04-25  Bruno Haible  <bruno@clisp.org>
3952
3953         gnulib-tool: Add --without-*-tests options.
3954         * gnulib-tool (func_usage): Document the --without-*-tests options.
3955         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
3956         excl_unportable_tests): New variables.
3957         Fail if they are specified with --import or --update.
3958         (func_acceptable): Respect the excl_*_tests variables.
3959         (func_import): Set the excl_*_tests variables to empty.
3960
3961 2010-04-25  Simon Josefsson  <simon@josefsson.org>
3962             Bruno Haible  <bruno@clisp.org>
3963
3964         Work around a MacOS X 10.4 bug with openpty.
3965         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
3966         * tests/test-openpty.c (main): Close the master side explicitly.
3967
3968 2010-04-25  Bruno Haible  <bruno@clisp.org>
3969
3970         strnlen: Fix a C++ test error on MacOS X and Solaris.
3971         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
3972         the function is not declared.
3973         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
3974         Simon Josefsson.
3975
3976 2010-04-24  Bruno Haible  <bruno@clisp.org>
3977
3978         Avoid a gcc warning.
3979         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
3980         of correct type for %08lx directive.
3981         Reported by Eric Blake.
3982
3983 2010-04-24  Bruno Haible  <bruno@clisp.org>
3984
3985         vasnprintf: Correct errno value in case of out-of-memory.
3986         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
3987         or sprintf. Use the errno value from SNPRINTF or sprintf.
3988         Reported by Ian Beckwith <ianb@erislabs.net>.
3989
3990 2010-04-24  Bruno Haible  <bruno@clisp.org>
3991
3992         ansi-c++-opt: Find correct compiler when cross-compiling.
3993         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
3994         AC_CHECK_PROGS.
3995         Reported by Simon Josefsson.
3996
3997 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
3998
3999         vc-list-files: Add support for subversion
4000         * build-aux/vc-list-files: Use "svn list" to generate the list of
4001         files controlled by subversion.
4002
4003 2010-04-23  Jim Meyering  <meyering@redhat.com>
4004
4005         vc-list-files tests: convert to use init.sh
4006         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4007         path_prepend_.
4008         Use Exit, not exit.
4009         Use skip_ rather than open coding it.
4010         Remove trap set-up and compare definitions.
4011         * tests/test-vc-list-files-git.sh: Likewise.
4012         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4013
4014 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4015
4016         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4017         backup files.
4018
4019 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4020
4021         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4022
4023 2010-04-20  Eric Blake  <eblake@redhat.com>
4024
4025         tests: be robust to ignored SIGPIPE
4026         * tests/test-select-in.sh: Consume all output.
4027         * tests/test-lseek.sh: Check correct exit status, while avoiding
4028         EPIPE.
4029
4030 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4031             Bruno Haible  <bruno@clisp.org>
4032
4033         visibility: Don't use -fvisibility if it leads to a warning.
4034         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4035         yes, don't pretend that visibility works if it leads to a warning.
4036         Reported by Mike Gran <spk121@yahoo.com>.
4037
4038 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4039
4040         * build-aux/bootstrap: Use "git -h" for testing for supported options
4041         instead of "git --help".  The short-form option only shows a summary,
4042         and doesn't layout the full man page.  Grep for the full option name
4043         in the summary, too.
4044
4045 2010-04-19  Bruno Haible  <bruno@clisp.org>
4046
4047         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4048         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4049         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4050         mention of RELOCATABLE_STRIP.
4051         Reported by Sylvain Beucler <beuc@beuc.net>.
4052
4053 2010-04-19  Bruno Haible  <bruno@clisp.org>
4054
4055         * lib/diffseq.h: Fix typo in comment.
4056         Reported by Eric Blake.
4057
4058 2010-04-19  Bruno Haible  <bruno@clisp.org>
4059
4060         ioctl: Move autoconf macro to a .m4 file.
4061         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4062         * modules/ioctl (Files): Add it.
4063         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4064         Reported by Ian Beckwith <ianb@erislabs.net>.
4065
4066 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4067             Bruno Haible  <bruno@clisp.org>
4068
4069         diffseq: Accommodate use-case with abstract arrays.
4070         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4071         is not defined.
4072         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4073         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4074
4075 2010-04-18  Bruno Haible  <bruno@clisp.org>
4076
4077         * doc/posix-headers/stdbool.texi: More precise wording.
4078
4079 2010-04-17  Jim Meyering  <meyering@redhat.com>
4080
4081         maint.mk: use gnu-style indentation in an embedded perl script
4082         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4083         Rename variable: s/two/last_two_bytes/
4084
4085 2010-04-16  Eric Blake  <eblake@redhat.com>
4086
4087         test-stdbool: skip test that fails with Solaris CC
4088         * tests/test-stdbool.c (f): Skip test that causes compilation
4089         error under buggy C++ compiler.
4090         * lib/stdbool.in.h: Document the limitation.
4091         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4092
4093         setenv: allow compilation with C++
4094         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4095         register keyword.
4096
4097         stdint: allow test to pass with C++
4098         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4099
4100         getopt: allow compilation with C++
4101         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4102         struct.
4103         * lib/getopt.c (_getopt_internal_r): Use correct type.
4104         Reported by Dagobert Michelson, via Joel E. Denny.
4105
4106 2010-04-16  Bruno Haible  <bruno@clisp.org>
4107
4108         Override netdb.h always.
4109         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4111         Reported by Ludovic Courtès <ludo@gnu.org>.
4112
4113 2010-04-15  Bruno Haible  <bruno@clisp.org>
4114
4115         openpty: Fix mistake from 2010-03-21.
4116         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4117         Reported by Simon Josefsson.
4118
4119 2010-04-15  Eric Blake  <eblake@redhat.com>
4120
4121         test-forkpty: fix expected signature
4122         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4123         Reported by Simon Josefsson.
4124
4125 2010-04-15  Jim Meyering  <meyering@redhat.com>
4126
4127         maint.mk: texinfo_suffix_re_: correct the default regexp
4128         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4129
4130         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4131         make it configurable via texinfo_suffix_re_.
4132
4133 2010-04-14  Eric Blake  <eblake@redhat.com>
4134
4135         strtok_r: relax license to LGPLv2+
4136         * modules/strtok_r (License): Relax license.
4137         Reported by Matthias Bolte.
4138
4139 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4140
4141         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4142         version 1.4.4 by default instead of requiring the libgcrypt
4143         version used during build.  This makes it possible to use the
4144         application with older but still binary compatible libgcrypt
4145         versions.
4146
4147 2010-04-13  Eric Blake  <eblake@redhat.com>
4148
4149         getopt-gnu: match recent glibc fixes and posix ruling
4150         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4151         '+' handling, when requesting extensions.
4152         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4153         'W;' handling.
4154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4155         * doc/posix-functions/getopt.texi (getopt): Document this.
4156         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4157         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4158         Likewise.
4159
4160         getopt: merge bug fixes from glibc
4161         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4162         diagnostics.  Honor '+:' correctly.  Reject ';'.
4163
4164         getopt-posix: detect MacOS bug
4165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4166         optind when missing a required argument.
4167         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4168         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4169         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4170         Likewise.
4171
4172         getopt-posix: avoid spurious failure on Solaris
4173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4174         an indicator that setting optind=1 is sufficient for reset.
4175
4176         getopt-posix: avoid spurious failure on FreeBSD
4177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4178         in POSIX mode, since the m4 test uses it.
4179
4180         gnulib-tool: silence warning on BSD sh
4181         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4182
4183 2010-04-13  Jim Meyering  <meyering@redhat.com>
4184
4185         doc: users.txt: GNU patch now uses gnulib
4186         * users.txt: Add patch.
4187
4188 2010-04-12  Jim Meyering  <meyering@redhat.com>
4189
4190         maint.mk: generate more concise timing data for syntax-check rules
4191         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4192         " done" from each line that reports a syntax-check test duration.
4193
4194 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4195
4196         git-version-gen: use "git update-index..." rather than "git status"
4197         * build-aux/git-version-gen: Use git update-index --refresh, not
4198         "git status".  With some versions of git, "git status" would fail
4199         to update the index and result in an unwarranted "-dirty" suffix.
4200
4201 2010-04-11  Jim Meyering  <meyering@redhat.com>
4202
4203         openat: correct formatting (no semantic change)
4204         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4205         Suggested by Bruno Haible.
4206
4207 2010-04-11  Bruno Haible  <bruno@clisp.org>
4208
4209         Stricter declaration checking in testdirs.
4210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4211         If for_tests is true, augment AM_CPPFLAGS to define
4212         GNULIB_STRICT_CHECKING.
4213         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4214         GNULIB_STRICT_CHECKING is defined, verify that the function is
4215         declared.
4216
4217 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4218             Bruno Haible  <bruno@clisp.org>
4219
4220         libunistring: Improve configure output.
4221         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4222         Don't say "consider installing GNU libunistring" when checking again
4223         with libiconv.
4224
4225 2010-04-11  Bruno Haible  <bruno@clisp.org>
4226
4227         libunistring: Correct value of $LTLIBUNISTRING.
4228         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4229         correct the value of $LTLIBUNISTRING.
4230
4231 2010-04-11  Bruno Haible  <bruno@clisp.org>
4232
4233         havelib: Add static libraries to LIBS in the right order.
4234         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4235         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4236
4237 2010-04-11  Bruno Haible  <bruno@clisp.org>
4238
4239         libunistring: Detect libunistring also when it depends on libiconv.
4240         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4241         the second AC_LIB_HAVE_LINKFLAGS invocation.
4242
4243 2010-04-11  James Youngman  <jay@gnu.org>
4244
4245         close-stream: declare local scalars to be "const"
4246         * lib/close-stream.c (close_stream): Make boolean variables const
4247         to document the fact that we set but do not change them.
4248
4249 2010-04-11  Bruno Haible  <bruno@clisp.org>
4250
4251         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4252
4253 2010-04-11  Jim Meyering  <meyering@redhat.com>
4254
4255         maint.mk: don't include dist-check.mk
4256         * top/maint.mk: Remove bogus include directive.
4257
4258         maint.mk: improve empty-line-at-EOF check
4259         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4260         solution, rather than tail+Perl-based one.  The latter would read
4261         a few kilobytes from the end of each file, and did not handle empty
4262         files properly.
4263
4264         maint.mk: print the elapsed time for each syntax-check rule
4265         * top/maint.mk (sc_m_rules_): Save start time in a file.
4266         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4267         (local-check): Interpose the .z rules
4268
4269 2010-04-11  Jim Meyering  <meyering@redhat.com>
4270
4271         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4272         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4273         empty file with one that ends in an empty line.
4274
4275 2010-04-10  Bruno Haible  <bruno@clisp.org>
4276
4277         mkdir: Make it work on mingw64.
4278         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4279         * lib/mkdir.c: Update comment.
4280         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4281
4282 2010-04-10  Bruno Haible  <bruno@clisp.org>
4283
4284         Don't override improved macro from newer autoconf.
4285         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4286         autoconf >= 2.62.
4287         Reported by Joel E. Denny <jdenny@clemson.edu>.
4288
4289 2010-04-10  Jim Meyering  <meyering@redhat.com>
4290
4291         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4292         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4293
4294         maint.mk: correct a diagnostic
4295         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4296         in diagnostic; now use $prohibit.
4297
4298 2010-04-10  Bruno Haible  <address@hidden>
4299
4300         fchownat: Fix a C++ test error on Solaris 8.
4301         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4302         the function does not exist.
4303
4304 2010-04-10  Bruno Haible  <bruno@clisp.org>
4305
4306         vasnprintf: Add more tests.
4307         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4308         (test_function): Test converting an invalid wide string.
4309
4310         vasnprintf: Correct handling of unconvertible wide string arguments.
4311         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4312         VASNPRINTF.
4313         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4314         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4315         smaller than the expected maximum need for the directive. Set errno to
4316         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4317         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4319         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4320         * modules/vasnprintf (Files): Add m4/printf.m4.
4321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4322
4323 2010-04-10  Bruno Haible  <bruno@clisp.org>
4324
4325         vasnprintf: Fix crash in %ls directive.
4326         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4327         string is passed as argument to %ls, with no precision and no width.
4328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4329
4330 2010-04-10  Bruno Haible  <bruno@clisp.org>
4331
4332         vasnprintf: Fix multiple test failures on mingw.
4333         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4334         _snprintf, or snwprintf, not _snwprintf.
4335
4336 2010-04-10  Bruno Haible  <bruno@clisp.org>
4337
4338         write: Fix a C++ test error on mingw.
4339         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4340
4341 2010-04-10  Bruno Haible  <bruno@clisp.org>
4342
4343         vasnprintf test: Reduce code duplication.
4344         * tests/test-vasnprintf.c (test_function): New function, extracted from
4345         test_vasnprintf.
4346         (test_vasnprintf, test_asnprintf): Invoke it.
4347
4348 2010-04-10  Bruno Haible  <bruno@clisp.org>
4349
4350         strnlen: Fix warning in C++ mode on MacOS X.
4351         * lib/string.in.h (strnlen): Use the modern idiom.
4352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4353         defining strnlen as a macro already in <config.h>.
4354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4355         REPLACE_STRNLEN.
4356         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4357         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4358
4359 2010-04-08  James Youngman  <jay@gnu.org>
4360
4361         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4362         the example.
4363
4364 2010-04-09  Jim Meyering  <meyering@redhat.com>
4365
4366         maint.mk: print better diagnostic when there is no $(_hv_file)
4367         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4368         announce that when $(_hv_file) (aka help-version) does not exist.
4369
4370         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4371         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4372         not try to interpret its random input bytes.  Jarno Rajahalme reported
4373         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4374         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4375         (mktempd_): Likewise, just in case.
4376
4377         ftruncate: add two years to projected module removal date: 2012
4378         * m4/ftruncate.m4: Adjust comments.
4379
4380         ftruncate: mark module as obsolete; even MinGW provides it, now
4381         * modules/ftruncate (Status): Obsolete.
4382         (Notice): Say that.
4383         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4384         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4385
4386 2010-04-08  Bruno Haible  <bruno@clisp.org>
4387
4388         Fix side effects from tests-related modules.
4389         * modules/dprintf-posix (Comment): New section.
4390         * modules/fprintf-posix (Comment): Likewise.
4391         * modules/obstack-printf-posix (Comment): Likewise.
4392         * modules/printf-posix (Comment): Likewise.
4393         * modules/snprintf-posix (Comment): Likewise.
4394         * modules/sprintf-posix (Comment): Likewise.
4395         * modules/vasnprintf-posix (Comment): Likewise.
4396         * modules/vasprintf-posix (Comment): Likewise.
4397         * modules/vdprintf-posix (Comment): Likewise.
4398         * modules/vfprintf-posix (Comment): Likewise.
4399         * modules/vprintf-posix (Comment): Likewise.
4400         * modules/vsnprintf-posix (Comment): Likewise.
4401         * modules/vsprintf-posix (Comment): Likewise.
4402         * modules/xprintf-posix (Comment): Likewise.
4403         * modules/xvasprintf-posix (Comment): Likewise.
4404         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4405         * modules/floorf-tests (Depends-on): Likewise.
4406         * modules/round-tests (Depends-on): Likewise.
4407         * modules/roundf-tests (Depends-on): Likewise.
4408         * modules/trunc-tests (Depends-on): Likewise.
4409         * modules/truncf-tests (Depends-on): Likewise.
4410         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4411         'fprintf-posix' module is not present.
4412         * tests/test-floorf2.c (check): Likewise.
4413         * tests/test-trunc2.c (check): Likewise.
4414         * tests/test-truncf2.c (check): Likewise.
4415         * tests/test-round2.c (equal): Likewise.
4416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4417
4418 2010-04-07  Karl Berry  <karl@gnu.org>
4419
4420         * config/srclist.txt,
4421         * config/srclistvars.sh,
4422         * config/srclist-update: doc fixes.
4423
4424 2010-04-07  Jim Meyering  <meyering@redhat.com>
4425
4426         maint.mk: add a PATH crosschecking syntax-check rule
4427         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4428         Useful if you use a test like the one in help-version (coreutils,
4429         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4430         printed by prog --version.
4431
4432 2010-04-06  Bruno Haible  <bruno@clisp.org>
4433
4434         Fix link error on mingw.
4435         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4436         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4437
4438 2010-04-06  Bruno Haible  <bruno@clisp.org>
4439
4440         Assume rmdir exists.
4441         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4442
4443 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4444
4445         doc: update users.txt
4446         * users.txt: Add gcal.
4447
4448 2010-04-06  Jim Meyering  <meyering@redhat.com>
4449
4450         init.sh: simply unset TMPDIR rather than risking env -i
4451         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4452         although it probably works fine on all Unix-based systems, some
4453         systems (Cygwin?) cannot tolerate a totally cleared environment.
4454         Suggestion from Eric Blake.
4455
4456 2010-04-06  Jim Meyering  <meyering@redhat.com>
4457
4458         init.sh: portability fix: use env's POSIX-specified -i option not -u
4459         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4460         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4461
4462 2010-04-05  Bruno Haible  <bruno@clisp.org>
4463
4464         btowc: Work around Cygwin 1.7.2 bug.
4465         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4466         does not map NUL to 0.
4467         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4468
4469 2010-04-05  Bruno Haible  <bruno@clisp.org>
4470
4471         Make the multithread modules work on Cygwin 1.7.2.
4472         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4473         imported symbols can be declared weak, so that it returns "no" on
4474         Cygwin 1.7.2.
4475
4476 2010-04-05  Bruno Haible  <bruno@clisp.org>
4477
4478         Use the module 'strncat'.
4479         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4480
4481         Tests for module 'strncat'.
4482         * modules/strncat-tests: New file.
4483         * tests/test-strncat.c: New file.
4484
4485         New module 'strncat'.
4486         * lib/string.in.h (strncat): New declaration.
4487         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4488         * m4/strncat.m4: New file, based on m4/memchr.m4.
4489         * modules/strncat: New file.
4490         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4491         is declared.
4492         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4493         REPLACE_STRNCAT.
4494         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4495         REPLACE_STRNCAT.
4496         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4497         module.
4498         * tests/test-string-c++.cc: Check signature of strncat.
4499
4500 2010-04-05  Jim Meyering  <meyering@redhat.com>
4501
4502         xstrtoumax-tests: convert to use init.sh
4503         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4504         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4505         Use Exit, not exit.
4506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4507
4508         xstrtoimax-tests: convert to use init.sh
4509         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4510         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4511         Use Exit, not exit.
4512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4513
4514 2010-04-05  Bruno Haible  <bruno@clisp.org>
4515
4516         sys_socket: Avoid #define replacements in C++ mode.
4517         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4518         warning to the function if possible, rather than #defining the symbol
4519         to a dysfunctional alias.
4520
4521 2010-04-05  Bruno Haible  <bruno@clisp.org>
4522
4523         fseeko: Fix C++ test error on mingw.
4524         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4525         gl_FUNC_FSEEKO.
4526         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4527         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4528         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4529         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4530
4531 2010-04-05  Bruno Haible  <bruno@clisp.org>
4532
4533         duplocale: Improve test output.
4534         * tests/test-duplocale.c (main): Print reason for skipped test.
4535
4536 2010-04-05  Bruno Haible  <bruno@clisp.org>
4537
4538         Assume rmdir exists.
4539         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4540         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4541
4542 2010-04-05  Bruno Haible  <bruno@clisp.org>
4543
4544         Fix link error on Solaris 8 with cc.
4545         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4546
4547 2010-04-05  Bruno Haible  <bruno@clisp.org>
4548
4549         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4550         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4551
4552 2010-04-05  Bruno Haible  <bruno@clisp.org>
4553
4554         vasprintf: Update documentation.
4555         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4556
4557 2010-04-05  Bruno Haible  <bruno@clisp.org>
4558
4559         ptsname: Improve test.
4560         * tests/test-ptsname.c (main): Also try the various master names of BSD
4561         systems.
4562
4563 2010-04-05  Bruno Haible  <bruno@clisp.org>
4564
4565         memchr: Avoid a possible C++ test error.
4566         * lib/string.in.h (memchr): Provide declaration if function is missing.
4567         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4568         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4570         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4571
4572 2010-04-05  Bruno Haible  <bruno@clisp.org>
4573
4574         strtok_r: Improve idiom.
4575         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4576         AC_LIBOBJ is used.
4577
4578 2010-04-05  Bruno Haible  <bruno@clisp.org>
4579
4580         strdup: Improve idiom.
4581         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4582         AC_LIBOBJ is used.
4583         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4584         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4585         when AC_LIBOBJ is used.
4586
4587 2010-04-05  Bruno Haible  <bruno@clisp.org>
4588
4589         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4590         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4591         don't set REPLACE_MBSINIT to 1.
4592         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4593         don't set REPLACE_MBRTOWC to 1.
4594         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4595         exist, don't set REPLACE_MBSRTOWCS to 1.
4596         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4597         exist, don't set REPLACE_MBSNRTOWCS to 1.
4598         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4599         don't set REPLACE_WCRTOMB to 1.
4600         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4601         exist, don't set REPLACE_WCSRTOMBS to 1.
4602         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4603         exist, don't set REPLACE_WCSNRTOMBS to 1.
4604
4605 2010-04-05  Bruno Haible  <bruno@clisp.org>
4606
4607         ldexpl: Improve idiom.
4608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4609         make sure to set HAVE_DECL_LDEXPL to 0.
4610
4611 2010-04-05  Jim Meyering  <meyering@redhat.com>
4612
4613         xstrtol-tests: convert to use init.sh
4614         * modules/xstrtol-tests (Files): Add tests/init.sh.
4615         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4616         Use Exit, not exit.
4617         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4618
4619         atexit-tests: convert to use init.sh
4620         * modules/atexit-tests (Files): Add tests/init.sh.
4621         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4622         Use Exit, not exit.
4623         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4624
4625         init.sh: fix typo
4626         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4627
4628         init.sh: make it easier for a test script to write to the tty, ...
4629         when using automake's parallel-tests mode.
4630         * tests/init.sh (stderr_fileno_): Define overridable variable.
4631         (warn_): New function, to use it.
4632         (fail_, skip_, framework_failure_): Use warn_.
4633
4634 2010-04-04  Bruno Haible  <bruno@clisp.org>
4635
4636         btowc: Avoid warning.
4637         * lib/btowc.c: Include <stdlib.h>.
4638         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4639
4640 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4641             Bruno Haible  <bruno@clisp.org>
4642
4643         wchar: Port to NetBSD 1.5.
4644         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4645         * lib/wctype.in.h (WEOF): Likewise.
4646
4647 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4648             Bruno Haible  <bruno@clisp.org>
4649
4650         Port extended stdio to NetBSD 1.5.
4651         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4652         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4653         older.
4654
4655 2010-04-04  Bruno Haible  <bruno@clisp.org>
4656
4657         string: Remove unused substitution.
4658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4659         HAVE_DECL_STRERROR.
4660         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4661
4662 2010-04-04  Bruno Haible  <bruno@clisp.org>
4663
4664         strtod: Avoid a possible C++ test error.
4665         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4666         set REPLACE_STRTOD.
4667
4668 2010-04-04  Bruno Haible  <bruno@clisp.org>
4669
4670         strerror: Update documentation.
4671         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4672
4673 2010-04-04  Bruno Haible  <bruno@clisp.org>
4674
4675         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4676         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4677         _GL_CXXALIAS_SYS_CAST.
4678
4679 2010-04-04  Bruno Haible  <bruno@clisp.org>
4680
4681         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4682         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4683         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4684         REPLACE_FREXPL to 1.
4685         * doc/posix-functions/frexpl.texi: Update documentation.
4686
4687 2010-04-04  Bruno Haible  <bruno@clisp.org>
4688
4689         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4690         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4691
4692 2010-04-04  Bruno Haible  <bruno@clisp.org>
4693
4694         Implement nanosleep for native Windows.
4695         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4696
4697 2010-04-04  Bruno Haible  <bruno@clisp.org>
4698
4699         math: Fix some C++ test errors on Solaris 8.
4700         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4701
4702 2010-04-04  Bruno Haible  <bruno@clisp.org>
4703
4704         math: Fix some C++ test errors on Cygwin.
4705         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4706         truncl): Provide declaration if the system does not have it.
4707         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4708         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4709         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4710         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4711         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4712         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4713         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4714         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4715         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4716         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4717         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4718         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4719         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4720         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4721         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4722         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4724         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4725         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4726         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4727         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4728         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4729
4730 2010-04-04  Bruno Haible  <bruno@clisp.org>
4731
4732         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4733         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4734         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4735         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4736         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4737         * m4/isinf.m4 (gl_ISINF): Likewise.
4738         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4739
4740 2010-04-04  Bruno Haible  <bruno@clisp.org>
4741
4742         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4743         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4744
4745 2010-04-04  Bruno Haible  <bruno@clisp.org>
4746
4747         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4748         * modules/tmpfile (configure.ac): Update.
4749
4750         tmpfile: Fix C++ test error on mingw.
4751         * lib/stdio.in.h (tmpfile): New declaration.
4752         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4753         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4754         * modules/tmpfile (Depends-on): Add stdio.
4755         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4756         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4757         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4758         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4759         REPLACE_TMPFILE.
4760         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4761
4762 2010-04-04  Bruno Haible  <bruno@clisp.org>
4763
4764         ioctl: Fix C++ test error on mingw.
4765         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4766         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4767         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4768
4769 2010-04-03  Bruno Haible  <bruno@clisp.org>
4770
4771         wcwidth: Fix C++ test error on mingw.
4772         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4774         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4775
4776 2010-04-03  Bruno Haible  <bruno@clisp.org>
4777
4778         nanosleep: Fix C++ test error on mingw.
4779         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4780         * lib/time.in.h (nanosleep): Use modern idiom.
4781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4782         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4783         REPLACE_NANOSLEEP to 1.
4784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4785         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4786
4787 2010-04-03  Bruno Haible  <bruno@clisp.org>
4788
4789         strptime: Fix C++ test error on mingw.
4790         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4791         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4792         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4793         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4795         not REPLACE_STRPTIME.
4796         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4797         REPLACE_STRPTIME.
4798
4799 2010-04-03  Bruno Haible  <bruno@clisp.org>
4800
4801         timegm: Fix C++ test error on mingw.
4802         * lib/time.in.h (timegm): Use modern idiom.
4803         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4804         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4806         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4807
4808 2010-04-03  Bruno Haible  <bruno@clisp.org>
4809
4810         timegm: Assume declaration if function exists.
4811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4812         if it exists. Don't clobber ac_cv_func_timegm.
4813
4814 2010-04-03  Bruno Haible  <bruno@clisp.org>
4815
4816         time_r: Fix C++ test error on mingw.
4817         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4818         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4819         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4821         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4822
4823 2010-04-03  Bruno Haible  <bruno@clisp.org>
4824
4825         time_r: Minor updates.
4826         * modules/time_r (Description): Mention the provided functions.
4827         * lib/time_r.c: Don't include <string.h>.
4828         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4829         * doc/posix-functions/localtime_r.texi: Likewise.
4830
4831 2010-04-03  Bruno Haible  <bruno@clisp.org>
4832
4833         time: Fix regression introduced on 2010-03-08.
4834         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4835         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4836
4837 2010-04-03  Jim Meyering  <meyering@redhat.com>
4838
4839         maint.mk: don't silently disable project-specific syntax-check rules
4840         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4841         that they need to convert their project-specific syntax-check rules
4842         to use the new _sc_search_regexp.
4843
4844 2010-04-03  Bruno Haible  <bruno@clisp.org>
4845
4846         fchdir: Fix regression introduced on 2010-03-08.
4847         * lib/unistd.in.h (fchdir): Fix declaration.
4848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4850         REPLACE_FCHDIR.
4851         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4852         REPLACE_FCHDIR.
4853
4854 2010-04-03  Bruno Haible  <bruno@clisp.org>
4855
4856         getpagesize: Fix C++ test error on mingw.
4857         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4858         system does not declare the function.
4859         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4860         declared.
4861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4862         HAVE_DECL_GETPAGESIZE.
4863         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4864
4865 2010-04-03  Bruno Haible  <bruno@clisp.org>
4866
4867         stdio: Make C++ tests work on mingw.
4868         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4869         does not declare the function.
4870
4871 2010-04-03  Bruno Haible  <bruno@clisp.org>
4872
4873         ftello: Fix C++ test error on mingw.
4874         * lib/stdio.in.h (ftello): Use modern idiom.
4875         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4876         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4877         is missing and that it needs to be replaced.
4878         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4880         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4881
4882 2010-04-03  Bruno Haible  <bruno@clisp.org>
4883
4884         fseeko: Fix C++ test error on mingw.
4885         * lib/stdio.in.h (fseeko): Use modern idiom.
4886         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4887         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4888         is missing and that it needs to be replaced.
4889         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4891         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4892
4893 2010-04-03  Bruno Haible  <bruno@clisp.org>
4894
4895         mkstemp: Fix C++ test error on mingw.
4896         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4898         function is missing and that it needs to be replaced.
4899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4900         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4901
4902 2010-04-03  Bruno Haible  <bruno@clisp.org>
4903
4904         stpncpy: Fix C++ test error on mingw.
4905         * lib/string.in.h (stpncpy): Use modern idiom.
4906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4907         function is missing and that it needs to be replaced.
4908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4909         REPLACE_STPNCPY.
4910         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4911
4912 2010-04-03  Bruno Haible  <bruno@clisp.org>
4913
4914         sys_stat: Fix C++ test error on mingw.
4915         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4916         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4917
4918 2010-04-03  Bruno Haible  <bruno@clisp.org>
4919
4920         pty: Update doc.
4921         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
4922
4923 2010-04-03  Bruno Haible  <bruno@clisp.org>
4924
4925         unistd: Fix C++ test error on mingw.
4926         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
4927
4928 2010-04-03  Bruno Haible  <bruno@clisp.org>
4929
4930         Update doc regarding mingw.
4931         * doc/glibc-functions/openpty.texi: Update regarding mingw.
4932         * doc/glibc-functions/login_tty.texi: Likewise.
4933         * doc/glibc-functions/forkpty.texi: Likewise.
4934
4935 2010-04-03  Bruno Haible  <bruno@clisp.org>
4936
4937         stdlib: Avoid compilation failure of c-strtold on mingw.
4938         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
4939
4940 2010-04-03  Bruno Haible  <bruno@clisp.org>
4941
4942         locale: Make C++ tests work on Cygwin and mingw.
4943         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
4944         cannot provide the function.
4945         Reported by Simon Josefsson.
4946
4947 2010-04-03  Bruno Haible  <bruno@clisp.org>
4948
4949         localename: Port to MacOS X 10.6.
4950         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
4951         memory layout of the locales in MacOS X 10.6 as well.
4952         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
4953
4954 2010-04-02  Bruno Haible  <bruno@clisp.org>
4955
4956         gnulib-tool: Ensure that long-running tests are executed last.
4957         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
4958         running tests after the one for the other tests.
4959
4960 2010-04-02  Bruno Haible  <bruno@clisp.org>
4961
4962         gnulib-tool: Ensure the tests in the main directory are executed first.
4963         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
4964         start with the current directory.
4965
4966 2010-04-02  Bruno Haible  <bruno@clisp.org>
4967
4968         Tests for module 'havelib', moved here from GNU gettext.
4969         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
4970         modifications.
4971         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
4972         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
4973         with modifications.
4974         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
4975         modifications.
4976         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
4977         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
4978         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
4979         with modifications.
4980         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
4981         with modifications.
4982         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
4983         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
4984         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
4985         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
4986         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
4987         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
4988         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
4989         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
4990         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
4991         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
4992         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
4993         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
4994         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
4995         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
4996         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
4997         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
4998         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
4999         with modifications.
5000         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5001         with modifications.
5002         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5003         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5004         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5005         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5006         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5007         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5008         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5009         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5010         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5011         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5012         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5013         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5014         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5015         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5016         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5017         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5018         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5019         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5020         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5021         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5022         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5023         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5024         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5025         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5026         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5027         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5028         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5029         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5030         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5031         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5032         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5033         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5034         * tests/havelib/rpathx/rpathx.c: New file, from
5035         gettext/autoconf-lib-link.
5036         * tests/havelib/rpathx/Makefile.am: New file, from
5037         gettext/autoconf-lib-link.
5038         * tests/havelib/rpathx/configure.ac: New file, from
5039         gettext/autoconf-lib-link with modifications.
5040         * tests/havelib/rpathy/rpathy.c: New file, from
5041         gettext/autoconf-lib-link.
5042         * tests/havelib/rpathy/Makefile.am: New file, from
5043         gettext/autoconf-lib-link.
5044         * tests/havelib/rpathy/configure.ac: New file, from
5045         gettext/autoconf-lib-link with modifications.
5046         * tests/havelib/rpathz/rpathz.c: New file, from
5047         gettext/autoconf-lib-link.
5048         * tests/havelib/rpathz/Makefile.am: New file, from
5049         gettext/autoconf-lib-link.
5050         * tests/havelib/rpathz/configure.ac: New file, from
5051         gettext/autoconf-lib-link with modifications.
5052         * tests/havelib/rpathlx/usex.c: New file, from
5053         gettext/autoconf-lib-link.
5054         * tests/havelib/rpathlx/Makefile.am: New file, from
5055         gettext/autoconf-lib-link.
5056         * tests/havelib/rpathlx/configure.ac: New file, from
5057         gettext/autoconf-lib-link with modifications.
5058         * tests/havelib/rpathly/usey.c: New file, from
5059         gettext/autoconf-lib-link.
5060         * tests/havelib/rpathly/Makefile.am: New file, from
5061         gettext/autoconf-lib-link.
5062         * tests/havelib/rpathly/configure.ac: New file, from
5063         gettext/autoconf-lib-link with modifications.
5064         * tests/havelib/rpathlz/usez.c: New file, from
5065         gettext/autoconf-lib-link.
5066         * tests/havelib/rpathlz/Makefile.am: New file, from
5067         gettext/autoconf-lib-link.
5068         * tests/havelib/rpathlz/configure.ac: New file, from
5069         gettext/autoconf-lib-link with modifications.
5070         * tests/havelib/rpathlyx/usey.c: New file, from
5071         gettext/autoconf-lib-link.
5072         * tests/havelib/rpathlyx/Makefile.am: New file, from
5073         gettext/autoconf-lib-link.
5074         * tests/havelib/rpathlyx/configure.ac: New file, from
5075         gettext/autoconf-lib-link with modifications.
5076         * tests/havelib/rpathlzyx/usez.c: New file, from
5077         gettext/autoconf-lib-link.
5078         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5079         gettext/autoconf-lib-link.
5080         * tests/havelib/rpathlzyx/configure.ac: New file, from
5081         gettext/autoconf-lib-link with modifications.
5082         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5083         with modifications.
5084
5085 2010-04-02  Bruno Haible  <bruno@clisp.org>
5086
5087         gnulib-tool: Create distributed built sources also for the tests.
5088         * gnulib-tool (func_create_testdir): Also generate distributed built
5089         sources in the tests directory.
5090
5091 2010-04-02  Bruno Haible  <bruno@clisp.org>
5092
5093         gnulib-tool: Obey user's environment variables.
5094         * gnulib-tool (func_create_testdir): When creating built sources,
5095         respect the environment variables for autoconf, automake, etc. given by
5096         the user.
5097
5098 2010-04-02  Bruno Haible  <bruno@clisp.org>
5099
5100         gnulib-tool: Provide the value of --m4-base to modules.
5101         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5102         of gl_m4_base.
5103
5104 2010-04-02  Eric Blake  <eblake@redhat.com>
5105
5106         maint.mk: fix some fallout
5107         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5108         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5109
5110 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5111
5112         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5113         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5114         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5115         (sc_cast_of_x_alloc_return_value): Likewise.
5116         (sc_cast_of_alloca_return_value): Likewise.
5117         (sc_space_tab): Likewise.
5118         (sc_prohibit_atoi_atof): Likewise.
5119         (sc_prohibit_magic_number_exit): Likewise.
5120         (sc_error_exit_success): Likewise.
5121         (sc_file_system): Likewise.
5122         (sc_prohibit_have_config_h): Likewise.
5123         (sc_require_config_h): Likewise.
5124         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5125         (sc_obsolete_symbols): Likewise.
5126         (sc_changelog): Likewise.
5127         (sc_program_name): Likewise.
5128         (sc_the_the): Likewise.
5129         (sc_trailing_blank): Likewise.
5130         (sc_two_space_separator_in_usage): Likewise.
5131         (sc_useless_cpp_parens): Likewise.
5132         (sc_GPL_version): Likewise.
5133         (sc_GFDL_version): Likewise.
5134         (sc_texinfo_acronym): Likewise.
5135         (sc_prohibit_cvs_keyword): Likewise.
5136         (sc_prohibit_stat_st_blocks): Likewise.
5137         (sc_prohibit_S_IS_definition): Likewise.
5138         (sc_redundant_const): Likewise.
5139         (sc_makefile_TAB_only_indentation): Likewise.
5140         (sc_m4_quote_check): Likewise.
5141         (sc_makefile_path_separator_check): Likewise.
5142         (sc_copyright_check): Likewise.
5143         (sc_Wundef_boolean): Likewise.
5144         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5145
5146         maint.mk: match 0 or more whitespace-before-function-call '('
5147         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5148         that have zero or two-and-more spaces between the function name
5149         and the open parenthesis.
5150         (sc_error_message_warn_fatal): Likewise.
5151         (sc_error_message_uppercase): Likewise.
5152         (sc_error_message_period): Likewise.
5153
5154 2010-03-31  Eric Blake  <eblake@redhat.com>
5155
5156         maint.mk: check for [ as well as test
5157         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5158         Based on a libvirt report by Matthias Bolte.
5159
5160         gnumakefile: don't squelch _version output
5161         * top/GNUmakefile (_version): Create one-shot dependency rather
5162         than using $(shell) when version must be regenerated.
5163         (_autoreconf): Run verbosely, by default.
5164
5165         sys_time: avoid compiler warnings
5166         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5167         unconditional, fixing regression from 2010-03-29.
5168         Reported by Simon Josefsson.
5169
5170 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5171
5172         maint.mk: s/_header_without_use/_sc_header_without_use/
5173         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5174         (sc_prohibit_assert_without_use): Use the new name.
5175         (sc_prohibit_close_stream_without_use): Likewise.
5176         (sc_prohibit_getopt_without_use): Likewise.
5177         (sc_prohibit_quotearg_without_use): Likewise.
5178         (sc_prohibit_quote_without_use): Likewise.
5179         (sc_prohibit_long_options_without_use): Likewise.
5180         (sc_prohibit_inttostr_without_use): Likewise.
5181         (sc_prohibit_ignore_value_without_use): Likewise.
5182         (sc_prohibit_error_without_use): Likewise.
5183         (sc_prohibit_xalloc_without_use): Likewise.
5184         (sc_prohibit_hash_without_use): Likewise.
5185         (sc_prohibit_hash_pjw_without_use): Likewise.
5186         (sc_prohibit_safe_read_without_use): Likewise.
5187         (sc_prohibit_argmatch_without_use): Likewise.
5188         (sc_prohibit_canonicalize_without_use): Likewise.
5189         (sc_prohibit_root_dev_ino_without_use): Likewise.
5190         (sc_prohibit_openat_without_use): Likewise.
5191         (sc_prohibit_c_ctype_without_use): Likewise.
5192         (sc_prohibit_signal_without_use): Likewise.
5193         (sc_prohibit_intprops_without_use): Likewise.
5194
5195 2010-03-30  Eric Blake  <eblake@redhat.com>
5196
5197         maint: improve module indicators
5198         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5199         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5200         columns, and avoid extra macro expansion.
5201
5202         fdopendir: work around FreeBSD bug
5203         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5204         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5205         * modules/dirent (Makefile.am): Substitute it.
5206         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5207         declaration.
5208         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5209         fix.
5210         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5211
5212 2010-03-29  Bruno Haible  <bruno@clisp.org>
5213
5214         Emit #pragma system_header after the inclusion guard, not before.
5215         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5216         guard that spans the entire file, not before. This enables an
5217         optimization in GCC's preprocessor.
5218         * lib/ctype.in.h: Likewise.
5219         * lib/dirent.in.h: Likewise.
5220         * lib/errno.in.h: Likewise.
5221         * lib/float.in.h: Likewise.
5222         * lib/getopt.in.h: Likewise.
5223         * lib/iconv.in.h: Likewise.
5224         * lib/langinfo.in.h: Likewise.
5225         * lib/locale.in.h: Likewise.
5226         * lib/math.in.h: Likewise.
5227         * lib/netdb.in.h: Likewise.
5228         * lib/netinet_in.in.h: Likewise.
5229         * lib/pty.in.h: Likewise.
5230         * lib/sched.in.h: Likewise.
5231         * lib/se-selinux.in.h: Likewise.
5232         * lib/search.in.h: Likewise.
5233         * lib/spawn.in.h: Likewise.
5234         * lib/stdarg.in.h: Likewise.
5235         * lib/stdint.in.h: Likewise.
5236         * lib/string.in.h: Likewise.
5237         * lib/strings.in.h: Likewise.
5238         * lib/sys_file.in.h: Likewise.
5239         * lib/sys_ioctl.in.h: Likewise.
5240         * lib/sys_time.in.h: Likewise.
5241         * lib/sys_times.in.h: Likewise.
5242         * lib/sys_utsname.in.h: Likewise.
5243         * lib/sys_wait.in.h: Likewise.
5244         * lib/sysexits.in.h: Likewise.
5245         * lib/wctype.in.h: Likewise.
5246
5247 2010-03-28  James Youngman  <jay@gnu.org>
5248
5249         save-cwd: don't leak a file descriptor when the caller execs.
5250         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5251         saved file descriptor.
5252         * modules/save-cwd (Depends-on): Depend on cloexec.
5253
5254 2010-03-29  Bruno Haible  <bruno@clisp.org>
5255
5256         Remove vestiges of fts-lgpl module.
5257         * lib/fts_.h: Assume GNULIB_FTS is 1.
5258         * lib/fts.c: Likewise.
5259         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5260
5261 2010-03-28  Bruno Haible  <bruno@clisp.org>
5262
5263         Fix definition of tests witness macro.
5264         * gnulib-tool (func_import): Fix definition of witness macro.
5265
5266 2010-03-28  Bruno Haible  <bruno@clisp.org>
5267
5268         Fix ioctl's protoype on glibc systems.
5269         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5270         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5271         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5272         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5273         signature. If not, arrange to replace the ioctl function.
5274         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5275         REPLACE_IOCTL.
5276         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5277         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5278         Reported by Ludovic Courtès <ludo@gnu.org>.
5279
5280 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5281
5282         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5283         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5284         made it so grep -r --include=GLOB* ... did not work.
5285
5286 2010-03-26  Jim Meyering  <meyering@redhat.com>
5287             Eric Blake  <eblake@redhat.com>
5288
5289         maint.mk: prohibit use of test's -o and -a operators
5290         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5291
5292 2010-03-28  Bruno Haible  <bruno@clisp.org>
5293
5294         Remove unused GNULIB_XYZ macro definitions.
5295         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5296         invocation.
5297
5298 2010-03-28  Bruno Haible  <bruno@clisp.org>
5299
5300         Mark privileged tests modules.
5301         * modules/idpriv-drop-tests (Status): New section.
5302         * modules/idpriv-droptemp-tests (Status): New section.
5303
5304 2010-03-28  Bruno Haible  <bruno@clisp.org>
5305
5306         Split C++ tests into separate tests modules.
5307         * modules/dirent-c++-tests: New file, extracted from
5308         modules/dirent-tests.
5309         * modules/dirent-tests: Depend on it.
5310         * modules/fcntl-h-c++-tests: New file, extracted from
5311         modules/fcntl-h-tests.
5312         * modules/fcntl-h-tests: Depend on it.
5313         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5314         * modules/glob-tests: Depend on it.
5315         * modules/iconv-h-c++-tests: New file, extracted from
5316         modules/iconv-h-tests.
5317         * modules/iconv-h-tests: Depend on it.
5318         * modules/langinfo-c++-tests: New file, extracted from
5319         modules/langinfo-tests.
5320         * modules/langinfo-tests: Depend on it.
5321         * modules/locale-c++-tests: New file, extracted from
5322         modules/locale-tests.
5323         * modules/locale-tests: Depend on it.
5324         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5325         * modules/math-tests: Depend on it.
5326         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5327         * modules/pty-tests: Depend on it.
5328         * modules/search-c++-tests: New file, extracted from
5329         modules/search-tests.
5330         * modules/search-tests: Depend on it.
5331         * modules/signal-c++-tests: New file, extracted from
5332         modules/signal-tests.
5333         * modules/signal-tests: Depend on it.
5334         * modules/spawn-c++-tests: New file, extracted from
5335         modules/spawn-tests.
5336         * modules/spawn-tests: Depend on it.
5337         * modules/stdio-c++-tests: New file, extracted from
5338         modules/stdio-tests.
5339         * modules/stdio-tests: Depend on it.
5340         * modules/stdlib-c++-tests: New file, extracted from
5341         modules/stdlib-tests.
5342         * modules/stdlib-tests: Depend on it.
5343         * modules/string-c++-tests: New file, extracted from
5344         modules/string-tests.
5345         * modules/string-tests: Depend on it.
5346         * modules/sys_ioctl-c++-tests: New file, extracted from
5347         modules/sys_ioctl-tests.
5348         * modules/sys_ioctl-tests: Depend on it.
5349         * modules/sys_select-c++-tests: New file, extracted from
5350         modules/sys_select-tests.
5351         * modules/sys_select-tests: Depend on it.
5352         * modules/sys_socket-c++-tests: New file, extracted from
5353         modules/sys_socket-tests.
5354         * modules/sys_socket-tests: Depend on it.
5355         * modules/sys_stat-c++-tests: New file, extracted from
5356         modules/sys_stat-tests.
5357         * modules/sys_stat-tests: Depend on it.
5358         * modules/sys_time-c++-tests: New file, extracted from
5359         modules/sys_time-tests.
5360         * modules/sys_time-tests: Depend on it.
5361         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5362         * modules/time-tests: Depend on it.
5363         * modules/unistd-c++-tests: New file, extracted from
5364         modules/unistd-tests.
5365         * modules/unistd-tests: Depend on it.
5366         * modules/wchar-c++-tests: New file, extracted from
5367         modules/wchar-tests.
5368         * modules/wchar-tests: Depend on it.
5369         * modules/wctype-c++-tests: New file, extracted from
5370         modules/wctype-tests.
5371         * modules/wctype-tests: Depend on it.
5372         Reported by Simon Josefsson.
5373
5374 2010-03-28  Bruno Haible  <bruno@clisp.org>
5375
5376         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5377         * gnulib-tool (func_exists_module): New function, extracted from
5378         func_verify_module.
5379         (func_verify_module): Use it.
5380         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5381         'foo' only if 'foo' exists.
5382         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5383         module.
5384
5385 2010-03-28  Bruno Haible  <bruno@clisp.org>
5386
5387         gnulib-tool: Add support for special categories of tests.
5388         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5389         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5390         (func_usage): Document them.
5391         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5392         inc_unportable_tests, inc_all_tests): New variables.
5393         (func_acceptable): Consider these variables.
5394         (func_modules_transitive_closure): Make it work when the 'Status' field
5395         consists of multiple words.
5396         (func_import): Store and restore the values of inc_cxx_tests,
5397         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5398         inc_all_tests in gnulib-comp.m4.
5399         (func_create_testdir): Set inc_all_tests to true.
5400         * doc/gnulib.texi (Extra tests modules): New section.
5401         Suggested by Jim Meyering.
5402
5403 2010-03-28  Bruno Haible  <bruno@clisp.org>
5404
5405         ansi-c++-opt: Allow turning off the C++ build by default.
5406         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5407         gl_CXX_CHOICE_DEFAULT_NO is defined.
5408         Requested by Eric Blake.
5409
5410 2010-03-28  Bruno Haible  <bruno@clisp.org>
5411
5412         unistd: Avoid #define replacements in C++ mode.
5413         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5414         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5415         setsockopt, shutdown, select): In C++, attach a warning to the function
5416         if possible, rather than #defining the symbol to a dysfunctional alias.
5417         Reported by John W. Eaton <jwe@gnu.org>.
5418
5419 2010-03-28  Bruno Haible  <bruno@clisp.org>
5420
5421         Fix link errors on mingw.
5422         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5423         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5424         $(LIBSOCKET).
5425         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5426         $(LIBSOCKET).
5427
5428 2010-03-28  Bruno Haible  <bruno@clisp.org>
5429             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5430
5431         lib-ignore: Determine different options for different compilers.
5432         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5433         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5434         Add comments.
5435         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5436         * NEWS: Mention the change.
5437
5438 2010-03-27  Bruno Haible  <bruno@clisp.org>
5439
5440         Remove unused GNULIB_XYZ macro definitions.
5441         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5442         * modules/fseek (configure.ac): Likewise.
5443         * modules/ioctl (configure.ac): Likewise.
5444         * modules/open (configure.ac): Likewise.
5445         * modules/stdlib-safer (configure.ac): Likewise.
5446
5447 2010-03-27  Bruno Haible  <bruno@clisp.org>
5448
5449         Add a remark about certain modules.
5450         * modules/malloc (Comment): New section.
5451         * modules/realloc (Comment): Likewise.
5452         * modules/sigpipe (Comment): Likewise.
5453
5454 2010-03-27  Bruno Haible  <bruno@clisp.org>
5455
5456         Resolve conflict between the two kinds of module indicators.
5457         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5458         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5459         * modules/canonicalize (configure.ac): Invoke
5460         gl_MODULE_INDICATOR_FOR_TESTS.
5461         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5462         GNULIB_XYZ.
5463         * tests/test-dirent-c++.cc: Likewise.
5464         * tests/test-dirent-safer.c: Likewise.
5465         * tests/test-dup2.c: Likewise.
5466         * tests/test-fchdir.c: Likewise.
5467         * tests/test-fcntl-h-c++.cc: Likewise.
5468         * tests/test-getopt.c: Likewise.
5469         * tests/test-getopt.h: Likewise.
5470         * tests/test-langinfo-c++.cc: Likewise.
5471         * tests/test-locale-c++.cc: Likewise.
5472         * tests/test-math-c++.cc: Likewise.
5473         * tests/test-pty-c++.cc: Likewise.
5474         * tests/test-search-c++.cc: Likewise.
5475         * tests/test-signal-c++.cc: Likewise.
5476         * tests/test-spawn-c++.cc: Likewise.
5477         * tests/test-stdio-c++.cc: Likewise.
5478         * tests/test-stdlib-c++.cc: Likewise.
5479         * tests/test-string-c++.cc: Likewise.
5480         * tests/test-sys_ioctl-c++.cc: Likewise.
5481         * tests/test-sys_select-c++.cc: Likewise.
5482         * tests/test-sys_socket-c++.cc: Likewise.
5483         * tests/test-sys_stat-c++.cc: Likewise.
5484         * tests/test-sys_time-c++.cc: Likewise.
5485         * tests/test-time-c++.cc: Likewise.
5486         * tests/test-unistd-c++.cc: Likewise.
5487         * tests/test-wchar-c++.cc: Likewise.
5488         * tests/uninorm/test-u8-nfc.c: Likewise.
5489         * tests/uninorm/test-u8-nfd.c: Likewise.
5490         * tests/uninorm/test-u8-nfkc.c: Likewise.
5491         * tests/uninorm/test-u8-nfkd.c: Likewise.
5492         * tests/uninorm/test-u16-nfc.c: Likewise.
5493         * tests/uninorm/test-u16-nfd.c: Likewise.
5494         * tests/uninorm/test-u16-nfkc.c: Likewise.
5495         * tests/uninorm/test-u16-nfkd.c: Likewise.
5496         * tests/uninorm/test-u32-nfc.c: Likewise.
5497         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5498         * tests/uninorm/test-u32-nfd.c: Likewise.
5499         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5500         * tests/uninorm/test-u32-nfkc.c: Likewise.
5501         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5502         * tests/uninorm/test-u32-nfkd.c: Likewise.
5503         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5504         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5505
5506 2010-03-27  Bruno Haible  <bruno@clisp.org>
5507
5508         Distinguish two kinds of module indicators.
5509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5510         gl_MODULE_INDICATOR.
5511         (gl_MODULE_INDICATOR): New macro.
5512         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5513         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5514         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5515         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5516         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5517         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5518         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5519         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5520         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5521         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5522         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5523         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5525         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5526         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5527         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5528         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5529         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5530         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5531         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5532         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5533         * modules/cloexec (configure.ac): Likewise.
5534         * modules/getopt-gnu (configure.ac): Likewise.
5535         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5536         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5537         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5538         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5539
5540 2010-03-27  Bruno Haible  <bruno@clisp.org>
5541
5542         New module description field 'Comment'.
5543         * gnulib-tool: New option --extract-comment.
5544         (func_usage): Document it.
5545         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5546         (func_get_comment): New function.
5547         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5548
5549 2010-03-27  Bruno Haible  <bruno@clisp.org>
5550
5551         Addendum to 2010-02-07 commit.
5552         * gnulib-tool (func_usage): Document --extract-applicability option.
5553
5554 2010-03-27  Bruno Haible  <bruno@clisp.org>
5555
5556         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5557         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5558         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5559         rather than link errors.
5560
5561 2010-03-27  Bruno Haible  <bruno@clisp.org>
5562
5563         Avoid side effects from tests-related modules on the compilation of lib.
5564         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5565         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5566         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5567         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5568         macro.
5569         (func_import): Define a witness macro. Assign it a value that depends
5570         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5571         tests-related modules.
5572         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5573         Reported by Jim Meyering.
5574
5575 2010-03-27  Bruno Haible  <bruno@clisp.org>
5576
5577         Factorize common .m4 code.
5578         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5579         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5580         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5581         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5582         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5583         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5584         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5585         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5586         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5588         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5589         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5590         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5591         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5592         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5593         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5594         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5595         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5597         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5598         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5600         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5603         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5604         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5605         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5606         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5607         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5608         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5609         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5610
5611 2010-03-27  Bruno Haible  <bruno@clisp.org>
5612
5613         Fix a compilation error on Cygwin with g++ >= 4.3.
5614         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5615         if it is undefined or if we alias it to chmod.
5616         (lstat): Don't warn about the use of this function if it is undefined
5617         or if we alias it to stat.
5618         Reported by Simon Josefsson.
5619
5620 2010-03-27  Bruno Haible  <bruno@clisp.org>
5621
5622         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5623         * modules/getlogin (configure.ac): Update.
5624
5625         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5626         * modules/getlogin_r (configure.ac): Update.
5627
5628         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5630         * modules/inet_ntop (configure.ac): Update.
5631
5632         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5633         * modules/inet_pton (configure.ac): Update.
5634
5635         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5636         * modules/mbslen (configure.ac): Update.
5637
5638         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5639         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5640         * modules/forkpty (configure.ac): Update.
5641         * modules/openpty (configure.ac): Update.
5642
5643 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5644
5645         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5646         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5647
5648 2010-03-25  Eric Blake  <eblake@redhat.com>
5649
5650         maint: use pragma consistently across replacement headers
5651         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5652         * lib/dirent.in.h (system_header): Likewise.
5653         * lib/errno.in.h (system_header): Likewise.
5654         * lib/float.in.h (system_header): Likewise.
5655         * lib/getopt.in.h (system_header): Likewise.
5656         * lib/iconv.in.h (system_header): Likewise.
5657         * lib/inttypes.in.h (system_header): Likewise.
5658         * lib/langinfo.in.h (system_header): Likewise.
5659         * lib/locale.in.h (system_header): Likewise.
5660         * lib/math.in.h (system_header): Likewise.
5661         * lib/netdb.in.h (system_header): Likewise.
5662         * lib/netinet_in.in.h (system_header): Likewise.
5663         * lib/pty.in.h (system_header): Likewise.
5664         * lib/sched.in.h (system_header): Likewise.
5665         * lib/se-selinux.in.h (system_header): Likewise.
5666         * lib/search.in.h (system_header): Likewise.
5667         * lib/spawn.in.h (system_header): Likewise.
5668         * lib/stdarg.in.h (system_header): Likewise.
5669         * lib/stdint.in.h (system_header): Likewise.
5670         * lib/string.in.h (system_header): Likewise.
5671         * lib/strings.in.h (system_header): Likewise.
5672         * lib/sys_file.in.h (system_header): Likewise.
5673         * lib/sys_ioctl.in.h (system_header): Likewise.
5674         * lib/sys_socket.in.h (system_header): Likewise.
5675         * lib/sys_times.in.h (system_header): Likewise.
5676         * lib/sys_utsname.in.h (system_header): Likewise.
5677         * lib/sys_wait.in.h (system_header): Likewise.
5678         * lib/sysexits.in.h (system_header): Likewise.
5679         * lib/unistd.in.h (system_header): Likewise.
5680         * lib/wctype.in.h (system_header): Likewise.
5681
5682         arpa/inet: fix mingw compilation warning
5683         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5684         Reported by Matthew Bolte.
5685
5686 2010-03-25  Bruno Haible  <bruno@clisp.org>
5687
5688         Avoid collision between gnulib wrapper and libintl wrapper.
5689         * lib/printf.c (printf): Don't define if a printf wrapper is already
5690         defined in intl/printf.c.
5691         Reported by Michel Boaventura <michel@michelboaventura.com>.
5692
5693 2010-03-25  Bruno Haible  <bruno@clisp.org>
5694
5695         Use ANSI C.
5696         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5697
5698 2010-03-25  Bruno Haible  <bruno@clisp.org>
5699
5700         Minor formatting changes.
5701         * lib/acosl.c: Insert space before function argument list.
5702         * lib/argz.c: Likewise.
5703         * lib/asinl.c: Likewise.
5704         * lib/expl.c: Likewise.
5705         * lib/gen-uni-tables.c: Likewise.
5706         * lib/gettext.h: Likewise.
5707         * lib/glthread/lock.h: Likewise.
5708         * lib/tanl.c: Likewise.
5709         * lib/uniname/uniname.c: Likewise.
5710         * tests/test-idpriv-drop.c: Likewise.
5711         * tests/test-idpriv-droptemp.c: Likewise.
5712         * tests/test-lock.c: Likewise.
5713         * tests/test-tls.c: Likewise.
5714         * lib/argp-help.c: Insert space before function-like macro argument
5715         list.
5716         * lib/memcmp.c: Likewise.
5717         * tests/test-base64.c: Likewise.
5718         * lib/localename.c: Insert space before sizeof's argument list.
5719         * lib/safe-alloc.h: Likewise.
5720         * lib/file-set.h: Insert space before macro argument list.
5721         * tests/test-argp.c: Likewise.
5722         * lib/argp-namefrob.h: Insert space before function parameter list.
5723         * lib/getaddrinfo.c: Likewise.
5724         * lib/netdb.in.h: Likewise.
5725         * lib/parse-duration.h: Likewise.
5726         * lib/parse-duration.c: Likewise.
5727         * lib/poll.c: Likewise.
5728         * lib/select.c: Likewise.
5729         * lib/trim.h: Likewise.
5730         * tests/test-usleep.c: Likewise.
5731         * lib/ldexpl.c: Insert space before function parameter list and before
5732         function argument list.
5733         * lib/logl.c: Likewise.
5734         * lib/sqrtl.c: Likewise.
5735         * lib/trim.c: Likewise.
5736         * lib/cosl.c: Use GNU style indentation. Insert space before function
5737         argument list.
5738         * lib/sinl.c: Likewise.
5739         * lib/tsearch.c: Insert space after 'for'.
5740         Reported by Jim Meyering.
5741
5742 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5743
5744         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5745         config header before grepping, as it's not present before
5746         autoreconf/configure are run.  Reported by Simon Josefsson.
5747
5748 2010-03-23  Bruno Haible  <bruno@clisp.org>
5749
5750         pt_chown: Make it work with automake < 1.11.
5751         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5752         Reported by Simon Josefsson.
5753
5754 2010-03-23  Bruno Haible  <bruno@clisp.org>
5755
5756         pt_chown: Don't depend on GPLed modules.
5757         * lib/pt_chown.c: Don't include idpriv.h.
5758         (main): Don't drop privileges.
5759         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5760         Reported by Simon Josefsson.
5761
5762 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5763
5764         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5765         suggestions from karl@freefriends.org (Karl Berry).
5766
5767 2010-03-22  Eric Blake  <eblake@redhat.com>
5768
5769         gethostname: further tweaks
5770         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5771         are overriding gethostname.
5772         Suggested by Bruno Haible.
5773
5774 2010-03-21  Bruno Haible  <bruno@clisp.org>
5775
5776         Fix comments.
5777         * lib/forkpty.c (rpl_forkpty): Fix comment.
5778         * lib/openpty.c (rpl_openpty): Likewise.
5779         Reported by Eric Blake.
5780
5781 2010-03-22  Eric Blake  <eblake@redhat.com>
5782
5783         gethostname: fix build on mingw
5784         * lib/unistd.in.h (includes): Work around fact that mingw
5785         <winsock2.h> re-includes <unistd.h>, by avoiding any
5786         redeclarations if we are being included by <winsock2.h>.
5787         Reported by Matthias Bolte.
5788
5789 2010-03-21  Bruno Haible  <bruno@clisp.org>
5790
5791         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5792         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5793         modifications.
5794         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5795         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5796         provide the replacement.
5797         * modules/forkpty (Depends-on): Add openpty, login_tty.
5798         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5799         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5800         * doc/glibc-functions/forkpty.texi: More supported platforms.
5801         * config/srclist.txt: Add forkpty.c (commented).
5802
5803 2010-03-21  Bruno Haible  <bruno@clisp.org>
5804
5805         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5806         (Makefile.am): Verify that PTY_LIB is defined.
5807
5808         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5809
5810 2010-03-21  Bruno Haible  <bruno@clisp.org>
5811
5812         Tests for module 'login_tty'.
5813         * modules/login_tty-tests: New file.
5814         * tests/test-login_tty.c: New file.
5815
5816         New module 'login_tty'.
5817         * lib/login_tty.c: New file.
5818         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5819         * modules/login_tty: New file.
5820         * doc/glibc-functions/login_tty.texi: Mention the new module.
5821
5822 2010-03-21  Bruno Haible  <bruno@clisp.org>
5823
5824         login_tty: Documentation.
5825         * doc/glibc-functions/login_tty.texi: New file.
5826         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5827
5828 2010-03-21  Bruno Haible  <bruno@clisp.org>
5829
5830         pty: Consistent macro naming.
5831         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5832         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5833         * modules/pty (configure.ac): Update.
5834
5835 2010-03-21  Bruno Haible  <bruno@clisp.org>
5836
5837         Tests for openpty: Make stricter.
5838         * tests/test-openpty.c (main): Add test of canonical processing and
5839         erase.
5840         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5841
5842         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5843         * lib/openpty.c (openpty): New replacement function.
5844         * lib/pty.in.h: Include <termios.h>.
5845         (openpty): Update declaration. Add comments.
5846         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5847         is not declared, arrange to provide the replacement. Check for _getpty
5848         and posix_openpt.
5849         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5850         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5851         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5852         * modules/pty-tests (test_pty_c___LDADD): New variable.
5853         * doc/glibc-functions/openpty.texi: More supported platforms.
5854
5855 2010-03-21  Bruno Haible  <bruno@clisp.org>
5856
5857         setenv: Tweaks.
5858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5859         the test program.
5860         * doc/posix-functions/setenv.texi: Update platforms list.
5861
5862 2010-03-21  Bruno Haible  <bruno@clisp.org>
5863
5864         New module 'unlockpt'.
5865         * lib/unlockpt.c: New file, from glibc with modifications.
5866         * m4/unlockpt.m4: New file.
5867         * modules/unlockpt: New file.
5868         * lib/stdlib.in.h (unlockpt): New declaration.
5869         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5870         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5871         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5872         HAVE_UNLOCKPT.
5873         * doc/posix-functions/unlockpt.texi: Mention the new module.
5874         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5875         * config/srclist.txt: Add unlockpt.c (commented).
5876
5877 2010-03-21  Jim Meyering  <meyering@redhat.com>
5878
5879         maint.mk: prohibit inclusion of "intprops.h" without use
5880         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5881
5882 2010-03-21  Bruno Haible  <bruno@clisp.org>
5883
5884         New module 'grantpt'.
5885         * lib/grantpt.c: New file, from glibc with modifications.
5886         * m4/grantpt.m4: New file.
5887         * modules/grantpt: New file.
5888         * lib/stdlib.in.h (grantpt): New declaration.
5889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5890         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5891         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5892         HAVE_GRANTPT.
5893         * doc/posix-functions/grantpt.texi: Mention the new module.
5894         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5895         * config/srclist.txt: Add grantpt.c (commented).
5896
5897 2010-03-21  Bruno Haible  <bruno@clisp.org>
5898
5899         New module 'pt_chown'.
5900         * lib/pt_chown.c: New file, from glibc with modifications.
5901         * lib/pty-private.h: New file, from glibc with modifications.
5902         * modules/pt_chown: New file.
5903         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5904
5905 2010-03-21  Bruno Haible  <bruno@clisp.org>
5906
5907         Tests for module 'ptsname'.
5908         * modules/ptsname-tests: New file.
5909         * tests/test-ptsname.c: New file.
5910
5911         New module 'ptsname'.
5912         * lib/ptsname.c: New file, from glibc with modifications.
5913         * m4/ptsname.m4: New file.
5914         * modules/ptsname: New file.
5915         * lib/stdlib.in.h (ptsname): New declaration.
5916         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5917         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5918         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5919         HAVE_PTSNAME.
5920         * doc/posix-functions/ptsname.texi: Mention the new module.
5921         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
5922         * config/srclist.txt: Add ptsname.c (commented).
5923
5924 2010-03-21  Bruno Haible  <bruno@clisp.org>
5925
5926         Tests for module 'ttyname_r'.
5927         * modules/ttyname_r-tests: New file.
5928         * tests/test-ttyname_r.c: New file.
5929
5930         New module 'ttyname_r'.
5931         * lib/ttyname_r.c: New file.
5932         * m4/ttyname_r.m4: New file.
5933         * modules/ttyname_r: New file.
5934         * lib/unistd.in.h (ttyname_r): New declaration.
5935         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
5936         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
5937         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
5938         HAVE_TTYNAME_R.
5939         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
5940         * doc/posix-functions/ttyname_r.texi: Mention the new module.
5941
5942 2010-03-20  Bruno Haible  <bruno@clisp.org>
5943
5944         signal: Undefine macro definitions in C++ mode.
5945         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
5946         sigfillset): Undefine macro definitions from the system header in C++
5947         mode.
5948         Reported by John W. Eaton <jwe@gnu.org>.
5949
5950 2010-03-20  Bruno Haible  <bruno@clisp.org>
5951
5952         Ensure no #include statements inside extern "C" { ... }.
5953         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
5954         contain #include statements.
5955         * lib/time.in.h: Likewise.
5956
5957 2010-03-20  Bruno Haible  <bruno@clisp.org>
5958
5959         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
5960         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
5961         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
5962         Reported by John W. Eaton <jwe@gnu.org>.
5963
5964 2010-03-20  Bruno Haible  <bruno@clisp.org>
5965
5966         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
5967         Reported by Jim Meyering.
5968
5969 2010-03-20  Bruno Haible  <bruno@clisp.org>
5970
5971         pipe: Set errno upon failure.
5972         * lib/pipe.h: Specify that when -1 is returned, errno is set.
5973         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
5974         errno value in error message.
5975
5976 2010-03-20  Bruno Haible  <bruno@clisp.org>
5977             Jim Meyering  <meyering@redhat.com>
5978
5979         lchown: Avoid "unused variable" warning.
5980         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
5981
5982 2010-03-20  Bruno Haible  <bruno@clisp.org>
5983
5984         Work around unlink() bug on MacOS X 10.5.6.
5985         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
5986         attempting to unlink a parent directory.
5987         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
5988         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
5989         activate for the replacement function.
5990         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
5991
5992 2010-03-20  Bruno Haible  <bruno@clisp.org>
5993
5994         Fix link errors on Solaris 8.
5995         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
5996         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
5997
5998 2010-03-19  Jim Meyering  <meyering@redhat.com>
5999
6000         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6001         The _LIBC implementation of build_range_exp correctly honors the
6002         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6003         However, the non-_LIBC implementation would ignore that syntax-bit
6004         flag and return REG_ERANGE unconditionally.
6005         This change makes it honor that flag.
6006         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6007         Make two pointer parameters "const".
6008         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6009         (parse_bracket_exp): Update caller.
6010
6011         regex.m4: correct the reversed range endpoint ([b-a]) test
6012         * m4/regex.m4: When requiring that [b-a] evoke failure,
6013         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6014         test pass once again for x86-based systems.
6015
6016 2010-03-19  Bruno Haible  <bruno@clisp.org>
6017
6018         scandir: Fix link error on Solaris 8.
6019         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6020         macros.
6021
6022 2010-03-19  Bruno Haible  <bruno@clisp.org>
6023
6024         getusershell: Fix documentation.
6025         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6026         module.
6027         * doc/glibc-functions/setusershell.texi: Likewise.
6028
6029         getusershell: Provide declaration, missing on Solaris 9.
6030         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6031         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6032         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6033         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6035         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6036         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6037         HAVE_GETUSERSHELL.
6038         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6039
6040 2010-03-19  Bruno Haible  <bruno@clisp.org>
6041
6042         wctype: Provide iswblank function.
6043         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6044         exists and is fine.
6045         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6046         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6047         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6048         * doc/posix-functions/iswblank.texi: Update.
6049
6050 2010-03-19  Bruno Haible  <bruno@clisp.org>
6051
6052         Tests of module 'pty' in C++ mode.
6053         * modules/pty-tests: New file.
6054         * tests/test-pty-c++.cc: New file.
6055         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6056
6057 2010-03-19  Eric Blake  <eblake@redhat.com>
6058
6059         logb: fix documentation
6060         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6061         1.5 declaration bug.
6062
6063         forkpty, openpty: prefer glibc's const-safe prototype
6064         * lib/forkpty.c (rpl_forkpty): New file.
6065         * lib/openpty.c (rpl_openpty): Likewise.
6066         * modules/forkpty (Files): Distribute it.
6067         * modules/openpty (Files): Likewise.
6068         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6069         check...
6070         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6071         replacement for for non-const BSD signature.
6072         * modules/pty (Makefile.am): Substitute witnesses.
6073         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6074         * tests/test-forkpty.c: Update signature check.
6075         * tests/test-openpty.c: Likewise.
6076         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6077         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6078
6079         forkpty, openpty: split functions into new modules
6080         * modules/pty (Makefile.am): Substitute new witnesses.
6081         (Libraries): Move library detection...
6082         * modules/forkpty: ...into new module.
6083         * modules/openpty: Another new module.
6084         * modules/pty-tests: Rename and split...
6085         * modules/forkpty-tests: ...to this...
6086         * modules/openpty-tests: ...and this.
6087         * tests/test-pty.c: Rename and split...
6088         * tests/test-forkpty.c: ...to this...
6089         * tests/test-openpty.c: ...and this.
6090         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6091         (gl_PTY): Split library searching...
6092         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6093         (gl_FORKPTY, gl_OPENPTY): New macros.
6094         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6095         * NEWS: Mention the split.
6096         * MODULES.html.sh (Misc): Document the modules.
6097         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6098         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6099
6100         pty: improve replacement header
6101         * lib/pty.in.h: New file.
6102         * modules/pty (Files): Ship it.
6103         (Makefile.am): Always build replacement.
6104         * m4/pty.m4: Rename...
6105         * m4/pty_h.m4: ...to this.
6106         (gl_PTY): Modernize setting of witness macros; update check of
6107         forkpty to take proper advantage of cache.
6108         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6109
6110         getopt: avoid compiler warning
6111         * lib/getopt.c (attribute_hidden): Remove unused macro.
6112
6113 2010-03-18  Bruno Haible  <bruno@clisp.org>
6114
6115         Fix link errors on Solaris 8.
6116         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6117         * modules/search-tests (test_search_c___LDADD): Likewise.
6118         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6119         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6120         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6121         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6122         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6123         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6124         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6125
6126 2010-03-18  Bruno Haible  <bruno@clisp.org>
6127
6128         Fix bug introduced on 2010-03-14.
6129         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6130         (gl_SPAWN_H): Require it.
6131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6132         Reported by Simon Josefsson.
6133
6134 2010-03-18  Bruno Haible  <bruno@clisp.org>
6135
6136         Fix typo introduced on 2009-12-31.
6137         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6138         posix_spawn_file_actions_adddup2.
6139
6140 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6141         and Eric Blake  <eblake@redhat.com>
6142
6143         test-vc-list-files-git: make more robust
6144         * tests/test-vc-list-files-git.sh: Unset problematic environment
6145         variables.  Chain commands together.
6146
6147 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6148
6149         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6150         `AC_CHECK_DECL' invocation.
6151
6152 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6153
6154         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6155         appears before executable statements. Suggested by Petr Sumbera
6156         <Petr.Sumbera@Sun.COM>.
6157
6158 2010-03-14  Bruno Haible  <bruno@clisp.org>
6159
6160         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6161         portability problems. Instead use a simpler test.
6162         (main): Check that invalid arguments are rejected only on Linux.
6163
6164 2010-03-14  Bruno Haible  <bruno@clisp.org>
6165
6166         Fix bug introduced on 2009-12-31.
6167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6168         gl_PREREQ_SYS_H_WINSOCK2 always.
6169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6170         SYS_SOCKET_H variable.
6171         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6172         Update comments.
6173         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6174         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6175         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6176         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6177         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6178
6179 2010-03-14  Bruno Haible  <bruno@clisp.org>
6180
6181         Fix values returned by sinl, cosl.
6182         * lib/trigl.h: Add specification comments.
6183         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6184         that combines the values from the precomputed table with the values of
6185         the Chebyshev polynomials.
6186
6187 2010-03-14  Bruno Haible  <bruno@clisp.org>
6188
6189         Fix compilation error when modules 'posix_spawn[p]' are not used.
6190         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6192
6193 2010-03-14  Bruno Haible  <bruno@clisp.org>
6194
6195         Fix compilation error on mingw when module 'time_r' is not used.
6196         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6197         is 1.
6198         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6199         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6200         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6202
6203 2010-03-14  Bruno Haible  <bruno@clisp.org>
6204
6205         Fix compilation error with Sun C.
6206         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6207         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6208         instead of GCC specific ULONG_LONG_MAX.
6209         * lib/xstrtoll.c: Likewise.
6210         * lib/xstrtoull.c: Likewise.
6211
6212 2010-03-13  Bruno Haible  <bruno@clisp.org>
6213
6214         Allow the user to disable C++ code and tests.
6215         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6216         (gl_PROG_ANSI_CXX): Require it.
6217
6218 2010-03-13  Bruno Haible  <bruno@clisp.org>
6219
6220         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6221         cases.
6222
6223 2010-03-13  Bruno Haible  <bruno@clisp.org>
6224
6225         Test that gnulib does not break the standard C++ headers.
6226         * tests/test-locale-c++2.cc: New file.
6227         * modules/locale-tests (Files): Add it.
6228         (Makefile.am): Compile it for test-locale-c++.
6229         * tests/test-math-c++2.cc: New file.
6230         * modules/math-tests (Files): Add it.
6231         (Makefile.am): Compile it for test-math-c++.
6232         * tests/test-signal-c++2.cc: New file.
6233         * modules/signal-tests (Files): Add it.
6234         (Makefile.am): Compile it for test-signal-c++.
6235         * tests/test-stdio-c++2.cc: New file.
6236         * modules/stdio-tests (Files): Add it.
6237         (Makefile.am): Compile it for test-stdio-c++.
6238         * tests/test-stdlib-c++2.cc: New file.
6239         * modules/stdlib-tests (Files): Add it.
6240         (Makefile.am): Compile it for test-stdlib-c++.
6241         * tests/test-string-c++2.cc: New file.
6242         * modules/string-tests (Files): Add it.
6243         (Makefile.am): Compile it for test-string-c++.
6244         * tests/test-time-c++2.cc: New file.
6245         * modules/time-tests (Files): Add it.
6246         (Makefile.am): Compile it for test-time-c++.
6247         Reported by John W. Eaton <jwe@gnu.org>.
6248
6249 2010-03-13  Bruno Haible  <bruno@clisp.org>
6250
6251         * gnulib-tool (func_usage): Clarify which options are available for
6252         --create-testdir and --create-megatestdir.
6253
6254 2010-03-13  Bruno Haible  <bruno@clisp.org>
6255
6256         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6257         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6258         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6259         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6260         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6261         when appropriate.
6262         Reported by Jim Meyering.
6263
6264 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6265
6266         * gnulib-tool (func_import): Explain origin of code.
6267
6268 2010-03-12  Bruno Haible  <bruno@clisp.org>
6269
6270         Fix problem with automake's definition of CXXLINK.
6271         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6272         Reported by Simon Josefsson and Ludovic Courtès.
6273
6274 2010-03-12  Bruno Haible  <bruno@clisp.org>
6275
6276         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6277         stable releases.
6278
6279 2010-03-11  Bruno Haible  <bruno@clisp.org>
6280
6281         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6282         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6283         whether the system provides one variant or multiple variants of the
6284         function.
6285         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6286         C++ compilers.
6287         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6288         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6289         Reported by Jim Meyering.
6290
6291 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6292
6293         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6294
6295 2010-03-08  Bruno Haible  <bruno@clisp.org>
6296
6297         gnulib-tool: Add support for --libtool in --create-testdir.
6298         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6299         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6300
6301 2010-03-08  Eric Blake  <eblake@redhat.com>
6302
6303         gnulib-tool.texi: mention possibility of git submodule
6304         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6305         submodules.
6306         * doc/.gitignore: Ignore another generated file.
6307
6308 2010-03-08  Karl Berry  <karl@gnu.org>
6309
6310         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6311         of committing gnulib files while skipping others.
6312
6313 2010-03-07  Bruno Haible  <bruno@clisp.org>
6314
6315         Tests of module 'wctype' in C++ mode.
6316         * tests/test-wctype-c++.cc: New file.
6317         * modules/wctype-tests (Files): Add it and tests/signature.h.
6318         (Depends-on): Add ansi-c++-opt.
6319         (Makefile.am): Arrange to compile and run test-wctype-c++.
6320
6321         Tests of module 'wchar' in C++ mode.
6322         * tests/test-wchar-c++.cc: New file.
6323         * modules/wchar-tests (Files): Add it and tests/signature.h.
6324         (Depends-on): Add ansi-c++-opt.
6325         (Makefile.am): Arrange to compile and run test-wchar-c++.
6326         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6327         gl_MODULE_INDICATOR.
6328
6329         Tests of module 'unistd' in C++ mode.
6330         * tests/test-unistd-c++.cc: New file.
6331         * modules/unistd-tests (Files): Add it and tests/signature.h.
6332         (Depends-on): Add ansi-c++-opt.
6333         (Makefile.am): Arrange to compile and run test-unistd-c++.
6334         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6335         gl_MODULE_INDICATOR.
6336
6337         Tests of module 'time' in C++ mode.
6338         * tests/test-time-c++.cc: New file.
6339         * modules/time-tests (Files): Add it and tests/signature.h.
6340         (Depends-on): Add ansi-c++-opt.
6341         (Makefile.am): Arrange to compile and run test-time-c++.
6342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6343
6344         Tests of module 'sys_time' in C++ mode.
6345         * tests/test-sys_time-c++.cc: New file.
6346         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6347         (Depends-on): Add ansi-c++-opt.
6348         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6349         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6350         gl_MODULE_INDICATOR.
6351
6352         Tests of module 'sys_stat' in C++ mode.
6353         * tests/test-sys_stat-c++.cc: New file.
6354         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6355         (Depends-on): Add ansi-c++-opt.
6356         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6357         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6358         gl_MODULE_INDICATOR.
6359
6360         Tests of module 'sys_socket' in C++ mode.
6361         * tests/test-sys_socket-c++.cc: New file.
6362         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6363         (Depends-on): Add ansi-c++-opt.
6364         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6365         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6366         gl_MODULE_INDICATOR.
6367
6368         Tests of module 'sys_select' in C++ mode.
6369         * tests/test-sys_select-c++.cc: New file.
6370         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6371         (Depends-on): Add ansi-c++-opt.
6372         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6373         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6374         gl_MODULE_INDICATOR.
6375
6376         Tests of module 'sys_ioctl' in C++ mode.
6377         * tests/test-sys_ioctl-c++.cc: New file.
6378         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6379         (Depends-on): Add ansi-c++-opt.
6380         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6382         gl_MODULE_INDICATOR.
6383
6384         Tests of module 'string' in C++ mode.
6385         * tests/test-string-c++.cc: New file.
6386         * modules/string-tests (Files): Add it and tests/signature.h.
6387         (Depends-on): Add ansi-c++-opt.
6388         (Makefile.am): Arrange to compile and run test-string-c++.
6389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6390         gl_MODULE_INDICATOR.
6391
6392         Tests of module 'stdlib' in C++ mode.
6393         * tests/test-stdlib-c++.cc: New file.
6394         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6395         (Depends-on): Add ansi-c++-opt.
6396         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6397         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6398         gl_MODULE_INDICATOR.
6399
6400         Tests of module 'stdio' in C++ mode.
6401         * tests/test-stdio-c++.cc: New file.
6402         * modules/stdio-tests (Files): Add it and tests/signature.h.
6403         (Depends-on): Add ansi-c++-opt.
6404         (Makefile.am): Arrange to compile and run test-stdio-c++.
6405         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6406         gl_MODULE_INDICATOR.
6407
6408         Tests of module 'spawn' in C++ mode.
6409         * tests/test-spawn-c++.cc: New file.
6410         * modules/spawn-tests (Files): Add it and tests/signature.h.
6411         (Depends-on): Add ansi-c++-opt.
6412         (Makefile.am): Arrange to compile and run test-spawn-c++.
6413         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6414         gl_MODULE_INDICATOR.
6415
6416         Tests of module 'signal' in C++ mode.
6417         * tests/test-signal-c++.cc: New file.
6418         * modules/signal-tests (Files): Add it and tests/signature.h.
6419         (Depends-on): Add ansi-c++-opt.
6420         (Makefile.am): Arrange to compile and run test-signal-c++.
6421         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6422         gl_MODULE_INDICATOR.
6423
6424         Tests of module 'search' in C++ mode.
6425         * tests/test-search-c++.cc: New file.
6426         * modules/search-tests (Files): Add it and tests/signature.h.
6427         (Depends-on): Add ansi-c++-opt.
6428         (Makefile.am): Arrange to compile and run test-search-c++.
6429         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6430         gl_MODULE_INDICATOR.
6431
6432         Tests of module 'math' in C++ mode.
6433         * tests/test-math-c++.cc: New file.
6434         * modules/math-tests (Files): Add it and tests/signature.h.
6435         (Depends-on): Add ansi-c++-opt.
6436         (Makefile.am): Arrange to compile and run test-math-c++.
6437         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6438
6439         Tests of module 'locale' in C++ mode.
6440         * tests/test-locale-c++.cc: New file.
6441         * modules/locale-tests (Files): Add it and tests/signature.h.
6442         (Depends-on): Add ansi-c++-opt.
6443         (Makefile.am): Arrange to compile and run test-locale-c++.
6444         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6445         gl_MODULE_INDICATOR.
6446
6447         Tests of module 'langinfo' in C++ mode.
6448         * tests/test-langinfo-c++.cc: New file.
6449         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6450         (Depends-on): Add ansi-c++-opt.
6451         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6452         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6453         gl_MODULE_INDICATOR.
6454
6455         Tests of module 'iconv-h' in C++ mode.
6456         * tests/test-iconv-h-c++.cc: New file.
6457         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6458         (Depends-on): Add ansi-c++-opt.
6459         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6460
6461         Tests of module 'glob' in C++ mode.
6462         * tests/test-glob-c++.cc: New file.
6463         * modules/glob-tests (Files): Add it.
6464         (Depends-on): Add ansi-c++-opt.
6465         (Makefile.am): Arrange to compile and run test-glob-c++.
6466
6467         Tests of module 'fcntl-h' in C++ mode.
6468         * tests/test-fcntl-h-c++.cc: New file.
6469         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6470         (Depends-on): Add ansi-c++-opt.
6471         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6472         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6473         gl_MODULE_INDICATOR.
6474
6475         Tests of module 'dirent' in C++ mode.
6476         * tests/test-dirent-c++.cc: New file.
6477         * modules/dirent-tests (Files): Add it and tests/signature.h.
6478         (Depends-on): Add ansi-c++-opt.
6479         (Makefile.am): Arrange to compile and run test-dirent-c++.
6480         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6481         gl_MODULE_INDICATOR.
6482
6483         New module 'ansi-c++-opt'.
6484         * modules/ansi-c++-opt: New file.
6485         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6486
6487         Document C++ namespace mode.
6488         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6489
6490         wctype: Avoid #define replacements in C++ mode.
6491         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6492         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6493         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6494         In C++, define a namespaced alias symbol.
6495         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6496         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6497         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6498         rule.
6499
6500         wchar: Avoid #define replacements in C++ mode.
6501         * lib/wchar.in.h: Include c++defs.h.
6502         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6503         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6504         symbol.
6505         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6506         * modules/wchar (Depends-on): Add c++defs.
6507         (Makefile.am): Update wchar.h rule.
6508
6509         unistd: Avoid #define replacements in C++ mode.
6510         * lib/unistd.in.h: Include c++defs.h.
6511         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6512         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6513         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6514         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6515         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6516         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6517         symbol.
6518         (environ): Update.
6519         * modules/unistd (Depends-on): Add c++defs.
6520         (Makefile.am): Update unistd.h rule.
6521
6522         time: Avoid #define replacements in C++ mode.
6523         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6524         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6525         define a namespaced alias symbol.
6526         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6527         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6528         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6529         * modules/time (Depends-on): Add c++defs, warn-on-use.
6530         (Makefile.am): Update time.h rule.
6531         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6532         * modules/nanosleep (configure.ac): Likewise.
6533         * modules/strptime (configure.ac): Likewise.
6534         * modules/timegm (configure.ac): Likewise.
6535
6536         sys_time: Avoid #define replacements in C++ mode.
6537         * lib/sys_time.in.h: Include c++defs.h.
6538         (gettimeofday): In C++, define a namespaced alias symbol.
6539         * modules/sys_time (Depends-on): Add c++defs.
6540         (Makefile.am): Update sys/time.h rule.
6541
6542         sys_stat: Avoid #define replacements in C++ mode.
6543         * lib/sys_stat.in.h: Include c++defs.h.
6544         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6545         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6546         namespaced alias symbol.
6547         In C++, define a namespaced alias symbol.
6548         * modules/sys_stat (Depends-on): Add c++defs.
6549         (Makefile.am): Update sys/stat.h rule.
6550
6551         sys_socket: Avoid #define replacements in C++ mode.
6552         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6553         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6554         definitions also when the system has a <sys/socket.h>.
6555         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6556         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6557         In C++, define a namespaced alias symbol.
6558         * modules/sys_socket (Depends-on): Add c++defs.
6559         (Makefile.am): Update sys/socket.h rule.
6560
6561         sys_select: Avoid #define replacements in C++ mode.
6562         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6563         definitions also when the system has a <sys/select.h>.
6564         (select): In C++, define a namespaced alias symbol.
6565         * modules/sys_select (Depends-on): Add c++defs.
6566         (Makefile.am): Update sys/select.h rule.
6567
6568         sys_ioctl: Avoid #define replacements in C++ mode.
6569         * lib/sys_ioctl.in.h: Include c++defs.h.
6570         (ioctl): In C++, define a namespaced alias symbol.
6571         * modules/sys_ioctl (Depends-on): Add c++defs.
6572         (Makefile.am): Update sys/ioctl.h rule.
6573
6574         string: Avoid #define replacements in C++ mode.
6575         * lib/string.in.h: Include c++defs.h.
6576         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6577         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6578         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6579         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6580         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6581         * modules/string (Depends-on): Add c++defs.
6582         (Makefile.am): Update string.h rule.
6583
6584         stdlib: Avoid #define replacements in C++ mode.
6585         * lib/stdlib.in.h: Include c++defs.h.
6586         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6587         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6588         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6589         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6590         symbol.
6591         * modules/stdlib (Depends-on): Add c++defs.
6592         (Makefile.am): Update stdlib.h rule.
6593
6594         stdio: Avoid #define replacements in C++ mode.
6595         * lib/stdio.in.h: Include c++defs.h.
6596         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6597         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6598         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6599         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6600         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6601         namespaced alias symbol.
6602         * modules/stdio (Depends-on): Add c++defs.
6603         (Makefile.am): Update stdio.h rule.
6604
6605         spawn: Avoid #define replacements in C++ mode.
6606         * lib/spawn.in.h: Include c++defs.h.
6607         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6608         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6609         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6610         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6611         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6612         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6613         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6614         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6615         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6616         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6617         In C++, define a namespaced alias symbol.
6618         * modules/spawn (Depends-on): Add c++defs.
6619         (Makefile.am): Update spawn.h rule.
6620
6621         signal: Avoid #define replacements in C++ mode.
6622         * lib/signal.in.h: Include c++defs.h.
6623         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6624         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6625         namespaced alias symbol.
6626         * modules/signal (Depends-on): Add c++defs.
6627         (Makefile.am): Update signal.h rule.
6628
6629         search: Avoid #define replacements in C++ mode.
6630         * lib/search.in.h: Include c++defs.h.
6631         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6632         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6633         symbol.
6634         * modules/search (Depends-on): Add c++defs.
6635         (Makefile.am): Update search.h rule.
6636
6637         math: Avoid #define replacements in C++ mode.
6638         * lib/math.in.h: Include c++defs.h.
6639         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6640         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6641         trunc, truncl): In C++, define a namespaced alias symbol.
6642         * modules/math (Depends-on): Add c++defs.
6643         (Makefile.am): Update math.h rule.
6644
6645         locale: Avoid #define replacements in C++ mode.
6646         * lib/locale.in.h: Include c++defs.h.
6647         (duplocale): In C++, define a namespaced alias symbol.
6648         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6649         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6650         * modules/locale (Depends-on): Add c++defs.
6651         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6652
6653         langinfo: Avoid #define replacements in C++ mode.
6654         * lib/langinfo.in.h: Include c++defs.h.
6655         (nl_langinfo): In C++, define a namespaced alias symbol.
6656         * modules/langinfo (Depends-on): Add c++defs.
6657         (Makefile.am): Update langinfo.h rule.
6658
6659         iconv-h: Avoid #define replacements in C++ mode.
6660         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6661         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6662         symbol.
6663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6664         whenever iconv is present.
6665         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6666         (Makefile.am): Update iconv.h rule.
6667
6668         glob: Avoid #define replacements in C++ mode.
6669         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6670         (_gl_glob_errfunc_fn): New type.
6671         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6672         symbol.
6673         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6674         (Makefile.am): Update glob.h rule.
6675
6676         fcntl-h: Avoid #define replacements in C++ mode.
6677         * lib/fcntl.in.h: Include c++defs.h.
6678         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6679         * modules/fcntl-h (Depends-on): Add c++defs.
6680         (Makefile.am): Update fcntl.h rule.
6681
6682         dirent: Avoid #define replacements in C++ mode.
6683         * lib/dirent.in.h: Include c++defs.h.
6684         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6685         namespaced alias symbol.
6686         (dirfd): Update declaration.
6687         * modules/dirent (Depends-on): Add c++defs.
6688         (Makefile.am): Update dirent.h rule.
6689
6690         ctype: Make it usable in C++ code.
6691         * lib/ctype.in.h: Include c++defs.h.
6692         (isblank): Declare as extern "C".
6693         * modules/ctype (Depends-on): Add c++defs.
6694         (Makefile.am): Update ctype.h rule.
6695
6696         New module 'c++defs'.
6697         * modules/c++defs: New file.
6698         * build-aux/c++defs.h: New file.
6699         Reported by John W. Eaton <jwe@gnu.org>.
6700
6701 2010-03-07  Bruno Haible  <bruno@clisp.org>
6702
6703         logb: Provide missing declaration for Cygwin.
6704         * lib/math.in.h (logb): New declaration.
6705         * m4/logb.m4: New file.
6706         * modules/logb (Files): Add m4/logb.m4.
6707         (Depends-on): Add math.
6708         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6709         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6711         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6712         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6713
6714 2010-03-07  Bruno Haible  <bruno@clisp.org>
6715
6716         Fix test-cond link error.
6717         * tests/test-cond.c: Include <stdio.h>.
6718
6719 2010-03-07  Bruno Haible  <bruno@clisp.org>
6720
6721         Fix test-dirent-safer link error.
6722         * modules/dirent-safer-tests (Makefile.am): Define
6723         test_dirent_safer_LDADD.
6724
6725 2010-03-07  Bruno Haible  <bruno@clisp.org>
6726
6727         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6728         among default module list.
6729
6730 2010-03-07  Bruno Haible  <bruno@clisp.org>
6731
6732         Fix link error on platforms with GNU libiconv.
6733         * modules/unistr/u8-strcoll-tests (Makefile): Define
6734         test_u8_strcoll_LDADD.
6735         * modules/unistr/u16-strcoll-tests (Makefile): Define
6736         test_u16_strcoll_LDADD.
6737         * modules/unistr/u32-strcoll-tests (Makefile): Define
6738         test_u32_strcoll_LDADD.
6739
6740 2010-03-07  Bruno Haible  <bruno@clisp.org>
6741
6742         Use POSIX declarations for socket functions.
6743         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6744         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6745         rpl_sendto): Change declaration to match POSIX.
6746         * lib/connect.c (rpl_connect): Likewise.
6747         * lib/accept.c (rpl_accept): Likewise.
6748         * lib/bind.c (rpl_bind): Likewise.
6749         * lib/getpeername.c (rpl_getpeername): Likewise.
6750         * lib/getsockname.c (rpl_getsockname): Likewise.
6751         * lib/recv.c (rpl_recv): Likewise.
6752         * lib/send.c (rpl_send): Likewise.
6753         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6754         * lib/sendto.c (rpl_sendto): Likewise.
6755
6756 2010-03-06  Bruno Haible  <bruno@clisp.org>
6757
6758         Clarify access, euidaccess, faccessat.
6759         * doc/posix-functions/faccessat.texi: Mention security problem under
6760         "Other problems", not "Portability problems".
6761         * doc/posix-functions/access.texi: Likewise. Mention a related security
6762         problem.
6763         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6764         * lib/euidaccess.c: Add comments about platforms.
6765         * lib/unistd.in.h (access, euidaccess): Add warnings.
6766
6767 2010-03-07  Bruno Haible  <bruno@clisp.org>
6768
6769         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6770         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6771         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6772         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6773         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6774         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6775         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6776         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6777         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6778         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6779         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6780         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6781         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6782         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6783         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6784         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6785         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6786         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6787         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6788         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6789         Likewise.
6790         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6791         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6792         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6793         Likewise.
6794         * tests/test-spawn.c (main): Make it work when
6795         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6796
6797 2010-03-07  Bruno Haible  <bruno@clisp.org>
6798
6799         Fix incorrect Makefile.am generation in German locale.
6800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6801         Execute sed command with character range in C locale.
6802
6803 2010-03-06  Bruno Haible  <bruno@clisp.org>
6804
6805         Tests for module 'iconv-h'.
6806         * modules/iconv-h-tests: New file.
6807         * tests/test-iconv-h.c: New file.
6808
6809         New module 'iconv-h'.
6810         * modules/iconv-h: New file.
6811         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6812         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6813         (configure.ac): Remove gl_ICONV_H.
6814         (Makefile.am): Remove rule for iconv.h.
6815
6816 2010-03-06  Bruno Haible  <bruno@clisp.org>
6817
6818         More consistent naming of *.m4 files.
6819         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6820         * modules/wctype (Files): Update.
6821
6822         More consistent naming of *.m4 files.
6823         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6824         * modules/wchar (Files): Update.
6825
6826 2010-03-06  Jim Meyering  <meyering@redhat.com>
6827
6828         euidaccess: relax license to LGPLv2+
6829         * modules/euidaccess (License): Relax to LGPLv2+.
6830
6831 2010-03-06  Bruno Haible  <bruno@clisp.org>
6832
6833         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6834         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6835         (Makefile.am): Augment lib_SOURCES instead.
6836
6837 2010-03-04  Jim Meyering  <meyering@redhat.com>
6838
6839         utime: remove obsolete module
6840         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6841         unnecessary for years, and has been marked as obsolete for 10 months.
6842         * modules/utime: Remove file.
6843         * lib/utime.c: Remove file.
6844         * m4/utime.m4: Remove file.
6845         * m4/utimes-null.m4: Remove file.
6846         * doc/posix-functions/utime.texi (utime): Remove reference to
6847         the module.  Move the sole "fixed by gnulib" item into the
6848         "problems not fixed by Gnulib" list.
6849         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6850
6851 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6852
6853         * modules/exit (License): Relax license to LGPLv2+.
6854         (Status): Mark as obsolete.
6855         * NEWS: Mention deprecated 'exit' module.
6856         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6857         of now obsolete 'exit'.
6858
6859 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6860
6861         fts-lgpl: remove unused module
6862         * modules/fts-lgpl: Remove.
6863         * MODULES.html.sh (func_all_modules): Adjust.
6864         * check-module (find_included_lib_files): Adjust.
6865         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6866
6867 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6868
6869         copy-acl: enhance Solaris ACL error handling
6870         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6871         * lib/set-mode-acl.c (qset_acl): Likewise.
6872
6873 2010-03-02  Bruno Haible  <bruno@clisp.org>
6874
6875         spawn: Don't override the system defined values on FreeBSD 8.
6876         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6877         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6878         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6879         if HAVE_POSIX_SPAWN is 1.
6880         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6881
6882 2010-03-01  Bruno Haible  <bruno@clisp.org>
6883
6884         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6885         regarding Automake.
6886
6887 2010-02-25  Bruno Haible  <bruno@clisp.org>
6888
6889         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6890         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6891         setting, not afterwards.
6892         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6893
6894 2010-02-24  Eric Blake  <eblake@redhat.com>
6895
6896         bootstrap, git-version-gen: use timestamp
6897         * build-aux/git-version-gen (scriptversion): Force UTC.
6898         * build-aux/bootstrap (scriptversion): New variable.
6899
6900         bootstrap: allow older git
6901         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6902         older than 1.6.4.  Requested by the libvirt project.
6903
6904 2010-02-23  Eric Blake  <eblake@redhat.com>
6905
6906         warn-on-use: work with old autoconf
6907         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6908         AS_VAR semantics of autoconf 2.60.
6909         Reported by Bruno Haible.
6910
6911         bootstrap: improve some comments
6912         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6913         clarification comments.
6914
6915         gettimeofday: provide correct function
6916         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6917         when replacement is declared, otherwise provide gettimeofday.
6918         Reported by Michael Goffioul.
6919
6920 2010-02-23  Jim Meyering  <meyering@redhat.com>
6921
6922         lib-ignore: relax license to "unlimited", not LGPLv2+
6923         * modules/lib-ignore (License): Relax to "unlimited".
6924
6925 2010-02-23  Jim Meyering  <meyering@redhat.com>
6926
6927         lib-ignore: relax license to LGPLv2+
6928         * modules/lib-ignore (License): Relax to LGPLv2+.
6929
6930 2010-02-22  Eric Blake  <eblake@redhat.com>
6931
6932         lseek: avoid bash 3.2 broken pipe bug
6933         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
6934         warning from bash 3.2.
6935         Reported by Ben Pfaff, with analysis from Bruno Haible.
6936
6937         bootstrap: support non-FSF copyright holder
6938         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
6939         bootstrap.conf override of COPYRIGHT_HOLDER.
6940         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
6941
6942         bootstrap: interoperate with gettext 0.14.1
6943         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
6944
6945         bootstrap: allow for alternate submodule location
6946         * build-aux/bootstrap (gnulib_path): New variable; use instead of
6947         hardcoding submodule location.
6948         (gnulib_mk): Allow direct use of Makefile.am.
6949
6950         bootstrap: use GNULIB_SRCDIR to reduce disk usage
6951         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
6952         rather than reconfiguring where the submodule points.
6953
6954         gettimeofday: restore support for platforms that lack function
6955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
6956         replacement if function is missing.
6957         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
6958         * modules/sys_time (Makefile.am): Substitute it.
6959         * lib/sys_time.in.h (gettimeofday): Check it.
6960         Reported by Michael Goffioul.
6961
6962 2010-02-21  Bruno Haible  <bruno@clisp.org>
6963
6964         * lib/stdio.in.h (obstack_printf): Fix typo.
6965
6966 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
6967
6968         vc-list-files: use bzr ls's -R option
6969         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
6970         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
6971
6972 2010-02-21  Jim Meyering  <meyering@redhat.com>
6973
6974         init.sh: fix EXEEXT shims to work also for names like test-prog
6975         * tests/init.sh: Re-exec a better shell, when needed.
6976         If the current shell lacks support for posix $(...), an init.sh-using
6977         test will now try to find a shell that supports that.  If EXEEXT is
6978         nonempty, we also require support for hyphen-in-alias-name and shell
6979         substitutions like ${var#glob}.  Failure to find such a shell results
6980         in a skipped test.
6981
6982 2010-02-21  Bruno Haible  <bruno@clisp.org>
6983
6984         Really work around around "broken pipe" error message from bash 3.2.
6985         * gnulib-tool (func_reset_sigpipe): Remove function.
6986         (echo): In bash 3.2, define to a function that uses printf.
6987         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
6988
6989 2010-02-20  Bruno Haible  <bruno@clisp.org>
6990
6991         Restore support for automake 1.9.6 with autoconf 2.61.
6992         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
6993         Reported by James Youngman <jay@gnu.org>.
6994
6995 2010-02-20  Bruno Haible  <bruno@clisp.org>
6996
6997         Improve *printf warning condition.
6998         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
6999         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7000         and the function is overridden due to SIGPIPE emulation.
7001
7002 2010-02-20  Bruno Haible  <bruno@clisp.org>
7003
7004         * lib/stdio.in.h: Tweak comments.
7005
7006 2010-02-19  Bruno Haible  <bruno@clisp.org>
7007
7008         Make it easier to find modules. New gnulib-tool option '--find'.
7009         * gnulib-tool: New option --find.
7010         (func_usage): Document it.
7011         (func_sanitize_modulelist): New function, extracted from
7012         func_all_modules.
7013         (func_all_modules): Invoke it.
7014         * doc/gnulib-tool.texi (Which modules?): New node.
7015
7016 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7017
7018         * lib/sys_select.in.h: Provide select replacement even if
7019         sys/select.h exists on a system, for Interix.
7020
7021 2010-02-18  Jim Meyering  <meyering@redhat.com>
7022
7023         init.sh: don't use $(...) just yet
7024         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7025         to accommodate e.g., Solaris' /bin/sh.
7026
7027 2010-02-17  Bruno Haible  <bruno@clisp.org>
7028
7029         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7030         Reported by Ludovic Courtès <ludo@gnu.org>.
7031
7032 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7033
7034         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7035         linking with -lintl.
7036
7037 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7038
7039         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7040         if not provided by the system's netdb.h.  Reported by
7041         ludo@gnu.org (Ludovic Courtès).
7042
7043 2010-02-15  Jim Meyering  <meyering@redhat.com>
7044
7045         init.sh: improve portability and efficiency
7046         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7047         "dummy" in a for loop.
7048         Use '!', not '^' to select the complement of a character set used
7049         in a "case" statement.
7050         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7051         Suggestions from Eric Blake.
7052
7053         init.sh: automatically accommodate programs with the .exe suffix
7054         Automatically arrange for an invocation of "prog" to execute the
7055         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7056         may use the simpler "prog", yet still work when built on a system
7057         that requires specifying the added suffix.
7058         Do this by constructing a function named "prog" that invokes
7059         "prog.exe" for each .exe file in selected directories.
7060         * tests/init.sh (find_exe_basenames_): New function.
7061         (create_exe_shim_functions_): New function.
7062         (path_prepend_): Use it.
7063
7064         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7065         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7066         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7067
7068 2010-02-14  Jim Meyering  <meyering@redhat.com>
7069
7070         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7071         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7072         (sc_prohibit_hash_pjw_without_use): New rule.
7073
7074         maint.mk: allow the default upload destination dir to be overridden
7075         * top/maint.mk (upload_dest_dir_): Define with a default that
7076         preserves the status quo.
7077         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7078         Reported by Peter Simons.
7079
7080         maint.mk: prohibit inclusion of "hash.h" without_use
7081         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7082
7083 2010-02-10  Jim Meyering  <meyering@redhat.com>
7084
7085         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7086         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7087
7088 2010-02-09  Eric Blake  <ebb9@byu.net>
7089         and Bruno Haible  <bruno@clisp.org>
7090
7091         obstack-printf-posix: ensure declaration
7092         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7093         extracted from gl_FUNC_OBSTACK_PRINTF.
7094         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7095         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7096         Likewise.
7097         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7098         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7099         0.
7100
7101 2010-02-08  Bruno Haible  <bruno@clisp.org>
7102
7103         gnulib-tool: Fix typo in 2010-02-07 commit.
7104         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7105         Reported by Eric Blake.
7106
7107 2010-02-07  Bruno Haible  <bruno@clisp.org>
7108
7109         gnulib-tool: Fix up caching patches.
7110         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7111         option --no-cache. Use associative arrays when supported by the shell.
7112         (sed_comments): New variable.
7113         (modcache): Renamed from do_cache.
7114         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7115         abbreviate unnecessarily.
7116         (have_associative): New variable.
7117         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7118         way also for ksh and zsh.
7119         (func_init_sed_convert_to_cache_statements): New function, extracted
7120         from func_cache_lookup_module. Add support for associative arrays.
7121         Don't set the c_MODULE_cached variable here. Ignore all lines before
7122         the first field header. Remove only the final newline, not all trailing
7123         newlines. Support empty fields correctly. Limit the use of 'eval' to
7124         assignments.
7125         (func_get_description, func_get_status, func_get_notice,
7126         func_get_applicability, func_get_filelist, func_get_dependencies,
7127         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7128         func_get_automake_snippet, func_get_include_directive,
7129         func_get_link_directive, func_get_license, func_get_maintainer):
7130         Update documentation. List the unoptimized code first. Add support for
7131         associative arrays. Limit the use of 'eval' to assignments.
7132         (func_get_applicability): Undo stylistic pessimisations.
7133         (func_get_automake_snippet, func_get_include_directive): Reduce code
7134         duplication.
7135         (func_modules_transitive_closure, func_modules_add_dummy,
7136         func_modules_notice, func_modules_to_filelist, func_add_file,
7137         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7138         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7139         func_create_testdir, func_create_megatestdir): Update documentation.
7140
7141 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7142
7143         * gnulib-tool (func_cache_lookup_module): Store the module name
7144         belonging to the cache variable; error out if two different
7145         module names map to the same cache variable name.
7146
7147 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7148
7149         gnulib-tool: Make caching optional.
7150         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7151         Update matching short versions of --no-changelog.
7152         (func_usage): Update.
7153         (sed_extract_cache_prog): Renamed from ...
7154         (sed_extract_prog): ... this; revert to old extraction script.
7155         (func_get_description, func_get_status)
7156         (func_get_notice, func_get_applicability, func_get_filelist)
7157         (func_get_dependencies, func_get_autoconf_early_snippet)
7158         (func_get_autoconf_snippet, func_get_automake_snippet)
7159         (func_get_include_directive, func_get_link_directive)
7160         (func_get_license, func_get_maintainer): If $do_cache is false,
7161         use old, non-caching extraction scripts.
7162         Suggestion by Bruno Haible.
7163
7164 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7165
7166         gnulib-tool: cache module metainformation.
7167         * gnulib-tool (sed_extract_prog): Match newline before each
7168         header, and rewrite header to a shell variable suffix.
7169         (func_cache_var, func_cache_lookup_module): New functions,
7170         to turn a module name into a cache variable prefix, and to
7171         look up and cache module metainformation.
7172         (func_get_description, func_get_status)
7173         (func_get_notice, func_get_applicability, func_get_filelist)
7174         (func_get_dependencies, func_get_autoconf_early_snippet)
7175         (func_get_autoconf_snippet, func_get_automake_snippet)
7176         (func_get_include_directive, func_get_link_directive)
7177         (func_get_license, func_get_maintainer): Use
7178         func_cache_lookup_module.
7179
7180 2010-02-07  Bruno Haible  <bruno@clisp.org>
7181
7182         fnctl: Fix missing dependency.
7183         * modules/fcntl (Depends-on): Add getdtablesize.
7184         Reported by John W. Eaton <jwe@gnu.org>.
7185
7186 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7187
7188         Argp: fix recognition of short alias options.
7189
7190         * lib/argp-parse.c (convert_options): Fix improper use of
7191         `|' between character values.
7192         * tests/test-argp.c (group1_option): New alias option
7193         --read (-r).
7194         (group1_parser): Special handling for 'r'.
7195         (test15): New test case.
7196         (test_fun): Add test15.
7197         * tests/test-argp-2.sh: Update expected --help and --usage
7198         outputs.
7199
7200 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7201
7202         * tests/test-argp.c: Fix indentation.
7203
7204 2010-02-04  Eric Blake  <ebb9@byu.net>
7205
7206         gettimeofday: expose type of second argument
7207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7208         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7209         * tests/test-gettimeofday.c: Use it to silence warning.
7210         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7211         the issue.
7212
7213 2010-02-03  Jim Meyering  <meyering@redhat.com>
7214
7215         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7216         * lib/regcomp.c (TYPE_SIGNED): Define.
7217         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7218
7219         regcomp.c: avoid a new -Wshadow warning
7220         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7221
7222 2010-02-01  Jim Meyering  <meyering@redhat.com>
7223
7224         removing useless parentheses in cpp #define directives
7225         For motivation, see commit c0221df4, "define STREQ(a,b)
7226         consistently, removing useless parentheses"
7227         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7228         * lib/mountlist.c (MNT_IGNORE): Likewise.
7229         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7230
7231 2010-02-01  Eric Blake  <ebb9@byu.net>
7232
7233         sys_time: use link-warning
7234         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7235         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7236         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7237         * modules/sys_time (Depends-on): Add warn-on-use.
7238         (Makefile.am): Always build replacement.
7239         (configure.ac): Update substitutions.
7240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7241         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7242         bother with SYS_TIME_H.
7243         * modules/gettimeofday (configure.ac): Declare indicator.
7244         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7245         in use.
7246
7247         closein-tests: silence compiler warning
7248         * tests/test-closein.c (main): Ignore fread result.
7249         * modules/closein-tests (Depends-on): Add ignore-value.
7250
7251         tests: silence warning about system return
7252         * tests/test-areadlink-with-size.c (main): Ignore system result.
7253         * tests/test-areadlink.c (main): Likewise.
7254         * tests/test-areadlinkat-with-size.c (main): Likewise.
7255         * tests/test-areadlinkat.c (main): Likewise.
7256         * tests/test-canonicalize-lgpl.c (main): Likewise.
7257         * tests/test-canonicalize.c (main): Likewise.
7258         * tests/test-chown.c (main): Likewise.
7259         * tests/test-fchownat.c (main): Likewise.
7260         * tests/test-fdutimensat.c (main): Likewise.
7261         * tests/test-fstatat.c (main): Likewise.
7262         * tests/test-futimens.c (main): Likewise.
7263         * tests/test-lchown.c (main): Likewise.
7264         * tests/test-link.c (main): Likewise.
7265         * tests/test-linkat.c (main): Likewise.
7266         * tests/test-lstat.c (main): Likewise.
7267         * tests/test-mkdir.c (main): Likewise.
7268         * tests/test-mkdirat.c (main): Likewise.
7269         * tests/test-mkfifo.c (main): Likewise.
7270         * tests/test-mkfifoat.c (main): Likewise.
7271         * tests/test-mknod.c (main): Likewise.
7272         * tests/test-readlink.c (main): Likewise.
7273         * tests/test-remove.c (main): Likewise.
7274         * tests/test-rename.c (main): Likewise.
7275         * tests/test-renameat.c (main): Likewise.
7276         * tests/test-rmdir.c (main): Likewise.
7277         * tests/test-symlink.c (main): Likewise.
7278         * tests/test-symlinkat.c (main): Likewise.
7279         * tests/test-unlink.c (main): Likewise.
7280         * tests/test-unlinkat.c (main): Likewise.
7281         * tests/test-utimens.c (main): Likewise.
7282         * tests/test-utimensat.c (main): Likewise.
7283         * modules/areadlink-tests (Depends-on): Add ignore-value.
7284         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7285         * modules/areadlinkat-tests (Depends-on): Likewise.
7286         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7287         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7288         * modules/canonicalize-tests (Depends-on): Likewise.
7289         * modules/chown-tests (Depends-on): Likewise.
7290         * modules/fdutimensat-tests (Depends-on): Likewise.
7291         * modules/futimens-tests (Depends-on): Likewise.
7292         * modules/lchown-tests (Depends-on): Likewise.
7293         * modules/link-tests (Depends-on): Likewise.
7294         * modules/linkat-tests (Depends-on): Likewise.
7295         * modules/lstat-tests (Depends-on): Likewise.
7296         * modules/mkdir-tests (Depends-on): Likewise.
7297         * modules/mkfifo-tests (Depends-on): Likewise.
7298         * modules/mkfifoat-tests (Depends-on): Likewise.
7299         * modules/mknod-tests (Depends-on): Likewise.
7300         * modules/openat-tests (Depends-on): Likewise.
7301         * modules/readlink-tests (Depends-on): Likewise.
7302         * modules/remove-tests (Depends-on): Likewise.
7303         * modules/rename-tests (Depends-on): Likewise.
7304         * modules/renameat-tests (Depends-on): Likewise.
7305         * modules/rmdir-tests (Depends-on): Likewise.
7306         * modules/symlink-tests (Depends-on): Likewise.
7307         * modules/symlinkat-tests (Depends-on): Likewise.
7308         * modules/unlink-tests (Depends-on): Likewise.
7309         * modules/utimens-tests (Depends-on): Likewise.
7310         * modules/utimensat-tests (Depends-on): Likewise.
7311
7312 2010-01-31  Bruno Haible  <bruno@clisp.org>
7313
7314         Perform the same test for many <math.h> functions.
7315         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7316         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7317         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7318         of gl_MATHFUNC.
7319         * modules/acos (configure.ac): Likewise.
7320         * modules/asin (configure.ac): Likewise.
7321         * modules/atan (configure.ac): Likewise.
7322         * modules/atan2 (configure.ac): Likewise.
7323         * modules/cbrt (configure.ac): Likewise.
7324         * modules/copysign (configure.ac): Likewise.
7325         * modules/cos (configure.ac): Likewise.
7326         * modules/cosh (configure.ac): Likewise.
7327         * modules/erf (configure.ac): Likewise.
7328         * modules/erfc (configure.ac): Likewise.
7329         * modules/exp (configure.ac): Likewise.
7330         * modules/fmod (configure.ac): Likewise.
7331         * modules/hypot (configure.ac): Likewise.
7332         * modules/j0 (configure.ac): Likewise.
7333         * modules/j1 (configure.ac): Likewise.
7334         * modules/jn (configure.ac): Likewise.
7335         * modules/lgamma (configure.ac): Likewise.
7336         * modules/log (configure.ac): Likewise.
7337         * modules/log10 (configure.ac): Likewise.
7338         * modules/log1p (configure.ac): Likewise.
7339         * modules/pow (configure.ac): Likewise.
7340         * modules/remainder (configure.ac): Likewise.
7341         * modules/sin (configure.ac): Likewise.
7342         * modules/sinh (configure.ac): Likewise.
7343         * modules/tan (configure.ac): Likewise.
7344         * modules/tanh (configure.ac): Likewise.
7345         * modules/y0 (configure.ac): Likewise.
7346         * modules/y1 (configure.ac): Likewise.
7347         * modules/yn (configure.ac): Likewise.
7348         Suggested by Paolo Bonzini.
7349
7350 2010-01-31  Bruno Haible  <bruno@clisp.org>
7351
7352         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7353
7354 2010-01-31  Bruno Haible  <bruno@clisp.org>
7355
7356         Work around getdelim() bug on FreeBSD 8.0.
7357         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7358         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7359         not work.
7360         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7361         is 1.
7362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7363         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7364         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7365         a non-zero size.
7366         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7367
7368 2010-01-31  Bruno Haible  <bruno@clisp.org>
7369
7370         Work around getline() bug on FreeBSD 8.0.
7371         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7372         and a non-zero size.
7373         * tests/test-getline.c (main): Likewise.
7374         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7375         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7376
7377 2010-01-28  Eric Blake  <ebb9@byu.net>
7378
7379         regex: fix build failure
7380         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7381         platforms.
7382
7383 2010-01-28  Jim Meyering  <meyering@redhat.com>
7384
7385         regex: do not ignore memory allocation failure
7386         * lib/regex_internal.c (create_cd_newstate): Detect
7387         re_node_set_init_copy failure.   Extracted from glibc commit
7388         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7389
7390         regex: sync more white-space changes from libc
7391         * lib/regex_internal.c: White-space only changes.
7392         * lib/regexec.c: Likewise.
7393
7394         regex: add many uses of __attribute_warn_unused_result__
7395         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7396         * lib/regexec.c: Likewise.
7397         Extracted from a messy glibc commit.
7398
7399         regcomp.c: spelling and merge-artifact from glibc
7400         * lib/regcomp.c: Merge remainder of glibc's
7401         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7402
7403         regcomp.c: sync white-space changes from glibc
7404         * lib/regcomp.c: Merge to accommodate white space
7405         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7406
7407         regcomp.c: do not ignore internal return values
7408         * lib/regcomp.c: Do not ignore internal return values.
7409         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7410         but without its white-space changes and spelling fixes.
7411
7412         regex_internal.h: define __attribute_warn_unused_result__
7413         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7414
7415         maint: add a syntax-check rule to check for vulnerable Makefile.in
7416         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7417
7418 2010-01-27  Jim Meyering  <meyering@redhat.com>
7419
7420         ncftpput-ftp: clean up spaces
7421         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7422         Remove trailing blanks.
7423
7424 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7425
7426         * build-aux/git-version-gen: Fix copyright statement.
7427         * build-aux/gnupload: Likewise.
7428         * tests/test-arcfour.c: Likewise.
7429         * tests/test-arctwo.c: Likewise.
7430         * tests/test-count-one-bits.c: Likewise.
7431         * tests/test-crc.c: Likewise.
7432         * tests/test-des.c: Likewise.
7433         * tests/test-gc-arcfour.c: Likewise.
7434         * tests/test-gc-arctwo.c: Likewise.
7435         * tests/test-gc-des.c: Likewise.
7436         * tests/test-gc-hmac-md5.c: Likewise.
7437         * tests/test-gc-hmac-sha1.c: Likewise.
7438         * tests/test-gc-md2.c: Likewise.
7439         * tests/test-gc-md4.c: Likewise.
7440         * tests/test-gc-md5.c: Likewise.
7441         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7442         * tests/test-gc-rijndael.c: Likewise.
7443         * tests/test-gc-sha1.c: Likewise.
7444         * tests/test-gc.c: Likewise.
7445         * tests/test-gethostname.c: Likewise.
7446         * tests/test-gettimeofday.c: Likewise.
7447         * tests/test-hash.c: Likewise.
7448         * tests/test-hmac-md5.c: Likewise.
7449         * tests/test-hmac-sha1.c: Likewise.
7450         * tests/test-md2.c: Likewise.
7451         * tests/test-md4.c: Likewise.
7452         * tests/test-md5.c: Likewise.
7453         * tests/test-memchr.c: Likewise.
7454         * tests/test-memchr2.c: Likewise.
7455         * tests/test-memcmp.c: Likewise.
7456         * tests/test-memmem.c: Likewise.
7457         * tests/test-memrchr.c: Likewise.
7458         * tests/test-rawmemchr.c: Likewise.
7459         * tests/test-read-file.c: Likewise.
7460         * tests/test-rijndael.c: Likewise.
7461         * tests/test-sockets.c: Likewise.
7462         * tests/test-strchrnul.c: Likewise.
7463         * tests/test-strstr.c: Likewise.
7464         * tests/test-strtod.c: Likewise.
7465         * build-aux/ncftpput-ftp: Likewise.
7466
7467 2010-01-26  Eric Blake  <ebb9@byu.net>
7468
7469         ignore-value: update recommended header name
7470         * modules/ignore-value (Include): Only use <> for headers that
7471         exist in glibc.
7472
7473 2010-01-26  Jim Meyering  <meyering@redhat.com>
7474
7475         test-userspec.c: avoid compiler warnings
7476         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7477         and "initialization discards qualifiers..." warnings.
7478         Put the first "uid" in its own scope, and make char* members "const".
7479
7480 2010-01-25  Bruno Haible  <bruno@clisp.org>
7481
7482         gnulib-tool: Make warning diagnostics consistent.
7483         * gnulib-tool (func_warning): New function.
7484         Use it everywhere where gnulib-tool produces output to stderr and it is
7485         not a fatal error.
7486
7487 2010-01-25  Bruno Haible  <bruno@clisp.org>
7488
7489         Fix test dependencies.
7490         * modules/xstrtol-tests (Depends-on): Add inttypes.
7491         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7492
7493 2010-01-25 Pádraig Brady <P@draigBrady.com>
7494
7495         syntax-check: detect incorrect boolean macro values in config.h
7496         * modules/maintainer-makefile (configure.ac): Parameterize the location
7497         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7498         The logic is from Eric Blake and the location indicated by Jim Meyering.
7499         Note the more natural CONFIG_HEADER name is prohibited by automake
7500         for backwards compatibility reasons.
7501         * top/maint.mk (sc_Wundef_boolean): New rule.
7502
7503 2010-01-25  Jim Meyering  <meyering@redhat.com>
7504
7505         bootstrap: detect MacOS 10.6's shasum, too
7506         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7507         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7508
7509 2010-01-23  Jim Meyering  <meyering@redhat.com>
7510
7511         xstrtoll: new module
7512         * modules/xstrtoll: New file.
7513         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7514         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7515         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7516         ./configure fails if you use this module and lack "long long".
7517         * modules/xstrtoll-tests: New module.
7518         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7519         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7520         new init.sh-based test framework.
7521
7522 2010-01-24  Bruno Haible  <bruno@clisp.org>
7523
7524         Tests for module 'yn'.
7525         * modules/yn-tests: New file.
7526         * tests/test-yn.c: New file.
7527
7528         Tests for module 'y1'.
7529         * modules/y1-tests: New file.
7530         * tests/test-y1.c: New file.
7531
7532         Tests for module 'y0'.
7533         * modules/y0-tests: New file.
7534         * tests/test-y0.c: New file.
7535
7536         Tests for module 'tanh'.
7537         * modules/tanh-tests: New file.
7538         * tests/test-tanh.c: New file.
7539
7540         Tests for module 'tan'.
7541         * modules/tan-tests: New file.
7542         * tests/test-tan.c: New file.
7543
7544         Tests for module 'sqrt'.
7545         * modules/sqrt-tests: New file.
7546         * tests/test-sqrt.c: New file.
7547
7548         Tests for module 'sinh'.
7549         * modules/sinh-tests: New file.
7550         * tests/test-sinh.c: New file.
7551
7552         Tests for module 'sin'.
7553         * modules/sin-tests: New file.
7554         * tests/test-sin.c: New file.
7555
7556         Tests for module 'rint'.
7557         * modules/rint-tests: New file.
7558         * tests/test-rint.c: New file.
7559
7560         Tests for module 'remainder'.
7561         * modules/remainder-tests: New file.
7562         * tests/test-remainder.c: New file.
7563
7564         Tests for module 'pow'.
7565         * modules/pow-tests: New file.
7566         * tests/test-pow.c: New file.
7567
7568         Tests for module 'nextafter'.
7569         * modules/nextafter-tests: New file.
7570         * tests/test-nextafter.c: New file.
7571
7572         Tests for module 'modf'.
7573         * modules/modf-tests: New file.
7574         * tests/test-modf.c: New file.
7575
7576         Tests for module 'logb'.
7577         * modules/logb-tests: New file.
7578         * tests/test-logb.c: New file.
7579
7580         Tests for module 'log1p'.
7581         * modules/log1p-tests: New file.
7582         * tests/test-log1p.c: New file.
7583
7584         Tests for module 'log10'.
7585         * modules/log10-tests: New file.
7586         * tests/test-log10.c: New file.
7587
7588         Tests for module 'log'.
7589         * modules/log-tests: New file.
7590         * tests/test-log.c: New file.
7591
7592         Tests for module 'lgamma'.
7593         * modules/lgamma-tests: New file.
7594         * tests/test-lgamma.c: New file.
7595
7596         Tests for module 'ldexp'.
7597         * modules/ldexp-tests: New file.
7598         * tests/test-ldexp.c: New file.
7599
7600         Tests for module 'jn'.
7601         * modules/jn-tests: New file.
7602         * tests/test-jn.c: New file.
7603
7604         Tests for module 'j1'.
7605         * modules/j1-tests: New file.
7606         * tests/test-j1.c: New file.
7607
7608         Tests for module 'j0'.
7609         * modules/j0-tests: New file.
7610         * tests/test-j0.c: New file.
7611
7612         Tests for module 'hypot'.
7613         * modules/hypot-tests: New file.
7614         * tests/test-hypot.c: New file.
7615
7616         Tests for module 'fmod'.
7617         * modules/fmod-tests: New file.
7618         * tests/test-fmod.c: New file.
7619
7620         Tests for module 'fabs'.
7621         * modules/fabs-tests: New file.
7622         * tests/test-fabs.c: New file.
7623
7624         Tests for module 'exp'.
7625         * modules/exp-tests: New file.
7626         * tests/test-exp.c: New file.
7627
7628         Tests for module 'erfc'.
7629         * modules/erfc-tests: New file.
7630         * tests/test-erfc.c: New file.
7631
7632         Tests for module 'erf'.
7633         * modules/erf-tests: New file.
7634         * tests/test-erf.c: New file.
7635
7636         Tests for module 'cosh'.
7637         * modules/cosh-tests: New file.
7638         * tests/test-cosh.c: New file.
7639
7640         Tests for module 'cos'.
7641         * modules/cos-tests: New file.
7642         * tests/test-cos.c: New file.
7643
7644         Tests for module 'copysign'.
7645         * modules/copysign-tests: New file.
7646         * tests/test-copysign.c: New file.
7647
7648         Tests for module 'cbrt'.
7649         * modules/cbrt-tests: New file.
7650         * tests/test-cbrt.c: New file.
7651
7652         Tests for module 'atan2'.
7653         * modules/atan2-tests: New file.
7654         * tests/test-atan2.c: New file.
7655
7656         Tests for module 'atan'.
7657         * modules/atan-tests: New file.
7658         * tests/test-atan.c: New file.
7659
7660         Tests for module 'asin'.
7661         * modules/asin-tests: New file.
7662         * tests/test-asin.c: New file.
7663
7664         Tests for module 'acos'.
7665         * modules/acos-tests: New file.
7666         * tests/test-acos.c: New file.
7667
7668 2010-01-24  Bruno Haible  <bruno@clisp.org>
7669
7670         Fix tests for common <math.h> functions.
7671         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7672         code snippet that references the function pointer, rather than merely
7673         calling the function. Substitute the FUNC_LIBM variable.
7674         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7675         * modules/acos (configure.ac): Likewise.
7676         * modules/asin (configure.ac): Likewise.
7677         * modules/atan (configure.ac): Likewise.
7678         * modules/atan2 (configure.ac): Likewise.
7679         * modules/cbrt (configure.ac): Likewise.
7680         * modules/copysign (configure.ac): Likewise.
7681         * modules/cos (configure.ac): Likewise.
7682         * modules/cosh (configure.ac): Likewise.
7683         * modules/erf (configure.ac): Likewise.
7684         * modules/erfc (configure.ac): Likewise.
7685         * modules/exp (configure.ac): Likewise.
7686         * modules/fabs (configure.ac): Likewise.
7687         * modules/fmod (configure.ac): Likewise.
7688         * modules/hypot (configure.ac): Likewise.
7689         * modules/j0 (configure.ac): Likewise.
7690         * modules/j1 (configure.ac): Likewise.
7691         * modules/jn (configure.ac): Likewise.
7692         * modules/ldexp (configure.ac): Likewise.
7693         * modules/lgamma (configure.ac): Likewise.
7694         * modules/log (configure.ac): Likewise.
7695         * modules/log10 (configure.ac): Likewise.
7696         * modules/log1p (configure.ac): Likewise.
7697         * modules/logb (configure.ac): Likewise.
7698         * modules/modf (configure.ac): Likewise.
7699         * modules/nextafter (configure.ac): Likewise.
7700         * modules/pow (configure.ac): Likewise.
7701         * modules/remainder (configure.ac): Likewise.
7702         * modules/rint (configure.ac): Likewise.
7703         * modules/sin (configure.ac): Likewise.
7704         * modules/sinh (configure.ac): Likewise.
7705         * modules/tan (configure.ac): Likewise.
7706         * modules/tanh (configure.ac): Likewise.
7707         * modules/y0 (configure.ac): Likewise.
7708         * modules/y1 (configure.ac): Likewise.
7709         * modules/yn (configure.ac): Likewise.
7710
7711 2010-01-24  Bruno Haible  <bruno@clisp.org>
7712
7713         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7714         * tests/test-acosl.c (x): New variable.
7715         (main): Store argument in x and fetch it from x.
7716         * tests/test-asinl.c (x): New variable.
7717         (main): Store argument in x and fetch it from x.
7718         * tests/test-atanl.c (x): New variable.
7719         (main): Store argument in x and fetch it from x.
7720         * tests/test-cosl.c (x): New variable.
7721         (main): Store argument in x and fetch it from x.
7722         * tests/test-expl.c (x): New variable.
7723         (main): Store argument in x and fetch it from x.
7724         * tests/test-logl.c (x): New variable.
7725         (main): Store argument in x and fetch it from x.
7726         * tests/test-sinl.c (x): New variable.
7727         (main): Store argument in x and fetch it from x.
7728         * tests/test-sqrtl.c (x): New variable.
7729         (main): Store argument in x and fetch it from x.
7730         * tests/test-tanl.c (x): New variable.
7731         (main): Store argument in x and fetch it from x.
7732
7733 2010-01-24  Bruno Haible  <bruno@clisp.org>
7734
7735         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7736         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7737         assignments to the initial TESTS_ENVIRONMENT.
7738         * doc/gnulib.texi (Unit test modules): Document it.
7739         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7740         TESTS_ENVIRONMENT.
7741         * modules/btowc-tests (Makefile.am): Likewise.
7742         * modules/c-stack-tests (Makefile.am): Likewise.
7743         * modules/c-strcase-tests (Makefile.am): Likewise.
7744         * modules/copy-file-tests (Makefile.am): Likewise.
7745         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7746         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7747         * modules/mbrtowc-tests (Makefile.am): Likewise.
7748         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7749         * modules/mbscasestr-tests (Makefile.am): Likewise.
7750         * modules/mbschr-tests (Makefile.am): Likewise.
7751         * modules/mbscspn-tests (Makefile.am): Likewise.
7752         * modules/mbsinit-tests (Makefile.am): Likewise.
7753         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7754         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7755         * modules/mbspbrk-tests (Makefile.am): Likewise.
7756         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7757         * modules/mbsrchr-tests (Makefile.am): Likewise.
7758         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7759         * modules/mbsspn-tests (Makefile.am): Likewise.
7760         * modules/mbsstr-tests (Makefile.am): Likewise.
7761         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7762         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7763         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7764         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7765         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7766         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7767         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7768         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7769         * modules/wcrtomb-tests (Makefile.am): Likewise.
7770         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7771         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7772         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7773         assignments from TESTS_ENVIRONMENT.
7774         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7775         augmentation.
7776         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7777         * modules/atexit-tests (Makefile.am): Likewise.
7778         * modules/binary-io-tests (Makefile.am): Likewise.
7779         * modules/closein-tests (Makefile.am): Likewise.
7780         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7781         * modules/exclude-tests (Makefile.am): Likewise.
7782         * modules/fflush-tests (Makefile.am): Likewise.
7783         * modules/fpending-tests (Makefile.am): Likewise.
7784         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7785         * modules/freadahead-tests (Makefile.am): Likewise.
7786         * modules/freadptr-tests (Makefile.am): Likewise.
7787         * modules/freadseek-tests (Makefile.am): Likewise.
7788         * modules/fseek-tests (Makefile.am): Likewise.
7789         * modules/fseeko-tests (Makefile.am): Likewise.
7790         * modules/ftell-tests (Makefile.am): Likewise.
7791         * modules/ftello-tests (Makefile.am): Likewise.
7792         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7793         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7794         * modules/lseek-tests (Makefile.am): Likewise.
7795         * modules/parse-duration-tests (Makefile.am): Likewise.
7796         * modules/perror-tests (Makefile.am): Likewise.
7797         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7798         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7799         * modules/pipe-tests (Makefile.am): Likewise.
7800         * modules/pread-tests (Makefile.am): Likewise.
7801         * modules/printf-posix-tests (Makefile.am): Likewise.
7802         * modules/select-tests (Makefile.am): Likewise.
7803         * modules/sigpipe-tests (Makefile.am): Likewise.
7804         * modules/tsearch-tests (Makefile.am): Likewise.
7805         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7806         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7807         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7808         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7809         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7810         * modules/version-etc-tests (Makefile.am): Likewise.
7811         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7812         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7813         * modules/xalloc-die-tests (Makefile.am): Likewise.
7814         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7815         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7816         * modules/xstrtol-tests (Makefile.am): Likewise.
7817         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7818         * modules/yesno-tests (Makefile.am): Likewise.
7819         Suggested by Jim Meyering.
7820
7821 2010-01-24  Bruno Haible  <bruno@clisp.org>
7822
7823         More documentation.
7824         * doc/gnulib.texi (Writing modules): New chapter.
7825         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7826         the new chapter.
7827
7828 2010-01-24  Jim Meyering  <meyering@redhat.com>
7829
7830         maint.mk: do not prepend "./" after filtering
7831         * top/maint.mk (_prepend_srcdir_prefix): New variable
7832         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7833         "./" when $(srcdir) is ".".
7834
7835         define STREQ(a,b) consistently, removing useless parentheses
7836         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7837         since the only risk is that "a" or "b" contains an unparenthesized
7838         comma, but if either did that, STREQ would have 3 or more arguments.
7839         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7840         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7841         * lib/hash-triple.c (STREQ): Likewise.
7842         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7843         * lib/getugroups.c (STREQ): Likewise.
7844
7845 2010-01-23  Jim Meyering  <meyering@redhat.com>
7846
7847         maint.mk: fix syntax-check in a non-srcdir build directory
7848         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7849         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7850
7851 2010-01-22  Jim Meyering  <meyering@redhat.com>
7852
7853         userspec: add unit tests
7854         * tests/test-userspec.c: New file.
7855         * modules/userspec-tests: Likewise.
7856
7857 2010-01-21  Jim Meyering  <meyering@redhat.com>
7858
7859         maint.mk: handle source file names containing "." robustly
7860         * top/maint.mk (_dot_escaped_srcdir): Define.
7861         (VC_LIST): Use it in LHS of sed substitution.
7862
7863 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7864
7865         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7866         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7867         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7868         from a non-srcdir build.
7869
7870 2010-01-20  Eric Blake  <ebb9@byu.net>
7871
7872         warn-on-use: use instead of link-warning
7873         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7874         * modules/unistd (Depends-on, Makefile.am): Likewise.
7875         * modules/arpa_inet (Depends-on): Replace link-warning with
7876         warn-on-use.
7877         (Makefile.am): Update rules accordingly.
7878         * modules/ctype (Depends-on, Makefile.am): Likewise.
7879         * modules/dirent (Depends-on, Makefile.am): Likewise.
7880         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7881         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7882         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7883         * modules/locale (Depends-on, Makefile.am): Likewise.
7884         * modules/math (Depends-on, Makefile.am): Likewise.
7885         * modules/search (Depends-on, Makefile.am): Likewise.
7886         * modules/signal (Depends-on, Makefile.am): Likewise.
7887         * modules/spawn (Depends-on, Makefile.am): Likewise.
7888         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7889         * modules/string (Depends-on, Makefile.am): Likewise.
7890         * modules/strings (Depends-on, Makefile.am): Likewise.
7891         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7892         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7893         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7894         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7895         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7896         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7897         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7898         * modules/wchar (Depends-on, Makefile.am): Likewise.
7899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7900         should be poisoned.
7901         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7902         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7903         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7904         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7906         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7907         * m4/math_h.m4 (gl_MATH_H): Likewise.
7908         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7909         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7910         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7911         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7912         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7913         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7914         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7915         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7916         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7920         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7921         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7922         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7923         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7924         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
7925         GL_LINK_WARNING.
7926         * lib/ctype.in.h: Likewise.
7927         * lib/dirent.in.h: Likewise.
7928         * lib/fcntl.in.h: Likewise.
7929         * lib/inttypes.in.h: Likewise.
7930         * lib/langinfo.in.h: Likewise.
7931         * lib/locale.in.h: Likewise.
7932         * lib/math.in.h: Likewise.
7933         * lib/search.in.h: Likewise.
7934         * lib/signal.in.h: Likewise.
7935         * lib/spawn.in.h: Likewise.
7936         * lib/stdio.in.h: Likewise.
7937         * lib/stdlib.in.h: Likewise.
7938         * lib/string.in.h: Likewise.
7939         * lib/strings.in.h: Likewise.
7940         * lib/sys_file.in.h: Likewise.
7941         * lib/sys_ioctl.in.h: Likewise.
7942         * lib/sys_select.in.h: Likewise.
7943         * lib/sys_socket.in.h: Likewise.
7944         * lib/sys_stat.in.h: Likewise.
7945         * lib/sys_times.in.h: Likewise.
7946         * lib/sys_utsname.in.h: Likewise.
7947         * lib/unistd.in.h: Likewise.
7948         * lib/wchar.in.h: Likewise.
7949
7950 2010-01-20  Bruno Haible  <bruno@clisp.org>
7951
7952         Avoid duplicate -lm.
7953         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
7954         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
7955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
7956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
7957         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
7958         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
7959         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
7960         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
7961         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
7962         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
7963         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
7964         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7965         Reported by Paolo Bonzini.
7966
7967 2010-01-19  Bruno Haible  <bruno@clisp.org>
7968
7969         langinfo, nl_langinfo: Relicense under LGPLv2+.
7970         * modules/langinfo (License): Change to LGPLv2+.
7971         * modules/nl_langinfo (License): Likewise.
7972         Patch by David Lutterkort <lutter@redhat.com>.
7973
7974 2010-01-19  Bruno Haible  <bruno@clisp.org>
7975
7976         Avoid compilation error with cc on OSF/1 5.1.
7977         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
7978         statement, not before.
7979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7980
7981 2010-01-18  Bruno Haible  <bruno@clisp.org>
7982
7983         Avoid a link error due to the __printf__ symbol.
7984         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
7985         and 2.6.x.
7986         (__format__, __printf__): Remove definitions.
7987         * lib/argp-fmtstream.h: Likewise.
7988         * lib/argp.h: Likewise.
7989         * lib/error.h: Likewise.
7990         * lib/vasnprintf.h: Likewise.
7991         * lib/xprintf.h: Likewise.
7992         * lib/xvasprintf.h: Likewise.
7993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7994
7995 2010-01-18  Bruno Haible  <bruno@clisp.org>
7996
7997         Tests for module 'tanl'.
7998         * modules/tanl-tests: New file.
7999         * tests/test-tanl.c: New file.
8000
8001         Tests for module 'sqrtl'.
8002         * modules/sqrtl-tests: New file.
8003         * tests/test-sqrtl.c: New file.
8004
8005         Tests for module 'sinl'.
8006         * modules/sinl-tests: New file.
8007         * tests/test-sinl.c: New file.
8008
8009         Tests for module 'logl'.
8010         * modules/logl-tests: New file.
8011         * tests/test-logl.c: New file.
8012
8013         Tests for module 'expl'.
8014         * modules/expl-tests: New file.
8015         * tests/test-expl.c: New file.
8016
8017         Tests for module 'cosl'.
8018         * modules/cosl-tests: New file.
8019         * tests/test-cosl.c: New file.
8020
8021         Tests for module 'atanl'.
8022         * modules/atanl-tests: New file.
8023         * tests/test-atanl.c: New file.
8024
8025         Tests for module 'asinl'.
8026         * modules/asinl-tests: New file.
8027         * tests/test-asinl.c: New file.
8028
8029         Tests for module 'acosl'.
8030         * modules/acosl-tests: New file.
8031         * tests/test-acosl.c: New file.
8032
8033         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8034         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8035         tanl): Use the standard gnulib idiom.
8036         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8037         * lib/sinl.c: Likewise.
8038         * lib/tanl.c: Don't include trigl.c.
8039         (kernel_tanl): Make static.
8040         * lib/sincosl.c: Include trigl.h first.
8041         * lib/trigl.c: Likewise.
8042         * m4/acosl.m4: New file.
8043         * m4/asinl.m4: New file.
8044         * m4/atanl.m4: New file.
8045         * m4/cosl.m4: New file.
8046         * m4/expl.m4: New file.
8047         * m4/logl.m4: New file.
8048         * m4/sinl.m4: New file.
8049         * m4/sqrtl.m4: New file.
8050         * m4/tanl.m4: New file.
8051         * m4/mathl.m4: Remove file.
8052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8053         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8054         Don't initialize GNULIB_MATHL.
8055         * modules/acosl: New file.
8056         * modules/asinl: New file.
8057         * modules/atanl: New file.
8058         * modules/cosl: New file.
8059         * modules/expl: New file.
8060         * modules/logl: New file.
8061         * modules/sinl: New file.
8062         * modules/sqrtl: New file.
8063         * modules/tanl: New file.
8064         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8065         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8066         substitute GNULIB_MATHL.
8067         * modules/mathl: Rewritten.
8068         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8069         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8070         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8071         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8072         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8073         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8074         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8075         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8076         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8077
8078 2010-01-18  Bruno Haible  <bruno@clisp.org>
8079
8080         sqrt: Make gl_FUNC_SQRT requirable.
8081         * m4/sqrt.m4: New file.
8082         * modules/sqrt (Files): Add it.
8083         (configure.ac): Invoke gl_FUNC_SQRT.
8084
8085 2010-01-18  Bruno Haible  <bruno@clisp.org>
8086
8087         New modules for common <math.h> functions.
8088         * m4/mathfunc.m4: New file.
8089         * modules/acos: New file.
8090         * modules/asin: New file.
8091         * modules/atan: New file.
8092         * modules/atan2: New file.
8093         * modules/cbrt: New file.
8094         * modules/copysign: New file.
8095         * modules/cos: New file.
8096         * modules/cosh: New file.
8097         * modules/erf: New file.
8098         * modules/erfc: New file.
8099         * modules/exp: New file.
8100         * modules/fabs: New file.
8101         * modules/fmod: New file.
8102         * modules/hypot: New file.
8103         * modules/j0: New file.
8104         * modules/j1: New file.
8105         * modules/jn: New file.
8106         * modules/ldexp: New file.
8107         * modules/lgamma: New file.
8108         * modules/log: New file.
8109         * modules/log10: New file.
8110         * modules/log1p: New file.
8111         * modules/logb: New file.
8112         * modules/modf: New file.
8113         * modules/nextafter: New file.
8114         * modules/pow: New file.
8115         * modules/remainder: New file.
8116         * modules/rint: New file.
8117         * modules/sin: New file.
8118         * modules/sinh: New file.
8119         * modules/sqrt: New file.
8120         * modules/tan: New file.
8121         * modules/tanh: New file.
8122         * modules/y0: New file.
8123         * modules/y1: New file.
8124         * modules/yn: New file.
8125         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8126         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8127         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8128         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8129         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8130         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8131         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8132         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8133         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8134         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8135         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8136         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8137         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8138         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8139         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8140         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8141         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8142         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8143         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8144         * doc/posix-functions/log.texi: Mention the 'log' module.
8145         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8146         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8147         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8148         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8149         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8150         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8151         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8152         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8153         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8154         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8155         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8156         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8157         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8158         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8159         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8160         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8161
8162 2010-01-18  Jim Meyering  <meyering@redhat.com>
8163
8164         ignore-value: relax license to LGPLv2+
8165         * modules/ignore-value (License): Relax to LGPLv2+.
8166
8167         getdate: don't leak when TZ contains two or more '"'s
8168         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8169         double quote in TZ after the first one.
8170
8171         readtokens: do not leak internal token_lengths buffer
8172         * lib/readtokens.c (readtokens): Free the local, lengths,
8173         when the supplied "token_lengths" parameter is NULL.
8174
8175 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8176
8177         Fix a couple of missing LIBTHREAD link failures on AIX.
8178         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8179         $(LIBTHREAD).
8180         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8181
8182         Link test-poll against INET_PTON_LIB.
8183         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8184         for inet_pton on Solaris 10.
8185
8186 2010-01-17  Bruno Haible  <bruno@clisp.org>
8187
8188         unistdio/*-sprintf: Fix typo in module description.
8189         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8190         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8191         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8192         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8193         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8194         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8195         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8197
8198 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8199
8200         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8201         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8202         variables in shell case patterns, for AIX and HP-UX ksh.
8203
8204         Split large sed scripts, for HP-UX sed.
8205         * modules/stdio: Split sed scripts around 50 sed commands,
8206         to avoid HP-UX limit of 99 commands, in the near future.
8207         * modules/string: Likewise.
8208         * modules/unistd: Likewise.
8209
8210         gnulib-tool: avoid writing in the current directory.
8211         * gnulib-tool (func_emit_lib_Makefile_am)
8212         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8213         not in the current directory, so concurrent gnulib-tool
8214         instances do not interfere.
8215
8216 2010-01-16  Jim Meyering  <meyering@redhat.com>
8217
8218         doc: update users.txt
8219         * users.txt: Add grep.
8220         (diffutils, gzip): Update URLs.
8221
8222 2010-01-12  Bruno Haible  <bruno@clisp.org>
8223
8224         posix_spawn: Avoid test failure on Cygwin.
8225         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8226         characters.
8227         Reported by Simon Josefsson.
8228
8229 2010-01-12  Bruno Haible  <bruno@clisp.org>
8230
8231         * tests/test-cond.c (main): When skipping the test, show the reason.
8232
8233 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8234
8235         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8236
8237 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8238
8239         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8240         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8241
8242 2010-01-12  Eric Blake  <ebb9@byu.net>
8243
8244         build: guarantee AS_VAR_IF
8245         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8246         (gl_AS_VAR_IF): Move...
8247         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8248         Reported by Simon Josefsson.
8249
8250 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8251
8252         * lib/stdio.in.h: Fix typo.
8253
8254 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8255
8256         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8257         libgpg-error.
8258
8259 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8260
8261         * tests/test-xalloc-die.sh: Use $EXEEXT.
8262
8263 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8264             Bruno Haible  <bruno@clisp.org>
8265
8266         getlogin, getlogin_r: Avoid test failure.
8267         * tests/test-getlogin.c: Include <stdio.h>.
8268         (main): Skip the test when the function fails because stdin is not a
8269         tty.
8270         * tests/test-getlogin_r.c: Include <stdio.h>.
8271         (main): Skip the test when the function fails because stdin is not a
8272         tty.
8273
8274 2010-01-11  Eric Blake  <ebb9@byu.net>
8275
8276         tests: avoid more large file warnings
8277         * tests/test-fflush.c: Avoid warning about ftell use.
8278         * tests/test-fseek.c: Avoid warning about fseek use.
8279
8280 2010-01-10  Bruno Haible  <bruno@clisp.org>
8281
8282         nproc: Work better on Linux when /proc and /sys are not mounted.
8283         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8284         as lower bound when, on glibc/Linux systems,
8285         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8286         Suggested by Pádraig Brady <P@draigbrady.com>.
8287         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8288
8289         nproc: Refactor.
8290         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8291         extracted from num_processors.
8292         (num_processors): Call it.
8293
8294 2010-01-11  Jim Meyering  <meyering@redhat.com>
8295
8296         utimecmp: avoid new warning from upcoming gcc-4.5.0
8297         * lib/utimecmp.c (BILLION): Define using #define rather than an
8298         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8299
8300 2010-01-11  Eric Blake  <ebb9@byu.net>
8301
8302         math: add portability warnings for classification macros
8303         * modules/math (Depends-on): Add warn-on-use.
8304         (Makefile.am): Provide new substitutions.
8305         * m4/math_h.m4 (gl_MATH_H): Require inline.
8306         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8307         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8308         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8309         implement warnings.
8310
8311         unistd: warn on use of environ without module
8312         * modules/unistd (Depends-on): Add warn-on-use.
8313         (Makefile.am): Provide new substitutions.
8314         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8315         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8316
8317         stdio: warn on suspicious uses
8318         * modules/stdio (Depends-on): Add warn-on-use.
8319         (Makefile.am): Provide new substitutions.
8320         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8321         fseeko.
8322         * lib/stdio.in.h (gets): Always warn on use.
8323         (fseek, ftell): Adjust when warnings are issued, and honor
8324         _GL_NO_LARGE_FILES as a way to silence the warning.
8325         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8326         any warning about large file offsets.
8327         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8328         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8329         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8330         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8331         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8332         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8333         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8334         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8335
8336         warn-on-use: new module
8337         * modules/warn-on-use: New file.
8338         * build-aux/warn-on-use.h: Likewise.
8339         * m4/warn-on-use.m4: Likewise.
8340         * MODULES.html.sh (Support for building): Mention it.
8341
8342 2010-01-10  Bruno Haible  <bruno@clisp.org>
8343
8344         Tests for module 'unistr/u32-strdup'.
8345         * modules/unistr/u32-strdup-tests: New file.
8346         * tests/unistr/test-u32-strdup.c: New file.
8347
8348         Tests for module 'unistr/u16-strdup'.
8349         * modules/unistr/u16-strdup-tests: New file.
8350         * tests/unistr/test-u16-strdup.c: New file.
8351
8352         Tests for module 'unistr/u8-strdup'.
8353         * modules/unistr/u8-strdup-tests: New file.
8354         * tests/unistr/test-u8-strdup.c: New file.
8355         * tests/unistr/test-strdup.h: New file.
8356
8357         Tests for module 'unistr/u32-strncmp'.
8358         * modules/unistr/u32-strncmp-tests: New file.
8359         * tests/unistr/test-u32-strncmp.c: New file.
8360
8361         Tests for module 'unistr/u16-strncmp'.
8362         * modules/unistr/u16-strncmp-tests: New file.
8363         * tests/unistr/test-u16-strncmp.c: New file.
8364
8365         Tests for module 'unistr/u8-strncmp'.
8366         * modules/unistr/u8-strncmp-tests: New file.
8367         * tests/unistr/test-u8-strncmp.c: New file.
8368         * tests/unistr/test-strncmp.h: New file.
8369
8370         Tests for module 'unistr/u32-strcoll'.
8371         * modules/unistr/u32-strcoll-tests: New file.
8372         * tests/unistr/test-u32-strcoll.c: New file.
8373
8374         Tests for module 'unistr/u16-strcoll'.
8375         * modules/unistr/u16-strcoll-tests: New file.
8376         * tests/unistr/test-u16-strcoll.c: New file.
8377
8378         Tests for module 'unistr/u8-strcoll'.
8379         * modules/unistr/u8-strcoll-tests: New file.
8380         * tests/unistr/test-u8-strcoll.c: New file.
8381
8382         Tests for module 'unistr/u32-strcmp'.
8383         * modules/unistr/u32-strcmp-tests: New file.
8384         * tests/unistr/test-u32-strcmp.c: New file.
8385         * tests/unistr/test-u32-strcmp.h: New file.
8386
8387         Tests for module 'unistr/u16-strcmp'.
8388         * modules/unistr/u16-strcmp-tests: New file.
8389         * tests/unistr/test-u16-strcmp.c: New file.
8390         * tests/unistr/test-u16-strcmp.h: New file.
8391
8392         Tests for module 'unistr/u8-strcmp'.
8393         * modules/unistr/u8-strcmp-tests: New file.
8394         * tests/unistr/test-u8-strcmp.c: New file.
8395         * tests/unistr/test-u8-strcmp.h: New file.
8396         * tests/unistr/test-strcmp.h: New file.
8397
8398         Tests for module 'unistr/u32-strncat'.
8399         * modules/unistr/u32-strncat-tests: New file.
8400         * tests/unistr/test-u32-strncat.c: New file.
8401
8402         Tests for module 'unistr/u16-strncat'.
8403         * modules/unistr/u16-strncat-tests: New file.
8404         * tests/unistr/test-u16-strncat.c: New file.
8405
8406         Tests for module 'unistr/u8-strncat'.
8407         * modules/unistr/u8-strncat-tests: New file.
8408         * tests/unistr/test-u8-strncat.c: New file.
8409         * tests/unistr/test-strncat.h: New file.
8410
8411         Tests for module 'unistr/u32-strcat'.
8412         * modules/unistr/u32-strcat-tests: New file.
8413         * tests/unistr/test-u32-strcat.c: New file.
8414
8415         Tests for module 'unistr/u16-strcat'.
8416         * modules/unistr/u16-strcat-tests: New file.
8417         * tests/unistr/test-u16-strcat.c: New file.
8418
8419         Tests for module 'unistr/u8-strcat'.
8420         * modules/unistr/u8-strcat-tests: New file.
8421         * tests/unistr/test-u8-strcat.c: New file.
8422         * tests/unistr/test-strcat.h: New file.
8423
8424         Tests for module 'unistr/u32-stpncpy'.
8425         * modules/unistr/u32-stpncpy-tests: New file.
8426         * tests/unistr/test-u32-stpncpy.c: New file.
8427
8428         Tests for module 'unistr/u16-stpncpy'.
8429         * modules/unistr/u16-stpncpy-tests: New file.
8430         * tests/unistr/test-u16-stpncpy.c: New file.
8431
8432         Tests for module 'unistr/u8-stpncpy'.
8433         * modules/unistr/u8-stpncpy-tests: New file.
8434         * tests/unistr/test-u8-stpncpy.c: New file.
8435         * tests/unistr/test-stpncpy.h: New file.
8436
8437         Tests for module 'unistr/u32-strncpy'.
8438         * modules/unistr/u32-strncpy-tests: New file.
8439         * tests/unistr/test-u32-strncpy.c: New file.
8440
8441         Tests for module 'unistr/u16-strncpy'.
8442         * modules/unistr/u16-strncpy-tests: New file.
8443         * tests/unistr/test-u16-strncpy.c: New file.
8444
8445         Tests for module 'unistr/u8-strncpy'.
8446         * modules/unistr/u8-strncpy-tests: New file.
8447         * tests/unistr/test-u8-strncpy.c: New file.
8448         * tests/unistr/test-strncpy.h: New file.
8449
8450         Tests for module 'unistr/u32-stpcpy'.
8451         * modules/unistr/u32-stpcpy-tests: New file.
8452         * tests/unistr/test-u32-stpcpy.c: New file.
8453
8454         Tests for module 'unistr/u16-stpcpy'.
8455         * modules/unistr/u16-stpcpy-tests: New file.
8456         * tests/unistr/test-u16-stpcpy.c: New file.
8457
8458         Tests for module 'unistr/u8-stpcpy'.
8459         * modules/unistr/u8-stpcpy-tests: New file.
8460         * tests/unistr/test-u8-stpcpy.c: New file.
8461         * tests/unistr/test-stpcpy.h: New file.
8462
8463         Tests for module 'unistr/u32-strcpy'.
8464         * modules/unistr/u32-strcpy-tests: New file.
8465         * tests/unistr/test-u32-strcpy.c: New file.
8466
8467         Tests for module 'unistr/u16-strcpy'.
8468         * modules/unistr/u16-strcpy-tests: New file.
8469         * tests/unistr/test-u16-strcpy.c: New file.
8470
8471         Tests for module 'unistr/u8-strcpy'.
8472         * modules/unistr/u8-strcpy-tests: New file.
8473         * tests/unistr/test-u8-strcpy.c: New file.
8474         * tests/unistr/test-strcpy.h: New file.
8475
8476         Tests for module 'unistr/u32-strnlen'.
8477         * modules/unistr/u32-strnlen-tests: New file.
8478         * tests/unistr/test-u32-strnlen.c: New file.
8479
8480         Tests for module 'unistr/u16-strnlen'.
8481         * modules/unistr/u16-strnlen-tests: New file.
8482         * tests/unistr/test-u16-strnlen.c: New file.
8483
8484         Tests for module 'unistr/u8-strnlen'.
8485         * modules/unistr/u8-strnlen-tests: New file.
8486         * tests/unistr/test-u8-strnlen.c: New file.
8487         * tests/unistr/test-strnlen.h: New file.
8488
8489         Tests for module 'unistr/u32-strlen'.
8490         * modules/unistr/u32-strlen-tests: New file.
8491         * tests/unistr/test-u32-strlen.c: New file.
8492
8493         Tests for module 'unistr/u16-strlen'.
8494         * modules/unistr/u16-strlen-tests: New file.
8495         * tests/unistr/test-u16-strlen.c: New file.
8496
8497         Tests for module 'unistr/u8-strlen'.
8498         * modules/unistr/u8-strlen-tests: New file.
8499         * tests/unistr/test-u8-strlen.c: New file.
8500
8501         Tests for module 'unistr/u32-prev'.
8502         * modules/unistr/u32-prev-tests: New file.
8503         * tests/unistr/test-u32-prev.c: New file.
8504
8505         Tests for module 'unistr/u16-prev'.
8506         * modules/unistr/u16-prev-tests: New file.
8507         * tests/unistr/test-u16-prev.c: New file.
8508
8509         Tests for module 'unistr/u8-prev'.
8510         * modules/unistr/u8-prev-tests: New file.
8511         * tests/unistr/test-u8-prev.c: New file.
8512
8513         Tests for module 'unistr/u32-next'.
8514         * modules/unistr/u32-next-tests: New file.
8515         * tests/unistr/test-u32-next.c: New file.
8516
8517         Tests for module 'unistr/u16-next'.
8518         * modules/unistr/u16-next-tests: New file.
8519         * tests/unistr/test-u16-next.c: New file.
8520
8521         Tests for module 'unistr/u8-next'.
8522         * modules/unistr/u8-next-tests: New file.
8523         * tests/unistr/test-u8-next.c: New file.
8524
8525         Tests for module 'unistr/u32-strmbtouc'.
8526         * modules/unistr/u32-strmbtouc-tests: New file.
8527         * tests/unistr/test-u32-strmbtouc.c: New file.
8528
8529         Tests for module 'unistr/u16-strmbtouc'.
8530         * modules/unistr/u16-strmbtouc-tests: New file.
8531         * tests/unistr/test-u16-strmbtouc.c: New file.
8532
8533         Tests for module 'unistr/u8-strmbtouc'.
8534         * modules/unistr/u8-strmbtouc-tests: New file.
8535         * tests/unistr/test-u8-strmbtouc.c: New file.
8536
8537         Tests for module 'unistr/u32-strmblen'.
8538         * modules/unistr/u32-strmblen-tests: New file.
8539         * tests/unistr/test-u32-strmblen.c: New file.
8540
8541         Tests for module 'unistr/u16-strmblen'.
8542         * modules/unistr/u16-strmblen-tests: New file.
8543         * tests/unistr/test-u16-strmblen.c: New file.
8544
8545         Tests for module 'unistr/u8-strmblen'.
8546         * modules/unistr/u8-strmblen-tests: New file.
8547         * tests/unistr/test-u8-strmblen.c: New file.
8548
8549         Tests for module 'unistr/u32-cpy-alloc'.
8550         * modules/unistr/u32-cpy-alloc-tests: New file.
8551         * tests/unistr/test-u32-cpy-alloc.c: New file.
8552
8553         Tests for module 'unistr/u16-cpy-alloc'.
8554         * modules/unistr/u16-cpy-alloc-tests: New file.
8555         * tests/unistr/test-u16-cpy-alloc.c: New file.
8556
8557         Tests for module 'unistr/u8-cpy-alloc'.
8558         * modules/unistr/u8-cpy-alloc-tests: New file.
8559         * tests/unistr/test-u8-cpy-alloc.c: New file.
8560         * tests/unistr/test-cpy-alloc.h: New file.
8561
8562         Tests for module 'unistr/u32-mbsnlen'.
8563         * modules/unistr/u32-mbsnlen-tests: New file.
8564         * tests/unistr/test-u32-mbsnlen.c: New file.
8565
8566         Tests for module 'unistr/u16-mbsnlen'.
8567         * modules/unistr/u16-mbsnlen-tests: New file.
8568         * tests/unistr/test-u16-mbsnlen.c: New file.
8569
8570         Tests for module 'unistr/u8-mbsnlen'.
8571         * modules/unistr/u8-mbsnlen-tests: New file.
8572         * tests/unistr/test-u8-mbsnlen.c: New file.
8573
8574         Tests for module 'unistr/u32-chr'.
8575         * modules/unistr/u32-chr-tests: New file.
8576         * tests/unistr/test-u32-chr.c: New file.
8577
8578         Tests for module 'unistr/u16-chr'.
8579         * modules/unistr/u16-chr-tests: New file.
8580         * tests/unistr/test-u16-chr.c: New file.
8581
8582         Tests for module 'unistr/u8-chr'.
8583         * modules/unistr/u8-chr-tests: New file.
8584         * tests/unistr/test-u8-chr.c: New file.
8585         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8586
8587         Tests for module 'unistr/u32-cmp2'.
8588         * modules/unistr/u32-cmp2-tests: New file.
8589         * tests/unistr/test-u32-cmp2.c: New file.
8590
8591         Tests for module 'unistr/u16-cmp2'.
8592         * modules/unistr/u16-cmp2-tests: New file.
8593         * tests/unistr/test-u16-cmp2.c: New file.
8594
8595         Tests for module 'unistr/u8-cmp2'.
8596         * modules/unistr/u8-cmp2-tests: New file.
8597         * tests/unistr/test-u8-cmp2.c: New file.
8598         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8599
8600         Tests for module 'unistr/u32-cmp'.
8601         * modules/unistr/u32-cmp-tests: New file.
8602         * tests/unistr/test-u32-cmp.c: New file.
8603
8604         Tests for module 'unistr/u16-cmp'.
8605         * modules/unistr/u16-cmp-tests: New file.
8606         * tests/unistr/test-u16-cmp.c: New file.
8607
8608         Tests for module 'unistr/u8-cmp'.
8609         * modules/unistr/u8-cmp-tests: New file.
8610         * tests/unistr/test-u8-cmp.c: New file.
8611         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8612
8613         Tests for module 'unistr/u32-set'.
8614         * modules/unistr/u32-set-tests: New file.
8615         * tests/unistr/test-u32-set.c: New file.
8616
8617         Tests for module 'unistr/u16-set'.
8618         * modules/unistr/u16-set-tests: New file.
8619         * tests/unistr/test-u16-set.c: New file.
8620
8621         Tests for module 'unistr/u8-set'.
8622         * modules/unistr/u8-set-tests: New file.
8623         * tests/unistr/test-u8-set.c: New file.
8624         * tests/unistr/test-set.h: New file.
8625
8626         Tests for module 'unistr/u32-move'.
8627         * modules/unistr/u32-move-tests: New file.
8628         * tests/unistr/test-u32-move.c: New file.
8629
8630         Tests for module 'unistr/u16-move'.
8631         * modules/unistr/u16-move-tests: New file.
8632         * tests/unistr/test-u16-move.c: New file.
8633
8634         Tests for module 'unistr/u8-move'.
8635         * modules/unistr/u8-move-tests: New file.
8636         * tests/unistr/test-u8-move.c: New file.
8637         * tests/unistr/test-move.h: New file.
8638
8639         Tests for module 'unistr/u32-cpy'.
8640         * modules/unistr/u32-cpy-tests: New file.
8641         * tests/unistr/test-u32-cpy.c: New file.
8642
8643         Tests for module 'unistr/u16-cpy'.
8644         * modules/unistr/u16-cpy-tests: New file.
8645         * tests/unistr/test-u16-cpy.c: New file.
8646
8647         Tests for module 'unistr/u8-cpy'.
8648         * modules/unistr/u8-cpy-tests: New file.
8649         * tests/unistr/test-u8-cpy.c: New file.
8650         * tests/unistr/test-cpy.h: New file.
8651
8652 2010-01-09  Bruno Haible  <bruno@clisp.org>
8653
8654         Tests for module 'unistr/u32-uctomb'.
8655         * modules/unistr/u32-uctomb-tests: New file.
8656         * tests/unistr/test-u32-uctomb.c: New file.
8657
8658         Tests for module 'unistr/u16-uctomb'.
8659         * modules/unistr/u16-uctomb-tests: New file.
8660         * tests/unistr/test-u16-uctomb.c: New file.
8661
8662         Tests for module 'unistr/u8-uctomb'.
8663         * modules/unistr/u8-uctomb-tests: New file.
8664         * tests/unistr/test-u8-uctomb.c: New file.
8665
8666         Tests for module 'unistr/u32-mbtoucr'.
8667         * modules/unistr/u32-mbtoucr-tests: New file.
8668         * tests/unistr/test-u32-mbtoucr.c: New file.
8669
8670         Tests for module 'unistr/u16-mbtoucr'.
8671         * modules/unistr/u16-mbtoucr-tests: New file.
8672         * tests/unistr/test-u16-mbtoucr.c: New file.
8673
8674         Tests for module 'unistr/u8-mbtoucr'.
8675         * modules/unistr/u8-mbtoucr-tests: New file.
8676         * tests/unistr/test-u8-mbtoucr.c: New file.
8677
8678         Tests for module 'unistr/u32-mbtouc'.
8679         * modules/unistr/u32-mbtouc-tests: New file.
8680         * tests/unistr/test-u32-mbtouc.c: New file.
8681
8682         Tests for module 'unistr/u16-mbtouc'.
8683         * modules/unistr/u16-mbtouc-tests: New file.
8684         * tests/unistr/test-u16-mbtouc.c: New file.
8685
8686         Tests for module 'unistr/u8-mbtouc'.
8687         * modules/unistr/u8-mbtouc-tests: New file.
8688         * tests/unistr/test-u8-mbtouc.c: New file.
8689
8690         Tests for module 'unistr/u32-mbtouc-unsafe'.
8691         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8692         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8693         * tests/unistr/test-u32-mbtouc.h: New file.
8694
8695         Tests for module 'unistr/u16-mbtouc-unsafe'.
8696         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8697         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8698         * tests/unistr/test-u16-mbtouc.h: New file.
8699
8700         Tests for module 'unistr/u8-mbtouc-unsafe'.
8701         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8702         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8703         * tests/unistr/test-u8-mbtouc.h: New file.
8704
8705         Tests for module 'unistr/u32-mblen'.
8706         * modules/unistr/u32-mblen-tests: New file.
8707         * tests/unistr/test-u32-mblen.c: New file.
8708
8709         Tests for module 'unistr/u16-mblen'.
8710         * modules/unistr/u16-mblen-tests: New file.
8711         * tests/unistr/test-u16-mblen.c: New file.
8712
8713         Tests for module 'unistr/u8-mblen'.
8714         * modules/unistr/u8-mblen-tests: New file.
8715         * tests/unistr/test-u8-mblen.c: New file.
8716
8717         Tests for module 'unistr/u32-to-u16'.
8718         * modules/unistr/u32-to-u16-tests: New file.
8719         * tests/unistr/test-u32-to-u16.c: New file.
8720
8721         Tests for module 'unistr/u32-to-u8'.
8722         * modules/unistr/u32-to-u8-tests: New file.
8723         * tests/unistr/test-u32-to-u8.c: New file.
8724
8725         Tests for module 'unistr/u16-to-u32'.
8726         * modules/unistr/u16-to-u32-tests: New file.
8727         * tests/unistr/test-u16-to-u32.c: New file.
8728
8729         Tests for module 'unistr/u16-to-u8'.
8730         * modules/unistr/u16-to-u8-tests: New file.
8731         * tests/unistr/test-u16-to-u8.c: New file.
8732
8733         Tests for module 'unistr/u8-to-u32'.
8734         * modules/unistr/u8-to-u32-tests: New file.
8735         * tests/unistr/test-u8-to-u32.c: New file.
8736
8737         Tests for module 'unistr/u8-to-u16'.
8738         * modules/unistr/u8-to-u16-tests: New file.
8739         * tests/unistr/test-u8-to-u16.c: New file.
8740
8741         Tests for module 'unistr/u32-check'.
8742         * modules/unistr/u32-check-tests: New file.
8743         * tests/unistr/test-u32-check.c: New file.
8744
8745         Tests for module 'unistr/u16-check'.
8746         * modules/unistr/u16-check-tests: New file.
8747         * tests/unistr/test-u16-check.c: New file.
8748
8749         Tests for module 'unistr/u8-check'.
8750         * modules/unistr/u8-check-tests: New file.
8751         * tests/unistr/test-u8-check.c: New file.
8752
8753         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8754         (category_equals): New function.
8755         (main): Add more tests.
8756         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8757
8758         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8759
8760 2010-01-10  Bruno Haible  <bruno@clisp.org>
8761
8762         unistr/u*-strcoll: Try harder to distinguish different strings.
8763         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8764         compare s1 and s2 to see if they are different.
8765
8766 2010-01-10  Bruno Haible  <bruno@clisp.org>
8767
8768         unistr/u*-stpncpy: Fix the return value.
8769         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8770         description of the return value consistent with stpncpy in glibc.
8771         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8772         written non-NUL unit.
8773
8774 2010-01-10  Bruno Haible  <bruno@clisp.org>
8775
8776         unistr/u*-next: Add missing dependencies.
8777         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8778         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8779         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8780
8781 2010-01-10  Bruno Haible  <bruno@clisp.org>
8782
8783         unistr/u8-mbsnlen: Fix return value for incomplete character.
8784         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8785         u8_mblen.
8786         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8787         Remove unistr/u8-mblen.
8788         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8789         u16_mblen.
8790         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8791         Remove unistr/u16-mblen.
8792
8793 2010-01-10  Bruno Haible  <bruno@clisp.org>
8794
8795         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8796         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8797         Reported by Brian Gough <bjg@gnu.org> and
8798         Chris Clayton <chris2553@googlemail.com> via
8799         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8800
8801 2010-01-09  Bruno Haible  <bruno@clisp.org>
8802
8803         unistr/u16-to-u32: Reject invalid input.
8804         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8805         u16_mbtouc.
8806         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8807         Remove unistr/u16-mbtouc.
8808
8809         unistr/u16-to-u8: Reject invalid input.
8810         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8811         u16_mbtouc.
8812         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8813         Remove unistr/u16-mbtouc.
8814
8815         unistr/u8-to-u32: Reject invalid input.
8816         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8817         u8_mbtouc.
8818         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8819         Remove unistr/u8-mbtouc.
8820
8821         unistr/u8-to-u16: Reject invalid input.
8822         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8823         u8_mbtouc.
8824         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8825         Remove unistr/u8-mbtouc.
8826
8827 2010-01-09  Bruno Haible  <bruno@clisp.org>
8828
8829         Tests for module 'getlogin'.
8830         * modules/getlogin-tests: New file.
8831         * tests/test-getlogin.c: New file.
8832
8833         New module 'getlogin'.
8834         * lib/unistd.in.h (getlogin): New declaration.
8835         * lib/getlogin.c: New file.
8836         * m4/getlogin.m4: New file.
8837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8838         HAVE_GETLOGIN.
8839         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8840         HAVE_GETLOGIN.
8841         * modules/getlogin: New file.
8842         * doc/posix-functions/getlogin.texi: Mention the new module.
8843         Reported by John W. Eaton <jwe@gnu.org>.
8844
8845 2010-01-09  Bruno Haible  <bruno@clisp.org>
8846
8847         getlogin_r: Support for native Windows.
8848         * lib/getlogin_r.c: Include <windows.h>
8849         (getlogin_r): Implement for native Windows.
8850         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8851         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8852         via John W. Eaton <jwe@gnu.org>.
8853
8854 2010-01-09  Bruno Haible  <bruno@clisp.org>
8855
8856         getlogin_r: Small fixes.
8857         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8858         succeeds.
8859         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8860         before testing whether getlogin_r is declared. No need to set
8861         HAVE_DECL_GETLOGIN_R to 1.
8862         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8863
8864 2010-01-09  Bruno Haible  <bruno@clisp.org>
8865
8866         * lib/unistd.in.h (getlogin_r): Add comment.
8867
8868 2010-01-09  Bruno Haible  <bruno@clisp.org>
8869
8870         Tests for module 'getlogin_r'.
8871         * modules/getlogin_r-tests: New file.
8872         * tests/test-getlogin_r.c: New file.
8873
8874 2010-01-09  Jim Meyering  <meyering@redhat.com>
8875
8876         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8877         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8878         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8879
8880 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8881
8882         * lib/dup2.c (rpl_dup2): Improve comment.
8883
8884 2010-01-08  Eric Blake  <ebb9@byu.net>
8885
8886         maint.mk: allow packages to add makefile @@ exceptions
8887         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8888         (sc_makefile_check): Rename...
8889         (sc_makefile_at_at_check): ...to this, and use hook.
8890
8891         dup2: work around mingw bug
8892         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8893         Reported by Simon Josefsson.
8894
8895 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8896
8897         glob: Fix C++ compilation.
8898         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8899         C++.
8900
8901 2010-01-07  Bruno Haible  <bruno@clisp.org>
8902
8903         Fix indentation of wctype.in.h, broken since 2007-01-06.
8904         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8905
8906 2010-01-07  Bruno Haible  <bruno@clisp.org>
8907
8908         mbslen: Avoid collision with system function.
8909         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8910         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8911         * m4/mbslen.m4: New file.
8912         * modules/mbslen (Files): Add it.
8913         (configure.ac): Invoke gl_MBSLEN.
8914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8915         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8916         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8917         via Ian Beckwith <ianb@erislabs.net>.
8918
8919 2010-01-07  Bruno Haible  <bruno@clisp.org>
8920
8921         dirent: Document the last fix.
8922         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
8923
8924 2010-01-07  Bruno Haible  <bruno@clisp.org>
8925
8926         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
8927         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
8928         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
8929         va_list are defined.
8930         * doc/posix-headers/stdio.texi: Document the bug of missing types.
8931         Reported by Eric Blake.
8932
8933 2010-01-07  Bruno Haible  <bruno@clisp.org>
8934
8935         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
8936         * modules/xlist (Depends-on): Add 'list',
8937         * modules/xoset (Depends-on): Add 'oset'.
8938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8939
8940 2010-01-07  Bruno Haible  <bruno@clisp.org>
8941
8942         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
8943         * doc/posix-functions/strncasecmp.texi: Likewise.
8944
8945 2010-01-07  Bruno Haible  <bruno@clisp.org>
8946
8947         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
8948
8949 2010-01-07  John W. Eaton  <jwe@octave.org>
8950
8951         wctype: allow C++ use
8952         * lib/wctype.in.h: Add extern "C" block for C++.
8953
8954 2010-01-06  Eric Blake  <ebb9@byu.net>
8955
8956         maint.mk: detect incorrect GFDL usage
8957         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
8958
8959 2010-01-06  Jim Meyering  <meyering@redhat.com>
8960         and Eric Blake  <ebb9@byu.net>
8961
8962         maint.mk: ignore multi-line copyright in NEWS
8963         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
8964
8965 2010-01-06  Eric Blake  <ebb9@byu.net>
8966
8967         select: add missing dependency
8968         * modules/select-tests (Depends-on): Move sockets dependency...
8969         * modules/select (Depends-on): ...here.
8970         Reported by Ian Beckwith.
8971
8972         doc: regenerate INSTALL
8973         * doc/INSTALL: Reflect recent autoconf update.
8974         * doc/INSTALL.ISO: Likewise.
8975         * doc/INSTALL.UTF-8: Likewise.
8976
8977         pread: fix compilation on glibc
8978         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
8979         Reported by Ralf Wildenhues.
8980
8981         dirent: fix test failure
8982         * lib/dirent.in.h (includes): Guarantee ino_t.
8983         Reported by Ralf Wildenhues.
8984
8985 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
8986
8987         linkat, renameat: avoid bad free
8988         * lib/at-func2.c (at_func2): Fix typo.
8989         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
8990
8991 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8992
8993         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
8994         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
8995         to avoid failure of symlink test later.
8996
8997 2010-01-06  Eric Blake  <ebb9@byu.net>
8998
8999         stdio, unistd: guarantee ssize_t
9000         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9001         2008 are exposed when needed.
9002         * lib/stdio.in.h (includes): Likewise.
9003         Reported by Ralf Wildenhues.
9004
9005 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9006
9007         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9008         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9009         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9010
9011 2010-01-06  Jim Meyering  <meyering@redhat.com>
9012
9013         readtokens: this module *does* require xalloc.h
9014         It uses only functions that were omitted by the old syntax-check rule.
9015         * lib/readtokens.c: Include "xalloc.h" once again.
9016         * modules/readtokens (Depends-on): Add xalloc.
9017         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9018
9019 2010-01-05  Eric Blake  <ebb9@byu.net>
9020
9021         maint: support 'make announcement' from a VPATH build
9022         * top/maint.mk (announcement): Look for correct NEWS file.
9023
9024 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9025
9026         utimens (fdutimens): ignore a negative FD, per contract
9027         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9028         when we have a valid file descriptor.  Otherwise, using a brand
9029         new glibc (with just-patched futimens that now fails with EBADF)
9030         would cause this function to fail with ENOSYS.
9031         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9032         See also http://bugzilla.redhat.com/552320.
9033
9034 2010-01-05  Eric Blake  <ebb9@byu.net>
9035
9036         strcase: document what it provides
9037         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9038         gnulib module.
9039         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9040         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9041
9042 2010-01-05  Jim Meyering  <meyering@redhat.com>
9043
9044         maint: remove useless inclusions of "xalloc.h"
9045         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9046         * lib/readtokens.c: Likewise.
9047         * lib/same.c: Likewise.
9048         * modules/getloadavg (Depends-on): Remove xalloc.
9049         * modules/readtokens: Likewise.
9050         * modules/same: Likewise.
9051
9052         maint.mk: include 4 more function names in alloca.h-checking regexp
9053         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9054         regexp.  Before, we would give a false-positive (saying alloca.h
9055         is included unnecessarily) when the only uses involved omitted symbols.
9056
9057         xalloc.h: use consistent formatting
9058         * lib/xalloc.h: Move declarations to start in the first column.
9059
9060 2010-01-05  Eric Blake  <ebb9@byu.net>
9061
9062         mkdir: avoid xalloc
9063         * lib/mkdir.c (includes): Drop unused header.
9064         Reported by John W. Eaton.
9065
9066 2010-01-04  Jim Meyering  <meyering@redhat.com>
9067
9068         nl_langinfo: avoid configure-time syntax error
9069         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9070         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9071         the empty string.  Don't let that provoke a shell syntax error.
9072
9073         regcomp, regexec, fnmatch: avoid array bounds read error
9074         * lib/regcomp.c (build_equiv_class): From glibc:
9075         Use only the low 24 bits of a findidx return value as an index
9076         into the weights array.  Patch by Ulrich Drepper:
9077         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9078         * lib/regexec.c (check_node_accept_bytes): Likewise.
9079         * lib/fnmatch_loop.c (FCT): Likewise.
9080
9081         regcomp: skip collseq lookup when there are no rules
9082         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9083         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9084
9085         regcomp: recognize ill-formed { } expressions
9086         * lib/regcomp.c (parse_dup_op): From glibc:
9087         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9088
9089         regcomp: fix typo in comment
9090         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9091         s/satisfy/satisfies/.
9092
9093         regcomp: sync from glibc: remove dead store
9094         * lib/regcomp.c (duplicate_node_closure): Remove useless
9095         search_duplicated_node call and dead store.
9096
9097         regcomp: sync from glibc; always use nl_langinfo
9098         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9099         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9100         * modules/regex (Depends-on): Add nl_langinfo.
9101
9102 2010-01-04  Eric Blake  <ebb9@byu.net>
9103
9104         fdopendir: fix configure test
9105         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9106
9107 2010-01-01  Bruno Haible  <bruno@clisp.org>
9108
9109         wchar: Remove unused configure check.
9110         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9111
9112 2010-01-01  Eric Blake  <ebb9@byu.net>
9113
9114         headers: make check of system header explicit
9115         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9116         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9117         ourselves.
9118         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9120         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9121         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9122         internals.
9123         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9124         missing.
9125         Suggested by Bruno Haible.
9126
9127 2010-01-01  Jim Meyering  <meyering@redhat.com>
9128
9129         ChangeLog: tweak to eliminate unnecessary copyright line
9130         * ChangeLog: Remove a copyright line that was mistakenly updated
9131         by today's update-copyright run.  Reported by Eric Blake.
9132
9133         test-update-copyright: don't let envvar setting cause test failure
9134         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9135
9136 2010-01-01  Bruno Haible  <bruno@clisp.org>
9137
9138         localename: Avoid gcc warning.
9139         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9140         function if it is not used.
9141
9142 2010-01-01  Jim Meyering  <meyering@redhat.com>
9143
9144         update nearly all FSF copyright year lists to include 2010
9145         Use the same procedure as for 2009, outlined in
9146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9147
9148         version-etc: set COPYRIGHT_YEAR to 2010
9149         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9150
9151 2009-12-31  Eric Blake  <ebb9@byu.net>
9152
9153         doc: correct availability of cygwin 1.5.x getopt
9154         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9155         variables.
9156         * doc/posix-functions/opterr.texi (opterr): Likewise.
9157         * doc/posix-functions/optind.texi (optind): Likewise.
9158         * doc/posix-functions/optopt.texi (optopt): Likewise.
9159         * doc/posix-functions/tzname.texi (tzname): Likewise.
9160
9161         openat: update maintainer
9162         * modules/openat (Maintainer): Add myself.
9163
9164         utimens: avoid shadowing warning
9165         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9166         buffers into one, to avoid shadowing, as well as avoiding a
9167         redundant stat.
9168         Reported by Jim Meyering.
9169
9170         test-dup2: avoid compiler warning
9171         * tests/test-dup2.c (is_inheritable): Only define if used.
9172
9173 2010-01-01  Bruno Haible  <bruno@clisp.org>
9174
9175         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9176         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9177         defined, use wctomb instead of wcrtomb.
9178
9179 2010-01-01  Bruno Haible  <bruno@clisp.org>
9180
9181         iconv: Reject native Solaris iconv.
9182         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9183         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9184
9185 2009-12-31  Bruno Haible  <bruno@clisp.org>
9186
9187         * tests/test-signal.c (main): Remove test of 'SIG'.
9188
9189 2009-12-31  Bruno Haible  <bruno@clisp.org>
9190
9191         spawn: Fix incomplete fix.
9192         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9193         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9194         warnings for GNULIB_POSIXCHECK again.
9195         Reported by Eric Blake.
9196
9197 2009-12-31  Bruno Haible  <bruno@clisp.org>
9198
9199         Avoid namespace pollution on glibc systems.
9200         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9201         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9202         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9203         glibc systems.
9204
9205 2009-12-31  Bruno Haible  <bruno@clisp.org>
9206
9207         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9208         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9209         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9210         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9211         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9212         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9213         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9214
9215 2009-12-31  Bruno Haible  <bruno@clisp.org>
9216
9217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9218         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9219         afterwards.
9220
9221 2009-12-31  Bruno Haible  <bruno@clisp.org>
9222
9223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9224         SYS_UTSNAME_H.
9225
9226 2009-12-31  Bruno Haible  <bruno@clisp.org>
9227
9228         spawn: Fix misapplied patch.
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.
9232
9233 2009-12-31  Bruno Haible  <bruno@clisp.org>
9234
9235         times: Update after sys_times changed.
9236         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9237         * modules/times (Files): Add it.
9238         (configure.ac): Invoke gl_FUNC_TIMES.
9239
9240 2009-12-31  Bruno Haible  <bruno@clisp.org>
9241
9242         Use AC_C_INLINE where necessary.
9243         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9244         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9246         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9247         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9248         * m4/mbiter.m4 (gl_MBITER): Likewise.
9249         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9250         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9251         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9252         * modules/u64 (configure.ac): Likewise.
9253
9254 2009-12-31  Bruno Haible  <bruno@clisp.org>
9255
9256         Use AC_C_INLINE instead of module 'inline' where possible.
9257         * modules/inline (Description): Clarify purpose.
9258         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9259         * modules/count-one-bits (Depends-on): Remove inline.
9260         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9261         * modules/openat (Depends-on): Remove inline.
9262         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9263         instead of depending on module 'inline'.
9264         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9265         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9266         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9267         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9268         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9269         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9270         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9271         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9272         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9273         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9274         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9275         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9276         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9277         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9278         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9279         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9280         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9281         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9282         Likewise.
9283         * modules/unictype/property-ascii-hex-digit (Depends-on,
9284         configure.ac): Likewise.
9285         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9286         configure.ac): Likewise.
9287         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9288         configure.ac): Likewise.
9289         * modules/unictype/property-bidi-block-separator (Depends-on,
9290         configure.ac): Likewise.
9291         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9292         configure.ac): Likewise.
9293         * modules/unictype/property-bidi-common-separator (Depends-on,
9294         configure.ac): Likewise.
9295         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9296         Likewise.
9297         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9298         configure.ac): Likewise.
9299         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9300         configure.ac): Likewise.
9301         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9302         configure.ac): Likewise.
9303         * modules/unictype/property-bidi-european-digit (Depends-on,
9304         configure.ac): Likewise.
9305         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9306         configure.ac): Likewise.
9307         * modules/unictype/property-bidi-left-to-right (Depends-on,
9308         configure.ac): Likewise.
9309         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9310         configure.ac): Likewise.
9311         * modules/unictype/property-bidi-other-neutral (Depends-on,
9312         configure.ac): Likewise.
9313         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9314         Likewise.
9315         * modules/unictype/property-bidi-segment-separator (Depends-on,
9316         configure.ac): Likewise.
9317         * modules/unictype/property-bidi-whitespace (Depends-on,
9318         configure.ac): Likewise.
9319         * modules/unictype/property-combining (Depends-on, configure.ac):
9320         Likewise.
9321         * modules/unictype/property-composite (Depends-on, configure.ac):
9322         Likewise.
9323         * modules/unictype/property-currency-symbol (Depends-on,
9324         configure.ac): Likewise.
9325         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9326         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9327         Likewise.
9328         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9329         configure.ac): Likewise.
9330         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9331         Likewise.
9332         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9333         Likewise.
9334         * modules/unictype/property-extender (Depends-on, configure.ac):
9335         Likewise.
9336         * modules/unictype/property-format-control (Depends-on, configure.ac):
9337         Likewise.
9338         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9339         Likewise.
9340         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9341         Likewise.
9342         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9343         Likewise.
9344         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9345         Likewise.
9346         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9347         Likewise.
9348         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9349         Likewise.
9350         * modules/unictype/property-id-start (Depends-on, configure.ac):
9351         Likewise.
9352         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9353         Likewise.
9354         * modules/unictype/property-ids-binary-operator (Depends-on,
9355         configure.ac): Likewise.
9356         * modules/unictype/property-ids-trinary-operator (Depends-on,
9357         configure.ac): Likewise.
9358         * modules/unictype/property-ignorable-control (Depends-on,
9359         configure.ac): Likewise.
9360         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9361         Likewise.
9362         * modules/unictype/property-join-control (Depends-on, configure.ac):
9363         Likewise.
9364         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9365         Likewise.
9366         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9367         Likewise.
9368         * modules/unictype/property-logical-order-exception (Depends-on,
9369         configure.ac): Likewise.
9370         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9371         Likewise.
9372         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9373         * modules/unictype/property-non-break (Depends-on, configure.ac):
9374         Likewise.
9375         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9376         Likewise.
9377         * modules/unictype/property-numeric (Depends-on, configure.ac):
9378         Likewise.
9379         * modules/unictype/property-other-alphabetic (Depends-on,
9380         configure.ac): Likewise.
9381         * modules/unictype/property-other-default-ignorable-code-point
9382         (Depends-on, configure.ac): Likewise.
9383         * modules/unictype/property-other-grapheme-extend (Depends-on,
9384         configure.ac): Likewise.
9385         * modules/unictype/property-other-id-continue (Depends-on,
9386         configure.ac): Likewise.
9387         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9388         Likewise.
9389         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9390         Likewise.
9391         * modules/unictype/property-other-math (Depends-on, configure.ac):
9392         Likewise.
9393         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9394         Likewise.
9395         * modules/unictype/property-paired-punctuation (Depends-on,
9396         configure.ac): Likewise.
9397         * modules/unictype/property-paragraph-separator (Depends-on,
9398         configure.ac): Likewise.
9399         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9400         Likewise.
9401         * modules/unictype/property-pattern-white-space (Depends-on,
9402         configure.ac): Likewise.
9403         * modules/unictype/property-private-use (Depends-on, configure.ac):
9404         Likewise.
9405         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9406         Likewise.
9407         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9408         Likewise.
9409         * modules/unictype/property-radical (Depends-on, configure.ac):
9410         Likewise.
9411         * modules/unictype/property-sentence-terminal (Depends-on,
9412         configure.ac): Likewise.
9413         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9414         Likewise.
9415         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9416         * modules/unictype/property-terminal-punctuation (Depends-on,
9417         configure.ac): Likewise.
9418         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9419         Likewise.
9420         * modules/unictype/property-unassigned-code-value (Depends-on,
9421         configure.ac): Likewise.
9422         * modules/unictype/property-unified-ideograph (Depends-on,
9423         configure.ac): Likewise.
9424         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9425         Likewise.
9426         * modules/unictype/property-variation-selector (Depends-on,
9427         configure.ac): Likewise.
9428         * modules/unictype/property-white-space (Depends-on, configure.ac):
9429         Likewise.
9430         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9431         Likewise.
9432         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9433         Likewise.
9434         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9435         Likewise.
9436         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9437         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9438         Likewise.
9439
9440 2009-12-31  Bruno Haible  <bruno@clisp.org>
9441
9442         Remove unnecessary AC_C_INLINE invocation.
9443         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9444         since 2009-08-21.
9445
9446 2009-12-31  Jim Meyering  <meyering@redhat.com>
9447
9448         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9449         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9450         With this change, we can all remove the gpg_key_ID = ... definition
9451         from our respective cfg.mk files.
9452
9453         maint.mk: create announcement template in ~/, not in /tmp
9454         * top/maint.mk (emit_upload_commands): Adjust.
9455         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9456         Remove temporary file, .ci-msg.
9457
9458 2009-12-31  Eric Blake  <ebb9@byu.net>
9459
9460         link-warning: always build headers with link warnings
9461         * modules/arpa_inet (Makefile.am): Always build replacement
9462         header.
9463         * modules/ctype (Makefile.am): Likewise.
9464         * modules/dirent (Makefile.am): Likewise.
9465         * modules/inttypes (Makefile.am): Likewise.
9466         * modules/langinfo (Makefile.am): Likewise.
9467         * modules/locale (Makefile.am): Likewise.
9468         * modules/spawn (Makefile.am): Likewise.
9469         * modules/sys_file (Makefile.am): Likewise.
9470         * modules/sys_ioctl (Makefile.am): Likewise.
9471         * modules/sys_select (Makefile.am): Likewise.
9472         * modules/sys_socket (Makefile.am): Likewise.
9473         * modules/sys_times (Makefile.am): Likewise.
9474         * modules/sys_utsname (Makefile.am): Likewise.
9475         * modules/sys_wait (Makefile.am): Likewise.
9476         * modules/wchar (Makefile.am): Likewise.
9477         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9478         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9479         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9480         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9481         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9482         Likewise.
9483         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9484         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9485         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9486         Likewise.
9487         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9488         Likewise.
9489         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9491         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9493         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9495         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9496         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9497         (gl_WCHAR_H_DEFAULTS): Likewise.
9498
9499 2009-12-31  Eric Blake  <ebb9@byu.net>
9500
9501         signal, spawn: use link warnings
9502         * lib/signal.in.h (sigset_t): Make unconditional.
9503         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9504         (sigpending, sigprocmask, sigaction): Add link warnings.
9505         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9506         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9507         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9508         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9509         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9510         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9511         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9512         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9513         (posix_spawn_file_actions_destroy)
9514         (posix_spawn_file_actions_addopen)
9515         (posix_spawn_file_actions_addclose)
9516         (posix_spawn_file_actions_adddup2): Likewise.
9517         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9518         * tests/test-signal.c (main): Enhance test.
9519
9520         spawn: improve wrapper support
9521         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9522         (gl_SPAWN_H_DEFAULTS): New defaults.
9523         * modules/spawn (Makefile.am): Substitute them.
9524         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9525         Only declare if missing or broken.
9526
9527         sys_times, sys_utsname: use include_next
9528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9529         header.
9530         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9532         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9533         * modules/sys_times (Depends-on): Add include_next.
9534         (Makefile.am): Substitute additional values.
9535         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9536         * lib/sys_times.in.h (includes): Include native header, if
9537         available.
9538         * lib/sys_utsname.in.h (includes): Likewise.
9539         * tests/test-sys_times.c (main): Enhance test.
9540
9541         fdutimensat: revert prior patch
9542         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9543         utimens.h.
9544         Reported by Bruno Haible.
9545
9546 2009-12-30  Eric Blake  <ebb9@byu.net>
9547
9548         sys_wait: drop link-warning dependency
9549         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9550         link-warning efforts.
9551         * lib/sys_wait.in.h: Likewise.
9552
9553         fdutimensat: remove bogus dependency
9554         * modules/fdutimensat (Depends-on): Drop inline.
9555
9556         unistd: fix typo
9557         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9558
9559 2009-12-30  Bruno Haible  <bruno@clisp.org>
9560
9561         Fix compilation error with Solaris cc.
9562         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9563         * lib/unicase/u16-is-invariant.c: Likewise.
9564         * lib/unicase/u32-is-invariant.c: Likewise.
9565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9566
9567 2009-12-30  Bruno Haible  <bruno@clisp.org>
9568
9569         Fix test crash.
9570         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9571         locales.
9572         Reported by Simon Josefsson <simon@josefsson.org>.
9573
9574 2009-12-30  Bruno Haible  <bruno@clisp.org>
9575
9576         Fix compilation error on most platforms.
9577         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9578         Reported by Simon Josefsson <simon@josefsson.org>
9579         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9580
9581 2009-12-30  Eric Blake  <ebb9@byu.net>
9582
9583         futimens, utimensat: work around ntfs-3g bug
9584         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9585         a ctime bug is present, and expand workaround to cover ntfs-3g.
9586         * lib/utimens.c (fdutimens, lutimens): Likewise.
9587         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9588         (validate_timespec): Adjust return value.
9589         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9590         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9591         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9592
9593 2009-12-29  Eric Blake  <ebb9@byu.net>
9594
9595         link-warning: make usage consistent
9596         * modules/ctype (Depends-on): Add link-warning.
9597         (Makefile.am): Update rules accordingly.
9598         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9599         * modules/locale (Depends-on, Makefile.am): Likewise.
9600         * modules/sys_file (Makefile.am): Likewise.
9601         * modules/getopt-posix (Makefile.am): Delete unused link warning
9602         efforts.
9603         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9604         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9605         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9606         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9607
9608         stdio: remove unused variables
9609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9610         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9611         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9612
9613         tests: test more substitute headers
9614         * modules/ctype-tests: New file.
9615         * modules/dirent-tests: Likewise.
9616         * modules/spawn-tests: Likewise.
9617         * modules/sys_file-tests: Likewise.
9618         * modules/sys_ioctl-tests: Likewise.
9619         * modules/sys_wait-tests: Likewise.
9620         * tests/test-ctype.c: Likewise.
9621         * tests/test-dirent.c: Likewise.
9622         * tests/test-spawn.c: Likewise.
9623         * tests/test-sys_file.c: Likewise.
9624         * tests/test-sys_ioctl.c: Likewise.
9625         * tests/test-sys_wait.c: Likewise.
9626         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9627         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9628         whether or not flock is in use.
9629
9630         tests: remove License section from module
9631         * modules/arpa_inet-tests: Remove unneeded section.
9632         * modules/byteswap-tests: Likewise.
9633         * modules/ceilf-tests: Likewise.
9634         * modules/ceill-tests: Likewise.
9635         * modules/crypto/des-tests: Likewise.
9636         * modules/crypto/gc-arcfour-tests: Likewise.
9637         * modules/crypto/gc-arctwo-tests: Likewise.
9638         * modules/crypto/gc-des-tests: Likewise.
9639         * modules/crypto/gc-hmac-md5-tests: Likewise.
9640         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9641         * modules/crypto/gc-md2-tests: Likewise.
9642         * modules/crypto/gc-md4-tests: Likewise.
9643         * modules/crypto/gc-md5-tests: Likewise.
9644         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9645         * modules/crypto/gc-rijndael-tests: Likewise.
9646         * modules/crypto/gc-sha1-tests: Likewise.
9647         * modules/crypto/gc-tests: Likewise.
9648         * modules/crypto/md2-tests: Likewise.
9649         * modules/crypto/md4-tests: Likewise.
9650         * modules/fcntl-h-tests: Likewise.
9651         * modules/floorf-tests: Likewise.
9652         * modules/floorl-tests: Likewise.
9653         * modules/frexp-nolibm-tests: Likewise.
9654         * modules/frexp-tests: Likewise.
9655         * modules/frexpl-nolibm-tests: Likewise.
9656         * modules/frexpl-tests: Likewise.
9657         * modules/getaddrinfo-tests: Likewise.
9658         * modules/inttypes-tests: Likewise.
9659         * modules/isfinite-tests: Likewise.
9660         * modules/isinf-tests: Likewise.
9661         * modules/ldexpl-tests: Likewise.
9662         * modules/locale-tests: Likewise.
9663         * modules/math-tests: Likewise.
9664         * modules/netdb-tests: Likewise.
9665         * modules/netinet_in-tests: Likewise.
9666         * modules/printf-frexp-tests: Likewise.
9667         * modules/printf-frexpl-tests: Likewise.
9668         * modules/priv-set-tests: Likewise.
9669         * modules/random_r-tests: Likewise.
9670         * modules/round-tests: Likewise.
9671         * modules/roundf-tests: Likewise.
9672         * modules/roundl-tests: Likewise.
9673         * modules/search-tests: Likewise.
9674         * modules/select-tests: Likewise.
9675         * modules/signal-tests: Likewise.
9676         * modules/stdbool-tests: Likewise.
9677         * modules/stddef-tests: Likewise.
9678         * modules/stdint-tests: Likewise.
9679         * modules/stdio-tests: Likewise.
9680         * modules/stdlib-tests: Likewise.
9681         * modules/string-tests: Likewise.
9682         * modules/strings-tests: Likewise.
9683         * modules/sys_select-tests: Likewise.
9684         * modules/sys_socket-tests: Likewise.
9685         * modules/sys_stat-tests: Likewise.
9686         * modules/sys_time-tests: Likewise.
9687         * modules/sys_utsname-tests: Likewise.
9688         * modules/sysexits-tests: Likewise.
9689         * modules/time-tests: Likewise.
9690         * modules/trunc-tests: Likewise.
9691         * modules/truncf-tests: Likewise.
9692         * modules/truncl-tests: Likewise.
9693         * modules/tsearch-tests: Likewise.
9694         * modules/unistd-tests: Likewise.
9695         * modules/wchar-tests: Likewise.
9696         * modules/wctype-tests: Likewise.
9697
9698         tests: fix license on several tests
9699         * tests/test-des.c: Update to GPLv3+.
9700         * tests/test-flock.c: Likewise.
9701         * tests/test-fsync.c: Likewise.
9702         * tests/test-futimens.h: Likewise.
9703         * tests/test-gc-arcfour.c: Likewise.
9704         * tests/test-gc-arctwo.c: Likewise.
9705         * tests/test-gc-des.c: Likewise.
9706         * tests/test-gc-hmac-md5.c: Likewise.
9707         * tests/test-gc-hmac-sha1.c: Likewise.
9708         * tests/test-gc-md2.c: Likewise.
9709         * tests/test-gc-md4.c: Likewise.
9710         * tests/test-gc-md5.c: Likewise.
9711         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9712         * tests/test-gc-rijndael.c: Likewise.
9713         * tests/test-gc-sha1.c: Likewise.
9714         * tests/test-gc.c: Likewise.
9715         * tests/test-getcwd.c: Likewise.
9716         * tests/test-link.c: Likewise.
9717         * tests/test-link.h: Likewise.
9718         * tests/test-lutimens.h: Likewise.
9719         * tests/test-md2.c: Likewise.
9720         * tests/test-md4.c: Likewise.
9721         * tests/test-mkdir.h: Likewise.
9722         * tests/test-rename.c: Likewise.
9723         * tests/test-rename.h: Likewise.
9724         * tests/test-safe-alloc.c: Likewise.
9725         * tests/test-utimens-common.h: Likewise.
9726         * tests/test-utimens.h: Likewise.
9727
9728         maint: sync license texts
9729         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9730         * doc/gpl-3.0.texi: Revert copyright year update.
9731         * doc/lgpl-3.0.texi: Likewise.
9732
9733 2009-12-29  Jim Meyering  <meyering@redhat.com>
9734
9735         update nearly all FSF copyright year lists to include 2009
9736         The files named by the following are exempted:
9737             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9738               test -f "$dst" && { echo "$dst"; continue; }
9739               test -d "$dst" || continue
9740               echo "$dst"/$(basename "$src")
9741             done > exempt
9742             git ls-files tests/unictype >> exempt
9743         In the remaining files, convert to all-interval notation if
9744         - there is already at least one year interval like 2000-2003
9745         - the file is maintained by me
9746         - the file is in lib/uni*/, where that style already prevails
9747         Otherwise, use update-copyright's default.
9748
9749 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9750         and Eric Blake  <ebb9@byu.net>
9751
9752         tests: don't require debug system() to pass
9753         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9754         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9755         * tests/test-unlink.h (test_unlink_func): Likewise.
9756         * tests/test-fstatat.c (main): ...into callers.
9757         * tests/test-lstat.c (main): Likewise.
9758         * tests/test-rmdir.c (main): Likewise.
9759         * tests/test-unlink.c (main): Likewise.
9760         * tests/test-unlinkat.c (main): Likewise.
9761         * tests/test-areadlink-with-size.c (main): Don't require a
9762         debug-only system call to pass, aiding cross-testing to mingw.
9763         * tests/test-areadlink.c (main): Likewise.
9764         * tests/test-areadlinkat-with-size.c (main): Likewise.
9765         * tests/test-areadlinkat.c (main): Likewise.
9766         * tests/test-canonicalize-lgpl.c (main): Likewise.
9767         * tests/test-canonicalize.c (main): Likewise.
9768         * tests/test-chown.c (main): Likewise.
9769         * tests/test-fchownat.c (main): Likewise.
9770         * tests/test-lchown.c (main): Likewise.
9771         * tests/test-fdutimensat.c (main): Likewise.
9772         * tests/test-futimens.c (main): Likewise.
9773         * tests/test-link.c (main): Likewise.
9774         * tests/test-linkat.c (main): Likewise.
9775         * tests/test-mkdir.c (main): Likewise.
9776         * tests/test-mkdirat.c (main): Likewise.
9777         * tests/test-mkfifo.c (main): Likewise.
9778         * tests/test-mkfifoat.c (main): Likewise.
9779         * tests/test-mknod.c (main): Likewise.
9780         * tests/test-readlink.c (main): Likewise.
9781         * tests/test-remove.c (main): Likewise.
9782         * tests/test-rename.c (main): Likewise.
9783         * tests/test-renameat.c (main): Likewise.
9784         * tests/test-symlink.c (main): Likewise.
9785         * tests/test-symlinkat.c (main): Likewise.
9786         * tests/test-utimens.c (main): Likewise.
9787         * tests/test-utimensat.c (main): Likewise.
9788
9789 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9790
9791         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9792         on $(UNUSED_PARAMETER_H) to avoid build failure.
9793
9794 2009-12-28  Jim Meyering  <meyering@redhat.com>
9795
9796         update-copyright: you may specify a max. line length other than 72
9797         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9798
9799         maint: use consistent FSF copyright line syntax
9800         * lib/posixtm.c: Add missing comma in FSF copyright line.
9801         * lib/posixtm.h: Likewise.
9802         * lib/getugroups.c: Add missing ", Inc.".
9803
9804         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9805         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9806         FSF copyright line.  Remove trailing blanks.
9807
9808 2009-12-28  Eric Blake  <ebb9@byu.net>
9809
9810         test-dup2: reduce dependencies
9811         * modules/cloexec (Configure.ac): Set witness.
9812         * modules/dup2-tests (Depends-on): Drop cloexec.
9813         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9814         not present.
9815         Suggested by Bruno Haible.
9816
9817 2009-12-26  Bruno Haible  <bruno@clisp.org>
9818
9819         Remove an unneeded dependency.
9820         * modules/fseterr (Depends-on): Remove dup2.
9821
9822 2009-12-26  Eric Blake  <ebb9@byu.net>
9823
9824         tests: use macros.h in more places
9825         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9826         (ASSERT_STREAM): Provide default of stderr.
9827         * tests/test-dirent-safer.c: Include macros.h, using alternate
9828         stream for assertions.
9829         * tests/test-dup-safer.c: Likewise.
9830         * tests/test-freopen-safer.c: Likewise.
9831         * tests/test-getopt.c: Likewise.
9832         * tests/test-openat-safer.c: Likewise.
9833         * tests/test-pipe.c: Likewise.
9834         * tests/test-popen-safer.c: Likewise.
9835         * modules/dirent-safer-tests (Files): Include macros.h.
9836         * modules/unistd-safer-tests (Files): Likewise.
9837         * modules/freopen-safer-tests (Files): Likewise.
9838         * modules/getopt-posix-tests (Files): Likewise.
9839         * modules/openat-safer-tests (Files): Likewise.
9840         * modules/pipe-tests (Files): Likewise.
9841
9842 2009-12-26  Bruno Haible  <bruno@clisp.org>
9843
9844         javacomp: Portability fix.
9845         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9846         that it also works on Solaris.
9847
9848 2009-12-26  Bruno Haible  <bruno@clisp.org>
9849
9850         localename: Fix storage allocation of gl_locale_name_thread's result.
9851         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9852         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9853         all platforms that have 'uselocale'.
9854         (gl_locale_name_thread_unsafe): New function, extracted from
9855         gl_locale_name_thread.
9856         (gl_locale_name_thread): Call struniq on all platforms that have
9857         'uselocale'.
9858         * tests/test-localename.c (test_locale_name_thread): Check that the
9859         resulting strings are permanently allocated.
9860         * modules/localename-tests (Depends-on): Add strdup.
9861
9862 2009-12-26  Bruno Haible  <bruno@clisp.org>
9863
9864         * tests/test-localename.c (categories): Fill in the strings.
9865
9866 2009-12-26  Jim Meyering  <meyering@redhat.com>
9867
9868         isdir: complete the removal of m4/isdir.m4
9869         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9870
9871         isdir: clean up, since at least grep still uses it
9872         * lib/isdir.c: Include "isdir.h".
9873         (S_ISDIR): Remove now-unneeded definition.
9874         * modules/isdir (Files): Add lib/isdir.h.
9875         * lib/isdir.h: New file, with declaration.
9876         * m4/isdir.m4: Remove file -- unneeded.
9877
9878 2009-12-25  Bruno Haible  <bruno@clisp.org>
9879
9880         selinux-h: Make generated .h files standalone.
9881         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9882         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9883         * lib/se-selinux.in.h: Likewise.
9884         * modules/selinux-h (Depends-on): Add unused-parameter.
9885         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9886         selinux/selinux.h and selinux/context.h.
9887         Suggested by Eric Blake.
9888
9889 2009-12-25  Bruno Haible  <bruno@clisp.org>
9890
9891         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9892         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9893         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9894         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9895         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9896
9897 2009-12-24  Bruno Haible  <bruno@clisp.org>
9898
9899         openat: Fix warning.
9900         * lib/openat-proc.c: Include <unistd.h>.
9901
9902 2009-12-24  Bruno Haible  <bruno@clisp.org>
9903
9904         New module 'unused-parameter'.
9905         * build-aux/unused-parameter.h: New file, extracted from earlier
9906         gnulib-common.m4.
9907         * modules/unused-parameter: New file.
9908         * lib/unistr.h: Include unused-parameter.h.
9909         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9910         _GL_UNUSED.
9911         * modules/unistr/base (Depends-on): Add unused-parameter.
9912
9913 2009-12-24  Bruno Haible  <bruno@clisp.org>
9914
9915         Add missing dependencies to 'extensions' module.
9916         * m4/extensions.m4: Add comment.
9917         * modules/accept4 (Depends-on): Add extensions.
9918         * modules/dup3 (Depends-on): Likewise.
9919         * modules/fcntl (Depends-on): Likewise.
9920         * modules/futimens (Depends-on): Likewise.
9921         * modules/mknod (Depends-on): Likewise.
9922         * modules/pipe2 (Depends-on): Likewise.
9923         * modules/stat-time (Depends-on): Likewise.
9924         * modules/strcasestr-simple (Depends-on): Likewise.
9925         * modules/strsignal (Depends-on): Likewise.
9926         * modules/utimensat (Depends-on): Likewise.
9927         * modules/localcharset (Depends-on): Likewise. Needed because of
9928         gl_FCNTL_O_FLAGS.
9929         * modules/wcrtomb (Depends-on): Likewise. Needed because of
9930         AC_TYPE_MBSTATE_T.
9931         * modules/wcsnrtombs (Depends-on): Likewise.
9932         * modules/wcsrtombs (Depends-on): Likewise.
9933
9934 2009-12-24  Bruno Haible  <bruno@clisp.org>
9935
9936         binary-io: Avoid gcc warning due to SET_BINARY.
9937         * lib/binary-io.h (SET_BINARY): Cast the result to void.
9938         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
9939
9940 2009-12-24  Bruno Haible  <bruno@clisp.org>
9941
9942         Avoid future namespace pollution on glibc systems.
9943         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
9944         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
9945         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
9946         glibc systems.
9947
9948 2009-12-24  Bruno Haible  <bruno@clisp.org>
9949
9950         Refactor common macros used in tests.
9951         * tests/macros.h: New file.
9952         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
9953         and/or <stdlib.h>, if appropriate.
9954         (ASSERT, SIZEOF): Remove macros.
9955         * tests/test-areadlink-with-size.c: Likewise.
9956         * tests/test-areadlinkat.c: Likewise.
9957         * tests/test-areadlinkat-with-size.c: Likewise.
9958         * tests/test-argmatch.c: Likewise.
9959         * tests/test-argv-iter.c: Likewise.
9960         * tests/test-array-mergesort.c: Likewise.
9961         * tests/test-array_list.c: Likewise.
9962         * tests/test-array_oset.c: Likewise.
9963         * tests/test-avltree_list.c: Likewise.
9964         * tests/test-avltree_oset.c: Likewise.
9965         * tests/test-avltreehash_list.c: Likewise.
9966         * tests/test-base64.c: Likewise.
9967         * tests/test-binary-io.c: Likewise.
9968         * tests/test-bitrotate.c: Likewise.
9969         * tests/test-btowc.c: Likewise.
9970         * tests/test-byteswap.c: Likewise.
9971         * tests/test-c-ctype.c: Likewise.
9972         * tests/test-c-stack.c: Likewise.
9973         * tests/test-c-strcasecmp.c: Likewise.
9974         * tests/test-c-strcasestr.c: Likewise.
9975         * tests/test-c-strncasecmp.c: Likewise.
9976         * tests/test-c-strstr.c: Likewise.
9977         * tests/test-canonicalize-lgpl.c: Likewise.
9978         * tests/test-canonicalize.c: Likewise.
9979         * tests/test-carray_list.c: Likewise.
9980         * tests/test-ceilf1.c: Likewise.
9981         * tests/test-ceilf2.c: Likewise.
9982         * tests/test-ceill.c: Likewise.
9983         * tests/test-chown.c: Likewise.
9984         * tests/test-cloexec.c: Likewise.
9985         * tests/test-copy-acl.c: Likewise.
9986         * tests/test-copy-file.c: Likewise.
9987         * tests/test-count-one-bits.c: Likewise.
9988         * tests/test-dprintf-posix.c: Likewise.
9989         * tests/test-dup2.c: Likewise.
9990         * tests/test-dup3.c: Likewise.
9991         * tests/test-duplocale.c: Likewise.
9992         * tests/test-fbufmode.c: Likewise.
9993         * tests/test-fchdir.c: Likewise.
9994         * tests/test-fchownat.c: Likewise.
9995         * tests/test-fcntl-safer.c: Likewise.
9996         * tests/test-fcntl.c: Likewise.
9997         * tests/test-fdopendir.c: Likewise.
9998         * tests/test-fdutimensat.c: Likewise.
9999         * tests/test-fflush2.c: Likewise.
10000         * tests/test-file-has-acl.c: Likewise.
10001         * tests/test-filevercmp.c: Likewise.
10002         * tests/test-flock.c: Likewise.
10003         * tests/test-floorf1.c: Likewise.
10004         * tests/test-floorf2.c: Likewise.
10005         * tests/test-floorl.c: Likewise.
10006         * tests/test-fnmatch.c: Likewise.
10007         * tests/test-fopen.h: Likewise.
10008         * tests/test-fpending.c: Likewise.
10009         * tests/test-fprintf-posix.c: Likewise.
10010         * tests/test-fpurge.c: Likewise.
10011         * tests/test-freadable.c: Likewise.
10012         * tests/test-freadahead.c: Likewise.
10013         * tests/test-freading.c: Likewise.
10014         * tests/test-freadptr.c: Likewise.
10015         * tests/test-freadptr2.c: Likewise.
10016         * tests/test-freadseek.c: Likewise.
10017         * tests/test-freopen.c: Likewise.
10018         * tests/test-frexp.c: Likewise.
10019         * tests/test-frexpl.c: Likewise.
10020         * tests/test-fseek.c: Likewise.
10021         * tests/test-fseeko.c: Likewise.
10022         * tests/test-fstatat.c: Likewise.
10023         * tests/test-fstrcmp.c: Likewise.
10024         * tests/test-fsync.c: Likewise.
10025         * tests/test-ftell.c: Likewise.
10026         * tests/test-ftello.c: Likewise.
10027         * tests/test-func.c: Likewise.
10028         * tests/test-futimens.c: Likewise.
10029         * tests/test-fwritable.c: Likewise.
10030         * tests/test-fwriting.c: Likewise.
10031         * tests/test-getcwd.c: Likewise.
10032         * tests/test-getdate.c: Likewise.
10033         * tests/test-getdelim.c: Likewise.
10034         * tests/test-getdtablesize.c: Likewise.
10035         * tests/test-getgroups.c: Likewise.
10036         * tests/test-getline.c: Likewise.
10037         * tests/test-getndelim2.c: Likewise.
10038         * tests/test-glob.c: Likewise.
10039         * tests/test-hash.c: Likewise.
10040         * tests/test-i-ring.c: Likewise.
10041         * tests/test-iconv-utf.c: Likewise.
10042         * tests/test-iconv.c: Likewise.
10043         * tests/test-idpriv-drop.c: Likewise.
10044         * tests/test-idpriv-droptemp.c: Likewise.
10045         * tests/test-inet_ntop.c: Likewise.
10046         * tests/test-inet_pton.c: Likewise.
10047         * tests/test-isblank.c: Likewise.
10048         * tests/test-isfinite.c: Likewise.
10049         * tests/test-isinf.c: Likewise.
10050         * tests/test-isnan.c: Likewise.
10051         * tests/test-isnand.h: Likewise.
10052         * tests/test-isnanf.h: Likewise.
10053         * tests/test-isnanl.h: Likewise.
10054         * tests/test-lchown.c: Likewise.
10055         * tests/test-ldexpl.c: Likewise.
10056         * tests/test-link.c: Likewise.
10057         * tests/test-linkat.c: Likewise.
10058         * tests/test-linked_list.c: Likewise.
10059         * tests/test-linkedhash_list.c: Likewise.
10060         * tests/test-localename.c: Likewise.
10061         * tests/test-lseek.c: Likewise.
10062         * tests/test-lstat.c: Likewise.
10063         * tests/test-mbmemcasecmp.c: Likewise.
10064         * tests/test-mbmemcasecoll.c: Likewise.
10065         * tests/test-mbrtowc.c: Likewise.
10066         * tests/test-mbscasecmp.c: Likewise.
10067         * tests/test-mbscasestr1.c: Likewise.
10068         * tests/test-mbscasestr2.c: Likewise.
10069         * tests/test-mbscasestr3.c: Likewise.
10070         * tests/test-mbscasestr4.c: Likewise.
10071         * tests/test-mbschr.c: Likewise.
10072         * tests/test-mbscspn.c: Likewise.
10073         * tests/test-mbsinit.c: Likewise.
10074         * tests/test-mbsncasecmp.c: Likewise.
10075         * tests/test-mbsnrtowcs.c: Likewise.
10076         * tests/test-mbspbrk.c: Likewise.
10077         * tests/test-mbspcasecmp.c: Likewise.
10078         * tests/test-mbsrchr.c: Likewise.
10079         * tests/test-mbsrtowcs.c: Likewise.
10080         * tests/test-mbsspn.c: Likewise.
10081         * tests/test-mbsstr1.c: Likewise.
10082         * tests/test-mbsstr2.c: Likewise.
10083         * tests/test-mbsstr3.c: Likewise.
10084         * tests/test-memchr.c: Likewise.
10085         * tests/test-memchr2.c: Likewise.
10086         * tests/test-memcmp.c: Likewise.
10087         * tests/test-memmem.c: Likewise.
10088         * tests/test-memrchr.c: Likewise.
10089         * tests/test-mkdir.c: Likewise.
10090         * tests/test-mkdirat.c: Likewise.
10091         * tests/test-mkfifo.c: Likewise.
10092         * tests/test-mkfifoat.c: Likewise.
10093         * tests/test-mknod.c: Likewise.
10094         * tests/test-nanosleep.c: Likewise.
10095         * tests/test-nl_langinfo.c: Likewise.
10096         * tests/test-obstack-printf.c: Likewise.
10097         * tests/test-open.c: Likewise.
10098         * tests/test-openat.c: Likewise.
10099         * tests/test-pipe-filter-gi1.c: Likewise.
10100         * tests/test-pipe-filter-gi2-main.c: Likewise.
10101         * tests/test-pipe-filter-ii1.c: Likewise.
10102         * tests/test-pipe-filter-ii2-main.c: Likewise.
10103         * tests/test-pipe2.c: Likewise.
10104         * tests/test-popen.h: Likewise.
10105         * tests/test-posixtm.c: Likewise.
10106         * tests/test-pread.c: Likewise.
10107         * tests/test-printf-frexp.c: Likewise.
10108         * tests/test-printf-frexpl.c: Likewise.
10109         * tests/test-printf-posix.c: Likewise.
10110         * tests/test-priv-set.c: Likewise.
10111         * tests/test-quotearg.c: Likewise.
10112         * tests/test-random_r.c: Likewise.
10113         * tests/test-rawmemchr.c: Likewise.
10114         * tests/test-rbtree_list.c: Likewise.
10115         * tests/test-rbtree_oset.c: Likewise.
10116         * tests/test-rbtreehash_list.c: Likewise.
10117         * tests/test-readlink.c: Likewise.
10118         * tests/test-remove.c: Likewise.
10119         * tests/test-rename.c: Likewise.
10120         * tests/test-renameat.c: Likewise.
10121         * tests/test-rmdir.c: Likewise.
10122         * tests/test-round1.c: Likewise.
10123         * tests/test-roundf1.c: Likewise.
10124         * tests/test-roundl.c: Likewise.
10125         * tests/test-safe-alloc.c: Likewise.
10126         * tests/test-sameacls.c: Likewise.
10127         * tests/test-set-mode-acl.c: Likewise.
10128         * tests/test-setenv.c: Likewise.
10129         * tests/test-sigaction.c: Likewise.
10130         * tests/test-signbit.c: Likewise.
10131         * tests/test-sleep.c: Likewise.
10132         * tests/test-snprintf-posix.c: Likewise.
10133         * tests/test-snprintf.c: Likewise.
10134         * tests/test-sprintf-posix.c: Likewise.
10135         * tests/test-stat-time.c: Likewise.
10136         * tests/test-stat.c: Likewise.
10137         * tests/test-strcasestr.c: Likewise.
10138         * tests/test-strchrnul.c: Likewise.
10139         * tests/test-strerror.c: Likewise.
10140         * tests/test-striconv.c: Likewise.
10141         * tests/test-striconveh.c: Likewise.
10142         * tests/test-striconveha.c: Likewise.
10143         * tests/test-strsignal.c: Likewise.
10144         * tests/test-strstr.c: Likewise.
10145         * tests/test-strtod.c: Likewise.
10146         * tests/test-strverscmp.c: Likewise.
10147         * tests/test-symlink.c: Likewise.
10148         * tests/test-symlinkat.c: Likewise.
10149         * tests/test-trunc1.c: Likewise.
10150         * tests/test-trunc2.c: Likewise.
10151         * tests/test-truncf1.c: Likewise.
10152         * tests/test-truncf2.c: Likewise.
10153         * tests/test-truncl.c: Likewise.
10154         * tests/test-uname.c: Likewise.
10155         * tests/test-unlink.c: Likewise.
10156         * tests/test-unlinkat.c: Likewise.
10157         * tests/test-unsetenv.c: Likewise.
10158         * tests/test-usleep.c: Likewise.
10159         * tests/test-utimens.c: Likewise.
10160         * tests/test-utimensat.c: Likewise.
10161         * tests/test-vasnprintf-posix.c: Likewise.
10162         * tests/test-vasnprintf-posix2.c: Likewise.
10163         * tests/test-vasnprintf.c: Likewise.
10164         * tests/test-vasprintf-posix.c: Likewise.
10165         * tests/test-vasprintf.c: Likewise.
10166         * tests/test-vdprintf-posix.c: Likewise.
10167         * tests/test-vfprintf-posix.c: Likewise.
10168         * tests/test-vprintf-posix.c: Likewise.
10169         * tests/test-vsnprintf-posix.c: Likewise.
10170         * tests/test-vsnprintf.c: Likewise.
10171         * tests/test-vsprintf-posix.c: Likewise.
10172         * tests/test-wcrtomb.c: Likewise.
10173         * tests/test-wcsnrtombs.c: Likewise.
10174         * tests/test-wcsrtombs.c: Likewise.
10175         * tests/test-wctype.c: Likewise.
10176         * tests/test-wcwidth.c: Likewise.
10177         * tests/test-xfprintf-posix.c: Likewise.
10178         * tests/test-xmemdup0.c: Likewise.
10179         * tests/test-xprintf-posix.c: Likewise.
10180         * tests/test-xvasprintf.c: Likewise.
10181         * tests/unicase/test-locale-language.c: Likewise.
10182         * tests/unicase/test-mapping-part1.h: Likewise.
10183         * tests/unicase/test-predicate-part1.h: Likewise.
10184         * tests/unicase/test-u8-casecmp.c: Likewise.
10185         * tests/unicase/test-u8-casecoll.c: Likewise.
10186         * tests/unicase/test-u8-casefold.c: Likewise.
10187         * tests/unicase/test-u8-is-cased.c: Likewise.
10188         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10189         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10190         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10191         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10192         * tests/unicase/test-u8-tolower.c: Likewise.
10193         * tests/unicase/test-u8-totitle.c: Likewise.
10194         * tests/unicase/test-u8-toupper.c: Likewise.
10195         * tests/unicase/test-u16-casecmp.c: Likewise.
10196         * tests/unicase/test-u16-casecoll.c: Likewise.
10197         * tests/unicase/test-u16-casefold.c: Likewise.
10198         * tests/unicase/test-u16-is-cased.c: Likewise.
10199         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10200         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10201         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10202         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10203         * tests/unicase/test-u16-tolower.c: Likewise.
10204         * tests/unicase/test-u16-totitle.c: Likewise.
10205         * tests/unicase/test-u16-toupper.c: Likewise.
10206         * tests/unicase/test-u32-casecmp.c: Likewise.
10207         * tests/unicase/test-u32-casecoll.c: Likewise.
10208         * tests/unicase/test-u32-casefold.c: Likewise.
10209         * tests/unicase/test-u32-is-cased.c: Likewise.
10210         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10211         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10212         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10213         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10214         * tests/unicase/test-u32-tolower.c: Likewise.
10215         * tests/unicase/test-u32-totitle.c: Likewise.
10216         * tests/unicase/test-u32-toupper.c: Likewise.
10217         * tests/unicase/test-ulc-casecmp.c: Likewise.
10218         * tests/unicase/test-ulc-casecoll.c: Likewise.
10219         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10220         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10221         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10222         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10223         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10224         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10225         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10226         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10227         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10228         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10229         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10230         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10231         * tests/unictype/test-bidi_byname.c: Likewise.
10232         * tests/unictype/test-bidi_name.c: Likewise.
10233         * tests/unictype/test-bidi_of.c: Likewise.
10234         * tests/unictype/test-bidi_test.c: Likewise.
10235         * tests/unictype/test-block_list.c: Likewise.
10236         * tests/unictype/test-block_of.c: Likewise.
10237         * tests/unictype/test-block_test.c: Likewise.
10238         * tests/unictype/test-categ_and.c: Likewise.
10239         * tests/unictype/test-categ_and_not.c: Likewise.
10240         * tests/unictype/test-categ_byname.c: Likewise.
10241         * tests/unictype/test-categ_name.c: Likewise.
10242         * tests/unictype/test-categ_none.c: Likewise.
10243         * tests/unictype/test-categ_of.c: Likewise.
10244         * tests/unictype/test-categ_or.c: Likewise.
10245         * tests/unictype/test-categ_test_withtable.c: Likewise.
10246         * tests/unictype/test-combining.c: Likewise.
10247         * tests/unictype/test-decdigit.c: Likewise.
10248         * tests/unictype/test-digit.c: Likewise.
10249         * tests/unictype/test-mirror.c: Likewise.
10250         * tests/unictype/test-numeric.c: Likewise.
10251         * tests/unictype/test-pr_byname.c: Likewise.
10252         * tests/unictype/test-pr_test.c: Likewise.
10253         * tests/unictype/test-predicate-part1.h: Likewise.
10254         * tests/unictype/test-scripts.c: Likewise.
10255         * tests/unictype/test-sy_c_ident.c: Likewise.
10256         * tests/unictype/test-sy_java_ident.c: Likewise.
10257         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10258         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10259         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10260         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10261         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10262         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10263         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10264         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10265         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10266         * tests/uninorm/test-compat-decomposition.c: Likewise.
10267         * tests/uninorm/test-composition.c: Likewise.
10268         * tests/uninorm/test-decomposing-form.c: Likewise.
10269         * tests/uninorm/test-decomposition.c: Likewise.
10270         * tests/uninorm/test-u8-nfc.c: Likewise.
10271         * tests/uninorm/test-u8-nfd.c: Likewise.
10272         * tests/uninorm/test-u8-nfkc.c: Likewise.
10273         * tests/uninorm/test-u8-nfkd.c: Likewise.
10274         * tests/uninorm/test-u8-normcmp.c: Likewise.
10275         * tests/uninorm/test-u8-normcoll.c: Likewise.
10276         * tests/uninorm/test-u16-nfc.c: Likewise.
10277         * tests/uninorm/test-u16-nfd.c: Likewise.
10278         * tests/uninorm/test-u16-nfkc.c: Likewise.
10279         * tests/uninorm/test-u16-nfkd.c: Likewise.
10280         * tests/uninorm/test-u16-normcmp.c: Likewise.
10281         * tests/uninorm/test-u16-normcoll.c: Likewise.
10282         * tests/uninorm/test-u32-nfc.c: Likewise.
10283         * tests/uninorm/test-u32-nfd.c: Likewise.
10284         * tests/uninorm/test-u32-nfkc.c: Likewise.
10285         * tests/uninorm/test-u32-nfkd.c: Likewise.
10286         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10287         * tests/uninorm/test-u32-normcmp.c: Likewise.
10288         * tests/uninorm/test-u32-normcoll.c: Likewise.
10289         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10290         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10291         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10292         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10293         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10294         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10295         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10296         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10297         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10298         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10299         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10300         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10301         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10302         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10303         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10304         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10311         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10312         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10313         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10314         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10315         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10316         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10317         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10318         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10319         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10320         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10321         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10322         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10323         * tests/uniwidth/test-u8-width.c: Likewise.
10324         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10325         * tests/uniwidth/test-u16-width.c: Likewise.
10326         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10327         * tests/uniwidth/test-u32-width.c: Likewise.
10328         * tests/uniwidth/test-uc_width.c: Likewise.
10329         * tests/uniwidth/test-uc_width2.c: Likewise.
10330         * modules/acl-tests (Files): Add tests/macros.h.
10331         * modules/areadlink-tests (Files): Likewise.
10332         * modules/areadlink-with-size-tests (Files): Likewise.
10333         * modules/areadlinkat-tests (Files): Likewise.
10334         * modules/areadlinkat-with-size-tests (Files): Likewise.
10335         * modules/argmatch-tests (Files): Likewise.
10336         * modules/argv-iter-tests (Files): Likewise.
10337         * modules/array-list-tests (Files): Likewise.
10338         * modules/array-mergesort-tests (Files): Likewise.
10339         * modules/array-oset-tests (Files): Likewise.
10340         * modules/avltree-list-tests (Files): Likewise.
10341         * modules/avltree-oset-tests (Files): Likewise.
10342         * modules/avltreehash-list-tests (Files): Likewise.
10343         * modules/base64-tests (Files): Likewise.
10344         * modules/binary-io-tests (Files): Likewise.
10345         * modules/bitrotate-tests (Files): Likewise.
10346         * modules/btowc-tests (Files): Likewise.
10347         * modules/byteswap-tests (Files): Likewise.
10348         * modules/c-ctype-tests (Files): Likewise.
10349         * modules/c-stack-tests (Files): Likewise.
10350         * modules/c-strcase-tests (Files): Likewise.
10351         * modules/c-strcasestr-tests (Files): Likewise.
10352         * modules/c-strstr-tests (Files): Likewise.
10353         * modules/canonicalize-lgpl-tests (Files): Likewise.
10354         * modules/canonicalize-tests (Files): Likewise.
10355         * modules/carray-list-tests (Files): Likewise.
10356         * modules/ceilf-tests (Files): Likewise.
10357         * modules/ceill-tests (Files): Likewise.
10358         * modules/chown-tests (Files): Likewise.
10359         * modules/cloexec-tests (Files): Likewise.
10360         * modules/copy-file-tests (Files): Likewise.
10361         * modules/count-one-bits-tests (Files): Likewise.
10362         * modules/dprintf-posix-tests (Files): Likewise.
10363         * modules/dup2-tests (Files): Likewise.
10364         * modules/dup3-tests (Files): Likewise.
10365         * modules/duplocale-tests (Files): Likewise.
10366         * modules/fbufmode-tests (Files): Likewise.
10367         * modules/fchdir-tests (Files): Likewise.
10368         * modules/fcntl-safer-tests (Files): Likewise.
10369         * modules/fcntl-tests (Files): Likewise.
10370         * modules/fdopendir-tests (Files): Likewise.
10371         * modules/fdutimensat-tests (Files): Likewise.
10372         * modules/fflush-tests (Files): Likewise.
10373         * modules/filevercmp-tests (Files): Likewise.
10374         * modules/flock-tests (Files): Likewise.
10375         * modules/floorf-tests (Files): Likewise.
10376         * modules/floorl-tests (Files): Likewise.
10377         * modules/fnmatch-tests (Files): Likewise.
10378         * modules/fopen-safer-tests (Files): Likewise.
10379         * modules/fopen-tests (Files): Likewise.
10380         * modules/fpending-tests (Files): Likewise.
10381         * modules/fprintf-posix-tests (Files): Likewise.
10382         * modules/fpurge-tests (Files): Likewise.
10383         * modules/freadable-tests (Files): Likewise.
10384         * modules/freadahead-tests (Files): Likewise.
10385         * modules/freading-tests (Files): Likewise.
10386         * modules/freadptr-tests (Files): Likewise.
10387         * modules/freadseek-tests (Files): Likewise.
10388         * modules/freopen-tests (Files): Likewise.
10389         * modules/frexp-nolibm-tests (Files): Likewise.
10390         * modules/frexp-tests (Files): Likewise.
10391         * modules/frexpl-nolibm-tests (Files): Likewise.
10392         * modules/frexpl-tests (Files): Likewise.
10393         * modules/fseek-tests (Files): Likewise.
10394         * modules/fseeko-tests (Files): Likewise.
10395         * modules/fstrcmp-tests (Files): Likewise.
10396         * modules/fsync-tests (Files): Likewise.
10397         * modules/ftell-tests (Files): Likewise.
10398         * modules/ftello-tests (Files): Likewise.
10399         * modules/func-tests (Files): Likewise.
10400         * modules/futimens-tests (Files): Likewise.
10401         * modules/fwritable-tests (Files): Likewise.
10402         * modules/fwriting-tests (Files): Likewise.
10403         * modules/getcwd-tests (Files): Likewise.
10404         * modules/getdate-tests (Files): Likewise.
10405         * modules/getdelim-tests (Files): Likewise.
10406         * modules/getdtablesize-tests (Files): Likewise.
10407         * modules/getgroups-tests (Files): Likewise.
10408         * modules/getline-tests (Files): Likewise.
10409         * modules/getndelim2-tests (Files): Likewise.
10410         * modules/glob-tests (Files): Likewise.
10411         * modules/hash-tests (Files): Likewise.
10412         * modules/i-ring-tests (Files): Likewise.
10413         * modules/iconv-tests (Files): Likewise.
10414         * modules/iconv_open-utf-tests (Files): Likewise.
10415         * modules/idpriv-drop-tests (Files): Likewise.
10416         * modules/idpriv-droptemp-tests (Files): Likewise.
10417         * modules/inet_ntop-tests (Files): Likewise.
10418         * modules/inet_pton-tests (Files): Likewise.
10419         * modules/isblank-tests (Files): Likewise.
10420         * modules/isfinite-tests (Files): Likewise.
10421         * modules/isinf-tests (Files): Likewise.
10422         * modules/isnan-tests (Files): Likewise.
10423         * modules/isnand-nolibm-tests (Files): Likewise.
10424         * modules/isnand-tests (Files): Likewise.
10425         * modules/isnanf-nolibm-tests (Files): Likewise.
10426         * modules/isnanf-tests (Files): Likewise.
10427         * modules/isnanl-nolibm-tests (Files): Likewise.
10428         * modules/isnanl-tests (Files): Likewise.
10429         * modules/lchown-tests (Files): Likewise.
10430         * modules/ldexpl-tests (Files): Likewise.
10431         * modules/link-tests (Files): Likewise.
10432         * modules/linkat-tests (Files): Likewise.
10433         * modules/linked-list-tests (Files): Likewise.
10434         * modules/linkedhash-list-tests (Files): Likewise.
10435         * modules/localename-tests (Files): Likewise.
10436         * modules/lseek-tests (Files): Likewise.
10437         * modules/lstat-tests (Files): Likewise.
10438         * modules/mbmemcasecmp-tests (Files): Likewise.
10439         * modules/mbmemcasecoll-tests (Files): Likewise.
10440         * modules/mbrtowc-tests (Files): Likewise.
10441         * modules/mbscasecmp-tests (Files): Likewise.
10442         * modules/mbscasestr-tests (Files): Likewise.
10443         * modules/mbschr-tests (Files): Likewise.
10444         * modules/mbscspn-tests (Files): Likewise.
10445         * modules/mbsinit-tests (Files): Likewise.
10446         * modules/mbsncasecmp-tests (Files): Likewise.
10447         * modules/mbsnrtowcs-tests (Files): Likewise.
10448         * modules/mbspbrk-tests (Files): Likewise.
10449         * modules/mbspcasecmp-tests (Files): Likewise.
10450         * modules/mbsrchr-tests (Files): Likewise.
10451         * modules/mbsrtowcs-tests (Files): Likewise.
10452         * modules/mbsspn-tests (Files): Likewise.
10453         * modules/mbsstr-tests (Files): Likewise.
10454         * modules/memchr-tests (Files): Likewise.
10455         * modules/memchr2-tests (Files): Likewise.
10456         * modules/memcmp-tests (Files): Likewise.
10457         * modules/memmem-tests (Files): Likewise.
10458         * modules/memrchr-tests (Files): Likewise.
10459         * modules/mkdir-tests (Files): Likewise.
10460         * modules/mkfifo-tests (Files): Likewise.
10461         * modules/mkfifoat-tests (Files): Likewise.
10462         * modules/mknod-tests (Files): Likewise.
10463         * modules/nanosleep-tests (Files): Likewise.
10464         * modules/nl_langinfo-tests (Files): Likewise.
10465         * modules/obstack-printf-tests (Files): Likewise.
10466         * modules/open-tests (Files): Likewise.
10467         * modules/openat-tests (Files): Likewise.
10468         * modules/pipe-filter-gi-tests (Files): Likewise.
10469         * modules/pipe-filter-ii-tests (Files): Likewise.
10470         * modules/pipe2-tests (Files): Likewise.
10471         * modules/popen-safer-tests (Files): Likewise.
10472         * modules/popen-tests (Files): Likewise.
10473         * modules/posixtm-tests (Files): Likewise.
10474         * modules/pread-tests (Files): Likewise.
10475         * modules/printf-frexp-tests (Files): Likewise.
10476         * modules/printf-frexpl-tests (Files): Likewise.
10477         * modules/printf-posix-tests (Files): Likewise.
10478         * modules/priv-set-tests (Files): Likewise.
10479         * modules/quotearg-tests (Files): Likewise.
10480         * modules/random_r-tests (Files): Likewise.
10481         * modules/rawmemchr-tests (Files): Likewise.
10482         * modules/rbtree-list-tests (Files): Likewise.
10483         * modules/rbtree-oset-tests (Files): Likewise.
10484         * modules/rbtreehash-list-tests (Files): Likewise.
10485         * modules/readlink-tests (Files): Likewise.
10486         * modules/remove-tests (Files): Likewise.
10487         * modules/rename-tests (Files): Likewise.
10488         * modules/renameat-tests (Files): Likewise.
10489         * modules/rmdir-tests (Files): Likewise.
10490         * modules/round-tests (Files): Likewise.
10491         * modules/roundf-tests (Files): Likewise.
10492         * modules/roundl-tests (Files): Likewise.
10493         * modules/safe-alloc-tests (Files): Likewise.
10494         * modules/setenv-tests (Files): Likewise.
10495         * modules/sigaction-tests (Files): Likewise.
10496         * modules/signbit-tests (Files): Likewise.
10497         * modules/sleep-tests (Files): Likewise.
10498         * modules/snprintf-posix-tests (Files): Likewise.
10499         * modules/snprintf-tests (Files): Likewise.
10500         * modules/sprintf-posix-tests (Files): Likewise.
10501         * modules/stat-tests (Files): Likewise.
10502         * modules/stat-time-tests (Files): Likewise.
10503         * modules/strcasestr-tests (Files): Likewise.
10504         * modules/strchrnul-tests (Files): Likewise.
10505         * modules/strerror-tests (Files): Likewise.
10506         * modules/striconv-tests (Files): Likewise.
10507         * modules/striconveh-tests (Files): Likewise.
10508         * modules/striconveha-tests (Files): Likewise.
10509         * modules/strsignal-tests (Files): Likewise.
10510         * modules/strstr-tests (Files): Likewise.
10511         * modules/strtod-tests (Files): Likewise.
10512         * modules/strverscmp-tests (Files): Likewise.
10513         * modules/symlink-tests (Files): Likewise.
10514         * modules/symlinkat-tests (Files): Likewise.
10515         * modules/trunc-tests (Files): Likewise.
10516         * modules/truncf-tests (Files): Likewise.
10517         * modules/truncl-tests (Files): Likewise.
10518         * modules/uname-tests (Files): Likewise.
10519         * modules/unicase/cased-tests (Files): Likewise.
10520         * modules/unicase/ignorable-tests (Files): Likewise.
10521         * modules/unicase/locale-language-tests (Files): Likewise.
10522         * modules/unicase/tolower-tests (Files): Likewise.
10523         * modules/unicase/totitle-tests (Files): Likewise.
10524         * modules/unicase/toupper-tests (Files): Likewise.
10525         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10526         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10527         * modules/unicase/u8-casefold-tests (Files): Likewise.
10528         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10529         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10530         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10531         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10532         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10533         * modules/unicase/u8-tolower-tests (Files): Likewise.
10534         * modules/unicase/u8-totitle-tests (Files): Likewise.
10535         * modules/unicase/u8-toupper-tests (Files): Likewise.
10536         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10537         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10538         * modules/unicase/u16-casefold-tests (Files): Likewise.
10539         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10540         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10541         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10542         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10543         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10544         * modules/unicase/u16-tolower-tests (Files): Likewise.
10545         * modules/unicase/u16-totitle-tests (Files): Likewise.
10546         * modules/unicase/u16-toupper-tests (Files): Likewise.
10547         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10548         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10549         * modules/unicase/u32-casefold-tests (Files): Likewise.
10550         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10551         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10552         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10553         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10554         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10555         * modules/unicase/u32-tolower-tests (Files): Likewise.
10556         * modules/unicase/u32-totitle-tests (Files): Likewise.
10557         * modules/unicase/u32-toupper-tests (Files): Likewise.
10558         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10559         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10560         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10561         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10562         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10563         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10564         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10565         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10566         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10567         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10568         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10569         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10570         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10571         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10572         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10573         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10574         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10575         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10576         * modules/unictype/block-list-tests (Files): Likewise.
10577         * modules/unictype/block-of-tests (Files): Likewise.
10578         * modules/unictype/block-test-tests (Files): Likewise.
10579         * modules/unictype/category-C-tests (Files): Likewise.
10580         * modules/unictype/category-Cc-tests (Files): Likewise.
10581         * modules/unictype/category-Cf-tests (Files): Likewise.
10582         * modules/unictype/category-Cn-tests (Files): Likewise.
10583         * modules/unictype/category-Co-tests (Files): Likewise.
10584         * modules/unictype/category-Cs-tests (Files): Likewise.
10585         * modules/unictype/category-L-tests (Files): Likewise.
10586         * modules/unictype/category-Ll-tests (Files): Likewise.
10587         * modules/unictype/category-Lm-tests (Files): Likewise.
10588         * modules/unictype/category-Lo-tests (Files): Likewise.
10589         * modules/unictype/category-Lt-tests (Files): Likewise.
10590         * modules/unictype/category-Lu-tests (Files): Likewise.
10591         * modules/unictype/category-M-tests (Files): Likewise.
10592         * modules/unictype/category-Mc-tests (Files): Likewise.
10593         * modules/unictype/category-Me-tests (Files): Likewise.
10594         * modules/unictype/category-Mn-tests (Files): Likewise.
10595         * modules/unictype/category-N-tests (Files): Likewise.
10596         * modules/unictype/category-Nd-tests (Files): Likewise.
10597         * modules/unictype/category-Nl-tests (Files): Likewise.
10598         * modules/unictype/category-No-tests (Files): Likewise.
10599         * modules/unictype/category-P-tests (Files): Likewise.
10600         * modules/unictype/category-Pc-tests (Files): Likewise.
10601         * modules/unictype/category-Pd-tests (Files): Likewise.
10602         * modules/unictype/category-Pe-tests (Files): Likewise.
10603         * modules/unictype/category-Pf-tests (Files): Likewise.
10604         * modules/unictype/category-Pi-tests (Files): Likewise.
10605         * modules/unictype/category-Po-tests (Files): Likewise.
10606         * modules/unictype/category-Ps-tests (Files): Likewise.
10607         * modules/unictype/category-S-tests (Files): Likewise.
10608         * modules/unictype/category-Sc-tests (Files): Likewise.
10609         * modules/unictype/category-Sk-tests (Files): Likewise.
10610         * modules/unictype/category-Sm-tests (Files): Likewise.
10611         * modules/unictype/category-So-tests (Files): Likewise.
10612         * modules/unictype/category-Z-tests (Files): Likewise.
10613         * modules/unictype/category-Zl-tests (Files): Likewise.
10614         * modules/unictype/category-Zp-tests (Files): Likewise.
10615         * modules/unictype/category-Zs-tests (Files): Likewise.
10616         * modules/unictype/category-and-not-tests (Files): Likewise.
10617         * modules/unictype/category-and-tests (Files): Likewise.
10618         * modules/unictype/category-byname-tests (Files): Likewise.
10619         * modules/unictype/category-name-tests (Files): Likewise.
10620         * modules/unictype/category-none-tests (Files): Likewise.
10621         * modules/unictype/category-of-tests (Files): Likewise.
10622         * modules/unictype/category-or-tests (Files): Likewise.
10623         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10624         * modules/unictype/combining-class-tests (Files): Likewise.
10625         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10626         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10627         * modules/unictype/ctype-blank-tests (Files): Likewise.
10628         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10629         * modules/unictype/ctype-digit-tests (Files): Likewise.
10630         * modules/unictype/ctype-graph-tests (Files): Likewise.
10631         * modules/unictype/ctype-lower-tests (Files): Likewise.
10632         * modules/unictype/ctype-print-tests (Files): Likewise.
10633         * modules/unictype/ctype-punct-tests (Files): Likewise.
10634         * modules/unictype/ctype-space-tests (Files): Likewise.
10635         * modules/unictype/ctype-upper-tests (Files): Likewise.
10636         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10637         * modules/unictype/decimal-digit-tests (Files): Likewise.
10638         * modules/unictype/digit-tests (Files): Likewise.
10639         * modules/unictype/mirror-tests (Files): Likewise.
10640         * modules/unictype/numeric-tests (Files): Likewise.
10641         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10642         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10643         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10644         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10645         Likewise.
10646         * modules/unictype/property-bidi-block-separator-tests (Files):
10647         Likewise.
10648         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10649         Likewise.
10650         * modules/unictype/property-bidi-common-separator-tests (Files):
10651         Likewise.
10652         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10653         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10654         Likewise.
10655         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10656         Likewise.
10657         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10658         Likewise.
10659         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10660         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10661         Likewise.
10662         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10663         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10664         Likewise.
10665         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10666         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10667         * modules/unictype/property-bidi-segment-separator-tests (Files):
10668         Likewise.
10669         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10670         * modules/unictype/property-byname-tests (Files): Likewise.
10671         * modules/unictype/property-combining-tests (Files): Likewise.
10672         * modules/unictype/property-composite-tests (Files): Likewise.
10673         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10674         * modules/unictype/property-dash-tests (Files): Likewise.
10675         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10676         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10677         Likewise.
10678         * modules/unictype/property-deprecated-tests (Files): Likewise.
10679         * modules/unictype/property-diacritic-tests (Files): Likewise.
10680         * modules/unictype/property-extender-tests (Files): Likewise.
10681         * modules/unictype/property-format-control-tests (Files): Likewise.
10682         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10683         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10684         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10685         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10686         * modules/unictype/property-hyphen-tests (Files): Likewise.
10687         * modules/unictype/property-id-continue-tests (Files): Likewise.
10688         * modules/unictype/property-id-start-tests (Files): Likewise.
10689         * modules/unictype/property-ideographic-tests (Files): Likewise.
10690         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10691         * modules/unictype/property-ids-trinary-operator-tests (Files):
10692         Likewise.
10693         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10694         * modules/unictype/property-iso-control-tests (Files): Likewise.
10695         * modules/unictype/property-join-control-tests (Files): Likewise.
10696         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10697         * modules/unictype/property-line-separator-tests (Files): Likewise.
10698         * modules/unictype/property-logical-order-exception-tests (Files):
10699         Likewise.
10700         * modules/unictype/property-lowercase-tests (Files): Likewise.
10701         * modules/unictype/property-math-tests (Files): Likewise.
10702         * modules/unictype/property-non-break-tests (Files): Likewise.
10703         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10704         * modules/unictype/property-numeric-tests (Files): Likewise.
10705         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10706         * modules/unictype/property-other-default-ignorable-code-point-tests
10707         (Files): Likewise.
10708         * modules/unictype/property-other-grapheme-extend-tests (Files):
10709         Likewise.
10710         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10711         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10712         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10713         * modules/unictype/property-other-math-tests (Files): Likewise.
10714         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10715         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10716         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10717         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10718         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10719         * modules/unictype/property-private-use-tests (Files): Likewise.
10720         * modules/unictype/property-punctuation-tests (Files): Likewise.
10721         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10722         * modules/unictype/property-radical-tests (Files): Likewise.
10723         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10724         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10725         * modules/unictype/property-space-tests (Files): Likewise.
10726         * modules/unictype/property-terminal-punctuation-tests (Files):
10727         Likewise.
10728         * modules/unictype/property-test-tests (Files): Likewise.
10729         * modules/unictype/property-titlecase-tests (Files): Likewise.
10730         * modules/unictype/property-unassigned-code-value-tests (Files):
10731         Likewise.
10732         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10733         * modules/unictype/property-uppercase-tests (Files): Likewise.
10734         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10735         * modules/unictype/property-white-space-tests (Files): Likewise.
10736         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10737         * modules/unictype/property-xid-start-tests (Files): Likewise.
10738         * modules/unictype/property-zero-width-tests (Files): Likewise.
10739         * modules/unictype/scripts-tests (Files): Likewise.
10740         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10741         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10742         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10743         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10744         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10745         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10746         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10747         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10748         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10749         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10750         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10751         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10752         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10753         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10754         * modules/uninorm/composition-tests (Files): Likewise.
10755         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10756         * modules/uninorm/decomposition-tests (Files): Likewise.
10757         * modules/uninorm/filter-tests (Files): Likewise.
10758         * modules/uninorm/nfc-tests (Files): Likewise.
10759         * modules/uninorm/nfd-tests (Files): Likewise.
10760         * modules/uninorm/nfkc-tests (Files): Likewise.
10761         * modules/uninorm/nfkd-tests (Files): Likewise.
10762         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10763         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10764         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10765         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10766         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10767         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10768         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10769         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10770         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10771         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10772         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10773         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10774         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10775         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10776         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10777         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10778         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10779         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10780         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10781         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10782         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10783         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10784         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10785         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10786         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10787         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10788         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10789         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10790         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10791         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10792         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10793         * modules/uniwidth/u8-width-tests (Files): Likewise.
10794         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10795         * modules/uniwidth/u16-width-tests (Files): Likewise.
10796         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10797         * modules/uniwidth/u32-width-tests (Files): Likewise.
10798         * modules/uniwidth/width-tests (Files): Likewise.
10799         * modules/unlink-tests (Files): Likewise.
10800         * modules/unsetenv-tests (Files): Likewise.
10801         * modules/usleep-tests (Files): Likewise.
10802         * modules/utimens-tests (Files): Likewise.
10803         * modules/utimensat-tests (Files): Likewise.
10804         * modules/vasnprintf-posix-tests (Files): Likewise.
10805         * modules/vasnprintf-tests (Files): Likewise.
10806         * modules/vasprintf-posix-tests (Files): Likewise.
10807         * modules/vasprintf-tests (Files): Likewise.
10808         * modules/vdprintf-posix-tests (Files): Likewise.
10809         * modules/vfprintf-posix-tests (Files): Likewise.
10810         * modules/vprintf-posix-tests (Files): Likewise.
10811         * modules/vsnprintf-posix-tests (Files): Likewise.
10812         * modules/vsnprintf-tests (Files): Likewise.
10813         * modules/vsprintf-posix-tests (Files): Likewise.
10814         * modules/wcrtomb-tests (Files): Likewise.
10815         * modules/wcsnrtombs-tests (Files): Likewise.
10816         * modules/wcsrtombs-tests (Files): Likewise.
10817         * modules/wctype-tests (Files): Likewise.
10818         * modules/wcwidth-tests (Files): Likewise.
10819         * modules/xmemdup0-tests (Files): Likewise.
10820         * modules/xprintf-posix-tests (Files): Likewise.
10821         * modules/xvasprintf-tests (Files): Likewise.
10822
10823 2009-12-24  Eric Blake  <ebb9@byu.net>
10824
10825         test-nanosleep: fix typo
10826         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10827         patch.
10828         Reported by Bruno Haible.
10829
10830 2009-12-24  Bruno Haible  <bruno@clisp.org>
10831
10832         Reduce namespace pollution on glibc systems.
10833         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10834         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10835         systems.
10836         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10837         <getopt.h> on glibc systems.
10838         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10839         systems.
10840         * lib/fcntl.c: Include <unistd.h> here instead.
10841
10842 2009-12-24  Bruno Haible  <bruno@clisp.org>
10843
10844         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10845
10846 2009-12-24  Eric Blake  <ebb9@byu.net>
10847
10848         tests: add signature checks
10849         * tests/signature.h (SIGNATURE_CHECK): New file.
10850         * modules/atexit-tests (Files): Use it.
10851         * modules/btowc-tests (Files): Likewise.
10852         * modules/canonicalize-lgpl-tests (Files): Likewise.
10853         * modules/ceilf-tests (Files): Likewise.
10854         * modules/ceill-tests (Files): Likewise.
10855         * modules/chown-tests (Files): Likewise.
10856         * modules/dprintf-posix-tests (Files): Likewise.
10857         * modules/dup2-tests (Files): Likewise.
10858         * modules/dup3-tests (Files): Likewise.
10859         * modules/duplocale-tests (Files): Likewise.
10860         * modules/fchdir-tests (Files): Likewise.
10861         * modules/fcntl-tests (Files): Likewise.
10862         * modules/fdopendir-tests (Files): Likewise.
10863         * modules/fflush-tests (Files): Likewise.
10864         * modules/flock-tests (Files): Likewise.
10865         * modules/floorf-tests (Files): Likewise.
10866         * modules/floorl-tests (Files): Likewise.
10867         * modules/fnmatch-tests (Files): Likewise.
10868         * modules/fopen-tests (Files): Likewise.
10869         * modules/fprintf-posix-tests (Files): Likewise.
10870         * modules/freopen-tests (Files): Likewise.
10871         * modules/frexp-nolibm-tests (Files): Likewise.
10872         * modules/frexp-tests (Files): Likewise.
10873         * modules/frexpl-nolibm-tests (Files): Likewise.
10874         * modules/frexpl-tests (Files): Likewise.
10875         * modules/fseek-tests (Files): Likewise.
10876         * modules/fseeko-tests (Files): Likewise.
10877         * modules/fsync-tests (Files): Likewise.
10878         * modules/ftell-tests (Files): Likewise.
10879         * modules/ftello-tests (Files): Likewise.
10880         * modules/futimens-tests (Files): Likewise.
10881         * modules/getaddrinfo-tests (Files): Likewise.
10882         * modules/getcwd-tests (Files): Likewise.
10883         * modules/getdelim-tests (Files): Likewise.
10884         * modules/getdtablesize-tests (Files): Likewise.
10885         * modules/getgroups-tests (Files): Likewise.
10886         * modules/gethostname-tests (Files): Likewise.
10887         * modules/getline-tests (Files): Likewise.
10888         * modules/getopt-posix-tests (Files): Likewise.
10889         * modules/gettimeofday-tests (Files): Likewise.
10890         * modules/glob-tests (Files): Likewise.
10891         * modules/iconv-tests (Files): Likewise.
10892         * modules/inet_ntop-tests (Files): Likewise.
10893         * modules/inet_pton-tests (Files): Likewise.
10894         * modules/isblank-tests (Files): Likewise.
10895         * modules/lchown-tests (Files): Likewise.
10896         * modules/ldexpl-tests (Files): Likewise.
10897         * modules/link-tests (Files): Likewise.
10898         * modules/linkat-tests (Files): Likewise.
10899         * modules/lseek-tests (Files): Likewise.
10900         * modules/lstat-tests (Files): Likewise.
10901         * modules/mbrtowc-tests (Files): Likewise.
10902         * modules/mbsinit-tests (Files): Likewise.
10903         * modules/mbsnrtowcs-tests (Files): Likewise.
10904         * modules/mbsrtowcs-tests (Files): Likewise.
10905         * modules/memchr-tests (Files): Likewise.
10906         * modules/memcmp-tests (Files): Likewise.
10907         * modules/memmem-tests (Files): Likewise.
10908         * modules/memrchr-tests (Files): Likewise.
10909         * modules/mkdir-tests (Files): Likewise.
10910         * modules/mkfifo-tests (Files): Likewise.
10911         * modules/mkfifoat-tests (Files): Likewise.
10912         * modules/mknod-tests (Files): Likewise.
10913         * modules/nanosleep-tests (Files): Likewise.
10914         * modules/nl_langinfo-tests (Files): Likewise.
10915         * modules/obstack-printf-tests (Files): Likewise.
10916         * modules/open-tests (Files): Likewise.
10917         * modules/openat-tests (Files): Likewise.
10918         * modules/perror-tests (Files): Likewise.
10919         * modules/pipe2-tests (Files): Likewise.
10920         * modules/poll-tests (Files): Likewise.
10921         * modules/popen-tests (Files): Likewise.
10922         * modules/posix_spawn-tests (Files): Likewise.
10923         * modules/posix_spawnp-tests (Files): Likewise.
10924         * modules/pread-tests (Files): Likewise.
10925         * modules/printf-posix-tests (Files): Likewise.
10926         * modules/pty-tests (Files): Likewise.
10927         * modules/random_r-tests (Files): Likewise.
10928         * modules/rawmemchr-tests (Files): Likewise.
10929         * modules/readlink-tests (Files): Likewise.
10930         * modules/remove-tests (Files): Likewise.
10931         * modules/rename-tests (Files): Likewise.
10932         * modules/renameat-tests (Files): Likewise.
10933         * modules/rmdir-tests (Files): Likewise.
10934         * modules/round-tests (Files): Likewise.
10935         * modules/roundf-tests (Files): Likewise.
10936         * modules/roundl-tests (Files): Likewise.
10937         * modules/select-tests (Files): Likewise.
10938         * modules/setenv-tests (Files): Likewise.
10939         * modules/sigaction-tests (Files): Likewise.
10940         * modules/sleep-tests (Files): Likewise.
10941         * modules/snprintf-posix-tests (Files): Likewise.
10942         * modules/snprintf-tests (Files): Likewise.
10943         * modules/sprintf-posix-tests (Files): Likewise.
10944         * modules/stat-tests (Files): Likewise.
10945         * modules/strcasestr-tests (Files): Likewise.
10946         * modules/strchrnul-tests (Files): Likewise.
10947         * modules/strerror-tests (Files): Likewise.
10948         * modules/strsignal-tests (Files): Likewise.
10949         * modules/strstr-tests (Files): Likewise.
10950         * modules/strtod-tests (Files): Likewise.
10951         * modules/strverscmp-tests (Files): Likewise.
10952         * modules/symlink-tests (Files): Likewise.
10953         * modules/symlinkat-tests (Files): Likewise.
10954         * modules/times-tests (Files): Likewise.
10955         * modules/trunc-tests (Files): Likewise.
10956         * modules/truncf-tests (Files): Likewise.
10957         * modules/truncl-tests (Files): Likewise.
10958         * modules/tsearch-tests (Files): Likewise.
10959         * modules/uname-tests (Files): Likewise.
10960         * modules/unlink-tests (Files): Likewise.
10961         * modules/unsetenv-tests (Files): Likewise.
10962         * modules/usleep-tests (Files): Likewise.
10963         * modules/utimensat-tests (Files): Likewise.
10964         * modules/vasprintf-tests (Files): Likewise.
10965         * modules/vdprintf-posix-tests (Files): Likewise.
10966         * modules/vfprintf-posix-tests (Files): Likewise.
10967         * modules/vprintf-posix-tests (Files): Likewise.
10968         * modules/vsnprintf-posix-tests (Files): Likewise.
10969         * modules/vsnprintf-tests (Files): Likewise.
10970         * modules/vsprintf-posix-tests (Files): Likewise.
10971         * modules/wcrtomb-tests (Files): Likewise.
10972         * modules/wcsnrtombs-tests (Files): Likewise.
10973         * modules/wcsrtombs-tests (Files): Likewise.
10974         * modules/wcwidth-tests (Files): Likewise.
10975         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
10976         * tests/test-isinf.c (isinf): Likewise.
10977         * tests/test-isnan.c (isnan): Likewise.
10978         * tests/test-signbit.c (signbit): Likewise.
10979         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
10980         declaration, either as macro or with correct signature.
10981         (select): Ensure function under test is declared with correct
10982         signature in correct header.
10983         * tests/test-atexit.c (atexit): Likewise.
10984         * tests/test-btowc.c (btowc): Likewise.
10985         * tests/test-canonicalize-lgpl.c (realpath)
10986         (canonicalize_file_name): Likewise.
10987         * tests/test-ceilf1.c (ceilf): Likewise.
10988         * tests/test-ceill.c (ceill): Likewise.
10989         * tests/test-chown.c (chown): Likewise.
10990         * tests/test-dprintf-posix.c (dprintf): Likewise.
10991         * tests/test-dup2.c (dup2): Likewise.
10992         * tests/test-dup3.c (dup3): Likewise.
10993         * tests/test-duplocale.c (duplocale): Likewise.
10994         * tests/test-fchdir.c (fchdir): Likewise.
10995         * tests/test-fchownat.c (fchownat): Likewise.
10996         * tests/test-fcntl.c (fcntl): Likewise.
10997         * tests/test-fdopendir.c (fdopendir): Likewise.
10998         * tests/test-fflush.c (fflush): Likewise.
10999         * tests/test-flock.c (flock): Likewise.
11000         * tests/test-floorf1.c (floorf): Likewise.
11001         * tests/test-floorl.c (floorl): Likewise.
11002         * tests/test-fnmatch.c (fnmatch): Likewise.
11003         * tests/test-fopen.c (fopen): Likewise.
11004         * tests/test-fprintf-posix.c (fprintf): Likewise.
11005         * tests/test-freopen.c (freopen): Likewise.
11006         * tests/test-frexp.c (frexp): Likewise.
11007         * tests/test-frexpl.c (frexpl): Likewise.
11008         * tests/test-fseek.c (fseek): Likewise.
11009         * tests/test-fseeko.c (fseeko): Likewise.
11010         * tests/test-fstatat.c (fstatat): Likewise.
11011         * tests/test-fsync.c (fsync): Likewise.
11012         * tests/test-ftell.c (ftell): Likewise.
11013         * tests/test-ftello.c (ftello): Likewise.
11014         * tests/test-futimens.c (futimens): Likewise.
11015         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11016         (gai_strerror): Likewise.
11017         * tests/test-getcwd.c (getcwd): Likewise.
11018         * tests/test-getdelim.c (getdelim): Likewise.
11019         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11020         * tests/test-getgroups.c (getgroups): Likewise.
11021         * tests/test-gethostname.c (gethostname): Likewise.
11022         * tests/test-getline.c (getline): Likewise.
11023         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11024         Likewise.
11025         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11026         * tests/test-glob.c (glob, globfree): Likewise.
11027         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11028         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11029         * tests/test-inet_pton.c (inet_pton): Likewise.
11030         * tests/test-isblank.c (isblank): Likewise.
11031         * tests/test-lchown.c (lchown): Likewise.
11032         * tests/test-ldexpl.c (ldexpl): Likewise.
11033         * tests/test-link.c (link): Likewise.
11034         * tests/test-linkat.c (linkat): Likewise.
11035         * tests/test-lseek.c (lseek): Likewise.
11036         * tests/test-lstat.c (lstat): Likewise.
11037         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11038         * tests/test-mbsinit.c (mbsinit): Likewise.
11039         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11040         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11041         * tests/test-memchr.c (memchr): Likewise.
11042         * tests/test-memcmp.c (memcmp): Likewise.
11043         * tests/test-memmem.c (memmem): Likewise.
11044         * tests/test-memrchr.c (memrchr): Likewise.
11045         * tests/test-mkdir.c (mkdir): Likewise.
11046         * tests/test-mkdirat.c (mkdirat): Likewise.
11047         * tests/test-mkfifo.c (mkfifo): Likewise.
11048         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11049         * tests/test-mknod.c (mknod): Likewise.
11050         * tests/test-nanosleep.c (nanosleep): Likewise.
11051         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11052         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11053         Likewise.
11054         * tests/test-open.c (open): Likewise.
11055         * tests/test-openat.c (openat): Likewise.
11056         * tests/test-perror.c (perror): Likewise.
11057         * tests/test-pipe2.c (pipe2): Likewise.
11058         * tests/test-poll.c (poll): Likewise.
11059         * tests/test-popen.c (popen, pclose): Likewise.
11060         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11061         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11062         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11063         (posix_spawn_file_actions_destroy)
11064         (posix_spawn_file_actions_addclose)
11065         (posix_spawn_file_actions_addopen)
11066         (posix_spawn_file_actions_adddup2): Likewise.
11067         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11068         * tests/test-pread.c (pread): Likewise.
11069         * tests/test-printf-posix.c (printf): Likewise.
11070         * tests/test-pty.c (openpty, forkpty): Likewise.
11071         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11072         (random_r): Likewise.
11073         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11074         * tests/test-readlink.c (readlink): Likewise.
11075         * tests/test-remove.c (remove): Likewise.
11076         * tests/test-rename.c (rename): Likewise.
11077         * tests/test-renameat.c (renameat): Likewise.
11078         * tests/test-rmdir.c (rmdir): Likewise.
11079         * tests/test-round1.c (round): Likewise.
11080         * tests/test-roundf1.c (roundf): Likewise.
11081         * tests/test-roundl.c (roundl): Likewise.
11082         * tests/test-setenv.c (setenv): Likewise.
11083         * tests/test-sigaction.c (sigaction): Likewise.
11084         * tests/test-sleep.c (sleep): Likewise.
11085         * tests/test-snprintf.c (snprintf): Likewise.
11086         * tests/test-sprintf-posix.c (sprintf): Likewise.
11087         * tests/test-stat.c (stat): Likewise.
11088         * tests/test-stpncpy.c (stpncpy): Likewise.
11089         * tests/test-strcasestr.c (strcasestr): Likewise.
11090         * tests/test-strchrnul.c (strchrnul): Likewise.
11091         * tests/test-strerror.c (strerror): Likewise.
11092         * tests/test-strsignal.c (strsignal): Likewise.
11093         * tests/test-strstr.c (strstr): Likewise.
11094         * tests/test-strtod.c (strtod): Likewise.
11095         * tests/test-strverscmp.c (strverscmp): Likewise.
11096         * tests/test-symlink.c (symlink): Likewise.
11097         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11098         * tests/test-times.c (times): Likewise.
11099         * tests/test-trunc1.c (trunc): Likewise.
11100         * tests/test-truncf1.c (truncf): Likewise.
11101         * tests/test-truncl.c (truncl): Likewise.
11102         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11103         Likewise.
11104         * tests/test-uname.c (uname): Likewise.
11105         * tests/test-unlink.c (unlink): Likewise.
11106         * tests/test-unlinkat.c (unlinkat): Likewise.
11107         * tests/test-unsetenv.c (unsetenv): Likewise.
11108         * tests/test-usleep.c (usleep): Likewise.
11109         * tests/test-utimensat.c (utimensat): Likewise.
11110         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11111         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11112         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11113         * tests/test-vprintf-posix.c (vprintf): Likewise.
11114         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11115         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11116         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11117         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11118         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11119         * tests/test-wcwidth.c (wcwidth): Likewise.
11120
11121         build: pull in conditional headers during GNULIB_POSIXCHECK
11122         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11123         definitions from any conditionally-included headers.
11124         * lib/stdlib.in.h (includes): Likewise.
11125         * lib/unistd.in.h (includes): Likewise.
11126
11127 2009-12-24  Bruno Haible  <bruno@clisp.org>
11128
11129         * tests/test-argv-iter.c: Include header file being tested immediately
11130         after config.h.
11131         * tests/test-base64.c: Likewise.
11132         * tests/test-flock.c: Likewise.
11133         * tests/test-fsync.c: Likewise.
11134         * tests/test-getdate.c: Likewise.
11135         * tests/test-getndelim2.c: Likewise.
11136         * tests/test-isfinite.c: Likewise.
11137         * tests/test-isinf.c: Likewise.
11138         * tests/test-strerror.c: Likewise.
11139         * tests/test-strsignal.c: Likewise.
11140
11141 2009-12-23  Eric Blake  <ebb9@byu.net>
11142
11143         unistd: work around cygwin bug
11144         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11145         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11146         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11147
11148 2009-12-23  Bruno Haible  <bruno@clisp.org>
11149
11150         localename: More tests.
11151         * tests/test-localename.c (SIZEOF): New macro.
11152         (categories): New variable.
11153         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11154         test_locale_name_default): Add test w.r.t. thread locale.
11155         (test_locale_name_thread): New function.
11156         (main): Invoke it.
11157
11158         localename: Make aware of thread locale.
11159         * lib/localename.h (gl_locale_name_thread): New declaration.
11160         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11161         behaviour with respect to thread locale.
11162         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11163         <langinfo.h>, glthread/lock.h.
11164         (SIZE_BITS): New macro.
11165         (string_hash): New function.
11166         (struct hash_node): New type.
11167         (HASH_TABLE_SIZE): New macro.
11168         (struniq_hash_table, struniq_lock): New variables.
11169         (struniq): New function.
11170         (gl_locale_name_thread): New function.
11171         (gl_locale_name): Invoke it.
11172         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11173         * modules/localename (Depends-on): Add lock.
11174         Reported by Mike Gran <spk121@yahoo.com>.
11175
11176 2009-12-23  Eric Blake  <ebb9@byu.net>
11177
11178         va-args: new module
11179         * modules/va-args: New file.
11180         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11181         * MODULES.html.sh (Core language properties): Mention it.
11182
11183         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11184         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11185         named alias for __attribute__((__unused__)).
11186         * lib/chown.c: Update client.
11187         * lib/fchmodat.c: Likewise.
11188         * lib/fts.c: Likewise.
11189         * lib/getdate.y: Likewise.
11190         * lib/getgroups.c: Likewise.
11191         * lib/getopt.c: Likewise.
11192         * lib/getugroups.c: Likewise.
11193         * lib/mkdir.c: Likewise.
11194         * lib/mkfifo.c: Likewise.
11195         * lib/mkfifoat.c: Likewise.
11196         * lib/mknod.c: Likewise.
11197         * lib/mknodat.c: Likewise.
11198         * lib/readlink.c: Likewise.
11199         * lib/se-context.in.h: Likewise.
11200         * lib/se-selinux.in.h: Likewise.
11201         * lib/sockets.c: Likewise.
11202         * lib/symlink.c: Likewise.
11203         * lib/symlinkat.c: Likewise.
11204         * lib/unicodeio.c: Likewise.
11205         * lib/unistr.h: Likewise.
11206         * tests/test-areadlink.c: Likewise.
11207         * tests/test-areadlinkat.c: Likewise.
11208         * tests/test-filenamecat.c: Likewise.
11209         * tests/test-fseeko.c: Likewise.
11210         * tests/test-ftello.c: Likewise.
11211         * tests/test-getdate.c: Likewise.
11212         * tests/test-getgroups.c: Likewise.
11213         * tests/test-gethostname.c: Likewise.
11214         * tests/test-quotearg.c: Likewise.
11215         * tests/test-version-etc.c: Likewise.
11216         * tests/test-xalloc-die.c: Likewise.
11217         * tests/test-xfprintf-posix.c: Likewise.
11218         * tests/test-xprintf-posix.c: Likewise.
11219         * tests/test-xvasprintf.c: Likewise.
11220
11221         tests: avoid compiler warnings
11222         * tests/test-fcntl.c (main): Delete unused parameters.
11223         * tests/test-freopen-safer.c (main): Likewise.
11224         * tests/test-xalloc-die.c (main): Mark unused parameters.
11225         * tests/test-fseeko.c (main): Likewise.
11226         * tests/test-ftello.c (main): Likewise.
11227         * tests/test-nanosleep.c (main): Avoid declaration warning.
11228         * tests/test-sleep.c (main): Likewise.
11229         * tests/test-unsetenv.c (main): Silence warning about string
11230         literal.
11231         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11232
11233 2009-12-23  Bruno Haible  <bruno@clisp.org>
11234
11235         * tests/test-localename.c (test_locale_name): New function, extracted
11236         from main. Also test mixed situations.
11237         (test_locale_name_posix, test_locale_name_environ,
11238         test_locale_name_default): New functions.
11239         (main): Invoke them all.
11240         * modules/localename-tests (configure.ac): Test for newlocale.
11241
11242 2009-12-23  Bruno Haible  <bruno@clisp.org>
11243
11244         unistd: Ensure getcwd gets declared before being overridden.
11245         * lib/unistd.in.h: Conditionally include <io.h>.
11246
11247 2009-12-22  Bruno Haible  <bruno@clisp.org>
11248
11249         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11250         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11251         (gl_WCHAR_H): Invoke it.
11252         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11253         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11254         Reported by Karl Berry <karl@freefriends.org>.
11255
11256 2009-12-22  Eric Blake  <ebb9@byu.net>
11257
11258         math, unistd: avoid redundant includes
11259         * lib/math.in.h (isnan): No need to re-include <math.h>.
11260         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11261
11262         getsubopt: work around cygwin bug
11263         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11264         avoid conflicting with system getsubopt.
11265         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11266         bug.
11267
11268         getopt: synchronize from glibc
11269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11270         parameter order.  Adjust all callers.
11271         (_getopt_internal_r, main): Adjust quoting in error messages.
11272         Drop considerations for outdated POSIX 1003.2 error message.
11273         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11274         callers.
11275         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11276
11277         test-getopt: test stderr behavior
11278         * modules/getopt-posix-tests (Depends-on): Add dup2.
11279         * tests/test-getopt.c (ASSERT): Avoid stderr.
11280         (main): Move stderr to a temporary file.
11281         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11282         Instead, add parameter to inform caller if output occurred.
11283         (test_getopt): Adjust all existing tests to expect silence, and
11284         add new tests of leading ":".
11285         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11286         glibc shortcomings with leading "-:" or "+:" in optstring.
11287         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11288         Likewise.
11289         * doc/posix-functions/getopt.texi (getopt): Likewise.
11290
11291         test-getopt: enhance test
11292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11293         supports optind=0.
11294         * tests/test-getopt.c (OPTIND_MIN): Move...
11295         * tests/test-getopt.h (OPTIND_MIN): ...here.
11296         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11297         Require that optind=0 works, since modern BSD supports it in
11298         addition to optreset, and since coreutils expects it.
11299         (test_getopt_long_only): New test.
11300         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11301         glibc shortcomings with 'W;', and enforcement of optind=0.
11302         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11303         Likewise.
11304
11305 2009-12-21  Bruno Haible  <bruno@clisp.org>
11306
11307         localename: Improvements for MacOS X and Cygwin.
11308         * lib/localename.h (gl_locale_name_environ): New declaration.
11309         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11310         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11311         (gl_locale_name_posix): Invoke it.
11312         (gl_locale_name_default): Add comments. Use Windows native API also on
11313         Cygwin.
11314
11315 2009-12-21  Bruno Haible  <bruno@clisp.org>
11316
11317         Update list of Win32 locale ids.
11318         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11319         (LANG_SAMI): Renamed from LANG_SAAMI.
11320         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11321         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11322         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11323         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11324         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11325         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11326         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11327         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11328         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11329         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11330         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11331         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11332         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11333         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11334         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11335         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11336         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11337         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11338         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11339         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11340         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11341         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11342         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11343         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11344         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11345         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11346         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11347         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11348         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11349         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11350         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11351         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11352         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11353         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11354         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11355         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11356         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11357         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11358         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11359         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11360         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11361         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11362         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11363         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11364         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11365         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11366         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11367         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11368         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11369         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11370         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11371         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11372         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11373         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11374         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11375         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11376         Add more languages and countries for Sami, Sorbian. Add more countries
11377         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11378         for Pashto. Change country for Syriac, Tswana.
11379
11380 2009-12-21  Eric Blake  <ebb9@byu.net>
11381
11382         test-utimens: avoid spurious failure
11383         * tests/test-chown.h (nap): Factor...
11384         * tests/nap.h: ...into new file.
11385         * tests/test-lchown.h (nap): Avoid duplication.
11386         * tests/test-utimens-common.h (nap): Use shared implementation,
11387         necessary on file systems with 1-second resolution.
11388         * modules/chown-tests (Files): Include new file.
11389         * modules/fdutimensat-tests (Files): Likewise.
11390         * modules/futimens-tests (Files): Likewise.
11391         * modules/lchown-tests (Files): Likewise.
11392         * modules/openat-tests (Files): Likewise.
11393         * modules/utimens-tests (Files): Likewise.
11394         * modules/utimensat-tests (Files): Likewise.
11395
11396 2009-12-19  Eric Blake  <ebb9@byu.net>
11397
11398         futimens, utimensat: work around Linux bug
11399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11400         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11401         * lib/utimensat.c (rpl_utimensat): Work around it.
11402         * lib/futimens.c (rpl_futimens): Adjust comment.
11403
11404         utimens: work around Linux ctime bug
11405         * lib/utimens.c (detect_ctime_bug): New helper function.
11406         (update_timespec): Differentiate between workaround needed for
11407         this bug vs. what is needed for systems that lack utimensat.
11408         (fdutimens, lutimens): Work around bug.
11409
11410         utimens: check for ctime update
11411         * tests/test-utimens-common.h (check_ctime): Define.
11412         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11413         * tests/test-futimens.h (test_futimens): Likewise.
11414         * tests/test-lutimens.h (test_lutimens): Likewise.
11415         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11416         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11417
11418 2009-12-19  Bruno Haible  <bruno@clisp.org>
11419
11420         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11421         * tests/test-dprintf-posix2.sh: New file.
11422         * tests/test-dprintf-posix2.c: New file.
11423         * modules/dprintf-posix-tests (Files): Add them.
11424         (configure.ac): Check for getrlimit and setrlimit.
11425         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11426
11427 2009-12-19  Bruno Haible  <bruno@clisp.org>
11428
11429         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11430         * tests/test-fprintf-posix3.sh: New file.
11431         * tests/test-fprintf-posix3.c: New file.
11432         * modules/fprintf-posix-tests (Files): Add them.
11433         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11434
11435 2009-12-19  Eric Blake  <ebb9@byu.net>
11436
11437         dirfd: fix prototype
11438         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11439         * lib/dirfd.c (dirfd): Likewise.
11440
11441         canonicalize: reduce memory usage
11442         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11443         allocation to size.
11444         Reported by Solar Designer <solar@openwall.com>.
11445
11446 2009-12-19  Bruno Haible  <bruno@clisp.org>
11447
11448         New module attribute 'Applicability'.
11449         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11450         * gnulib-tool: New option --extract-applicability.
11451         (func_usage): Document it.
11452         (sed_extract_prog): Recognize it.
11453         (func_get_applicability): New function.
11454         (func_import): Generalize handling of 'link-warning' module.
11455         * modules/link-warning (Applicability): New section.
11456         * modules/arg-nonnull (Applicability): New section.
11457         Repoted by Simon Josefsson <simon@josefsson.org>.
11458
11459 2009-12-19  Bruno Haible  <bruno@clisp.org>
11460
11461         fflush: tweak
11462         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11463         * lib/fseeko.c (rpl_fseeko): Likewise.
11464
11465 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11466
11467         * lib/gl_list.h: Fix typo in comment.
11468
11469 2009-12-16  Eric Blake  <ebb9@byu.net>
11470
11471         fcntl: use to simplify other modules
11472         * modules/cloexec (Depends-on): Add fcntl.
11473         * modules/fchdir (Depends-on): Likewise.
11474         * modules/fd-safer-flag (Depends-on): Likewise.
11475         * modules/unistd-safer (Depends-on): Likewise.
11476         * modules/dup3 (configure.ac): Set module indicator.
11477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11478         missing.
11479         * lib/fchdir.c (_gl_register_dup): Fix comment.
11480         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11481         * lib/dup-safer.c (dup_safer): Likewise.
11482         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11483         * lib/dup3.c (dup3): Likewise.
11484         * tests/test-fchdir.c (main): Enhance test.
11485         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11486
11487         fcntl: port portions of fcntl to mingw
11488         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11489         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11490         replacement for mingw.
11491         * modules/fcntl (Description): Update.
11492         (Depends-on): Add dup2.
11493         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11494         * modules/fcntl-h (Makefile.am): Substitute it.
11495         * lib/fcntl.in.h (fcntl): Update declaration.
11496         (F_DUPFD, F_GETFD): New macros, when needed.
11497         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11498         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11499         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11500         we now guarantee.
11501
11502         fcntl: work around cygwin bug in F_DUPFD
11503         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11504         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11505         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11506         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11507         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11508
11509         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11510         * modules/fcntl (Files): List new files.
11511         (configure.ac): Run a test.
11512         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11513         * lib/fcntl.c (rpl_fcntl): Likewise.
11514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11515         (gl_FCNTL_H): Always replace fcntl.h.
11516         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11517         * lib/fcntl.in.h (fcntl): Declare replacement.
11518         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11519         needed, plus a witness.
11520         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11521         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11522         * tests/test-fcntl.c: New file.
11523         * modules/fcntl-tests: Likewise.
11524
11525         binary-io: avoid potential compilation warning
11526         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11527         directives.
11528
11529         fflush: avoid compilation error on NetBSD
11530         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11531         between off_t and fpos_t, since the latter is sometimes a struct.
11532         * lib/fseeko.c (rpl_fseeko): Likewise.
11533         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11534
11535 2009-12-15  Eric Blake  <ebb9@byu.net>
11536
11537         fcntl-h, stdio, sys_ioctl: fix declarations
11538         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11539         function must not take arguments.
11540         * lib/sys_ioctl.in.h (ioctl): Likewise.
11541         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11542         (open): Add a link warning.
11543
11544 2009-12-15  Jim Meyering  <meyering@redhat.com>
11545
11546         areadlink, areadlink-with-size: relax license to LGPLv2+
11547         * modules/areadlink (License): Relax to LGPLv2+.
11548         * modules/areadlink-with-size (License): Likewise.
11549
11550 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11551             Bruno Haible  <bruno@clisp.org>
11552
11553         *printf: Fix memory leak.
11554         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11555         * lib/vfprintf.c (vfprintf): Likewise.
11556         * lib/dprintf.c (dprintf): Likewise.
11557         * lib/vdprintf.c (vdprintf): Likewise.
11558
11559 2009-12-14  Eric Blake  <ebb9@byu.net>
11560
11561         accept4: adjust module dependencies
11562         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11563
11564         utimens: one more try at avoiding compiler warning
11565         * lib/utimens.c (lutimens): Lower scope of result.
11566
11567 2009-12-13  Bruno Haible  <bruno@clisp.org>
11568
11569         Move the malloc checking from module 'list' to new module 'xlist'.
11570         * modules/xlist: New file.
11571         * lib/gl_xlist.h: New file.
11572         * lib/gl_xlist.c: New file.
11573         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11574         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11575         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11576         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11577         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11578         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11579         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11580         gl_sortedlist_nx_add): New declarations.
11581         (struct gl_list_implementation): Rename and change methods accordingly.
11582         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11583         (gl_list_nx_create): Renamed from gl_list_create.
11584         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11585         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11586         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11587         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11588         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11589         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11590         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11591         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11592         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11593         gl_list_create_empty.
11594         (gl_list_nx_create): Renamed from gl_list_create.
11595         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11596         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11597         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11598         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11599         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11600         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11601         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11602         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11603         * lib/gl_array_list.c: Don't include xalloc.h.
11604         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11605         NULL upon out-of-memory.
11606         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11607         out-of-memory.
11608         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11609         Change return type to 'int'.
11610         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11611         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11612         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11613         upon out-of-memory.
11614         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11615         upon out-of-memory.
11616         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11617         upon out-of-memory.
11618         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11619         upon out-of-memory.
11620         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11621         out-of-memory.
11622         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11623         Update.
11624         (gl_array_list_implementation): Update.
11625         * lib/gl_carray_list.c: Don't include xalloc.h.
11626         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11627         Return NULL upon out-of-memory.
11628         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11629         out-of-memory.
11630         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11631         Change return type to 'int'.
11632         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11633         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11634         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11635         upon out-of-memory.
11636         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11637         upon out-of-memory.
11638         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11639         out-of-memory.
11640         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11641         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11642         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11643         Update.
11644         (gl_carray_list_implementation): Update.
11645         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11646         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11647         gl_linked_create_empty. Return NULL upon out-of-memory.
11648         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11649         out-of-memory.
11650         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11651         Change return type to 'int'. Return -1 upon out-of-memory.
11652         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11653         out-of-memory.
11654         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11655         upon out-of-memory.
11656         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11657         upon out-of-memory.
11658         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11659         NULL upon out-of-memory.
11660         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11661         upon out-of-memory.
11662         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11663         out-of-memory.
11664         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11665         Update.
11666         * lib/gl_linked_list.c: Don't include xalloc.h.
11667         (gl_linked_list_implementation): Update.
11668         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11669         (add_to_bucket): Change return type to 'int'.
11670         (gl_linkedhash_list_implementation): Update.
11671         * lib/gl_anytree_list1.h (free_subtree): New function.
11672         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11673         gl_tree_create_empty. Return NULL upon out-of-memory.
11674         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11675         Change return type to 'int'. Return -1 upon out-of-memory.
11676         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11677         out-of-memory.
11678         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11679         (gl_tree_remove_node): New function, moved here from
11680         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11681         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11682         Update.
11683         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11684         malloc, not xmalloc. Return NULL upon out-of-memory.
11685         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11686         out-of-memory.
11687         (gl_tree_remove_node_from_tree): New function, extracted from
11688         gl_tree_remove_node.
11689         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11690         upon out-of-memory.
11691         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11692         out-of-memory.
11693         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11694         upon out-of-memory.
11695         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11696         upon out-of-memory.
11697         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11698         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11699         not xmalloc. Return NULL upon out-of-memory.
11700         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11701         out-of-memory.
11702         (gl_tree_remove_node_from_tree): New function, extracted from
11703         gl_tree_remove_node.
11704         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11705         upon out-of-memory.
11706         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11707         out-of-memory.
11708         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11709         upon out-of-memory.
11710         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11711         upon out-of-memory.
11712         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11713         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11714         gl_anytree_list1.h before gl_anyavltree_list2.h.
11715         (gl_avltree_list_implementation): Update.
11716         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11717         gl_anytree_list1.h before gl_anyavltree_list2.h.
11718         (gl_rbtree_list_implementation): Update.
11719         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11720         Change return type to 'int'. Return -1 upon out-of-memory. Use
11721         __builtin_expect.
11722         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11723         (gl_avltreehash_list_implementation): Update.
11724         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11725         (gl_rbtreehash_list_implementation): Update.
11726         * modules/array-list (Depends-on): Remove xalloc.
11727         * modules/carray-list (Depends-on): Likewise.
11728         * modules/linked-list (Depends-on): Likewise.
11729         * modules/linkedhash-list (Depends-on): Likewise.
11730         * modules/avltree-list (Depends-on): Likewise.
11731         * modules/rbtree-list (Depends-on): Likewise.
11732         * modules/avltreehash-list (Depends-on): Likewise.
11733         * modules/rbtreehash-list (Depends-on): Likewise.
11734
11735         * modules/xsublist: New file.
11736         * lib/gl_xsublist.h: New file.
11737         * lib/gl_xsublist.c: New file.
11738         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11739         (gl_sublist_nx_create): New declaration.
11740         * lib/gl_sublist.c: Don't include xalloc.h.
11741         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11742         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11743         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11744         Change return type to 'int'. Return -1 upon out-of-memory.
11745         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11746         upon out-of-memory.
11747         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11748         NULL upon out-of-memory.
11749         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11750         upon out-of-memory.
11751         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11752         NULL upon out-of-memory.
11753         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11754         NULL upon out-of-memory.
11755         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11756         upon out-of-memory.
11757         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11758         (gl_sublist_list_implementation): Update.
11759         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11760         upon out-of-memory.
11761         * modules/sublist (Depends-on): Remove xalloc.
11762
11763         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11764         * tests/test-carray_list.c: Likewise.
11765         * tests/test-linked_list.c: Likewise.
11766         * tests/test-linkedhash_list.c: Likewise.
11767         * tests/test-avltree_list.c: Likewise.
11768         * tests/test-rbtree_list.c: Likewise.
11769         * tests/test-avltreehash_list.c: Likewise.
11770         * tests/test-rbtreehash_list.c: Likewise.
11771         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11772         * modules/carray-list-tests (Makefile.am): Likewise.
11773         * modules/linked-list-tests (Makefile.am): Likewise.
11774         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11775         * modules/avltree-list-tests (Makefile.am): Likewise.
11776         * modules/rbtree-list-tests (Makefile.am): Likewise.
11777         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11778         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11779
11780         * NEWS: Mention the changes.
11781
11782         * lib/clean-temp.c: Include gl_xlist.h.
11783         * modules/clean-temp (Depends-on): Add xlist.
11784
11785         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11786         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11787
11788         * tests/test-array_oset.c: Include gl_xlist.h.
11789         * modules/array-oset-tests (Depends-on): Add xlist.
11790
11791         Reported by José E. Marchesi <jemarch@gnu.org>.
11792
11793 2009-12-13  Bruno Haible  <bruno@clisp.org>
11794
11795         Move the malloc checking from module 'oset' to new module 'xoset'.
11796         * modules/xoset: New file.
11797         * lib/gl_xoset.h: New file.
11798         * lib/gl_xoset.c: New file.
11799         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11800         declarations.
11801         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11802         (struct gl_oset_implementation): Rename and change methods accordingly.
11803         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11804         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11805         'int'. Mark as __warn_unused_result__.
11806         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11807         gl_oset_create_empty.
11808         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11809         'int'.
11810         * lib/gl_array_oset.c: Don't include xalloc.h.
11811         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11812         malloc, not xmalloc.
11813         (grow): Change return type to 'int'. Don't call xalloc_die.
11814         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11815         to 'int'.
11816         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11817         'int'.
11818         (gl_array_oset_implementation): Update.
11819         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11820         gl_tree_create_empty.
11821         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11822         'int'.
11823         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11824         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11825         xmalloc.
11826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11827         not xmalloc.
11828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11829         xmalloc.
11830         (gl_avltree_oset_implementation): Update.
11831         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11832         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11833         xmalloc.
11834         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11835         not xmalloc.
11836         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11837         xmalloc.
11838         (gl_rbtree_oset_implementation): Update.
11839         * modules/array-oset (Depends-on): Remove xalloc.
11840         * modules/avltree-oset (Depends-on): Likewise.
11841         * modules/rbtree-oset (Depends-on): Likewise.
11842         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11843         * tests/test-avltree_oset.c: Likewise.
11844         * tests/test-rbtree_oset.c: Likewise.
11845         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11846         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11847         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11848         * NEWS: Mention the change.
11849
11850 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11851
11852         maint.mk: allow a project to override release-prep commands
11853         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11854         commands into a new rule.
11855         (release-prep): New rule.
11856         (release-prep-hook): New overridable variable.
11857
11858 2009-12-13  Bruno Haible  <bruno@clisp.org>
11859
11860         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11861
11862 2009-12-13  Jim Meyering  <meyering@redhat.com>
11863
11864         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11865         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11866
11867 2009-12-12  Bruno Haible  <bruno@clisp.org>
11868
11869         duplocale: Tweak.
11870         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11871
11872 2009-12-12  Karl Berry  <karl@gnu.org>
11873
11874         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11875
11876 2009-12-12  Bruno Haible  <bruno@clisp.org>
11877
11878         * m4/po.m4: Undo incorrect untabification.
11879
11880 2009-12-12  Bruno Haible  <bruno@clisp.org>
11881
11882         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11883         * modules/c-strtod (Depends-on): Add locale.
11884         * modules/c-strtold (Depends-on): Likewise.
11885
11886 2009-12-12  Bruno Haible  <bruno@clisp.org>
11887
11888         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11889
11890 2009-12-11  Eric Blake  <ebb9@byu.net>
11891
11892         setenv: relax requirement in light of POSIX ruling
11893         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11894         not NULL.
11895         * tests/test-setenv.c (main): Relax test.
11896         * tests/test-unsetenv.c (main): Likewise.
11897         * doc/posix-functions/setenv.texi (setenv): Document this.
11898         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11899
11900 2009-12-11  Bruno Haible  <bruno@clisp.org>
11901
11902         New module 'fd-safer-flag'.
11903         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11904         * lib/dup-safer.c (dup_safer_flag): Remove function.
11905         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11906         * lib/fd-safer.c (fd_safer_flag): Remove function.
11907         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11908         * modules/cloexec (configure.ac): Drop indicator macro.
11909         * modules/fd-safer-flag: New file.
11910         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11911         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11912         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11913
11914 2009-12-11  Bruno Haible  <bruno@clisp.org>
11915
11916         Tests for module 'nl_langinfo'.
11917         * modules/nl_langinfo-tests: New file.
11918         * tests/test-nl_langinfo.sh: New file.
11919         * tests/test-nl_langinfo.c: New file.
11920
11921         New module 'nl_langinfo'.
11922         * lib/nl_langinfo.c: New file.
11923         * m4/nl_langinfo.m4: New file.
11924         * modules/nl_langinfo: New file.
11925         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
11926
11927 2009-12-11  Bruno Haible  <bruno@clisp.org>
11928
11929         Tests for module 'langinfo'.
11930         * modules/langinfo-tests: New file.
11931         * tests/test-langinfo.c: New file.
11932
11933         New module 'langinfo'.
11934         * lib/langinfo.in.h: New file.
11935         * m4/langinfo_h.m4: New file.
11936         * modules/langinfo: New file.
11937         * doc/posix-headers/langinfo.texi: Mention the new module.
11938
11939 2009-12-11  Bruno Haible  <bruno@clisp.org>
11940
11941         * lib/config.charset: Untabify.
11942
11943 2009-12-11  Bruno Haible  <bruno@clisp.org>
11944
11945         * modules/unistd-safer (configure.ac): Drop indicator macro.
11946
11947 2009-12-11  Bruno Haible  <bruno@clisp.org>
11948
11949         Move pipe2-safer code to its own file.
11950         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
11951         * lib/pipe-safer.c (pipe2_safer): Remove function.
11952         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
11953         (Makefile.am): Add it to lib_SOURCES.
11954
11955 2009-12-10  Bruno Haible  <bruno@clisp.org>
11956
11957         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
11958
11959 2009-12-10  Bruno Haible  <bruno@clisp.org>
11960
11961         Declare which arguments expect non-NULL values, for GCC and clang.
11962         * build-aux/arg-nonnull.h: New file.
11963         * modules/arg-nonnull: New file.
11964         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
11965         (inet_ntop, inet_pton): Use it.
11966         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
11967         (closedir, dirfd, opendir, scandir, alphasort): Use it.
11968         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
11969         (open, openat): Use it.
11970         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
11971         (fnmatch): Use it.
11972         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
11973         (getopt, getopt_long, getopt_long_only): Use it.
11974         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
11975         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
11976         Use it.
11977         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
11978         (iconv_open): Use it.
11979         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
11980         (strtoimax, strtoumax): Use it.
11981         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
11982         (duplocale): Use it.
11983         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
11984         (frexp, frexpl): Use it.
11985         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
11986         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
11987         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
11988         (tsearch, tfind, tdelete, twalk): Use it.
11989         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
11990         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11991         sigpending): Use it.
11992         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
11993         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11994         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11995         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11996         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11997         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11998         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11999         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12000         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12001         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12002         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12003         Use it.
12004         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12005         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12006         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12007         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12008         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12009         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12010         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12011         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12012         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12013         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12014         strtoull, unsetenv): Use it.
12015         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12016         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12017         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12018         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12019         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12020         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12021         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12022         (strcasecmp, strncasecmp): Use it.
12023         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12024         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12025         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12026         rpl_setsockopt): Use it.
12027         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12028         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12029         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12030         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12031         (gettimeofday): Use it.
12032         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12033         (times): Use it.
12034         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12035         (uname): Use it.
12036         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12037         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12038         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12039         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12040         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12041         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12042         unlinkat, write): Use it.
12043         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12044         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12045         * lib/argv-iter.h: Include arg-nonnull.h.
12046         (_ATTRIBUTE_NONNULL_): Remove macro.
12047         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12048         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12049         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12050         optimization.
12051         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12052         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12053         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12054         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12055         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12056         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12057         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12058         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12059         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12060         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12061         * modules/dirent (Depends-on): Add arg-nonnull.
12062         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12063         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12064         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12065         * modules/fnmatch (Depends-on): Add arg-nonnull.
12066         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12067         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12068         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12069         * modules/glob (Depends-on): Add arg-nonnull.
12070         (Makefile.am): Insert arg-nonnull.h into glob.h.
12071         * modules/iconv_open (Depends-on): Add arg-nonnull.
12072         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12073         * modules/inttypes (Depends-on): Add arg-nonnull.
12074         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12075         * modules/locale (Depends-on): Add arg-nonnull.
12076         (Makefile.am): Insert arg-nonnull.h into locale.h.
12077         * modules/math (Depends-on): Add arg-nonnull.
12078         (Makefile.am): Insert arg-nonnull.h into math.h.
12079         * modules/netdb (Depends-on): Add arg-nonnull.
12080         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12081         * modules/search (Depends-on): Add arg-nonnull.
12082         (Makefile.am): Insert arg-nonnull.h into search.h.
12083         * modules/signal (Depends-on): Add arg-nonnull.
12084         (Makefile.am): Insert arg-nonnull.h into signal.h.
12085         * modules/spawn (Depends-on): Add arg-nonnull.
12086         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12087         * modules/stdio (Depends-on): Add arg-nonnull.
12088         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12089         * modules/stdlib (Depends-on): Add arg-nonnull.
12090         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12091         * modules/string (Depends-on): Add arg-nonnull.
12092         (Makefile.am): Insert arg-nonnull.h into string.h.
12093         * modules/strings (Depends-on): Add arg-nonnull.
12094         (Makefile.am): Insert arg-nonnull.h into strings.h.
12095         * modules/sys_socket (Depends-on): Add arg-nonnull.
12096         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12097         * modules/sys_stat (Depends-on): Add arg-nonnull.
12098         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12099         * modules/sys_time (Depends-on): Add arg-nonnull.
12100         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12101         * modules/sys_times (Depends-on): Add arg-nonnull.
12102         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12103         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12104         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12105         * modules/time (Depends-on): Add arg-nonnull.
12106         (Makefile.am): Insert arg-nonnull.h into time.h.
12107         * modules/unistd (Depends-on): Add arg-nonnull.
12108         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12109         * modules/wchar (Depends-on): Add arg-nonnull.
12110         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12111         * modules/argv-iter (Depends-on): Add arg-nonnull.
12112         * tests/test-canonicalize.c (null_ptr): New function.
12113         (main): Use it.
12114         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12115         (main): Use it.
12116         * tests/test-memmem.c (null_ptr): New function.
12117         (main): Use it.
12118         Reported by Jim Meyering.
12119
12120 2009-12-10  Bruno Haible  <bruno@clisp.org>
12121
12122         Use spaces for indentation, not tabs.
12123         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12124         * m4/*.m4: Untabify.
12125         * build-aux/*.h: Untabify.
12126         * tests/**/*.[hc]: Untabify.
12127         * README: New section "Indent with spaces, not TABs", based on
12128         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12129         * NEWS: Mention the change.
12130
12131 2009-12-10  Bruno Haible  <bruno@clisp.org>
12132
12133         pty test: Fix link error.
12134         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12135         test_pty_LDADD.
12136
12137 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12138
12139         * modules/pty: New file.
12140         * modules/pty-tests: New file.
12141         * m4/pty.m4: New file.
12142         * tests/test-pty.c: New file.
12143         * doc/glibc-headers/pty.texi: Modified.
12144         * doc/glibc-functions/forkpty.texi: Modified.
12145         * doc/glibc-functions/openpty.texi: Modified.
12146
12147 2009-12-10  Bruno Haible  <bruno@clisp.org>
12148
12149         Avoid syntax error in C++ mode.
12150         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12151
12152 2009-12-10  Bruno Haible  <bruno@clisp.org>
12153
12154         Use sed with option -e.
12155         * gnulib-tool (func_version, func_emit_copyright_notice,
12156         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12157         option -e to sed.
12158         * modules/link-warning (Makefile.am): Likewise.
12159
12160 2009-12-10  Jim Meyering  <meyering@redhat.com>
12161
12162         mgetgroups: do not write bytes beyond end of malloc'd buffer
12163         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12164         username, we call getgroups with a one-element-shorter buffer,
12165         but still told it the length was original, max_n_groups.
12166
12167 2009-12-09  Eric Blake  <ebb9@byu.net>
12168
12169         cloexec: relax license
12170         * modules/cloexec (Maintainer): Add myself.
12171         (License): Use LGPL, not GPL.
12172
12173         link-warning: optimize generation
12174         * modules/link-warning (Makefile.am): Reduce process usage.
12175
12176 2009-12-09  Bruno Haible  <bruno@clisp.org>
12177
12178         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12179         workaround was added on 2009-11-17.
12180
12181 2009-12-09  Jim Meyering  <meyering@redhat.com>
12182             Bruno Haible  <bruno@clisp.org>
12183
12184         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12185         * modules/link-warning (Makefile.am): Make the comment-removing sed
12186         command more robust in the face of bootstrap-prepended comment lines.
12187
12188 2009-12-09  Bruno Haible  <bruno@clisp.org>
12189
12190         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12191         most one group.
12192
12193 2009-12-09  Simon Josefsson <simon@josefsson.org>
12194             Bruno Haible  <bruno@clisp.org>
12195
12196         * build-aux/link-warning.h: Add copyright notice.
12197         * modules/link-warning (Makefile.am): Generate link-warning.h from
12198         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12199         * NEWS: Mention change in link-warning module.
12200         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12201         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12202         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12203         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12204         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12205         * modules/math (Makefile.am): Add dependency to math.h.
12206         * modules/search (Makefile.am): Add dependency to search.h.
12207         * modules/signal (Makefile.am): Add dependency to signal.h.
12208         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12209         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12210         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12211         * modules/string (Makefile.am): Add dependency to string.h.
12212         * modules/strings (Makefile.am): Add dependency to strings.h.
12213         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12214         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12215         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12216         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12217         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12218         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12219         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12220         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12221         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12222
12223 2009-12-09  Bruno Haible  <bruno@clisp.org>
12224
12225         fchdir: Optimize away rpl_fstat when possible.
12226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12227         REPLACE_OPEN_DIRECTORY.
12228         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12229
12230 2009-12-09  Bruno Haible  <bruno@clisp.org>
12231
12232         * lib/fchdir.c: Update comment.
12233
12234 2009-12-09  Bruno Haible  <bruno@clisp.org>
12235
12236         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12237
12238 2009-12-08  Eric Blake  <ebb9@byu.net>
12239
12240         fchdir: avoid memory leak on re-registration.
12241         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12242
12243 2009-12-08  Jim Meyering  <meyering@redhat.com>
12244
12245         init.sh: avoid Solaris 10 /bin/sh portability problem
12246         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12247         sourced script:
12248           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12249           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12250           bar
12251         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12252         and two tests used that idiom.
12253         * tests/init.sh: Update suggested usage comments.
12254         (path_prepend_): New function, to be used in place
12255         of the --src-path=DIR option.
12256         (setup_): Move PATH-prepending code into path_prepend_.
12257         * tests/test-pread.sh: Adapt to new usage.
12258         * tests/test-xalloc-die.sh: Likewise.
12259
12260 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12261
12262         * doc/gnulib.texi (Glibc pty.h): Add.
12263         * doc/glibc-functions/forkpty.texi: Add.
12264         * doc/glibc-functions/openpty.texi: Add.
12265         Suggested by Bruno Haible.
12266
12267 2009-12-08  Eric Blake  <ebb9@byu.net>
12268
12269         fchdir: fix logic bugs
12270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12271         * tests/test-fchdir.c (main): Enhance test.
12272         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12273         is in use.
12274
12275         dup2: fix logic bugs
12276         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12277         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12278         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12279         exists.
12280         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12281
12282 2009-12-07  Eric Blake  <ebb9@byu.net>
12283
12284         unlink: fix m4 detection
12285         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12286
12287         unistd-safer: add unit test
12288         * modules/unistd-safer-tests: New file.
12289         * tests/test-dup-safer.c: Likewise.
12290         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12291         * tests/test-dup2.c (setmode): Likewise.
12292         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12293
12294         cloexec: preserve text vs. binary across dup_cloexec
12295         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12296         mode.
12297         * modules/dup2-tests (Depends-on): Add binary-io.
12298         * modules/cloexec-tests (Depends-on): Likewise.
12299         * tests/test-dup2.c (setmode, is_mode): New helpers.
12300         (main): Add tests that translation mode is preserved.
12301         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12302         Reported by Bruno Haible.
12303
12304         mgetgroups: reduce duplicate listings
12305         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12306         resulting array.
12307         * tests/test-chown.h (test_chown): Simplify client.
12308         * tests/test-lchown.h (test_lchown): Likewise.
12309
12310 2009-12-06  Bruno Haible  <bruno@clisp.org>
12311
12312         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12313         value.
12314
12315 2009-12-06  Bruno Haible  <bruno@clisp.org>
12316
12317         * lib/progname.c: Include stdio.h, stdlib.h.
12318         (set_program_name): Reject a NULL argument.
12319
12320 2009-12-05  Eric Blake  <ebb9@byu.net>
12321
12322         pipe2-safer: new module
12323         * modules/pipe2-safer: New file.
12324         * lib/unistd-safer.h (pipe2_safer): New prototype.
12325         * lib/unistd--.h (pipe2): New wrapper.
12326         * lib/pipe-safer.c (pipe2_safer): New function.
12327         * modules/pipe (Depends-on): Add pipe2-safer.
12328         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12329
12330         stdlib-safer: preserve cloexec flag for mkostemp[s]
12331         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12332         fd_safer_flag.
12333
12334         unistd-safer: allow preservation of cloexec status via flag
12335         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12336         prototypes.
12337         * lib/dup-safer.c (dup_safer_flag): New function.
12338         * lib/fd-safer.c (fd_safer_flag): Likewise.
12339         * modules/cloexec (configure.ac): Set witness.
12340
12341         test-dup2: enhance test
12342         * modules/dup2-tests (Depends-on): Add cloexec.
12343         * tests/test-dup2.c (main): Enhance test.
12344
12345         cloexec: add dup_cloexec
12346         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12347         header and comments.
12348         * lib/cloexec.c (set_cloexec_flag): Add comments.
12349         (dup_cloexec): New function, with mingw implementation borrowed
12350         from...
12351         * lib/w32spawn.h (dup_noinherit): ...here.
12352         * modules/execute (Depends-on): Add cloexec.
12353         * modules/pipe (Depends-on): Likewise.
12354         * modules/cloexec (Depends-on): Add dup2.
12355         * modules/cloexec-tests (Files): New file.
12356         * tests/test-cloexec.c: Likewise.
12357
12358         test-xalloc-die: fix test for mingw
12359         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12360         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12361         directory and .exe suffix off argv[0] output.
12362
12363         test-fseeko: fix test for mingw
12364         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12365         than undefining fseek, so test will pass on mingw.
12366
12367 2009-12-05  Bruno Haible  <bruno@clisp.org>
12368
12369         * lib/progname.h (set_program_name): Clarify specification.
12370         * lib/progname.c (set_program_name): Likewise.
12371         Reported by Jim Meyering.
12372
12373 2009-12-05  Jim Meyering  <meyering@redhat.com>
12374
12375         maint.mk: backslash-escape parens in default regexp
12376         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12377         backslash-escape the literal parentheses.
12378
12379         maint.mk: news-date-check: use grep -E
12380         * top/maint.mk (today): Define a Make variable, not a...
12381         (news-date-check): ...shell variable.
12382         (news-date-regexp): Use the Make variable.
12383         Use grep's -E option.  Change the failing diagnostic to mention
12384         the variable, $(news-date-regexp).
12385
12386 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12387
12388         maintainer-makefile: allow customization of NEWS entry format
12389         * top/maint.mk (news-date-regexp): New overridable variable.
12390         (news-date-check): Use it.
12391
12392 2009-12-04  Eric Blake  <ebb9@byu.net>
12393
12394         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12395         * lib/mgetgroups.h (xgetgroups): New prototype.
12396         * lib/mgetgroups.c (xgetgroups): New wrapper.
12397         (mgetgroups): Handle ENOSYS.
12398         * modules/mgetgroups (Depends-on): Add realloc.
12399         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12400
12401         mgetgroups: avoid argument promotion issues with -1
12402         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12403         for invalid gid_t.
12404         * tests/test-chown.h (getegid, test_chown): Likewise.
12405         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12406
12407 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12408
12409         exclude: Fix header file problems.
12410         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12411
12412 2009-12-01  Jim Meyering  <meyering@redhat.com>
12413
12414         fts: fts_open: do not let an empty string cause immediate failure
12415         This is required in support of GNU rm, for which the command
12416         "rm A '' B" must process and remove both A and B, in spite of
12417         the empty string argument.
12418         * lib/fts.c (fts_open): Do not let the presence of an empty string
12419         cause fts_open to fail immediately.  Most fts-using tools must be
12420         able to process all arguments, in order, and can be expected to
12421         diagnose such arguments themselves.
12422
12423 2009-11-30  Eric Blake  <ebb9@byu.net>
12424
12425         utimens: fix compilation error
12426         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12427         Declare variable at right scope.
12428
12429 2009-11-29  Jim Meyering  <meyering@redhat.com>
12430
12431         bootstrap: handle perl-5.11's changed --version output
12432         * build-aux/bootstrap (get_version): Handle perl separately,
12433         since perl-5.11's --version output is different.
12434
12435 2009-11-28  Jim Meyering  <meyering@redhat.com>
12436
12437         userspec: depend on the inttostr module, too
12438         * modules/userspec (Depends-on): Add inttostr.
12439
12440         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12441         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12442         number of MAXUID when it evaluates to (uid_t) -1.
12443         Likewise for group ID.  Reported by Matt McCutchen in
12444         <http://savannah.gnu.org/bugs/?28113>
12445
12446         userspec: reformat to use spaces, not TABs
12447         * lib/userspec.c: Expand TABs to spaces.
12448         Add Emacs' "indent-tabs-mode: nil" hint.
12449
12450 2009-11-27  Eric Blake  <ebb9@byu.net>
12451
12452         getopt-gnu: flush out another BSD bug
12453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12454         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12455         flush out BSD bug.
12456         * tests/test-getopt.h (test_getopt): End lists with NULL.
12457         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12458         (test_getopt_long_posix): Enhance test.
12459         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12460         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12461         getopt-gnu.
12462         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12463         Likewise.
12464
12465 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12466
12467         * modules/idpriv-droptemp-tests (Notice): Fix text.
12468
12469 2009-11-27  Jim Meyering  <meyering@redhat.com>
12470
12471         test-xalloc-die: avoid spurious failure due to libtool argv difference
12472         In a libtool-enabled project, this test would fail due to a difference
12473         in the emitted program name, e.g.,
12474         -test-xalloc-die: memory exhausted
12475         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12476         Use program to avoid that.
12477         * modules/xalloc-die-tests (Depends-on): Add progname.
12478         * tests/test-xalloc-die.c: Include progname.h".
12479         (program_name): Remove decl.
12480         (main): Call set_program_name.
12481         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12482
12483 2009-11-26  Richard Jones  <rjones@redhat.com>
12484
12485         w32sock: leave win32 error in place.
12486         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12487
12488 2009-11-26  Eric Blake  <ebb9@byu.net>
12489
12490         init.sh: suggest to use skip_ and fail_ functions in comments
12491         * tests/init.sh: Add a sentence.
12492
12493 2009-11-25  Bruno Haible  <bruno@clisp.org>
12494
12495         init.sh: add documentation in comments
12496         * tests/init.sh: Add some developer and user documentation.
12497
12498 2009-11-26  Jim Meyering  <meyering@redhat.com>
12499
12500         init.sh: accommodate even those who specify bogus srcdir manually
12501         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12502         configure-time tests to be sanitized, so that there is no need to
12503         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12504         (with no double quotes) suffices.  However, since tests may be
12505         invoked manually, and since you may explicitly set srcdir to the
12506         name of a directory containing spaces, do quote its uses here.
12507         * tests/test-pread.sh: Likewise.
12508         Suggested by Bruno Haible.
12509
12510         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12511         * tests/test-pread.sh: Write no data into the pipe, because
12512         test-pread actually reads none.  This avoids a diagnostic,
12513         "bash: echo: write error: Broken pipe", that arises in the unusual
12514         event something is ignoring SIGPIPE, and might be interpreted
12515         as some sort of failure.  Reported by Bruno Haible.
12516
12517 2009-11-25  Jim Meyering  <meyering@redhat.com>
12518
12519         test-pread: cover failure with ESPIPE and EINVAL
12520         * tests/test-pread.c (main): Test for failure, too.
12521         * tests/test-pread.sh: Invoke with stdin on a pipe.
12522         Suggested by Eric Blake.
12523
12524         pread: improvement and fix
12525         * modules/pread (Depends-on): Depend on lseek, for portability to
12526         e.g., mingw.  Suggested by Eric Blake.
12527         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12528
12529         unistd.in.h: correct declaration of pread
12530         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12531         Reported by Richard W.M. Jones.
12532
12533         test-pread.sh: distribute the test script
12534         * modules/pread-tests (Files): Include test-pread.sh.
12535
12536         test-pread.sh: clean up
12537         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12538         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12539         That is unnecessary, since it's always ".".
12540         Suggestion from Eric Blake.
12541
12542         test-pread.sh: make executable
12543         * tests/test-pread.sh: Set executable bit.
12544         Reported by Eric Blake.
12545
12546         correct typo in test-pread.sh
12547         * tests/test-pread.sh: Add #! line.
12548
12549         test pread
12550         * tests/test-pread.c: New file.
12551         * tests/test-pread.sh: Likewise.
12552         * modules/pread-tests: Likewise.
12553
12554         pread: new module
12555         * modules/pread: New file.
12556         * lib/unistd.in.h (pread): Define/declare.
12557         * lib/pread.c (pread): New file.
12558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12559         * modules/unistd (Makefile.am): Substitute witnesses.
12560         * doc/posix-functions/pread.texi (pread): Update.
12561         * MODULES.html.sh: Add pread.
12562
12563 2009-11-25  Jim Meyering  <meyering@redhat.com>
12564
12565         tests/init.sh: new file to be used via most *.sh tests
12566         * tests/init.sh: New file.
12567
12568 2009-11-25  Eric Blake  <ebb9@byu.net>
12569
12570         utimens: work around older Linux failure with symlinks
12571         * lib/utimens.c (lutimensat_works_really): New variable.
12572         (fdutimens, lutimens): Use it to manage kernels that support
12573         nanosecond times on files, but not on symlinks.
12574         Reported by Ondřej Vašík.
12575
12576         utimes: fix configure grammar
12577         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12578
12579 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12580
12581         regex: Fix fastmap for multibyte character ranges.
12582         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12583         characters when a multibyte character range is included.
12584
12585 2009-11-22  Andy Wingo  <wingo@pobox.com>
12586
12587         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12588         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12589
12590 2009-11-24  Bruno Haible  <bruno@clisp.org>
12591
12592         doc: Most *_l functions exist in MacOS X 10.5.
12593         * doc/posix-functions/duplocale.texi: Update platforms list.
12594         * doc/posix-functions/freelocale.texi: Likewise.
12595         * doc/posix-functions/newlocale.texi: Likewise.
12596         * doc/posix-functions/uselocale.texi: Likewise.
12597         * doc/posix-functions/isalnum_l.texi: Likewise.
12598         * doc/posix-functions/isalpha_l.texi: Likewise.
12599         * doc/posix-functions/isblank_l.texi: Likewise.
12600         * doc/posix-functions/iscntrl_l.texi: Likewise.
12601         * doc/posix-functions/isdigit_l.texi: Likewise.
12602         * doc/posix-functions/isgraph_l.texi: Likewise.
12603         * doc/posix-functions/islower_l.texi: Likewise.
12604         * doc/posix-functions/isprint_l.texi: Likewise.
12605         * doc/posix-functions/ispunct_l.texi: Likewise.
12606         * doc/posix-functions/isspace_l.texi: Likewise.
12607         * doc/posix-functions/isupper_l.texi: Likewise.
12608         * doc/posix-functions/iswalnum_l.texi: Likewise.
12609         * doc/posix-functions/iswalpha_l.texi: Likewise.
12610         * doc/posix-functions/iswblank_l.texi: Likewise.
12611         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12612         * doc/posix-functions/iswctype_l.texi: Likewise.
12613         * doc/posix-functions/iswdigit_l.texi: Likewise.
12614         * doc/posix-functions/iswgraph_l.texi: Likewise.
12615         * doc/posix-functions/iswlower_l.texi: Likewise.
12616         * doc/posix-functions/iswprint_l.texi: Likewise.
12617         * doc/posix-functions/iswpunct_l.texi: Likewise.
12618         * doc/posix-functions/iswspace_l.texi: Likewise.
12619         * doc/posix-functions/iswupper_l.texi: Likewise.
12620         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12621         * doc/posix-functions/isxdigit_l.texi: Likewise.
12622         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12623         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12624         * doc/posix-functions/strcoll_l.texi: Likewise.
12625         * doc/posix-functions/strfmon_l.texi: Likewise.
12626         * doc/posix-functions/strftime_l.texi: Likewise.
12627         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12628         * doc/posix-functions/strxfrm_l.texi: Likewise.
12629         * doc/posix-functions/tolower_l.texi: Likewise.
12630         * doc/posix-functions/toupper_l.texi: Likewise.
12631         * doc/posix-functions/towctrans_l.texi: Likewise.
12632         * doc/posix-functions/towlower_l.texi: Likewise.
12633         * doc/posix-functions/towupper_l.texi: Likewise.
12634         * doc/posix-functions/wcscoll_l.texi: Likewise.
12635         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12636         * doc/posix-functions/wctrans_l.texi: Likewise.
12637         * doc/posix-functions/wctype_l.texi: Likewise.
12638         * doc/glibc-functions/strptime_l.texi: Likewise.
12639         * doc/glibc-functions/strtod_l.texi: Likewise.
12640         * doc/glibc-functions/strtof_l.texi: Likewise.
12641         * doc/glibc-functions/strtol_l.texi: Likewise.
12642         * doc/glibc-functions/strtold_l.texi: Likewise.
12643         * doc/glibc-functions/strtoll_l.texi: Likewise.
12644         * doc/glibc-functions/strtoul_l.texi: Likewise.
12645         * doc/glibc-functions/strtoull_l.texi: Likewise.
12646         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12647         * doc/glibc-functions/wcstod_l.texi: Likewise.
12648         * doc/glibc-functions/wcstof_l.texi: Likewise.
12649         * doc/glibc-functions/wcstol_l.texi: Likewise.
12650         * doc/glibc-functions/wcstold_l.texi: Likewise.
12651         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12652         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12653         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12654
12655 2009-11-24  Bruno Haible  <bruno@clisp.org>
12656
12657         duplocale: Fix logic bug.
12658         * lib/duplocale.c: Don't include <langinfo.h>.
12659         (_NL_LOCALE_NAME): Remove macro.
12660         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12661         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12662
12663 2009-11-23  Jim Meyering  <meyering@redhat.com>
12664
12665         test-update-copyright: don't hard-code /usr/bin/perl
12666         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12667         perl to print the current year.  Gilles Espinasse reported that
12668         the replaced use of perl was hard-coded as /usr/bin/perl.
12669
12670 2009-11-23  Bruno Haible  <bruno@clisp.org>
12671
12672         duplocale: Add support for glibc 2.3.x.
12673         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12674
12675 2009-11-22  Bruno Haible  <bruno@clisp.org>
12676
12677         vasnprintf: Tiny optimization.
12678         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12679         MacOS X.
12680
12681 2009-11-22  Bruno Haible  <bruno@clisp.org>
12682
12683         Tests for module 'duplocale'.
12684         * modules/duplocale-tests: New file.
12685         * tests/test-duplocale.c: New file.
12686
12687         New module 'duplocale'.
12688         * m4/duplocale.m4: New file.
12689         * lib/locale.in.h (duplocale): New declaration.
12690         * lib/duplocale.c: New file.
12691         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12692         gl_LOCALE_H_DEFAULTS): New macros.
12693         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12694         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12695         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12696         REPLACE_DUPLOCALE.
12697         * modules/duplocale: New file.
12698         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12699
12700 2009-11-22  Bruno Haible  <bruno@clisp.org>
12701
12702         * modules/locale-tests (configure.ac): Test for newlocale function.
12703         * tests/test-locale.c: When the system has extended locale functions,
12704         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12705
12706         locale: Make locale_t available when possible.
12707         * lib/locale.in.h: Include <xlocale.h> when it exists.
12708         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12709         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12710         * modules/locale (Depends-on): Add extensions.
12711         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12712         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12713
12714 2009-11-22  Bruno Haible  <bruno@clisp.org>
12715
12716         Add comments.
12717         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12718         invocation.
12719         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12720         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12721         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12722
12723 2009-11-22  Bruno Haible  <bruno@clisp.org>
12724
12725         error: account for the possibility of freopen (stdout).
12726         * lib/error.c: Include <unistd.h>.
12727         (flush_stdout): New function, extracted from error and error_at_line.
12728         Determine stdout's fd dynamically.
12729         (error, error_at_line): Invoke flush_stdout.
12730         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12731         * modules/error (Depends-on): Add unistd.
12732
12733 2009-11-22  Bruno Haible  <bruno@clisp.org>
12734
12735         diffseq: Add comment.
12736         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12737
12738 2009-11-22  Jim Meyering  <meyering@redhat.com>
12739
12740         c-stack: avoid defining an unused static function
12741         * lib/c-stack.c (find_stack_direction): Do not define this function
12742         when it will not be used.
12743
12744         diffseq: avoid spurious gcc warnings
12745         * lib/diffseq.h (IF_LINT2): Define.
12746         (compareseq): Use it to initialize two members of "part".
12747         This avoids two used-uninitialized warnings.
12748
12749 2009-11-21  Jim Meyering  <meyering@redhat.com>
12750
12751         c-stack: avoid "ignoring return value of `write'" warning
12752         * lib/c-stack.c: Include "ignore-value.h".
12753         (die): Explicitly ignore each write return value.
12754         * modules/c-stack (Depends-on): Add ignore-value.
12755
12756 2009-11-21  Bruno Haible  <bruno@clisp.org>
12757
12758         diffseq: reduce scope of variable 'best'.
12759         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12760         variable, earlier used for two different purposes.
12761
12762 2009-11-21  Jim Meyering  <meyering@redhat.com>
12763
12764         diffseq: remove useless assignment to "best"
12765         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12766         assignment.  At that point "best" is already guaranteed to be zero.
12767
12768 2009-11-20  Eric Blake  <ebb9@byu.net>
12769
12770         build: mention ftp redirector in release announcements
12771         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12772         values that used to come from cfg.mk; mention FTP redirect URL.
12773         * build-aux/announce-gen: Mention the mirror list.
12774         Suggested by Karl Berry.
12775
12776         nanosleep: improve port to mingw
12777         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12779         LIB_NANOSLEEP, but only when needed.
12780         * modules/select (Link): Document LIBSOCKET.
12781         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12782         enough.
12783
12784         nanosleep: work around cygwin bug
12785         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12786         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12787         bug.
12788         (getnow): Delete, not needed.
12789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12790         LIB_CLOCK_GETTIME.
12791         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12792         clock-time, gettime.
12793         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12794         bug.
12795         * modules/nanosleep-tests: New test.
12796         * tests/test-nanosleep.c: New file.
12797
12798         sleep: work around cygwin bug
12799         * lib/sleep.c (rpl_sleep): Work around the bug.
12800         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12801         (gl_PREREQ_SLEEP): Delete unused macro.
12802         * modules/sleep (Depends-on): Add verify.
12803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12804         * modules/unistd (Makefile.am): Substitute witness.
12805         * lib/unistd.in.h (sleep): Update prototype.
12806         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12807         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12808         * modules/sleep-tests (Depends-on): Check for alarm.
12809
12810 2009-11-20  Jim Meyering  <meyering@redhat.com>
12811
12812         maint.mk: improve sc_prohibit_magic_number_exit
12813         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12814         so it does not match uses like System.exit(1).
12815         Add comments showing how to correct all offenders.
12816
12817 2009-11-19  Eric Blake  <ebb9@byu.net>
12818
12819         xalloc-die-tests: add missing library
12820         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12821
12822         test-xvasprintf: silence compiler warnings
12823         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12824         empty string from gcc.
12825
12826 2009-11-19  Jim Meyering  <meyering@redhat.com>
12827
12828         xfreopen: new module, from coreutils
12829         * modules/xfreopen: New module.
12830         * lib/xfreopen.c: New file.
12831         * lib/xfreopen.h: New file.
12832         * MODULES.html.sh (File stream based Input/Output"): Add it.
12833
12834 2009-11-19  Eric Blake  <ebb9@byu.net>
12835
12836         manywarnings: depend on warnings
12837         * modules/manywarnings (Depends-on): Add warnings.
12838
12839         build: avoid compiler warnings
12840         * lib/select.c (rpl_select): Delete unused variable.
12841         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12842
12843 2009-11-18  Eric Blake  <ebb9@byu.net>
12844
12845         tests: avoid false negative with --with-packager
12846         * tests/test-version-etc.sh: Discard packager information.
12847         * tests/test-argp-version-etc-1.sh: Likewise.
12848         Reported by Mike Frysinger.
12849
12850         utimens: fix regression on Solaris
12851         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12852         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12853         can only change fd timestamps via futimesat.  Instead, use an
12854         additional witness macro to avoid BSD bug.
12855         Reported by Jim Meyering.
12856
12857 2009-11-17  Eric Blake  <ebb9@byu.net>
12858
12859         usleep: use it to simplify tests
12860         * modules/stat-time-tests (Depends-on): Add usleep.
12861         (configure.ac): Drop usleep check.
12862         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12863         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12864         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12865         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12866         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12867         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12868         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12869         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12870         Likewise.
12871         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12872         * tests/test-lchown.h (nap): Likewise.
12873         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12874         * tests/test-stat-time.c (nap): Likewise.
12875         * tests/test-utimens-common.h (nap): Update comments.
12876
12877         usleep: new module
12878         * modules/usleep: New file.
12879         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12880         * lib/usleep.c (usleep): Likewise.
12881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12882         * modules/unistd (Makefile.am): Substitute witnesses.
12883         * lib/unistd.in.h (usleep): Add declaration.
12884         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12885         * MODULES.html.sh (Date and time): Likewise.
12886         * modules/usleep-tests (Depends-on): New test.
12887         * tests/test-usleep.c: New file.
12888
12889         chown: work around OpenBSD bug
12890         * lib/chown.c (rpl_chown): Work around the bug.
12891         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12892         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12893         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12894         * modules/chown (Depends-on): Add stdbool.
12895         * modules/lchown (Depends-on): Likewise.
12896         * doc/posix-functions/chown.texi (chown): Document the bug.
12897         * doc/posix-functions/lchown.texi (lchown): Likewise.
12898         * tests/test-lchown.h (test_chown): Relax test.
12899
12900         mkstemp: avoid conflict with C++ keyword template
12901         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12902         * lib/mkostemp.c (mkostemp): Likewise.
12903         * lib/mkostemps.c (mkostemps): Likewise.
12904         * lib/mkstemp.c (mkstemp): Likewise.
12905         * lib/mkstemps.c (mkstemps): Likewise.
12906
12907         xalloc-die-tests: optimize
12908         * tests/test-xalloc-die.sh: Reduce number of processes.
12909
12910 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12911
12912         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12913         patch from ludo@gnu.org (Ludovic Courtès).
12914
12915 2009-11-17  Jim Meyering  <meyering@redhat.com>
12916
12917         version-etc: use proper license string
12918         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12919         * modules/version-etc-fsf: Likewise.
12920
12921 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12922
12923         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
12924         printed to stdout.  Deal with EOL differences.
12925
12926 2009-11-17  Eric Blake  <ebb9@byu.net>
12927
12928         unsetenv: work around Solaris bug
12929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
12930         * lib/unsetenv.c (rpl_unsetenv): Work around it.
12931         Reported by Jim Meyering.
12932
12933         vasnprintf: avoid compiler warnings
12934         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
12935         variables.
12936         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
12937
12938 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12939
12940         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
12941         settings since xalloc-die is no longer the self test,
12942         xalloc-die.sh is.
12943
12944 2009-11-17  Jim Meyering  <meyering@redhat.com>
12945
12946         test-xalloc-die.sh: make the code agree with the commit log
12947         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
12948         at the end, just in case you happen to have a test-xalloc-die
12949         program in some other PATH directory.
12950
12951         test-xalloc-die.sh: fix a portability bug
12952         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
12953         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
12954         Otherwise, argv[0] (as often seen in diagnostics) would be too
12955         system-dependent, sometimes with, and sometimes without the leading "./".
12956
12957         version-etc-fsf: relax license to LGPLv3+
12958         * modules/version-etc-fsf (License): Relax license.
12959
12960 2009-11-16  Eric Blake  <ebb9@byu.net>
12961
12962         xalloc-die-tests: avoid printing null pointer
12963         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
12964         shell script.
12965         * tests/test-xalloc-die.c (program_name): Declare.
12966         * tests/test-xalloc-die.sh (tmpfiles): New file.
12967
12968         setenv, unsetenv: work around various bugs
12969         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
12970         (setenv) [HAVE_SETENV]: Work around bugs.
12971         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
12972         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
12973         for bugs.
12974         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
12975         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
12976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
12977         * modules/stdlib (Makefile.am): Update substitutions.
12978         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
12979         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
12980         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12981         * modules/setenv-tests: New test.
12982         * modules/unsetenv-tests: Likewise.
12983         * tests/test-setenv.c: New file.
12984         * tests/test-unsetenv.c: Likewise.
12985
12986 2009-11-16  Jim Meyering  <meyering@redhat.com>
12987
12988         version-etc: relax license to LGPLv3+
12989         * modules/version-etc (License): Relax license.
12990
12991         better AC_REQUIRE expanded-before-required-warning avoidance
12992         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
12993         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
12994         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
12995         which is no longer needed.
12996
12997 2009-11-16  Eric Blake  <ebb9@byu.net>
12998
12999         test-freading: clean up temporary file
13000         * tests/test-freading.c (main): Remove file on success, and use
13001         ASSERT more liberally.
13002         Reported by Jim Meyering.
13003
13004 2009-11-16  Jim Meyering  <meyering@redhat.com>
13005
13006         avoid new AC_REQUIRE expanded-before-required warnings
13007         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13008         merely using it.
13009         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13010         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13011
13012 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13013
13014         * tests/test-xalloc-die.c: New file.
13015         * modules/xalloc-die-tests: New file.
13016         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13017         XFAIL_TESTS so it can be appended by modules.
13018
13019 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13020
13021         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13022         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13023
13024 2009-11-14  Eric Blake  <ebb9@byu.net>
13025
13026         fnmatch: avoid compiler warning
13027         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13028         to silence compiler warning about mismatch signedness in ?:.
13029         Reported by Robert Millan.
13030
13031         intprops: add double-inclusion guard
13032         * lib/intprops.h: Allow idempotent includes.
13033         Suggested by Bruce Korb.
13034
13035         openat: detect Solaris fchownat bug
13036         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13037         penalizing glibc chownat when only lchownat is broken.
13038         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13039         trailing slash bugs.
13040         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13041         * modules/openat-tests (Files): Include more files.
13042         (Depends-on): Add mgetgroups, sleep, stat-time.
13043         (configure.ac): Add additional checks.
13044         (Makefile.am): Build new test.
13045         * tests/test-fchownat.c: New file.
13046
13047         lchown: detect Solaris and FreeBSD bug
13048         * lib/lchown.c (rpl_lchown): Work around bug.
13049         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13051         * modules/unistd (Makefile.am): Populate it.
13052         * lib/unistd.in.h (lchown): Update declaration.
13053         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13054         * modules/lchown-tests: New file.
13055         * tests/test-lchown.h (test_lchown): Likewise.
13056         * tests/test-lchown.c (main): Likewise.
13057
13058         chown: detect Solaris and FreeBSD bug
13059         * lib/chown.c (rpl_chown): Work around bug.
13060         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13061         (gl_PREREQ_CHOWN): Delete.
13062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13063         * modules/unistd (Makefile.am): Populate it.
13064         * lib/unistd.in.h (chown): Update declaration.
13065         * lib/lchown.c (chown): Update client.
13066         * modules/lchown (Depends-on): Add lstat.
13067         * doc/posix-functions/chown.texi (chown): Document the bug.
13068         * doc/posix-functions/getgroups.texi (getgroups): Document
13069         getgroups pitfall.
13070         * modules/chown-tests: New file.
13071         * tests/test-chown.h (test_chown): Likewise.
13072         * tests/test-chown.c (main): Likewise.
13073
13074 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13075
13076         gnulib-tool: correctly detect absence of m4 directories
13077         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13078
13079 2009-11-14  Jim Meyering  <meyering@redhat.com>
13080
13081         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13082         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13083
13084 2009-11-14  John W. Eaton  <jwe@gnu.org>
13085
13086         strftime.h: wrap funtion declaration in extern "C" block
13087         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13088
13089 2009-11-13  Eric Blake  <ebb9@byu.net>
13090
13091         getgroups: avoid compiler warning
13092         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13093
13094         getgroups: work around FreeBSD bug
13095         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13096         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13097         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13098         * tests/test-getgroups.c (main): Fix buffer overrun.
13099
13100         getgroups: avoid compilation failure
13101         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13102         * modules/getgroups (Depends-on): Add stdint.
13103
13104 2009-11-13  Jim Meyering  <meyering@redhat.com>
13105
13106         test-getgroups: avoid compilation failure
13107         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13108
13109 2009-11-13  Eric Blake  <ebb9@byu.net>
13110
13111         mgetgroups: new module, taken from coreutils
13112         * modules/mgetgroups: New file.
13113         * lib/mgetgroups.h: Likewise.
13114         * lib/mgetgroups.c (mgetgroups): Likewise.
13115         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13116         * MODULES.html.sh (Users and groups): Mention it.
13117
13118         getgroups: don't expose GETGROUPS_T to user
13119         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13120         an element at a time if GETGROUPS_T is wrong size.
13121         * lib/getugroups.h (getugroups): Change signature.
13122         * lib/unistd.in.h (getgroups): Likewise.
13123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13124         signature needs fixing.
13125         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13126         AC_TYPE_GETGROUPS.
13127         * modules/group-member (Depends-on): Add getgroups.
13128         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13129         (group_member): Rely on getgroups replacement.
13130         * lib/getugroups.c (getugroups): Use gid_t.
13131         * tests/test-getgroups.c (main): Likewise.
13132         * NEWS: Mention the signature change.
13133         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13134         problem with signature.
13135         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13136         GETGROUPS_T is still useful for setgroups.
13137
13138         getgroups, getugroups: provide stubs for mingw
13139         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13140         * lib/getugroups.c (getugroups): Likewise.
13141         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13142         function.  Modernize replacement scheme.
13143         (gl_PREREQ_GETGROUPS): Delete.
13144         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13145         * modules/getgroups (configure.ac): Declare witness.
13146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13147         * modules/unistd (Depends-on): Substitute witness.
13148         * lib/unistd.in.h (getgroups): Declare replacement.
13149
13150         getgroups: avoid calling exit
13151         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13152         drop xalloc.
13153         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13154         dependencies.
13155         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13156         exiting, in the rare case of malloc failure.
13157
13158         getgroups: fix logic error
13159         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13160         has more than 20 groups.
13161         * modules/getgroups-tests: New test.
13162         * tests/test-getgroups.c: New file.
13163
13164 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13165
13166         * tests/test-base64.c: Improve.
13167
13168 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13169
13170         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13171         Blake <ebb9@byu.net>.
13172
13173 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13174
13175         * tests/test-xvasprintf.c: Add %s%s related checks.
13176
13177 2009-11-12  Eric Blake  <ebb9@byu.net>
13178
13179         version-etc: match standards.texi style
13180         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13181         and use <> only for URLs.
13182
13183 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13184
13185         fts: do not fail on a submount during traversal
13186         * lib/fts.c (fts_build): Read the stat info again after opening
13187         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13188         Original report at http://bugzilla.redhat.com/501848.
13189
13190 2009-11-12  Jim Meyering  <meyering@redhat.com>
13191
13192         bootstrap: sync from coreutils
13193         * build-aux/bootstrap (bootstrap_epilogue): New function.
13194         Use git_modules_config in one more place.  This make bootstrap's
13195         --gnulib-srcdir option more useful for testing.
13196
13197         bootstrap: generalize autoheader check
13198         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13199         AC_CONFIG_HEADERS.
13200
13201 2009-11-11  Eric Blake  <ebb9@byu.net>
13202
13203         mkfifoat: use new modules for Solaris and BSD bugs
13204         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13205         * lib/mkfifoat.c (mknodat): Split...
13206         * lib/mknodat.c (mknodat): ...into new file.
13207         * modules/mkfifoat (Files): Ship new file.
13208         (Depends-on): Add mkfifo, mknod.
13209         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13210         (Depends-on): Add symlink.
13211         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13212         redundant with test_mkfifo.h.
13213         (do_mkfifoat, do_mknodat): New helpers.
13214
13215         mknod: new module
13216         * modules/mknod: New file.
13217         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13218         * lib/mknod.c (mknod): Likewise.
13219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13220         defaults.
13221         * modules/sys_stat (Makefile.am): Substitute them.
13222         * lib/sys_stat.in.h (mknod): Declare replacement.
13223         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13224         Document it.
13225         * doc/posix-functions/mknod.texi (mknod): Likewise.
13226         * modules/mknod-tests: New test.
13227         * tests/test-mknod.c: Likewise.
13228
13229         mkfifo: new module
13230         * modules/mkfifo: New file.
13231         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13232         * lib/mkfifo.c (mkfifo): Likewise.
13233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13234         defaults.
13235         * modules/sys_stat (Makefile.am): Substitute them.
13236         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13237         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13238         Document it.
13239         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13240         * modules/mkfifo-tests: New test.
13241         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13242         from test-mkfifoat.c.
13243         * tests/test-mkfifo.c: New file.
13244
13245         readlink: detect FreeBSD bug
13246         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13247         slash on symlink.
13248         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13249         * tests/test-readlink.h (test_readlink): Enhance test.
13250
13251         symlink: detect FreeBSD bug
13252         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13253         slash on symlink.
13254         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13255         * tests/test-symlink.h (test_symlink): Enhance test.
13256
13257 2009-11-10  Eric Blake  <ebb9@byu.net>
13258
13259         link: detect FreeBSD bug
13260         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13261         symlink.
13262         * doc/posix-functions/link.texi (link): Document the bug.
13263         * tests/test-link.h (test_link): Enhance test.
13264         * tests/test-linkat.c (main): Update caller.
13265
13266         unlink, remove: detect FreeBSD bug
13267         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13268         slash on symlink.
13269         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13270         * doc/posix-functions/remove.texi (remove): Likewise.
13271         * tests/test-unlink.h (test_unlink): Enhance test.
13272         * tests/test-remove.c (main): Likewise.
13273
13274 2009-11-09  Eric Blake  <ebb9@byu.net>
13275
13276         rename: detect FreeBSD bug
13277         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13278         slash on symlink.
13279         * modules/renameat-tests (Depends-on): Add filenamecat.
13280         * tests/test-rename.h (test_rename): Allow one more errno.
13281         * tests/test-renameat.c (main): Likewise.
13282         * doc/posix-functions/rename.texi (rename): Document the bug.
13283
13284         open: detect FreeBSD bug
13285         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13286         symlink.
13287         * doc/posix-functions/open.texi (open): Document the bug.
13288         * doc/posix-functions/utimes.texi (utimes): Likewise.
13289         * tests/test-open.h (test_open): Add parameters, and test symlink
13290         handling.
13291         * tests/test-open.c (main): Adjust caller.
13292         * tests/test-fcntl-safer.c (main): Likewise.
13293         * modules/open-tests (Depends-on): Add stdbool, symlink.
13294         * modules/fcntl-safer-tests (Depends-on): Likewise.
13295         * tests/test-openat.c (main): Add test-open tests.
13296
13297         stat: detect FreeBSD bug
13298         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13299         symlink.
13300         * doc/posix-functions/stat.texi (stat): Document the bug.
13301         * tests/test-stat.h (test_stat_func): Add argument.
13302         * tests/test-stat.c (main): Adjust caller.
13303         * tests/test-fstatat.c (main): Likewise.
13304         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13305         Reported by Jim Meyering.
13306
13307 2009-11-09  James Youngman  <jay@gnu.org>
13308
13309         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13310         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13311
13312 2009-11-08  Jim Meyering  <meyering@redhat.com>
13313
13314         utimens: remove invalid futimesat call
13315         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13316         It used the file descriptor of the target file as the DIR_FD
13317         parameter and NULL as the file name.  That caused failure with
13318         errno == EFAULT on FreeBSD-8.0-rc2
13319
13320 2009-11-07  Eric Blake  <ebb9@byu.net>
13321
13322         fflush, freadseek: use fseeko, not fseek
13323         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13324         (clear_ungetc_buffer): Avoid potential problems on large files.
13325         * lib/freadseek.c (freadseek): Likewise.
13326         * modules/freadseek (Depends-on): Add fseeko.
13327         * modules/fseek (configure.ac): Set a witness.
13328         * tests/test-fflush.c (main): Use fseeko.
13329         * tests/test-fpurge.c (fseek): Disable link warning.
13330         * tests/test-freadable.c (fseek): Likewise.
13331         * tests/test-freading.c (fseek): Likewise.
13332         * tests/test-fseeko.c (fseek): Likewise.
13333         * tests/test-ftell.c (fseek): Likewise.
13334         * tests/test-ftello.c (fseek): Likewise.
13335         * tests/test-fwritable.c (fseek): Likewise.
13336         * tests/test-fwriting.c (fseek): Likewise.
13337
13338 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13339
13340         * modules/memchr (Depends-on): Drop getpagesize dependency.
13341
13342 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13343
13344         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13345         Reported by Ludovic Courtès.
13346         * build-aux/pmccabe2html: Improve example usage.
13347         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13348
13349 2009-11-06  Jim Meyering  <meyering@redhat.com>
13350
13351         do-release-commit-and-tag: New module.
13352         Automate the release-commit and tag process.
13353         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13354         * modules/do-release-commit-and-tag: New file.
13355         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13356
13357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13358
13359         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13360         because test-select.c uses inet_pton.
13361
13362 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13363
13364         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13365         GETADDRINFO_LIB.  Bump serial number.
13366         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13367         Suggested by Eric Blake <ebb9@byu.net>.
13368
13369 2009-11-05  Eric Blake  <ebb9@byu.net>
13370
13371         strtod: detect darwin bug
13372         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13373         Reported by Leo Davis.
13374
13375         freopen-safer: new module
13376         * modules/freopen-safer: New module.
13377         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13378         * lib/freopen-safer.c (freopen_safer): New file.
13379         * lib/stdio-safer.h (freopen_safer): New declaration.
13380         * lib/stdio--.h (freopen): New override.
13381         * MODULES.html.sh (File stream based Input/Output): Mention it.
13382         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13383         freopen-safer module.
13384         * doc/posix-functions/stderr.texi (stderr): Likewise.
13385         * doc/posix-functions/stdin.texi (stdin): Likewise.
13386         * doc/posix-functions/stdout.texi (stdout): Likewise.
13387         * modules/freopen-safer-tests: New test.
13388         * tests/test-reopen-safer.c: New file.
13389
13390 2009-11-05  Jim Meyering  <meyering@redhat.com>
13391
13392         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13393         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13394
13395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13396
13397         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13398
13399 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13400
13401         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13402
13403 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13404
13405         Fix link error.
13406         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13407         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13408
13409 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13410
13411         * tests/test-func.c: Also test value of __func__.
13412
13413 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13414
13415         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13416         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13417
13418 2009-11-05  Bruno Haible  <bruno@clisp.org>
13419
13420         Fix link error.
13421         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13422         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13423         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13424
13425 2009-11-05  Bruno Haible  <bruno@clisp.org>
13426
13427         Tests for module 'inet_pton'.
13428         * modules/inet_pton-tests: New file.
13429         * tests/test-inet_pton.c: New file.
13430
13431 2009-11-05  Bruno Haible  <bruno@clisp.org>
13432
13433         Tests for module 'inet_ntop'.
13434         * modules/inet_ntop-tests: New file.
13435         * tests/test-inet_ntop.c: New file.
13436
13437 2009-11-04  Eric Blake  <ebb9@byu.net>
13438
13439         stdlib-safer: wrap all mkstemp variants
13440         * modules/mkostemp (configure.ac): Set witness.
13441         * modules/mkostemps (configure.ac): Likewise.
13442         * modules/mkstemps (configure.ac): Likewise.
13443         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13444         (mkstemps_safer): Wrap more functions.
13445         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13446         wrapping.
13447         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13448         (mkstemps_safer): Implement the wrappers.
13449
13450         mkstemps, mkostemps: new modules
13451         * modules/mkostemps: New module.
13452         * modules/mkstemps: Likewise.
13453         * lib/mkostemps.c (mkostemps): New file.
13454         * lib/mkstemps.c (mkstemps): Likewise.
13455         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13456         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13458         * modules/stdlib (Makefile.am): Substitute them.
13459         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13460         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13461         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13462         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13463         * MODULES.html.sh (File system functions): Mention them.
13464
13465         tempname: resync from glibc
13466         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13467         same values for __GT_FILE as glibc.  Abort even when assertions
13468         are disabled.
13469         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13470         match its value otherwise.  Allow idempotent inclusion.
13471         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13472         * lib/mkostemp.c (mkostemp): Likewise.
13473         * lib/mkstemp.c (mkstemp): Likewise.
13474         * lib/tmpfile.c (tmpfile): Likewise.
13475         * NEWS: Document this.
13476
13477         utimens: fix use of futimens on older Linux
13478         * lib/utimens.c (fdutimens): Use updated, rather than original,
13479         timespec to avoid bug in older Linux kernel.
13480         Reported by Simon Josefsson.
13481
13482 2009-11-04  Bruno Haible  <bruno@clisp.org>
13483
13484         Make num_processors more flexible and consistent.
13485         * lib/nproc.h (enum nproc_query): New type.
13486         (num_processors): Add a 'query' argument.
13487         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13488         (num_processors): Add a 'query' argument. Test the value of the
13489         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13490         mingw, count the number of CPUs available for the current process.
13491         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13492         Check for sched_getaffinity and sched_getaffinity_np.
13493         * modules/nproc (Depends-on): Add c-ctype, extensions.
13494         * NEWS: Mention the change.
13495
13496 2009-11-03  Bruno Haible  <bruno@clisp.org>
13497
13498         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13499
13500 2009-11-03  Jim Meyering  <meyering@redhat.com>
13501
13502         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13503         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13504         if it is defined.
13505
13506 2009-11-02  Eric Blake  <ebb9@byu.net>
13507
13508         mktime, timegm: share common declaration
13509         * lib/mktime-internal.h: New file.
13510         * lib/mktime.c: Use it rather than open-coding a declaration.
13511         * lib/timegm.c: Likewise.
13512         * modules/mktime (Files): Ship it.
13513         * modules/timegm (Files): Likewise.
13514         Suggested by Bruno Haible.
13515
13516         test-update-copyright: update test to match script changes
13517         * tests/test-update-copyright.sh: Avoid hard-coding perl
13518         location.  Don't update *.bak created by earlier runs.
13519
13520 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13521             Simon Josefsson  <simon@josefsson.org>
13522             Bruno Haible  <bruno@clisp.org>
13523
13524         Fix link error on Solaris 8.
13525         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13526         also in libnsl. Define also INET_PTON_LIB.
13527         * modules/inet_pton (Link): New section.
13528
13529 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13530             Bruno Haible  <bruno@clisp.org>
13531
13532         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13533         * modules/inet_ntop (Link): New section.
13534         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13535
13536 2009-11-02  Eric Blake  <ebb9@byu.net>
13537
13538         maint: avoid compiler warnings in m4 macros
13539         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13540         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13541
13542 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13543
13544         * m4/pmccabe2html.m4: Remove file.
13545         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13546         function.  Change maintainer.
13547         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13548         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13549         Courtès).
13550
13551 2009-10-31  Eric Blake  <ebb9@byu.net>
13552
13553         fseeko: fix m4 regression
13554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13555         regression from 2009-10-27.
13556         Reported by Ralf Wildenhues.
13557
13558 2009-10-31  Jim Meyering  <meyering@redhat.com>
13559
13560         inttostr: aesthetics and improved (compile-time) safety
13561         Define inttype_is_signed rather than inttype_is_unsigned,
13562         since the sole use is via "#if inttype_is_signed".
13563         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13564         inttype_is_unsigned.
13565         * lib/offtostr.c (inttype_is_signed): Likewise.
13566         * lib/uinttostr.c (inttype_is_signed): Likewise.
13567         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13568         * lib/inttostr.c (inttostr): Use verify to cross-check the
13569         inttype_is_signed value and the signedness of the actual type.
13570         * modules/inttostr (Depends-on): Add verify.
13571
13572 2009-10-30  Eric Blake  <ebb9@byu.net>
13573
13574         build: avoid compiler warnings
13575         * lib/fchmodat.c (lchmod): Mark unused variables.
13576         * lib/getopt.c (_getopt_initialize): Likewise.
13577         * lib/mktime.c (__mktime_internal): Provide prototype.
13578         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13579         older gcc that do not understand #pragma GCC diagnostic.
13580         * lib/uinttostr.c (inttype_is_unsigned): Define.
13581         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13582
13583 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13584
13585         stat: fix compilation on AIX
13586         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13587         only see struct stat64.
13588
13589 2009-10-30  Eric Blake  <ebb9@byu.net>
13590
13591         exclude: make more robust
13592         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13593         rather than masking a coding bug.
13594         Suggested by Bruno Haible.
13595
13596 2009-10-30  Jim Meyering  <meyering@redhat.com>
13597
13598         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13599         Rather than putting #!/usr/bin/perl on the first line,
13600         start with a variant of what's recommended by "man perlrun" that
13601         invokes the first "perl" program from your shell's search path.
13602         * build-aux/gitlog-to-changelog: Replace #!... as above.
13603         Add a "Local Variables" perl mode setting.
13604         Prompted by a patch from Ludovic Courtès.
13605         Improved by Eric Blake.
13606         * build-aux/useless-if-before-free: Likewise.
13607         * build-aux/announce-gen: Likewise.
13608         * build-aux/update-copyright: Likewise.
13609
13610 2009-10-29  Eric Blake  <ebb9@byu.net>
13611
13612         filenamecat-lgpl: adjust clients
13613         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13614         filenamecat.
13615         * modules/renameat (Depends-on): Likewise.
13616
13617         filenamecat: split into filenamecat-lgpl
13618         * modules/filenamecat-lgpl: New module.
13619         * modules/filenamecat (Files): Move library-safe files into
13620         filenamecat-lgpl.
13621         (Depends-on): Add filenamecat-lgpl.
13622         (configure.ac): Declare witness.
13623         * lib/filenamecat.h (file_name_concat): Only declare when using
13624         GPL module.
13625         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13626         Move...
13627         * lib/filenamecat-lgpl.c: ...into new file.
13628         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13629         (gl_FILE_NAME_CONCAT): Use it.
13630         * MODULES.html.sh (File system functions): Mention new module.
13631
13632         argp: avoid memory leak
13633         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13634         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13635         base_name, since the latter malloc()s and can call exit().
13636         Leak introduced 2006-07-03.
13637
13638         dirname-lgpl: adjust clients that don't need full dirname
13639         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13640         * modules/filenamecat (Depends-on): Likewise.
13641         * modules/linkat (Depends-on): Likewise.
13642         * modules/mkancesdirs (Depends-on): Likewise.
13643         * modules/mkdir (Depends-on): Likewise.
13644         * modules/openat (Depends-on): Likewise.
13645         * modules/savewd (Depends-on): Likewise.
13646         * modules/rename (Depends-on): Likewise.
13647         (License): Relax license.
13648         * modules/mkdir-tests (Depends-on): Drop progname.
13649         (Makefile.am): Delete unneeded LDADD.
13650         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13651
13652         dirname: split into dirname-lgpl
13653         * modules/dirname-lgpl: New module.
13654         * modules/dirname (Files): Move library-safe files into
13655         dirname-lgpl.
13656         (Depends-on): Add dirname-lgpl.
13657         (configure.ac): Declare witness.
13658         * modules/double-slash-root (License): Relax license.
13659         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13660         module.
13661         * lib/dirname.c (dir_len, mdir_name): Move...
13662         * lib/dirname-lgpl.c: ...into new file.
13663         * lib/basename.c (last_component, base_len): Move...
13664         * lib/basename-lgpl.c: ...into new file.
13665         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13666         (gl_DIRNAME): Use it.
13667         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13668         Mention new module.
13669         * modules/dirname-tests (Depends-on): Add progname.
13670         * tests/test-dirname.c (program_name): Delete.
13671
13672         mkdir: make safe for libraries
13673         * modules/mkdir (Depends-on): Drop xalloc.
13674         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13675         exit.
13676
13677         tests: avoid some compiler warnings
13678         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13679         literals.
13680         * tests/test-memchr.c (main): Avoid type mismatch.
13681         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13682         * tests/test-base64.c (main): Likewise.
13683         * tests/test-getdelim.c (main): Likewise.
13684         * tests/test-gethostname.c (main): Likewise.
13685         * tests/test-getline.c (main): Likewise.
13686         * tests/test-netinet_in.c (main): Likewise.
13687         * tests/test-select.c (open_server_socket, main): Likewise.
13688         * tests/test-select-stdin.c (main): Likewise.
13689         * tests/test-sockets.c (main): Likewise.
13690         * tests/test-strsignal.c (main): Likewise.
13691         * tests/test-sys_select.c (main): Likewise.
13692         * tests/test-sys_socket.c (main): Likewise.
13693         * tests/test-u64.c (main): Likewise.
13694         * tests/test-xfprintf-posix.c (main): Likewise.
13695         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13696
13697         sockets: avoid compiler warning
13698         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13699
13700         maint: detect usage(1) and other suspicious exits
13701         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13702
13703 2009-10-29  Jim Meyering  <meyering@redhat.com>
13704
13705         timespec: long-to-int truncation could make timespec_cmp malfunction
13706         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13707         a multiple of 2^32 nanoseconds as no difference.
13708
13709 2009-10-28  Jim Meyering  <meyering@redhat.com>
13710
13711         fprintftime: wrap macro code argument in "do {...} while(0)"
13712         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13713         cpy macro must be a statement that can be followed by a semicolon.
13714         Now that the else clause contains a comment and is hence longer
13715         than one line, I require curly braces.  That in turn requires
13716         that we wrap this code block in the standard do...while(0).
13717
13718         fprintftime: remove stray semicolon from previous change
13719         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13720
13721         fprintftime: avoid a warning about ignored fwrite return value
13722         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13723         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13724         that is unsafe.
13725         * modules/fprintftime (Depends-on): Add ignore-value.
13726
13727         exclude: avoid an unwarranted warning
13728         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13729
13730 2009-10-27  Eric Blake  <ebb9@byu.net>
13731
13732         fseek: avoid compilation failure when fflush is replaced
13733         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13734         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13735         module is in use.
13736         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13737         module is not in use; since REPLACE_FSEEK worked otherwise.
13738         (GNULIB_FTELLO): Likewise for ftell.
13739         Reported by Ian Beckwith and others.
13740
13741 2009-10-27  Bruno Haible  <bruno@clisp.org>
13742
13743         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13744         Reported by Jim Meyering.
13745
13746 2009-10-27  Jim Meyering  <jim@meyering.net>
13747             Bruno Haible  <bruno@clisp.org>
13748
13749         Avoid warning despite dropping the return value of fwrite.
13750         * lib/unicodeio.c: Include ignore-value.h.
13751         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13752         * modules/unicodeio (Depends-on): Add ignore-value.
13753
13754 2009-10-26  Eric Blake  <ebb9@byu.net>
13755
13756         areadlinkat: fix fallback path
13757         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13758         pointer and zero.
13759
13760 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13761
13762         Use a better IO block size for modern systems
13763         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13764         * lib/md2.c: Likewise.
13765         * lib/md4.c: Likewise.
13766         * lib/md5.c: Likewise.
13767         * lib/sha1.c: Likewise.
13768         * lib/sha256.c: Likewise.
13769         * lib/sha512.c: Likewise.
13770
13771 2009-10-22  Eric Blake  <ebb9@byu.net>
13772
13773         tests: avoid several compiler warnings
13774         * tests/test-getcwd.c (main): Avoid buffer underflow.
13775         * tests/test-getdate.c (main): String literals are not safe with
13776         putenv, so use setenv.  Declare unused argument.
13777         * modules/getdate-tests (Depends-on): Add setenv.
13778         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13779         problems with string literals in char *.
13780         * tests/test-hash.c (main): Avoid shadowing declaration.
13781         (insert_new): Treat string literals as char const *.
13782         * tests/test-getopt.h (test_getopt): Likewise.
13783         (getopt_loop): Alter types to minimize casting elsewhere.
13784         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13785         (test_getopt_long_posix): Likewise.
13786         (do_getopt_long): Add wrapper to minimize casting.
13787         * tests/test-atexit.c (clear_temp_file): Use void.
13788         * tests/test-areadlink-with-size.c (main): Declare unused
13789         arguments.
13790         * tests/test-areadlink.c (main): Likewise.
13791         * tests/test-areadlinkat-with-size.c (main): Likewise.
13792         * tests/test-areadlinkat.c (main): Likewise.
13793         * tests/test-canonicalize-lgpl.c (main): Likewise.
13794         * tests/test-canonicalize.c (main): Likewise.
13795         * tests/test-dirent-safer.c (main): Likewise.
13796         * tests/test-dirname.c (main): Likewise.
13797         * tests/test-dup2.c (main): Likewise.
13798         * tests/test-fchdir.c (main): Likewise.
13799         * tests/test-fcntl-h.c (main): Likewise.
13800         * tests/test-fcntl-safer.c (main): Likewise.
13801         * tests/test-fdopendir.c (main): Likewise.
13802         * tests/test-fdutimensat.c (main): Likewise.
13803         * tests/test-fflush.c (main): Likewise.
13804         * tests/test-filenamecat.c (main): Likewise.
13805         * tests/test-filevercmp.c (main): Likewise.
13806         * tests/test-fopen-safer.c (main): Likewise.
13807         * tests/test-fopen.c (main): Likewise.
13808         * tests/test-fpending.c (main): Likewise.
13809         * tests/test-fpurge.c (main): Likewise.
13810         * tests/test-freading.c (main): Likewise.
13811         * tests/test-fstatat.c (main): Likewise.
13812         * tests/test-fsync.c (main): Likewise.
13813         * tests/test-futimens.c (main): Likewise.
13814         * tests/test-getndelim2.c (main): Likewise.
13815         * tests/test-gettimeofday.c (main): Likewise.
13816         * tests/test-getopt.c (main): Likewise.
13817         * tests/test-i-ring.c (main): Likewise.
13818         * tests/test-inttypes.c (main): Likewise.
13819         * tests/test-link.c (main): Likewise.
13820         * tests/test-lstat.c (main): Likewise.
13821         * tests/test-math.c (main): Likewise.
13822         * tests/test-md5.c (main): Likewise.
13823         * tests/test-memchr2.c (main): Likewise.
13824         * tests/test-memrchr.c (main): Likewise.
13825         * tests/test-mkdir.c (main): Likewise.
13826         * tests/test-mkdirat.c (main): Likewise.
13827         * tests/test-mkfifoat.c (main): Likewise.
13828         * tests/test-open.c (main): Likewise.
13829         * tests/test-openat-safer.c (main): Likewise.
13830         * tests/test-openat.c (main): Likewise.
13831         * tests/test-quotearg.c (main): Likewise.
13832         * tests/test-rawmemchr.c (main): Likewise.
13833         * tests/test-readlink.c (main): Likewise.
13834         * tests/test-remove.c (main): Likewise.
13835         * tests/test-rename.c (main): Likewise.
13836         * tests/test-renameat.c (main): Likewise.
13837         * tests/test-rmdir.c (main): Likewise.
13838         * tests/test-sha1.c (main): Likewise.
13839         * tests/test-signal.c (main): Likewise.
13840         * tests/test-sigaction.c (main): Likewise.
13841         * tests/test-stat.c (main): Likewise.
13842         * tests/test-stat-time.c (main): Likewise.
13843         * tests/test-stddef.c (main): Likewise.
13844         * tests/test-stdint.c (main): Likewise.
13845         * tests/test-stdio.c (main): Likewise.
13846         * tests/test-stdlib.c (main): Likewise.
13847         * tests/test-strchrnul.c (main): Likewise.
13848         * tests/test-strerror.c (main): Likewise.
13849         * tests/test-string.c (main): Likewise.
13850         * tests/test-strtod.c (main): Likewise.
13851         * tests/test-strverscmp.c (main): Likewise.
13852         * tests/test-symlink.c (main): Likewise.
13853         * tests/test-symlinkat.c (main): Likewise.
13854         * tests/test-sys_stat.c (main): Likewise.
13855         * tests/test-sys_time.c (main): Likewise.
13856         * tests/test-time.c (main): Likewise.
13857         * tests/test-unistd.c (main): Likewise.
13858         * tests/test-unlink.c (main): Likewise.
13859         * tests/test-unlinkat.c (main): Likewise.
13860         * tests/test-utimens.c (main): Likewise.
13861         * tests/test-utimensat.c (main): Likewise.
13862         * tests/test-version-etc.c (main): Likewise.
13863         * tests/test-wchar.c (main): Likewise.
13864         * tests/test-wctype.c (main): Likewise.
13865         * tests/test-xprintf-posix.c (main): Likewise.
13866         * tests/test-posixtm.c (main): Likewise.
13867         (STREQ): Delete unused macro.
13868         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13869         shadowed variables.
13870         * tests/test-memchr.c (main): Likewise.
13871
13872 2009-10-21  Eric Blake  <ebb9@byu.net>
13873
13874         areadlinkat: avoid failure on older glibc
13875         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13876         rather than mis-comparing 0 against FUNC_RESULT of char*.
13877
13878 2009-10-21  Bruno Haible  <bruno@clisp.org>
13879
13880         * modules/stpncpy (License): Relicense under LGPLv2+.
13881         Reported by David Lutterkort <lutter@redhat.com>.
13882
13883 2009-10-20  Eric Blake  <ebb9@byu.net>
13884
13885         utimensat: work around Solaris 9 bug
13886         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13887         has trailing slash bugs.
13888         * tests/test-lutimens.h (test_lutimens): Enhance test.
13889         * tests/test-utimens.h (test_utimens): Likewise.
13890         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13891         * doc/posix-functions/utimes.texi (utimes): Likewise.
13892         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13893         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13894         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13895         * doc/posix-functions/futimens.texi (futimens): Likewise.
13896
13897         fdutimensat: new module
13898         * modules/fdutimensat: New file.
13899         * lib/fdutimensat.c (fdutimensat): Likewise.
13900         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13901         * MODULES.html.sh (File system functions): Mention module.
13902         * modules/fdutimensat-tests: New test.
13903         * tests/test-fdutimensat.c: Likewise.
13904
13905         doc: regenerate INSTALL
13906         * doc/INSTALL: Reflect recent autoconf update.
13907         * doc/INSTALL.ISO: Likewise.
13908         * doc/INSTALL.UTF-8: Likewise.
13909
13910 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13911
13912         acl: warn if ACL support is not detected
13913         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13914
13915 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13916
13917         * lib/nproc.h: Add extern "C" block for C++.
13918
13919 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
13920             Bruno Haible  <bruno@clisp.org>
13921
13922         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
13923         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
13924         * doc/posix-functions/isalpha.texi: Likewise.
13925         * doc/posix-functions/isblank.texi: Likewise.
13926         * doc/posix-functions/iscntrl.texi: Likewise.
13927         * doc/posix-functions/isdigit.texi: Likewise.
13928         * doc/posix-functions/isgraph.texi: Likewise.
13929         * doc/posix-functions/islower.texi: Likewise.
13930         * doc/posix-functions/isprint.texi: Likewise.
13931         * doc/posix-functions/ispunct.texi: Likewise.
13932         * doc/posix-functions/isspace.texi: Likewise.
13933         * doc/posix-functions/isupper.texi: Likewise.
13934         * doc/posix-functions/isxdigit.texi: Likewise.
13935
13936 2009-10-18  Bruno Haible  <bruno@clisp.org>
13937
13938         Tests for module 'isblank'.
13939         * modules/isblank-tests: New file.
13940         * tests/test-isblank.c: New file.
13941
13942         New module 'isblank'.
13943         * lib/isblank.c: New file.
13944         * m4/isblank.m4: New file.
13945         * modules/isblank: New file.
13946         * doc/posix-functions/isblank.texi: Mention the new module.
13947
13948 2009-10-18  Bruno Haible  <bruno@clisp.org>
13949
13950         New module 'ctype'.
13951         * lib/ctype.in.h: New file.
13952         * m4/ctype.m4: New file.
13953         * modules/ctype: New file.
13954         * doc/posix-headers/ctype.texi: Mention the new module.
13955
13956 2009-10-18  Jim Meyering  <meyering@redhat.com>
13957
13958         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
13959         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
13960         right after its initialization, rather than farther down.
13961         Keeping these in close proximity makes it easier to ensure
13962         that each such variable is initialized.  E.g.,
13963
13964             LIB_CLOCK_GETTIME=
13965             AC_SUBST([LIB_CLOCK_GETTIME])
13966
13967         This change also increments these serial numbers.
13968         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
13969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13971
13972 2009-10-18  Bruno Haible  <bruno@clisp.org>
13973
13974         Don't let environment variables perturb build.
13975         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
13976         (gl_PREREQ_GETHRXTIME): ... not here.
13977
13978 2009-10-18  Bruno Haible  <bruno@clisp.org>
13979
13980         Avoid symlink attack in localcharset module.
13981         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
13982         (O_NOFOLLOW): Define fallback.
13983         (get_charset_aliases): Don't open the file if it is a symbolic link.
13984         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
13985         gl_FCNTL_H.
13986         (gl_FCNTL_H): Require it.
13987         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
13988         * modules/localcharset (Files): Add m4/fcntl_h.m4.
13989         Reported by Fergal Glynn <fglynn@veracode.com>.
13990
13991 2009-10-18  Bruno Haible  <bruno@clisp.org>
13992
13993         Implement nproc for mingw.
13994         * lib/nproc.c: Include <windows.h>
13995         (num_processors): On native Windows platforms, try GetSystemInfo.
13996
13997 2009-10-18  Bruno Haible  <bruno@clisp.org>
13998
13999         Implement nproc for IRIX.
14000         * lib/nproc.c: Include <sys/sysmp.h>.
14001         (num_processors): On IRIX systems, try sysmp.
14002         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14003
14004 2009-10-18  Bruno Haible  <bruno@clisp.org>
14005
14006         Implement nproc for HP-UX.
14007         * lib/nproc.c: Include <sys/pstat.h>
14008         (num_processors): On HP-UX systems, try pstat_getdynamic.
14009         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14010         pstat_getdynamic.
14011
14012 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14013             Bruno Haible  <bruno@clisp.org>
14014
14015         Implement nproc for NetBSD, OpenBSD.
14016         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14017         (ARRAY_SIZE): New macro.
14018         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14019         * m4/nproc.m4: New file.
14020         * modules/nproc (Files): Add m4/nproc.m4.
14021         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14022         (Makefile.am): Instead, augment lib_SOURCES.
14023
14024 2009-10-18  Bruno Haible  <bruno@clisp.org>
14025
14026         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14027         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14028         sys/param.h.
14029
14030 2009-10-16  Eric Blake  <ebb9@byu.net>
14031
14032         utimensat: new module
14033         * modules/utimensat: New file.
14034         * lib/utimensat.c (utimensat): Likewise.
14035         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14036         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14037         so we can work around Linux bugs.
14038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14039         * modules/sys_stat (Makefile.am): Substitute them.
14040         * lib/sys_stat.in.h (utimensat): Declare it.
14041         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14043         * modules/utimensat-tests: New test.
14044         * tests/test-utimensat.c: Likewise.
14045
14046         utimens: let lutimens work on non-symlinks
14047         * lib/utimens.c (lutimens): Fall back to utimens rather than
14048         failing with ENOSYS, when file is not a symlink.
14049         (utimens): Reduce redirection.
14050         * tests/test-lutimens.h (test_lutimens): Update test to cover
14051         non-symlinks.
14052         * tests/test-utimens.h (test_utimens): Update test to cover
14053         symlinks.
14054         * tests/test-utimens.c (main): Update caller.
14055
14056         utimens: cache whether utimensat syscall works
14057         * lib/utimens.c (utimensat_works_really): New cache variable.
14058         (fdutimens, lutimens): Use it to avoid failing syscall.
14059
14060         test-stat-time, test-utimens: improve portability
14061         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14062         ext4 on alpha, and for cygwin.
14063         * tests/test-utimens-common.h: New file.
14064         (nap): Factor delays into single function.
14065         * tests/test-lutimens.h (test_lutimens): Use new header.
14066         * tests/test-futimens.h (test_futimens): Likewise.
14067         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14068         timestamps to occur from same machine, as was done previously for
14069         test_utimens.
14070         * modules/utimens-tests (Files): Ship new file.
14071         * modules/futimens-tests (Files): Likewise.
14072         Reported in part by Jim Meyering.
14073
14074         sys_stat: sort replacement declarations
14075         * lib/sys_stat.in.h: Sort declarations.
14076         * lib/futimens.c (futimens): Fix typo.
14077
14078 2009-10-15  Jim Meyering  <meyering@redhat.com>
14079
14080         don't let environment settings perturb build
14081         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14082         could cause a configure-time and/or build-time malfunction.
14083         Typically, a configure-time function-in-library test is performed
14084         via code like this:
14085
14086           LIB_VAR=
14087           AC_SUBST([LIB_VAR])
14088           prefix_saved_LIBS=$LIBS
14089             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14090                        [test "$ac_cv_search_FUNC" = "none required" ||
14091                         LIB_VAR=$ac_cv_search_FUNC])
14092           LIBS=$prefix_saved_LIBS
14093
14094         However, in each of the files affected by this change, the LIB_VAR=
14095         initialization was omitted.  Thus, when set in the environment, its
14096         value would propagate into generated Makefiles when FUNC is not found
14097         in LIB_NAME.
14098         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14099         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14101
14102 2009-10-14  Eric Blake  <ebb9@byu.net>
14103
14104         fchdir: avoid infinite recursion in mingw
14105         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14106         recursing.
14107
14108         test-stat-time: port to mingw
14109         * tests/test-stat-time.c (force_unlink): Return a value.
14110         (test_ctime) [W32]: Fix compilation error.
14111         (nap): Don't call usleep with too large an argument.  Use
14112         force_unlink.
14113         * doc/pastposix-functions/usleep.texi (usleep): Document the
14114         portability issue.
14115
14116 2009-10-13  Jim Meyering  <meyering@redhat.com>
14117
14118         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14119         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14120         * modules/pipe-filter-ii: Likewise.
14121         * modules/sys_socket-tests: Likewise.
14122         * modules/tsearch-tests: Likewise.
14123         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14124         (check): Depend on it.
14125
14126 2009-10-12  Eric Blake  <ebb9@byu.net>
14127
14128         utimens-tests: port to NFS file systems
14129         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14130         comparisons to avoid spurious failures from timestamp drift
14131         between NFS machines.
14132
14133 2009-10-12  Eric Blake  <ebb9@byu.net>
14134
14135         stat-time-tests: minor cleanups
14136         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14137         * tests/test-stat-time.c (nap): Separate assignment from call.
14138         Suggested by Paolo Bonzini and Bruno Haible.
14139
14140         sys_stat: guarantee struct timespec
14141         * lib/sys_stat.in.h (includes): Always include <time.h>
14142         * modules/sys_stat (Depends-on): Add time.
14143         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14144         mode_t permission values.
14145         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14146         get at subsecond timestamps.
14147
14148 2009-10-10  Eric Blake  <ebb9@byu.net>
14149
14150         futimens: new module
14151         * modules/futimens: New file.
14152         * lib/futimens.c (futimens): Likewise.
14153         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14154         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14155         we can work around Linux bugs.
14156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14157         * modules/sys_stat (Makefile.am): Substitute them.
14158         * lib/sys_stat.in.h (futimens): Declare it.
14159         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14160         * doc/posix-functions/futimens.texi (futimens): Likewise.
14161         * modules/futimens-tests: New test.
14162         * tests/test-futimens.c: Likewise.
14163
14164         utimens: introduce fdutimens
14165         * lib/utimens.h (fdutimens): New prototype.
14166         * lib/utimens.c (gl_futimens): Move guts...
14167         (fdutimens): ...to new interface.
14168         * tests/test-utimens.c (do_fdutimens): Use it.
14169
14170         utimens: add UTIME_NOW and UTIME_OMIT support
14171         * lib/utimens.c (validate_timespec, update_timespec): New helper
14172         functions.
14173         (gl_futimens, lutimens): Use them.
14174         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14175         stdbool, sys_stat.
14176         (Link): Mention resulting library dependency.
14177         * modules/utimecmp (Link): Likewise.
14178         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14179         (Makefile.am): Pick up library dependency.
14180         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14181         definition.
14182         * tests/test-sys_stat.c: Test the definitions.
14183         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14184         * NEWS: Document library dependency.
14185
14186         utimecmp: support symlink timestamps
14187         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14188         hashing when possible.  Use pathconf when available.
14189         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14190         * modules/utimecmp (Depends-on): Add lstat.
14191
14192         utimens: add lutimens interface
14193         * lib/utimens.c (lutimens): New function.
14194         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14195         * lib/utimens.h (lutimens): Declare new interface.
14196         * tests/test-utimens.c (main): Enhance test.
14197         * tests/test-lutimens.h (test_lutimens): New file.
14198         * modules/utimens-tests (Files): Distribute it.
14199         (Depends-on): Add symlink.
14200         (configure.ac): Check for usleep.
14201
14202         utimens: validate futimens usage
14203         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14204         fewer syscalls on failure later on.  Avoid compiler warning on
14205         mingw.
14206         * modules/utimens (Depends-on): Add dup2.
14207
14208         utimens: add test
14209         * modules/utimens-tests: New test.
14210         * tests/test-utimens.h: New file.
14211         * tests/test-futimens.h: Likewise.
14212         * tests/test-utimens.c: Likewise.
14213
14214         doc: mention timestamp portability issues
14215         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14216         instead.
14217         * doc/posix-functions/utime.texi (utime): Likewise.
14218         * doc/posix-functions/utimes.texi (utimes): Likewise.
14219         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14220         instead.
14221         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14222         module.
14223         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14224         Mention weakness with symlink timestamps.
14225         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14226         to utimensat/futimens instead.
14227         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14228
14229         test-dup2: enhance test
14230         * tests/test-dup2.c (main): Also check AT_FDCWD.
14231
14232         test-stat-time: avoid more spurious failures
14233         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14234         xfs; and avoid race if the two timestamps cross quantization edge.
14235
14236         relocatable: prefer 'file system' over 'filesystem'
14237         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14238         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14239         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14240         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14241         * lib/relocatable.c (compute_curr_prefix): Likewise.
14242
14243 2009-10-10  Jim Meyering  <meyering@redhat.com>
14244
14245         stat-time-tests: check for the usleep function
14246         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14247
14248 2009-10-10  Bruno Haible  <bruno@clisp.org>
14249
14250         * modules/xnanosleep: Put the Link section after the Include section.
14251
14252 2009-10-09  Eric Blake  <ebb9@byu.net>
14253
14254         dup2: work around FreeBSD 6.1 bug
14255         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14256         * doc/posix-functions/dup2.texi (dup2): Document it.
14257         Reported by Nelson H. F. Beebe and Jim Meyering.
14258
14259         test-stat-time: port to buggy NFS clients
14260         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14261         (test_ctime): Also skip test if mtime and ctime are skewed.
14262
14263         maint: prefer 'file system' over 'filesystem'
14264         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14265         * doc/posix-functions/lstat.texi (lstat): Likewise.
14266         * lib/file-has-acl.c (file_has_acl): Likewise.
14267         * lib/fwriteerror.c [TEST]: Likewise.
14268         * tests/test-areadlink.h (test_areadlink): Likewise.
14269         * tests/test-areadlinkat-with-size.c (main): Likewise.
14270         * tests/test-areadlinkat.c (main): Likewise.
14271         * tests/test-canonicalize-lgpl.c (main): Likewise.
14272         * tests/test-canonicalize.c (main): Likewise.
14273         * tests/test-fstatat.c (main): Likewise.
14274         * tests/test-linkat.c (main): Likewise.
14275         * tests/test-lstat.h (test_lstat_func): Likewise.
14276         * tests/test-mkdir.h (test_mkdir): Likewise.
14277         * tests/test-readlink.h (test_readlink): Likewise.
14278         * tests/test-remove.c (main): Likewise.
14279         * tests/test-rename.h (test_rename): Likewise.
14280         * tests/test-renameat.c (main): Likewise.
14281         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14282         * tests/test-symlink.h (test_symlink): Likewise.
14283         * tests/test-symlinkat.c (main): Likewise.
14284         * tests/test-unlink.h (test_unlink_func): Likewise.
14285         * tests/test-unlinkat.c (main): Likewise.
14286
14287         maint: make realtime library usage explicit
14288         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14289         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14290         * modules/settime (Link): Likewise.
14291         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14292
14293         test-stat-time: speed up execution
14294         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14295         warning on mingw.
14296         (nap): New helper function.
14297         (prepare_test): Use it to reduce sleep time.
14298         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14299         execution.
14300         * modules/stat-time-tests (configure.ac): Check for usleep.
14301
14302 2009-10-09  Jim Meyering  <meyering@redhat.com>
14303
14304         selinux-h: always use getfilecon wrappers
14305         * lib/getfilecon.c: New file.
14306         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14307         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14308         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14309         (fgetfilecon): Provide a stub.
14310         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14311         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14312         file unconditionally.
14313         When <selinux/selinux.h> is found, arrange to use wrappers.
14314         * modules/selinux-h (Files): Add getfilecon.c.
14315         (Makefile.am): Substitute include-next-related bits
14316         into the now-always-generated selinux/selinux.h file.
14317         * doc/glibc-functions/lgetfilecon.texi: New file.
14318         * doc/glibc-functions/fgetfilecon.texi: New file.
14319         * doc/glibc-functions/getfilecon.texi: New file.
14320         * doc/glibc-functions/getfilecon-desc.texi: New file.
14321         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14322         which to pull in the new files.
14323         * MODULES.html.sh (Misc): Add selinux-h.
14324
14325 2009-10-08  Jim Meyering  <meyering@redhat.com>
14326
14327         unistd: fix comment typo
14328         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14329
14330 2009-10-08  Eric Blake  <ebb9@byu.net>
14331
14332         areadlink: use SIZE_MAX consistently
14333         * modules/areadlink (Depends-on): Add stdint.
14334         * modules/areadlink-with-size (Depends-on): Likewise.
14335         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14336         gives NULL; drop sys/types, since unistd gives size_t; and add
14337         stdint for SIZE_MAX.
14338         (SIZE_MAX): Rely on headers.
14339         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14340         and add stdint.
14341         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14342         (SIZE_MAX): Likewise.
14343         (INITIAL_BUF_SIZE): Turn into enum.
14344         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14345
14346 2009-10-08  Jim Meyering  <meyering@redhat.com>
14347
14348         areadlinkat: avoid compilation failure
14349         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14350         Fix typo in comment.
14351
14352 2009-10-07  Eric Blake  <ebb9@byu.net>
14353
14354         areadlinkat-with-size: new module
14355         * modules/areadlinkat-with-size: New module.
14356         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14357         * lib/areadlink.h (areadlinkat): Declare it.
14358         * MODULES.html.sh (File system functions): Mention it.
14359         * modules/areadlinkat-with-size-tests: New test.
14360         * tests/test-areadlinkat-with-size.c: New file.
14361
14362         xreadlinkat: new module
14363         * modules/xreadlinkat: New module.
14364         * lib/xreadlinkat.c (xreadlinkat): New file.
14365         * lib/xreadlink.h (xreadlinkat): Declare it.
14366         * MODULES.html.sh (File system functions): Mention it.
14367
14368         areadlinkat: new module
14369         * lib/at-func.c (FUNC_FAIL): New define.
14370         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14371         * modules/areadlinkat: New module.
14372         * lib/linkat.c (areadlinkat): Move...
14373         * lib/areadlinkat.c (areadlinkat): ...to new file.
14374         * lib/areadlink.h (areadlinkat): Declare it.
14375         * modules/linkat (Depends-on): Add areadlinkat.
14376         * MODULES.html.sh (File system functions): Mention it.
14377         * modules/areadlinkat-tests: New test.
14378         * tests/test-areadlinkat.c: New file.
14379
14380         areadlink, areadlink-with-size: add tests
14381         * modules/areadlink-tests: New test.
14382         * modules/areadlink-with-size-tests: Likewise.
14383         * tests/test-areadlink.h: New file.
14384         * tests/test-areadlink.c: Likewise.
14385         * tests/test-areadlink-with-size.c: Likewise.
14386
14387         maint: minor cleanups
14388         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14389         _UNUSED_PARAMETER_ instead.
14390         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14391         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14392         * modules/linkat-tests (Files): Distribute test-link.h.
14393
14394         openat, utimens: whitespace cleanup
14395         * lib/openat.c: Prefer space throughout, rather than mix of 8
14396         spaces vs. tabs.
14397         * lib/at-func.c: Likewise.
14398         * lib/utimens.c: Likewise.
14399
14400         openat: avoid using wrong fd
14401         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14402         working directory chooses same fd.
14403         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14404
14405         mkdir, mkdirat: fix cygwin 1.5.x bug
14406         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14407         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14408         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14409         bug.
14410         (gl_PREREQ_MKDIR): Delete unused macro.
14411         * modules/mkdir (Files): Track file rename.
14412         (configure.ac): Update macro name.
14413         * modules/openat (Depends-on): Add mkdir.
14414         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14415
14416         mkdir, mkdirat: add tests
14417         * modules/mkdir-tests: New test.
14418         * tests/test-mkdir.h: New file.
14419         * tests/test-mkdir.c: Likewise.
14420         * tests/test-mkdirat.c: Likewise.
14421         * modules/openat-tests (Files): Add new files.
14422         (Makefile.am): Run new test.
14423
14424 2009-10-06  Eric Blake  <ebb9@byu.net>
14425
14426         doc: tweak *at function documentation
14427         * doc/posix-functions/faccessat.texi (faccessat): Mention
14428         known issue with replacement.
14429         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14430         * doc/posix-functions/linkat.texi (linkat): Likewise.
14431         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14432         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14433         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14434         * doc/posix-functions/renameat.texi (renameat): Likewise.
14435         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14436
14437         openat: fix GNU/Hurd bug in unlinkat
14438         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14439         broken.
14440         * doc/posix-functions/unlink.texi (unlink): Document this.
14441         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14442
14443         fdopendir: fix GNU/Hurd bug
14444         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14445         allowing non-directory fds.
14446         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14448         * modules/dirent (Makefile.am): Substitute it.
14449         * lib/dirent.in.h (fdopendir): Declare replacement.
14450         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14451         * tests/test-fdopendir.c (main): Test something other than
14452         /dev/null, since on Hurd that behaves like a directory.
14453
14454         test-symlink: port to GNU/Hurd
14455         * tests/test-symlink.h (test_symlink): Relax expected errno.
14456
14457         doc: tweak more cygwin information
14458         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14459         now compatible with glibc.
14460         * doc/posix-functions/getopt.texi (getopt): Likewise.
14461
14462         getopt-gnu: add another test
14463         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14464         guarantee behavior relied on by m4.
14465         * tests/test-getopt.c (main): Use it.
14466         * modules/getopt-posix-tests (Depends-on): Add setenv.
14467         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14468
14469         getopt: fix compilation on darwin
14470         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14471         include.
14472         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14473         Reported by Ludovic Courtès.
14474
14475 2009-10-06  Bruno Haible  <bruno@clisp.org>
14476
14477         * modules/size_max (Description): Discourage its use.
14478         Reported by Simon Josefsson.
14479
14480 2009-10-06  Jim Meyering  <meyering@redhat.com>
14481
14482         linkat: avoid compilation failure
14483         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14484
14485 2009-10-05  Eric Blake  <ebb9@byu.net>
14486
14487         linkat: support Linux 2.6.17
14488         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14489         linkat on Linux, but allow cache variable override.
14490         * lib/linkat.c (rpl_linkat): Define override.
14491         * modules/linkat (Depends-on): Add symlinkat.
14492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14493         * modules/unistd (Makefile.am): Substitute it.
14494         * lib/unistd.in.h (linkat): Declare replacement.
14495         Reported by Pádraig Brady.
14496
14497         quotearg: port test to systems with C.UTF-8 locale
14498         * tests/test-quotearg.c (struct result_strings): Add another
14499         member, differentiating between C.ASCII and C.UTF-8 handling.
14500         (compare_strings): Add parameter.
14501         (main): Adjust all callers.
14502
14503         getopt: avoid clash with FreeBSD _getopt_internal
14504         * lib/getopt.in.h (_getopt_internal): Override the name.
14505         * lib/getopt_int.h (includes): Pick up any overrides.
14506         Reported by Reuben Thomas.
14507
14508         hash: allow C89 compilation
14509         * lib/hash.c (check_tuning): Move declaration before statement.
14510         Reported by Reuben Thomas.
14511
14512 2009-10-05  Karl Berry  <karl@gnu.org>
14513
14514         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14515
14516 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14517             Bruno Haible  <bruno@clisp.org>
14518
14519         * lib/uname.c (uname): Use a table-driven algorithm to compute
14520         Windows NT versions.
14521
14522 2009-10-04  Bruno Haible  <bruno@clisp.org>
14523
14524         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14525         program_invocation_short_name.
14526         * modules/progname (configure.ac): Test for presence of
14527         program_invocation_short_name.
14528         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14529
14530 2009-10-04  Bruno Haible  <bruno@clisp.org>
14531
14532         * lib/progname.c (set_program_name): Fix comment.
14533         Reported by Jim Meyering.
14534
14535 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14536             Bruno Haible  <bruno@clisp.org>
14537
14538         * lib/uname.c: Include <string.h>.
14539         (uname): Do only one call to GetVersionEx in the common case.
14540
14541 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14542             Bruno Haible  <bruno@clisp.org>
14543
14544         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14545         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14546         (uname): Add support for Windows CE and various non-x86 CPU types.
14547
14548 2009-10-03  Bruno Haible  <bruno@clisp.org>
14549
14550         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14551         invocation to tests/configure.ac.
14552         Reported by Ian Beckwith <ianb@erislabs.net>.
14553
14554 2009-10-02  Eric Blake  <ebb9@byu.net>
14555
14556         fchdir: avoid compiler warning
14557         * lib/fchdir.c (canonicalize_file_name)
14558         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14559
14560         test-open: support mingw errno values
14561         * tests/test-open.h (test_open): Relax test.
14562         * tests/test-fopen.h (test_fopen): Likewise.
14563         * tests/test-openat-safer.c (main): Likewise.
14564
14565         open: fix opening directory on mingw
14566         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14567
14568         test-open: on GNU/Hurd, /dev/null is a directory
14569         * tests/test-fopen.h (main): Rename...
14570         (test_fopen): ...to this.  Use a guaranteed non-directory when
14571         confirming open behavior on trailing slash.
14572         * tests/test-openat-safer.c (main): Likewise.
14573         * tests/test-open.h (main): Likewise....
14574         (test_open): ...to this.
14575         * tests/test-fopen.c (main): Adjust caller.
14576         * tests/test-fopen-safer.c (main): Likewise.
14577         * tests/test-open.c (main): Likewise.
14578         * tests/test-fcntl-safer.c (main): Likewise.
14579         Reported by Samuel Thibault.
14580
14581         rename, fchdir: don't ignore chdir failure
14582         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14583         * lib/rename.c (rpl_rename) [W32]: Likewise.
14584         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14585         an empty destination directory if source cannot be renamed,
14586         although there is still possibility for failure.
14587         * doc/posix-functions/rename.texi (rename): Document the race.
14588         Reported by Jim Meyering.
14589
14590         maint: cleanup whitespace in recent commits
14591         * lib/rename.c (rpl_rename): Remove tabs.
14592         * tests/test-link.h (test_link): Likewise.
14593         * lib/fchdir.c (get_name): Likewise.
14594         Reported by Jim Meyering.
14595
14596 2009-10-02  Ben Pfaff  <blp@gnu.org>
14597
14598         relocatable-prog-wrapper: Add missing dependency on
14599         double-slash-root.
14600         * modules/relocatable-prog-wrapper: Add dependency.
14601         Reported by Ian Beckwith <ianb@erislabs.net>.
14602
14603 2009-10-02  Eric Blake  <ebb9@byu.net>
14604
14605         renameat: fix Solaris bugs
14606         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14607         needed fixing.
14608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14609         * modules/stdio (Makefile.am): Substitute it.
14610         * lib/stdio.in.h (renameat): Declare replacement.
14611         * lib/renameat.c (rpl_renameat): Implement fix.
14612
14613         renameat: new module
14614         * modules/renameat: New file.
14615         * lib/renameat.c (renameat): Likewise.
14616         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14618         * modules/stdio (Makefile.am): Substitute them.
14619         * lib/stdio.in.h (renameat): Declare it.
14620         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14621         * doc/posix-functions/renameat.texi (renameat): Likewise.
14622         * modules/renameat-tests: New test.
14623         * tests/test-renameat.c: Likewise.
14624
14625         rename: fix mingw bugs
14626         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14627         directory overwrite bugs.
14628
14629         rename: fix another cygwin 1.5 bug
14630         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14631         checks.
14632         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14633         unnecessary cygwin workarounds.  Also work around bug with moving
14634         full directory onto an empty one.
14635         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14636
14637         rename-dest-slash: merge into rename module
14638         * modules/rename-dest-slash (Status): Mark obsolete.
14639         (Depends-on): Add rename.
14640         (Files): Let rename do it all.
14641         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14642         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14643         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14644         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14645         * lib/rename.c (rpl_rename): Update comments.
14646
14647         rename: fix cygwin 1.5.x bugs
14648         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14649         * lib/rename.c (rpl_rename): Work around them.
14650         * modules/rename (Depends-on): Add same-inode.
14651
14652         rename: fix Solaris 10 bug
14653         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14654         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14655         was the only bug.
14656
14657         rename: fix Solaris 9 bug
14658         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14659         on non-directory.  Avoid calling exit.
14660         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14661         strdup.
14662         * modules/rename-tests (Depends-on): Drop lstat.
14663         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14664         (gl_PREREQ_RENAME): Delete unused macro.
14665
14666         rename-dest-slash: fix NetBSD bug
14667         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14668         links.
14669         * modules/rename-dest-slash (Depends-on): Add same-inode.
14670
14671         rename-tests: new test, exposes several platform bugs
14672         * modules/rename-tests: New file.
14673         * tests/test-rename.h: Likewise.
14674         * tests/test-rename.c: Likewise.
14675         * doc/posix-functions/rename.texi (rename): Improve documentation,
14676         including bugs that will eventually be fixed in gnulib.
14677
14678 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14679
14680         * lib/uname.c: Include <stdlib.h>
14681         (uname): Assume version info is available.
14682
14683 2009-10-02  Jim Meyering  <meyering@redhat.com>
14684
14685         gnu-web-doc-update: correct --help output
14686         * build-aux/gnu-web-doc-update: Make --help output relevant.
14687
14688         gnu-web-doc-update: add standard options
14689         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14690
14691         gnu-web-doc-update: New module.
14692         Use this script to automatically update the on-line web documentation
14693         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14694         * modules/gnu-web-doc-update: New file, from coreutils.
14695         * build-aux/gnu-web-doc-update: New script.
14696
14697 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14698
14699         link: LoadLibrary is not needed.
14700         * lib/link.c: Use GetModuleHandle.
14701
14702 2009-10-01  Eric Blake  <ebb9@byu.net>
14703
14704         getopt: bump serial number
14705         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14706         change.
14707
14708         tests: tighten link, rmdir, and remove tests
14709         * tests/test-link.h (includes): No need to use <config.h> here.
14710         Clean up if directory hard link was created, otherwise test for
14711         trailing '.'.
14712         * tests/test-linkat.c (main): Simplify.
14713         * tests/test-remove.c (main): Enhance test for trailing '.'.
14714         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14715
14716 2009-10-01  Jim Meyering  <meyering@redhat.com>
14717
14718         maint.mk: requiring "make major" was annoying, for a "minor" release.
14719         What is intended is "stable", to contrast with alpha and beta,
14720         so require "make stable", not "make major".
14721         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14722         (get_tool_versions): Likewise.
14723         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14724
14725 2009-09-30  Ben Pfaff  <blp@gnu.org>
14726
14727         Fix broken build of replacement for Windows tmpfile().
14728         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14729         flags argument added along with the 'mkostemp' module.
14730
14731 2009-09-28  Bruno Haible  <bruno@clisp.org>
14732
14733         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14734         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14735         to 'remove_elt'.
14736         (gl_list_remove): Update.
14737         * lib/gl_list.c (gl_list_remove): Update.
14738         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14739         to 'remove_elt'.
14740         (gl_oset_remove): Update.
14741         * lib/gl_list.c (gl_oset_remove): Update.
14742         Reported by Eric Blake.
14743
14744 2009-09-28  Eric Blake  <ebb9@byu.net>
14745
14746         doc: mention yet more cygwin 1.7 status
14747         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14748         cygwin.
14749         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14750         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14751
14752         argp: fix test failure
14753         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14754         that are not upper-case.  Pass correct range to tolower.
14755
14756 2009-09-27  Jim Meyering  <meyering@redhat.com>
14757
14758         test-yesno: work around sparc-dash here-document infelicity
14759         Without this change, the literal \177 byte in a here document
14760         would make dash 0.5.5.1-3 access uninitialized memory.
14761         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14762         Instead, use a marker, "@", and filter through tr to create the desired
14763         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14764
14765 2009-09-27  Bruno Haible  <bruno@clisp.org>
14766
14767         Disable untested support for new flavours of ACLs on AIX.
14768         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14769         progress.
14770         * lib/set-mode-acl.c (qset_acl): Likewise.
14771
14772 2008-12-07  Bruno Haible  <bruno@clisp.org>
14773
14774         Add support for new flavours of ACLs on AIX. (Untested.)
14775         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14776         (file_has_acl): Add support for newer AIX.
14777         * lib/set-mode-acl.c (qset_acl): Likewise.
14778         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14779         Rainer Tammer <tammer@tammer.net>.
14780
14781 2009-09-26  Eric Blake  <ebb9@byu.net>
14782
14783         argp: fix compilation of getopt
14784         * lib/getopt.in.h (includes): Use different guard than glibc.
14785         Reported by Sergey Poznyakoff.
14786
14787         doc: mention more cygwin 1.7 status
14788         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14789         bug.
14790         * doc/posix-functions/execl.texi (execl): Likewise.
14791         * doc/posix-functions/execle.texi (execle): Likewise.
14792         * doc/posix-functions/execlp.texi (execlp): Likewise.
14793         * doc/posix-functions/execv.texi (execv): Likewise.
14794         * doc/posix-functions/execve.texi (execve): Likewise.
14795         * doc/posix-functions/execvp.texi (execvp): Likewise.
14796         * doc/glibc-functions/canonicalize_file_name.texi
14797         (canonicalize_file_name): Cygwin 1.7 now provides this.
14798         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14799         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14800         on AT_SYMLINK_NOFOLLOW.
14801
14802 2009-09-24  Eric Blake  <ebb9@byu.net>
14803
14804         test-linkat: make test more robust
14805         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14806
14807         getopt: fix inclusion guards for cygwin
14808         * modules/getopt-posix (Depends-on): Add include-next.
14809         (Makefile.am): Substitute more items in replacement header.
14810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14811         <getopt.h>.
14812         * lib/getopt.in.h (includes): Use split inclusion guard, and
14813         prefer <getopt.h> over include <unistd.h> when one is present.
14814         (option): Also override name of 'struct option'.
14815
14816         same-inode: revert prior change; it is not yet ready
14817         * NEWS: Undo mention of this change.
14818         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14819         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14820         * lib/cycle-check.c (cycle_check): Likewise.
14821         * lib/same.c (same_name): Likewise.
14822         * lib/at-func2.c (at_func2): Likewise.
14823
14824 2009-09-23  Eric Blake  <ebb9@byu.net>
14825
14826         linkat: new module
14827         * modules/linkat: New file.
14828         * lib/at-func2.c (at_func2): Likewise.
14829         * lib/linkat.c (linkat): Likewise.
14830         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14831         * lib/openat-priv.h (at_func2): Add declaration.
14832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14833         * modules/unistd (Makefile.am): Substitute them.
14834         * lib/unistd.in.h (linkat): Declare it.
14835         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14836         * doc/posix-functions/linkat.texi (linkat): Likewise.
14837         * doc/posix-functions/link.texi (link): Tweak wording.
14838         * tests/test-link.c (main): Move guts...
14839         * tests/test-link.h (test_link): ...into new file.
14840         * modules/linkat-tests: New test.
14841         * tests/test-linkat.c: Likewise.
14842         * modules/link-tests (Files): Ship new file.
14843         (Depends-on): Add stdbool.
14844
14845         dirname: add library-safe mdir_name
14846         * lib/dirname.h (mdir_name): New prototype.
14847         * lib/dirname.c (dir_name): Move guts...
14848         (mdir_name): ...to new function that avoids xalloc_die.
14849
14850         fchdir: another mingw fix
14851         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14852         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14853         on mingw (where it has not yet been ported), and make it optional
14854         elsewhere.
14855         (_gl_register_fd): Use it.
14856
14857         same-inode: make SAME_INODE tri-state, to port to mingw
14858         * NEWS: Mention this change.
14859         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14860         st_ino always being 0.
14861         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14862         * lib/cycle-check.c (cycle_check): Likewise.
14863         * lib/same.c (same_name): Likewise.
14864
14865         lstat: avoid mingw compilation error
14866         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14867         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14868         lstat ourselves.
14869         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14870         was adequate.
14871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14872         the checks for lstat.
14873         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14874
14875         link: fix test failure on Solaris 9
14876         * lib/link.c (rpl_link): Don't assume link will catch bogus
14877         trailing slash on source.
14878
14879         test-symlinkat: enhance test
14880         * tests/test-readlink.c (main): Move guts...
14881         * tests/test-readlink.h (test_readlink): ...into new file.
14882         * tests/test-symlink.c (main): Move guts...
14883         * tests/test-symlink.h (test_symlink): ...into new file.
14884         * tests/test-symlinkat.c (main): Use new files for further
14885         coverage.
14886         (do_symlink, do_readlink): New helper functions.
14887         * modules/symlink-tests (Files): Ship new file.
14888         (Depends-on): Add stdbool.
14889         * modules/readlink-tests (Files): Ship new file.
14890         (Depends-on): Add stdbool.
14891         * modules/symlinkat-tests (Files): Use new files.
14892
14893 2009-09-23  Eric Blake  <ebb9@byu.net>
14894
14895         readlink: document portability issue with symlink length
14896         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14897         systems have bogus st_size on symlinks, and mention the
14898         areadlink-with-size module.
14899         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14900         * doc/posix-functions/readlink.texi (readlink): Mention the
14901         areadlink module, and ERANGE failure.
14902         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14903         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14904
14905         readlink: fix Solaris 9 bug with trailing slash
14906         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14907         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14908         * doc/posix-functions/readlink.texi (readlink): Document this.
14909         * modules/readlink-tests: New test.
14910         * tests/test-readlink.c: Likewise.
14911
14912         readlink: fix cygwin 1.5.x bug with return type
14913         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14914         * lib/unistd.in.h (readlink): Use ssize_t.
14915         * lib/readlink.c (readlink): Likewise.
14916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14917         * modules/unistd (Makefile.am): Substitute it.
14918         * lib/unistd.in.h (readlink): Declare replacement.
14919         * doc/posix-functions/readlink.texi (readlink): Document this.
14920
14921         symlink: use throughout gnulib
14922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
14923         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
14924         symlink is not used.
14925         * modules/symlinkat (Depends-on): Add symlink.
14926         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14927         * modules/canonicalize-tests (Depends-on): Likewise.
14928         * modules/lstat-tests (Depends-on): Likewise.
14929         * modules/openat-tests (Depends-on): Likewise.
14930         * modules/remove-tests (Depends-on): Likewise.
14931         * modules/rmdir-tests (Depends-on): Likewise.
14932         * modules/unlink-tests (Depends-on): Likewise.
14933         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
14934         * tests/test-canonicalize.c (symlink): Likewise.
14935         * tests/test-fstatat.c (symlink): Likewise.
14936         * tests/test-lstat.c (symlink): Likewise.
14937         * tests/test-remove.c (symlink): Likewise.
14938         * tests/test-rmdir.c (symlink): Likewise.
14939         * tests/test-unlink.c (symlink): Likewise.
14940         * tests/test-unlinkat.c (symlink): Likewise.
14941
14942         symlink: new module, for Solaris 9 bug
14943         * modules/symlink: New file.
14944         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14945         * lib/symlink.c: Likewise.
14946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14947         * modules/unistd (Makefile.am): Substitute them.
14948         * lib/unistd.in.h (symlink): Declare replacement.
14949         * MODULES.html.sh (File system functions): Mention it.
14950         * doc/posix-functions/symlink.texi (symlink): Likewise.
14951         * modules/symlink-tests: New test.
14952         * tests/test-symlink.c: Likewise.
14953
14954 2009-09-23  Bruno Haible  <bruno@clisp.org>
14955
14956         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
14957         when needed.
14958         Test case: gnulib-tool --import --with-tests atexit inttypes.
14959         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
14960
14961 2009-09-23  Bruno Haible  <bruno@clisp.org>
14962
14963         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
14964         subcommand, not in a subshell.
14965
14966 2009-09-22  Eric Blake  <ebb9@byu.net>
14967
14968         unistd: sort replacement declarations
14969         * lib/unistd.in.h: Sort declarations.
14970
14971         open, openat: minor optimization
14972         * lib/open.c (open): If open succeeded, len is non-zero.
14973         * lib/openat.c (rpl_openat): Likewise.
14974
14975         link-follow: ensure correct result
14976         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
14977         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
14978         distinguish between possible failures.
14979
14980 2009-09-21  Eric Blake  <ebb9@byu.net>
14981
14982         fts: avoid compiler warning
14983         * lib/fts.c (dirent_inode_sort_may_be_useful)
14984         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
14985
14986 2009-09-19  Bruno Haible  <bruno@clisp.org>
14987
14988         * lib/progreloc.c (canonicalize_file_name): New declaration.
14989
14990 2009-09-19  Eric Blake  <ebb9@byu.net>
14991
14992         link: fix quoting
14993         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
14994
14995         openat: fix openat bugs on Solaris 9
14996         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
14997         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
14998         * modules/openat (Depends-on): Add open.
14999         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15000         * modules/fcntl-h (Makefile.am): Substitute it.
15001         * lib/fcntl.in.h (openat): Declare replacement.
15002         * doc/posix-functions/openat.texi (openat): Document this.
15003
15004         openat: move fstatat and unlinkat into correct files
15005         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15006         compiled.
15007         * lib/openat.c (fstatat, unlinkat): Move...
15008         * lib/fstatat.c (fstatat): ...into correct files.
15009         * lib/unlinkat.c (unlinkat): Likewise.
15010
15011         openat: fix unlinkat bugs on Solaris 9
15012         * lib/unlinkat.c (unlinkat): New file.
15013         * modules/openat (Depends-on): Add unlink.
15014         (Files): Distribute it.
15015         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15016         trailing slash behavior is broken.
15017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15018         * modules/unistd (Makefile.am): Substitute it.
15019         * lib/unistd.in.h (unlinkat): Declare replacement.
15020         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15021
15022         openat: fix fstatat bugs on Solaris 9
15023         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15024         stat.
15025         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15026
15027         test-unlinkat: enhance test, to expose Solaris 9 bug
15028         * tests/test-unlink.c (main): Factor guts...
15029         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15030         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15031         * tests/test-rmdir.c (main): Adjust caller.
15032         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15033         (unlinker): New helper function.
15034         (rmdirat): Enhance check.
15035         * modules/rmdir-tests (Depends-on): Add stdbool.
15036         * modules/unlink-tests (Depends-on): Likewise.
15037         (Files): Add test-unlink.h.
15038         * modules/openat-tests (Files): Likewise.
15039         (Depends-on): Add unlinkdir.
15040
15041         test-fstatat: new test, to expose Solaris 9 bugs
15042         * tests/test-stat.c (main): Factor guts...
15043         * tests/test-stat.h (test_stat_func): ...into new file.
15044         * tests/test-lstat.c (main): Factor guts...
15045         * tests/test-lstat.h (test_lstat_func): ...into new file.
15046         * tests/test-fstatat.c: New file.
15047         * modules/stat-tests (Files): Add test-stat.h.
15048         * modules/lstat-tests (Files): Add test-lstat.h.
15049         (Depends-on): Add stdbool.
15050         * modules/openat-tests (Depends-on): Add pathmax.
15051         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15052         (Makefile.am): Run new test.
15053
15054         remove: new module, for mingw and Solaris 9 bugs
15055         * modules/remove: New file.
15056         * lib/remove.c: Likewise.
15057         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15059         * modules/stdio (Makefile.am): Use them.
15060         * lib/stdio.in.h (remove): Declare replacement.
15061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15062         * doc/posix-functions/remove.texi (remove): Likewise.
15063         * modules/remove-tests: New test.
15064         * tests/test-remove.c: Likewise.
15065
15066         unlink: new module, for Solaris 9 bug
15067         * modules/unlink: New file.
15068         * lib/unlink.c: Likewise.
15069         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15071         * modules/unistd (Makefile.am): Use them.
15072         * lib/unistd.in.h (stat): Declare replacement.
15073         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15074         * doc/posix-functions/unlink.texi (unlink): Likewise.
15075         * modules/unlink-tests: New test.
15076         * tests/test-unlink.c: Likewise.
15077
15078         lstat: fix Solaris 9 bug
15079         * lib/lstat.c (lstat): Also check for trailing slash on
15080         non-symlink, non-directories.  Use stat module to simplify logic.
15081         * doc/posix-functions/lstat.texi (lstat): Document it.
15082         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15083         (configure.ac): Check for symlink.
15084         * tests/test-lstat.c (main): Add more tests.
15085
15086         stat: add as dependency to other modules
15087         * modules/chown (Depends-on): Add stat.
15088         * modules/euidaccess (Depends-on): Likewise.
15089         * modules/fchdir (Depends-on): Likewise.
15090         * modules/isdir (Depends-on): Likewise.
15091         * modules/link (Depends-on): Likewise.
15092         * modules/lstat (Depends-on): Likewise.
15093         * modules/mkdir-p (Depends-on): Likewise.
15094         * modules/modechange (Depends-on): Likewise.
15095         * modules/open (Depends-on): Likewise.
15096         * modules/readlink (Depends-on): Likewise.
15097         * modules/same (Depends-on): Likewise.
15098
15099         stat: fix Solaris 9 bug
15100         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15101         slash.
15102         * lib/stat.c (rpl_stat): Work around it.
15103         * doc/posix-functions/stat.texi (stat): Update documentation.
15104
15105         stat: new module, for mingw bug
15106         * modules/stat: New file.
15107         * lib/stat.c: Likewise.
15108         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15110         * modules/sys_stat (Makefile.am): Use them.
15111         * lib/sys_stat.in.h (stat): Declare replacement.
15112         * lib/openat.c (fstatat): Deal with lstat and stat being function
15113         macros.
15114         * modules/openat (Depends-on): Add inline.
15115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15116         * doc/posix-functions/stat.texi (stat): Likewise.
15117         * modules/stat-tests: New test.
15118         * tests/test-stat.c: Likewise.
15119
15120 2009-09-19  Jim Meyering  <meyering@redhat.com>
15121
15122         syntax-check: detect unnecessary inclusion of canonicalize.h
15123         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15124
15125 2009-09-19  Eric Blake  <ebb9@byu.net>
15126
15127         canonicalize-lgpl: adjust clients to use correct header
15128         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15129         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15130         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15131         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15132         * lib/progreloc.c (includes): Likewise.
15133
15134 2009-09-19  Jim Meyering  <meyering@redhat.com>
15135
15136         test-posixtm.c: correct a comment
15137         * tests/test-posixtm.c: Correct first-line comment.
15138         Spotted by Eric Blake.
15139
15140 2009-09-16  Jim Meyering  <meyering@redhat.com>
15141
15142         posixtm-tests: make T const-correct; add a test case
15143         * tests/test-posixtm.c (T): Declare const.
15144         Add a test for -(2^31+1).
15145         Remove useless can-succeed-only-in-2002 test.
15146
15147         posixtm-tests: adjust the sole failing test
15148         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15149         expected output matches what mktime now produces.  Cross-checked via
15150         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15151
15152         posixtm: move #ifdef'd tests into a new module
15153         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15154         * tests/test-posixtm.c: ... this new file.
15155         * modules/posixtm-tests: New module.
15156
15157 2009-09-19  Eric Blake  <ebb9@byu.net>
15158
15159         openat: simplify use of at-func.c
15160         * lib/at-func.c (includes): Include prerequisites here, to
15161         simplify requirements on client files.
15162         * lib/openat-priv.h: Add double-inclusion guard.
15163         * lib/faccessat.c (includes): Simplify.
15164         * lib/fchmodat.c (includes): Likewise.
15165         * lib/fchownat.c (includes): Likewise.
15166         * lib/mkdirat.c (includes): Likewise.
15167         * lib/mkfifoat.c (includes): Likewise.
15168         * lib/symlinkat.c (includes): Likewise.
15169
15170         openat: allow return of fd 0
15171         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15172         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15173         unistd-safer.
15174         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15175         <fcntl.h>; this module does not leak fds.
15176         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15177         must be allowed to return 0, leaving openat_safer to add the
15178         safety.
15179         (openat_permissive): Avoid writing to just-opened fd 2 if
15180         restoring the current directory fails.
15181         * lib/openat-die.c (openat_restore_fail): Add comment.
15182         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15183         (save_cwd): Guarantee safe fd, but without use of open_safer.
15184         * tests/test-openat.c: New test.
15185         * modules/openat-tests (Files, Makefile.am): Distribute and build
15186         new file.
15187
15188         relocatable-prog-wrapper: fix build
15189         * modules/relocatable-prog-wrapper (Files): Update name of
15190         canonicalize m4 file, broken on 2009-09-17.
15191         Reported by emad hajjar <aleppos@hotmail.com>.
15192
15193 2009-09-19  Bruno Haible  <bruno@clisp.org>
15194
15195         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15196         * lib/safe-alloc.c: Likewise.
15197         Reported by Ian Beckwith <ianb@erislabs.net>.
15198
15199 2009-09-18  Bruno Haible  <bruno@clisp.org>
15200
15201         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15202         Reported by <erobles@sensacd.com.mx>.
15203
15204 2009-09-17  Eric Blake  <ebb9@byu.net>
15205
15206         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15207         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15208         slashes when checking if last component is missing.
15209         * tests/test-canonicalize.c (main): Test this.
15210
15211         canonicalize, canonicalize-lgpl: honor // if distinct from /
15212         * modules/canonicalize (Files): Add double-slash-root.m4.
15213         * modules/canonicalize-lgpl (Files): Likewise.
15214         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15215         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15216         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15217         fallback definition.
15218         (canonicalize_filename_mode): Use it to protect //.
15219         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15220         (__realpath): Likewise.
15221         * tests/test-canonicalize.c (main): Test this.
15222         * tests/test-canonicalize-lgpl.c (main): Likewise.
15223         * modules/canonicalize-tests (Depends-on): Add same-inode.
15224         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15225
15226         canonicalize-lgpl: fix glibc bug with trailing slash
15227         * m4/canonicalize-lgpl.m4: Move contents...
15228         * m4/canonicalize.m4: ...here.
15229         (gl_CANONICALIZE_LGPL): Factor realpath check...
15230         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15231         glibc 2.3.5 bug, fixed 2005-04-27.
15232         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15233         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15234         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15235         * modules/canonicalize-lgpl (Files): Manage file rename.
15236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15237         * modules/stdlib (Makefile.am): Substitute witness.
15238         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15239         is needed.
15240         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15241         replacement is required.
15242         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15243         * doc/glibc-functions/canonicalize_file_name.texi
15244         (canonicalize_file_name): Document this.
15245         * doc/posix-functions/realpath.texi (realpath): Likewise.
15246
15247         canonicalize-lgpl: reject non-directory with trailing slash
15248         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15249         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15250         catches failures in glibc 2.3.5.
15251         * tests/test-canonicalize.c (main): Likewise.
15252
15253         canonicalize-lgpl: use native realpath if it works
15254         * lib/canonicalize-lgpl.c (realpath): Guard with
15255         FUNC_REALPATH_WORKS.
15256         * lib/stdlib.in.h (realpath): Make declaration optional based on
15257         HAVE_REALPATH.
15258         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15259         native realpath works.
15260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15261         * modules/stdlib (Makefile.am): Substitute witness.
15262
15263         canonicalize, canonicalize-lgpl: use <stdlib.h>
15264         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15265         (Include): Mention <stdlib.h>.
15266         (configure.ac): Mention functions we provide.
15267         * modules/canonicalize (configure.ac): Likewise.
15268         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15269         realpath if canonicalize_file_name is missing.
15270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15271         * modules/stdlib (Makefile.am): Substitute witnesses.
15272         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15273         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15274         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15275         * NEWS: Document this.
15276         * doc/glibc-functions/canonicalize_file_name.texi
15277         (canonicalize_file_name): Likewise.
15278         * doc/posix-functions/realpath.texi (realpath): Likewise.
15279         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15280
15281         test-canonicalize: consolidate into single C program
15282         * tests/test-canonicalize.sh: Delete; move setup into...
15283         * tests/test-canonicalize.c (main): ...the program, making it
15284         easier to run in debugger.  Add some tests.
15285         * modules/canonicalize-tests (Files): Remove unused file.
15286         (Depends-on): Add progname.
15287         (configure.ac, Makefile.am): Simplify.
15288
15289         test-canonicalize-lgpl: consolidate into single C program
15290         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15291         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15292         easier to run in debugger.  Add some tests.
15293         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15294         (configure.ac, Makefile.am): Simplify.
15295
15296         canonicalize: avoid resolvepath
15297         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15298         unnecessary checks.
15299         * lib/canonicalize.c (includes): Simplify.
15300         (canonicalize_file_name): Drop resolvepath implementation.
15301         * modules/canonicalize (Depends-on): Drop filenamecat.
15302
15303         canonicalize: don't lose errno
15304         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15305         over calls to free.
15306
15307         canonicalize: simplify errno handling
15308         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15309         assignment.
15310
15311         canonicalize, canonicalize-lgpl: update module dependencies
15312         * modules/canonicalize (Depends-on): Add extensions, lstat,
15313         pathmax, stdlib.
15314         (Files): Drop pathmax.h.
15315         (configure.ac): Adjust macro name.
15316         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15317         lstat, stdlib, sys_stat.
15318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15319         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15320         extensions.
15321         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15322         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15323         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15324         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15325         declaration, if available.
15326         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15327         we can rely on the readlink module.
15328         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15329         (includes): Use <unistd.h> unconditionally.
15330
15331 2009-09-17  Eric Blake  <ebb9@byu.net>
15332
15333         maint: make Include sections of modules consistent
15334         * modules/alloca: Use only header name; no need to list #include.
15335         * modules/alloca-opt: Likewise.
15336         * modules/arpa_inet: Likewise.
15337         * modules/canon-host: Likewise.
15338         * modules/configmake: Likewise.
15339         * modules/dirent: Likewise.
15340         * modules/eealloc: Likewise.
15341         * modules/environ: Likewise.
15342         * modules/fchdir: Likewise.
15343         * modules/fcntl: Likewise.
15344         * modules/fcntl-h: Likewise.
15345         * modules/gethrxtime: Likewise.
15346         * modules/gettime: Likewise.
15347         * modules/ignore-value: Likewise.
15348         * modules/inet_ntop: Likewise.
15349         * modules/inet_pton: Likewise.
15350         * modules/inttypes: Likewise.
15351         * modules/isnand-nolibm: Likewise.
15352         * modules/isnanf-nolibm: Likewise.
15353         * modules/mbchar: Likewise.
15354         * modules/mbfile: Likewise.
15355         * modules/mbiter: Likewise.
15356         * modules/mbuiter: Likewise.
15357         * modules/netdb: Likewise.
15358         * modules/netinet_in: Likewise.
15359         * modules/nproc: Likewise.
15360         * modules/pagealign_alloc: Likewise.
15361         * modules/poll: Likewise.
15362         * modules/printf-frexp: Likewise.
15363         * modules/pthread: Likewise.
15364         * modules/putenv: Likewise.
15365         * modules/random_r: Likewise.
15366         * modules/relocatable-prog: Likewise.
15367         * modules/search: Likewise.
15368         * modules/select: Likewise.
15369         * modules/selinux-h: Likewise.
15370         * modules/settime: Likewise.
15371         * modules/signal: Likewise.
15372         * modules/size_max: Likewise.
15373         * modules/socklen: Likewise.
15374         * modules/ssize_t: Likewise.
15375         * modules/stdarg: Likewise.
15376         * modules/stdbool: Likewise.
15377         * modules/stddef: Likewise.
15378         * modules/stdint: Likewise.
15379         * modules/stdio: Likewise.
15380         * modules/stdlib: Likewise.
15381         * modules/string: Likewise.
15382         * modules/strings: Likewise.
15383         * modules/sys_file: Likewise.
15384         * modules/sys_ioctl: Likewise.
15385         * modules/sys_select: Likewise.
15386         * modules/sys_socket: Likewise.
15387         * modules/sys_stat: Likewise.
15388         * modules/sys_time: Likewise.
15389         * modules/sys_times: Likewise.
15390         * modules/sys_utsname: Likewise.
15391         * modules/sys_wait: Likewise.
15392         * modules/sysexits: Likewise.
15393         * modules/time: Likewise.
15394         * modules/times: Likewise.
15395         * modules/tmpfile: Likewise.
15396         * modules/trim: Likewise.
15397         * modules/unistd: Likewise.
15398         * modules/wchar: Likewise.
15399         * modules/wctype: Likewise.
15400
15401 2009-09-17  Bruno Haible  <bruno@clisp.org>
15402
15403         Make getdate.y compile on QNX and NetBSD 5 / i386.
15404         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15405         TIME_T_FITS_IN_LONG_INT.
15406         * lib/getdate.y (long_time_t): New type.
15407         (relative_time): Change type of 'seconds' field to long_time_t.
15408         (get_date): Update types of local variables. Check against overflow
15409         during conversion from long_time_t to time_t.
15410         Reported by Matt Kraai <kraai@ftbfs.org>
15411         and Hasso Tepper <hasso@netbsd.org>.
15412
15413 2009-09-17  Bruno Haible  <bruno@clisp.org>
15414
15415         * modules/COPYING: Update copyright years.
15416         * modules/README: Likeiwse.
15417         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15418         Reported by Ian Beckwith <ianb@erislabs.net>.
15419
15420 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15421
15422         * users.txt: Update references for gnuit package.
15423
15424 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15425
15426         * m4/getdelim.m4: Fix typo in copyright line.
15427
15428 2009-09-17  Bruno Haible  <bruno@clisp.org>
15429
15430         * lib/atoll.c: Use the standard header with GPL copyright.
15431         * lib/argz.in.h: Likewise.
15432         * lib/glob.c: Likewise.
15433         * lib/glob-libc.h: Likewise.
15434         * lib/random_r.c: Likewise.
15435         * lib/siglist.h: Likewise.
15436         * lib/strsignal.c: Likewise.
15437         Reported by Ian Beckwith <ianb@erislabs.net>.
15438
15439 2009-09-17  Eric Blake  <ebb9@byu.net>
15440
15441         rmdir: ensure correct dependency order
15442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15443
15444 2009-09-17  Bruno Haible  <bruno@clisp.org>
15445
15446         Disable assertion that fails on NetBSD 5 / i386.
15447         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15448         Reported by Sam Steingold <sds@gnu.org>
15449         and Hasso Tepper <hasso@netbsd.org>.
15450
15451 2009-09-16  Eric Blake  <ebb9@byu.net>
15452
15453         unlinkdir: port to mingw
15454         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15455         on which no one can unlink a directory.
15456
15457         stdlib: sort witness names
15458         * modules/stdlib (Makefile.am): Sort replacements.
15459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15460         * lib/stdlib.in.h: Likewise.
15461
15462         parse-duration-tests: avoid link failure
15463         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15464         LIBINTL.
15465         Reported by Tom G. Christensen.
15466
15467         openat-tests: ensure unlinkat behaves like rmdir
15468         * tests/test-rmdir.c (main): Factor guts...
15469         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15470         * modules/rmdir-tests (Files): Ship new file.
15471         * modules/openat-tests: New test.
15472         * tests/test-unlinkat.c: Likewise.
15473
15474         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15475         * modules/rmdir-errno (Status, Notice): Now obsolete.
15476
15477         rmdir: work around cygwin 1.5.x and mingw bugs
15478         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15479         * lib/rmdir.c (rmdir): Work around it.
15480         * modules/rmdir (Status, Notice): No longer obsolete.
15481         (Files): Add dos.m4.
15482         (Depends-on): Add unistd.
15483         (configure.ac): Set witnesses.
15484         (License): Relax to LGPLv2+.
15485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15486         * modules/unistd (Makefile.am): Substitute witnesses.
15487         * lib/unistd.in.h (rmdir): Declare replacement.
15488         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15489         * modules/rmdir-tests: New tests.
15490         * tests/test-rmdir.c: Likewise.
15491
15492 2009-09-15  Eric Blake  <ebb9@byu.net>
15493
15494         fchdir: improve use of replacement functions
15495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15498         REPLACE_CLOSEDIR.
15499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15500         * modules/sys_stat (Makefile.am): Substitute correct witness.
15501         * modules/dirent (Makefile.am): Likewise.
15502         * modules/unistd (Makefile.am): Likewise.
15503         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15504         * lib/unistd.in.h (dup): Likewise.
15505         * lib/sys_stat.in.h (fstat): Likewise.
15506
15507         maint: ignore gnulib-tool temp files
15508         * .gitignore: Ignore files created during gnulib-tool --test.
15509
15510 2009-09-13  Jim Meyering  <meyering@redhat.com>
15511
15512         posixtm: don't reject a time that specify "60" as the number of seconds
15513         * lib/posixtm.c (posixtime): The code to reject invalid dates
15514         would also reject a time specified with the .60 suffix.
15515         But POSIX allows that, in order to accommodate leap seconds.
15516         So don't reject it.
15517         (main): Adjust tests accordingly.
15518         * modules/posixtm (Depends-on): Add stpcpy.
15519
15520 2009-09-11  Jim Meyering  <meyering@redhat.com>
15521
15522         announce-gen: include [$release_type] in emitted Subject:
15523         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15524         e.g., [stable] in the emitted Subject: line.
15525
15526 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15527
15528         Remove obsolete macros from several modules.
15529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15530         obsolete Autoconf macros with their modern counterparts.
15531         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15532         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15533         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15534         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15538         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15539         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15540         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15541         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15543         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15544         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15545         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15547         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15548         * m4/time_r.m4 (gl_TIME_R): Likewise.
15549         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15550         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15552
15553         Fix copyright header in build-aux scripts.
15554         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15555         recommendation.
15556         * build-aux/ncftpput-ftp: Likewise.
15557         * build-aux/update-copyright: Likewise.
15558
15559 2009-09-09  Eric Blake  <ebb9@byu.net>
15560
15561         test-link: allow Linux choice of errno
15562         * tests/test-link.c (main): Relax test for alternate error.
15563
15564         strndup: fix improper m4 caching
15565         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15566         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15567         (gl_PREREQ_STRNDUP): Delete.
15568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15569         * modules/string (Makefile.am): Substitute it.
15570         * lib/string.in.h (strndup): Modernize prototype.
15571
15572         getcwd: port to mingw
15573         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15574         different from the POSIX assumptions made throughout the getcwd
15575         module; fortunately, the mingw getcwd does not need replacement.
15576         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15577         * modules/getcwd-tests: New test.
15578         * tests/test-getcwd.c: Likewise.
15579
15580         link: fix platform bugs
15581         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15582         * lib/link.c (link): Work around them.  Fix related mingw bug.
15583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15584         * modules/unistd (Makefile.am): Substitute it.
15585         * lib/unistd.in.h (link): Declare replacement.
15586         * doc/posix-functions/link.texi (link): Document this.
15587         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15588
15589         test-link: consolidate into single C program, test more cases
15590         * tests/test-link.sh: Delete.
15591         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15592         at least Cygwin and Solaris.
15593         * modules/link-tests (Files): Remove unused file.
15594         (Depends-on): Add errno, sys_stat.
15595         (Makefile.am): Simplify.
15596
15597 2009-09-08  Bruno Haible  <bruno@clisp.org>
15598
15599         Work around towlower, towupper bug on mingw.
15600         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15601         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15602         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15603         * doc/posix-functions/towupper.texi: Likewise.
15604         Reported by Eric Blake.
15605
15606 2009-09-08  Jim Meyering  <meyering@redhat.com>
15607
15608         build: don't try to run autoheader if we don't use it
15609         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15610         is not used in configure.ac.
15611
15612 2009-09-08  Eric Blake  <ebb9@byu.net>
15613
15614         euidaccess: fix compilation error
15615         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15616
15617         rawmemchr: relax license
15618         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15619         okay.
15620         Reported by Jim Meyering.
15621
15622         mkfifoat: new module
15623         * modules/mkfifoat: New file.
15624         * lib/mkfifoat.c: Likewise.
15625         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15627         * modules/sys_stat (Makefile.am): Use them.
15628         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15629         * MODULES.html.sh (File system functions): Mention module.
15630         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15631         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15632         * modules/mkfifoat-tests: New test.
15633         * tests/test-mkfifoat.c: Likewise.
15634
15635         strchrnul: relax license
15636         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15637         okay.
15638         Reported by Jim Meyering.
15639
15640 2009-09-08  Eric Blake  <ebb9@byu.net>
15641
15642         fstatat: fix compilation on Solaris
15643         * lib/fstatat.c (includes): Add fcntl.h.
15644         Reported by Pádraig Brady.
15645
15646 2009-09-07  Eric Blake  <ebb9@byu.net>
15647
15648         rename: modernize replacement
15649         * modules/rename (Depends-on): Add stdio.
15650         (configure.ac): Declare witness.
15651         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15652         stdio take care of replacement.
15653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15654         * modules/stdio (Makefile.am): Substitute them.
15655         * lib/stdio.in.h (rename): Declare replacement.
15656         * lib/rename.c (includes): Allow cross-compilation to non-windows
15657         machines.
15658         * doc/posix-functions/rename.texi (rename): Improve
15659         documentation.
15660
15661         stdio: sort witness names
15662         * modules/stdio (Makefile.am): Sort replacements.
15663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15664         * lib/stdio.in.h: Likewise.
15665
15666         getcwd: minor cleanups
15667         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15668         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15669
15670         openat: provide more convenience names
15671         * modules/faccessat (configure.ac): Add C witness.
15672         * lib/unistd.in.h (readlinkat): Fix typo.
15673         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15674         convenience wrappers.
15675         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15676         wrappers in syntax checks.
15677
15678 2009-09-06  Eric Blake  <ebb9@byu.net>
15679
15680         doc: fix comments in recent patches
15681         * lib/faccessat.c: Mention correct function.
15682         * lib/fchmodat.c: Likewise.
15683         * lib/fchownat.c: Likewise.
15684         * lib/symlinkat.c: Likewise.
15685         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15686         constants.
15687
15688         faccessat, symlinkat: continue cleanup of previous patch
15689         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15690         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15691         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15693         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15694         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15695         set.
15696
15697 2009-09-06  Bruno Haible  <bruno@clisp.org>
15698
15699         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15700         (fstatat): Declare if GNULIB_FSTATAT is set.
15701         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15702         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15703         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15704         * modules/fcntl-h (Files): Remove m4/openat.m4.
15705         * modules/sys_stat (Files): Remove m4/openat.m4.
15706         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15707         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15708         * modules/unistd (Files): Remove m4/openat.m4.
15709         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15710         GNULIB_OPENAT.
15711         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15712         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15714         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15715         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15716         gl_OPENAT_DEFAULTS.
15717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15718         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15719         Don't require gl_OPENAT_DEFAULTS.
15720         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15721         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15722         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15723         (gl_OPENAT_DEFAULTS): Remove macro.
15724
15725 2009-09-06  Bruno Haible  <bruno@clisp.org>
15726
15727         * modules/openat (configure.ac): Remove unneeded witness.
15728
15729 2009-09-06  Bruno Haible  <bruno@clisp.org>
15730
15731         Set errno to ENOSYS when a function is entirely unsupported.
15732         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15733         EOPNOTSUPP.
15734         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15735         * modules/chown (Depends-on): Remove errno.
15736
15737 2009-09-06  Bruno Haible  <bruno@clisp.org>
15738
15739         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15740
15741 2009-09-06  Bruno Haible  <bruno@clisp.org>
15742
15743         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15744
15745 2009-09-06  Ben Pfaff  <blp@gnu.org>
15746             Bruno Haible  <bruno@clisp.org>
15747
15748         Work around a glibc bug in strtok_r.
15749         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15750         Undefine if UNDEFINE_STRTOK_R is set.
15751         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15753         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15754         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15755         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15756         UNDEFINE_STRTOK_R.
15757         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15758
15759 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15760
15761         exclude: minor fix
15762         * lib/exclude.c: Include wctype.h
15763
15764 2009-09-06  Akim Demaille  <demaille@gostai.com>
15765
15766         bootstrap: improve error message
15767         * build-aux/bootstrap (find_tool): Upon failure, report the list
15768         of candidates.
15769         Honor the initial value of the envvar.
15770
15771 2009-09-05  Eric Blake  <ebb9@byu.net>
15772
15773         symlinkat: new module
15774         * modules/symlinkat: New file.
15775         * lib/symlinkat.c: Likewise.
15776         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15778         * modules/unistd (Makefile.am): Use them.
15779         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15780         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15781         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15782         * MODULES.html.sh (File system functions): Mention module.
15783         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15784         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15785         * modules/symlinkat-tests: New test.
15786         * tests/test-symlinkat.c: Likewise.
15787
15788         test-openat-safer: add more checks
15789         * tests/test-openat-safer.c (main): Check more code paths.
15790
15791 2009-09-05  Jim Meyering  <meyering@redhat.com>
15792
15793         syntax-check: detect unnecessary inclusion of openat.h
15794         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15795
15796 2009-09-05  Bruno Haible  <bruno@clisp.org>
15797
15798         Support towlower, towupper.
15799         * doc/posix-functions/towlower.texi: Mention module wctype.
15800         * doc/posix-functions/towupper.texi: Likewise.
15801         * lib/wctype.in.h (towlower, towupper): New functions.
15802         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15803         (ASSERT): New macro.
15804         (e): New variable.
15805         (main): Test also towlower, towupper. Test WEOF argument.
15806         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15807
15808 2009-09-05  Bruno Haible  <bruno@clisp.org>
15809
15810         Fix conversion behaviour when the input is invalid.
15811         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15812         mark occurring in first pass of indirect conversion.
15813         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15814         input.
15815         Found by clang's static analyzer.
15816
15817 2009-09-05  Bruno Haible  <bruno@clisp.org>
15818
15819         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15820         where direct conversion is possible.
15821
15822 2009-09-04  Eric Blake  <ebb9@byu.net>
15823
15824         openat: fail with ENOENT on empty name
15825         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15826         buffer.
15827
15828         link-follow: fix logic bug in prior patch
15829         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15830         reversed sense of yes and no in prior patch.  Avoid confusing
15831         compilation failure with desired semantics.
15832
15833         link-follow: accomodate mingw and cross-compilation
15834         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15835         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15836         cross-compilation results to -1, to make linkat easier to
15837         implement when cross-compiling.  Trivially support mingw.
15838         * modules/link-follow (configure.ac): Call new name.
15839         * NEWS: Mention this.
15840
15841 2009-09-03  Eric Blake  <ebb9@byu.net>
15842
15843         faccessat: compile replacement
15844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15845         needed.
15846
15847         fts: fix compilation error
15848         * lib/fts.c (includes): Re-add "openat.h", for
15849         openat_needs_fchdir.
15850
15851         faccessat: new module
15852         * modules/faccessat: New file.
15853         * lib/faccessat.c: Likewise.
15854         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15856         * modules/unistd (Makefile.am): Use it.
15857         * lib/unistd.in.h (faccessat): Declare it.
15858         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15859         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15860         * MODULES.html.sh (File system functions): Mention it.
15861         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15862         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15863
15864         euidaccess: prefer POSIX over non-standard implementation
15865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15866         * lib/euidaccess.c (euidaccess): Use it if available.
15867
15868         openat: make template easier to use
15869         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15870         AT_FUNC_F2 to be undefined.
15871         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15872         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15873         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15874         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15875         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15876         Likewise.
15877         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15878         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15879         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15880         Likewise.
15881
15882         openat: declare in POSIX headers
15883         * NEWS: Mention this.
15884         * modules/openat (configure.ac): Declare witnesses.
15885         (Depends-on): Add fcntl-h, sys_stat, unistd.
15886         (Include): Mention correct headers.
15887         * modules/fcntl-h (Depends-on): Add link-warning.
15888         (Files): Add openat.m4.
15889         (Makefile.am): Substitute witnesses.
15890         * modules/sys_stat (Files, Makefile.am): Likewise.
15891         * modules/unistd (Files, Makefile.am): Likewise.
15892         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15893         (gl_OPENAT_DEFAULTS): New macro.
15894         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15897         (SYS_STAT_H): Remove unused variable.
15898         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15899         * lib/fcntl--.h (includes): Remove unneeded header.
15900         * lib/openat-safer.c (includes): Likewise.
15901         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15902         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15903         appropriate headers.
15904         (__OPENAT_PREFIX): Delete.
15905         * lib/fcntl.in.h (openat): Provide declaration.
15906         (AT_FDCWD): Fix Solaris bug.
15907         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15908         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15909         * lib/fchmodat.c (includes):  Adjust to find declaration.
15910         * lib/fchownat.c (includes): Likewise.
15911         * lib/mkdirat.c (includes): Likewise.
15912         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15913         still visible.
15914
15915 2009-09-02  Eric Blake  <ebb9@byu.net>
15916
15917         errno: use consistently
15918         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15919         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
15920         * lib/canonicalize.c (ELOOP): Likewise.
15921         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
15922         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
15923         * lib/lchown.c (EOPNOTSUPP): Likewise.
15924         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
15925         * lib/savewd.c (ESTALE): Likewise.
15926         * lib/settime.c (ENOSYS): Likewise.
15927         * lib/utimens.c (ENOSYS): Likewise.
15928         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
15929         * lib/chdir-safer.c (ELOOP): Likewise.
15930         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
15931         * modules/c-stack (Depends-on): Add errno.
15932         * modules/canonicalize (Depends-on): Likewise.
15933         * modules/chdir-safer (Depends-on): Likewise.
15934         * modules/fdopendir (Depends-on): Likewise.
15935         * modules/inet_ntop (Depends-on): Likewise.
15936         * modules/inet_pton (Depends-on): Likewise.
15937         * modules/lchown (Depends-on): Likewise.
15938         * modules/openat (Depends-on): Likewise.
15939         * modules/savewd (Depends-on): Likewise.
15940         * modules/settime (Depends-on): Likewise.
15941         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
15942
15943         fts: avoid leaking fds
15944         * modules/fts (Depends-on): Add cloexec.
15945         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
15946         flag.
15947
15948         fts: make directory fds more robust
15949         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
15950         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
15951
15952         backupfile, chdir-long, fts, savedir: make safer
15953         * lib/backupfile.c (includes): Use "dirent--.h", since
15954         numbered_backup can write to stderr during readdir.
15955         * lib/savedir.c (includes): Likewise.
15956         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
15957         emulation can write to stderr on failure.
15958         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
15959         * lib/getcwd.c: Document why opendir_safer is unused.
15960         * lib/glob.c: Likewise.
15961         * lib/scandir.c: Likewise.
15962         * lib/openat-proc.c: Likewise, for open_safer.
15963         * modules/backupfile (Depends-on): Add dirent-safer.
15964         * modules/savedir (Depends-on): Likewise.
15965         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
15966         * modules/chdir-long (Depends-on): Add openat-safer.
15967
15968         openat-safer: new module
15969         * modules/openat-safer: New file.
15970         * lib/openat-safer.c: Likewise.
15971         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
15972         * lib/fcntl-safer.h (openat_safer): Declare.
15973         * lib/fcntl--.h (openat): Override.
15974         * MODULES.html.sh (File descriptor based I/O): Mention it.
15975         * lib/openat.h: Add double-inclusion guards.
15976         * lib/openat.c (includes): Only include "fcntl-safer.h", not
15977         "fcntl--.h", so we can implement openat.
15978         * modules/openat-safer-tests: New test.
15979         * tests/test-openat-safer.c: New file.
15980
15981         dirent-safer: new module
15982         * modules/dirent-safer: New file.
15983         * lib/dirent--.h: Likewise.
15984         * lib/dirent-safer.h: Likewise.
15985         * lib/opendir-safer.c: Likewise.
15986         * m4/dirent-safer.m4: Likewise.
15987         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
15988         * modules/dirent-safer-tests: New test.
15989         * tests/test-dirent-safer.c: New file.
15990         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
15991
15992         fdopendir: optimize on mingw
15993         * lib/unistd.in.h (_gl_directory_name): New prototype.
15994         * lib/fchdir.c (_gl_directory_name): Implement it.
15995         (fchdir): Use it to simplify implementation.
15996         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
15997         fchdir, when available, to avoid calling [f]chdir().
15998
15999         fdopendir: split into its own module
16000         * lib/openat.c (fdopendir): Move...
16001         * lib/fdopendir.c: ...into new file.
16002         * modules/fdopendir: New module.
16003         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16004         * modules/openat (Depends-on): Add fdopendir.
16005         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16006         fdopendir here.
16007         * modules/savedir (Depends-on): Only need fdopendir, not full
16008         openat.
16009         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16010         * lib/openat.h (fdopendir): Drop prototype.
16011         * lib/dirent.in.h (fdopendir): Provide prototype.
16012         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16013         * modules/dirent (Makefile.am): Substitute them.
16014         * MODULES.html.sh (File system functions): Mention it.
16015         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16016         * modules/fdopendir-tests: New file.
16017         * tests/test-fdopendir.c: Likewise.
16018
16019         fchdir: use more consistent macro convention
16020         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16021         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16022         REPLACE_FCHDIR, rather than relying on config.h macros.
16023         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16024         inside a single make-time REPLACE_FCHDIR block, rather than using
16025         the config.h FCHDIR_REPLACEMENT.
16026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16027         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16028         Manage fstat replacement.
16029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16030         REPLACE_FCHDIR.
16031         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16032         (Makefile.am): Substitute REPLACE_FCHDIR.
16033         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16034         FCHDIR_REPLACEMENT.
16035         * lib/dup-safer.c (dup_safer): Likewise.
16036         * lib/dup2.c (rpl_dup2): Likewise.
16037         * lib/dup3.c (rpl_dup3): Likewise.
16038         * lib/open.c (rpl_open): Likewise.
16039
16040         fchdir: simplify error handling, and support dup3
16041         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16042         stdbool, malloc-posix, realloc-posix.
16043         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16044         (ensure_dirs_slot): Return false on allocation failure.
16045         (rpl_dup2): Delete.
16046         (_gl_register_dup): New function.
16047         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16048         (_gl_register_fd): Close fd on allocation failure.
16049         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16050         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16051         prototype.
16052         (rpl_dup2_fchdir): Delete prototype.
16053         * lib/open.c (open): Update caller.
16054         * lib/dup2.c (dup2): Track fchdir metadata.
16055         * lib/dup3.c (dup3): Likewise.
16056         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16058
16059 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16060
16061         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16062         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16063         don't pass arguments to AC_OUTPUT.
16064
16065 2009-09-02  Bruno Haible  <bruno@clisp.org>
16066
16067         * modules/mkdtemp (License): Relicense under LGPLv2+.
16068         Reported by Paolo Bonzini.
16069
16070 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16071
16072         Replace uses of obsolete autoconf macros in Jim's modules.
16073         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16074         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16075         can evoke a warning from autoconf when run with -Wobsolete
16076         enabled.  They were declared obsolete for good reasons (see
16077         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16078         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16079         should not continue using the deprecated macros.
16080         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16081         obsolete Autoconf macros with modern counterparts.
16082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16083         * m4/dos.m4 (gl_AC_DOS): Likewise.
16084         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16086         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16087         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16088         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16090         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16091         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16092         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16093         Likewise.
16094         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16095         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16096         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16097         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16098         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16099         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16100
16101 2009-09-01  Eric Blake  <ebb9@byu.net>
16102
16103         fchdir: fix off-by-one bug in previous patch
16104         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16105         (_gl_unregister_fd): Delete useless if.
16106
16107 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16108
16109         maint.mk: sort the list of syntax-check rules
16110         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16111         easier to get a sense of progress when the rules are run sequentially
16112         and take a long time.
16113
16114 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16115
16116         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16117         * modules/netinet_in: Likewise.
16118         * modules/sys_file: Likewise.
16119         * modules/sys_ioctl: Likewise.
16120         * modules/sys_select: Likewise.
16121         * modules/sys_socket: Likewise.
16122         * modules/sys_stat: Likewise.
16123         * modules/sys_time: Likewise.
16124         * modules/sys_times: Likewise.
16125         * modules/sys_utsname: Likewise.
16126         * modules/sys_wait: Likewise.
16127
16128 2009-09-01  Jim Meyering  <meyering@redhat.com>
16129
16130         fts: help ensure that return values are not ignored
16131         * lib/fts_.h (__GNUC_PREREQ): Define.
16132         (__attribute_warn_unused_result__): Define.
16133         (fts_children, fts_close, fts_open, fts_read): Declare with
16134         __attribute_warn_unused_result__.
16135
16136         fts: fts_close now fails also when closing a dir file descriptor fails
16137         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16138         and propagate to caller, along with errno.
16139
16140         announce-gen: correct formatting in --help output
16141         * build-aux/announce-gen (usage): Move the one-line description in
16142         --help output "up", to where it belongs, just after Usage:.
16143
16144 2009-08-31  Eric Blake  <ebb9@byu.net>
16145
16146         fchdir: port to mingw
16147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16148         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16149         opened, then use a substitute.
16150         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16151         replacement.
16152         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16153         (_gl_register_fd): No need to check stat if open already filters
16154         all directories.
16155         (fchdir): Fix error condition to match POSIX.
16156         * modules/fchdir (Depends-on): Add sys_stat.
16157         * doc/posix-functions/open.texi (open): Document the limitation.
16158         * modules/fchdir-tests: New file.
16159         * tests/test-fchdir.c: Likewise.
16160
16161         canonicalize: allow cross-testing from cygwin to mingw
16162         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16163         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16164         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16165         Likewise.
16166         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16167         target does not support symlinks.
16168         * tests/test-canonicalize-lgpl.sh: Likewise.
16169
16170         chown: avoid compilation warning on mingw
16171         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16172         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16173         mingw.
16174         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16175         * modules/chown (Depends-on): Add errno.
16176
16177 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16178
16179         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16180         command.
16181
16182 2009-08-31  Jim Meyering  <meyering@redhat.com>
16183
16184         canonicalize: remove useless initialization
16185         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16186         initialization of local, "end".
16187
16188 2009-08-30  Bruno Haible  <bruno@clisp.org>
16189
16190         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16191         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16192         ENOSYS.
16193
16194 2009-08-30  Bruno Haible  <bruno@clisp.org>
16195
16196         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16197         /usr/xpg4/bin/tr when it exists.
16198         * tests/test-pipe-filter-gi1.sh: Likewise.
16199
16200 2009-08-30  Bruno Haible  <bruno@clisp.org>
16201
16202         Work around deficient /usr/bin/id program on Solaris.
16203         * tests/test-file-has-acl.sh (ID): New variable.
16204         * tests/test-set-mode-acl.sh (ID): Likewise.
16205         * tests/test-copy-acl.sh (ID): Likewise.
16206         * tests/test-copy-file.sh (ID): Likewise.
16207
16208 2009-08-30  Bruno Haible  <bruno@clisp.org>
16209
16210         New module 'xstriconveh'.
16211         * lib/xstriconveh.h: New file.
16212         * lib/xstriconveh.c: New file.
16213         * modules/xstriconveh: New file.
16214
16215 2009-08-30  Bruno Haible  <bruno@clisp.org>
16216
16217         Make it easier to use mem_cd_iconveh.
16218         * lib/striconveh.h (iconveh_t): New type.
16219         (iconveh_open, iconveh_close): New declarations.
16220         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16221         with a single 'const iconveh_t *' argument.
16222         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16223         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16224         with a single 'const iconveh_t *' argument.
16225         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16226         * tests/test-striconveh.c (main): Update.
16227         * NEWS: Mention the change.
16228
16229 2009-08-30  Bruno Haible  <bruno@clisp.org>
16230
16231         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16232         problem.
16233
16234 2009-08-30  Bruno Haible  <bruno@clisp.org>
16235
16236         Work around iconv_open problem on Solaris.
16237         * lib/iconv_open-solaris.gperf: New file.
16238         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16239         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16240         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16241         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16242         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16243         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16244
16245 2009-08-29  Jim Meyering  <meyering@redhat.com>
16246
16247         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16248         * top/maint.mk (cvs-check): Remove target; it was just an alias
16249         to the better-named vc-diff-check.
16250         (maintainer-distcheck): Remove rule.  It was used only from
16251         the (alpha/beta/major) target, and all of its commands but one
16252         were coreutils-specific.
16253         (vc-dist): Remove rule.
16254         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16255         Run vc-diff-check, not vc-dist.
16256         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16257
16258 2009-08-27  Bruno Haible  <bruno@clisp.org>
16259
16260         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16261         of 0.
16262
16263 2009-08-27  Bruno Haible  <bruno@clisp.org>
16264
16265         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16266         compilers.
16267         * doc/func.texi: Document the SunPRO C bug.
16268
16269 2009-08-27  Bruno Haible  <bruno@clisp.org>
16270
16271         Fix link error on Solaris.
16272         * tests/test-parse-duration.c (xstrdup): Remove function.
16273
16274 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16275
16276         ignore-value: handle pointer types, too
16277         * lib/ignore-value.h (__attribute__): Remove definition.
16278         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16279         of a more concise and more-often effective "(void) i" statement.
16280         (ignore_ptr): New function to suppress warnings from functions that
16281         return pointers, and to make it explicit that one function doesn't
16282         handle all cases.
16283
16284 2009-08-25  Bruno Haible  <bruno@clisp.org>
16285
16286         dup2: work around a Linux bug.
16287         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16288         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16289         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16290         Reported by Simon Josefsson.
16291
16292 2009-08-25  Jim Meyering  <meyering@redhat.com>
16293
16294         libguestfs uses gnulib
16295         * users.txt: Add libguestfs.
16296
16297 2009-08-24  Eric Blake  <ebb9@byu.net>
16298
16299         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16300         * lib/pipe2.c (includes): Add binary-io.h.
16301         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16302
16303 2009-08-24  Bruno Haible  <bruno@clisp.org>
16304
16305         Tolerate declared but missing accept4 syscall.
16306         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16307         available.
16308         * lib/sys_socket.in.h (accept4): If the function is already present,
16309         override it.
16310         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16311         * modules/accept4 (Makefile.am): Compile accept4.c always.
16312         Reported by Paolo Bonzini and Eric Blake.
16313
16314 2009-08-23  Bruno Haible  <bruno@clisp.org>
16315
16316         New module 'accept4'.
16317         * lib/sys_socket.in.h (accept4): New declaration.
16318         * lib/accept4.c: New file.
16319         * m4/accept4.m4: New file.
16320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16321         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16322         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16323         HAVE_ACCEPT4.
16324         * modules/accept4: New file.
16325         * doc/glibc-functions/accept4.texi: Mention the new module.
16326
16327 2009-08-24  Jim Meyering  <meyering@redhat.com>
16328
16329         progname: also set global program_invocation_name, when possible
16330         Before this change, a libtool-enabled program that calls glibc's
16331         error function would report the program name as
16332         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16333         * modules/progname (configure.ac): Check for a declaration of
16334         program_invocation_name.
16335         * lib/progname.c:  Include <errno.h>.
16336         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16337         Set program_invocation_name.
16338
16339 2009-08-23  Bruno Haible  <bruno@clisp.org>
16340
16341         * lib/dup3.c: Include <string.h>.
16342
16343 2009-08-23  Bruno Haible  <bruno@clisp.org>
16344
16345         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16346         * lib/pipe2.c (pipe2): Likewise.
16347         Suggested by Eric Blake.
16348
16349 2009-08-23  Bruno Haible  <bruno@clisp.org>
16350
16351         Tolerate declared but missing dup3 syscall.
16352         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16353         * lib/unistd.in.h (dup3): If the function is already present,
16354         override it.
16355         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16356         * modules/dup3 (Makefile.am): Compile dup3.c always.
16357         Reported by Paolo Bonzini.
16358
16359 2009-08-23  Bruno Haible  <bruno@clisp.org>
16360
16361         Tolerate declared but missing pipe2 syscall.
16362         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16363         available.
16364         * lib/unistd.in.h (pipe2): If the function is already present,
16365         override it.
16366         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16367         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16368         Reported by Paolo Bonzini.
16369
16370 2009-08-23  Bruno Haible  <bruno@clisp.org>
16371
16372         * lib/pipe2.c (pipe2): Move #ifs inside function.
16373
16374 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16375
16376         quotearg: document limitations of quote_these_too
16377         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16378         those limitations are created.
16379         * lib/quotearg.h (set_char_quoting): Document that digits and
16380         letters that are special after backslash are not permitted.
16381         (quotearg_char): Cross-reference set_char_quoting documentation.
16382
16383 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16384
16385         quotearg: implement custom_quoting_style
16386         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16387         right_quote fields.
16388         (set_custom_quoting): New public function.
16389         (quotearg_buffer_restyled): Add left_quote and right_quote
16390         arguments, handle them very much like locale quoting, and update
16391         all uses.
16392         (quotearg_n_custom): New public function.
16393         (quotearg_n_custom_mem): New public function.
16394         (quotearg_custom): New public function.
16395         (quotearg_custom_mem): New public function.
16396         * lib/quotearg.h: Prototype and document new public functions.
16397         (enum quoting_style): For escape_quoting_style and
16398         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16399         ignored even though they're otherwise like c_quoting_style.
16400         Add custom_quoting_style member and document with comparison to
16401         clocale_quoting_style.
16402         * tests/test-quotearg.c (custom_quotes): New array.
16403         (custom_results): New array.
16404         (main): Extend to test custom quoting.
16405
16406 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16407
16408         quotearg: fix right quote escaping when it's in quote_these_too
16409         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16410         quote, be sure to prepend only one backslash.
16411         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16412         (main): Test it.
16413
16414 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16415
16416         quotearg-tests: test escaping of embedded locale quotes
16417         * tests/test-quotearg.c (struct result_strings): Add member for
16418         new input.
16419         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16420         (inputs): Add new input.
16421         (results_g): Add expected results.
16422         (flag_results): Likewise.
16423         (locale_results): Likewise.
16424         (compare_strings): Check those.
16425
16426 2009-08-23  Bruno Haible  <bruno@clisp.org>
16427
16428         Tests for module 'dup3'.
16429         * modules/dup3-tests: New file.
16430         * tests/test-dup3.c: New file.
16431
16432         New module 'dup3'.
16433         * lib/unistd.in.h (dup3): New declaration.
16434         * lib/dup3.c: New file.
16435         * m4/dup3.m4: New file.
16436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16437         HAVE_DUP3.
16438         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16439         * modules/dup3: New file.
16440         * doc/glibc-functions/dup3.texi: Mention the new module.
16441
16442 2009-08-23  Bruno Haible  <bruno@clisp.org>
16443
16444         Tweak the dup2 test.
16445         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16446         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16447         the test file is still empty. Fix argument order of lseek.
16448
16449 2009-08-23  Bruno Haible  <bruno@clisp.org>
16450
16451         Avoid test link errors when the modules getopt-gnu, gettext are used.
16452         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16454
16455 2009-08-23  Bruno Haible  <bruno@clisp.org>
16456
16457         Fix getdtablesize() on mingw.
16458         * lib/getdtablesize.c (getdtablesize): Implement differently.
16459         * lib/unistd.in.h (getdtablesize): Improve comment.
16460
16461 2009-08-23  Bruno Haible  <bruno@clisp.org>
16462
16463         New module 'mkostemp'.
16464         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16465         * lib/stdlib.in.h (mksotemp): New declaration.
16466         * lib/mkostemp.c: New file, from glibc with modifications.
16467         * lib/tempname.h (GT_FILE): Remove outdated comment.
16468         (gen_tempname): Add flags argument.
16469         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16470         (__GT_FILE): Map to 1.
16471         (small_open, large_open): Remove macros.
16472         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16473         * lib/mkstemp.c (mkstemp): Update.
16474         * lib/mkdtemp.c (mkdtemp): Likewise.
16475         * m4/mkostemp.m4: New file.
16476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16477         HAVE_MKOSTEMP.
16478         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16479         HAVE_MKOSTEMP.
16480         * modules/mkostemp: New file, based on modules/mkstemp.
16481         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16482         * NEWS: Mention the change.
16483
16484 2009-08-23  Bruno Haible  <bruno@clisp.org>
16485
16486         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16487         Reported by Eric Blake.
16488
16489 2009-08-23  Bruno Haible  <bruno@clisp.org>
16490
16491         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16492         Reported by Eric Blake.
16493
16494 2009-08-23  Bruno Haible  <bruno@clisp.org>
16495
16496         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16497         * modules/pipe2 (Depends-on): Likewise.
16498
16499 2009-08-23  Eric Blake  <ebb9@byu.net>
16500
16501         fcntl-h: add O_TTY_INIT support
16502         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16503         * tests/test-fcntl-h.c (o): Test it.
16504         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16505
16506         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16507         * modules/fcntl: Move <fcntl.h> header replacement...
16508         * modules/fcntl-h: ...to new name, so as not to collide with
16509         like-named function.
16510         * tests/test-fcntl.c: Rename...
16511         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16512         * modules/fcntl-tests: Rename...
16513         * modules/fcntl-h-tests: ...to this.  Update test file name.
16514         * modules/chdir-long (Depends-on): Update clients.
16515         * modules/chdir-safer (Depends-on): Likewise.
16516         * modules/fcntl-safer (Depends-on): Likewise.
16517         * modules/fts (Depends-on): Likewise.
16518         * modules/mkancesdirs (Depends-on): Likewise.
16519         * modules/mkdir-p (Depends-on): Likewise.
16520         * modules/open (Depends-on): Likewise.
16521         * modules/savewd (Depends-on): Likewise.
16522         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16523         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16524
16525 2009-08-22  Bruno Haible  <bruno@clisp.org>
16526
16527         * modules/binary-io (License): Relicense under LGPL.
16528         * modules/pipe2 (License): Likewise.
16529
16530 2009-08-22  Bruno Haible  <bruno@clisp.org>
16531
16532         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16533         return value.
16534         * lib/pipe-filter-gi.c (filter_init): Likewise.
16535         Reported by Eric Blake.
16536
16537 2009-08-22  Bruno Haible  <bruno@clisp.org>
16538
16539         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16540         * modules/pipe (Depends-on): Add pipe2.
16541
16542 2009-08-22  Bruno Haible  <bruno@clisp.org>
16543
16544         Tests for module 'pipe2'.
16545         * modules/pipe2-tests: New file.
16546         * tests/test-pipe2.c: New file.
16547
16548         New module 'pipe2'.
16549         * lib/unistd.in.h (pipe2): New declaration.
16550         * lib/pipe2.c: New file.
16551         * m4/pipe2.m4: New file.
16552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16553         HAVE_PIPE2.
16554         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16555         * modules/pipe2: New file.
16556         * doc/glibc-functions/pipe2.texi: Mention the new module.
16557
16558 2009-08-22  Bruno Haible  <bruno@clisp.org>
16559
16560         Reference some new glibc functions.
16561         * doc/glibc-functions/accept4.texi: New file.
16562         * doc/glibc-functions/dup3.texi: New file.
16563         * doc/glibc-functions/mkostemp.texi: New file.
16564         * doc/glibc-functions/pipe2.texi: New file.
16565         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16566         (Glibc sys/socket.h): Refer to accept4.
16567         (Glibc unistd.h): Refer to dup3, pipe2.
16568         Reported by Eric Blake.
16569
16570 2009-08-22  Jim Meyering  <meyering@redhat.com>
16571             Bruno Haible  <bruno@clisp.org>
16572
16573         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16574         This makes it so packages using automake-1.11's silent-rules option
16575         can print e.g., a single "GEN    configmake.h" line, rather than
16576         the 30+ statements that perform the job.  If you want to see the
16577         actual commands, you can still run "make V=1".
16578         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16579         so that make output is abbreviated when those variables are defined
16580         appropriately.
16581         * modules/argz: Likewise.
16582         * modules/arpa_inet: Likewise.
16583         * modules/byteswap: Likewise.
16584         * modules/configmake: Likewise.
16585         * modules/dirent: Likewise.
16586         * modules/errno: Likewise.
16587         * modules/fcntl: Likewise.
16588         * modules/float: Likewise.
16589         * modules/fnmatch: Likewise.
16590         * modules/getopt-posix: Likewise.
16591         * modules/glob: Likewise.
16592         * modules/iconv_open: Likewise.
16593         * modules/inttypes: Likewise.
16594         * modules/localcharset: Likewise.
16595         * modules/locale: Likewise.
16596         * modules/math: Likewise.
16597         * modules/netdb: Likewise.
16598         * modules/netinet_in: Likewise.
16599         * modules/poll: Likewise.
16600         * modules/posix_spawnp-tests: Likewise.
16601         * modules/sched: Likewise.
16602         * modules/search: Likewise.
16603         * modules/selinux-h: Likewise.
16604         * modules/signal: Likewise.
16605         * modules/spawn: Likewise.
16606         * modules/stdarg: Likewise.
16607         * modules/stdbool: Likewise.
16608         * modules/stddef: Likewise.
16609         * modules/stdint: Likewise.
16610         * modules/stdio: Likewise.
16611         * modules/stdlib: Likewise.
16612         * modules/string: Likewise.
16613         * modules/strings: Likewise.
16614         * modules/sys_file: Likewise.
16615         * modules/sys_ioctl: Likewise.
16616         * modules/sys_select: Likewise.
16617         * modules/sys_socket: Likewise.
16618         * modules/sys_stat: Likewise.
16619         * modules/sys_time: Likewise.
16620         * modules/sys_times: Likewise.
16621         * modules/sys_utsname: Likewise.
16622         * modules/sys_wait: Likewise.
16623         * modules/sysexits: Likewise.
16624         * modules/time: Likewise.
16625         * modules/unistd: Likewise.
16626         * modules/wchar: Likewise.
16627         * modules/wctype: Likewise.
16628
16629 2009-08-22  Jim Meyering  <meyering@redhat.com>
16630
16631         announce-gen: detect write failure
16632         * build-aux/announce-gen: Add Coda at end.
16633         Remove equivalent-but-more-verbose block at top.
16634
16635 2009-08-19  Akim Demaille  <demaille@gostai.com>
16636
16637         bootstrap: --help to stdout.
16638         * bootstrap (usage): Don't send --help to stderr.
16639         Use a here doc instead of a long string.
16640
16641 2009-08-21  Eric Blake  <ebb9@byu.net>
16642
16643         test-popen-safer: split from test-popen
16644         * tests/test-popen.c (main): Move...
16645         * tests/test-popen.h: ...into new file.
16646         * tests/test-popen-safer2.c: New file.
16647         * modules/popen-tests (Files): Add test-popen.h.
16648         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16649         Suggested by Bruno Haible.
16650
16651         test-fcntl-safer: split from test-open
16652         * tests/test-open.c (main): Move...
16653         * tests/test-open.h: ...into new file.
16654         * tests/test-fcntl-safer.c: New file.
16655         * modules/open-tests (Files): Add test-open.h.
16656         * modules/fcntl-safer-tests: New file.
16657         Suggested by Bruno Haible.
16658
16659         test-fopen-safer: split from test-fopen
16660         * tests/test-fopen.c (main): Move...
16661         * tests/test-fopen.h: ...into new file.
16662         * tests/test-fopen-safer.c: New file.
16663         * modules/fopen-tests (Files): Add test-fopen.h.
16664         * modules/fopen-safer-tests: New file.
16665         Suggested by Bruno Haible.
16666
16667 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16668
16669         popen-safer: test O_CLOEXEC at run-time.
16670         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16671
16672 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16673
16674         fcntl: move more flags to the header
16675         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16676         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16677         * lib/fcntl.in.h: Do both things here.
16678
16679 2009-08-21  Jim Meyering  <meyering@redhat.com>
16680
16681         consistently remove $@-t before redirecting to it
16682         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16683         * modules/alloca-opt: Likewise.
16684         * modules/byteswap: Likewise.
16685         * modules/fnmatch: Likewise.
16686         * modules/getopt-posix: Likewise.
16687         * modules/glob: Likewise.
16688         * modules/poll: Likewise.
16689         * modules/posix_spawnp-tests: Likewise.
16690         * modules/sys_socket: Likewise.
16691         * modules/sysexits: Likewise.
16692
16693 2009-08-21  Eric Blake  <ebb9@byu.net>
16694
16695         popen: simplify access to original popen
16696         * lib/popen.c (rpl_popen): No need to worry about popen being a
16697         macro.
16698         Reported by Bruno Haible.
16699
16700 2009-08-20  Eric Blake  <ebb9@byu.net>
16701
16702         build: avoid some compiler warnings
16703         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16704         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16705         type.
16706         (new_exclude_segment, excluded_file_pattern_p)
16707         (excluded_file_name_p): Reduce scope.
16708         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16709         old-style declaration.
16710
16711 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16712
16713         * tests/test-exclude1.sh: Handle Windows EOL.
16714         * tests/test-exclude2.sh: Likewise.
16715         * tests/test-exclude3.sh: Likewise.
16716         * tests/test-exclude4.sh: Likewise.
16717         * tests/test-exclude5.sh: Likewise.
16718         * tests/test-exclude6.sh: Likewise.
16719         * tests/test-exclude7.sh: Likewise.
16720
16721 2009-08-19  Akim Demaille  <demaille@gostai.com>
16722
16723         bootstrap: find sha1sum when named gsha1sum.
16724         * bootstrap (find_tool): New.
16725         ($SHA1SUM): New.
16726         Use it.
16727
16728 2009-08-20  Jim Meyering  <meyering@redhat.com>
16729
16730         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16731         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16732         expression that converts "." in a file name to "\." in the resulting
16733         regexp.  Start with a dummy statement, so that prior shell variable
16734         definitions are expanded portably.  Reported by Simon Josefsson.
16735
16736 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16737
16738         Fix polling for writeability of a screen buffer.
16739         * lib/poll.c: Distinguish input and screen buffers for the
16740         Win32 implementation.
16741         * lib/select.c: Likewise.
16742
16743 2009-08-19  Eric Blake  <ebb9@byu.net>
16744
16745         popen-safer: prevent popen from clobbering std descriptors
16746         * modules/popen-safer: New file.
16747         * lib/popen-safer.c: Likewise.
16748         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16749         * lib/stdio--.h (popen): Provide override.
16750         * lib/stdio-safer.h (popen_safer): Provide declaration.
16751         * tests/test-popen.c (includes): Partially test this.
16752         * modules/popen-safer-tests: New file, for more tests.
16753         * tests/test-popen-safer.c: Likewise.
16754         * MODULES.html.sh (file stream based Input/Output): Mention it.
16755
16756         tests: test some of the *-safer modules
16757         * modules/fopen-safer (Depends-on): Add fopen.
16758         * modules/fcntl-safer (Depends-on): Add fcntl.
16759         * modules/stdlib-safer (Depends-on): Add stdlib.
16760         (configure.ac): Set indicator.
16761         * modules/unistd-safer (configure.ac): Likewise.
16762         * modules/tmpfile-safer (configure.ac): Likewise.
16763         (Depends-on): Add tmpfile.
16764         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16765         active.
16766         * tests/test-fopen.c (includes): Test safer versions when they are
16767         in use.
16768         * tests/test-open.c (includes): Likewise.
16769
16770         popen: fix cygwin 1.5 bug when stdin closed
16771         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16772         * modules/popen: New file.
16773         * modules/popen-tests: Likewise.
16774         * tests/test-popen.c: Likewise.
16775         * m4/popen.m4: Likewise.
16776         * lib/popen.c: Likewise.
16777         * lib/stdio.in.h (popen): New declaration.
16778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16779         * modules/stdio (Makefile.am): Likewise.
16780         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16781
16782 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16783
16784         maint.mk: give full control over update-copyright exclusions
16785         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16786         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16787         (update-copyright): Don't force inclusion of top-level
16788         ChangeLog.  Don't force exclusion of all COPYING files, but make
16789         them the default exclusion instead.
16790
16791 2009-08-16  Bruno Haible  <bruno@clisp.org>
16792
16793         Fix test failures on Solaris 10.
16794         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16795         tests when Solaris iconv() is used.
16796         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16797         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16798         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16799         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16800         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16801
16802 2009-08-16  Bruno Haible  <bruno@clisp.org>
16803
16804         Fix test failures on Solaris 10.
16805         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16806         'tr' program and pass it as first argument.
16807         * tests/test-pipe-filter-gi1.sh: Likewise.
16808         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16809         program as first argument.
16810         * tests/test-pipe-filter-gi1.c (main): Likewise.
16811
16812 2009-08-16  Eric Blake  <ebb9@byu.net>
16813
16814         fpurge: fix previous commits
16815         * modules/fpurge (Makefile.am): Make replacement conditional,
16816         partially reverting 2007-04-29 change; missed in previous
16817         attempt.
16818         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16819         is missing.
16820
16821 2009-08-16  Bruno Haible  <bruno@clisp.org>
16822
16823         Clarify fpurge's effect on the file position.
16824         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16825         * tests/test-fpurge.c (main): Make a second pass for checking the file
16826         position.
16827
16828 2009-08-16  Bruno Haible  <bruno@clisp.org>
16829
16830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16831         declaration of fpurge is missing.
16832         * tests/test-fpurge.c (main): Check that the file has not more contents
16833         than expected. Close the file before removing it.
16834
16835 2009-08-15  Eric Blake  <ebb9@byu.net>
16836
16837         fpurge: don't wrap working cygwin implementation
16838         * lib/fpurge.c (fpurge): Fix comment typo.
16839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16840         1.7 to avoid replacement.
16841         * tests/test-fpurge.c (main): Enhance test.
16842
16843 2009-08-15  Eric Blake  <ebb9@byu.net>
16844         and Jim Meyering  <meyering@redhat.com>
16845
16846         test-update-copyright: skip if perl is insufficient
16847         * tests/test-update-copyright.sh: Failure to run maintainer tool
16848         should not cause testsuite failure on cygwin 1.5.
16849
16850 2009-08-14  Eric Blake  <ebb9@byu.net>
16851
16852         doc: mention more functions added in cygwin 1.7.0
16853         * doc/posix-headers/limits.texi (limits.h): Update for recent
16854         cygwin additions.
16855         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16856         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16857         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16858         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16859         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16860
16861 2009-08-14  Eric Blake  <ebb9@byu.net>
16862
16863         maint.mk: simplify update-copyright rule
16864         * top/maint.mk (update-copyright-local): Delete, and document how
16865         to do it in cfg.mk instead.
16866         (update-copyright-exclude-regexp): Delete, and document how to do
16867         it in .x-update-copyright instead.
16868         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16869         exclude ChangeLog.
16870
16871 2009-08-14  Bruno Haible  <bruno@clisp.org>
16872
16873         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16874
16875 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16876
16877         maint.mk: support update-copyright-env
16878         * top/maint.mk (update-copyright-env): Define place-holder.
16879         (update-copyright): Expand $(update-copyright-env) before
16880         invoking update-copyright.
16881
16882 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16883
16884         update-copyright: implement forced reformatting
16885         * build-aux/update-copyright: Implement and document
16886         UPDATE_COPYRIGHT_FORCE.
16887         * tests/test-update-copyright.sh: Test it.
16888
16889 2009-08-14  Eric Blake  <ebb9@byu.net>
16890         and Bruno Haible  <bruno@clisp.org>
16891
16892         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16893         * tests/test-locale.c: Revert previous patch related to NULL.
16894         * tests/test-stdio.c: Likewise.
16895         * tests/test-stdlib.c: Likewise.
16896         * tests/test-string.c: Likewise.
16897         * tests/test-unistd.c: Likewise.
16898         * modules/time-tests (Depends-on): Add verify.
16899         * modules/wchar-tests (Depends-on): Likewise.
16900         * tests/test-time.c: Test for NULL compliance.
16901         * tests/test-wchar.c: Likewise.
16902         * modules/locale (Depends-on): Add stddef.
16903         * modules/stdio (Depends-on): Likewise.
16904         * modules/stdlib (Depends-on): Likewise.
16905         * modules/string (Depends-on): Likewise.
16906         * modules/time (Depends-on): Likewise.
16907         * modules/unistd (Depends-on): Likewise.
16908         * modules/wchar (Depends-on): Likewise.
16909         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16910         * lib/stdlib.in.h (includes): Likewise.
16911         * lib/string.in.h (includes): Likewise.
16912         * lib/time.in.h (includes): Likewise.
16913         * lib/unistd.in.h (includes): Likewise.
16914         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16915         replaced.
16916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16917         * m4/stddef_h.m4: New file.
16918         * modules/stddef: Likewise.
16919         * lib/stddef.in.h: Likewise.
16920         * modules/stddef-tests: Likewise.
16921         * tests/test-stddef.c: Likewise.
16922         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
16923         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
16924         * doc/posix-headers/locale.texi (locale.h): Likewise.
16925         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
16926         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16927         * doc/posix-headers/string.texi (string.h): Likewise.
16928         * doc/posix-headers/time.texi (time.h): Likewise.
16929         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
16930         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
16931
16932 2009-08-14  Eric Blake  <ebb9@byu.net>
16933
16934         doc: improve git diff of texinfo files
16935         * .gitattributes: Add rule for *.texi files, with hint on how to
16936         use it.
16937         Copied from m4, and based on a report by Bruno Haible.
16938
16939 2009-08-14  Bruno Haible  <bruno@clisp.org>
16940
16941         Disable multithread support by default on Cygwin 1.5.x for real.
16942         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
16943
16944 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16945
16946         update-copyright: much ado about intervals
16947         * build-aux/update-copyright: Implement and document
16948         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
16949         of copyright year intervals.
16950         Also, document UPDATE_COPYRIGHT_YEAR.
16951         * tests/test-update-copyright.sh: Test it.
16952
16953         update-copyright: convert 2-digit to 4-digit years
16954         * build-aux/update-copyright: Implement and document.
16955         * tests/test-update-copyright.sh: Update.
16956
16957 2009-08-14  Jim Meyering  <meyering@redhat.com>
16958
16959         test-exclude: avoid coreutils "make check" failure
16960         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
16961         just as in test-argmatch.c.
16962
16963 2009-08-13  Eric Blake  <ebb9@byu.net>
16964
16965         test-dup2: fix bad assumption
16966         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
16967         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
16968
16969         test-version-etc: fix CRLF portability issue
16970         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
16971         recognize \r.
16972         * tests/test-argp-version-etc-1.sh: Likewise.
16973
16974         getopt: update client modules
16975         * modules/argp (Depends-on): Use getopt-gnu.
16976         * modules/git-merge-changelog (Depends-on): Likewise.
16977         * modules/long-options (Depends-on): Likewise.
16978         * modules/xstrtol (Depends-on): Likewise.
16979
16980 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16981
16982         * tests/test-version-etc.sh: Don't fail on different
16983         project/version.  Don't fail on CRLF differences.  Rewrite to use
16984         multiple -e instead of multiple sed forks, suggested by Eric Blake
16985         <ebb9@byu.net>.
16986         * tests/test-argp-version-etc-1.sh: Likewise.
16987
16988 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16989
16990         * tests/test-version-etc.sh: Don't fail on different
16991         project/version.
16992
16993 2009-08-12  Bruno Haible  <bruno@clisp.org>
16994
16995         Tests for modules 'getopt-posix', 'getopt-gnu'.
16996         * modules/getopt-posix-tests: New file.
16997         * tests/test-getopt.c: New file.
16998         * tests/test-getopt.h: New file.
16999         * tests/test-getopt_long.h: New file.
17000
17001         New modules 'getopt-posix', 'getopt-gnu'.
17002         * modules/getopt-gnu: New file, renamed from modules/getopt.
17003         * modules/getopt-posix: New file.
17004         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17005         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17006         (gl_GETOPT): Remove macro.
17007         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17008         Disable the test against BSD systems that declare optreset. Test
17009         against mingw bug. Test against lack of support of optional arguments
17010         on many platforms.
17011         * doc/glibc-headers/getopt.texi: Update module name and list of
17012         relevant platforms.
17013         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17014         'getopt-gnu' and more portability problems.
17015         * NEWS: Mention the changes.
17016
17017 2009-08-12  Bruno Haible  <bruno@clisp.org>
17018
17019         Ensure that optarg etc. get declared by <unistd.h>.
17020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17021         AC_USE_SYSTEM_EXTENSIONS.
17022         * modules/getopt (Depends-on): Add 'extensions'.
17023
17024 2009-08-12  Bruno Haible  <bruno@clisp.org>
17025
17026         Avoid test link errors.
17027         * modules/pipe-filter-ii-tests (Makefile.am): Define
17028         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17029         * modules/pipe-filter-gi-tests (Makefile.am): Define
17030         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17032
17033 2009-08-12  Bruno Haible  <bruno@clisp.org>
17034
17035         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17036         gl_GETOPT_SUBSTITUTE before.
17037         (gl_GETOPT): Use it.
17038         * m4/argp.m4 (gl_ARGP): Update.
17039         Reported by Sergey Poznyakoff.
17040
17041         * m4/getopt.m4: Reorder macros.
17042         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17043         (gl_GETOPT_SUBSTITUTE): Remove macro.
17044
17045 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17046
17047         Minor improvement in gitlog-to-changelog
17048
17049         * build-aux/gitlog-to-changelog: New option `--format' makes
17050         output format string configurable.
17051
17052 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17053
17054         Optimize exclude: use hash tables for non-wildcard patterns.
17055
17056         * lib/exclude.c: Include hash.h and mbuiter.h
17057         (struct exclude_pattern, exclude_segment): New data types.
17058         (struct exclude): Rewrite.
17059         (fnmatch_pattern_has_wildcards): New function.
17060         (new_exclude_segment, free_exclude_segment): New functions.
17061         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17062         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17063         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17064         * modules/exclude: Depend on hash and mbuiter.
17065
17066         * modules/exclude-tests: New file.
17067         * tests/test-exclude.c: New file.
17068         * tests/test-exclude1.sh: New file.
17069         * tests/test-exclude2.sh: New file.
17070         * tests/test-exclude3.sh: New file.
17071         * tests/test-exclude4.sh: New file.
17072         * tests/test-exclude5.sh: New file.
17073         * tests/test-exclude6.sh: New file.
17074         * tests/test-exclude7.sh: New file.
17075
17076 2009-08-12  Bruno Haible  <bruno@clisp.org>
17077
17078         Ensure that getopt() gets declared by <unistd.h>.
17079         * lib/unistd.in.h: Conditionally include getopt.h.
17080         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17081         Set GNULIB_UNISTD_H_GETOPT.
17082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17083         GNULIB_UNISTD_H_GETOPT.
17084         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17085
17086 2009-08-12  Bruno Haible  <bruno@clisp.org>
17087
17088         Clarify logic.
17089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17090         gl_replace_getopt instead of GETOPT_H.
17091
17092 2009-08-12  Bruno Haible  <bruno@clisp.org>
17093
17094         * m4/getopt.m4: Add comments.
17095
17096 2009-08-12  Bruno Haible  <bruno@clisp.org>
17097
17098         Disable multithread support by default on Cygwin 1.5.x.
17099         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17100         set gl_use_threads=no if not specified otherwise.
17101
17102 2009-08-11  Bruno Haible  <bruno@clisp.org>
17103
17104         Avoid compilation error on NetBSD 5.0.
17105         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17106         * tests/test-stdio.c: Likewise.
17107         * tests/test-stdlib.c: Likewise.
17108         * tests/test-string.c: Likewise.
17109         * tests/test-unistd.c: Likewise.
17110         Reported by Greg Troxel <gdt@ir.bbn.com>
17111         at <https://savannah.gnu.org/support/?106973>.
17112
17113 2009-08-11  Bruno Haible  <bruno@clisp.org>
17114
17115         * modules/dup2-tests (Depends-on): Remove close.
17116
17117         Undo 2009-07-19 commit.
17118         * modules/acl-tests (Depends-on): Remove close.
17119         * modules/binary-io-tests (Depends-on): Likewise.
17120         * modules/closein-tests (Depends-on): Likewise.
17121         * modules/flock-tests (Depends-on): Likewise.
17122         * modules/fsync-tests (Depends-on): Likewise.
17123         * modules/lseek-tests (Depends-on): Likewise.
17124         * modules/pipe-tests (Depends-on): Likewise.
17125         * modules/posix_spawn-tests (Depends-on): Likewise.
17126         * modules/posix_spawnp-tests (Depends-on): Likewise.
17127         * modules/stat-time-tests (Depends-on): Likewise.
17128         * modules/yesno-tests (Depends-on): Likewise.
17129
17130 2009-08-10  Bruno Haible  <bruno@clisp.org>
17131
17132         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17133
17134 2009-08-10  Bruno Haible  <bruno@clisp.org>
17135
17136         Fix a gcc warning.
17137         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17138
17139 2009-08-10  Bruno Haible  <bruno@clisp.org>
17140
17141         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17142         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17143         not only the first time.
17144         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17145         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17146         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17147         is 1, not only the the first time.
17148
17149 2009-08-10  Bruno Haible  <bruno@clisp.org>
17150
17151         Make it possible to use module 'gethostname' without module 'close'.
17152         * lib/unistd.in.h (close): Evoke a link error only if
17153         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17155         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17156         * modules/unistd (Makefile.am): Substitute
17157         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17158         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17159         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17161         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17162         * modules/sys_ioctl (Makefile.am): Substitute
17163         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17164         * modules/socket (configure.ac): On native Windows, set
17165         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17166         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17167         Reported by Sam Steingold <sds@gnu.org>.
17168
17169 2009-08-10  Bruno Haible  <bruno@clisp.org>
17170
17171         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17172         * modules/ioctl (configure.ac): Likewise.
17173
17174 2009-08-10  Bruno Haible  <bruno@clisp.org>
17175
17176         Avoid collision between gnulib wrapper and libintl wrapper.
17177         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17178         already defined in intl/printf.c.
17179         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17180         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17181
17182 2009-08-09  Bruno Haible  <bruno@clisp.org>
17183
17184         Make <sys/select.h> really self-contained, also on Solaris 10.
17185         * lib/sys_select.in.h: Include <string.h>.
17186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17187         Solaris 10 problem.
17188         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17189         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17190         Reported by Jim Meyering.
17191
17192 2009-08-09  Bruno Haible  <bruno@clisp.org>
17193
17194         Avoid warnings from 'aclocal' that are due to a use of macro name
17195         AM_XGETTEXT_OPTION that is not defined in automake.
17196         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17197         automake.
17198         * modules/error (configure.ac): Likewise.
17199         * modules/propername (configure.ac): Likewise.
17200         * modules/vasprintf (configure.ac): Likewise.
17201         * modules/verror (configure.ac): Likewise.
17202         * modules/xprintf (configure.ac): Likewise.
17203         * modules/xvasprintf (configure.ac): Likewise.
17204
17205 2009-08-08  Bruno Haible  <bruno@clisp.org>
17206
17207         Avoid compilation error in C++ mode.
17208         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17209         Reported by Sam Steingold <sds@gnu.org>.
17210
17211 2009-08-08  Bruno Haible  <bruno@clisp.org>
17212
17213         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17214         for the various Unix platforms.
17215         * doc/posix-headers/limits.texi: Update platforms list regarding
17216         HOST_NAME_MAX.
17217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17218
17219 2009-08-07  Jim Meyering  <meyering@redhat.com>
17220
17221         selinux-at: fix typo in a comment
17222         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17223         Spotted by Paolo Bonzini.
17224
17225         selinux-at: remove redundant m4 code, add documentation
17226         * modules/selinux-at (configure.ac): Remove redundant code.
17227         LIB_SELINUX is already set via the dependent module, selinux-h.
17228         (Include): Add quotes around selinux-at.h.
17229         * lib/selinux-at.h: Add documentation.
17230         Reported by Bruno Haible in
17231         http://marc.info/?l=gnulib-bug&m=124958988300749
17232
17233 2009-08-07  Bruno Haible  <bruno@clisp.org>
17234
17235         Avoid link error on MacOS X 10.3 and 10.4.
17236         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17237         on non-ELF systems.
17238         * lib/argp-pv.c (argp_program_version): Likewise.
17239         Reported by Simon Josefsson.
17240
17241 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17242
17243         * tests/test-version-etc.sh: Use $EXEEXT.
17244
17245 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17246
17247         update-copyright: update documentation to point to maint.mk
17248         * build-aux/update-copyright: Here.
17249
17250 2009-08-06  Jim Meyering  <meyering@redhat.com>
17251
17252         maint.mk: support update-copyright-local
17253         * top/maint.mk (update-copyright-local): Define place-holder.
17254         (update-copyright): Depend on $(update-copyright-local).
17255
17256 2009-08-06  Jim Meyering  <meyering@redhat.com>
17257
17258         selinux-at: new module
17259         Initially written for coreutils, this module will soon be
17260         used by findutils, too.
17261         * MODULES.html.sh [Misc]: Add selinux-at.
17262         * lib/selinux-at.h: New file, from coreutils.
17263         * lib/selinux-at.c: Likewise.
17264         * modules/selinux-at: Likewise.
17265         (License): Change from LGPL to GPL, since it depends
17266         on the GPL'd openat module.
17267
17268         doc: update README
17269         * README: Remove references to cogito.
17270         Remove cvs-repo-updating instructions from 2007.
17271         Don't imply that CVS is better if you have limited disk space.
17272
17273 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17274
17275         update-copyright: support C-style comments
17276         * build-aux/update-copyright: Implement and document.
17277         * tests/test-update-copyright.sh: Test.
17278
17279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17280
17281         update-copyright: support omitted "(C)"
17282         * build-aux/update-copyright: Implement and document.  Also,
17283         allow variable whitespace before "(C)".
17284         * tests/test-update-copyright.sh: Test.
17285
17286 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17287
17288         update-copyright: don't trip on non-FSF copyright statements
17289         * build-aux/update-copyright: Fix so that the first correctly
17290         formatted FSF copyright statement is recognized no matter what
17291         appears before it.  Update documentation.
17292         * tests/test-update-copyright.sh: Test that.
17293
17294 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17295
17296         update-copyright: clean up code a little
17297         * build-aux/update-copyright: Append "_re" to the name of any
17298         variable holding a regular expression.
17299         Replace "old" and "new" with "stmt" in variable names.
17300         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17301         handled correctly.
17302         Format code more consistently.
17303
17304 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17305
17306         update-copyright-tests: improve portability
17307         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17308         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17309
17310 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17311
17312         update-copyright: support @copyright{} and &copy;
17313         * build-aux/update-copyright: Implement and document.
17314         * tests/test-update-copyright.sh: Test.
17315
17316 2009-08-04  Jim Meyering  <meyering@redhat.com>
17317
17318         update-copyright-tests: correctly test EOL=\r\n handling
17319         * tests/test-update-copyright.sh: Put \r at the end of some lines
17320         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17321
17322         maint.mk: make update-copyright exclusion list more configurable
17323         * top/maint.mk (update-copyright): Default to excluding COPYING,
17324         but allow an override, in case someone does want to update that file.
17325
17326         maint.mk: don't update copyright date in COPYING
17327         * top/maint.mk (update-copyright): Exclude COPYING.
17328
17329         maint.mk: add a copyright-updating rule
17330         * top/maint.mk (update-copyright): New rule.
17331         Derived from coreutils/Makefile.am.
17332
17333         update-copyright: rename some variables
17334         * build-aux/update-copyright: Rename a few variables for clarity.
17335         Tweak syntax.  List Joel E. Denny as coauthor.
17336
17337 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17338
17339         update-copyright: fix bug for 2-digit last year and add tests
17340         * build-aux/update-copyright: Fix bug.
17341         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17342         specified.
17343         * modules/update-copyright-tests: New
17344         * tests/test-update-copyright.sh: New.
17345
17346 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17347
17348         update-copyright: handle leading tabs in line prefix
17349         * build-aux/update-copyright: Count leading tabs as 8 spaces
17350         when computing margin.  This helps with the formatting of
17351         ChangeLogs, for example.
17352         Fix documentation a little.
17353
17354 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17355
17356         update-copyright: support EOL=\r\n
17357         * build-aux/update-copyright: Implement that.
17358
17359 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17360
17361         update-copyright: automatically format copyright statements
17362         * build-aux/update-copyright: Implement that.
17363         Also, be a little more predictable and safer by always failing
17364         when the full copyright format is not perfectly recognized as an
17365         unbroken whole.  Discussed at
17366         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17367         Rewrite documentation.
17368
17369 2009-08-03  Bruno Haible  <bruno@clisp.org>
17370
17371         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17372
17373 2009-08-02  Bruno Haible  <bruno@clisp.org>
17374
17375         Tests for module 'uname'.
17376         * modules/uname-tests: New file.
17377         * tests/test-uname.c: New file.
17378
17379         New module 'uname'.
17380         * lib/uname.c: New file.
17381         * m4/uname.m4: New file.
17382         * modules/uname: New file.
17383         * doc/posix-functions/uname.texi: Mention the new module.
17384
17385 2009-08-02  Bruno Haible  <bruno@clisp.org>
17386
17387         Tests for module 'sys_utsname'.
17388         * modules/sys_utsname-tests: New file.
17389         * tests/test-sys_utsname.c: New file.
17390
17391         New module 'sys_utsname'.
17392         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17393         * m4/sys_utsname_h.m4: New file.
17394         * modules/sys_utsname: New file.
17395         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17396
17397 2009-08-02  Bruno Haible  <bruno@clisp.org>
17398
17399         Implicitly initialize the sockets library.
17400         * lib/gethostname.c: Include sockets.h.
17401         (rpl_gethostname): Invoke gl_sockets_startup.
17402         * lib/socket.c: Include sockets.h.
17403         (rpl_socket): Invoke gl_sockets_startup.
17404         * modules/gethostname (Depends-on): Add sockets.
17405         * modules/socket (Depends-on): Likewise.
17406         * tests/test-poll.c: Don't include sockets.h.
17407         (main): Don't invoke gl_sockets_startup.
17408         * tests/test-select.c: Don't include sockets.h.
17409         (main): Don't invoke gl_sockets_startup.
17410
17411 2009-08-02  Bruno Haible  <bruno@clisp.org>
17412
17413         Allow multiple calls to gl_sockets_startup.
17414         * lib/sockets.c (initialized_sockets_version): New variable.
17415         (gl_sockets_startup): Do nothing if already called for this or a higher
17416         version.
17417         (gl_sockets_cleanup): Reset initialized_sockets_version.
17418
17419 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17420
17421         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17422         different project/version.
17423
17424 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17425             Bruno Haible  <bruno@clisp.org>
17426
17427         Tests for module 'pipe-filter-gi'.
17428         * modules/pipe-filter-gi-tests: New file.
17429         * tests/test-pipe-filter-gi1.sh: New file.
17430         * tests/test-pipe-filter-gi1.c: New file.
17431         * tests/test-pipe-filter-gi2.sh: New file.
17432         * tests/test-pipe-filter-gi2-main.c: New file.
17433         * tests/test-pipe-filter-gi2-child.c: New file.
17434
17435         New module 'pipe-filter-gi'.
17436         * lib/pipe-filter-gi.c: New file.
17437         * modules/pipe-filter-gi: New file.
17438
17439 2009-08-02  Bruno Haible  <bruno@clisp.org>
17440             Paolo Bonzini  <bonzini@gnu.org>
17441
17442         Tests for module 'pipe-filter-ii'.
17443         * modules/pipe-filter-ii-tests: New file.
17444         * tests/test-pipe-filter-ii1.sh: New file.
17445         * tests/test-pipe-filter-ii1.c: New file.
17446         * tests/test-pipe-filter-ii2.sh: New file.
17447         * tests/test-pipe-filter-ii2-main.c: New file.
17448         * tests/test-pipe-filter-ii2-child.c: New file.
17449
17450         New module 'pipe-filter-ii'.
17451         * lib/pipe-filter.h: New file.
17452         * lib/pipe-filter-ii.c: New file.
17453         * lib/pipe-filter-aux.h: New file.
17454         * modules/pipe-filter-ii: New file.
17455
17456 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17457
17458         * lib/gc-libgcrypt.c: Change copyright to FSF.
17459         * lib/gc-gnulib.c: Likewise.
17460
17461 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17462
17463         * lib/gethostname.c: Include limits.h.
17464
17465 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17466             Bruno Haible  <bruno@clisp.org>
17467
17468         Ensure HOST_NAME_MAX as part of the gethostname module.
17469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17470         define also HOST_NAME_MAX.
17471         * tests/test-gethostname.c: Include <limits.h>.
17472         (main): Check also HOST_NAME_MAX.
17473         * doc/posix-headers/limits.texi: Document the mingw problem.
17474
17475 2009-08-02  Bruno Haible  <bruno@clisp.org>
17476
17477         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17478         Add comments.
17479
17480 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17481
17482         * lib/gethostname.c: Add Windows wrapper.
17483         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17484         * modules/gethostname: Depend on sys_socket & errno, for also
17485         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17486         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17487
17488 2009-07-31  Jim Meyering  <meyering@redhat.com>
17489
17490         getloadavg: fix symbol name in comment
17491         * lib/getloadavg.c: Correct a typo I introduced when adding
17492         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17493         Matt Kraai spotted the problem.
17494
17495 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17496
17497         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17498         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17499         code also if ! defined N_NAME_POINTER.
17500         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17501         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17502         but the n_name member is a 12-byte array.
17503
17504 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17505
17506         update-copyright: generalize comment handling
17507         * build-aux/update-copyright: Handle copyright statements
17508         within more comment styles.
17509         Document usage.
17510         Report any file with an external copyright holder or parse failure.
17511
17512 2009-07-29  Jim Meyering  <meyering@redhat.com>
17513
17514         mktime: correct setting of REPLACE_MKTIME
17515         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17516
17517         update-copyright: new module
17518         * modules/update-copyright: New file.
17519         * build-aux/update-copyright: New file.
17520         * MODULES.html.sh (maint+release support): Add update-copyright.
17521
17522 2009-07-27  Bruno Haible  <bruno@clisp.org>
17523
17524         Fix compilation error when <ctime> is used and mktime is replaced.
17525         * lib/time.in.h (mktime): New declaration.
17526         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17527         REPLACE_MKTIME instead of defining mktime in config.h.
17528         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17529         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17530         Reported by Ross McFarland <rwmcfa1@neces.com>.
17531
17532 2009-07-27  Bruno Haible  <bruno@clisp.org>
17533
17534         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17535         Reported by Matt Kraai <mkraai@beckman.com>.
17536
17537 2009-07-25  Jim Meyering  <meyering@redhat.com>
17538
17539         maint.mk: avoid warnings about missing files
17540         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17541         diagnostic when .prev-version does not exist.
17542         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17543         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17544         nonexistent cfg.mk.
17545         Suggestions from Simon Josefsson.
17546
17547 2009-07-25  Bruno Haible  <bruno@clisp.org>
17548
17549         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17550         defined as macros. Needed on QNX 6.4.1.
17551         Reported by Matt Kraai <mkraai@beckman.com>.
17552
17553 2009-07-23  Jim Meyering  <meyering@redhat.com>
17554
17555         maint.mk: invoke "make dist" with a working value of XZ_OPT
17556         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17557
17558 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17559
17560         Make fseeko.c compile on QNX.
17561         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17562
17563 2009-07-22  Peter Simons  <simons@cryp.to>
17564
17565         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17566         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17567         * lib/md4.h: Likewise.
17568         * lib/md5.h: Likewise.
17569         * lib/sha1.h: Likewise.
17570         * lib/sha256.h: Likewise.
17571         * lib/sha512.h: Likewise.
17572
17573         tests-sha1: don't assign literal string to 'char *' variable
17574         * tests/test-sha1.c (main): Declare locals with "const" to match
17575         attributes of the right hand side.
17576
17577 2009-07-21  Eric Blake  <ebb9@byu.net>
17578
17579         dup2: fix more mingw problems
17580         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17581         fd to itself.
17582         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17583         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17584         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17585         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17586         care of mingw bugs.
17587
17588 2009-07-21  Jim Meyering  <meyering@redhat.com>
17589
17590         vc-list-files: avoid failure when /bin/sh is dash
17591         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17592         On some Debian based systems, /bin/sh is a symlink to dash, and running
17593         this command would omit the "/" following each 'tests' prefix:
17594           dash -x build-aux/vc-list-files -C . tests
17595         That is because bash and dash work differently:
17596           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17597           bash ok
17598           dash odd
17599
17600 2009-07-21  Eric Blake  <ebb9@byu.net>
17601
17602         dup2-tests: test previous patch
17603         * modules/dup2-tests: New file.
17604         * tests/test-dup2.c: Likewise.
17605         * tests/test-open.c (main): Avoid unspecified behavior.
17606         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17607         test.
17608
17609         dup2: work around mingw and cygwin 1.5 bug
17610         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17612         * modules/unistd (Makefile.am): Substitute it.
17613         * lib/unistd.in.h (dup2): Declare the replacement.
17614         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17615         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17616         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17617         * modules/execute (Depends-on): Add dup2.
17618         * modules/fseterr (Depends-on): Likewise.
17619         * modules/pipe (Depends-on): Likewise.
17620         * modules/posix_spawn-internal (Depends-on): Likewise.
17621
17622 2009-07-21  Bruno Haible  <bruno@clisp.org>
17623
17624         * modules/.gitattributes: New file.
17625
17626 2009-07-20  Bruno Haible  <bruno@clisp.org>
17627
17628         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17629         (main): Use it.
17630
17631 2009-07-20  Eric Blake  <ebb9@byu.net>
17632
17633         test-pipe: make a bit more robust.
17634         * tests/test-pipe.c (myerr): Allow error messages regardless of
17635         what we do to stderr.
17636         (test_pipe): Rearrange to avoid deadlock.
17637         (child_main): Try a larger read, to ensure we avoided deadlock.
17638         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17639         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17640         if misused.
17641
17642 2009-07-19  Jim Meyering  <meyering@redhat.com>
17643
17644         fts: avoid false-positive cycle-detection
17645         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17646         for each new command line argument.
17647
17648 2009-07-19  Bruno Haible  <bruno@clisp.org>
17649
17650         Fix build error on mingw with the modules sys_select and unistd.
17651         * modules/acl-tests (Depends-on): Add close.
17652         * modules/binary-io-tests (Depends-on): Likewise.
17653         * modules/closein-tests (Depends-on): Likewise.
17654         * modules/flock-tests (Depends-on): Likewise.
17655         * modules/fsync-tests (Depends-on): Likewise.
17656         * modules/lseek-tests (Depends-on): Likewise.
17657         * modules/pipe-tests (Depends-on): Likewise.
17658         * modules/posix_spawn-tests (Depends-on): Likewise.
17659         * modules/posix_spawnp-tests (Depends-on): Likewise.
17660         * modules/stat-time-tests (Depends-on): Likewise.
17661         * modules/yesno-tests (Depends-on): Likewise.
17662
17663 2009-07-19  Bruno Haible  <bruno@clisp.org>
17664
17665         Unify conditionals.
17666         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17667         macros, not at the compiler macros.
17668         * lib/pipe.c: Likewise.
17669         * lib/execute.c: Likewise.
17670         * lib/spawni.c: Likewise.
17671
17672 2009-07-19  Bruno Haible  <bruno@clisp.org>
17673
17674         Fix handling of closed stdin/stdout/stderr on mingw.
17675         * lib/w32spawn.h: Include unistd.h.
17676         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17677         file descriptor with O_NOINHERIT flag.
17678         (fd_safer_noinherit): New function, based on fd-safer.c.
17679         (dup_safer_noinherit): New function, based on dup-safer.c.
17680         (undup_safer_noinherit): New function.
17681         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17682         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17683         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17684         instead of fd_safer.
17685         * tests/test-pipe.c: Include <windows.h>.
17686         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17687
17688         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17689         from main.
17690         (test_pipe): Pass an extra argument for disambiguation.
17691         (main): Invoke parent_main or child_main.
17692
17693         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17694         consistently.
17695
17696 2009-07-18  Eric Blake  <ebb9@byu.net>
17697
17698         test-pipe: fix mingw build
17699         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17700
17701 2009-07-18  Bruno Haible  <bruno@clisp.org>
17702
17703         * modules/pipe-tests (Makefile.am): Fix typo.
17704
17705 2009-07-18  Eric Blake  <ebb9@byu.net>
17706
17707         error: fix mingw build
17708         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17709         Reported by Bruno Haible.
17710
17711         error: avoid undefined use of stdout
17712         * lib/error.c (error, error_at_line): Check that fd 1 is open
17713         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17714         is handling faults and the close_stdout module wants to report the
17715         detection of closed stdout as an error.
17716
17717 2009-07-17  Eric Blake  <ebb9@byu.net>
17718
17719         pipe: be robust in face of closed fds
17720         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17721         should cause child to misbehave.
17722         * modules/pipe-tests: New module.
17723         * tests/test-pipe.c: New file.
17724         * tests/test-pipe.sh: New file.
17725         Reported by Akim Demaille.
17726
17727 2009-07-14  Bruno Haible  <bruno@clisp.org>
17728
17729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17730         Reported by anonymous kc.
17731
17732 2009-07-07  Jim Meyering  <meyering@redhat.com>
17733
17734         maint.mk: don't look for translatable strings in *.m4 or *.mk
17735         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17736         when searching for translatable strings.
17737
17738 2009-07-05  Jim Meyering  <meyering@redhat.com>
17739
17740         remove superfluous parentheses in STREQ definition
17741         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17742         * lib/getugroups.c (STREQ): Likewise.
17743         * lib/fnmatch.c (STREQ): Likewise.
17744         Spotted by Bruno Haible.
17745
17746 2009-07-04  Jim Meyering  <meyering@redhat.com>
17747
17748         argv-iter: new module
17749         * MODULES.html.sh: Add argv-iter.
17750         * lib/argv-iter.c, lib/argv-iter.h: New files.
17751         * modules/argv-iter: New file.
17752         * modules/argv-iter-tests: New file.
17753         * tests/test-argv-iter.c: Test it.
17754
17755 2009-07-04  Bruno Haible  <bruno@clisp.org>
17756
17757         Fix assertion.
17758         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17759         contains more exact copies of a given entry than file2, leave the extra
17760         copies unpaired rather than aborting.
17761         Reported by Eric Blake.
17762
17763 2009-07-02  Bruno Haible  <bruno@clisp.org>
17764
17765         Speedup git-merge-changelog for git cherry-pick.
17766         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17767         (entries_mapping_get): New function, extracted from compute_mapping.
17768         (entries_mapping_reverse_get): New function.
17769         (compute_mapping): Add a 'full' argument. Return the result in a
17770         'struct entries_mapping'.
17771         (main): Update. Access the mappings through entries_mapping_get.
17772         Reported by Eric Blake.
17773
17774 2009-07-02  Bruno Haible  <bruno@clisp.org>
17775
17776         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17777         best_i.
17778
17779 2009-07-02  Bruno Haible  <bruno@clisp.org>
17780
17781         Speed up approximate search for matching ChangeLog entries.
17782         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17783         argument. Call fstrcmp_bounded instead of fstrcmp.
17784         (compute_mapping, try_split_merged_entry, main): Update callers.
17785
17786 2009-07-02  Bruno Haible  <bruno@clisp.org>
17787
17788         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17789
17790 2009-06-30  Bruno Haible  <bruno@clisp.org>
17791
17792         Reduce the number of uc_is_cased calls.
17793         * lib/unicase.h (casing_suffix_context_t): Add
17794         'first_char_except_ignorable' field.
17795         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17796         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17797         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17798         Update initializer.
17799         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17800         case-ignorable characters.
17801         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17802         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17803         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17804         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17805         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17806
17807 2009-06-30  Bruno Haible  <bruno@clisp.org>
17808
17809         Tests for module 'unicase/ignorable'.
17810         * modules/unicase/ignorable-tests: New file.
17811         * tests/unicase/test-ignorable.c: New file, generated by
17812         gen-uni-tables.
17813
17814         Tests for module 'unicase/cased'.
17815         * modules/unicase/cased-tests: New file.
17816         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17817         * tests/unicase/test-predicate-part1.h: New file, derived from
17818         tests/unictype/test-predicate-part1.h.
17819         * tests/unicase/test-predicate-part2.h: New file, same as
17820         tests/unictype/test-predicate-part2.h.
17821
17822         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17823         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17824         (output_casing_properties): New function.
17825         (main): Call it.
17826         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17827         * lib/unicase/cased.c: Include unictype/bitmap.h.
17828         (uc_is_cased): Define through a bitmap lookup.
17829         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17830         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17831         (uc_is_case_ignorable): Define through a bitmap lookup.
17832         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17833         lib/unictype/bitmap.h.
17834         (Depends-on): Add inline. Clean up.
17835         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17836         lib/unictype/bitmap.h.
17837         (Depends-on): Add inline. Clean up.
17838         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17839         recognition.
17840         * tests/unicase/test-u16-tolower.c (main): Likewise.
17841         * tests/unicase/test-u32-tolower.c (main): Likewise.
17842
17843 2009-06-30  Bruno Haible  <bruno@clisp.org>
17844
17845         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17846         * lib/unicase/u16-casemap.c: Likewise.
17847         * lib/unicase/u32-casemap.c: Likewise.
17848
17849 2009-06-29  Bruno Haible  <bruno@clisp.org>
17850
17851         Define u32_casefold as a wrapper around u32_ct_casefold.
17852         * lib/unicase/u32-casefold.c: Update.
17853         * modules/unicase/u32-casefold (Depends-on): Add
17854         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17855         unicase/empty-suffix-context. Clean up.
17856
17857         Define u16_casefold as a wrapper around u16_ct_casefold.
17858         * lib/unicase/u16-casefold.c: Update.
17859         * modules/unicase/u16-casefold (Depends-on): Add
17860         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17861         unicase/empty-suffix-context. Clean up.
17862
17863         Define u8_casefold as a wrapper around u8_ct_casefold.
17864         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17865         * lib/unicase/u8-casefold.c: Update.
17866         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17867         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17868
17869         Define u32_totitle as a wrapper around u32_ct_totitle.
17870         * lib/unicase/u32-totitle.c: Update.
17871         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17872         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17873
17874         Define u16_totitle as a wrapper around u16_ct_totitle.
17875         * lib/unicase/u16-totitle.c: Update.
17876         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17877         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17878
17879         Define u8_totitle as a wrapper around u8_ct_totitle.
17880         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17881         functions.
17882         (FUNC): Delegate to U_CT_TOTITLE.
17883         * lib/unicase/u8-totitle.c: Update.
17884         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17885         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17886
17887         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17888         invocation.
17889         * modules/unicase/u32-tolower (Depends-on): Add
17890         unicase/empty-prefix-context, unicase/empty-suffix-context.
17891
17892         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17893         invocation.
17894         * modules/unicase/u16-tolower (Depends-on): Add
17895         unicase/empty-prefix-context, unicase/empty-suffix-context.
17896
17897         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17898         * modules/unicase/u8-tolower (Depends-on): Add
17899         unicase/empty-prefix-context, unicase/empty-suffix-context.
17900
17901         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17902         invocation.
17903         * modules/unicase/u32-toupper (Depends-on): Add
17904         unicase/empty-prefix-context, unicase/empty-suffix-context.
17905
17906         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17907         invocation.
17908         * modules/unicase/u16-toupper (Depends-on): Add
17909         unicase/empty-prefix-context, unicase/empty-suffix-context.
17910
17911         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17912         * modules/unicase/u8-toupper (Depends-on): Add
17913         unicase/empty-prefix-context, unicase/empty-suffix-context.
17914
17915         New module 'unicase/u32-ct-casefold'.
17916         * lib/unicase/u32-ct-casefold.c: New file.
17917         * modules/unicase/u32-ct-casefold: New file.
17918
17919         New module 'unicase/u16-ct-casefold'.
17920         * lib/unicase/u16-ct-casefold.c: New file.
17921         * modules/unicase/u16-ct-casefold: New file.
17922
17923         New module 'unicase/u8-ct-casefold'.
17924         * lib/unicase/u8-ct-casefold.c: New file.
17925         * lib/unicase/u-ct-casefold.h: New file, derived from
17926         lib/unicase/u-casefold.h.
17927         * modules/unicase/u8-ct-casefold: New file.
17928
17929         New module 'unicase/u32-ct-totitle'.
17930         * lib/unicase/u32-ct-totitle.c: New file.
17931         * modules/unicase/u32-ct-totitle: New file.
17932
17933         New module 'unicase/u16-ct-totitle'.
17934         * lib/unicase/u16-ct-totitle.c: New file.
17935         * modules/unicase/u16-ct-totitle: New file.
17936
17937         New module 'unicase/u8-ct-totitle'.
17938         * lib/unicase/u8-ct-totitle.c: New file.
17939         * lib/unicase/u-ct-totitle.h: New file, derived from
17940         lib/unicase/u-totitle.h.
17941         * modules/unicase/u8-ct-totitle: New file.
17942
17943         New module 'unicase/u32-ct-tolower'.
17944         * lib/unicase/u32-ct-tolower.c: New file.
17945         * modules/unicase/u32-ct-tolower: New file.
17946
17947         New module 'unicase/u16-ct-tolower'.
17948         * lib/unicase/u16-ct-tolower.c: New file.
17949         * modules/unicase/u16-ct-tolower: New file.
17950
17951         New module 'unicase/u8-ct-tolower'.
17952         * lib/unicase/u8-ct-tolower.c: New file.
17953         * modules/unicase/u8-ct-tolower: New file.
17954
17955         New module 'unicase/u32-ct-toupper'.
17956         * lib/unicase/u32-ct-toupper.c: New file.
17957         * modules/unicase/u32-ct-toupper: New file.
17958
17959         New module 'unicase/u16-ct-toupper'.
17960         * lib/unicase/u16-ct-toupper.c: New file.
17961         * modules/unicase/u16-ct-toupper: New file.
17962
17963         New module 'unicase/u8-ct-toupper'.
17964         * lib/unicase/u8-ct-toupper.c: New file.
17965         * modules/unicase/u8-ct-toupper: New file.
17966
17967         Add context arguments to u*_casemap functions.
17968         * lib/unicase/unicasemap.h: Include unicase.h.
17969         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
17970         suffix_context arguments.
17971         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
17972         functions.
17973         (FUNC): Add prefix_context and suffix_context arguments. Use
17974         uc_is_cased and uc_is_case_ignorable.
17975         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
17976         * lib/unicase/u16-casemap.c: Likewise.
17977         * lib/unicase/u32-casemap.c: Likewise.
17978         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
17979         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17980         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
17981         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17982         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
17983         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17984
17985         New module 'unicase/u32-suffix-context'.
17986         * lib/unicase/u32-suffix-context.c: New file.
17987         * modules/unicase/u32-suffix-context: New file.
17988
17989         New module 'unicase/u16-suffix-context'.
17990         * lib/unicase/u16-suffix-context.c: New file.
17991         * modules/unicase/u16-suffix-context: New file.
17992
17993         New module 'unicase/u8-suffix-context'.
17994         * lib/unicase/u8-suffix-context.c: New file.
17995         * lib/unicase/u-suffix-context.h: New file.
17996         * modules/unicase/u8-suffix-context: New file.
17997
17998         New module 'unicase/empty-suffix-context'.
17999         * lib/unicase/empty-suffix-context.c: New file.
18000         * modules/unicase/empty-suffix-context: New file.
18001
18002         New module 'unicase/u32-prefix-context'.
18003         * lib/unicase/u32-prefix-context.c: New file.
18004         * modules/unicase/u32-prefix-context: New file.
18005
18006         New module 'unicase/u16-prefix-context'.
18007         * lib/unicase/u16-prefix-context.c: New file.
18008         * modules/unicase/u16-prefix-context: New file.
18009
18010         New module 'unicase/u8-prefix-context'.
18011         * lib/unicase/u8-prefix-context.c: New file.
18012         * lib/unicase/u-prefix-context.h: New file.
18013         * lib/unicase/context.h: New file.
18014         * modules/unicase/u8-prefix-context: New file.
18015
18016         New module 'unicase/empty-prefix-context'.
18017         * lib/unicase/empty-prefix-context.c: New file.
18018         * modules/unicase/empty-prefix-context: New file.
18019
18020         New module 'unicase/ignorable'.
18021         * lib/unicase/ignorable.c: New file.
18022         * modules/unicase/ignorable: New file.
18023
18024         New module 'unicase/cased'.
18025         * lib/unicase/caseprop.h: New file.
18026         * lib/unicase/cased.c: New file.
18027         * modules/unicase/cased: New file.
18028
18029         New functions for case mapping of substrings.
18030         * lib/unicase.h (casing_prefix_context_t): New type.
18031         (unicase_empty_prefix_context): New variable.
18032         (u8_casing_prefix_context, u16_casing_prefix_context,
18033         u32_casing_prefix_context, u8_casing_prefixes_context,
18034         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18035         declarations.
18036         (casing_suffix_context_t): New type.
18037         (unicase_empty_suffix_context): New variable.
18038         (u8_casing_suffix_context, u16_casing_suffix_context,
18039         u32_casing_suffix_context, u8_casing_suffixes_context,
18040         u16_casing_suffixes_context, u32_casing_suffixes_context,
18041         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18042         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18043         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18044         declarations.
18045
18046 2009-06-28  Jim Meyering  <meyering@redhat.com>
18047
18048         boostrap: indent only with spaces
18049         * build-aux/bootstrap: Indent only with spaces, never TABs.
18050
18051         bootstrap: split long lines
18052         * build-aux/bootstrap: Keep line length < 80.
18053
18054         bootstrap: sync from coreutils
18055         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18056         just as autoreconf does.  Verify a list of prerequisite
18057         package-name,version-number pairs if defined in bootstrap.conf.
18058         Refer to README-prereq, if prerequisites are not satisfied.
18059
18060 2009-06-27  Eric Blake  <ebb9@byu.net>
18061
18062         tests: add test for bogus NULL definition
18063         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18064         * tests/test-stdlib.c: Likewise.
18065         * tests/test-string.c: Likewise.
18066         * tests/test-locale.c: Likewise.
18067         * tests/test-unistd.c: Likewise.
18068         * modules/stdio-tests (Depends-on): Add verify.
18069         * modules/stdlib-tests (Depends-on): Likewise.
18070         * modules/string-tests (Depends-on): Likewise.
18071         * modules/locale-tests (Depends-on): Likewise.
18072         * modules/unistd-tests (Depends-on): Likewise.
18073
18074 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18075
18076         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18077         self-explaining comment.
18078         * m4/selinux-selinux-h: Update serial.
18079         (gl_LIBSELINUX): New macro, adding a warning for missing development
18080         packages to code extracted from...
18081         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18082         Add warning for missing development packages here, too.
18083
18084 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18085
18086         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18087
18088 2009-06-25  Eric Blake  <ebb9@byu.net>
18089
18090         version-etc: fix regression
18091         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18092         gcc.
18093         (version_etc): Use it, to catch bugs with trailing NULL.
18094         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18095         (version_etc_va): Fix logic bug.
18096         * modules/version-etc-tests: Add test.
18097         * tests/test-version-etc.c: New file.
18098         * tests/test-version-etc.sh: Likewise.
18099
18100 2009-06-25  Sam Steingold  <sds@gnu.org>
18101
18102         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18103         mbtowc declaration.
18104
18105 2009-06-25  Eric Blake  <ebb9@byu.net>
18106
18107         fpurge: migrate into <stdio.h>
18108         * lib/fpurge.h: Delete...
18109         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18110         * lib/fpurge.c (fpurge): Change declaring header.
18111         * modules/fpurge (Files): Drop deleted file.
18112         (Depends-on): Add stdio.
18113         (configure.ac): Set witness.
18114         * modules/stdio (Makefile.am): Support fpurge macros.
18115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18116         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18117         * lib/fflush.c: Update client.
18118         * tests/test-fpurge.c: Likewise.
18119         * NEWS: Mention the change.
18120
18121 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18122
18123         * lib/argp-version-etc.c (program_authors): Add const
18124         qualifier.
18125         * lib/version-etc.c: Fix typos in the comments.
18126         * modules/argp-version-etc: Depends on version-etc.
18127
18128 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18129
18130         argp-version-etc: new module.
18131
18132         * lib/argp-version-etc.c: New file.
18133         * lib/argp-version-etc.h: New file.
18134         * modules/argp-version-etc: New file.
18135         * modules/argp-version-etc-tests: New file.
18136         * tests/test-argp-version-etc.c: New test.
18137         * tests/test-argp-version-etc-1.sh: New test.
18138
18139 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18140
18141         Provide additional interfaces and documentation for version-etc
18142         module.
18143
18144         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18145         interfaces.
18146         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18147         prototypes.
18148
18149 2009-06-24  Bruno Haible  <bruno@clisp.org>
18150
18151         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18152         HAVE_LIB${NAME} macro.
18153         Reported by Sam Steingold <sds@gnu.org>.
18154
18155 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18156
18157         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18158         needed.
18159
18160 2009-06-21  Bruno Haible  <bruno@clisp.org>
18161
18162         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18163         work.
18164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18165         together with LIB${NAME}, LTLIB${NAME}.
18166         Reported by Sam Steingold <sds@gnu.org>.
18167
18168 2009-06-20  Jim Meyering  <meyering@redhat.com>
18169
18170         tests: make sc_require_test_exit_idiom more generic
18171         * top/maint.mk (Exit_witness_file): New overridable variable.
18172         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18173         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18174
18175 2009-06-19  Jim Meyering  <meyering@redhat.com>
18176
18177         hash: reverse order of src/dst parameters in an internal interface
18178         * lib/hash.c (transfer_entries): Reverse order of parameters to
18179         put DST before SRC.  Adjust callers.
18180
18181         tests: test-hash: avoid wholesale duplication
18182         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18183         Instead, use a loop and add a single conditional.
18184
18185         tests: test-hash: allow seed selection via a command line argument
18186         * tests/test-hash.c (get_seed): New function.
18187         (main): Use it.
18188
18189 2009-06-19  Eric Blake  <ebb9@byu.net>
18190
18191         hash: avoid memory leak on allocation failure
18192         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18193         failure.  Factor repeated algorithm...
18194         (transfer_entries): ...into new helper routine.
18195         (hash_delete): React to hash_rehash return value.
18196
18197         hash: reduce memory pressure in hash_rehash no-op case
18198         * lib/hash.c (next_prime): Avoid overflow.
18199         (hash_initialize): Factor bucket size computation...
18200         (compute_bucket_size): ...into new helper function.
18201         (hash_rehash): Use new function and open coding to reduce memory
18202         pressure, and avoid a memory leak in USE_OBSTACK code.
18203         Reported by Jim Meyering.
18204
18205 2009-06-18  Eric Blake  <ebb9@byu.net>
18206
18207         hash: make rotation more obvious
18208         * modules/hash (Depends-on): Add bitrotate and stdint.
18209         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18210         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18211         (SIZE_MAX): Rely on headers for definition.
18212         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18213         (raw_hasher): Use rotr_sz.
18214         Suggested by Jim Meyering.
18215
18216         hash: fix memory leak in last patch
18217         * lib/hash.c (hash_rehash): Avoid memory leak.
18218
18219         hash: avoid no-op rehashing
18220         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18221
18222         hash: provide default callback functions
18223         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18224         (hash_initialize): Use them as defaults.
18225         * tests/test-hash.c (main): Test this.
18226
18227         hash: minor optimization
18228         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18229         when possible.
18230         (hash_initialize): Document this promise.
18231         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18232         * tests/test-hash.c (hash_compare_strings): Test this.
18233
18234 2009-06-18  Bruno Haible  <bruno@clisp.org>
18235
18236         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18237         going to be replaced anyway.
18238
18239 2009-06-18  Bruno Haible  <bruno@clisp.org>
18240
18241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18242         in one place.
18243         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18244         be replaced anyway.
18245
18246 2009-06-18  Eric Blake  <ebb9@byu.net>
18247
18248         hash: check for resize before insertion
18249         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18250         threshold before insertion, so that a pathological hash_rehash
18251         that fills every bucket can still trigger another rehash.
18252
18253 2009-06-18  Jim Meyering  <meyering@redhat.com>
18254
18255         hash-tests: add a loop around the small tests
18256         * tests/test-hash.c (main): Repeat small tests with selected
18257         small initial table sizes.
18258
18259 2009-06-17  Eric Blake  <ebb9@byu.net>
18260
18261         hash: minor cleanups
18262         * lib/hash.h (hash_entry): Make opaque, by moving...
18263         * lib/hash.c (hash_entry): ...here.
18264         (hash_insert): Clarify restrictions on what can be inserted.
18265         (hash_get_next): Clarify when it is safe to remove an element
18266         during traversal.
18267         (check_tuning): Skip verification when tuning is known safe.
18268         (hash_initialize): Clarify restrictions on tuning.
18269
18270 2009-06-17  Jim Meyering  <jim@meyering.net>
18271         and Eric Blake  <ebb9@byu.net>
18272
18273         hash-tests: new module
18274         * modules/hash-tests: New file.
18275         * tests/test-hash.c: New file.
18276
18277 2009-06-17  Eric Blake  <ebb9@byu.net>
18278
18279         strstr-simple: document new module
18280         * MODULES.html.sh: Document new module.
18281
18282         strstr, strcasestr: replace on platforms with broken memchr
18283         * modules/strstr: Split into...
18284         * modules/strstr-simple: ...new module that does not care about
18285         performance, but does care about glibc bug.
18286         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18287         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18288         if platform memchr is broken, per Debian bug 521737.
18289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18290         memchr.
18291         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18292         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18293         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18294         * modules/mountlist (Depends-on): Add strstr-simple.
18295         * modules/gen-uni-tables (Depends-on): Likewise.
18296         * modules/argz (Depends-on): Add strstr.
18297
18298 2009-06-17  Bruno Haible  <bruno@clisp.org>
18299
18300         * modules/posix_spawn-internal (Depends-on): Add errno.
18301
18302 2009-06-17  Bruno Haible  <bruno@clisp.org>
18303
18304         Define missing ESTALE on Interix 3.5.
18305         * lib/errno.in.h (ESTALE): Assign a value if missing.
18306         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18307         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18308         missing.
18309         * doc/posix-headers/errno.texi: Mention the Interix bug.
18310         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18311
18312 2009-06-15  Eric Blake  <ebb9@byu.net>
18313
18314         memchr, memchr2: add valgrind exception
18315         * lib/memchr.valgrind: New file.
18316         * lib/memchr2.valgrind: New file.
18317         * modules/memchr (Files): Distribute valgrind file.
18318         * modules/memchr2 (Files): Likewise.
18319
18320         docs: memchr is no longer obsolete
18321         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18322         * lib/string.in.h (memchr): Simplify logic.
18323
18324 2009-06-14  Jim Meyering  <meyering@redhat.com>
18325
18326         link-follow: fix the "checking..." message to not mention trailing slash
18327         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18328         never considered trailing slashes.
18329
18330 2009-06-14  Bruno Haible  <bruno@clisp.org>
18331
18332         * m4/memchr.m4: Mention also the bug on IA-64.
18333         * doc/posix-functions/memchr.texi: Likewise.
18334
18335 2009-06-12  Eric Blake  <ebb9@byu.net>
18336
18337         memchr: detect broken x86_64 and alpha implementations
18338         * modules/memchr-tests (Depends-on): Move mmap detection...
18339         * modules/memchr (Depends-on): ...here.
18340         (configure.ac): Set indicator.
18341         * lib/string.in.h (memchr): Declare replacement.
18342         * modules/string (Makefile.am): Trigger replacement.
18343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18344         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18345         bugs.
18346         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18347         * modules/getpagesize (License): Relax license.
18348
18349 2009-06-11  Bruno Haible  <bruno@clisp.org>
18350
18351         * lib/idpriv.h: Add more references.
18352
18353 2009-06-08  Bruno Haible  <bruno@clisp.org>
18354
18355         Tests for module 'idpriv-droptemp'.
18356         * modules/idpriv-droptemp-tests: New file.
18357         * tests/test-idpriv-droptemp.sh: New file.
18358         * tests/test-idpriv-droptemp.su.sh: New file.
18359         * tests/test-idpriv-droptemp.c: New file.
18360
18361         New module 'idpriv-droptemp'.
18362         * lib/idpriv-droptemp.c: New file.
18363         * modules/idpriv-droptemp: New file.
18364
18365 2009-06-08  Bruno Haible  <bruno@clisp.org>
18366
18367         Tests for module 'idpriv-drop'.
18368         * modules/idpriv-drop-tests: New file.
18369         * tests/test-idpriv-drop.sh: New file.
18370         * tests/test-idpriv-drop.su.sh: New file.
18371         * tests/test-idpriv-drop.c: New file.
18372
18373         New module 'idpriv-drop'.
18374         * lib/idpriv.h: New file.
18375         * lib-idpriv-drop.c: New file.
18376         * m4/idpriv.m4: New file.
18377         * modules/idpriv-drop: New file.
18378
18379 2009-06-08  Bruno Haible  <bruno@clisp.org>
18380
18381         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18382         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18383         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18384         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18385         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18386         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18387         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18388
18389 2009-06-08  Eric Blake  <ebb9@byu.net>
18390
18391         test-strstr: use memory fence, when possible
18392         * tests/test-strstr.c (main): Use memory fence, in order to be
18393         more likely to trigger Debian bug 521737.
18394         * modules/strstr-tests (Files): Pull in additional files.
18395
18396         memchr: no longer obsolete, for wider field testing
18397         * modules/memchr (Status, Notice): Delete, this module is no
18398         longer obsolete.
18399         * modules/vasnprintf (Depends-on): Add memchr.
18400
18401 2009-06-07  Jim Meyering  <meyering@redhat.com>
18402
18403         hash: declare some functions with the warn_unused_result attribute
18404         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18405
18406 2009-06-07  Bruno Haible  <bruno@clisp.org>
18407
18408         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18409         Reported by Eric Blake.
18410
18411 2009-06-06  Eric Blake  <ebb9@byu.net>
18412
18413         test-alignof: fix typo with long double
18414         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18415         compiler error.
18416
18417 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18418
18419         Escape non-texinfo { and }s.
18420         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18421         markup error.
18422
18423 2009-06-04  Jim Meyering  <meyering@redhat.com>
18424
18425         gitlog-to-changelog: don't infloop on an empty commit log
18426         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18427         Reported by Boris Petersen <transacid@centerim.org>.
18428
18429 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18430
18431         version-etc: extend for packagers
18432         Add three new configure options, intended for packagers:
18433           --with-packager="packager name"
18434           --with-packager-version="packager-specific version"
18435           --with-packager-bug-reports="packager bug reporting"
18436         An example with coreutils:
18437           $ ./configure \
18438             --with-packager=Gentoo \
18439             --with-packager-bug-report=http://bugs.gentoo.org/ \
18440             --with-packager-version="patchset 1.6"
18441           $ ./src/ls --version | head -n2
18442           ls (GNU coreutils) 7.1-dirty
18443           Packaged by Gentoo (patchset 1.6)
18444         Note that the bug reporting info via --help doesn't show up because
18445         coreutils uses its own custom emit_bug_reporting_address() implementation
18446         in src/system.h.  If it didn't, it'd look like:
18447           $ ./src/ls --help | tail -n4
18448           Report bugs to <bug-coreutils@gnu.org>.
18449           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18450           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18451           General help using GNU software: <http://www.gnu.org/gethelp/>.
18452         * lib/version-etc.c: Print new information, if provided.
18453         * m4/version-etc.m4: New file.
18454         * modules/version-etc (Files): Add m4/version-etc.m4.
18455         (configure.ac): Add gl_VERSION_ETC.
18456
18457 2009-05-31  Bruno Haible  <bruno@clisp.org>
18458
18459         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18460         and 'int64_t'.
18461         * modules/alignof-tests (Dependencies): Add stdint.
18462         Reported by Eric Blake.
18463
18464 2009-05-31  Bruno Haible  <bruno@clisp.org>
18465
18466         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18467         restriction due to compiler bugs.
18468         Reported by Eric Blake.
18469
18470 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18471             Bruno Haible  <bruno@clisp.org>
18472
18473         Fix test-alignof failure.
18474         * lib/alignof.h (alignof_slot): New macro.
18475         (alignof_type): New macro, with the same semantics as the previous
18476         'alignof'.
18477         (alignof): Alias to alignof_slot.
18478         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18479         check that the results are usable as constant expressions.
18480
18481 2009-05-31  Bruno Haible  <bruno@clisp.org>
18482
18483         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18484         * tests/test-memchr.c (main): Check that memchr does not read past the
18485         first occurrence of the byte.
18486         * tests/test-strstr.c (main): Update comment.
18487         Suggested by Eric Blake.
18488
18489 2009-05-30  Bruno Haible  <bruno@clisp.org>
18490
18491         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18492         detail how to use dumpbin.
18493         Reported by David Byron <dbyron@dbyron.com>.
18494
18495 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18496
18497         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18498
18499 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18500
18501         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18502
18503 2009-05-28  Bruno Haible  <bruno@clisp.org>
18504
18505         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18506         build-aux/ files.
18507
18508 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18509
18510         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18511
18512 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18513
18514         * gnulib-tool (sed_transform_main_lib_file)
18515         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18516         regexps.
18517
18518 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18519
18520         * tests/test-strstr.c: Add another self-test.
18521         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18522         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18523
18524 2009-05-23  Bruno Haible  <bruno@clisp.org>
18525
18526         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18527         change.
18528
18529 2009-05-21  Bruno Haible  <bruno@clisp.org>
18530
18531         Simplify use of mode_t varargs.
18532         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18533         uses 'mode_t' or 'int'.
18534         * lib/openat.c (openat): Likewise.
18535         * lib/open-safer.c (open_safer): Likewise.
18536         * m4/mode_t.m4: New file.
18537         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18538         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18539         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18540         * modules/open (Files): Add m4/mode_t.m4.
18541         * modules/openat (Files): Likewise.
18542         * modules/fcntl-safer (Files): Likewise.
18543         Suggested by Eric Blake.
18544
18545 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18546
18547         * doc/glibc-functions/fallocate.texi: New file.
18548         * doc/gnulib.texi: Include it.
18549
18550 2009-05-21  Eric Blake  <ebb9@byu.net>
18551             Bruno Haible  <bruno@clisp.org>
18552
18553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18554         invocations.
18555         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18556
18557 2009-05-21  Eric Blake  <ebb9@byu.net>
18558             Bruno Haible  <bruno@clisp.org>
18559
18560         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18561         include_next. Fix of 2008-11-20 commit.
18562         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18563         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18564         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18565         NEXT_MATH_H.
18566         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18567         instead of NEXT_MATH_H.
18568
18569 2009-05-21  Bruno Haible  <bruno@clisp.org>
18570
18571         Avoid redefinition warnings for SIZE_MAX.
18572         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18573         Reported by Simon Josefsson.
18574
18575 2009-05-21  Bruno Haible  <bruno@clisp.org>
18576
18577         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18578         AC_CACHE_VAL.
18579
18580 2009-05-20  Bruno Haible  <bruno@clisp.org>
18581
18582         Make zeroptr.h work on mingw.
18583         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18584         mprotect.
18585         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18586         * modules/memchr2-tests (configure.ac): Likewise.
18587         * modules/memcmp-tests (configure.ac): Likewise.
18588         * modules/memmem-tests (configure.ac): Likewise.
18589         * modules/memrchr-tests (configure.ac): Likewise.
18590         Reported by Simon Josefsson.
18591
18592 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18593
18594         * tests/test-glob.c: Include string.h for strcmp prototype.
18595
18596 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18597
18598         * modules/getdelim (Depends-on): Add explicit stdint, although it
18599         was implicitly already pulled in via realloc-posix.
18600         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18601
18602 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18603
18604         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18605         G. Christensen" <tgc@jupiterrise.com>.
18606         * m4/sys_socket_h.m4: Check for sa_family_t.
18607         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18608         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18609         * tests/test-sys_socket.c: Check that sa_family_t works.
18610
18611 2009-05-18  Eric Blake  <ebb9@byu.net>
18612
18613         maint.mk: allow gnulib_dir in VPATH build
18614         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18615
18616 2009-05-15  Jim Meyering  <meyering@redhat.com>
18617
18618         maint.mk: Give gnulib_dir a default definition.
18619         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18620         Thus, most packages no longer need to specify this variable in cfg.mk
18621
18622 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18623
18624         rename.m4: fix typos that would make non-mingw cross-configure fail
18625         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18626
18627 2009-05-13  Eric Blake  <ebb9@byu.net>
18628
18629         mmap-anon: avoid out-of-order autoconf expansion
18630         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18631         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18632         * modules/memchr-tests (Depends-on): Add extensions.
18633         * modules/memchr2-tests (Depends-on): Add extensions.
18634         * modules/memcmp-tests (Depends-on): Add extensions.
18635         * modules/memmem-tests (Depends-on): Add extensions.
18636         * modules/memrchr-tests (Depends-on): Add extensions.
18637
18638 2009-05-13  Bruno Haible  <bruno@clisp.org>
18639
18640         Make some tests ISO C 99 compliant.
18641         * tests/zerosize-ptr.h: New file.
18642         * tests/test-memchr.c: Include zerosize-ptr.h.
18643         (main): Use a zero-size object pointer instead of NULL.
18644         * tests/test-memchr2.c: Include zerosize-ptr.h.
18645         (main): Use a zero-size object pointer instead of NULL.
18646         * tests/test-memcmp.c: Include zerosize-ptr.h.
18647         (main): Use a zero-size object pointer instead of NULL.
18648         * tests/test-memmem.c: Include zerosize-ptr.h.
18649         (main): Use a zero-size object pointer instead of NULL.
18650         * tests/test-memrchr.c: Include zerosize-ptr.h.
18651         (main): Use a zero-size object pointer instead of NULL.
18652         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18653         m4/mmap-anon.m4.
18654         (Depends-on): Add getpagesize.
18655         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18656         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18657         m4/mmap-anon.m4.
18658         (Depends-on): Add getpagesize.
18659         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18660         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18661         m4/mmap-anon.m4.
18662         (Depends-on): Add getpagesize.
18663         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18664         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18665         m4/mmap-anon.m4.
18666         (Depends-on): Add getpagesize.
18667         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18668         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18669         m4/mmap-anon.m4.
18670         (Depends-on): Add getpagesize.
18671         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18672
18673 2009-05-12  Bruno Haible  <bruno@clisp.org>
18674
18675         Tests for module 'alignof'.
18676         * modules/alignof-tests: New file.
18677         * tests/test-alignof.c: New file.
18678
18679 2009-05-12  Bruno Haible  <bruno@clisp.org>
18680
18681         Fix alignof macro.
18682         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18683         vendor compilers that are always correct.
18684
18685 2009-05-12  Bruno Haible  <bruno@clisp.org>
18686
18687         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18688         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18689         not whether its fully works.
18690
18691 2009-05-12  Bruno Haible  <bruno@clisp.org>
18692
18693         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18694
18695 2009-05-12  Jim Meyering  <meyering@redhat.com>
18696
18697         * top/maint.mk: Adjust backslash alignment.
18698
18699 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18700
18701         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18702
18703 2009-05-11  Eric Blake  <ebb9@byu.net>
18704
18705         argp: avoid undefined behavior
18706         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18707         macros.
18708
18709 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18710
18711         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18712         user.name to prevent git commit from complaining.
18713
18714 2009-05-10  Bruno Haible  <bruno@clisp.org>
18715
18716         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18717         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18718         it rewrites every file name only once.
18719         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18720
18721 2009-05-08  Bruno Haible  <bruno@clisp.org>
18722
18723         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18724         instead of 'max'.
18725
18726 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18727
18728         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18729         sockaddr_storage test.
18730
18731 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18732
18733         * modules/sys_socket (Makefile.am): Substitute
18734         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18735         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18736         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18737         * tests/test-sys_socket.c: Check sockaddr_storage.
18738
18739 2009-05-08  Bruno Haible  <bruno@clisp.org>
18740
18741         New module 'alignof'.
18742         * lib/alignof.h: New file.
18743         * modules/alignof: New file.
18744
18745 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18746             Bruno Haible  <bruno@clisp.org>
18747
18748         Fix test-file-has-acl on FreeBSD.
18749         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18750         mask is implicitly added.
18751         * tests/test-file-has-acl.c: Include <signal.h>.
18752         (main): Terminate the test after 5 seconds.
18753         * modules/acl-tests (configure.ac): Check for alarm function.
18754
18755 2009-05-04  Bruno Haible  <bruno@clisp.org>
18756
18757         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18759         * modules/errno (configure.ac): Drop AC_REQUIRE.
18760         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18761         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18762
18763 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18764
18765         * modules/glob-tests: New module.
18766         * tests/test-glob.c: Add.
18767
18768 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18769
18770         * modules/fnmatch-tests: New module.
18771         * tests/test-fnmatch.c: Add.
18772
18773 2009-05-04  Eric Blake  <ebb9@byu.net>
18774
18775         maint: make the new no-submodule-changes rule VPATH-safe
18776         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18777
18778 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18779             Bruno Haible  <bruno@clisp.org>
18780
18781         acl: Fix infinite loop on FreeBSD.
18782         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18783         of return value from acl_get_entry.
18784         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18785         Likewise.
18786
18787 2009-05-03  Bruno Haible  <bruno@clisp.org>
18788
18789         * lib/acl-internal.h (acl_entries): Clarify return value.
18790         * lib/acl_entries.c (acl_entries): Likewise.
18791
18792 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18793
18794         Bug fix in acl module.
18795         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18796
18797 2009-05-03  Bruno Haible  <bruno@clisp.org>
18798
18799         Create gperf-generated file in the source dir, not in the build dir.
18800         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18801         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18802         * modules/unicase/locale-language (unicase/locale-languages.h):
18803         Likewise.
18804         * modules/unicase/special-casing (unicase/special-casing-table.h):
18805         Likewise.
18806         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18807         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18808         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18809         Reported by Ralf Wildenhues.
18810
18811 2009-05-03  Bruno Haible  <bruno@clisp.org>
18812
18813         * modules/fnmatch (Description, configure.ac): Taken from
18814         fnmatch-posix.
18815         * modules/fnmatch-posix: Turn into a symbolic reference to the
18816         'fnmatch' module, and deprecate.
18817         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18818
18819 2009-05-03  Bruno Haible  <bruno@clisp.org>
18820
18821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18822         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18823         Reported by Ralf Wildenhues.
18824
18825 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18826
18827         * m4/fnmatch.m4: Fix fnmatch re-define.
18828
18829 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18830
18831         priv-set: new module and tests; adapt write-any-file
18832         * lib/priv-set.c: New file.
18833         * lib/priv-set.h: New file.
18834         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18835         * lib/write-any-file.c: Simplify by using priv-set module.
18836         * m4/priv-set.m4: New file.
18837         * modules/priv-set: New file.
18838         * modules/unlinkdir: Add dependency on priv-set module.
18839         * modules/write-any-file: Likewise.
18840
18841         Tests for module 'priv-set'.
18842         * modules/priv-set-tests: New file.
18843         * tests/test-priv-set.c: New file.
18844
18845 2009-05-03  Jim Meyering  <meyering@redhat.com>
18846             Bruno Haible  <bruno@clisp.org>
18847
18848         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18849         use the converted UTF-8 variant of the name instead.
18850
18851 2009-05-03  Jim Meyering  <meyering@redhat.com>
18852
18853         tests: tighten some getdate tests
18854         * tests/test-getdate.c (main): Tighten tests: require equality,
18855         not just greater than.  Set TZ envvar to UTC0.
18856
18857 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18858
18859         getdate: correctly interpret "next monday" when run on a Monday
18860         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18861         that e.g., "next tues" (when run on a tuesday) results in a date
18862         that is one week in the future, and not today's date.
18863         I.e., add a week when the wday is the same as the current one.
18864         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18865         and earlier by Martin Bernreuther and Jan Minář.
18866         * tests/test-getdate.c (main): Check that "next DAY" is always in
18867         the future and that "last DAY" is always in the past.
18868
18869 2009-05-02  Jim Meyering  <meyering@redhat.com>
18870
18871         build: ensure that a release build fails when a submodule is unclean
18872         * top/maint.mk (no-submodule-changes): New rule.
18873         (alpha beta major): Depend on it.
18874
18875 2009-05-02  Bruno Haible  <bruno@clisp.org>
18876
18877         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18878         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18879         shell variable gl_fnmatch_required to detect which variant is
18880         requested.
18881         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18882         gl_FUNC_FNMATCH_POSIX.
18883         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18884         exclude fnmatch-posix.
18885
18886 2009-05-02  Bruno Haible  <bruno@clisp.org>
18887
18888         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18889         * modules/mbsrtowcs (License): Change to LGPLv2+.
18890         * modules/strnlen1 (License): Likewise.
18891         Reported by Simon Josefsson.
18892
18893 2009-05-02  Bruno Haible  <bruno@clisp.org>
18894
18895         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18896         "cross".
18897         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18898         gnulib-tool was called with option --source-base=lib.
18899
18900 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18901
18902         Use automake *-local hooks without commands, for extensibility.
18903         * modules/localcharset (Makefile.am): Rename install-exec-local
18904         rule to install-exec-localcharset, and make it a prerequisite of
18905         install-exec-local.  Likewise, rename the uninstall-local rule to
18906         uninstall-localcharset, and make it a prerequisite of the former.
18907
18908 2009-05-01  Bruno Haible  <bruno@clisp.org>
18909
18910         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18911         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18912         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18914         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18915         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18916         m4/locale-zh.m4, m4/codeset.m4.
18917
18918         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18919         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
18920         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18921         m4/locale-zh.m4.
18922
18923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
18924         REPLACE_WCRTOMB if mbstate_t must be replaced.
18925         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
18926         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
18927
18928 2009-05-01  Bruno Haible  <bruno@clisp.org>
18929
18930         Avoid compiler warnings when redefining macros defined by <libintl.h>.
18931         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
18932         dngettext, dcngettext, textdomain, bindtextdomain,
18933         bind_textdomain_codeset): Undefine before redefining.
18934
18935 2009-04-30  Bruno Haible  <bruno@clisp.org>
18936
18937         Fix bug introduced on 2009-04-25.
18938         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
18939         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
18940         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
18941         is defined.
18942         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
18943         is defined.
18944         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
18945         is defined.
18946         Reported by Elbert_Pol <elbert.pol@gmail.com>.
18947
18948 2009-04-28  Bruno Haible  <bruno@clisp.org>
18949
18950         Comment tweaks.
18951         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18952         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
18953         * lib/unicase.h (u*_casexfrm): Likewise.
18954         Reported by Paolo Bonzini.
18955
18956 2009-04-28  Bruno Haible  <bruno@clisp.org>
18957
18958         Fix a compilation error.
18959         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
18960         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18961         Reported by Jim Meyering.
18962
18963 2009-04-27  Bruno Haible  <bruno@clisp.org>
18964
18965         New module 'libunistring'.
18966         * modules/libunistring: New file.
18967         * m4/libunistring.m4: New file.
18968         * MODULES.html.sh (Unicode string functions): Add it.
18969
18970 2009-04-27  Eric Blake  <ebb9@byu.net>
18971
18972         maint.mk: allow package-specific header to provide <config.h>
18973         * top/maint.mk (sc_require_config_h): New variable.
18974         (sc_require_config_h, sc_require_config_h_first): Use it.
18975
18976 2009-04-27  Simon Josefsson  <simon@josefsson.org>
18977
18978         * top/maint.mk (sc_avoid_if_before_free): Except
18979         useless-if-before-free script.
18980
18981 2009-04-27  Eric Blake  <ebb9@byu.net>
18982
18983         maintainer-makefile: depend on all required helper scripts
18984         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
18985         useless-if-before-free.
18986         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
18987         version, rather than assuming gnulib checkout is available.
18988         Reported by Simen Josefsson.
18989
18990 2009-04-26  Bruno Haible  <bruno@clisp.org>
18991
18992         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
18993         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
18994         "../" or "..".
18995
18996 2009-04-26  Bruno Haible  <bruno@clisp.org>
18997
18998         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
18999         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19000         AC_LIB_HAVE_LINKFLAGS.
19001
19002 2009-04-26  Bruno Haible  <bruno@clisp.org>
19003
19004         Simplify calling convention of u*_conv_from_encoding.
19005         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19006         u32_conv_from_encoding): Expect a resultbuf argument and return the
19007         result directly as a pointer.
19008         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19009         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19010         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19011         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19012         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19013         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19014         Update.
19015         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19016         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19017         * lib/vasnprintf.c (VASNPRINTF): Update.
19018         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19019         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19020         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19021         * NEWS: Mention the change.
19022
19023 2009-04-26  Bruno Haible  <bruno@clisp.org>
19024
19025         Simplify calling convention of u*_conv_to_encoding.
19026         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19027         u32_conv_to_encoding): Expect a resultbuf argument and return the
19028         result directly as a pointer.
19029         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19030         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19031         freeing scaled_offsets if mem_iconveha failed.
19032         * lib/unicase/u-casexfrm.h (FUNC): Update.
19033         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19034         * lib/vasnprintf.c (VASNPRINTF): Update.
19035         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19036         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19037         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19038         * NEWS: Mention the change.
19039
19040 2009-04-26  Bruno Haible  <bruno@clisp.org>
19041
19042         Avoid test failures on AIX and OSF/1.
19043         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19044         malloc(0).
19045         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19046         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19047         Likewise.
19048         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19049         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19050         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19051         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19052         * doc/posix-functions/malloc.texi: Document the portability problem
19053         related to malloc(0).
19054
19055 2009-04-26  Bruno Haible  <bruno@clisp.org>
19056
19057         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19058         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19059         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19060
19061 2009-04-25  Bruno Haible  <bruno@clisp.org>
19062
19063         Avoid link error when creating a namespace clean library.
19064         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19065         as macro with arguments if already defined as an alias.
19066         * lib/signbitf.c (gl_signbitf): Don't undefine.
19067         * lib/signbitd.c (gl_signbitd): Don't undefine.
19068         * lib/signbitl.c (gl_signbitl): Don't undefine.
19069
19070 2009-04-25  Jim Meyering  <meyering@redhat.com>
19071
19072         vc-list-files: fix another quoting bug
19073         * build-aux/vc-list-files: Avoid sed backslash expansion
19074         of pathological directory names.
19075
19076 2009-04-25  Eric Blake  <ebb9@byu.net>
19077
19078         vc-list-files: fix shell quoting error
19079         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19080         timestamp.
19081
19082 2009-04-25  Jim Meyering  <meyering@redhat.com>
19083
19084         vc-list-files: restore lost functionality with subdir argument
19085         * build-aux/vc-list-files: When given a non-"." sub-directory
19086         argument, substitute the $dir/ prefix back onto each resulting name.
19087         Otherwise, coreutils' root_tests check would fail.
19088
19089 2009-04-24  Eric Blake  <ebb9@byu.net>
19090
19091         vc-list-files: ignore git symlinks
19092         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19093         than ls-files, to ignore git symlinks.
19094
19095         maint.mk: import improvements from m4
19096         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19097         (move_if_change): Delete unused macro.
19098         (news-date-check, vc-diff-check): Support VPATH builds.
19099         (announcement): Likewise.  Split --bootstrap-tools list...
19100         (boostrap-tools): ...into separate list, which can be overridden
19101         in cfg.mk.
19102         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19103         requiring dependency on useless-if-before-free module.
19104         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19105         Support VPATH builds.
19106
19107 2009-04-24  Jim Meyering  <meyering@redhat.com>
19108
19109         maint.mk: remove coreutils-specific rules and variables
19110         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19111         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19112         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19113
19114         maint.mk: remove obsolete rule
19115         * top/maint.mk (rel-check): Remove rule.
19116         (WGET, WGETFLAGS): Remove now-unused variables.
19117
19118 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19119
19120         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19121         consistency.
19122
19123         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19124         '$(PATH_SEPARATOR)' instead of ':'.
19125
19126 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19127
19128         * lib/getopt1.c (main): Use 'const' for static array.
19129
19130 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19131
19132         * top/maint.mk: Sync with coreutils.
19133         * NEWS: Explain incompatibilities.
19134
19135 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19136             Bruno Haible  <bruno@clisp.org>
19137
19138         Fix cross-compilation results.
19139         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19140         statement, as third argument of AC_TRY_RUN.
19141         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19142         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19143         Likewise.
19144         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19145         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19146         Likewise.
19147         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19148         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19149         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19150
19151 2009-04-20  Bruno Haible  <bruno@clisp.org>
19152
19153         Avoid test failure on mingw.
19154         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19155
19156 2009-04-20  Bruno Haible  <bruno@clisp.org>
19157
19158         Avoid compilation error on mingw.
19159         * modules/localename-tests (Depends-on): Add locale.
19160
19161 2009-04-19  Bruno Haible  <bruno@clisp.org>
19162
19163         Support for building a shared library on Windows platforms.
19164         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19165         (main): Test the presence of UNINORM_NFC here.
19166         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19167         (main): Test the presence of UNINORM_NFD here.
19168         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19169         (main): Test the presence of UNINORM_NFKC here.
19170         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19171         (main): Test the presence of UNINORM_NFKD here.
19172
19173 2009-04-19  Bruno Haible  <bruno@clisp.org>
19174
19175         Avoid a compiler warning.
19176         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19177         Change type of variable 'sequence'.
19178
19179 2009-04-19  Bruno Haible  <bruno@clisp.org>
19180
19181         * modules/configmake (Makefile.am): When the contents of configmake.h
19182         does not change, arrange to preserve its modification time.
19183
19184 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19185
19186         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19187         gettext domain.
19188
19189 2009-04-16  Jim Meyering  <meyering@redhat.com>
19190
19191         useless-if-before-free: improve conversion code
19192         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19193         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19194
19195 2009-04-14  Bruno Haible  <bruno@clisp.org>
19196
19197         * modules/fcntl (Depends-on): Add extensions.
19198         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19199
19200 2009-04-12  Ben Pfaff  <blp@gnu.org>
19201
19202         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19203         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19204
19205 2009-03-20  Ben Pfaff  <blp@gnu.org>
19206
19207         Make rename replace existing destinations on Windows.
19208         * m4/rename.m4: Add test for Mingw.
19209         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19210         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19211         * doc/posix-functions/rename.texi: Document.
19212
19213 2009-04-10  Bruno Haible  <bruno@clisp.org>
19214
19215         New include file "iconveh.h".
19216         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19217         * lib/striconveh.h: Include it.
19218         (enum iconv_ilseq_handler): Remove definition.
19219         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19220         striconveh.h.
19221         * lib/striconveha.c: Include striconveh.h.
19222         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19223         * modules/striconveh (Files): Add lib/iconveh.h.
19224         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19225         lib/striconveh.h.
19226
19227 2009-04-10  Bruno Haible  <bruno@clisp.org>
19228
19229         * lib/uniconv.h: Update comment.
19230
19231 2009-04-10  Bruno Haible  <bruno@clisp.org>
19232
19233         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19234         always.
19235         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19236         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19237         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19238         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19239         "unistring-notinline.h", so that the function gets defined always.
19240         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19241         * lib/unistr/u8-uctomb.c: Likewise.
19242         * lib/unistr/u16-mbtouc.c: Likewise.
19243         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19244         * lib/unistr/u16-uctomb.c: Likewise.
19245         * lib/unistr/u32-mbtouc.c: Likewise.
19246         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19247         * lib/unistr/u32-uctomb.c: Likewise.
19248
19249 2009-04-10  Bruno Haible  <bruno@clisp.org>
19250
19251         Mark 'utime' obsolete.
19252         * modules/utime (Status, Notice): New sections.
19253         Suggested by Jim Meyering.
19254
19255         Fix cross-compile guess for utime test.
19256         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19257         autoconf.
19258         * doc/posix-functions/utime.texi: Give more precisions.
19259         Reported by Jan <ipif@ymail.com>.
19260
19261 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19262
19263         filevercmp: correct today's change
19264         * lib/filevercmp.c: Also handle coreutils' test inputs.
19265         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19266
19267         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19268         for reporting it.
19269         * lib/filevercmp.c: Special handle for "", "." and "..".
19270         * tests/test-filevercmp.c: Enlarge the set suite.
19271
19272 2009-04-07  Jim Meyering  <meyering@redhat.com>
19273
19274         useless-if-before-free: show how to remove braced useless free, too
19275         * build-aux/useless-if-before-free: still only in a comment, though.
19276
19277 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19278
19279         maint.mk: import changes to syntax-check macros from coreutils
19280         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19281         Use them in the relevant macros.
19282
19283 2009-04-06  Bruno Haible  <bruno@clisp.org>
19284
19285         Fix unportable use of bit-fields.
19286         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19287         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19288         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19289
19290 2009-04-06  Bruno Haible  <bruno@clisp.org>
19291
19292         Avoid test failures on AIX and OSF/1.
19293         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19294         that malloc(0) = NULL.
19295         * tests/unicase/test-u8-tolower.c (check): Likewise.
19296         * tests/unicase/test-u8-totitle.c (check): Likewise.
19297         * tests/unicase/test-u8-toupper.c (check): Likewise.
19298         * tests/unicase/test-u16-casefold.c (check): Likewise.
19299         * tests/unicase/test-u16-tolower.c (check): Likewise.
19300         * tests/unicase/test-u16-totitle.c (check): Likewise.
19301         * tests/unicase/test-u16-toupper.c (check): Likewise.
19302         * tests/unicase/test-u32-casefold.c (check): Likewise.
19303         * tests/unicase/test-u32-tolower.c (check): Likewise.
19304         * tests/unicase/test-u32-totitle.c (check): Likewise.
19305         * tests/unicase/test-u32-toupper.c (check): Likewise.
19306         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19307         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19308         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19309         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19310         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19311         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19312         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19313         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19314         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19315         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19316         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19317         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19318
19319 2009-04-05  Bruno Haible  <bruno@clisp.org>
19320
19321         Work around an autoconf limitation.
19322         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19323         comment line if it would be longer than 3 KB.
19324
19325 2009-04-05  Bruno Haible  <bruno@clisp.org>
19326
19327         Avoid test failure with libiconv-1.13.
19328         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19329         of the expected test results.
19330
19331 2009-04-05  Bruno Haible  <bruno@clisp.org>
19332
19333         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19334         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19335         that it should be installed.
19336
19337 2009-04-05  Bruno Haible  <bruno@clisp.org>
19338
19339         * gnulib-tool: New option --copy-file.
19340         (func_usage): Document it.
19341         (func_dest_tmpfilename): Moved out of func_import.
19342         (func_add_file, func_update_file): New functions, extracted from
19343         func_import.
19344         (func_import): Update.
19345
19346 2009-04-05  Karl Berry  <karl@gnu.org>
19347
19348         * README: prominently mention gnulib-tool.
19349         Rearrange sections so getting the code is near the top.
19350
19351 2009-04-05  Bruno Haible  <bruno@clisp.org>
19352
19353         * lib/unicase.h: Mention u*_cmp2.
19354         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19355         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19356         * lib/unicase/ulc-casecmp.c: Likewise.
19357         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19358         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19359         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19360         unistr/u8-cmp.
19361         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19362         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19363         unistr/u16-cmp.
19364         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19365         unistr/u32-cmp.
19366
19367         * lib/uninorm.h: Mention u*_cmp2.
19368         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19369         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19370         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19371         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19372         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19373         unistr/u8-cmp.
19374         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19375         unistr/u16-cmp.
19376         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19377         unistr/u32-cmp.
19378
19379         New module 'unistr/u32-cmp2'.
19380         * lib/unistr/u32-cmp2.c: New file.
19381         * modules/unistr/u32-cmp2: New file.
19382
19383         New module 'unistr/u16-cmp2'.
19384         * lib/unistr/u16-cmp2.c: New file.
19385         * modules/unistr/u16-cmp2: New file.
19386
19387         New module 'unistr/u8-cmp2'.
19388         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19389         * lib/unistr/u8-cmp2.c: New file.
19390         * lib/unistr/u-cmp2.h: New file.
19391         * modules/unistr/u8-cmp2: New file.
19392
19393 2009-04-05  Bruno Haible  <bruno@clisp.org>
19394
19395         * lib/unictype.h (uc_property_is_valid): New macro.
19396         * tests/unictype/test-pr_byname.c (main): Use it.
19397
19398         * lib/unistr.h: Doc fixes.
19399         * lib/uniconv.h: Doc fixes.
19400         * lib/unictype.h: Doc fixes.
19401
19402 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19403
19404         Port coreutils 7.2 to Solaris 8.
19405
19406         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19407         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19408         for Solaris 8.  This is a bit of a hack, as it means it's the
19409         caller's responsibility to add -lnsl if needed, but most likely it
19410         won't be needed since only getaddrinfo uses this and getaddrinfo
19411         isn't needed on Solaris 8.
19412
19413         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19414         problem to Solaris 8 encountered with coreutils 7.2, which
19415         resulted in a message "fnmatch.c:292: warning: passing argument 4
19416         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19417         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19418
19419 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19420
19421         * m4/ld-version-script.m4: Add FIXME comment.
19422
19423 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19424
19425         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19426         SOVERSION variable.
19427
19428 2009-04-02  Bruno Haible  <bruno@clisp.org>
19429
19430         * Makefile (info, html, dvi, pdf): Combine the rules.
19431         Suggested by Jim Meyering.
19432
19433 2009-04-01  Bruno Haible  <bruno@clisp.org>
19434
19435         * Makefile (info, html, dvi, pdf): New targets.
19436         Reported by Reuben Thomas <rrt@sc3d.org>.
19437
19438 2009-04-01  Bruno Haible  <bruno@clisp.org>
19439
19440         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19441         can be put into PATH.
19442         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19443
19444 2009-04-01  Bruno Haible  <bruno@clisp.org>
19445
19446         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19447
19448 2009-04-01  Bruno Haible  <bruno@clisp.org>
19449
19450         Rename module 'visibility'.
19451         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19452         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19453         * doc/gnulib.texi: Update.
19454         * MODULES.html.sh (Misc): Update.
19455         * NEWS: Mention the change.
19456
19457 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19458
19459         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19460         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19461         Eric Blake <ebb9@byu.net> for review.
19462         * MODULES.html.sh: Add lib-msvc-compat.
19463         * doc/gnulib.texi: Link to new section.
19464         * m4/ld-output-def.m4: New file.
19465         * doc/ld-output-def.texi: New file.
19466
19467 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19468
19469         Rename ld-version-script to lib-symbol-versions.  Suggested by
19470         Bruno Haible <bruno@clisp.org>.
19471         * modules/ld-version-script: Renamed to lib-symbol-versions.
19472         * doc/ld-version-script.texi: Fix module name.
19473         * MODULES.html.sh: Add lib-symbol-versions.
19474
19475 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19476
19477         * modules/u64-tests: New file.
19478         * tests/test-u64.c: New file.
19479
19480 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19481
19482         * MODULES.html.sh: Mention u64.
19483         * modules/u64: New module.
19484         * modules/crypto/sha512: Depend on u64 module instead of providing
19485         u64.h.
19486
19487 2009-03-27  Eric Blake  <ebb9@byu.net>
19488
19489         test-strerror: make debugging EAI_SYSTEM easier
19490         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19491         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19492         failure was EAI_SYSTEM.
19493
19494 2009-03-25  Bruno Haible  <bruno@clisp.org>
19495
19496         Fix a problem with --enable-relocatable on Solaris 7.
19497         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19498         since 2008-02-24.
19499
19500 2009-03-25  Eric Blake  <ebb9@byu.net>
19501
19502         test-sockets: avoid gcc warning
19503         * tests/test-sockets.c (main): Silence compiler warning.
19504
19505 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         New modules nproc, pthread, contributed by Glen Lenker.
19508
19509         * MODULES.html.sh: Add pthread, nproc.
19510         * lib/nproc.c: New file.
19511         * lib/nproc.h: New file.
19512         * lib/pthread.in.h: New file.
19513         * m4/pthread.m4: New file.
19514         * modules/nproc: New file.
19515         * modules/pthread: New file.
19516
19517 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19518
19519         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19520         New variable.
19521
19522 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19523
19524         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19525         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19526         * tests/test-filevercmp.c: Add tests for backup suffixes.
19527
19528 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19529
19530         * modules/stdlib (Depends-on): Add stdint, needed when defining
19531         struct random_data on, for example, HP-UX 10.20.  Reported by
19532         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19533
19534 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19535
19536         * lib/readline.c (readline): Call fflush on stdout after printing
19537         prompt.
19538
19539 2009-03-20  Bruno Haible  <bruno@clisp.org>
19540
19541         Remove dependency from 'close' module to -lws2_32 on native Windows.
19542         * lib/close-hook.h: New file.
19543         * lib/close-hook.c: New file.
19544         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19545         w32sock.h.
19546         (_gl_close_fd_maybe_socket): Remove function.
19547         (rpl_close): Invoke execute_all_close_hooks instead of
19548         _gl_close_fd_maybe_socket.
19549         * lib/sockets.c: Include close-hook.h, w32sock.h.
19550         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19551         (close_sockets_hook): New variable.
19552         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19553         (gl_sockets_cleanup): Unregister it.
19554         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19555         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19556         * modules/close-hook: New file.
19557         * modules/close (Files): Remove lib/w32sock.h.
19558         (Depends-on): Add close-hook.
19559         (Link): Remove section.
19560         * modules/sockets (Files): Add lib/w32sock.h.
19561         (Depends-on): Add close-hook.
19562         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19563         invocation.
19564         * NEWS: Mention that LIB_CLOSE is gone.
19565
19566 2009-03-23  Eric Blake  <ebb9@byu.net>
19567
19568         signal-tests: test previous patch
19569         * tests/test-signal.c: New file.
19570         * modules/signal-tests: Likewise.
19571
19572         signal.h: always support 'volatile sig_atomic_t'
19573         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19574         (gl_SIGNAL_H_DEFAULTS): Add a default.
19575         * modules/signal (Makefile.am): Substitute if needed.
19576         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19577         users can blindly add volatile.
19578         * doc/posix-headers/signal.texi (signal.h): Document it.
19579         Reported by Matthew Woehlke.
19580
19581 2009-03-23  Jim Meyering  <meyering@redhat.com>
19582
19583         pathmax: PATH_MAX: use pathconf only when available
19584         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19585         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19586         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19587         This avoids a link failure in a PSP cross-compilation environment
19588         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19589
19590         * lib/vasnprintf.c (divide): Fix typo in comment.
19591
19592 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19593
19594         * gnulib-tool (func_filter_filelist): Fix comment.
19595
19596 2009-03-20  Bruno Haible  <bruno@clisp.org>
19597
19598         Make sockets.h self-contained.
19599         * lib/sockets.c: Include sockets.h first.
19600         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19601
19602 2009-03-19  Eric Blake  <ebb9@byu.net>
19603
19604         doc: mention more functions added in cygwin 1.7.0
19605         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19606         addition.
19607         * doc/posix-functions/log2f.texi: Likewise.
19608
19609 2009-03-19  Jim Meyering  <meyering@redhat.com>
19610
19611         fsusage: avoid syntax error due to statement-before-declaration
19612         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19613         after all declarations.  Reported by Matthew Woehlke in
19614         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19615
19616 2009-03-18  Eric Blake  <ebb9@byu.net>
19617
19618         build-aux/compile: sync from automake
19619         * build-aux/compile: New file, from automake.
19620         * config/srclist.txt: Mention build-aux/compile.
19621
19622 2009-03-17  Bruno Haible  <bruno@clisp.org>
19623
19624         * lib/git-merge-changelog.c: Fix typo in comment.
19625         Reported by Reuben Thomas <rrt@sc3d.org>.
19626
19627 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19628
19629         * m4/regex.m4: update and improve help for
19630         --without-included-regex.
19631
19632 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19633
19634         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19635         failure on missing include files.
19636
19637 2009-03-17  Eric Blake  <ebb9@byu.net>
19638
19639         doc: mention more functions added in cygwin 1.7.0
19640         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19641         addition.
19642         * doc/posix-functions/fwscanf.texi: Likewise.
19643         * doc/posix-functions/swprintf.texi: Likewise.
19644         * doc/posix-functions/swscanf.texi: Likewise.
19645         * doc/posix-functions/vfwprintf.texi: Likewise.
19646         * doc/posix-functions/vfwscanf.texi: Likewise.
19647         * doc/posix-functions/vswprintf.texi: Likewise.
19648         * doc/posix-functions/vswscanf.texi: Likewise.
19649         * doc/posix-functions/vwprintf.texi: Likewise.
19650         * doc/posix-functions/vwscanf.texi: Likewise.
19651         * doc/posix-functions/wcscasecmp.texi: Likewise.
19652         * doc/posix-functions/wcsdup.texi: Likewise.
19653         * doc/posix-functions/wcsftime.texi: Likewise.
19654         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19655         * doc/posix-functions/wprintf.texi: Likewise.
19656         * doc/posix-functions/wscanf.texi: Likewise.
19657         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19658
19659 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19660
19661         maint.mk: really add $(AM_MAKEFLAGS)
19662         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19663         was inadvertently omitted in the last commit.
19664         Spotted by Bruno Haible.
19665
19666         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19667         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19668         $(AM_MAKEFLAGS)' rather than plain `make'.
19669
19670         gnulib-tool: execute $MAKE not make
19671         * gnulib-tool: Default $MAKE to 'make'.
19672         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19673         than make.  Initialize $MAKE in the do-autobuild script.
19674
19675         gnulib-tool: use $MAKE not make in generated files
19676         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19677         make, in generated files.  Initialize $MAKE in the do-autobuild
19678         script.
19679
19680         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19681
19682         GNUmakefile: disable parallelism only for multiple, recursive targets
19683         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19684         additions in the Makefile.
19685         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19686         by Automake.
19687         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19688         are listed on the command line and at least one of them is
19689         listed in $(ALL_RECURSIVE_TARGETS).
19690
19691 2009-03-14  Bruno Haible  <bruno@clisp.org>
19692
19693         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19694         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19695         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19696         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19697         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19698         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19699         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19700         unistr/u8-uctomb.
19701         * modules/unistr/u8-strchr (Depends-on): Likewise.
19702         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19703         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19704         unistr/u16-uctomb.
19705         * modules/unistr/u16-strchr (Depends-on): Likewise.
19706         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19707
19708 2009-03-12  Bruno Haible  <bruno@clisp.org>
19709
19710         Work around select() bug on Interix 3.5.
19711         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19712         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19713         * m4/select.m4: New file.
19714         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19715         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19716         * modules/select (Files): Add m4/select.m4.
19717         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19718         * modules/nanosleep (Depends-on): Add select.
19719         * modules/poll (Depends-on): Likewise.
19720         * doc/posix-functions/select.texi: Mention the Interix bug.
19721         Reported by Markus Duft <mduft@gentoo.org>.
19722
19723         * lib/select.c: Renamed from lib/winsock-select.c.
19724         * modules/select (Files): Add lib/select.c, remove
19725         lib/winsock-select.c.
19726         (configure.ac): Update.
19727
19728 2009-03-12  Jim Meyering  <meyering@redhat.com>
19729
19730         avoid gcc warnings about unused macro definitions
19731         * lib/readtokens.c (STREQ): Remove unused definition.
19732         * lib/xmalloc.c (SIZE_MAX): Likewise.
19733         * lib/openat-die.c (N_): Likewise.
19734         * lib/mountlist.c (SIZE_MAX): Remove definition.
19735         Instead, include <stdint.h>.
19736         * lib/readutmp.c: Likewise.
19737         * modules/readutmp (Depends-on): Add stdint.
19738         * modules/mountlist (Depends-on): Add stdint.
19739         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19740
19741 2009-03-10  Bruno Haible  <bruno@clisp.org>
19742
19743         Tests for module 'mbmemcasecoll'.
19744         * modules/mbmemcasecoll-tests: New file.
19745         * tests/test-mbmemcasecoll1.sh: New file.
19746         * tests/test-mbmemcasecoll2.sh: New file.
19747         * tests/test-mbmemcasecoll3.sh: New file.
19748         * tests/test-mbmemcasecoll.c: New file.
19749
19750         New module 'mbmemcasecoll'.
19751         * lib/mbmemcasecoll.h: New file.
19752         * lib/mbmemcasecoll.c: New file.
19753         * modules/mbmemcasecoll: New file.
19754
19755         * tests/test-mbmemcasecmp.h: New file, extracted from
19756         tests/test-mbmemcasecmp.c.
19757         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19758         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19759         (main): Update.
19760         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19761
19762 2009-03-09  Bruno Haible  <bruno@clisp.org>
19763
19764         Tests for module 'mbmemcasecmp'.
19765         * modules/mbmemcasecmp-tests: New file.
19766         * tests/test-mbmemcasecmp1.sh: New file.
19767         * tests/test-mbmemcasecmp2.sh: New file.
19768         * tests/test-mbmemcasecmp3.sh: New file.
19769         * tests/test-mbmemcasecmp.c: New file.
19770
19771         New module 'mbmemcasecmp'.
19772         * lib/mbmemcasecmp.h: New file.
19773         * lib/mbmemcasecmp.c: New file.
19774         * modules/mbmemcasecmp: New file.
19775
19776 2009-03-09  Bruno Haible  <bruno@clisp.org>
19777
19778         Tests for module 'unicase/ulc-casecoll'.
19779         * modules/unicase/ulc-casecoll-tests: New file.
19780         * tests/unicase/test-ulc-casecoll1.sh: New file.
19781         * tests/unicase/test-ulc-casecoll2.sh: New file.
19782         * tests/unicase/test-ulc-casecoll.c: New file.
19783
19784         New module 'unicase/ulc-casecoll'.
19785         * lib/unicase.h (ulc_casecoll): New declaration.
19786         * lib/unicase/ulc-casecoll.c: New file.
19787         * modules/unicase/ulc-casecoll: New file.
19788
19789         New module 'unicase/ulc-casexfrm'.
19790         * lib/unicase.h (ulc_casexfrm): New declaration.
19791         * lib/unicase/ulc-casexfrm.c: New file.
19792         * modules/unicase/ulc-casexfrm: New file.
19793
19794 2009-03-09  Bruno Haible  <bruno@clisp.org>
19795
19796         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19797         invocations.
19798
19799         * m4/mbscasecmp.m4: Remove file.
19800         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19801         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19802
19803         * m4/mbscasestr.m4: Remove file.
19804         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19805         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19806
19807         * m4/mbschr.m4: Remove file.
19808         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19809         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19810
19811         * m4/mbscspn.m4: Remove file.
19812         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19813         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19814
19815         * m4/mbslen.m4: Remove file.
19816         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19817         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19818
19819         * m4/mbsncasecmp.m4: Remove file.
19820         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19821         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19822
19823         * m4/mbsnlen.m4: Remove file.
19824         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19825         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19826
19827         * m4/mbspbrk.m4: Remove file.
19828         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19829         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19830
19831         * m4/mbspcasecmp.m4: Remove file.
19832         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19833         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19834
19835         * m4/mbsrchr.m4: Remove file.
19836         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19837         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19838
19839         * m4/mbssep.m4: Remove file.
19840         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19841         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19842
19843         * m4/mbsspn.m4: Remove file.
19844         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19845         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19846
19847         * m4/mbsstr.m4: Remove file.
19848         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19849         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19850
19851         * m4/mbstok_r.m4: Remove file.
19852         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19853         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19854
19855         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19856
19857         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19858         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19859
19860         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19861
19862 2009-03-08  Bruno Haible  <bruno@clisp.org>
19863
19864         Tests for module 'unicase/ulc-casecmp'.
19865         * modules/unicase/ulc-casecmp-tests: New file.
19866         * tests/unicase/test-ulc-casecmp1.sh: New file.
19867         * tests/unicase/test-ulc-casecmp2.sh: New file.
19868         * tests/unicase/test-ulc-casecmp.c: New file.
19869
19870         New module 'unicase/ulc-casecmp'.
19871         * lib/unicase.h (ulc_casecmp): New declaration.
19872         * lib/unicase/ulc-casecmp.c: New file.
19873         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19874         'const SRC_UNIT *'.
19875         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19876         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19877         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19878         * modules/unicase/ulc-casecmp: New file.
19879
19880         Tests for module 'unicase/u32-is-cased'.
19881         * modules/unicase/u32-is-cased-tests: New file.
19882         * tests/unicase/test-u32-is-cased.c: New file.
19883
19884         Tests for module 'unicase/u16-is-cased'.
19885         * modules/unicase/u16-is-cased-tests: New file.
19886         * tests/unicase/test-u16-is-cased.c: New file.
19887
19888         Tests for module 'unicase/u8-is-cased'.
19889         * modules/unicase/u8-is-cased-tests: New file.
19890         * tests/unicase/test-u8-is-cased.c: New file.
19891         * tests/unicase/test-is-cased.h: New file.
19892
19893         New module 'unicase/u32-is-cased'.
19894         * lib/unicase/u32-is-cased.c: New file.
19895         * modules/unicase/u32-is-cased: New file.
19896
19897         New module 'unicase/u16-is-cased'.
19898         * lib/unicase/u16-is-cased.c: New file.
19899         * modules/unicase/u16-is-cased: New file.
19900
19901         New module 'unicase/u8-is-cased'.
19902         * lib/unicase/u8-is-cased.c: New file.
19903         * lib/unicase/u-is-cased.h: New file.
19904         * modules/unicase/u8-is-cased: New file.
19905
19906         Tests for module 'unicase/u32-is-casefolded'.
19907         * modules/unicase/u32-is-casefolded-tests: New file.
19908         * tests/unicase/test-u32-is-casefolded.c: New file.
19909
19910         Tests for module 'unicase/u16-is-casefolded'.
19911         * modules/unicase/u16-is-casefolded-tests: New file.
19912         * tests/unicase/test-u16-is-casefolded.c: New file.
19913
19914         Tests for module 'unicase/u8-is-casefolded'.
19915         * modules/unicase/u8-is-casefolded-tests: New file.
19916         * tests/unicase/test-u8-is-casefolded.c: New file.
19917         * tests/unicase/test-is-casefolded.h: New file.
19918
19919         New module 'unicase/u32-is-casefolded'.
19920         * lib/unicase/u32-is-casefolded.c: New file.
19921         * modules/unicase/u32-is-casefolded: New file.
19922
19923         New module 'unicase/u16-is-casefolded'.
19924         * lib/unicase/u16-is-casefolded.c: New file.
19925         * modules/unicase/u16-is-casefolded: New file.
19926
19927         New module 'unicase/u8-is-casefolded'.
19928         * lib/unicase/u8-is-casefolded.c: New file.
19929         * modules/unicase/u8-is-casefolded: New file.
19930
19931         Tests for module 'unicase/u32-is-titlecase'.
19932         * modules/unicase/u32-is-titlecase-tests: New file.
19933         * tests/unicase/test-u32-is-titlecase.c: New file.
19934
19935         Tests for module 'unicase/u16-is-titlecase'.
19936         * modules/unicase/u16-is-titlecase-tests: New file.
19937         * tests/unicase/test-u16-is-titlecase.c: New file.
19938
19939         Tests for module 'unicase/u8-is-titlecase'.
19940         * modules/unicase/u8-is-titlecase-tests: New file.
19941         * tests/unicase/test-u8-is-titlecase.c: New file.
19942         * tests/unicase/test-is-titlecase.h: New file.
19943
19944         New module 'unicase/u32-is-titlecase'.
19945         * lib/unicase/u32-is-titlecase.c: New file.
19946         * modules/unicase/u32-is-titlecase: New file.
19947
19948         New module 'unicase/u16-is-titlecase'.
19949         * lib/unicase/u16-is-titlecase.c: New file.
19950         * modules/unicase/u16-is-titlecase: New file.
19951
19952         New module 'unicase/u8-is-titlecase'.
19953         * lib/unicase/u8-is-titlecase.c: New file.
19954         * modules/unicase/u8-is-titlecase: New file.
19955
19956         Tests for module 'unicase/u32-is-lowercase'.
19957         * modules/unicase/u32-is-lowercase-tests: New file.
19958         * tests/unicase/test-u32-is-lowercase.c: New file.
19959
19960         Tests for module 'unicase/u16-is-lowercase'.
19961         * modules/unicase/u16-is-lowercase-tests: New file.
19962         * tests/unicase/test-u16-is-lowercase.c: New file.
19963
19964         Tests for module 'unicase/u8-is-lowercase'.
19965         * modules/unicase/u8-is-lowercase-tests: New file.
19966         * tests/unicase/test-u8-is-lowercase.c: New file.
19967         * tests/unicase/test-is-lowercase.h: New file.
19968
19969         New module 'unicase/u32-is-lowercase'.
19970         * lib/unicase/u32-is-lowercase.c: New file.
19971         * modules/unicase/u32-is-lowercase: New file.
19972
19973         New module 'unicase/u16-is-lowercase'.
19974         * lib/unicase/u16-is-lowercase.c: New file.
19975         * modules/unicase/u16-is-lowercase: New file.
19976
19977         New module 'unicase/u8-is-lowercase'.
19978         * lib/unicase/u8-is-lowercase.c: New file.
19979         * modules/unicase/u8-is-lowercase: New file.
19980
19981         Tests for module 'unicase/u32-is-uppercase'.
19982         * modules/unicase/u32-is-uppercase-tests: New file.
19983         * tests/unicase/test-u32-is-uppercase.c: New file.
19984
19985         Tests for module 'unicase/u16-is-uppercase'.
19986         * modules/unicase/u16-is-uppercase-tests: New file.
19987         * tests/unicase/test-u16-is-uppercase.c: New file.
19988
19989         Tests for module 'unicase/u8-is-uppercase'.
19990         * modules/unicase/u8-is-uppercase-tests: New file.
19991         * tests/unicase/test-u8-is-uppercase.c: New file.
19992         * tests/unicase/test-is-uppercase.h: New file.
19993
19994         New module 'unicase/u32-is-uppercase'.
19995         * lib/unicase/u32-is-uppercase.c: New file.
19996         * modules/unicase/u32-is-uppercase: New file.
19997
19998         New module 'unicase/u16-is-uppercase'.
19999         * lib/unicase/u16-is-uppercase.c: New file.
20000         * modules/unicase/u16-is-uppercase: New file.
20001
20002         New module 'unicase/u8-is-uppercase'.
20003         * lib/unicase/u8-is-uppercase.c: New file.
20004         * modules/unicase/u8-is-uppercase: New file.
20005
20006         New module 'unicase/u32-is-invariant'.
20007         * lib/unicase/u32-is-invariant.c: New file.
20008         * modules/unicase/u32-is-invariant: New file.
20009
20010         New module 'unicase/u16-is-invariant'.
20011         * lib/unicase/u16-is-invariant.c: New file.
20012         * modules/unicase/u16-is-invariant: New file.
20013
20014         New module 'unicase/u8-is-invariant'.
20015         * lib/unicase/u8-is-invariant.c: New file.
20016         * lib/unicase/invariant.h: New file.
20017         * lib/unicase/u-is-invariant.h: New file.
20018         * modules/unicase/u8-is-invariant: New file.
20019
20020         Tests for module 'unicase/u32-casecoll'.
20021         * modules/unicase/u32-casecoll-tests: New file.
20022         * tests/unicase/test-u32-casecoll.c: New file.
20023
20024         Tests for module 'unicase/u16-casecoll'.
20025         * modules/unicase/u16-casecoll-tests: New file.
20026         * tests/unicase/test-u16-casecoll.c: New file.
20027
20028         Tests for module 'unicase/u8-casecoll'.
20029         * modules/unicase/u8-casecoll-tests: New file.
20030         * tests/unicase/test-u8-casecoll.c: New file.
20031
20032         New module 'unicase/u32-casecoll'.
20033         * lib/unicase/u32-casecoll.c: New file.
20034         * modules/unicase/u32-casecoll: New file.
20035
20036         New module 'unicase/u16-casecoll'.
20037         * lib/unicase/u16-casecoll.c: New file.
20038         * modules/unicase/u16-casecoll: New file.
20039
20040         New module 'unicase/u8-casecoll'.
20041         * lib/unicase/u8-casecoll.c: New file.
20042         * lib/unicase/u-casecoll.h: New file.
20043         * modules/unicase/u8-casecoll: New file.
20044
20045         New module 'unicase/u32-casexfrm'.
20046         * lib/unicase/u32-casexfrm.c: New file.
20047         * modules/unicase/u32-casexfrm: New file.
20048
20049         New module 'unicase/u16-casexfrm'.
20050         * lib/unicase/u16-casexfrm.c: New file.
20051         * modules/unicase/u16-casexfrm: New file.
20052
20053         New module 'unicase/u8-casexfrm'.
20054         * lib/unicase/u8-casexfrm.c: New file.
20055         * lib/unicase/u-casexfrm.h: New file.
20056         * modules/unicase/u8-casexfrm: New file.
20057
20058         Tests for module 'unicase/u32-casecmp'.
20059         * modules/unicase/u32-casecmp-tests: New file.
20060         * tests/unicase/test-u32-casecmp.c: New file.
20061
20062         Tests for module 'unicase/u16-casecmp'.
20063         * modules/unicase/u16-casecmp-tests: New file.
20064         * tests/unicase/test-u16-casecmp.c: New file.
20065
20066         Tests for module 'unicase/u8-casecmp'.
20067         * modules/unicase/u8-casecmp-tests: New file.
20068         * tests/unicase/test-u8-casecmp.c: New file.
20069         * tests/unicase/test-casecmp.h: New file.
20070
20071         New module 'unicase/u32-casecmp'.
20072         * lib/unicase/u32-casecmp.c: New file.
20073         * modules/unicase/u32-casecmp: New file.
20074
20075         New module 'unicase/u16-casecmp'.
20076         * lib/unicase/u16-casecmp.c: New file.
20077         * modules/unicase/u16-casecmp: New file.
20078
20079         New module 'unicase/u8-casecmp'.
20080         * lib/unicase/u8-casecmp.c: New file.
20081         * lib/unicase/u-casecmp.h: New file.
20082         * modules/unicase/u8-casecmp: New file.
20083
20084         Tests for module 'unicase/u32-casefold'.
20085         * modules/unicase/u32-casefold-tests: New file.
20086         * tests/unicase/test-u32-casefold.c: New file.
20087
20088         Tests for module 'unicase/u16-casefold'.
20089         * modules/unicase/u16-casefold-tests: New file.
20090         * tests/unicase/test-u16-casefold.c: New file.
20091
20092         Tests for module 'unicase/u8-casefold'.
20093         * modules/unicase/u8-casefold-tests: New file.
20094         * tests/unicase/test-u8-casefold.c: New file.
20095
20096         New module 'unicase/u32-casefold'.
20097         * lib/unicase/u32-casefold.c: New file.
20098         * modules/unicase/u32-casefold: New file.
20099
20100         New module 'unicase/u16-casefold'.
20101         * lib/unicase/u16-casefold.c: New file.
20102         * modules/unicase/u16-casefold: New file.
20103
20104         New module 'unicase/u8-casefold'.
20105         * lib/unicase/u8-casefold.c: New file.
20106         * lib/unicase/u-casefold.h: New file.
20107         * modules/unicase/u8-casefold: New file.
20108
20109         New module 'unicase/tocasefold'.
20110         * lib/unicase/casefold.h: New file.
20111         * lib/unicase/tocasefold.c: New file.
20112         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20113         * modules/unicase/tocasefold: New file.
20114
20115         Tests for module 'unicase/u32-totitle'.
20116         * modules/unicase/u32-totitle-tests: New file.
20117         * tests/unicase/test-u32-totitle.c: New file.
20118
20119         Tests for module 'unicase/u16-totitle'.
20120         * modules/unicase/u16-totitle-tests: New file.
20121         * tests/unicase/test-u16-totitle.c: New file.
20122
20123         Tests for module 'unicase/u8-totitle'.
20124         * modules/unicase/u8-totitle-tests: New file.
20125         * tests/unicase/test-u8-totitle.c: New file.
20126
20127         New module 'unicase/u32-totitle'.
20128         * lib/unicase/u32-totitle.c: New file.
20129         * modules/unicase/u32-totitle: New file.
20130
20131         New module 'unicase/u16-totitle'.
20132         * lib/unicase/u16-totitle.c: New file.
20133         * modules/unicase/u16-totitle: New file.
20134
20135         New module 'unicase/u8-totitle'.
20136         * lib/unicase/u8-totitle.c: New file.
20137         * lib/unicase/u-totitle.h: New file.
20138         * modules/unicase/u8-totitle: New file.
20139
20140         Tests for module 'unicase/u32-tolower'.
20141         * modules/unicase/u32-tolower-tests: New file.
20142         * tests/unicase/test-u32-tolower.c: New file.
20143
20144         Tests for module 'unicase/u16-tolower'.
20145         * modules/unicase/u16-tolower-tests: New file.
20146         * tests/unicase/test-u16-tolower.c: New file.
20147
20148         Tests for module 'unicase/u8-tolower'.
20149         * modules/unicase/u8-tolower-tests: New file.
20150         * tests/unicase/test-u8-tolower.c: New file.
20151
20152         New module 'unicase/u32-tolower'.
20153         * lib/unicase/u32-tolower.c: New file.
20154         * modules/unicase/u32-tolower: New file.
20155
20156         New module 'unicase/u16-tolower'.
20157         * lib/unicase/u16-tolower.c: New file.
20158         * modules/unicase/u16-tolower: New file.
20159
20160         New module 'unicase/u8-tolower'.
20161         * lib/unicase/u8-tolower.c: New file.
20162         * modules/unicase/u8-tolower: New file.
20163
20164         Tests for module 'unicase/u32-toupper'.
20165         * modules/unicase/u32-toupper-tests: New file.
20166         * tests/unicase/test-u32-toupper.c: New file.
20167
20168         Tests for module 'unicase/u16-toupper'.
20169         * modules/unicase/u16-toupper-tests: New file.
20170         * tests/unicase/test-u16-toupper.c: New file.
20171
20172         Tests for module 'unicase/u8-toupper'.
20173         * modules/unicase/u8-toupper-tests: New file.
20174         * tests/unicase/test-u8-toupper.c: New file.
20175
20176         New module 'unicase/u32-toupper'.
20177         * lib/unicase/u32-toupper.c: New file.
20178         * modules/unicase/u32-toupper: New file.
20179
20180         New module 'unicase/u16-toupper'.
20181         * lib/unicase/u16-toupper.c: New file.
20182         * modules/unicase/u16-toupper: New file.
20183
20184         New module 'unicase/u8-toupper'.
20185         * lib/unicase/u8-toupper.c: New file.
20186         * modules/unicase/u8-toupper: New file.
20187
20188         New module 'unicase/u32-casemap'.
20189         * lib/unicase/u32-casemap.c: New file.
20190         * modules/unicase/u32-casemap: New file.
20191
20192         New module 'unicase/u16-casemap'.
20193         * lib/unicase/u16-casemap.c: New file.
20194         * modules/unicase/u16-casemap: New file.
20195
20196         New module 'unicase/u8-casemap'.
20197         * lib/unicase/unicasemap.h: New file.
20198         * lib/unicase/u8-casemap.c: New file.
20199         * lib/unicase/u-casemap.h: New file.
20200         * modules/unicase/u8-casemap: New file.
20201
20202         New module 'unicase/special-casing'.
20203         * lib/unicase/special-casing.h: New file.
20204         * lib/unicase/special-casing.c: New file.
20205         * lib/unicase/special-casing-table.gperf: New file, generated by
20206         gen-uni-tables.c.
20207         * modules/unicase/special-casing: New file.
20208
20209         Tests for module 'unicase/locale-language'.
20210         * modules/unicase/locale-language-tests: New file.
20211         * tests/unicase/test-locale-language.sh: New file.
20212         * tests/unicase/test-locale-language.c: New file.
20213
20214         New module 'unicase/locale-language'.
20215         * lib/unicase/locale-language.c: New file.
20216         * lib/unicase/locale-languages.gperf: New file.
20217         * modules/unicase/locale-language: New file.
20218
20219         Generate more tables for case conversion and case folding.
20220         * lib/gen-uni-tables.c (SCC_*): New enum items.
20221         (struct special_casing_rule): New type.
20222         (casing_rules, num_casing_rules, allocated_casing_rules): New
20223         variables.
20224         (add_casing_rule, fill_casing_rules): New functions.
20225         (struct casefold_rule): New type.
20226         (casefolding_rules, num_casefolding_rules,
20227         allocated_casefolding_rules): New variables.
20228         (fill_casefolding_rules): New function.
20229         (unicode_casefold): New variable.
20230         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20231         sort_casing_rules, output_casing_rules): New functions.
20232         (main): Accept to more arguments: SpecialCasing.txt and
20233         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20234         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20235         Output mapping for casefolding.
20236
20237         * lib/unicase.h: Include stdbool.h, uninorm.h.
20238         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20239         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20240         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20241         arguments.
20242         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20243         resultp arguments.
20244         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20245         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20246         resultp arguments.
20247         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20248         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20249         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20250         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20251         declarations.
20252         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20253
20254 2009-03-08  Bruno Haible  <bruno@clisp.org>
20255
20256         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20257         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20258         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20259         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20260
20261 2009-03-07  Bruno Haible  <bruno@clisp.org>
20262
20263         Adjust u*_normcmp, u*_normcoll API.
20264         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20265         u16_normcoll, u32_normcoll): Change failure conventions.
20266         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20267         errno and return -1.
20268         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20269
20270 2009-03-07  Bruno Haible  <bruno@clisp.org>
20271
20272         Tests for module 'uninorm/u32-normcoll'.
20273         * modules/uninorm/u32-normcoll-tests: New file.
20274         * tests/uninorm/test-u32-normcoll.c: New file.
20275
20276         Tests for module 'uninorm/u16-normcoll'.
20277         * modules/uninorm/u16-normcoll-tests: New file.
20278         * tests/uninorm/test-u16-normcoll.c: New file.
20279
20280         Tests for module 'uninorm/u8-normcoll'.
20281         * modules/uninorm/u8-normcoll-tests: New file.
20282         * tests/uninorm/test-u8-normcoll.c: New file.
20283
20284 2009-03-07  Bruno Haible  <bruno@clisp.org>
20285
20286         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20287         tests/uninorm/test-u32-normcmp.c.
20288         * tests/uninorm/test-u32-normcmp.c: Include it.
20289         (test_nonascii): New function, extracted from main. Add some more
20290         tests.
20291         (main): Invoke test_ascii and test_nonascii.
20292         * modules/uninorm/u32-normcmp-tests (Files): Add
20293         tests/uninorm/test-u32-normcmp.h.
20294         (Depends-on): Remove uninorm/u32-normcmp.
20295
20296         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20297         tests/uninorm/test-u16-normcmp.c.
20298         * tests/uninorm/test-u16-normcmp.c: Include it.
20299         (test_nonascii): New function, extracted from main. Add some more
20300         tests.
20301         (main): Invoke test_ascii and test_nonascii.
20302         * modules/uninorm/u16-normcmp-tests (Files): Add
20303         tests/uninorm/test-u16-normcmp.h.
20304         (Depends-on): Remove uninorm/u16-normcmp.
20305
20306         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20307         tests/uninorm/test-u8-normcmp.c.
20308         * tests/uninorm/test-u8-normcmp.c: Include it.
20309         (test_nonascii): New function, extracted from main. Add some more
20310         tests.
20311         (main): Invoke test_ascii and test_nonascii.
20312         * modules/uninorm/u8-normcmp-tests (Files): Add
20313         tests/uninorm/test-u8-normcmp.h.
20314         (Depends-on): Remove uninorm/u8-normcmp.
20315
20316 2009-03-07  Bruno Haible  <bruno@clisp.org>
20317
20318         New module 'uninorm/u32-normcoll'.
20319         * lib/uninorm/u32-normcoll.c: New file.
20320         * modules/uninorm/u32-normcoll: New file.
20321
20322         New module 'uninorm/u16-normcoll'.
20323         * lib/uninorm/u16-normcoll.c: New file.
20324         * modules/uninorm/u16-normcoll: New file.
20325
20326         New module 'uninorm/u8-normcoll'.
20327         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20328         declarations.
20329         * lib/uninorm/u8-normcoll.c: New file.
20330         * lib/uninorm/u-normcoll.h: New file.
20331         * modules/uninorm/u8-normcoll: New file.
20332
20333         New module 'uninorm/u32-normxfrm'.
20334         * lib/uninorm/u32-normxfrm.c: New file.
20335         * modules/uninorm/u32-normxfrm: New file.
20336
20337         New module 'uninorm/u16-normxfrm'.
20338         * lib/uninorm/u16-normxfrm.c: New file.
20339         * modules/uninorm/u16-normxfrm: New file.
20340
20341         New module 'uninorm/u8-normxfrm'.
20342         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20343         declarations.
20344         * lib/uninorm/u8-normxfrm.c: New file.
20345         * lib/uninorm/u-normxfrm.h: New file.
20346         * modules/uninorm/u8-normxfrm: New file.
20347
20348 2009-03-07  Bruno Haible  <bruno@clisp.org>
20349
20350         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20351         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20352         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20353
20354 2009-03-07  Bruno Haible  <bruno@clisp.org>
20355
20356         New module 'memxfrm'.
20357         * lib/memxfrm.h: New file.
20358         * lib/memxfrm.c: New file.
20359         * modules/memxfrm: New file.
20360
20361 2009-03-07  Bruno Haible  <bruno@clisp.org>
20362
20363         New module 'memcmp2'.
20364         * lib/memcmp2.h: New file.
20365         * lib/memcmp2.c: New file.
20366         * modules/memcmp2: New file.
20367
20368 2009-03-07  Bruno Haible  <bruno@clisp.org>
20369
20370         Tests for module 'uninorm/decomposing-form'.
20371         * modules/uninorm/decomposing-form-tests: New file.
20372         * tests/uninorm/test-decomposing-form.c: New file.
20373
20374         New module 'uninorm/decomposing-form'.
20375         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20376         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20377         Add 'decomposing_variant' field.
20378         * lib/uninorm/decomposing-form.c: New file.
20379         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20380         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20381         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20382         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20383         * modules/uninorm/decomposing-form: New file.
20384         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20385         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20386
20387 2009-03-07  Bruno Haible  <bruno@clisp.org>
20388
20389         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20390         strings.
20391
20392 2009-03-06  Bruno Haible  <bruno@clisp.org>
20393
20394         Tests for module 'uninorm/u32-normcmp'.
20395         * tests/uninorm/test-u32-normcmp.c: New file.
20396         * modules/uninorm/u32-normcmp-tests: New file.
20397
20398         Tests for module 'uninorm/u16-normcmp'.
20399         * tests/uninorm/test-u16-normcmp.c: New file.
20400         * modules/uninorm/u16-normcmp-tests: New file.
20401
20402         Tests for module 'uninorm/u8-normcmp'.
20403         * tests/uninorm/test-u8-normcmp.c: New file.
20404         * modules/uninorm/u8-normcmp-tests: New file.
20405
20406         New module 'uninorm/u32-normcmp'.
20407         * lib/uninorm/u32-normcmp.c: New file.
20408         * modules/uninorm/u32-normcmp: New file.
20409
20410         New module 'uninorm/u16-normcmp'.
20411         * lib/uninorm/u16-normcmp.c: New file.
20412         * modules/uninorm/u16-normcmp: New file.
20413
20414         New module 'uninorm/u8-normcmp'.
20415         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20416         declarations.
20417         * lib/uninorm/u8-normcmp.c: New file.
20418         * lib/uninorm/u-normcmp.h: New file.
20419         * modules/uninorm/u8-normcmp: New file.
20420
20421 2009-03-06  Bruno Haible  <bruno@clisp.org>
20422
20423         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20424         Reported by Eric Blake.
20425
20426 2009-03-06  Eric Blake  <ebb9@byu.net>
20427             Bruno Haible  <bruno@clisp.org>
20428
20429         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20430         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20431         condition.
20432         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20433         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20434         condition.
20435         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20436
20437 2009-03-06  Eric Blake  <ebb9@byu.net>
20438
20439         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20440         to avoid compiler warnings.
20441         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20442
20443 2009-03-05  Bruno Haible  <bruno@clisp.org>
20444
20445         * tests/test-ftell.c (main): Disable test beyond end of file on
20446         FreeMiNT.
20447         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20448
20449 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20450
20451         * lib/filevercmp.c: Move hidden files up in ordering.
20452         * tests/test-filevercmp.c: Add tests for hidden files.
20453
20454 2009-03-04  Bruno Haible  <bruno@clisp.org>
20455
20456         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20457         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20458         AM_CFLAGS.
20459         Reported by Simon Josefsson.
20460
20461 2009-03-03  Bruno Haible  <bruno@clisp.org>
20462
20463         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20464         Reported by Simon Josefsson.
20465
20466         * doc/ld-version-script.texi: Update node reference.
20467
20468 2009-03-03  Bruno Haible  <bruno@clisp.org>
20469
20470         * modules/visibility (License): Change to 'unlimited'.
20471         Suggested by Simon Josefsson.
20472
20473 2009-03-03  Jim Meyering  <meyering@redhat.com>
20474
20475         unlinkdir: cannot_unlink_dir may modify process state
20476         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20477         it's neither thread-safe nor appropriate for use in a library.
20478
20479 2009-03-03  Eric Blake  <ebb9@byu.net>
20480
20481         test-closein: silence test under Darwin
20482         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20483         care if it dies from EPIPE or EBADF.
20484
20485 2009-03-03  Bruno Haible  <bruno@clisp.org>
20486
20487         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20488         earlier.
20489         * doc/visibility.texi: Fix @node and @section.
20490
20491 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20492
20493         * doc/gnulib.texi: Link to sections for ld version script and
20494         visibility.
20495         * doc/visibility.texi: Add @node and @section.
20496         * modules/ld-version-script: New module.
20497         * m4/ld-version-script.m4: New file.
20498         * doc/ld-version-script.texi: New file.
20499
20500 2009-03-02  David Lutterkort  <lutter@redhat.com>
20501
20502         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20504
20505 2009-03-02  Bruno Haible  <bruno@clisp.org>
20506
20507         * doc/visibility.texi: Mention libtool's -export-symbols option.
20508
20509 2009-03-02  Jim Meyering  <meyering@redhat.com>
20510
20511         announce-gen: new option: --no-print-checksums
20512         * build-aux/announce-gen (usage): Describe it.
20513         (print_checksums): Print a newline here, not in the [*] footnote.
20514         (main): Honor it.
20515
20516 2009-03-01  Bruno Haible  <bruno@clisp.org>
20517
20518         Use socklen_t in the native Windows replacements prototypes.
20519         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20520         instead of 'int'.
20521         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20522         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20523         * modules/getsockopt (Depends-on): Add socklen.
20524         * modules/setsockopt (Depends-on): Add socklen.
20525
20526 2009-03-01  Bruno Haible  <bruno@clisp.org>
20527
20528         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20529         least 4.2.
20530
20531 2009-03-01  Eric Blake  <ebb9@byu.net>
20532             Bruno Haible  <bruno@clisp.org>
20533
20534         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20535         error messages.
20536         * lib/wait-process.c (wait_subprocess): Omit error message about
20537         deadly signal sent to the child of termsigp != NULL.
20538
20539 2009-03-01  Eric Blake  <ebb9@byu.net>
20540
20541         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20542
20543 2009-03-01  Bruno Haible  <bruno@clisp.org>
20544
20545         Avoid a gcc warning.
20546         * tests/test-sched.c (b): Make global.
20547         Reported by Eric Blake.
20548
20549 2009-01-19  Martin Lambers  <marlam@marlam.de>
20550
20551         Provide POSIX semantics for socket timeout options on W32.
20552         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20553         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20554         * modules/setsockopt: Depend on sys_time module for struct timeval.
20555         * modules/getsockopt: Depend on sys_time module for struct timeval.
20556
20557 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20558
20559         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20560         __USE_GNU, for consistency with netdb.in.h.
20561         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20562
20563 2009-03-01  Bruno Haible  <bruno@clisp.org>
20564
20565         More support for FreeMiNT.
20566         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20567         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20568
20569 2009-03-01  Bruno Haible  <bruno@clisp.org>
20570
20571         More support for FreeMiNT.
20572         * lib/fpurge.c (fpurge): Correct last commit.
20573         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20574
20575 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20576
20577         Fix unportable awk script in vc-list-files.
20578         * build-aux/vc-list-files: In the replacement awk script, use
20579         substr with a second argument of 1, not zero.
20580         Report by Simon Josefsson.
20581
20582 2009-02-28  Bruno Haible  <bruno@clisp.org>
20583
20584         More support for FreeMiNT.
20585         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20586         to FreeMiNT today.
20587         * lib/fwriting.c (fwriting): Likewise.
20588         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20589
20590 2009-02-28  Bruno Haible  <bruno@clisp.org>
20591
20592         * tests/test-freadseek.c (main): Disable test beyond end of file on
20593         FreeMiNT.
20594         * tests/test-ftello.c (main): Likewise.
20595         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20596
20597 2009-02-28  Bruno Haible  <bruno@clisp.org>
20598
20599         Add tentative support for FreeMiNT.
20600         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20601         * lib/fpurge.c (fpurge): Likewise.
20602         * lib/freadable.c (freadable): Likewise.
20603         * lib/freading.c (freading): Likewise.
20604         * lib/freadptr.c (freadptr): Likewise.
20605         * lib/freadseek.c (freadptrinc): Likewise.
20606         * lib/fseeko.c (rpl_fseeko): Likewise.
20607         * lib/fseterr.c (fseterr): Likewise.
20608         * lib/fwritable.c (fwritable): Likewise.
20609         * lib/fwriting.c (fwriting): Likewise.
20610         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20611         Hourihane.
20612         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20613
20614 2009-02-28  Bruno Haible  <bruno@clisp.org>
20615
20616         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20617         SIGCHLD.
20618         Reported by Jim Meyering.
20619
20620 2009-02-28  Bruno Haible  <bruno@clisp.org>
20621
20622         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20623         Mention the results of these tests on various platforms.
20624         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20625         order.
20626         * doc/posix-functions/printf.texi: Likewise.
20627         * doc/posix-functions/snprintf.texi: Likewise.
20628         * doc/posix-functions/sprintf.texi: Likewise.
20629         * doc/posix-functions/vfprintf.texi: Likewise.
20630         * doc/posix-functions/vprintf.texi: Likewise.
20631         * doc/posix-functions/vsnprintf.texi: Likewise.
20632         * doc/posix-functions/vsprintf.texi: Likewise.
20633         * doc/glibc-functions/obstack_printf.texi: Likewise.
20634         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20635
20636 2009-02-28  Bruno Haible  <bruno@clisp.org>
20637
20638         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20639         Reported by Loïc Minier <lool@dooz.org>.
20640
20641 2009-02-27  Bruno Haible  <bruno@clisp.org>
20642
20643         * gnulib-tool (func_import): Make the sed expression used to create the
20644         sed script for updating the .gitignore file POSIX compliant.
20645         Reported by Eric Blake.
20646
20647 2009-02-27  Bruno Haible  <bruno@clisp.org>
20648
20649         * gnulib-tool (sed): Don't alias as "sed --posix".
20650         Reported by Eric Blake.
20651
20652 2009-02-27  Bruno Haible  <bruno@clisp.org>
20653
20654         Avoid test link errors.
20655         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20656         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20657         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20658         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20660
20661 2009-02-27  Bruno Haible  <bruno@clisp.org>
20662
20663         Avoid spurious "(cached)" in configure output.
20664         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20665         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20666         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20667         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20668         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20669         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20670         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20671         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20672         Reported by Eric Blake.
20673
20674 2009-02-27  Eric Blake  <ebb9@byu.net>
20675
20676         printf: fix regression in previous patch
20677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20678
20679 2009-02-27  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20682         value.
20683         * lib/stdint.in.h: Likewise.
20684         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20685
20686 2009-02-27  Eric Blake  <ebb9@byu.net>
20687
20688         doc: mention more functions added in cygwin 1.7.0
20689         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20690         addition.
20691         * doc/posix-functions/open_wmemstream.texi: Likewise.
20692         * doc/posix-functions/wcsnlen.texi: Likewise.
20693         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20694         * doc/posix-functions/wcstod.texi: Likewise.
20695         * doc/posix-functions/wcstof.texi: Likewise.
20696         * doc/posix-functions/wcstoimax.texi: Likewise.
20697         * doc/posix-functions/wcstok.texi: Likewise.
20698         * doc/posix-functions/wcstoumax.texi: Likewise.
20699
20700         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20702         * doc/posix-functions/fprintf.texi: Update.
20703         * doc/posix-functions/printf.texi: Update.
20704         * doc/posix-functions/snprintf.texi: Update.
20705         * doc/posix-functions/sprintf.texi: Update.
20706         * doc/posix-functions/vfprintf.texi: Update.
20707         * doc/posix-functions/vprintf.texi: Update.
20708         * doc/posix-functions/vsnprintf.texi: Update.
20709         * doc/posix-functions/vsprintf.texi: Update.
20710         * doc/glibc-functions/obstack_printf.texi: Update.
20711         * doc/glibc-functions/obstack_vprintf.texi: Update.
20712
20713 2009-02-26  Eric Blake  <ebb9@byu.net>
20714
20715         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20716         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20717         compilation bug by using runtime conversion.
20718         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20719         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20720         * modules/ceill-tests (Files): Use nan.h.
20721         * modules/floorl-tests (Files): Likewise.
20722         * modules/frexpl-tests (Files): Likewise.
20723         * modules/isnanl-tests (Files): Likewise.
20724         * modules/ldexpl-tests (Files): Likewise.
20725         * modules/roundl-tests (Files): Likewise.
20726         * modules/truncl-tests (Files): Likewise.
20727         * tests/test-ceill.c (main): Use a working NaN.
20728         * tests/test-floorl.c (main): Likewise.
20729         * tests/test-frexpl.c (main): Likewise.
20730         * tests/test-isnan.c (test_long_double): Likewise.
20731         * tests/test-isnanl.h (main): Likewise.
20732         * tests/test-ldexpl.h (main): Likewise.
20733         * tests/test-roundl.h (main): Likewise.
20734         * tests/test-truncl.h (main): Likewise.
20735         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20736
20737 2009-02-26  Eric Blake  <ebb9@byu.net>
20738             Bruno Haible  <bruno@clisp.org>
20739
20740         Work around a *printf bug with %ls on Solaris.
20741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20742         precision is specified, sprintf stops converting the wide string
20743         argument when the number of bytes that have been produced by this
20744         conversion equals or exceeds the precision.
20745         * doc/posix-functions/fprintf.texi: Update.
20746         * doc/posix-functions/printf.texi: Update.
20747         * doc/posix-functions/snprintf.texi: Update.
20748         * doc/posix-functions/sprintf.texi: Update.
20749         * doc/posix-functions/vfprintf.texi: Update.
20750         * doc/posix-functions/vprintf.texi: Update.
20751         * doc/posix-functions/vsnprintf.texi: Update.
20752         * doc/posix-functions/vsprintf.texi: Update.
20753         * doc/glibc-functions/obstack_printf.texi: Update.
20754         * doc/glibc-functions/obstack_vprintf.texi: Update.
20755
20756 2009-02-26  Eric Blake  <ebb9@byu.net>
20757
20758         stdlib: favor compiler check of random.h
20759         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20760         to avoid an ObjC random.h installed by Swarm.
20761
20762 2009-02-26  Bruno Haible  <bruno@clisp.org>
20763
20764         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20765         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20766         Reported by Gary V. Vaughan <gary@gnu.org>.
20767
20768 2009-02-26  Bruno Haible  <bruno@clisp.org>
20769
20770         Fix *printf behaviour regarding the %ls directive.
20771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20772         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20773         NEED_PRINTF_DIRECTIVE_LS.
20774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20775         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20776         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20777         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20778         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20779         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20780         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20784         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20785         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20789         * doc/posix-functions/fprintf.texi: Update.
20790         * doc/posix-functions/printf.texi: Update.
20791         * doc/posix-functions/snprintf.texi: Update.
20792         * doc/posix-functions/sprintf.texi: Update.
20793         * doc/posix-functions/vfprintf.texi: Update.
20794         * doc/posix-functions/vprintf.texi: Update.
20795         * doc/posix-functions/vsnprintf.texi: Update.
20796         * doc/posix-functions/vsprintf.texi: Update.
20797         * doc/glibc-functions/obstack_printf.texi: Update.
20798         * doc/glibc-functions/obstack_vprintf.texi: Update.
20799         Reported by Eric Blake.
20800
20801 2009-02-25  Bruno Haible  <bruno@clisp.org>
20802
20803         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20804         with known value.
20805         Reported by Gary V. Vaughan <gary@gnu.org>.
20806
20807 2009-02-25  Bruno Haible  <bruno@clisp.org>
20808
20809         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20810         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20811         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20812         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20813         Reported by Gary V. Vaughan <gary@gnu.org>.
20814
20815 2009-02-25  Bruno Haible  <bruno@clisp.org>
20816
20817         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20818         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20819         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20820         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20821         Reported by Gary V. Vaughan <gary@gnu.org>.
20822
20823 2009-02-25  Eric Blake  <ebb9@byu.net>
20824
20825         tests: skip fseek/ftell tests if ungetc is broken
20826         * m4/ungetc.m4: New file.
20827         * modules/fseek-tests: Split test, so ungetc dependency is
20828         separate from rest of test.
20829         * modules/fseeko-tests: Likewise.
20830         * modules/ftell-tests: Likewise.
20831         * modules/ftello-tests: Likewise.
20832         * tests/test-fseek.c (main): Isolate ungetc dependency.
20833         * tests/test-fseeko.c (main): Likewise.
20834         * tests/test-ftell.c (main): Likewise.
20835         * tests/test-ftello.c (main): Likewise.
20836         * tests/test-fseek2.sh: New file.
20837         * tests/test-fseeko2.sh: Likewise.
20838         * tests/test-ftell2.sh: Likewise.
20839         * tests/test-ftello2.sh: Likewise.
20840
20841 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20842
20843         test-getaddrinfo: fix usage of skip return code 77
20844         * tests/test-gettaddrinfo.c: Return skip code 77 only
20845         for first occurance of skip (4x77 is not 77)
20846
20847 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20848
20849         strtod: avoid C99 decl-after-statement
20850         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20851
20852 2009-02-24  Eric Blake  <ebb9@byu.net>
20853
20854         strtod: detect HP-UX 11.31 bug
20855         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20856         Reported by Gary V. Vaughan.
20857
20858 2009-02-23  Bruno Haible  <bruno@clisp.org>
20859
20860         Fix invalid read past end of memory block.
20861         * lib/vasnprintf.c (DCHAR_SET): Define.
20862         (local_wcslen): Define only when needed.
20863         (local_strnlen, local_wcsnlen): New functions.
20864         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20865         directives that involve a conversion ourselves.
20866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20867         wcsnlen, mbrtowc, wcrtomb.
20868         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20869         * tests/test-vasprintf-posix.c (test_function): Likewise.
20870         * tests/test-snprintf-posix.h (test_function): Likewise.
20871         * tests/test-sprintf-posix.h (test_function): Likewise.
20872         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20873
20874 2009-02-22  Bruno Haible  <bruno@clisp.org>
20875
20876         Implement new clarified decomposition of Hangul syllables.
20877         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20878         of type LTV, return only a pairwise decomposition.
20879         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20880         Likewise.
20881         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20882         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20883         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20884
20885 2009-02-22  Bruno Haible  <bruno@clisp.org>
20886
20887         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20888         zero-length results and shrink excess allocated memory.
20889         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20890         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20891         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20892         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20893         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20894         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20895         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20896         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20897         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20898         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20899         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20900         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20901
20902 2009-02-21  Bruno Haible  <bruno@clisp.org>
20903
20904         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20905         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20906         spaces after a period. Put a space between a macro name and its
20907         argument list. Trivial rewordings.
20908         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20909         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20910         (main): Return 0 explicitly.
20911
20912 2009-02-21  Bruno Haible  <bruno@clisp.org>
20913
20914         Tests for module 'uninorm/filter'.
20915         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20916         * modules/uninorm/filter-tests: New file.
20917
20918         New module 'uninorm/filter'.
20919         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
20920         uninorm_filter_flush, uninorm_filter_free): New declarations.
20921         * lib/uninorm/uninorm-filter.c: New file.
20922         * modules/uninorm/filter: New file.
20923
20924 2009-02-21  Bruno Haible  <bruno@clisp.org>
20925
20926         Tests for module 'uninorm/nfkc'.
20927         * tests/uninorm/test-nfkc.c: New file.
20928         * tests/uninorm/test-u8-nfkc.c: New file.
20929         * tests/uninorm/test-u16-nfkc.c: New file.
20930         * tests/uninorm/test-u32-nfkc.c: New file.
20931         * tests/uninorm/test-u32-nfkc-big.sh: New file.
20932         * tests/uninorm/test-u32-nfkc-big.c: New file.
20933         * modules/uninorm/nfkc-tests: New file.
20934
20935         New module 'uninorm/nfkc'.
20936         * lib/uninorm/nfkc.c: New file.
20937         * modules/uninorm/nfkc: New file.
20938
20939         Tests for module 'uninorm/nfkd'.
20940         * tests/uninorm/test-nfkd.c: New file.
20941         * tests/uninorm/test-u8-nfkd.c: New file.
20942         * tests/uninorm/test-u16-nfkd.c: New file.
20943         * tests/uninorm/test-u32-nfkd.c: New file.
20944         * tests/uninorm/test-u32-nfkd-big.sh: New file.
20945         * tests/uninorm/test-u32-nfkd-big.c: New file.
20946         * modules/uninorm/nfkd-tests: New file.
20947
20948         New module 'uninorm/nfkd'.
20949         * lib/uninorm/nfkd.c: New file.
20950         * modules/uninorm/nfkd: New file.
20951
20952         Tests for module 'uninorm/nfc'.
20953         * tests/uninorm/test-nfc.c: New file.
20954         * tests/uninorm/test-u8-nfc.c: New file.
20955         * tests/uninorm/test-u16-nfc.c: New file.
20956         * tests/uninorm/test-u32-nfc.c: New file.
20957         * tests/uninorm/test-u32-nfc-big.sh: New file.
20958         * tests/uninorm/test-u32-nfc-big.c: New file.
20959         * modules/uninorm/nfc-tests: New file.
20960
20961         New module 'uninorm/nfc'.
20962         * lib/uninorm/nfc.c: New file.
20963         * modules/uninorm/nfc: New file.
20964
20965         Tests for module 'uninorm/nfd'.
20966         * tests/uninorm/test-nfd.c: New file.
20967         * tests/uninorm/test-u8-nfd.c: New file.
20968         * tests/uninorm/test-u16-nfd.c: New file.
20969         * tests/uninorm/test-u32-nfd.c: New file.
20970         * tests/uninorm/test-u32-nfd-big.sh: New file.
20971         * tests/uninorm/test-u32-nfd-big.c: New file.
20972         * tests/uninorm/test-u32-normalize-big.h: New file.
20973         * tests/uninorm/test-u32-normalize-big.c: New file.
20974         * tests/uninorm/NormalizationTest.txt: New file, created from
20975         Unicode 5.1.0 NormalizationTest.txt.
20976         * modules/uninorm/nfd-tests: New file.
20977
20978         New module 'uninorm/nfd'.
20979         * lib/uninorm/nfd.c: New file.
20980         * modules/uninorm/nfd: New file.
20981
20982         New module 'uninorm/u32-normalize'.
20983         * lib/uninorm/u32-normalize.c: New file.
20984         * modules/uninorm/u32-normalize: New file.
20985
20986         New module 'uninorm/u16-normalize'.
20987         * lib/uninorm/u16-normalize.c: New file.
20988         * modules/uninorm/u16-normalize: New file.
20989
20990         New module 'uninorm/u8-normalize'.
20991         * lib/uninorm/u8-normalize.c: New file.
20992         * lib/uninorm/normalize-internal.h: New file.
20993         * lib/uninorm/u-normalize-internal.h: New file.
20994         * modules/uninorm/u8-normalize: New file.
20995
20996         New module 'uninorm/decompose-internal'.
20997         * lib/uninorm/decompose-internal.c: New file.
20998         * modules/uninorm/decompose-internal: New file.
20999
21000         Tests for module 'uninorm/composition'.
21001         * tests/uninorm/test-composition.c: New file.
21002         * modules/uninorm/composition-tests: New file.
21003
21004         New module 'uninorm/composition'.
21005         * lib/uninorm/composition.c: New file.
21006         * lib/uninorm/composition-table.gperf: New file, generated by
21007         gen-uni-tables.
21008         * modules/uninorm/composition: New file.
21009
21010         Tests for module 'uninorm/compat-decomposition'.
21011         * tests/uninorm/test-compat-decomposition.c: New file.
21012         * modules/uninorm/compat-decomposition-tests: New file.
21013
21014         New module 'uninorm/compat-decomposition'.
21015         * lib/uninorm/decompose-internal.h: New file.
21016         * lib/uninorm/compat-decomposition.c: New file.
21017         * modules/uninorm/compat-decomposition: New file.
21018
21019         Tests for module 'uninorm/canonical-decomposition'.
21020         * tests/uninorm/test-canonical-decomposition.c: New file.
21021         * modules/uninorm/canonical-decomposition-tests: New file.
21022
21023         New module 'uninorm/canonical-decomposition'.
21024         * lib/uninorm/canonical-decomposition.c: New file.
21025         * modules/uninorm/canonical-decomposition: New file.
21026
21027         Tests for module 'uninorm/decomposition'.
21028         * tests/uninorm/test-decomposition.c: New file.
21029         * modules/uninorm/decomposition-tests: New file.
21030
21031         New module 'uninorm/decomposition'.
21032         * lib/uninorm/decomposition.c: New file.
21033         * modules/uninorm/decomposition: New file.
21034
21035         New module 'uninorm/decomposition-table'.
21036         * lib/uninorm/decomposition-table.h: New file.
21037         * lib/uninorm/decomposition-table.c: New file.
21038         * lib/uninorm/decomposition-table1.h: New file, generated by
21039         gen-uni-tables.
21040         * lib/uninorm/decomposition-table2.h: New file, generated by
21041         gen-uni-tables.
21042         * modules/uninorm/decomposition-table: New file.
21043
21044         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21045         (UC_DECOMP_*): New enumeration items.
21046         (get_decomposition): New function.
21047         (struct decomp_table): New type.
21048         (output_decomposition, output_decomposition_tables): New functions.
21049         (unicode_composition_exclusions): New variable.
21050         (fill_composition_exclusions, debug_output_composition_tables): New
21051         functions.
21052         (main): Accept one more argument. Invoke fill_composition_exclusions.
21053         Output decomposition and composition tables.
21054
21055         New module 'uninorm/base'.
21056         * lib/uninorm.h: New file.
21057         * lib/unictype.h: Update comment.
21058         * modules/uninorm/base: New file.
21059
21060 2009-02-21  David Lutterkort  <lutter@redhat.com>
21061
21062         Tests for module 'safe-alloc'.
21063         * tests/test-safe-alloc.c: New file.
21064         * modules/safe-alloc-tests: New file.
21065
21066         New module 'safe-alloc'.
21067         * lib/safe-alloc.h: New file.
21068         * lib/safe-alloc.c: New file.
21069         * m4/safe-alloc.m4: New file.
21070         * modules/safe-alloc: New file.
21071         * doc/safe-alloc.texi: New file.
21072         * doc/gnulib.texi: Include it.
21073         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21074         safe-alloc.
21075
21076 2009-02-18  Bruno Haible  <bruno@clisp.org>
21077
21078         Fix link error on non-glibc systems.
21079         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21080         variable.
21081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21082
21083 2009-02-18  Jim Meyering  <meyering@redhat.com>
21084
21085         fts: avoid used-uninitialized error due to recent change
21086         * lib/fts.c (fts_read): Guard uses of the new member,
21087         parent->fts_n_dirs_remaining, since it's not relevant for
21088         the parent of a directory specified on the command-line.
21089
21090 2009-02-17  James Youngman  <jay@gnu.org>
21091             Bruno Haible  <bruno@clisp.org>
21092
21093         * m4/include_next.m4: Reformulate comment.
21094
21095 2009-02-16  Jim Meyering  <meyering@redhat.com>
21096
21097         fts: add #if guards so that the fts_lgpl module still builds
21098         * lib/fts.c: Guard just-added hash-table-using parts with
21099         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21100         Reported by Simon Josefsson.
21101
21102 2009-02-15  Bruno Haible  <bruno@clisp.org>
21103
21104         * modules/array-mergesort-tests: New file.
21105         * tests/test-array-mergesort.c: New file.
21106
21107         New module 'array-mergesort'.
21108         * modules/array-mergesort: New file.
21109         * lib/array-mergesort.h: New file.
21110
21111 2009-02-15  Bruno Haible  <bruno@clisp.org>
21112
21113         Fix 2009-02-07 commit.
21114         * lib/gen-uni-tables.c (output_predicate, output_category,
21115         output_combclass, output_bidi_category, output_decimal_digit,
21116         output_digit, output_numeric, output_mirror, output_scripts,
21117         output_ident_category, output_simple_mapping): Fix format directives.
21118         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21119
21120 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21121
21122         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21123         fixes are available from IBM.
21124
21125 2009-02-13  Jim Meyering  <meyering@redhat.com>
21126
21127         fts: arrange not to stat non-directories in more cases
21128         This makes GNU find (when it doesn't need to stat each file)
21129         *much* more efficient at traversing reiserfs file systems.
21130         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21131         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21132         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21133         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21134         (leaf_optimization_applies): New function.
21135         (LCO_hash, LCO_compare): New helper functions.
21136         (link_count_optimize_ok): New function.
21137         (fts_stat): Initialize new member (if dir).
21138         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21139         we've just stat'ed a directory.  Skip the stat call when possible.
21140         ---
21141         Note this AFS-related exchange:
21142         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21143         and note find's pioctl call in find/fstype.c.
21144         But that is necessary only if you want to enable the
21145         optimization for AFS, and for now, I don't.
21146
21147         fts: move a function definition "up" (no semantic change)
21148         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21149         "up" to precede upcoming use of a related function.
21150
21151 2009-02-11  Jim Meyering  <meyering@redhat.com>
21152
21153         fts: correct internal computation of nlinks (optimization-related)
21154         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21155         whether the current entry is a directory, so don't test it.
21156
21157 2009-02-10  Bruno Haible  <bruno@clisp.org>
21158
21159         Tests for module 'uniwbrk/ulc-wordbreaks'.
21160         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21161         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21162         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21163
21164         Tests for module 'uniwbrk/u32-wordbreaks'.
21165         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21166         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21167
21168         Tests for module 'uniwbrk/u16-wordbreaks'.
21169         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21170         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21171
21172         Tests for module 'uniwbrk/u8-wordbreaks'.
21173         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21174         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21175
21176 2009-02-10  Bruno Haible  <bruno@clisp.org>
21177
21178         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21179         property.
21180         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21181         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21182         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21183
21184 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21185
21186         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21187         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21188
21189 2009-02-10  Bruno Haible  <bruno@clisp.org>
21190
21191         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21192         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21193         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21194         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21195         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21196         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21197
21198 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21199
21200         * lib/sockets.h (gl_fd_to_handle): New function.
21201
21202         * tests/test-sockets.c: Call gl_fd_to_handle.
21203
21204 2009-02-09  Bruno Haible  <bruno@clisp.org>
21205
21206         * doc/havelib.texi: Document the conventions on bi-arch systems.
21207
21208 2009-02-08  Bruno Haible  <bruno@clisp.org>
21209
21210         Document the AC_LIB_LINKFLAGS macro.
21211         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21212         * doc/gnulib.texi: Include it.
21213
21214 2009-02-08  Bruno Haible  <bruno@clisp.org>
21215
21216         Fix wrong order of sections, compared to TOC.
21217         * doc/gnulib.texi: Include relocatable-maint.texi after the
21218         "Regular expressions" node, not before.
21219
21220 2009-02-08  Bruno Haible  <bruno@clisp.org>
21221
21222         Tests for module 'unicase/totitle'.
21223         * modules/unicase/totitle-tests: New file.
21224
21225         Tests for module 'unicase/tolower'.
21226         * modules/unicase/tolower-tests: New file.
21227
21228         Tests for module 'unicase/toupper'.
21229         * modules/unicase/toupper-tests: New file.
21230         * tests/unicase/test-mapping-part1.h: New file.
21231         * tests/unicase/test-mapping-part2.h: New file.
21232
21233         New module 'unicase/totitle'.
21234         * modules/unicase/totitle: New file.
21235         * lib/unicase/totitle.c: New file.
21236
21237         New module 'unicase/tolower'.
21238         * modules/unicase/tolower: New file.
21239         * lib/unicase/tolower.c: New file.
21240
21241         New module 'unicase/toupper'.
21242         * modules/unicase/toupper: New file.
21243         * lib/unicase/toupper.c: New file.
21244         * lib/unicase/simple-mapping.h: New file.
21245
21246         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21247         (mapping_table): New structure.
21248         (output_simple_mapping): New function.
21249         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21250         * modules/gen-uni-tables (Description): Update.
21251         * lib/unicase/toupper.h: New file, automatically generated by
21252         gen-uni-tables.
21253         * lib/unicase/tolower.h: New file, automatically generated by
21254         gen-uni-tables.
21255         * lib/unicase/totitle.h: New file, automatically generated by
21256         gen-uni-tables.
21257         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21258         gen-uni-tables.
21259         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21260         gen-uni-tables.
21261         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21262         gen-uni-tables.
21263
21264         New module 'unicase/base'.
21265         * modules/unicase/base: New file.
21266         * lib/unicase.h: New file.
21267
21268 2009-02-08  Bruno Haible  <bruno@clisp.org>
21269
21270         New module 'uniwbrk/ulc-wordbreaks'.
21271         * modules/uniwbrk/ulc-wordbreaks: New file.
21272         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21273
21274         New module 'uniwbrk/u32-wordbreaks'.
21275         * modules/uniwbrk/u32-wordbreaks: New file.
21276         * lib/uniwbrk/u32-wordbreaks.c: New file.
21277
21278         New module 'uniwbrk/u16-wordbreaks'.
21279         * modules/uniwbrk/u16-wordbreaks: New file.
21280         * lib/uniwbrk/u16-wordbreaks.c: New file.
21281
21282         New module 'uniwbrk/u8-wordbreaks'.
21283         * modules/uniwbrk/u8-wordbreaks: New file.
21284         * lib/uniwbrk/u8-wordbreaks.c: New file.
21285         * lib/uniwbrk/u-wordbreaks.h: New file.
21286
21287         New module 'uniwbrk/table'.
21288         * modules/uniwbrk/table: New file.
21289         * lib/uniwbrk/wbrktable.h: New file.
21290         * lib/uniwbrk/wbrktable.c: New file.
21291
21292         New module 'uniwbrk/wordbreak-property'.
21293         * modules/uniwbrk/wordbreak-property: New file.
21294         * lib/uniwbrk/wordbreak-property.c: New file.
21295
21296         * lib/gen-uni-tables.c (WBP_*): New enum items.
21297         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21298         (unicode_org_wbp): New variable.
21299         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21300         New functions.
21301         (wbp_table): New structure.
21302         (output_wbp, output_wbrk_tables): New functions.
21303         (main): Accept additional argument. Invoke fill_org_wbp,
21304         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21305         output_wbrk_tables.
21306         * modules/gen-uni-tables (Description): Update.
21307         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21308         gen-uni-tables.
21309
21310         New module 'uniwbrk/base'.
21311         * modules/uniwbrk/base: New file.
21312         * lib/uniwbrk.h: New file.
21313
21314 2009-02-08  Bruno Haible  <bruno@clisp.org>
21315
21316         Update to Unicode 5.1.0.
21317         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21318         U+2185..U+2188.
21319         (is_property_default_ignorable_code_point): Don't include characters
21320         of category Cc or Cs and not-a-characters.
21321         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21322         U+0D79, U+109E, U+109F, U+A60C.
21323         * lib/unictype/bidi_of.h: Regenerated.
21324         * lib/unictype/blocks.h: Regenerated.
21325         * lib/unictype/categ_C.h: Regenerated.
21326         * lib/unictype/categ_Cf.h: Regenerated.
21327         * lib/unictype/categ_Cn.h: Regenerated.
21328         * lib/unictype/categ_L.h: Regenerated.
21329         * lib/unictype/categ_Ll.h: Regenerated.
21330         * lib/unictype/categ_Lm.h: Regenerated.
21331         * lib/unictype/categ_Lo.h: Regenerated.
21332         * lib/unictype/categ_Lu.h: Regenerated.
21333         * lib/unictype/categ_M.h: Regenerated.
21334         * lib/unictype/categ_Mc.h: Regenerated.
21335         * lib/unictype/categ_Me.h: Regenerated.
21336         * lib/unictype/categ_Mn.h: Regenerated.
21337         * lib/unictype/categ_N.h: Regenerated.
21338         * lib/unictype/categ_Nd.h: Regenerated.
21339         * lib/unictype/categ_Nl.h: Regenerated.
21340         * lib/unictype/categ_No.h: Regenerated.
21341         * lib/unictype/categ_P.h: Regenerated.
21342         * lib/unictype/categ_Pd.h: Regenerated.
21343         * lib/unictype/categ_Pe.h: Regenerated.
21344         * lib/unictype/categ_Pf.h: Regenerated.
21345         * lib/unictype/categ_Pi.h: Regenerated.
21346         * lib/unictype/categ_Po.h: Regenerated.
21347         * lib/unictype/categ_Ps.h: Regenerated.
21348         * lib/unictype/categ_S.h: Regenerated.
21349         * lib/unictype/categ_Sk.h: Regenerated.
21350         * lib/unictype/categ_Sm.h: Regenerated.
21351         * lib/unictype/categ_So.h: Regenerated.
21352         * lib/unictype/categ_of.h: Regenerated.
21353         * lib/unictype/combining.h: Regenerated.
21354         * lib/unictype/ctype_alnum.h: Regenerated.
21355         * lib/unictype/ctype_alpha.h: Regenerated.
21356         * lib/unictype/ctype_graph.h: Regenerated.
21357         * lib/unictype/ctype_lower.h: Regenerated.
21358         * lib/unictype/ctype_print.h: Regenerated.
21359         * lib/unictype/ctype_punct.h: Regenerated.
21360         * lib/unictype/ctype_upper.h: Regenerated.
21361         * lib/unictype/decdigit.h: Regenerated.
21362         * lib/unictype/digit.h: Regenerated.
21363         * lib/unictype/mirror.h: Regenerated.
21364         * lib/unictype/numeric.h: Regenerated.
21365         * lib/unictype/pr_alphabetic.h: Regenerated.
21366         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21367         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21368         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21369         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21370         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21371         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21372         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21373         * lib/unictype/pr_combining.h: Regenerated.
21374         * lib/unictype/pr_dash.h: Regenerated.
21375         * lib/unictype/pr_decimal_digit.h: Regenerated.
21376         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21377         * lib/unictype/pr_deprecated.h: Regenerated.
21378         * lib/unictype/pr_diacritic.h: Regenerated.
21379         * lib/unictype/pr_extender.h: Regenerated.
21380         * lib/unictype/pr_format_control.h: Regenerated.
21381         * lib/unictype/pr_grapheme_base.h: Regenerated.
21382         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21383         * lib/unictype/pr_grapheme_link.h: Regenerated.
21384         * lib/unictype/pr_id_continue.h: Regenerated.
21385         * lib/unictype/pr_id_start.h: Regenerated.
21386         * lib/unictype/pr_ideographic.h: Regenerated.
21387         * lib/unictype/pr_ignorable_control.h: Regenerated.
21388         * lib/unictype/pr_lowercase.h: Regenerated.
21389         * lib/unictype/pr_math.h: Regenerated.
21390         * lib/unictype/pr_numeric.h: Regenerated.
21391         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21392         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21393         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21394         * lib/unictype/pr_other_id_continue.h: Regenerated.
21395         * lib/unictype/pr_other_lowercase.h: Regenerated.
21396         * lib/unictype/pr_other_math.h: Regenerated.
21397         * lib/unictype/pr_punctuation.h: Regenerated.
21398         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21399         * lib/unictype/pr_soft_dotted.h: Regenerated.
21400         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21401         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21402         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21403         * lib/unictype/pr_uppercase.h: Regenerated.
21404         * lib/unictype/pr_xid_continue.h: Regenerated.
21405         * lib/unictype/pr_xid_start.h: Regenerated.
21406         * lib/unictype/pr_zero_width.h: Regenerated.
21407         * lib/unictype/scripts.h: Regenerated.
21408         * lib/unictype/scripts_byname.gperf: Regenerated.
21409         * lib/unictype/sy_java_ident.h: Regenerated.
21410         * lib/unilbrk/lbrkprop1.h: Regenerated.
21411         * lib/unilbrk/lbrkprop2.h: Regenerated.
21412         * tests/unictype/test-categ_C.c: Regenerated.
21413         * tests/unictype/test-categ_Cf.c: Regenerated.
21414         * tests/unictype/test-categ_Cn.c: Regenerated.
21415         * tests/unictype/test-categ_L.c: Regenerated.
21416         * tests/unictype/test-categ_Ll.c: Regenerated.
21417         * tests/unictype/test-categ_Lm.c: Regenerated.
21418         * tests/unictype/test-categ_Lo.c: Regenerated.
21419         * tests/unictype/test-categ_Lu.c: Regenerated.
21420         * tests/unictype/test-categ_M.c: Regenerated.
21421         * tests/unictype/test-categ_Mc.c: Regenerated.
21422         * tests/unictype/test-categ_Me.c: Regenerated.
21423         * tests/unictype/test-categ_Mn.c: Regenerated.
21424         * tests/unictype/test-categ_N.c: Regenerated.
21425         * tests/unictype/test-categ_Nd.c: Regenerated.
21426         * tests/unictype/test-categ_Nl.c: Regenerated.
21427         * tests/unictype/test-categ_No.c: Regenerated.
21428         * tests/unictype/test-categ_P.c: Regenerated.
21429         * tests/unictype/test-categ_Pd.c: Regenerated.
21430         * tests/unictype/test-categ_Pe.c: Regenerated.
21431         * tests/unictype/test-categ_Pf.c: Regenerated.
21432         * tests/unictype/test-categ_Pi.c: Regenerated.
21433         * tests/unictype/test-categ_Po.c: Regenerated.
21434         * tests/unictype/test-categ_Ps.c: Regenerated.
21435         * tests/unictype/test-categ_S.c: Regenerated.
21436         * tests/unictype/test-categ_Sk.c: Regenerated.
21437         * tests/unictype/test-categ_Sm.c: Regenerated.
21438         * tests/unictype/test-categ_So.c: Regenerated.
21439         * tests/unictype/test-ctype_alnum.c: Regenerated.
21440         * tests/unictype/test-ctype_alpha.c: Regenerated.
21441         * tests/unictype/test-ctype_graph.c: Regenerated.
21442         * tests/unictype/test-ctype_lower.c: Regenerated.
21443         * tests/unictype/test-ctype_print.c: Regenerated.
21444         * tests/unictype/test-ctype_punct.c: Regenerated.
21445         * tests/unictype/test-ctype_upper.c: Regenerated.
21446         * tests/unictype/test-decdigit.h: Regenerated.
21447         * tests/unictype/test-digit.h: Regenerated.
21448         * tests/unictype/test-numeric.h: Regenerated.
21449         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21450         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21451         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21452         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21453         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21454         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21455         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21456         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21457         * tests/unictype/test-pr_combining.c: Regenerated.
21458         * tests/unictype/test-pr_dash.c: Regenerated.
21459         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21460         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21461         * tests/unictype/test-pr_deprecated.c: Regenerated.
21462         * tests/unictype/test-pr_diacritic.c: Regenerated.
21463         * tests/unictype/test-pr_extender.c: Regenerated.
21464         * tests/unictype/test-pr_format_control.c: Regenerated.
21465         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21466         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21467         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21468         * tests/unictype/test-pr_id_continue.c: Regenerated.
21469         * tests/unictype/test-pr_id_start.c: Regenerated.
21470         * tests/unictype/test-pr_ideographic.c: Regenerated.
21471         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21472         * tests/unictype/test-pr_lowercase.c: Regenerated.
21473         * tests/unictype/test-pr_math.c: Regenerated.
21474         * tests/unictype/test-pr_numeric.c: Regenerated.
21475         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21476         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21477         Regenerated.
21478         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21479         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21480         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21481         * tests/unictype/test-pr_other_math.c: Regenerated.
21482         * tests/unictype/test-pr_punctuation.c: Regenerated.
21483         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21484         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21485         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21486         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21487         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21488         * tests/unictype/test-pr_uppercase.c: Regenerated.
21489         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21490         * tests/unictype/test-pr_xid_start.c: Regenerated.
21491         * tests/unictype/test-pr_zero_width.c: Regenerated.
21492
21493         Update to Unicode 5.1.0.
21494         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21495         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21496         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21497         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21498         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21499         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21500         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21501         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21502         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21503         (nonspacing_table_ind): Update.
21504         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21505
21506         Update to Unicode 5.1.0.
21507         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21508         code transform.
21509         * lib/uniname/uniname.c (unicode_character_name,
21510         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21511         * lib/uniname/uninames.h: Regenerated.
21512         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21513
21514 2009-02-07  Bruno Haible  <bruno@clisp.org>
21515
21516         Merge gen-ctype and gen-lbrk into a single program.
21517         * lib/gen-uni-tables.c: New file, incorporating
21518         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21519         Add directory prefixes to the names of the generated files.
21520         * lib/unictype/gen-ctype.c: Remove file.
21521         * lib/unilbrk/gen-lbrk.c: Remove file.
21522         * modules/gen-uni-tables: New file.
21523         * modules/unictype/gen-ctype: Remove file.
21524         * modules/unilbrk/gen-lbrk: Remove file.
21525
21526 2009-02-07  Bruno Haible  <bruno@clisp.org>
21527
21528         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21529
21530         New module 'unistr/u32-strcoll'.
21531         * modules/unistr/u32-strcoll: New file.
21532         * lib/unistr/u32-strcoll.c: New file.
21533
21534         New module 'unistr/u16-strcoll'.
21535         * modules/unistr/u16-strcoll: New file.
21536         * lib/unistr/u16-strcoll.c: New file.
21537
21538         New module 'unistr/u8-strcoll'.
21539         * modules/unistr/u8-strcoll: New file.
21540         * lib/unistr/u8-strcoll.c: New file.
21541         * lib/unistr/u-strcoll.h: New file.
21542
21543 2009-02-07  Bruno Haible  <bruno@clisp.org>
21544
21545         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21546         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21547         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21548         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21549         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21550         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21551
21552 2009-02-07  Bruno Haible  <bruno@clisp.org>
21553
21554         Make 64-bit clean.
21555         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21556         output_combclass, output_bidi_category, output_decimal_digit,
21557         output_digit, output_numeric, output_mirror, output_scripts,
21558         output_ident_category): Use proper width specifier in format strings.
21559
21560 2009-02-07  Bruno Haible  <bruno@clisp.org>
21561
21562         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21563         failure behaviour.
21564
21565 2009-02-07  Jim Meyering  <meyering@redhat.com>
21566
21567         regex: avoid compilation failure with upcoming gcc-4.4
21568         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21569         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21570         "... error: integer overflow in preprocessor expression".
21571
21572 2009-02-05  Ben Pfaff  <blp@gnu.org>
21573
21574         Fix link errors on Windows when close module is used.
21575         * modules/close: Add $(LIB_CLOSE) to Link section.
21576         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21577         $(LIB_CLOSE) on Windows.
21578
21579 2009-02-05  Jim Meyering  <meyering@redhat.com>
21580
21581         still avoid unused-parameter warnings, but do it cleanly
21582         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21583         (get_fs_usage): Cast to void instead.
21584         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21585         (dev_from_mount_options, read_file_system_list): Cast to void.
21586         Prompted by Bruno Haible.
21587
21588 2009-02-04  Jim Meyering  <meyering@redhat.com>
21589
21590         fsusage.c: correct copyright year
21591         * lib/fsusage.c: Reflect year in which the change is pushed into
21592
21593         avoid misc. warnings
21594         * lib/fsusage.c (UNUSED_PARAM): Define.
21595         (get_fs_usage): Mark parameter "disk" as unused.
21596         * lib/getugroups.c (getgrent): Use "void" in prototype.
21597         * lib/mountlist.c: Mark unused parameters.
21598         (read_file_system_list): Declare a local with "const".
21599         * lib/nanosleep.c (getnow): Declare static.
21600         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21601
21602         dirfd: set errno upon failure
21603         * lib/dirfd.c: Include <errno.h>.
21604         Set errno to ENOTSUP when returning -1.
21605         * modules/dirfd (Depends-on): Add errno.
21606         Suggested by John Kodis <kodis@comcast.net>.
21607
21608 2009-02-01  Bruno Haible  <bruno@clisp.org>
21609
21610         Don't assume sizeof (long) >= sizeof (void *).
21611         * lib/memcmp.c: Include stdint.h.
21612         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21613         srcp2 to 'const byte *'.
21614         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21615         types to uintptr_t.
21616         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21617         * modules/memcmp (Depends-on): Add stdint.
21618         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21619
21620 2009-01-30  Eric Blake  <ebb9@byu.net>
21621
21622         fix more require-before-expand issues
21623         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21624         expand, AC_PROG_AWK.
21625         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21626
21627 2009-01-28  Eric Blake  <ebb9@byu.net>
21628
21629         version-etc: use consistent URL formatting
21630         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21631         Improve formatting.  Use fputs for string without %.
21632
21633 2009-01-28  Jim Meyering  <meyering@redhat.com>
21634
21635         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21636         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21637         "underquoted definition of NAME" from autoconf-2.59.
21638
21639 2009-01-28  Bruno Haible  <bruno@clisp.org>
21640
21641         * doc/gnulib.texi: Add "Obsolete modules" to index.
21642
21643 2009-01-28  Jim Meyering  <meyering@redhat.com>
21644
21645         useless-if-before-free: recognize more variants
21646         * build-aux/useless-if-before-free: Also recognize e.g.,
21647         if (NULL != p) free (p);
21648
21649 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21650
21651         test-getaddrinfo: skip (don't fail) this test when there's no network
21652         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21653         on the presumption that it means you lack network access.
21654
21655 2009-01-26  Jim Meyering  <meyering@redhat.com>
21656
21657         fflush: avoid warnings on modern systems
21658         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21659         pos and result, into scopes where they're used.
21660
21661 2009-01-26  Eric Blake  <ebb9@byu.net>
21662
21663         Silence warning reintroduced by recent extensions patch.
21664         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21665         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21666         autoconf.
21667
21668         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21669         * m4/00gnulib.m4: New file.
21670         * gnulib-tool (func_get_filelist): Always use it.
21671         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21672         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21673
21674 2009-01-25  Bruno Haible  <bruno@clisp.org>
21675
21676         Make test-quotearg work on MacOS X and AIX.
21677         * tests/test-quotearg.sh: New file.
21678         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21679         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21680         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21681         include <libintl.h>.
21682         (fake_locale): Remove variable.
21683         (gettext, dgettext, dcgettext): Remove functions.
21684         (main): Instead of setting a fake locale, set a real locale. Call
21685         textdomain and bindtextdomain.
21686         * modules/quotearg-tests (Files): Add the new files.
21687         (Depends-on): Add gettext, setenv, unsetenv.
21688         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21689         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21690         Augment TESTS_ENVIRONMENT.
21691
21692 2009-01-25  Bruno Haible  <bruno@clisp.org>
21693
21694         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21695         fr_FR.ISO8859-1 locale on MacOS X.
21696         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21697         ja_JP.eucJP locale on MacOS X.
21698         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21699         zh_CN.GB18030 locale on MacOS X.
21700
21701 2009-01-25  Bruno Haible  <bruno@clisp.org>
21702
21703         Avoid link errors on MacOS X 10.3.
21704         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21705         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21706
21707 2009-01-25  Bruno Haible  <bruno@clisp.org>
21708
21709         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21710         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21711         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21712         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21713         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21714         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21715         posix_spawnattr_init, posix_spawnattr_setsigmask,
21716         posix_spawnattr_setflags, posix_spawnattr_destroy.
21717
21718         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21719         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21720         * modules/execute (Files): Remove m4/posix_spawn.m4.
21721         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21722         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21723         posix_spawnattr_init, posix_spawnattr_setsigmask,
21724         posix_spawnattr_setflags, posix_spawnattr_destroy.
21725
21726 2009-01-25  Bruno Haible  <bruno@clisp.org>
21727
21728         * lib/glthread/threadlib.c: Include <stdlib.h>.
21729
21730 2009-01-25  Bruno Haible  <bruno@clisp.org>
21731
21732         * lib/glthread/threadlib.c (dummy): New declaration.
21733
21734 2009-01-25  Bruno Haible  <bruno@clisp.org>
21735
21736         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21737         multibyte characters also for the GB18030 encoding. Don't crash when
21738         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21739
21740 2009-01-25  Bruno Haible  <bruno@clisp.org>
21741
21742         Avoid redefining 'struct random_data' on OSF/1 5.1.
21743         * lib/stdlib.in.h: Include <random.h> if it exists.
21744         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21745         HAVE_RANDOM_H. Include <random.h> when testing whether
21746         'struct random_data' exists.
21747         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21748
21749 2009-01-25  Bruno Haible  <bruno@clisp.org>
21750
21751         Don't install charset.alias on MacOS X >= 10.3.
21752         * lib/localcharset.c (DARWIN7): New macro.
21753         (get_charset_aliases): Hardcode the result for Darwin7.
21754         * modules/localcharset (install-exec-local): Don't install
21755         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21756
21757 2009-01-25  Bruno Haible  <bruno@clisp.org>
21758
21759         Don't install charset.alias on mingw and Cygwin.
21760         * modules/localcharset (install-exec-local): Don't install
21761         charset.alias on mingw and Cygwin, if the file does not yet exist.
21762         The result for these platforms is hardcoded in localcharset.c.
21763
21764 2009-01-25  Bruno Haible  <bruno@clisp.org>
21765
21766         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21767         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21768         before requiring AC_USE_SYSTEM_EXTENSIONS.
21769
21770 2009-01-25  Jim Meyering  <meyering@redhat.com>
21771
21772         c-strtod: avoid warnings
21773         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21774         "assignment discards qualifiers from pointer target type" warnings.
21775
21776 2009-01-24  Bruno Haible  <bruno@clisp.org>
21777
21778         Add support for non-UTF-8 locales on MacOS X.
21779         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21780         canonical encodings. For Darwin 7 and newer, don't map traditional
21781         encodings to UTF-8.
21782         Reported by Vincent Lefevre <vincent@vinc17.org>
21783         at <http://savannah.gnu.org/bugs/?25235>.
21784
21785 2009-01-24  Bruno Haible  <bruno@clisp.org>
21786
21787         * doc/gnulib.texi (Obsolete modules): New section.
21788         Reported by Mike Frysinger <vapier@gentoo.org>.
21789
21790 2009-01-24  Bruno Haible  <bruno@clisp.org>
21791
21792         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21793         (%.dvi): New rule.
21794
21795 2009-01-24  Bruno Haible  <bruno@clisp.org>
21796
21797         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21798         Reported by Eric Blake.
21799
21800 2009-01-24  Bruno Haible  <bruno@clisp.org>
21801
21802         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21803         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21804         Reported by Gary V. Vaughan <gary@gnu.org>.
21805
21806 2009-01-24  Bruno Haible  <bruno@clisp.org>
21807
21808         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21809
21810 2009-01-23  Bruno Haible  <bruno@clisp.org>
21811
21812         Make c-strtod, c-strtold usable in libraries.
21813         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21814         (C_STRTOD): Call strdup instead of xstrdup.
21815         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21816         * modules/c-strtold (Depends-on): Likewise.
21817         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21818         * NEWS: Mention the change.
21819         Reported by Michael Gold <mgold@ncf.ca>.
21820
21821 2009-01-23  Jim Meyering  <meyering@redhat.com>
21822
21823         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21824         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21825         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21826
21827 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21828
21829         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21830         GNU CoreUtils.
21831         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21832         * modules/version-etc (Description): Update.
21833
21834 2009-01-22  Bruno Haible  <bruno@clisp.org>
21835
21836         Cache the C locale object.
21837         * lib/c-strtod.c (c_locale_cache): New variable.
21838         (c_locale): New function.
21839         (C_STRTOD): Use it, and don't call freelocale.
21840         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21841         Suggested by Paolo Bonzini.
21842
21843 2009-01-21  Bruno Haible  <bruno@clisp.org>
21844
21845         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21846         conditions other than overflow.
21847
21848 2009-01-21  Bruno Haible  <bruno@clisp.org>
21849
21850         * lib/c-strtod.c: Include errno.h.
21851         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21852         value from STRTOD_L and STRTOD.
21853
21854 2009-01-21  Bruno Haible  <bruno@clisp.org>
21855         and Jim Meyering  <meyering@redhat.com>
21856
21857         nanosleep: skip configure test (fail it) for apple universal builds
21858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21859         universal builds, assume that nanosleep does not work.
21860         * modules/nanosleep (Depends-on): Add multiarch.
21861
21862         mktime: skip configure test (fail it) for apple universal builds
21863         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21864         universal builds, assume that mktime does not work.
21865         * modules/mktime (Depends-on): Add multiarch.
21866
21867 2009-01-21  Eric Blake  <ebb9@byu.net>
21868
21869         multiarch: avoid expand-before-require warning
21870         * modules/multiarch (configure.ac): Require, rather than expand,
21871         gl_MULTIARCH.
21872         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21873         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21874         enforce that all clients require it.  Partial reversion of
21875         2008-12-29 patch.
21876
21877         error: avoid expand-before-require warning
21878         * modules/errno (configure.ac): Require, rather than expand,
21879         gl_HEADER_ERRNO_H.
21880         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21881         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21882         enforce that all clients require it.
21883
21884         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21885         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21886         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21887         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21888
21889 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21890
21891         Revert:
21892         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21893
21894         regex: do not depend on obsolete modules.
21895         * modules/regex: Remove memcmp and memmove.
21896
21897 2009-01-20  Bruno Haible  <bruno@clisp.org>
21898
21899         Make the 'link' module link on Windows NT 4.
21900         * lib/link.c (_WIN32_WINNT): Don't define.
21901         (CreateHardLinkFuncType): New type.
21902         (CreateHardLinkFunc, initialized): New variables.
21903         (initialize): New function.
21904         (link): Invoke CreateHardLink indirectly through the function pointer.
21905
21906 2009-01-20  Bruno Haible  <bruno@clisp.org>
21907
21908         Fix compilation failure on mingw.
21909         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21910
21911 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21912
21913         * doc/c-strtod.texi: Mention a couple of restrictions.
21914
21915 2009-01-20  Jim Meyering  <meyering@redhat.com>
21916
21917         gettimeofday: move more declarations out of functions
21918         * lib/gettimeofday.c: Move extern declarations of tzset and
21919         gmtime out of containing functions.  Prompted by Bruno Haible.
21920
21921 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21922
21923         regex: do not depend on obsolete modules.
21924         * modules/regex: Remove memcmp and memmove.
21925
21926 2009-01-19  Bruno Haible  <bruno@clisp.org>
21927
21928         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21929         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
21930         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21931         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
21932         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
21933
21934 2009-01-19  Bruno Haible  <bruno@clisp.org>
21935
21936         * tests/test-link.c: Include <errno.h>.
21937         (main): Exit with code 77 when a hard link cannot be created due to
21938         the file system.
21939         * tests/test-link.sh: Skip test when a hard link cannot be created due
21940         to the file system.
21941         Suggested by Eric Blake.
21942
21943 2009-01-19  Martin Lambers  <marlam@marlam.de>
21944
21945         * modules/link-tests: New file.
21946         * tests/test-link.sh: New file.
21947         * tests/test-link.c: New file.
21948
21949 2009-01-19  Eric Blake  <ebb9@byu.net>
21950
21951         doc: mention another function added in cygwin 1.7.0
21952         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
21953         Another new function in cygwin 1.7.
21954
21955 2009-01-19  Bruno Haible  <bruno@clisp.org>
21956
21957         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21958         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
21959         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
21960         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21961         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21962         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21963         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21964         * m4/md4.m4 (gl_MD4): Likewise.
21965         * m4/md5.m4 (gl_MD5): Likewise.
21966         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
21967         * m4/sha1.m4 (gl_SHA1): Likewise.
21968         * m4/sha256.m4 (gl_SHA256): Likewise.
21969         * m4/sha512.m4 (gl_SHA512): Likewise.
21970
21971 2009-01-19  Bruno Haible  <bruno@clisp.org>
21972
21973         * modules/uniname/uniname-tests (Depends-on): Add progname.
21974         * tests/uniname/test-uninames.c: Include progname.h.
21975         (main): Call set_program_name.
21976
21977         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
21978         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
21979         (main): Call set_program_name.
21980
21981         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
21982         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
21983         (main): Call set_program_name.
21984
21985         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
21986         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
21987         (main): Call set_program_name.
21988
21989         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
21990         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
21991         (main): Call set_program_name.
21992
21993         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
21994         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
21995         (main): Call set_program_name.
21996
21997         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
21998         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
21999         (main): Call set_program_name.
22000
22001         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22002         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22003         (main): Call set_program_name.
22004
22005         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22006         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22007         (main): Call set_program_name.
22008
22009 2009-01-19  Eric Blake  <ebb9@byu.net>
22010
22011         test-unistd: test previous patch
22012         * tests/test-unistd.c: Test *_FILENO macros.
22013
22014         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22015         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22016         Guarantee a definition.
22017         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22018         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22019         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22020         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22021         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22022         Likewise.
22023         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22024         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22025         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22026         Likewise.
22027         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22028         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22029         (STDERR_FILENO): Likewise.
22030         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22031         (STDERR_FILENO): Likewise.
22032         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22033         (STDERR_FILENO): Likewise.
22034         Reported by Elbert Pol.
22035
22036 2009-01-19  Eric Blake  <ebb9@byu.net>
22037
22038         doc: mention more functions added in cygwin 1.7.0
22039         * doc/posix-functions/abort.texi (abort): Update wording related
22040         to cygwin.
22041         * doc/posix-functions/daylight.texi (daylight): Likewise.
22042         * doc/posix-functions/optarg.texi (optarg): Likewise.
22043         * doc/posix-functions/optarg.texi (opterr): Likewise.
22044         * doc/posix-functions/optarg.texi (optind): Likewise.
22045         * doc/posix-functions/optarg.texi (optopt): Likewise.
22046         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22047         worked in 1.5.x, and was withdrawn in 1.7.
22048         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22049         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22050         cygwin versions.
22051         * doc/posix-functions/perror.texi (perror): Likewise.
22052         * doc/posix-functions/printf.texi (printf): Likewise.
22053         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22054         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22055         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22056         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22057         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22058         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22059         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22060         Likewise.
22061         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22062         Likewise.
22063         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22064         this function.
22065         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22066         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22067         Likewise.
22068         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22069         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22070         * doc/posix-functions/confstr.texi (confstr): Likewise.
22071         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22072         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22073         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22074         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22075         * doc/posix-functions/fputws.texi (fputws): Likewise.
22076         * doc/posix-functions/fwide.texi (fwide): Likewise.
22077         * doc/posix-functions/getwc.texi (getwc): Likewise.
22078         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22079         * doc/posix-functions/putwc.texi (putwc): Likewise.
22080         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22081         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22082         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22083         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22084         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22085         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22086         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22087         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22088         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22089         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22090         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22091
22092 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22093
22094         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22095         * lib/ioctl.c: Include <sys/ioctl.h>.
22096
22097 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22098
22099         * modules/getdate-tests (Depends-on): Add progname.
22100         * tests/test-getdate.c: Use progname module, to avoid link errors
22101         on non-glibc systems.
22102
22103 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22104
22105         * modules/filenamecat-tests (Depends-on): Add progname.
22106         * modules/fstrcmp-tests (Depends-on): Likewise.
22107
22108         * tests/test-filenamecat.c: Use progname module, to avoid link
22109         errors on non-glibc systems.
22110         * tests/test-fstrcmp.c: Likewise.
22111
22112 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22113
22114         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22115         * lib/gettimeofday.c: Move extern declaration out of function.
22116
22117 2009-01-18  Bruno Haible  <bruno@clisp.org>
22118
22119         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22120         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22121         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22122
22123 2009-01-18  Bruno Haible  <bruno@clisp.org>
22124
22125         * lib/strftime.c (MEMPCPY): Remove unused macro.
22126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22127
22128 2009-01-18  Martin Lambers  <marlam@marlam.de>
22129
22130         New module 'link'.
22131         * lib/unistd.in.h (link): New declaration.
22132         * lib/link.c: New file.
22133         * m4/link.m4: New file.
22134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22135         HAVE_LINK.
22136         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22137         * modules/link: New file.
22138         * doc/posix-functions/link.texi: Mention the new module.
22139
22140 2009-01-18  Bruno Haible  <bruno@clisp.org>
22141
22142         * tests/test-avltree_list.c (main): Call set_program_name.
22143         * tests/test-avltree_oset.c (main): Likewise.
22144         * tests/test-obstack-printf.c: Include progname.h.
22145         (main): Call set_program_name.
22146         * tests/test-quotearg.c: Include progname.h.
22147         (main): Call set_program_name.
22148         * tests/test-xmemdup0.c: Include progname.h.
22149         (main): Call set_program_name.
22150
22151 2009-01-18  Bruno Haible  <bruno@clisp.org>
22152
22153         New module 'alphasort'.
22154         * lib/dirent.in.h (alphasort): New declaration.
22155         * lib/alphasort.c: New file, from glibc with modifications.
22156         * m4/alphasort.m4: New file.
22157         * modules/alphasort: New file.
22158         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22159         HAVE_ALPHASORT.
22160         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22161         HAVE_ALPHASORT.
22162         * doc/posix-functions/alphasort.texi: Mention the new module and the
22163         portability problems.
22164
22165 2009-01-18  Bruno Haible  <bruno@clisp.org>
22166
22167         New module 'scandir'.
22168         * lib/dirent.in.h (scandir): New declaration.
22169         * lib/scandir.c: New file, from glibc with modifications.
22170         * m4/scandir.m4: New file.
22171         * modules/scandir: New file.
22172         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22173         HAVE_SCANDIR.
22174         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22175         HAVE_SCANDIR.
22176         * doc/posix-functions/scandir.texi: Mention the new module and the
22177         portability problems.
22178
22179 2009-01-17  Bruno Haible  <bruno@clisp.org>
22180
22181         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22182         Update documentation.
22183         (func_remove_suffix): Escape all dots in the suffix. Update
22184         documentation.
22185         (func_filter_filelist): Update documentation.
22186         Reported by Ralf Wildenhues.
22187
22188 2009-01-17  Bruno Haible  <bruno@clisp.org>
22189
22190         * modules/dprintf-posix-tests: New file.
22191         * tests/test-dprintf-posix.sh: New file.
22192         * tests/test-dprintf-posix.c: New file.
22193
22194         New modules 'dprintf', 'dprintf-posix'.
22195         * lib/stdio.in.h (dprintf): New declaration.
22196         * lib/dprintf.c: New file.
22197         * m4/dprintf.m4: New file.
22198         * m4/dprintf-posix.m4: New file.
22199         * modules/dprintf: New file.
22200         * modules/dprintf-posix: New file.
22201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22202         HAVE_DPRINTF, REPLACE_DPRINTF.
22203         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22204         HAVE_DPRINTF, REPLACE_DPRINTF.
22205         * doc/posix-functions/dprintf.texi: Mention the new modules.
22206
22207 2009-01-17  Bruno Haible  <bruno@clisp.org>
22208
22209         * modules/vdprintf-posix-tests: New file.
22210         * tests/test-vdprintf-posix.sh: New file.
22211         * tests/test-vdprintf-posix.c: New file.
22212
22213         New modules 'vdprintf', 'vdprintf-posix'.
22214         * lib/stdio.in.h (vdprintf): New declaration.
22215         * lib/vdprintf.c: New file.
22216         * m4/vdprintf.m4: New file.
22217         * m4/vdprintf-posix.m4: New file.
22218         * modules/vdprintf: New file.
22219         * modules/vdprintf-posix: New file.
22220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22221         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22222         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22223         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22224         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22225
22226 2009-01-17  Bruno Haible  <bruno@clisp.org>
22227
22228         Fix replacement of fopen on mingw.
22229         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22230         mingw.
22231
22232 2009-01-17  Bruno Haible  <bruno@clisp.org>
22233
22234         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22235         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22236
22237 2009-01-17  Bruno Haible  <bruno@clisp.org>
22238
22239         Avoid test-fflush2.sh failure on mingw.
22240         * tests/test-fflush2.c: Include binary-io.h.
22241         (main): Put standard input into binary mode.
22242         * modules/fflush-tests (Depends-on): Add binary-io.
22243
22244 2009-01-17  Bruno Haible  <bruno@clisp.org>
22245
22246         * lib/wchar.in.h: In another particular situation, include only the
22247         system's <wchar.h> file.
22248         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22249         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22250         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22251
22252 2009-01-17  Bruno Haible  <bruno@clisp.org>
22253
22254         Support for stripping executables in --enable-relocatable.
22255         * build-aux/install-reloc: Expect one more argument, or an environment
22256         variable RELOC_STRIP_PROG. If set, strip the destination program and
22257         its wrapper.
22258         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22259         RELOC_STRIP_PROG.
22260         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22261         to set RELOCATABLE_STRIP.
22262         * NEWS: Mention the new Makefile requirement.
22263
22264 2009-01-17  Bruno Haible  <bruno@clisp.org>
22265
22266         * build-aux/install-reloc: Remove debugging information left over by
22267         C compiler on MacOS X.
22268
22269 2009-01-17  Bruno Haible  <bruno@clisp.org>
22270
22271         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22272         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22273         _NSGetExecutablePath.
22274
22275 2009-01-16  Jim Meyering  <meyering@redhat.com>
22276
22277         strerror: avoid warnings about discarding "const"
22278         * lib/strerror.c (rpl_strerror): Instead of returning a const
22279         string from each and every "case", use a variable, and add a single
22280         cast after the switch.
22281
22282 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22283
22284         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22285
22286 2009-01-16  Bruno Haible  <bruno@clisp.org>
22287
22288         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22289         array initializer syntax that also works in C++ mode.
22290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22291
22292 2009-01-16  Jim Meyering  <meyering@redhat.com>
22293
22294         poll: suppress a warning
22295         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22296         to ignore "...unsigned expression < 0 is always false" warnings.
22297
22298 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22299
22300         poll: remove declarations of unused variables
22301         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22302         sockbuf and optlen.
22303
22304 2009-01-15  Bruno Haible  <bruno@clisp.org>
22305
22306         Make fflush-after-ungetc POSIX compliant on BSD systems.
22307         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22308         (clear_ungetc_buffer): Implement also for other systems.
22309         (rpl_fflush): On glibc systems, invoke
22310         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22311         clear_ungetc_buffer after fetching the stream's position, not before.
22312
22313 2009-01-15  Bruno Haible  <bruno@clisp.org>
22314
22315         Make fflush-after-ungetc POSIX compliant on glibc systems.
22316         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22317         after ungetc.
22318         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22319         (rpl_fflush): On glibc systems, simply call the system's fflush
22320         function after clearing the ungetc buffer.
22321         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22322         Instead, lseek only to the end of file, then use the system's fseeko
22323         for the rest. On glibc systems, reset the EOF indicator bit.
22324
22325 2009-01-15  Jim Meyering  <meyering@redhat.com>
22326
22327         openmp.m4: revert quote-adding change, for portability to older autoconf
22328         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22329         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22330         Simon Josefsson noticed the problem when using autoconf-2.61.
22331
22332 2009-01-15  Bruno Haible  <bruno@clisp.org>
22333
22334         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22335         * tests/test-fflush2.c (ASSERT): Always fail.
22336         (main): Add two tests for fflush() after ungetc(), taking into account
22337         the Austin Group's clarification.
22338         Suggested by Eric Blake.
22339
22340 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22341
22342         mktime.m4: remove K&R-style function prototypes
22343         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22344         for the Sun C++ compiler.
22345
22346 2009-01-14  Bruno Haible  <bruno@clisp.org>
22347
22348         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22349         while including <wchar.h>.
22350         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22351         the system's <wchar.h> file.
22352         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22353
22354 2009-01-14  Bruno Haible  <bruno@clisp.org>
22355
22356         * m4/csharp.m4: Don't mention gettext on the serial number line.
22357         * m4/csharpexec.m4: Likewise.
22358         * m4/eaccess.m4: Likewise.
22359         * m4/javaexec.m4: Likewise.
22360         * m4/sig_atomic_t.m4: Likewise.
22361         * m4/tmpdir.m4: Likewise.
22362         * m4/intldir.m4: Bump gettext version.
22363         * m4/lib-ld.m4: Likewise.
22364
22365 2009-01-14  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/progname.c (set_program_name): Add more comments.
22368         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22369
22370 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22371
22372         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22373         were sys/stat.h does not define it.
22374
22375 2009-01-14  Jim Meyering  <meyering@redhat.com>
22376
22377         many *.m4 files: improve m4 quoting
22378         99% of this change was performed by running the following commands:
22379         git ls-files | grep '\.m4$' | xargs perl -pi \
22380           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22381           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22382           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22383           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22384         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22385         The remainder were to add Copyright dates, increment serial numbers,
22386         undo some changes in comments, exclude m4/intl.m4, and add quotes
22387         around the "1" in ",1" where the unusual spacing prohibited the
22388         above regexps from doing the job.  For more details, see
22389         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22390         * m4/acl.m4: Modified.
22391         * m4/afs.m4: Likewise.
22392         * m4/alloca.m4: Likewise.
22393         * m4/argp.m4: Likewise.
22394         * m4/argz.m4: Likewise.
22395         * m4/atexit.m4: Likewise.
22396         * m4/bison-i18n.m4: Likewise.
22397         * m4/bison.m4: Likewise.
22398         * m4/byteswap.m4: Likewise.
22399         * m4/c-stack.m4: Likewise.
22400         * m4/c-strtod.m4: Likewise.
22401         * m4/calloc.m4: Likewise.
22402         * m4/canonicalize-lgpl.m4: Likewise.
22403         * m4/chown.m4: Likewise.
22404         * m4/clock_time.m4: Likewise.
22405         * m4/codeset.m4: Likewise.
22406         * m4/copy-file.m4: Likewise.
22407         * m4/csharp.m4: Likewise.
22408         * m4/csharpcomp.m4: Likewise.
22409         * m4/csharpexec.m4: Likewise.
22410         * m4/d-ino.m4: Likewise.
22411         * m4/d-type.m4: Likewise.
22412         * m4/dirfd.m4: Likewise.
22413         * m4/double-slash-root.m4: Likewise.
22414         * m4/eaccess.m4: Likewise.
22415         * m4/eealloc.m4: Likewise.
22416         * m4/environ.m4: Likewise.
22417         * m4/errno_h.m4: Likewise.
22418         * m4/euidaccess.m4: Likewise.
22419         * m4/execute.m4: Likewise.
22420         * m4/fatal-signal.m4: Likewise.
22421         * m4/fchdir.m4: Likewise.
22422         * m4/fcntl_h.m4: Likewise.
22423         * m4/fileblocks.m4: Likewise.
22424         * m4/filenamecat.m4: Likewise.
22425         * m4/findprog.m4: Likewise.
22426         * m4/flexmember.m4: Likewise.
22427         * m4/fnmatch.m4: Likewise.
22428         * m4/fopen.m4: Likewise.
22429         * m4/fpending.m4: Likewise.
22430         * m4/fprintf-posix.m4: Likewise.
22431         * m4/free.m4: Likewise.
22432         * m4/frexp.m4: Likewise.
22433         * m4/frexpl.m4: Likewise.
22434         * m4/fsusage.m4: Likewise.
22435         * m4/ftruncate.m4: Likewise.
22436         * m4/gc-camellia.m4: Likewise.
22437         * m4/gc-random.m4: Likewise.
22438         * m4/gc.m4: Likewise.
22439         * m4/getaddrinfo.m4: Likewise.
22440         * m4/getcwd-abort-bug.m4: Likewise.
22441         * m4/getcwd-path-max.m4: Likewise.
22442         * m4/getdate.m4: Likewise.
22443         * m4/getdomainname.m4: Likewise.
22444         * m4/getgroups.m4: Likewise.
22445         * m4/gethostname.m4: Likewise.
22446         * m4/gethrxtime.m4: Likewise.
22447         * m4/getline.m4: Likewise.
22448         * m4/getloadavg.m4: Likewise.
22449         * m4/getndelim2.m4: Likewise.
22450         * m4/getpass.m4: Likewise.
22451         * m4/gettext.m4: Likewise.
22452         * m4/gettime.m4: Likewise.
22453         * m4/gettimeofday.m4: Likewise.
22454         * m4/gnulib-common.m4: Likewise.
22455         * m4/group-member.m4: Likewise.
22456         * m4/host-os.m4: Likewise.
22457         * m4/iconv.m4: Likewise.
22458         * m4/iconv_open.m4: Likewise.
22459         * m4/inet_ntop.m4: Likewise.
22460         * m4/inet_pton.m4: Likewise.
22461         * m4/inline.m4: Likewise.
22462         * m4/intldir.m4: Likewise.
22463         * m4/intlmacosx.m4: Likewise.
22464         * m4/intmax.m4: Likewise.
22465         * m4/intmax_t.m4: Likewise.
22466         * m4/inttypes.m4: Likewise.
22467         * m4/inttypes_h.m4: Likewise.
22468         * m4/inttypes-pri.m4: Likewise.
22469         * m4/isapipe.m4: Likewise.
22470         * m4/isnand.m4: Likewise.
22471         * m4/isnanf.m4: Likewise.
22472         * m4/isnanl.m4: Likewise.
22473         * m4/javacomp.m4: Likewise.
22474         * m4/javaexec.m4: Likewise.
22475         * m4/jm-winsz1.m4: Likewise.
22476         * m4/jm-winsz2.m4: Likewise.
22477         * m4/lchown.m4: Likewise.
22478         * m4/lcmessage.m4: Likewise.
22479         * m4/ldexpl.m4: Likewise.
22480         * m4/lib-ld.m4: Likewise.
22481         * m4/lib-link.m4: Likewise.
22482         * m4/libsigsegv.m4: Likewise.
22483         * m4/link-follow.m4: Likewise.
22484         * m4/localcharset.m4: Likewise.
22485         * m4/locale-fr.m4: Likewise.
22486         * m4/locale-ja.m4: Likewise.
22487         * m4/locale-tr.m4: Likewise.
22488         * m4/locale-zh.m4: Likewise.
22489         * m4/lock.m4: Likewise.
22490         * m4/longlong.m4: Likewise.
22491         * m4/ls-mntd-fs.m4: Likewise.
22492         * m4/lstat.m4: Likewise.
22493         * m4/malloc.m4: Likewise.
22494         * m4/mathl.m4: Likewise.
22495         * m4/mbrtowc.m4: Likewise.
22496         * m4/mbstate_t.m4: Likewise.
22497         * m4/mbswidth.m4: Likewise.
22498         * m4/memchr.m4: Likewise.
22499         * m4/memcmp.m4: Likewise.
22500         * m4/memcpy.m4: Likewise.
22501         * m4/memmem.m4: Likewise.
22502         * m4/memmove.m4: Likewise.
22503         * m4/mempcpy.m4: Likewise.
22504         * m4/memrchr.m4: Likewise.
22505         * m4/memset.m4: Likewise.
22506         * m4/minmax.m4: Likewise.
22507         * m4/mkdir-slash.m4: Likewise.
22508         * m4/mkdtemp.m4: Likewise.
22509         * m4/mktime.m4: Likewise.
22510         * m4/mmap-anon.m4: Likewise.
22511         * m4/mountlist.m4: Likewise.
22512         * m4/nanosleep.m4: Likewise.
22513         * m4/nls.m4: Likewise.
22514         * m4/nocrash.m4: Likewise.
22515         * m4/open.m4: Likewise.
22516         * m4/openat.m4: Likewise.
22517         * m4/openmp.m4: Likewise.
22518         * m4/pathmax.m4: Likewise.
22519         * m4/perl.m4: Likewise.
22520         * m4/physmem.m4: Likewise.
22521         * m4/pipe.m4: Likewise.
22522         * m4/po.m4: Likewise.
22523         * m4/poll.m4: Likewise.
22524         * m4/posixtm.m4: Likewise.
22525         * m4/posixver.m4: Likewise.
22526         * m4/printf-frexp.m4: Likewise.
22527         * m4/printf-frexpl.m4: Likewise.
22528         * m4/printf-posix.m4: Likewise.
22529         * m4/printf-posix-rpl.m4: Likewise.
22530         * m4/printf.m4: Likewise.
22531         * m4/progtest.m4: Likewise.
22532         * m4/putenv.m4: Likewise.
22533         * m4/readline.m4: Likewise.
22534         * m4/readlink.m4: Likewise.
22535         * m4/readutmp.m4: Likewise.
22536         * m4/realloc.m4: Likewise.
22537         * m4/regex.m4: Likewise.
22538         * m4/relocatable.m4: Likewise.
22539         * m4/relocatable-lib.m4: Likewise.
22540         * m4/rename-dest-slash.m4: Likewise.
22541         * m4/rename.m4: Likewise.
22542         * m4/rmdir-errno.m4: Likewise.
22543         * m4/rmdir.m4: Likewise.
22544         * m4/roundf.m4: Likewise.
22545         * m4/roundl.m4: Likewise.
22546         * m4/rpmatch.m4: Likewise.
22547         * m4/save-cwd.m4: Likewise.
22548         * m4/selinux-selinux-h.m4: Likewise.
22549         * m4/setenv.m4: Likewise.
22550         * m4/settime.m4: Likewise.
22551         * m4/sig2str.m4: Likewise.
22552         * m4/sig_atomic_t.m4: Likewise.
22553         * m4/signalblocking.m4: Likewise.
22554         * m4/signbit.m4: Likewise.
22555         * m4/sigpipe.m4: Likewise.
22556         * m4/sockets.m4: Likewise.
22557         * m4/sockpfaf.m4: Likewise.
22558         * m4/st_dm_mode.m4: Likewise.
22559         * m4/stat-time.m4: Likewise.
22560         * m4/stdbool.m4: Likewise.
22561         * m4/stdint.m4: Likewise.
22562         * m4/stdint_h.m4: Likewise.
22563         * m4/stpcpy.m4: Likewise.
22564         * m4/stpncpy.m4: Likewise.
22565         * m4/strcase.m4: Likewise.
22566         * m4/strchrnul.m4: Likewise.
22567         * m4/strcspn.m4: Likewise.
22568         * m4/strdup.m4: Likewise.
22569         * m4/strftime.m4: Likewise.
22570         * m4/strndup.m4: Likewise.
22571         * m4/strnlen.m4: Likewise.
22572         * m4/strpbrk.m4: Likewise.
22573         * m4/strptime.m4: Likewise.
22574         * m4/strsep.m4: Likewise.
22575         * m4/strtod.m4: Likewise.
22576         * m4/strtoimax.m4: Likewise.
22577         * m4/strtok_r.m4: Likewise.
22578         * m4/strtol.m4: Likewise.
22579         * m4/strtoll.m4: Likewise.
22580         * m4/strtoul.m4: Likewise.
22581         * m4/strtoull.m4: Likewise.
22582         * m4/strtoumax.m4: Likewise.
22583         * m4/strverscmp.m4: Likewise.
22584         * m4/threadlib.m4: Likewise.
22585         * m4/timegm.m4: Likewise.
22586         * m4/tm_gmtoff.m4: Likewise.
22587         * m4/tmpdir.m4: Likewise.
22588         * m4/tmpfile.m4: Likewise.
22589         * m4/tzset.m4: Likewise.
22590         * m4/uintmax_t.m4: Likewise.
22591         * m4/unlinkdir.m4: Likewise.
22592         * m4/unlocked-io.m4: Likewise.
22593         * m4/uptime.m4: Likewise.
22594         * m4/userspec.m4: Likewise.
22595         * m4/utimbuf.m4: Likewise.
22596         * m4/utime.m4: Likewise.
22597         * m4/utimes-null.m4: Likewise.
22598         * m4/utimes.m4: Likewise.
22599         * m4/vararrays.m4: Likewise.
22600         * m4/vasnprintf.m4: Likewise.
22601         * m4/vfprintf-posix.m4: Likewise.
22602         * m4/vprintf-posix.m4: Likewise.
22603         * m4/wait-process.m4: Likewise.
22604         * m4/wchar_t.m4: Likewise.
22605         * m4/wint_t.m4: Likewise.
22606         * m4/write-any-file.m4: Likewise.
22607         * m4/yield.m4: Likewise.
22608
22609 2009-01-13  Bruno Haible  <bruno@clisp.org>
22610
22611         Avoid test-copy-file.sh failures when ACL support insufficient.
22612         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22613         TESTS_ENVIRONMENT.
22614         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22615         Reported by Jim Meyering.
22616
22617 2009-01-13  Bruno Haible  <bruno@clisp.org>
22618
22619         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22620         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22621         * modules/unistdio/u8-printf-parse (Files): Likewise.
22622         * modules/unistdio/u32-printf-parse (Files): Likewise.
22623         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22624
22625 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22626
22627         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22628         and m4/inttypes_h.m4 too.
22629
22630 2009-01-12  Eric Blake  <ebb9@byu.net>
22631
22632         tests: IRIX 6.2 cc can't compile -0.0 into .data
22633         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22634         rather than at compile-time.
22635         * tests/test-floorl.c (minus_zero): Likewise.
22636         * tests/test-frexpl.c (minus_zero): Likewise.
22637         * tests/test-isnan.c (minus_zerol): Likewise.
22638         * tests/test-isnanl.h (minus_zero): Likewise.
22639         * tests/test-ldexpl.c (minus_zero): Likewise.
22640         * tests/test-roundl.c (minus_zero): Likewise.
22641         * tests/test-signbit.c (minus_zerol): Likewise.
22642         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22643         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22644         * tests/test-truncl.c (minus_zero): Likewise.
22645         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22646         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22647         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22648
22649 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22650
22651         regex: fix glibc bug 9697
22652         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22653         handling.
22654
22655 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22656
22657         regex: fix glibc bug 697
22658         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22659         being NULL also if there are no backreferences.
22660
22661 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22662
22663         regex: merge glibc changes
22664         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22665         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22666         re_string_skip_chars, re_string_reconstruct): Likewise.
22667         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22668
22669 2009-01-07  Jim Meyering  <meyering@redhat.com>
22670
22671         poll: filter through cppi
22672         * lib/poll.c: Indent cpp directives to reflect nesting.
22673
22674 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22675
22676         poll: don't return uninitialized
22677         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22678
22679 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22680
22681         avoid compile failure on AIX 6.1
22682         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22683         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22684
22685 2009-01-04  Jim Meyering  <meyering@redhat.com>
22686
22687         remove duplicate inclusion of <stdio.h>
22688         * tests/test-fprintf-posix.c: Likewise.
22689         * tests/test-printf-posix.c: Likewise.
22690         * tests/test-snprintf-posix.c: Likewise.
22691         * tests/test-sprintf-posix.c: Likewise.
22692         * tests/test-vasprintf-posix.c: Likewise.
22693         * tests/test-vfprintf-posix.c: Likewise.
22694         * tests/test-vprintf-posix.c: Likewise.
22695         * tests/test-vsnprintf-posix.c: Likewise.
22696         * tests/test-vsprintf-posix.c: Likewise.
22697
22698 2009-01-03  Jim Meyering  <meyering@redhat.com>
22699
22700         gnulib-tool: fix sed-based filtering
22701         * gnulib-tool (func_filter_filelist): Remove extra backslash
22702         in sed_fff_filter definition.
22703
22704 2009-01-02  Jim Meyering  <meyering@redhat.com>
22705
22706         strftime: avoid compilation failure on Solaris 2.6
22707         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22708         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22709         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22710         be available.  Reported by Tom G. Christensen.  Details in
22711         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22712
22713 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22714             Bruno Haible  <bruno@clisp.org>
22715
22716         Speed up gnulib-tool by doing more string processing through shell
22717         built-ins.
22718         * gnulib-tool (fast_func_append): New variable.
22719         (func_remove_prefix, func_remove_suffix): New functions.
22720         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22721         (func_filter_filelist): New function.
22722         (func_get_dependencies): Use func_remove_suffix instead of sed.
22723         (func_get_automake_snippet): Use func_filter_filelist instead of a
22724         subshell and sed invocation.
22725
22726 2009-01-01  Bruno Haible  <bruno@clisp.org>
22727
22728         Fix a security bug.
22729         * gnulib-tool (func_import, import, update): Don't allow the characters
22730         '"', '$', '`', '\' in macro arguments that become part of commands that
22731         are evaluated.
22732
22733 2009-01-01  Bruno Haible  <bruno@clisp.org>
22734
22735         * gnulib-tool (func_reset_sigpipe): Add more comments.
22736
22737 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22738
22739         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22740         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22741         already know the answer.
22742
22743 2009-01-01  Jim Meyering  <meyering@redhat.com>
22744
22745         * lib/version-etc.c (version_etc_va): Update copyright year.
22746
22747 2008-12-30  Bruno Haible  <bruno@clisp.org>
22748
22749         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22750         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22751         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22752
22753 2008-12-29  Eric Blake  <ebb9@byu.net>
22754
22755         multiarch: avoid autoconf AC_REQUIRE bug
22756         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22757         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22758         2.63 and older.
22759         Reported by Bruno Haible, and analyzed in
22760         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22761
22762 2008-12-29  Bruno Haible  <bruno@clisp.org>
22763
22764         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22765         files in subdirectories correctly.
22766         Reported by Ralf Wildenhues.
22767
22768 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22769
22770         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22771         rather than 'join FILE -', for Solaris join.
22772
22773 2008-12-29  Bruno Haible  <bruno@clisp.org>
22774
22775         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22776         quoting.
22777         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22778         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22779         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22780         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22781         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22782         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22783         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22784         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22785         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22786         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22787         * m4/nls.m4 (AM_NLS): Likewise.
22788         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22789         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22790         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22791         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22792         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22793         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22794         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22795         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22796         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22797         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22798         * m4/xsize.m4 (gl_XSIZE): Likewise.
22799         Suggested by Jim Meyering.
22800
22801 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22802
22803         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22804         * lib/parse-duration.c: use a switch instead of cascading if's.
22805
22806 2008-12-29  Eric Blake  <ebb9@byu.net>
22807
22808         wchar.h: supply WEOF on Irix 5.3
22809         * lib/wchar.in.h (wint_t): Also supply WEOF.
22810         * lib/wctype.in.h (wint_t): Likewise.
22811         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22812         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22813         Reported by Tom G. Christensen.
22814
22815 2008-12-26  Bruno Haible  <bruno@clisp.org>
22816
22817         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22818         i486, i586, i686.
22819
22820 2008-12-26  Bruno Haible  <bruno@clisp.org>
22821
22822         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22823
22824 2008-12-26  Bruno Haible  <bruno@clisp.org>
22825
22826         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22827         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22828         not __STDC_CONSTANT_MACROS.
22829         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22830
22831 2008-12-25  Bruno Haible  <bruno@clisp.org>
22832
22833         Add support for universal builds to vasnprintf.
22834         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22835         universal builds, guess no.
22836         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22837         * modules/vasprintf-posix (Depends-on): Likewise.
22838         * modules/fprintf-posix (Depends-on): Likewise.
22839         * modules/vfprintf-posix (Depends-on): Likewise.
22840         * modules/snprintf-posix (Depends-on): Likewise.
22841         * modules/vsnprintf-posix (Depends-on): Likewise.
22842         * modules/sprintf-posix (Depends-on): Likewise.
22843         * modules/vsprintf-posix (Depends-on): Likewise.
22844         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22845         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22846         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22847         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22848         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22849         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22850         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22851
22852         Add support for universal builds to <inttypes.h>.
22853         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22854         _SCNu64_PREFIX): In Apple
22855         universal builds, define directly, using _LP64.
22856         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22857         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22858         * modules/inttypes (Depends-on): Add multiarch.
22859         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22860
22861         Add support for universal builds to <stdint.h>.
22862         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22863         universal builds, define directly, using _LP64.
22864         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22865         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22866         and size_t.
22867         * modules/stdint (Depends-on): Add multiarch.
22868         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22869
22870         New module 'multiarch'.
22871         * modules/multiarch: New file.
22872         * m4/multiarch.m4: New file.
22873
22874 2008-12-25  Bruno Haible  <bruno@clisp.org>
22875
22876         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22877
22878 2008-12-25  Bruno Haible  <bruno@clisp.org>
22879
22880         * modules/btowc (License): Relicense under LGPLv2+.
22881         * modules/mbsinit (License): Likewise.
22882         * modules/mbrtowc (License): Likewise.
22883         * modules/wcrtomb (License): Likewise.
22884         * modules/streq (License): Likewise.
22885         Reported by David Lutterkort <lutter@redhat.com>.
22886
22887 2008-12-23  Bruno Haible  <bruno@clisp.org>
22888
22889         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22890
22891 2008-12-23  Bruno Haible  <bruno@clisp.org>
22892
22893         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22895         GETADDRINFO_LIB, not in LIBS.
22896         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22897         * modules/canon-host (Link): Likewise.
22898         * NEWS: Mention the change.
22899         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22900         GETADDRINFO_LIB.
22901
22902 2008-12-22  Bruno Haible  <bruno@clisp.org>
22903
22904         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22905         * doc/posix-functions/iswalpha_l.texi: Likewise.
22906         * doc/posix-functions/iswblank_l.texi: Likewise.
22907         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22908         * doc/posix-functions/iswctype_l.texi: Likewise.
22909         * doc/posix-functions/iswdigit_l.texi: Likewise.
22910         * doc/posix-functions/iswgraph_l.texi: Likewise.
22911         * doc/posix-functions/iswlower_l.texi: Likewise.
22912         * doc/posix-functions/iswprint_l.texi: Likewise.
22913         * doc/posix-functions/iswpunct_l.texi: Likewise.
22914         * doc/posix-functions/iswspace_l.texi: Likewise.
22915         * doc/posix-functions/iswupper_l.texi: Likewise.
22916         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22917         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22918         * doc/posix-functions/open_wmemstream.texi: Likewise.
22919         * doc/posix-functions/swscanf.texi: Likewise.
22920         * doc/posix-functions/towctrans_l.texi: Likewise.
22921         * doc/posix-functions/towlower.texi: Likewise.
22922         * doc/posix-functions/towlower_l.texi: Likewise.
22923         * doc/posix-functions/towupper.texi: Likewise.
22924         * doc/posix-functions/towupper_l.texi: Likewise.
22925         * doc/posix-functions/vfwprintf.texi: Likewise.
22926         * doc/posix-functions/vfwscanf.texi: Likewise.
22927         * doc/posix-functions/vswscanf.texi: Likewise.
22928         * doc/posix-functions/vwprintf.texi: Likewise.
22929         * doc/posix-functions/vwscanf.texi: Likewise.
22930         * doc/posix-functions/wcpcpy.texi: Likewise.
22931         * doc/posix-functions/wcpncpy.texi: Likewise.
22932         * doc/posix-functions/wcscasecmp.texi: Likewise.
22933         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
22934         * doc/posix-functions/wcscoll_l.texi: Likewise.
22935         * doc/posix-functions/wcsdup.texi: Likewise.
22936         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22937         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
22938         * doc/posix-functions/wcsnlen.texi: Likewise.
22939         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22940         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22941         * doc/posix-functions/wctrans_l.texi: Likewise.
22942         * doc/posix-functions/wctype_l.texi: Likewise.
22943         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
22944         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
22945         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
22946         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
22947         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
22948         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
22949         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
22950         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
22951         * doc/glibc-functions/wcschrnul.texi: Likewise.
22952         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22953         * doc/glibc-functions/wcstod_l.texi: Likewise.
22954         * doc/glibc-functions/wcstof_l.texi: Likewise.
22955         * doc/glibc-functions/wcstol_l.texi: Likewise.
22956         * doc/glibc-functions/wcstold_l.texi: Likewise.
22957         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22958         * doc/glibc-functions/wcstoq.texi: Likewise.
22959         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22960         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22961         * doc/glibc-functions/wcstouq.texi: Likewise.
22962         * doc/glibc-functions/wmempcpy.texi: Likewise.
22963
22964 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
22965             Eric Blake  <ebb9@byu.net>
22966             Paolo Bonzini  <bonzini@gnu.org>
22967             Bruno Haible  <bruno@clisp.org>
22968
22969         Make c-stack work on Haiku.
22970         * lib/c-stack.c (SA_ONSTACK): Define fallback.
22971         (c_stack_action): Use SA_ONSTACK flag.
22972
22973 2008-12-22  Bruno Haible  <bruno@clisp.org>
22974
22975         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
22976
22977 2008-12-22  Bruno Haible  <bruno@clisp.org>
22978
22979         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
22980         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
22981         being overridden.
22982         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
22983         New macros.
22984         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
22985         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
22986         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
22987         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
22988
22989 2008-12-22  Bruno Haible  <bruno@clisp.org>
22990
22991         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
22992         from test code.
22993
22994 2008-12-22  Eric Blake  <ebb9@byu.net>
22995
22996         Avoid gcc warnings on cygwin.
22997         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22998         Avoid unused variable.
22999         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23000         Likewise.
23001
23002 2008-12-22  Bruno Haible  <bruno@clisp.org>
23003
23004         Remove HAVE_MBRTOWC conditionals.
23005         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23006         (mbscasecmp): Assume mbrtowc function.
23007         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23008         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23009         * lib/mbschr.c: Include mbuiter.h unconditionally.
23010         (mbschr): Assume mbrtowc function.
23011         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23012         (mbscspn): Assume mbrtowc function.
23013         * lib/mbslen.c: Include mbuiter.h unconditionally.
23014         (mbslen): Assume mbrtowc function.
23015         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23016         (mbsncasecmp): Assume mbrtowc function.
23017         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23018         (mbsnlen): Assume mbrtowc function.
23019         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23020         (mbspbrk): Assume mbrtowc function.
23021         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23022         (mbspcasecmp): Assume mbrtowc function.
23023         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23024         (mbsrchr): Assume mbrtowc function.
23025         * lib/mbssep.c: Include mbuiter.h unconditionally.
23026         (mbssep): Assume mbrtowc function.
23027         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23028         (mbsspn): Assume mbrtowc function.
23029         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23030         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23031         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23032         (mbstok_r): Assume mbrtowc function.
23033         * lib/propername.c: Include mbuiter.h unconditionally.
23034         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23035         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23036         (trim2): Assume mbrtowc function.
23037         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23038         (mbsnwidth): Assume mbrtowc function.
23039         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23040         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23041         fallback definitions.
23042         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23043
23044 2008-12-22  Bruno Haible  <bruno@clisp.org>
23045
23046         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23047
23048 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23049
23050         * modules/regex: Request emulations for the mb*/wc* functions we need.
23051         * m4/regex.m4: Don't look for those functions here.
23052         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23053
23054 2008-12-22  Bruno Haible  <bruno@clisp.org>
23055
23056         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23057
23058 2008-12-21  Bruno Haible  <bruno@clisp.org>
23059
23060         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23061         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23062         (Include): Remove conditionalization.
23063         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23064         (Include): Remove conditionalization.
23065         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23066         (Include): Remove conditionalization.
23067         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23068         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23069         * NEWS: Mention the change.
23070         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23071         via Sergey Poznyakoff <gray@gnu.org.ua>.
23072
23073 2008-12-21  Bruno Haible  <bruno@clisp.org>
23074
23075         * MODULES.html.sh (Extended multibyte and wide character utilities
23076         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23077         wcrtomb, wcsrtombs.
23078         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23079         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23080         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23081         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23082
23083 2008-12-21  Bruno Haible  <bruno@clisp.org>
23084
23085         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23086
23087 2008-12-21  Bruno Haible  <bruno@clisp.org>
23088
23089         * modules/wcsnrtombs-tests: New file.
23090         * tests/test-wcsnrtombs1.sh: New file.
23091         * tests/test-wcsnrtombs2.sh: New file.
23092         * tests/test-wcsnrtombs3.sh: New file.
23093         * tests/test-wcsnrtombs4.sh: New file.
23094         * tests/test-wcsnrtombs.c: New file.
23095
23096         New module 'wcsnrtombs'.
23097         * lib/wchar.in.h (wcsnrtombs): New declaration.
23098         * lib/wcsnrtombs.c: New file.
23099         * lib/wcsrtombs-state.c: New file.
23100         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23101         (internal_state): Remove variable.
23102         * m4/wcsnrtombs.m4: New file.
23103         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23104         compilation units.
23105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23106         HAVE_WCSNRTOMBS.
23107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23108         HAVE_WCSNRTOMBS.
23109         * modules/wcsnrtombs: New file.
23110         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23111         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23112
23113 2008-12-21  Bruno Haible  <bruno@clisp.org>
23114
23115         * modules/wcsrtombs-tests: New file.
23116         * tests/test-wcsrtombs1.sh: New file.
23117         * tests/test-wcsrtombs2.sh: New file.
23118         * tests/test-wcsrtombs3.sh: New file.
23119         * tests/test-wcsrtombs4.sh: New file.
23120         * tests/test-wcsrtombs.c: New file.
23121
23122         New module 'wcsrtombs'.
23123         * lib/wchar.in.h (wcsrtombs): New declaration.
23124         * lib/wcsrtombs.c: New file.
23125         * m4/wcsrtombs.m4: New file.
23126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23127         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23129         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23130         * modules/wcsrtombs: New file.
23131         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23132         bugs.
23133
23134 2008-12-21  Bruno Haible  <bruno@clisp.org>
23135
23136         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23137         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23138         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23139         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23140         if not correct.
23141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23142         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23143         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23144         m4/locale-zh.m4, m4/codeset.m4.
23145         * doc/posix-functions/wcrtomb.texi: Document the bug.
23146
23147 2008-12-21  Bruno Haible  <bruno@clisp.org>
23148
23149         Work around a btowc() bug on IRIX 6.5.
23150         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23151         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23152         REPLACE_WTOBC if not.
23153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23154         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23155         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23156
23157 2008-12-21  Bruno Haible  <bruno@clisp.org>
23158
23159         * modules/wcrtomb-tests: New file.
23160         * tests/test-wcrtomb.sh: New file.
23161         * tests/test-wcrtomb.c: New file.
23162
23163         New module 'wcrtomb'.
23164         * lib/wchar.in.h (wcrtomb): New declaration.
23165         * lib/wcrtomb.c: New file.
23166         * m4/wcrtomb.m4: New file.
23167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23168         HAVE_WCRTOMB.
23169         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23170         HAVE_WCRTOMB.
23171         * modules/wcrtomb: New file.
23172         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23173
23174 2008-12-21  Bruno Haible  <bruno@clisp.org>
23175
23176         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23177         * modules/mbsrtowcs (Files): Likewise.
23178         * modules/wctob (Files): Likewise.
23179         * modules/c-strcase-tests (Files): Likewise.
23180         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23181         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23182         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23183         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23184         * modules/vasnprintf-posix-tests (Files): Likewise.
23185
23186 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23187
23188         gitlog-to-changelog: pass all command-line arguments to git-log
23189         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23190         it is sometimes convenient to filter the commits in various ways.
23191         gitlog-to-changelog only allows --since to specify a start date,
23192         but git-log itself supports many other filtering mechanisms.
23193         At the moment, I want to filter by branch name.  Rather than
23194         adding a --branch option to gitlog-to-changelog, it seems more
23195         flexible to simply pass all options directly to git-log and let
23196         git do the work.  Notice that this effectively makes --since a
23197         redundant option for gitlog-to-changelog, but removing it would
23198         require current usage to change since calls would then require
23199         an additional '--'.
23200
23201 2008-12-21  Bruno Haible  <bruno@clisp.org>
23202
23203         * modules/mbsnrtowcs-tests: New file.
23204         * tests/test-mbsnrtowcs1.sh: New file.
23205         * tests/test-mbsnrtowcs2.sh: New file.
23206         * tests/test-mbsnrtowcs3.sh: New file.
23207         * tests/test-mbsnrtowcs4.sh: New file.
23208         * tests/test-mbsnrtowcs.c: New file.
23209
23210         New module 'mbsnrtowcs'.
23211         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23212         * lib/mbsnrtowcs.c: New file.
23213         * lib/mbsrtowcs-state.c: New file.
23214         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23215         (internal_state): Remove variable.
23216         * m4/mbsnrtowcs.m4: New file.
23217         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23218         compilation units.
23219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23220         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23221         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23222         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23223         * modules/mbsnrtowcs: New file.
23224         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23225         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23226         portability problem.
23227
23228 2008-12-21  Bruno Haible  <bruno@clisp.org>
23229
23230         Work around mbsrtowcs bug.
23231         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23232         (gl_FUNC_MBSRTOWCS): Invoke it.
23233         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23234         m4/locale-zh.m4.
23235         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23236
23237 2008-12-21  Bruno Haible  <bruno@clisp.org>
23238
23239         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23240
23241 2008-12-21  Bruno Haible  <bruno@clisp.org>
23242
23243         Update doc for AIX.
23244         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23245         16-bit wchar_t type.
23246         * doc/posix-functions/btowc.texi: Likewise.
23247         * doc/posix-functions/fgetwc.texi: Likewise.
23248         * doc/posix-functions/fgetws.texi: Likewise.
23249         * doc/posix-functions/fputwc.texi: Likewise.
23250         * doc/posix-functions/fputws.texi: Likewise.
23251         * doc/posix-functions/fwide.texi: Likewise.
23252         * doc/posix-functions/fwprintf.texi: Likewise.
23253         * doc/posix-functions/fwscanf.texi: Likewise.
23254         * doc/posix-functions/getwchar.texi: Likewise.
23255         * doc/posix-functions/getwc.texi: Likewise.
23256         * doc/posix-functions/iswalnum.texi: Likewise.
23257         * doc/posix-functions/iswalpha.texi: Likewise.
23258         * doc/posix-functions/iswblank.texi: Likewise.
23259         * doc/posix-functions/iswcntrl.texi: Likewise.
23260         * doc/posix-functions/iswctype.texi: Likewise.
23261         * doc/posix-functions/iswdigit.texi: Likewise.
23262         * doc/posix-functions/iswgraph.texi: Likewise.
23263         * doc/posix-functions/iswlower.texi: Likewise.
23264         * doc/posix-functions/iswprint.texi: Likewise.
23265         * doc/posix-functions/iswpunct.texi: Likewise.
23266         * doc/posix-functions/iswspace.texi: Likewise.
23267         * doc/posix-functions/iswupper.texi: Likewise.
23268         * doc/posix-functions/iswxdigit.texi: Likewise.
23269         * doc/posix-functions/mbrtowc.texi: Likewise.
23270         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23271         * doc/posix-functions/mbstowcs.texi: Likewise.
23272         * doc/posix-functions/mbtowc.texi: Likewise.
23273         * doc/posix-functions/putwchar.texi: Likewise.
23274         * doc/posix-functions/putwc.texi: Likewise.
23275         * doc/posix-functions/swprintf.texi: Likewise.
23276         * doc/posix-functions/tolower.texi: Likewise.
23277         * doc/posix-functions/toupper.texi: Likewise.
23278         * doc/posix-functions/towctrans.texi: Likewise.
23279         * doc/posix-functions/ungetwc.texi: Likewise.
23280         * doc/posix-functions/vswprintf.texi: Likewise.
23281         * doc/posix-functions/wcrtomb.texi: Likewise.
23282         * doc/posix-functions/wcscat.texi: Likewise.
23283         * doc/posix-functions/wcschr.texi: Likewise.
23284         * doc/posix-functions/wcscmp.texi: Likewise.
23285         * doc/posix-functions/wcscoll.texi: Likewise.
23286         * doc/posix-functions/wcscpy.texi: Likewise.
23287         * doc/posix-functions/wcscspn.texi: Likewise.
23288         * doc/posix-functions/wcsftime.texi: Likewise.
23289         * doc/posix-functions/wcslen.texi: Likewise.
23290         * doc/posix-functions/wcsncat.texi: Likewise.
23291         * doc/posix-functions/wcsncmp.texi: Likewise.
23292         * doc/posix-functions/wcsncpy.texi: Likewise.
23293         * doc/posix-functions/wcspbrk.texi: Likewise.
23294         * doc/posix-functions/wcsrchr.texi: Likewise.
23295         * doc/posix-functions/wcsrtombs.texi: Likewise.
23296         * doc/posix-functions/wcsspn.texi: Likewise.
23297         * doc/posix-functions/wcsstr.texi: Likewise.
23298         * doc/posix-functions/wcstod.texi: Likewise.
23299         * doc/posix-functions/wcstof.texi: Likewise.
23300         * doc/posix-functions/wcstoimax.texi: Likewise.
23301         * doc/posix-functions/wcstok.texi: Likewise.
23302         * doc/posix-functions/wcstold.texi: Likewise.
23303         * doc/posix-functions/wcstoll.texi: Likewise.
23304         * doc/posix-functions/wcstol.texi: Likewise.
23305         * doc/posix-functions/wcstombs.texi: Likewise.
23306         * doc/posix-functions/wcstoull.texi: Likewise.
23307         * doc/posix-functions/wcstoul.texi: Likewise.
23308         * doc/posix-functions/wcstoumax.texi: Likewise.
23309         * doc/posix-functions/wcswidth.texi: Likewise.
23310         * doc/posix-functions/wcsxfrm.texi: Likewise.
23311         * doc/posix-functions/wctob.texi: Likewise.
23312         * doc/posix-functions/wctomb.texi: Likewise.
23313         * doc/posix-functions/wctrans.texi: Likewise.
23314         * doc/posix-functions/wctype.texi: Likewise.
23315         * doc/posix-functions/wcwidth.texi: Likewise.
23316         * doc/posix-functions/wmemchr.texi: Likewise.
23317         * doc/posix-functions/wmemcmp.texi: Likewise.
23318         * doc/posix-functions/wmemcpy.texi: Likewise.
23319         * doc/posix-functions/wmemmove.texi: Likewise.
23320         * doc/posix-functions/wmemset.texi: Likewise.
23321         * doc/posix-functions/wprintf.texi: Likewise.
23322         * doc/posix-functions/wscanf.texi: Likewise.
23323
23324 2008-12-21  Bruno Haible  <bruno@clisp.org>
23325
23326         Update doc for HP-UX 11.11.
23327         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23328         in HP-UX version 11.00, not in all versions of HP-UX 11.
23329         * doc/posix-functions/fwide.texi: Likewise.
23330         * doc/posix-functions/fwprintf.texi: Likewise.
23331         * doc/posix-functions/fwscanf.texi: Likewise.
23332         * doc/posix-functions/inet_ntop.texi: Likewise.
23333         * doc/posix-functions/inet_pton.texi: Likewise.
23334         * doc/posix-functions/mbrlen.texi: Likewise.
23335         * doc/posix-functions/mbrtowc.texi: Likewise.
23336         * doc/posix-functions/mbsinit.texi: Likewise.
23337         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23338         * doc/posix-functions/swprintf.texi: Likewise.
23339         * doc/posix-functions/swscanf.texi: Likewise.
23340         * doc/posix-functions/towctrans.texi: Likewise.
23341         * doc/posix-functions/vfwprintf.texi: Likewise.
23342         * doc/posix-functions/vswprintf.texi: Likewise.
23343         * doc/posix-functions/vwprintf.texi: Likewise.
23344         * doc/posix-functions/wcrtomb.texi: Likewise.
23345         * doc/posix-functions/wcsrtombs.texi: Likewise.
23346         * doc/posix-functions/wcsstr.texi: Likewise.
23347         * doc/posix-functions/wctob.texi: Likewise.
23348         * doc/posix-functions/wctrans.texi: Likewise.
23349         * doc/posix-functions/wmemchr.texi: Likewise.
23350         * doc/posix-functions/wmemcmp.texi: Likewise.
23351         * doc/posix-functions/wmemcpy.texi: Likewise.
23352         * doc/posix-functions/wmemmove.texi: Likewise.
23353         * doc/posix-functions/wmemset.texi: Likewise.
23354         * doc/posix-functions/wprintf.texi: Likewise.
23355         * doc/posix-functions/wscanf.texi: Likewise.
23356
23357 2008-12-21  Bruno Haible  <bruno@clisp.org>
23358
23359         Work around a portability problem.
23360         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23361         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23362
23363 2008-12-20  Bruno Haible  <bruno@clisp.org>
23364
23365         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23366         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23367         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23369         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23370
23371         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23372         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23373         set.
23374         (GNULIB_defined_mbstate_t): New macro.
23375         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23376         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23377         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23378         reuses the system's mbrtowc function but works around the bugs.
23379         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23380         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23381         macros.
23382         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23383         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23384         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23385         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23386         REPLACE_MBSINIT if mbsinit needs to be overridden.
23387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23388         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23389         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23390         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23391         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23392         m4/locale-zh.m4.
23393         (Depends): Add mbsinit.
23394         * modules/mbsinit (Depends): Add mbrtowc.
23395         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23396
23397 2008-12-20  Bruno Haible  <bruno@clisp.org>
23398
23399         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23400         so that there are no conversion errors on AIX.
23401         * tests/test-mbsrtowcs.c (main): LIkewise.
23402
23403 2008-12-20  Bruno Haible  <bruno@clisp.org>
23404
23405         Work around wctob bug on Solaris <= 9.
23406         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23407         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23409         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23410         * modules/wctob (Files): Add m4/locale-fr.m4.
23411         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23412
23413 2008-12-20  Bruno Haible  <bruno@clisp.org>
23414
23415         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23416         /dev/null.
23417         * tests/test-select-in.sh: Likewise.
23418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23419
23420 2008-12-20  Bruno Haible  <bruno@clisp.org>
23421
23422         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23423         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23424         Cygwin 1.5.x.
23425
23426 2008-12-20  Bruno Haible  <bruno@clisp.org>
23427
23428         Ensure mbstate_t is defined on HP-UX 11.11.
23429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23430         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23431         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23432         AC_USE_SYSTEM_EXTENSIONS.
23433         * modules/fnmatch (Depends-on): Add extensions.
23434         * modules/mbrlen (Depends-on): Likewise.
23435         * modules/mbrtowc (Depends-on): Likewise.
23436         * modules/mbsinit (Depends-on): Likewise.
23437         * modules/mbsrtowcs (Depends-on): Likewise.
23438         * modules/mbswidth (Depends-on): Likewise.
23439         * modules/quotearg (Depends-on): Likewise.
23440         * modules/strftime (Depends-on): Likewise.
23441
23442 2008-12-20  Bruno Haible  <bruno@clisp.org>
23443
23444         Ensure wctob is declared on IRIX 6.5.
23445         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23446         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23447         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23449         of HAVE_WCTOB.
23450         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23451         HAVE_WCTOB.
23452         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23453
23454 2008-12-19  Bruno Haible  <bruno@clisp.org>
23455
23456         * modules/mbsrtowcs-tests: New file.
23457         * tests/test-mbsrtowcs1.sh: New file.
23458         * tests/test-mbsrtowcs2.sh: New file.
23459         * tests/test-mbsrtowcs3.sh: New file.
23460         * tests/test-mbsrtowcs4.sh: New file.
23461         * tests/test-mbsrtowcs.c: New file.
23462
23463         New module 'mbsrtowcs'.
23464         * lib/wchar.in.h (mbsrtowcs): New declaration.
23465         * lib/mbsrtowcs.c: New file.
23466         * m4/mbsrtowcs.m4: New file.
23467         * modules/mbsrtowcs: New file.
23468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23469         HAVE_MBSRTOWCS.
23470         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23471         HAVE_MBSRTOWCS.
23472         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23473
23474 2008-12-19  Bruno Haible  <bruno@clisp.org>
23475
23476         New module 'mbrlen'.
23477         * lib/wchar.in.h (mbrlen): New declaration.
23478         * lib/mbrlen.c: New file.
23479         * m4/mbrlen.m4: New file.
23480         * modules/mbrlen: New file.
23481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23482         HAVE_MBRLEN.
23483         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23484         HAVE_MBRLEN.
23485         * doc/posix-functions/mbrlen.texi: Document the new module.
23486
23487 2008-12-19  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23490         * modules/mbrtowc (Depends-on): Add verify.
23491         Suggested by Paul Eggert.
23492
23493 2008-12-18  Bruno Haible  <bruno@clisp.org>
23494
23495         * modules/mbsinit-tests: New file.
23496         * tests/test-mbsinit.sh: New file.
23497         * tests/test-mbsinit.c: New file.
23498
23499 2008-12-18  Bruno Haible  <bruno@clisp.org>
23500
23501         * modules/mbrtowc-tests: New file.
23502         * tests/test-mbrtowc1.sh: New file.
23503         * tests/test-mbrtowc2.sh: New file.
23504         * tests/test-mbrtowc3.sh: New file.
23505         * tests/test-mbrtowc4.sh: New file.
23506         * tests/test-mbrtowc.c: New file.
23507
23508         New module 'mbrtowc'.
23509         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23510         mbsinit and mbrtowc.
23511         (mbrtowc): New declaration.
23512         * lib/mbrtowc.c: New file.
23513         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23514         * modules/mbrtowc: New file.
23515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23516         HAVE_MBRTOWC.
23517         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23518         HAVE_MBRTOWC.
23519         * doc/posix-functions/mbrtowc.texi: Document the new module.
23520
23521 2008-12-18  Bruno Haible  <bruno@clisp.org>
23522
23523         New module 'wctob'.
23524         * lib/wchar.in.h (wctob): New declaration.
23525         * lib/wctob.c: New file.
23526         * m4/wctob.m4: New file.
23527         * modules/wctob: New file.
23528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23529         HAVE_WCTOB.
23530         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23531         * doc/posix-functions/wctob.texi: Document the new module.
23532
23533 2008-12-18  Bruno Haible  <bruno@clisp.org>
23534
23535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23536         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23537
23538 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23539
23540         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23541         G. Christensen" <tgc@jupiterrise.com>.
23542
23543         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23544         G. Christensen" <tgc@jupiterrise.com>.
23545
23546         * lib/flock.c: Need to include string.h.  Reported by "Tom
23547         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23548         <ebb9@byu.net>.
23549
23550 2008-12-18  Bruno Haible  <bruno@clisp.org>
23551
23552         * m4/locale-ja.m4: New file, from GNU gettext.
23553
23554 2008-12-17  Bruno Haible  <bruno@clisp.org>
23555
23556         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23557         Suggested by Eric Blake.
23558
23559 2008-12-17  Bruno Haible  <bruno@clisp.org>
23560
23561         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23562
23563 2008-12-17  Bruno Haible  <bruno@clisp.org>
23564
23565         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23566         * modules/mbsinit (Depends-on): Add verify.
23567         Suggested by Paul Eggert.
23568
23569 2008-12-17  Bruno Haible  <bruno@clisp.org>
23570
23571         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23572         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23573         gl_FUNC_MBRTOWC.
23574         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23575         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23576         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23577         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23578         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23579         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23580         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23581         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23582         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23583         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23584         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23585         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23586         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23587         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23588         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23589         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23590         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23591         * modules/trim (configure.ac): Likewise.
23592
23593 2008-12-17  Bruno Haible  <bruno@clisp.org>
23594
23595         * modules/btowc-tests: New file.
23596         * tests/test-btowc1.sh: New file.
23597         * tests/test-btowc2.sh: New file.
23598         * tests/test-btowc.c: New file.
23599
23600         New module 'btowc'.
23601         * lib/wchar.in.h (btowc): New declaration.
23602         * lib/btowc.c: New file.
23603         * m4/btowc.m4: New file.
23604         * modules/btowc: New file.
23605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23606         HAVE_BTOWC.
23607         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23608         * doc/posix-functions/btowc.texi: Document the new module.
23609
23610 2008-12-17  Bruno Haible  <bruno@clisp.org>
23611
23612         New module 'mbsinit'.
23613         * lib/wchar.in.h (mbsinit): New declaration.
23614         * lib/mbsinit.c: New file.
23615         * m4/mbsinit.m4: New file.
23616         * modules/mbsinit: New file.
23617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23618         HAVE_MBSINIT.
23619         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23620         HAVE_MBSINIT.
23621         * doc/posix-functions/mbsinit.texi: Document the new module.
23622
23623 2008-12-16  Bruno Haible  <bruno@clisp.org>
23624
23625         * lib/unistd.in.h: Add comment.
23626         * tests/test-environ.c: Don't include <stdlib.h>.
23627
23628 2008-12-16  Bruno Haible  <bruno@clisp.org>
23629
23630         * lib/parse-duration.h (parse_duration): Document return value
23631         convention.
23632         * lib/parse-duration.c: Include specification header first. Add
23633         comments.
23634         (_): Remove macro.
23635         (parse_year_month_day, parse_hour_minute_second): Move side effects
23636         outside of strchr call.
23637         (parse_non_iso8601): Move side effects outside of isspace call.
23638         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23639         call.
23640
23641 2008-12-16  Bruno Haible  <bruno@clisp.org>
23642
23643         * tests/test-parse-duration.sh: Produce no output when the test
23644         succeeds.
23645
23646 2008-12-16  Bruno Haible  <bruno@clisp.org>
23647
23648         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23649         expressions.
23650
23651 2008-12-15  Bruno Haible  <bruno@clisp.org>
23652
23653         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23654         * doc/glibc-functions/flistxattr.texi: Likewise.
23655         * doc/glibc-functions/fopencookie.texi: Likewise.
23656         * doc/glibc-functions/fremovexattr.texi: Likewise.
23657         * doc/glibc-functions/fsetxattr.texi: Likewise.
23658         * doc/glibc-functions/getxattr.texi: Likewise.
23659         * doc/glibc-functions/lgetxattr.texi: Likewise.
23660         * doc/glibc-functions/listxattr.texi: Likewise.
23661         * doc/glibc-functions/llistxattr.texi: Likewise.
23662         * doc/glibc-functions/lremovexattr.texi: Likewise.
23663         * doc/glibc-functions/lsetxattr.texi: Likewise.
23664         * doc/glibc-functions/removexattr.texi: Likewise.
23665         * doc/glibc-functions/setxattr.texi: Likewise.
23666         * doc/posix-functions/open_memstream.texi: Likewise.
23667
23668 2008-12-15  Eric Blake  <ebb9@byu.net>
23669
23670         Update doc for cygwin 1.7.
23671         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23672         functions.
23673         * doc/posix-functions/fchmodat.texi: Likewise.
23674         * doc/posix-functions/fchownat.texi: Likewise.
23675         * doc/posix-functions/fdopendir.texi: Likewise.
23676         * doc/posix-functions/fmemopen.texi: Likewise.
23677         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23678         * doc/posix-functions/fstatat.texi: Likewise.
23679         * doc/posix-functions/futimens.texi: Likewise.
23680         * doc/posix-functions/gai_strerror.texi: Likewise.
23681         * doc/posix-functions/getaddrinfo.texi: Likewise.
23682         * doc/posix-functions/getnameinfo.texi: Likewise.
23683         * doc/posix-functions/if_freenameindex.texi: Likewise.
23684         * doc/posix-functions/if_indextoname.texi: Likewise.
23685         * doc/posix-functions/if_nameindex.texi: Likewise.
23686         * doc/posix-functions/if_nametoindex.texi: Likewise.
23687         * doc/posix-functions/insque.texi: Likewise.
23688         * doc/posix-functions/linkat.texi: Likewise.
23689         * doc/posix-functions/llrint.texi: Likewise.
23690         * doc/posix-functions/llrintf.texi: Likewise.
23691         * doc/posix-functions/llrintl.texi: Likewise.
23692         * doc/posix-functions/lockf.texi: Likewise.
23693         * doc/posix-functions/lrintl.texi: Likewise.
23694         * doc/posix-functions/mkdirat.texi: Likewise.
23695         * doc/posix-functions/mkfifoat.texi: Likewise.
23696         * doc/posix-functions/mknodat.texi: Likewise.
23697         * doc/posix-functions/mq_close.texi: Likewise.
23698         * doc/posix-functions/mq_getattr.texi: Likewise.
23699         * doc/posix-functions/mq_notify.texi: Likewise.
23700         * doc/posix-functions/mq_open.texi: Likewise.
23701         * doc/posix-functions/mq_receive.texi: Likewise.
23702         * doc/posix-functions/mq_send.texi: Likewise.
23703         * doc/posix-functions/mq_setattr.texi: Likewise.
23704         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23705         * doc/posix-functions/mq_timedsend.texi: Likewise.
23706         * doc/posix-functions/mq_unlink.texi: Likewise.
23707         * doc/posix-functions/open_memstream.texi: Likewise.
23708         * doc/posix-functions/openat.texi: Likewise.
23709         * doc/posix-functions/posix_fadvise.texi: Likewise.
23710         * doc/posix-functions/posix_fallocate.texi: Likewise.
23711         * doc/posix-functions/posix_madvise.texi: Likewise.
23712         * doc/posix-functions/posix_memalign.texi: Likewise.
23713         * doc/posix-functions/posix_openpt.texi: Likewise.
23714         * doc/posix-functions/readlinkat.texi: Likewise.
23715         * doc/posix-functions/remque.texi: Likewise.
23716         * doc/posix-functions/renameat.texi: Likewise.
23717         * doc/posix-functions/rintl.texi: Likewise.
23718         * doc/posix-functions/sem_unlink.texi: Likewise.
23719         * doc/posix-functions/shm_open.texi: Likewise.
23720         * doc/posix-functions/shm_unlink.texi: Likewise.
23721         * doc/posix-functions/signgam.texi: Likewise.
23722         * doc/posix-functions/sigset.texi: Likewise.
23723         * doc/posix-functions/stpcpy.texi: Likewise.
23724         * doc/posix-functions/stpncpy.texi: Likewise.
23725         * doc/posix-functions/strerror.texi: Likewise.
23726         * doc/posix-functions/strtod.texi: Likewise.
23727         * doc/posix-functions/symlinkat.texi: Likewise.
23728         * doc/posix-functions/unlinkat.texi: Likewise.
23729         * doc/posix-functions/utimensat.texi: Likewise.
23730         * doc/glibc-functions/bindresvport.texi: Likewise.
23731         * doc/glibc-functions/dn_expand.texi: Likewise.
23732         * doc/glibc-functions/exp10.texi: Likewise.
23733         * doc/glibc-functions/exp10f.texi: Likewise.
23734         * doc/glibc-functions/fgetxattr.texi: Likewise.
23735         * doc/glibc-functions/flistxattr.texi: Likewise.
23736         * doc/glibc-functions/fopencookie.texi: Likewise.
23737         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23738         * doc/glibc-functions/fremovexattr.texi: Likewise.
23739         * doc/glibc-functions/fsetxattr.texi: Likewise.
23740         * doc/glibc-functions/getifaddrs.texi: Likewise.
23741         * doc/glibc-functions/getxattr.texi: Likewise.
23742         * doc/glibc-functions/lgetxattr.texi: Likewise.
23743         * doc/glibc-functions/listxattr.texi: Likewise.
23744         * doc/glibc-functions/llistxattr.texi: Likewise.
23745         * doc/glibc-functions/lremovexattr.texi: Likewise.
23746         * doc/glibc-functions/lsetxattr.texi: Likewise.
23747         * doc/glibc-functions/pow10.texi: Likewise.
23748         * doc/glibc-functions/pow10f.texi: Likewise.
23749         * doc/glibc-functions/rcmd_af.texi: Likewise.
23750         * doc/glibc-functions/removexattr.texi: Likewise.
23751         * doc/glibc-functions/res_init.texi: Likewise.
23752         * doc/glibc-functions/res_mkquery.texi: Likewise.
23753         * doc/glibc-functions/res_query.texi: Likewise.
23754         * doc/glibc-functions/res_querydomain.texi: Likewise.
23755         * doc/glibc-functions/res_send.texi: Likewise.
23756         * doc/glibc-functions/rresvport_af.texi: Likewise.
23757         * doc/glibc-functions/setxattr.texi: Likewise.
23758         * doc/glibc-functions/strcasestr.texi: Likewise.
23759
23760 2008-12-15  Bruno Haible  <bruno@clisp.org>
23761
23762         Fix compilation error on OSF/1 4.0.
23763         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23764         <sys/time.h>, simply delegate to the system header.
23765         Reported by Daniel Richard G. <oss@teragram.com>.
23766
23767 2008-12-15  Bruno Haible  <bruno@clisp.org>
23768
23769         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23770         * doc/posix-functions/fchmodat.texi: Likewise.
23771         * doc/posix-functions/fchownat.texi: Likewise.
23772         * doc/posix-functions/fdopendir.texi: Likewise.
23773         * doc/posix-functions/fstatat.texi: Likewise.
23774         * doc/posix-functions/mkdirat.texi: Likewise.
23775         * doc/posix-functions/unlinkat.texi: Likewise.
23776
23777 2008-12-14  Bruno Haible  <bruno@clisp.org>
23778
23779         Update doc for POSIX:2008.
23780         * doc/posix-functions/faccessat.texi: New file.
23781         * doc/posix-functions/fchmodat.texi: New file.
23782         * doc/posix-functions/fchownat.texi: New file.
23783         * doc/posix-functions/fdopendir.texi: New file.
23784         * doc/posix-functions/fstatat.texi: New file.
23785         * doc/posix-functions/futimens.texi: New file.
23786         * doc/posix-functions/linkat.texi: New file.
23787         * doc/posix-functions/mkdirat.texi: New file.
23788         * doc/posix-functions/mkfifoat.texi: New file.
23789         * doc/posix-functions/mknodat.texi: New file.
23790         * doc/posix-functions/open_wmemstream.texi: New file.
23791         * doc/posix-functions/openat.texi: New file.
23792         * doc/posix-functions/psiginfo.texi: New file.
23793         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23794         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23795         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23796         * doc/posix-functions/readlinkat.texi: New file.
23797         * doc/posix-functions/renameat.texi: New file.
23798         * doc/posix-functions/strerror_l.texi: New file.
23799         * doc/posix-functions/symlinkat.texi: New file.
23800         * doc/posix-functions/unlinkat.texi: New file.
23801         * doc/posix-functions/utimensat.texi: New file.
23802         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23803
23804 2008-12-14  Bruno Haible  <bruno@clisp.org>
23805
23806         Update doc for POSIX:2008.
23807         * doc/posix-functions/alphasort.texi: Renamed from
23808         doc/glibc-functions/alphasort.texi.
23809         * doc/posix-functions/dirfd.texi: Renamed from
23810         doc/glibc-functions/dirfd.texi.
23811         * doc/posix-functions/dprintf.texi: Renamed from
23812         doc/glibc-functions/dprintf.texi.
23813         * doc/posix-functions/duplocale.texi: Renamed from
23814         doc/glibc-functions/duplocale.texi.
23815         * doc/posix-functions/fexecve.texi: Renamed from
23816         doc/glibc-functions/fexecve.texi.
23817         * doc/posix-functions/fmemopen.texi: Renamed from
23818         doc/glibc-functions/fmemopen.texi.
23819         * doc/posix-functions/freelocale.texi: Renamed from
23820         doc/glibc-functions/freelocale.texi.
23821         * doc/posix-functions/getdate_err.texi: Renamed from
23822         doc/glibc-functions/getdate_err.texi.
23823         * doc/posix-functions/isalnum_l.texi: Renamed from
23824         doc/glibc-functions/isalnum_l.texi.
23825         * doc/posix-functions/isalpha_l.texi: Renamed from
23826         doc/glibc-functions/isalpha_l.texi.
23827         * doc/posix-functions/isblank_l.texi: Renamed from
23828         doc/glibc-functions/isblank_l.texi.
23829         * doc/posix-functions/iscntrl_l.texi: Renamed from
23830         doc/glibc-functions/iscntrl_l.texi.
23831         * doc/posix-functions/isdigit_l.texi: Renamed from
23832         doc/glibc-functions/isdigit_l.texi.
23833         * doc/posix-functions/isgraph_l.texi: Renamed from
23834         doc/glibc-functions/isgraph_l.texi.
23835         * doc/posix-functions/islower_l.texi: Renamed from
23836         doc/glibc-functions/islower_l.texi.
23837         * doc/posix-functions/isprint_l.texi: Renamed from
23838         doc/glibc-functions/isprint_l.texi.
23839         * doc/posix-functions/ispunct_l.texi: Renamed from
23840         doc/glibc-functions/ispunct_l.texi.
23841         * doc/posix-functions/isspace_l.texi: Renamed from
23842         doc/glibc-functions/isspace_l.texi.
23843         * doc/posix-functions/isupper_l.texi: Renamed from
23844         doc/glibc-functions/isupper_l.texi.
23845         * doc/posix-functions/iswalnum_l.texi: Renamed from
23846         doc/glibc-functions/iswalnum_l.texi.
23847         * doc/posix-functions/iswalpha_l.texi: Renamed from
23848         doc/glibc-functions/iswalpha_l.texi.
23849         * doc/posix-functions/iswblank_l.texi: Renamed from
23850         doc/glibc-functions/iswblank_l.texi.
23851         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23852         doc/glibc-functions/iswcntrl_l.texi.
23853         * doc/posix-functions/iswctype_l.texi: Renamed from
23854         doc/glibc-functions/iswctype_l.texi.
23855         * doc/posix-functions/iswdigit_l.texi: Renamed from
23856         doc/glibc-functions/iswdigit_l.texi.
23857         * doc/posix-functions/iswgraph_l.texi: Renamed from
23858         doc/glibc-functions/iswgraph_l.texi.
23859         * doc/posix-functions/iswlower_l.texi: Renamed from
23860         doc/glibc-functions/iswlower_l.texi.
23861         * doc/posix-functions/iswprint_l.texi: Renamed from
23862         doc/glibc-functions/iswprint_l.texi.
23863         * doc/posix-functions/iswpunct_l.texi: Renamed from
23864         doc/glibc-functions/iswpunct_l.texi.
23865         * doc/posix-functions/iswspace_l.texi: Renamed from
23866         doc/glibc-functions/iswspace_l.texi.
23867         * doc/posix-functions/iswupper_l.texi: Renamed from
23868         doc/glibc-functions/iswupper_l.texi.
23869         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23870         doc/glibc-functions/iswxdigit_l.texi.
23871         * doc/posix-functions/isxdigit_l.texi: Renamed from
23872         doc/glibc-functions/isxdigit_l.texi.
23873         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23874         doc/glibc-functions/mbsnrtowcs.texi.
23875         * doc/posix-functions/mkdtemp.texi: Renamed from
23876         doc/glibc-functions/mkdtemp.texi.
23877         * doc/posix-functions/newlocale.texi: Renamed from
23878         doc/glibc-functions/newlocale.texi.
23879         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23880         doc/glibc-functions/nl_langinfo_l.texi.
23881         * doc/posix-functions/open_memstream.texi: Renamed from
23882         doc/glibc-functions/open_memstream.texi.
23883         * doc/posix-functions/opterr.texi: Renamed from
23884         doc/glibc-functions/opterr.texi.
23885         * doc/posix-functions/optind.texi: Renamed from
23886         doc/glibc-functions/optind.texi.
23887         * doc/posix-functions/optopt.texi: Renamed from
23888         doc/glibc-functions/optopt.texi.
23889         * doc/posix-functions/psignal.texi: Renamed from
23890         doc/glibc-functions/psignal.texi.
23891         * doc/posix-functions/scandir.texi: Renamed from
23892         doc/glibc-functions/scandir.texi.
23893         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23894         doc/glibc-functions/sched_get_priority_min.texi.
23895         * doc/posix-functions/signgam.texi: Renamed from
23896         doc/glibc-functions/signgam.texi.
23897         * doc/posix-functions/stpcpy.texi: Renamed from
23898         doc/glibc-functions/stpcpy.texi.
23899         * doc/posix-functions/stpncpy.texi: Renamed from
23900         doc/glibc-functions/stpncpy.texi.
23901         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23902         doc/glibc-functions/strcasecmp_l.texi.
23903         * doc/posix-functions/strcoll_l.texi: Renamed from
23904         doc/glibc-functions/strcoll_l.texi.
23905         * doc/posix-functions/strfmon_l.texi: Renamed from
23906         doc/glibc-functions/strfmon_l.texi.
23907         * doc/posix-functions/strftime_l.texi: Renamed from
23908         doc/glibc-functions/strftime_l.texi.
23909         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23910         doc/glibc-functions/strncasecmp_l.texi.
23911         * doc/posix-functions/strndup.texi: Renamed from
23912         doc/glibc-functions/strndup.texi.
23913         * doc/posix-functions/strnlen.texi: Renamed from
23914         doc/glibc-functions/strnlen.texi.
23915         * doc/posix-functions/strsignal.texi: Renamed from
23916         doc/glibc-functions/strsignal.texi.
23917         * doc/posix-functions/strxfrm_l.texi: Renamed from
23918         doc/glibc-functions/strxfrm_l.texi.
23919         * doc/posix-functions/timer_gettime.texi: Renamed from
23920         doc/glibc-functions/timer_gettime.texi.
23921         * doc/posix-functions/tolower_l.texi: Renamed from
23922         doc/glibc-functions/tolower_l.texi.
23923         * doc/posix-functions/toupper_l.texi: Renamed from
23924         doc/glibc-functions/toupper_l.texi.
23925         * doc/posix-functions/towctrans_l.texi: Renamed from
23926         doc/glibc-functions/towctrans_l.texi.
23927         * doc/posix-functions/towlower_l.texi: Renamed from
23928         doc/glibc-functions/towlower_l.texi.
23929         * doc/posix-functions/towupper_l.texi: Renamed from
23930         doc/glibc-functions/towupper_l.texi.
23931         * doc/posix-functions/uselocale.texi: Renamed from
23932         doc/glibc-functions/uselocale.texi.
23933         * doc/posix-functions/vdprintf.texi: Renamed from
23934         doc/glibc-functions/vdprintf.texi.
23935         * doc/posix-functions/wcpcpy.texi:
23936         Renamed from doc/glibc-functions/wcpcpy.texi.
23937         * doc/posix-functions/wcpncpy.texi: Renamed from
23938         doc/glibc-functions/wcpncpy.texi.
23939         * doc/posix-functions/wcscasecmp.texi: Renamed from
23940         doc/glibc-functions/wcscasecmp.texi.
23941         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
23942         doc/glibc-functions/wcscasecmp_l.texi.
23943         * doc/posix-functions/wcscoll_l.texi: Renamed from
23944         doc/glibc-functions/wcscoll_l.texi.
23945         * doc/posix-functions/wcsdup.texi: Renamed from
23946         doc/glibc-functions/wcsdup.texi.
23947         * doc/posix-functions/wcsncasecmp.texi: Renamed from
23948         doc/glibc-functions/wcsncasecmp.texi.
23949         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
23950         doc/glibc-functions/wcsncasecmp_l.texi.
23951         * doc/posix-functions/wcsnlen.texi: Renamed from
23952         doc/glibc-functions/wcsnlen.texi.
23953         * doc/posix-functions/wcsnrtombs.texi: Renamed from
23954         doc/glibc-functions/wcsnrtombs.texi.
23955         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
23956         doc/glibc-functions/wcsxfrm_l.texi.
23957         * doc/posix-functions/wctrans_l.texi: Renamed from
23958         doc/glibc-functions/wctrans_l.texi.
23959         * doc/posix-functions/wctype_l.texi: Renamed from
23960         doc/glibc-functions/wctype_l.texi.
23961         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23962         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
23963         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
23964         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
23965         these subsections.
23966         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
23967         Remove sections.
23968
23969 2008-12-14  Bruno Haible  <bruno@clisp.org>
23970
23971         Update doc for POSIX:2008.
23972         * doc/posix-functions/*.texi: Update URL of POSIX specification.
23973
23974 2008-12-14  Bruno Haible  <bruno@clisp.org>
23975
23976         Update doc for POSIX:2008.
23977         * doc/pastposix-functions/bcmp.texi: Renamed from
23978         doc/posix-functions/bcmp.texi.
23979         * doc/pastposix-functions/bcopy.texi: Renamed from
23980         doc/posix-functions/bcopy.texi.
23981         * doc/pastposix-functions/bsd_signal.texi: Renamed from
23982         doc/posix-functions/bsd_signal.texi.
23983         * doc/pastposix-functions/bzero.texi: Renamed from
23984         doc/posix-functions/bzero.texi.
23985         * doc/pastposix-functions/ecvt.texi: Renamed from
23986         doc/posix-functions/ecvt.texi.
23987         * doc/pastposix-functions/fcvt.texi: Renamed from
23988         doc/posix-functions/fcvt.texi.
23989         * doc/pastposix-functions/ftime.texi: Renamed from
23990         doc/posix-functions/ftime.texi.
23991         * doc/pastposix-functions/gcvt.texi: Renamed from
23992         doc/posix-functions/gcvt.texi.
23993         * doc/pastposix-functions/getcontext.texi: Renamed from
23994         doc/posix-functions/getcontext.texi.
23995         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
23996         doc/posix-functions/gethostbyaddr.texi.
23997         * doc/pastposix-functions/gethostbyname.texi: Renamed from
23998         doc/posix-functions/gethostbyname.texi.
23999         * doc/pastposix-functions/getwd.texi: Renamed from
24000         doc/posix-functions/getwd.texi.
24001         * doc/pastposix-functions/h_errno.texi: Renamed from
24002         doc/posix-functions/h_errno.texi.
24003         * doc/pastposix-functions/index.texi: Renamed from
24004         doc/posix-functions/index.texi.
24005         * doc/pastposix-functions/makecontext.texi: Renamed from
24006         doc/posix-functions/makecontext.texi.
24007         * doc/pastposix-functions/mktemp.texi: Renamed from
24008         doc/posix-functions/mktemp.texi.
24009         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24010         doc/posix-functions/pthread_attr_getstackaddr.texi.
24011         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24012         doc/posix-functions/pthread_attr_setstackaddr.texi.
24013         * doc/pastposix-functions/rindex.texi: Renamed from
24014         doc/posix-functions/rindex.texi.
24015         * doc/pastposix-functions/scalb.texi: Renamed from
24016         doc/posix-functions/scalb.texi.
24017         * doc/pastposix-functions/setcontext.texi: Renamed from
24018         doc/posix-functions/setcontext.texi.
24019         * doc/pastposix-functions/swapcontext.texi: Renamed from
24020         doc/posix-functions/swapcontext.texi.
24021         * doc/pastposix-functions/ualarm.texi: Renamed from
24022         doc/posix-functions/ualarm.texi.
24023         * doc/pastposix-functions/usleep.texi: Renamed from
24024         doc/posix-functions/usleep.texi.
24025         * doc/pastposix-functions/vfork.texi: Renamed from
24026         doc/posix-functions/vfork.texi.
24027         * doc/pastposix-functions/wcswcs.texi: Renamed from
24028         doc/posix-functions/wcswcs.texi.
24029         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24030         (Function Substitutes): Update.
24031
24032 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24033
24034         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24035         m4/strerror.m4.
24036
24037 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24038             Bruno Haible  <bruno@clisp.org>
24039
24040         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24041
24042 2008-12-13  Bruno Haible  <bruno@clisp.org>
24043
24044         * modules/strtoull (Depends-on): Remove unistd.
24045
24046 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24047
24048         * modules/strtoull (Depends-on): Add stdlib.
24049
24050 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24051
24052         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24053
24054 2008-12-10  Jim Meyering  <meyering@redhat.com>
24055
24056         gl_ASSERT: don't say assertions are disabled when they're not
24057         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24058         "checking whether to enable assertions... no", when they are in
24059         fact enabled.  This is solely a bug in the output of configure.
24060         In spite of saying "no", NDEBUG was not defined in that case.
24061         Also, as noted by Eric Blake, leave assertions enabled upon
24062         --enable-assert=INVALID.
24063
24064 2008-12-10  Bruno Haible  <bruno@clisp.org>
24065
24066         Change MODULES.html to refer to POSIX:2008 where possible.
24067         * MODULES.html.sh (POSIX2008_URL): New variable.
24068         (posix_headers): Remove sys/timeb, ucontext.
24069         (posix2001_headers): New variable.
24070         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24071         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24072         index, makecontext, mktemp, pthread_attr_getstackaddr,
24073         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24074         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24075         (posix2001_functions): New variable.
24076         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24077         otherwise.
24078
24079 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24080
24081         add missing include to parse-duration.c
24082         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24083         * modules/parse-duration (Depends-on): Add xalloc.
24084
24085         fix sed script reading maint.mk
24086         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24087         (syntax-check-rules): Use it.
24088
24089 2008-12-09  Bruno Haible  <bruno@clisp.org>
24090
24091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24092         MacOS X 10.4/PowerPC.
24093         Reported by Simon Josefsson.
24094
24095 2008-12-08  Jim Meyering  <meyering@redhat.com>
24096
24097         work around mingw's lack of some S_IF definitions
24098         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24099         Reported by Simon Josefsson.
24100
24101 2008-12-08  Bruno Haible  <bruno@clisp.org>
24102
24103         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24104         applied to variables. Needed on MacOS X 10.4/PowerPC.
24105         Reported by Simon Josefsson.
24106
24107 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24108         and Eric Blake  <ebb9@byu.net>
24109
24110         assert: honor --enable-assert
24111         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24112         order to honor --enable-assert, rather than treating it as a
24113         synonym for --disable-assert.
24114
24115 2008-12-08  Jim Meyering  <meyering@redhat.com>
24116
24117         * lib/posixtm.c: Remove now-useless declaration of mktime.
24118
24119         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24120
24121 2008-12-07  Bruno Haible  <bruno@clisp.org>
24122
24123         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24124         test_once): Mark functions as static.
24125         * tests/test-tls.c (test_tls): Likewise.
24126
24127 2008-12-07  Bruno Haible  <bruno@clisp.org>
24128
24129         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24130         iconv_register_autodetect.
24131
24132 2008-12-07  Jim Meyering  <meyering@redhat.com>
24133
24134         posixtm.c: avoid a warning
24135         * lib/posixtm.c (posixtime): Don't initialize tm0.
24136         It's no longer needed to placate gcc4's -Wuninitialized,
24137         and the attempt to placate would elicit a new warning.
24138
24139         unicodeio.c: mark unused parameters
24140         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24141         (fallback_failure_callback): Likewise.
24142
24143 2008-12-07  Bruno Haible  <bruno@clisp.org>
24144
24145         * gnulib-tool (func_create_testdir): When building the tests
24146         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24147         Reported by Simon Josefsson.
24148
24149 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24150
24151         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24152
24153 2008-12-06  Bruno Haible  <bruno@clisp.org>
24154
24155         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24156         Suggested by Eric Blake.
24157
24158 2008-12-06  Bruno Haible  <bruno@clisp.org>
24159
24160         Fix a c-stack test failure on MacOS X.
24161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24162         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24163         handler for SIGBUS as well.
24164         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24165         install a signal handler for SIGBUS as well.
24166         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24167
24168 2008-12-06  Bruno Haible  <bruno@clisp.org>
24169
24170         Advocacy documentation.
24171         * doc/gnulib-intro.texi (Benefits): New section.
24172         * doc/gnulib.texi: Update.
24173
24174 2008-12-06  Bruno Haible  <bruno@clisp.org>
24175
24176         Document the 'manywarnings' module.
24177         * doc/manywarnings.texi: New file.
24178         * doc/gnulib.texi: Include it.
24179
24180 2008-12-05  Eric Blake  <ebb9@byu.net>
24181
24182         tests: silence some gcc warnings
24183         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24184         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24185         type mismatches.
24186
24187 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24188             Bruno Haible  <bruno@clisp.org>
24189
24190         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24191
24192 2008-11-29  Jim Meyering  <meyering@redhat.com>
24193
24194         unicodeio.c: mark unused parameters
24195         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24196         (fallback_failure_callback): Likewise.
24197
24198         fts: fix a thinko
24199         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24200         (set_stat_type): Return S_IF*-valued "type" directly.
24201         Prompted by James Youngman's spotting a related bug.
24202         Confirmed by further testing through find.
24203
24204         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24205         * lib/fts.c (D_TYPE): Define.
24206         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24207         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24208         (s_ifmt_shift_bits): New function.
24209         (set_stat_type): New function.
24210         (fts_build): When not calling fts_stat, call set_stat_type
24211         to propagate dirent.d_type info to fts_read caller.
24212         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24213         fts_statp->st_mode type information may be valid.
24214
24215 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24216
24217         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24218         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24219         <sds@gnu.org>.
24220
24221 2008-11-20  Bruno Haible  <bruno@clisp.org>
24222
24223         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24224         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24225         INCLUDE_NEXT.
24226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24227         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24228         * modules/math (Makefile.am): Substitute
24229         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24231
24232 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24233             Bruno Haible  <bruno@clisp.org>
24234
24235         * lib/stdint.in.h: Define all type macros so that their expansion is
24236         a single typedef'ed token. Fixes a compilation failure in Boost which
24237         does "using ::int8_t;".
24238
24239 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24240
24241         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24242         gl_MANYWARN_ALL_GCC.
24243         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24244         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24245         * modules/manywarnings: New file.
24246         * MODULES.html.sh: Mention manywarnings module.
24247
24248 2008-11-18  Bruno Haible  <bruno@clisp.org>
24249
24250         * doc/gnulib-tool.texi (Unit tests): New section.
24251
24252 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24253
24254         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24255         paths like 'lib/po/foo.po'.
24256
24257 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24258
24259         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24260         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24261
24262 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24263
24264         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24265         parameter works.
24266
24267 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24268
24269         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24270
24271 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24272
24273         * modules/parse-duration-tests: New file.
24274         * tests/test-parse-duration.sh: New file.
24275         * tests/test-parse-duration.c: New file.
24276
24277         New module 'parse-duration'.
24278         * lib/parse-duration.h: New file.
24279         * lib/parse-duration.c: New file.
24280         * modules/parse-duration: New file.
24281
24282 2008-11-17  Bruno Haible  <bruno@clisp.org>
24283
24284         * tests/test-select-out.sh: Comment out the first pipe test.
24285         Reported by Simon Josefsson.
24286
24287 2008-11-17  Bruno Haible  <bruno@clisp.org>
24288
24289         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24290         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24291         gl_HOSTENT.
24292
24293 2008-11-17  Bruno Haible  <bruno@clisp.org>
24294
24295         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24296         -lnetwork and -lnet. Needed for Haiku and BeOS.
24297
24298 2008-11-16  Bruno Haible  <bruno@clisp.org>
24299
24300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24301
24302 2008-11-16  Bruno Haible  <bruno@clisp.org>
24303
24304         Avoid test failure on Haiku.
24305         * tests/test-fsync.c: Include <errno.h>.
24306         (main): Don't require that fsync (0) fails.
24307
24308 2008-11-15  Bruno Haible  <bruno@clisp.org>
24309
24310         New module 'hostent'.
24311         * modules/hostent: New file.
24312         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24313
24314 2008-11-15  Bruno Haible  <bruno@clisp.org>
24315
24316         New module 'servent'.
24317         * modules/servent: New file.
24318         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24319
24320 2008-11-15  Bruno Haible  <bruno@clisp.org>
24321
24322         Avoid generating same test program with two different rules.
24323         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24324         test-frexp to test-frexp-nolibm.
24325         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24326         test-frexpl to test-frexpl-nolibm.
24327
24328 2008-11-15  Bruno Haible  <bruno@clisp.org>
24329
24330         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24331         $(FREXPL_LIBM).
24332
24333 2008-11-15  Bruno Haible  <bruno@clisp.org>
24334
24335         * lib/netdb.in.h: Activate the definitions also when the system's
24336         <netdb.h> has 'struct addrinfo'.
24337         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24338         EAI_OVERFLOW or AI_NUMERICSERV.
24339         * doc/posix-headers/netdb.texi: Document the problem.
24340
24341 2008-11-15  Bruno Haible  <bruno@clisp.org>
24342
24343         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24344
24345         Make the 'sched' module work on platforms where <sched.h> exists but
24346         is incomplete (such as Haiku).
24347         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24348         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24349         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24350         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24351         HAVE_STRUCT_SCHED_PARAM.
24352         * modules/sched (Depends-on): Add include_next.
24353         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24354         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24355         * doc/posix-headers/sched.texi: Document the issue.
24356
24357 2008-11-13  Jim Meyering  <meyering@redhat.com>
24358
24359         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24360         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24361         test would fail due to the difference in the Report bugs to ...
24362         line.  The expected address is empty, "<>", while the actual
24363         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24364
24365 2008-11-12  Bruno Haible  <bruno@clisp.org>
24366
24367         lstat: don't compile lstat.c on systems lacking lstat
24368         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24369         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24370         Reported by Daniel P. Berrange via Jim Meyering.
24371
24372 2008-11-12  Jim Meyering  <meyering@redhat.com>
24373
24374         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24375
24376 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24377
24378         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24379         instead.
24380
24381 2008-11-12  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/unicodeio.c: Include unistr.h.
24384         (utf8_wctomb): Remove function.
24385         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24386
24387 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24388
24389         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24390         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24391         <bruno@clisp.org>.
24392         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24393
24394 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24395
24396         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24397         * doc/gnulib.texi: Add section for warnings.
24398
24399 2008-11-11  Bruno Haible  <bruno@clisp.org>
24400
24401         * lib/sockets.h: Add a comment.
24402
24403 2008-11-11  Karl Berry  <karl@gnu.org>
24404
24405         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24406
24407 2008-11-11  Eric Blake  <ebb9@byu.net>
24408
24409         fdl.texi: avoid git symlinks
24410         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24411
24412 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24413
24414         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24415
24416 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24417
24418         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24419         (gl_WARN_ADD): Substitute $2 if literal.
24420
24421 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24422
24423         * m4/warning.m4: Remove.
24424
24425 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24426
24427         * m4/warnings.m4: Almost complete rewrite. :-)
24428
24429 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24430
24431         * modules/warnings: New module.
24432         * m4/warnings.m4: New file.
24433         * MODULES.html.sh: Mention warnings module.
24434         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24435         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24436
24437 2008-11-10  Eric Blake  <ebb9@byu.net>
24438
24439         fdl.texi: make a symlink to the latest version
24440         * doc/standards.texi: Revert today's earlier change.
24441         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24442         * doc/fdl.texi: ...and replace this with a symlink to the newer
24443         fdl-1.3.texi.
24444
24445 2008-11-10  Bruno Haible  <bruno@clisp.org>
24446
24447         * tests/test-select-fd.c (main): Accept the result file name as fourth
24448         argument.
24449         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24450         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24451
24452 2008-11-10  Bruno Haible  <bruno@clisp.org>
24453
24454         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24455         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24456         as autoconf-substituted macros.
24457         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24459         gl_NETDB_H_DEFAULTS. Set these variables.
24460         * modules/netdb (Makefile.am): Substitute these variables.
24461
24462 2008-11-10  Eric Blake  <ebb9@byu.net>
24463
24464         standards.texi: include correct file for FDL 1.3
24465         * doc/standards.texi (GNU Free Documentation License): Change
24466         include file to pull in FDL 1.3, not 1.2.
24467
24468         fdl.texi: revert accidental change to license
24469         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24470
24471 2008-11-10  Bruno Haible  <bruno@clisp.org>
24472
24473         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24474         cross-compiling guesses also when the native compile gives no result.
24475
24476 2008-11-10  Bruno Haible  <bruno@clisp.org>
24477
24478         * lib/spawni.c (__spawni): Force variable into the stack.
24479
24480 2008-11-10  Bruno Haible  <bruno@clisp.org>
24481
24482         Add support for Haiku.
24483         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24484         glibc and BeOS, but also on Haiku.
24485         * lib/fpurge.c (fpurge): Likewise.
24486         * lib/freadable.c (freadable): Likewise.
24487         * lib/freadahead.c (freadahead): Likewise.
24488         * lib/freading.c (freading): Likewise.
24489         * lib/freadptr.c (freadptr): Likewise.
24490         * lib/freadseek.c (freadptrinc): Likewise.
24491         * lib/fseeko.c (rpl_fseeko): Likewise.
24492         * lib/fseterr.c (fseterr): Likewise.
24493         * lib/fwritable.c (fwritable): Likewise.
24494         * lib/fwriting.c (fwriting): Likewise.
24495         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24496
24497 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24498
24499         * lib/config.charset: Treat Haiku like BeOS.
24500
24501 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24502
24503         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24504         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24505
24506 2008-11-08  Bruno Haible  <bruno@clisp.org>
24507
24508         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24509         AC_CACHE_CHECK.
24510
24511 2008-11-08  Bruno Haible  <bruno@clisp.org>
24512
24513         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24514
24515 2008-11-08  Bruno Haible  <bruno@clisp.org>
24516
24517         * tests/test-select-fd.c: New file.
24518         * tests/test-select-in.sh: New file.
24519         * tests/test-select-out.sh: New file.
24520         * tests/test-select-stdin.c: New file.
24521         * modules/select-tests (Files): Add the new files.
24522         (Depends-on): Add gettimeofday.
24523         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24524         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24525         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24526
24527 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24528             Bruno Haible  <bruno@clisp.org>
24529
24530         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24531
24532 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24533
24534         * build-aux/pmccabe2html: Added support for C++ source files.
24535
24536 2008-11-05  Ben Pfaff  <blp@gnu.org>
24537
24538         Fix lib/close.c build on Windows.
24539         * modules/close (Files): Add lib/w32sock.h.
24540
24541 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24542
24543         Accept Bison's NEWS format.
24544         * build-aux/announce-gen (print_news_deltas): Tweak
24545         $re_prefix.
24546
24547 2008-11-04  Bruno Haible  <bruno@clisp.org>
24548
24549         * modules/random_r (Maintainer): Add glibc.
24550
24551 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24552
24553         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24554         by karl@freefriends.org (Karl Berry).
24555         * doc/alloca.texi: Likewise.
24556         * doc/c-ctype.texi: Likewise.
24557         * doc/c-strcase.texi: Likewise.
24558         * doc/c-strcaseeq.texi: Likewise.
24559         * doc/c-strcasestr.texi: Likewise.
24560         * doc/c-strstr.texi: Likewise.
24561         * doc/c-strtod.texi: Likewise.
24562         * doc/c-strtold.texi: Likewise.
24563         * doc/ctime.texi: Likewise.
24564         * doc/error.texi: Likewise.
24565         * doc/fdl.texi: Likewise.
24566         * doc/gcd.texi: Likewise.
24567         * doc/getdate.texi: Likewise.
24568         * doc/gnulib-intro.texi: Likewise.
24569         * doc/gnulib-tool.texi: Likewise.
24570         * doc/gnulib.texi: Likewise.
24571         * doc/inet_ntoa.texi: Likewise.
24572         * doc/maintain.texi: Likewise.
24573         * doc/make-stds.texi: Likewise.
24574         * doc/quote.texi: Likewise.
24575         * doc/regexprops-generic.texi: Likewise.
24576         * doc/standards.texi: Likewise.
24577         * doc/verify.texi: Likewise.
24578         * doc/visibility.texi: Likewise.
24579         * doc/gnulib.texi (GNU Free Documentation License): Include
24580         fdl-1.3.texi instead of fdl.texi.
24581
24582 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24583
24584         * doc/fdl-1.3.texi: New file, from
24585         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24586         * modules/fdl-1.3: Add.
24587         * MODULES.html.sh: Add fdl-1.3.
24588
24589 2008-11-03  Bruno Haible  <bruno@clisp.org>
24590
24591         Make determination of absolute name of header file work with AIX xlc.
24592         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24593         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24594         preprocessing.
24595         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24596         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24597
24598 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24599
24600         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24601         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24602         <ludo@gnu.org>.
24603
24604 2008-11-02  Bruno Haible  <bruno@clisp.org>
24605
24606         Mark 'strpbrk' obsolete.
24607         * modules/strpbrk (Status, Notice): New sections.
24608         * modules/strtok_r (Depends-on): Add strpbrk.
24609
24610 2008-11-02  Bruno Haible  <bruno@clisp.org>
24611
24612         Mark 'strdup' obsolete.
24613         * modules/strdup (Status, Notice): New sections.
24614         * modules/findprog (Depends-on): Add strdup.
24615         * modules/getaddrinfo (Depends-on): Likewise.
24616         * modules/localename (Depends-on): Likewise.
24617         * modules/relocatable-lib (Depends-on): Likewise.
24618         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24619         * modules/relocatable-prog (Depends-on): Likewise.
24620         * modules/trim (Depends-on): Likewise.
24621         * modules/unictype/gen-ctype (Depends-on): Likewise.
24622         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24623
24624 2008-11-02  Bruno Haible  <bruno@clisp.org>
24625
24626         Mark 'strcspn' obsolete.
24627         * modules/strcspn (Status, Notice): New sections.
24628
24629 2008-11-02  Bruno Haible  <bruno@clisp.org>
24630
24631         Mark 'rmdir' obsolete.
24632         * modules/rmdir (Status, Notice): New sections.
24633         * modules/clean-temp (Depends-on): Add rmdir.
24634         * modules/openat (Depends-on): Likewise.
24635
24636 2008-11-02  Bruno Haible  <bruno@clisp.org>
24637
24638         Mark 'raise' obsolete.
24639         * modules/raise (Status, Notice): New sections.
24640         (Include): Specify <signal.h>.
24641         * modules/stdio (Depends-on): Add raise.
24642         * modules/write (Depends-on): Likewise.
24643
24644 2008-11-02  Bruno Haible  <bruno@clisp.org>
24645
24646         Mark 'memset' obsolete.
24647         * modules/memset (Status, Notice): New sections.
24648
24649 2008-11-02  Bruno Haible  <bruno@clisp.org>
24650
24651         Mark 'memmove' obsolete.
24652         * modules/memmove (Status, Notice): New sections.
24653         * modules/argp (Depends-on): Add memmove.
24654         * modules/argz (Depends-on): Likewise.
24655         * modules/canonicalize (Depends-on): Likewise.
24656         * modules/canonicalize-lgpl (Depends-on): Likewise.
24657         * modules/fts (Depends-on): Likewise.
24658         * modules/getcwd (Depends-on): Likewise.
24659         * modules/human (Depends-on): Likewise.
24660         * modules/regex (Depends-on): Likewise.
24661         * modules/striconveh (Depends-on): Likewise.
24662         * modules/trim (Depends-on): Likewise.
24663         * modules/unistr/u8-move (Depends-on): Likewise.
24664         * modules/unistr/u16-move (Depends-on): Likewise.
24665         * modules/unistr/u32-move (Depends-on): Likewise.
24666
24667 2008-11-02  Bruno Haible  <bruno@clisp.org>
24668
24669         Mark 'memcpy' obsolete.
24670         * modules/memcpy (Status, Notice): New sections.
24671
24672 2008-11-02  Bruno Haible  <bruno@clisp.org>
24673
24674         Mark 'memcmp' obsolete.
24675         * modules/memcmp (Status, Notice): New sections.
24676         * modules/argmatch (Depends-on): Add memchr.
24677         * modules/backupfile (Depends-on): Likewise.
24678         * modules/c-strcasestr (Depends-on): Likewise.
24679         * modules/crypto/des (Depends-on): Likewise.
24680         * modules/csharpcomp (Depends-on): Likewise.
24681         * modules/fnmatch (Depends-on): Likewise.
24682         * modules/git-merge-changelog (Depends-on): Likewise.
24683         * modules/isnand (Depends-on): Likewise.
24684         * modules/isnand-nolibm (Depends-on): Likewise.
24685         * modules/isnanf (Depends-on): Likewise.
24686         * modules/isnanf-nolibm (Depends-on): Likewise.
24687         * modules/isnanl (Depends-on): Likewise.
24688         * modules/isnanl-nolibm (Depends-on): Likewise.
24689         * modules/mbchar (Depends-on): Likewise.
24690         * modules/memcoll (Depends-on): Likewise.
24691         * modules/quotearg (Depends-on): Likewise.
24692         * modules/regex (Depends-on): Likewise.
24693         * modules/relocatable-prog (Depends-on): Likewise.
24694         * modules/same (Depends-on): Likewise.
24695         * modules/signbit (Depends-on): Likewise.
24696         * modules/strcasestr-simple (Depends-on): Likewise.
24697         * modules/unictype/gen-ctype (Depends-on): Likewise.
24698         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24699         * modules/uniname/uniname (Depends-on): Likewise.
24700         * modules/unistr/u8-cmp (Depends-on): Likewise.
24701
24702 2008-11-02  Bruno Haible  <bruno@clisp.org>
24703
24704         Mark 'memchr' obsolete.
24705         * modules/memchr (Status, Notice): New sections.
24706         * modules/argp (Depends-on): Add memchr.
24707         * modules/base64 (Depends-on): Likewise.
24708         * modules/c-strcasestr (Depends-on): Likewise.
24709         * modules/chdir-long (Depends-on): Likewise.
24710         * modules/fnmatch (Depends-on): Likewise.
24711         * modules/getsubopt (Depends-on): Likewise.
24712         * modules/git-merge-changelog (Depends-on): Likewise.
24713         * modules/glob (Depends-on): Likewise.
24714         * modules/strcasestr-simple (Depends-on): Likewise.
24715         * modules/strnlen (Depends-on): Likewise.
24716
24717 2008-11-02  Bruno Haible  <bruno@clisp.org>
24718
24719         Mark 'atexit' obsolete.
24720         * modules/atexit (Status, Notice): New sections.
24721         * modules/chdir-long (Depends-on): Add atexit.
24722         * modules/wait-process (Depends-on): Likewise.
24723
24724 2008-11-02  Bruno Haible  <bruno@clisp.org>
24725
24726         * gnulib-tool: New option --with-obsolete.
24727         (func_usage): Document it.
24728         (func_modules_transitive_closure): Drop obsolete dependencies if
24729         incobsolete is not true.
24730         (func_import): Read and save the incobsolete variable to the cache.
24731
24732 2008-11-02  Bruno Haible  <bruno@clisp.org>
24733
24734         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24735         * gnulib-tool: New option --extract-status.
24736         (func_usage): Document it.
24737         (sed_extract_prog): Recognize it.
24738         (func_get_status): New function.
24739
24740 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24741
24742         * modules/sockets (License): Change from LGPL to LGPLv2+.
24743
24744 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24745
24746         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24747
24748 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24749
24750         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24751         Mention times and sys_times.
24752         * modules/sys_times, modules/sys_times-tests: New modules.
24753         * modules/times, modules/times-tests: Likewise
24754         * m4/sys_times_h.m4: New file.
24755         * lib/sys_times.in.h: Likewise
24756         * lib/times.c: Likewise.
24757         * tests/test-sys_times.c: Likewise.
24758         * tests/test-times.c: Likewise.
24759         * doc/posix-headers/sys_times.texi: Update.
24760         * doc/posix-functions/times.texi: Update.
24761
24762 2008-10-28  Jim Meyering  <meyering@redhat.com>
24763
24764         * modules/tempname (Depends-on): Add lstat.
24765
24766         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24767
24768 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24769
24770         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24771         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24772         using idiom used elsewhere in gnulib.
24773
24774 2008-10-27  Jim Meyering  <meyering@redhat.com>
24775
24776         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24777
24778 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24779
24780         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24781         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24782         programs.
24783         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24784
24785 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24786
24787         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24788
24789 2008-10-27  Bruno Haible  <bruno@clisp.org>
24790
24791         * tests/test-lstat.c: Include <stdio.h>.
24792
24793 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24794
24795         * modules/lstat-tests: New module.
24796         * tests/test-lstat.c: New file.
24797
24798 2008-10-26  Jim Meyering  <meyering@redhat.com>
24799
24800         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24801
24802 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24806         * modules/configmake (Include): Add a note that the include must come
24807         after all system headers.
24808         * lib/javaversion.c: Include configmake.h after all other includes.
24809
24810 2008-10-26  Bruno Haible  <bruno@clisp.org>
24811
24812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24813         HAVE_STRUCT_RANDOM_DATA to 1.
24814         (gl_STDLIB_H): Simplify.
24815
24816 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24817
24818         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24819         substitute HAVE_STRUCT_RANDOM_DATA.
24820         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24821         random_data.
24822         * modules/stdlib (Makefile.am): Substitute
24823         HAVE_STRUCT_RANDOM_DATA.
24824
24825 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24826
24827         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24828         * doc/gnulib-intro.texi (Copyright): Likewise.
24829
24830 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24831
24832         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24833         findings.
24834
24835 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24836             Bruno Haible  <bruno@clisp.org>
24837
24838         * lib/unistd.in.h: Include <winsock2.h>.
24839         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24840         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24841         Provide dummy declarations.
24842         (gethostname): Override.
24843         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24844         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24845         gl_PREREQ_SYS_H_WINSOCK2.
24846         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24847         * doc/posix-functions/gethostname.texi: More details.
24848
24849 2008-10-25  Bruno Haible  <bruno@clisp.org>
24850
24851         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24852         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24853         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24854
24855         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24856         here ...
24857         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24859         gl_UNISTD_H_DEFAULTS.
24860
24861 2008-10-25  Eric Blake  <ebb9@byu.net>
24862
24863         signbit: avoid spurious compiler failure
24864         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24865         declarations inside function.
24866
24867 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24868             Bruno Haible  <bruno@clisp.org>
24869
24870         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24871         * modules/random_r (Depends-on): Add stdint.
24872
24873 2008-10-24  Bruno Haible  <bruno@clisp.org>
24874
24875         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24876         Eggert.
24877         * modules/strerror (License): Likewise.
24878
24879 2008-10-24  Jim Meyering  <meyering@redhat.com>
24880
24881         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24882         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24883
24884 2008-10-24  Eric Blake  <ebb9@byu.net>
24885
24886         getgroups: fix compilation when getgroups is available
24887         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24888         but with <config.h> override of getgroups disabled.
24889
24890 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24891
24892         * doc/gnulib.texi (Header files): Add note about C++ problems.
24893         Explained by Bruno Haible <bruno@clisp.org>.
24894
24895 2008-10-23  Bruno Haible  <bruno@clisp.org>
24896
24897         Define a dummy SA_NODEFER macro on Interix.
24898         * lib/signal.in.h (SA_NODEFER): Define fallback.
24899         Reported by Aleksey Cheusov <cheusov@tut.by> via
24900         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24901
24902 2008-10-23  Bruno Haible  <bruno@clisp.org>
24903
24904         * modules/freadahead (License): Change to LGPLv2+.
24905         Suggested by Simon Josefsson.
24906
24907 2008-10-23  Jim Meyering  <meyering@redhat.com>
24908
24909         random_r: new module
24910         * modules/random_r: New file.
24911         * m4/random_r.m4: New file.
24912         * lib/random_r.c: New file, from glibc.
24913         * modules/random_r-tests: New file.
24914         * tests/test-random_r.c: New file.
24915         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24916          Declare.
24917         (RAND_MAX): Define.
24918         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24919         * modules/stdlib: Substitute them, too.
24920         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
24921         * doc/glibc-functions/initstate_r.texi: Mention the new module.
24922         * doc/glibc-functions/random_r.texi: Likewise.
24923         * doc/glibc-functions/setstate_r.texi: Likewise.
24924         * doc/glibc-functions/srandom_r.texi: Likewise.
24925         * config/srclist.txt: Mention it.
24926
24927 2008-10-23  David Lutterkort  <lutter@redhat.com>
24928
24929         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
24930         link requirement
24931
24932 2008-10-23  Jim Meyering  <meyering@redhat.com>
24933
24934         selinux-h: mark parameters of stub functions as intentionally unused
24935         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
24936         * lib/se-context.in.h: Likewise.
24937
24938 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24939
24940         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
24941
24942 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24943
24944         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
24945
24946 2008-10-22  Eric Blake  <ebb9@byu.net>
24947
24948         glthread/thread: avoid compiler warning
24949         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
24950         Add unreachable abort to silence compiler.
24951
24952 2008-10-22  Eric Blake  <ebb9@byu.net>
24953
24954         netdb: also supply struct addrinfo for cygwin 1.5.x
24955         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
24956         older cygwin.
24957         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
24958         cygwin.
24959         * doc/posix-headers/netdb.texi (netdb.h): Document this.
24960
24961 2008-10-22  Bruno Haible  <bruno@clisp.org>
24962
24963         * users.txt: Update entry about pspp.
24964
24965 2008-10-21  Bruno Haible  <bruno@clisp.org>
24966
24967         Simplification.
24968         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
24969         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
24970
24971         Simplification.
24972         * lib/ioctl.c (ioctl): Don't undefine.
24973         * lib/socket.c (socket): Don't undefine.
24974
24975         Remove unused module indicator macros.
24976         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
24977         GNULIB_$1 as a C macro.
24978
24979         * doc/posix-functions/close.texi: Undo last change.
24980         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
24981         Windows platforms.
24982
24983 2008-10-21  Bruno Haible  <bruno@clisp.org>
24984
24985         Add gethostname() declaration to <unistd.h>.
24986         * lib/unistd.in.h (gethostname): New declaration.
24987         * lib/gethostname.c: Include <unistd.h>.
24988         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
24989         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
24990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
24991         and HAVE_GETHOSTNAME.
24992         * modules/gethostname (Depends-on): Add unistd.
24993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24994         (Include): Specify <unistd.h>.
24995         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
24996         HAVE_GETHOSTNAME.
24997         * tests/test-gethostname.c: Include <unistd.h> first.
24998
24999 2008-10-21  Bruno Haible  <bruno@clisp.org>
25000
25001         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25002         * modules/select-tests (Depends-on): Likewise.
25003         Reported by Simon Josefsson.
25004
25005 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25006
25007         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25008         * lib/accept.c: New file, based on winsock.c.
25009         * lib/bind.c: New file, based on winsock.c.
25010         * lib/connect.c: New file, based on winsock.c.
25011         * lib/getpeername.c: New file, based on winsock.c.
25012         * lib/getsockname.c: New file, based on winsock.c.
25013         * lib/getsockopt.c: New file, based on winsock.c.
25014         * lib/ioctl.c: New file, based on winsock.c.
25015         * lib/listen.c: New file, based on winsock.c.
25016         * lib/recv.c: New file, based on winsock.c.
25017         * lib/recvfrom.c: New file, based on winsock.c.
25018         * lib/send.c: New file, based on winsock.c.
25019         * lib/sendto.c: New file, based on winsock.c.
25020         * lib/setsockopt.c: New file, based on winsock.c.
25021         * lib/shutdown.c: New file, based on winsock.c.
25022         * lib/socket.c: New file, based on winsock.c.
25023         * lib/w32sock.h: New file, based on winsock.c.
25024         * lib/winsock.c: Remove file.
25025         * modules/accept: Likewise.
25026         * modules/bind: Likewise.
25027         * modules/connect: Likewise.
25028         * modules/getpeername: Likewise.
25029         * modules/getsockname: Likewise.
25030         * modules/getsockopt: Likewise.
25031         * modules/ioctl: Likewise.
25032         * modules/listen: Likewise.
25033         * modules/recv: Likewise.
25034         * modules/recvfrom: Likewise.
25035         * modules/send: Likewise.
25036         * modules/sendto: Likewise.
25037         * modules/setsockopt: Likewise.
25038         * modules/shutdown: Likewise.
25039         * modules/socket: Use socket.c instead of winsock.c.
25040         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25041         * doc/posix-functions/accept.texi: Doc fix.
25042         * doc/posix-functions/bind.texi: Doc fix.
25043         * doc/posix-functions/close.texi: Doc fix.
25044         * doc/posix-functions/connect.texi: Doc fix.
25045         * doc/posix-functions/getpeername.texi: Doc fix.
25046         * doc/posix-functions/getsockname.texi: Doc fix.
25047         * doc/posix-functions/getsockopt.texi: Doc fix.
25048         * doc/posix-functions/ioctl.texi: Doc fix.
25049         * doc/posix-functions/listen.texi: Doc fix.
25050         * doc/posix-functions/recv.texi: Doc fix.
25051         * doc/posix-functions/recvfrom.texi: Doc fix.
25052         * doc/posix-functions/send.texi: Doc fix.
25053         * doc/posix-functions/sendto.texi: Doc fix.
25054         * doc/posix-functions/setsockopt.texi: Doc fix.
25055         * doc/posix-functions/shutdown.texi: Doc fix.
25056         * doc/posix-functions/socket.texi: Doc fix.
25057
25058 2008-10-20  Bruno Haible  <bruno@clisp.org>
25059
25060         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25061         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25062         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25063         as an alias for SIGABRT.
25064         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25065         (sigaction): Map it to SIGABRT.
25066         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25067
25068 2008-10-20  Bruno Haible  <bruno@clisp.org>
25069
25070         * lib/fts.c: Don't include lstat.h.
25071         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25072
25073         Move the lstat() declaration to <sys/stat.h>.
25074         * lib/lstat.h: Remove file.
25075         * lib/sys_stat.in.h: Add special invocation convention.
25076         (lstat): New declaration.
25077         * lib/lstat.c (orig_lstat): New function.
25078         (rpl_lstat): Use orig_lstat instead of lstat.
25079         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25080         AC_C_INLINE. Set REPLACE_LSTAT.
25081         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25082         and REPLACE_LSTAT.
25083         * modules/lstat (Files): Remove lib/lstat.h.
25084         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25085         (Include): Specify <sys/stat.h> instead of lstat.h.
25086         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25087         REPLACE_LSTAT.
25088         * NEWS: Mention the change.
25089
25090 2008-10-20  Bruno Haible  <bruno@clisp.org>
25091
25092         * modules/posix_spawn-tests: New file.
25093         * tests/test-posix_spawn3.c: New file.
25094
25095 2008-10-20  Bruno Haible  <bruno@clisp.org>
25096
25097         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25098         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25099         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25100         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25101         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25102
25103 2008-10-20  Bruno Haible  <bruno@clisp.org>
25104
25105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25106         of posix_spawn on AIX 5.3.
25107
25108 2008-10-20  Bruno Haible  <bruno@clisp.org>
25109
25110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25111
25112 2008-10-20  Bruno Haible  <bruno@clisp.org>
25113
25114         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25115         of AC_LANG_PROGRAM.
25116
25117 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25118
25119         * lib/netdb.in.h: Don't define GNU specific constants until they
25120         are supported or needed.  Reported by Bruno Haible
25121         <bruno@clisp.org>.
25122
25123 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25124
25125         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25126
25127 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25128
25129         * lib/getaddrinfo.h: Remove file.
25130         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25131         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25132         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25133         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25134         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25135         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25136         * tests/test-getaddrinfo.c: Likewise.
25137         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25138         * NEWS: Mention change.
25139
25140 2008-10-19  Bruno Haible  <bruno@clisp.org>
25141
25142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25143
25144 2008-10-19  Bruno Haible  <bruno@clisp.org>
25145
25146         * lib/wait-process.c: Include simply <sys/wait.h>.
25147         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25148         WIFSTOPPED): Remove fallback definitions.
25149         * modules/wait-process (Depends-on): Add sys_wait.
25150
25151         New module 'sys_wait'.
25152         * modules/sys_wait: New file.
25153         * lib/sys_wait.in.h: New file, partially copied from
25154         lib/wait-process.c.
25155         * m4/sys_wait_h.m4: New file.
25156         * doc/posix-headers/sys_wait.texi: Mention the new module.
25157
25158 2008-10-19  Bruno Haible  <bruno@clisp.org>
25159
25160         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25161
25162 2008-10-19  Bruno Haible  <bruno@clisp.org>
25163
25164         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25165         * lib/wait-process.c (WAIT_T): Remove type.
25166         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25167         (wait_subprocess): Update.
25168
25169 2008-10-19  Bruno Haible  <bruno@clisp.org>
25170
25171         New module 'atoll'.
25172         * modules/atoll: New file.
25173         * lib/stdlib.in.h (atoll): New declaration.
25174         * lib/atoll.c: New file, from glibc with modifications.
25175         * m4/atoll.m4: New file.
25176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25177         HAVE_ATOLL.
25178         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25179         * doc/posix-functions/atoll.texi: Mention the new module.
25180
25181 2008-10-19  Bruno Haible  <bruno@clisp.org>
25182
25183         Add strtoull() declaration to <stdlib.h>.
25184         * lib/stdlib.in.h (strtoull): New declaration.
25185         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25186         Set HAVE_STRTOULL.
25187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25188         HAVE_STRTOULL.
25189         * modules/strtoull (Depends-on): Add stdlib.
25190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25191         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25192         HAVE_STRTOULL.
25193
25194 2008-10-19  Bruno Haible  <bruno@clisp.org>
25195
25196         Add strtoll() declaration to <stdlib.h>.
25197         * lib/stdlib.in.h (strtoll): New declaration.
25198         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25199         Set HAVE_STRTOLL.
25200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25201         HAVE_STRTOLL.
25202         * modules/strtoll (Depends-on): Add stdlib.
25203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25204         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25205
25206 2008-10-19  Bruno Haible  <bruno@clisp.org>
25207
25208         * modules/bcopy (Depends-on): Add strings.
25209         (Include): Specify <strings.h>.
25210
25211 2008-10-19  Bruno Haible  <bruno@clisp.org>
25212
25213         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25214
25215 2008-10-19  Bruno Haible  <bruno@clisp.org>
25216
25217         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25218         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25219         mingw.
25220
25221 2008-10-19  Bruno Haible  <bruno@clisp.org>
25222
25223         * lib/atanl.c: Don't include isnanl.h.
25224         * lib/cosl.c: Likewise.
25225         * lib/ldexpl.c: Likewise.
25226         * lib/logl.c: Likewise.
25227         * lib/sinl.c: Likewise.
25228         * lib/sqrtl.c: Likewise.
25229         * lib/tanl.c: Likewise.
25230
25231         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25232         * lib/isnanf.h: Remove file.
25233         * lib/isnand.h: Remove file.
25234         * lib/isnanl.h: Remove file.
25235         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25236         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25237         macros.
25238         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25239         HAVE_ISNANF, don't define it as a C macro.
25240         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25241         HAVE_ISNAND, don't define it as a C macro.
25242         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25243         HAVE_ISNANL, don't define it as a C macro.
25244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25245         HAVE_ISNAN[FDL].
25246         * modules/isnanf (Files): Remove lib/isnanf.h.
25247         (Depends-on): Add math.
25248         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25249         (Include): Specify <math.h> instead of isnanf.h.
25250         * modules/isnand (Files): Remove lib/isnand.h.
25251         (Depends-on): Add math.
25252         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25253         (Include): Specify <math.h> instead of isnand.h.
25254         * modules/isnanl (Files): Remove lib/isnanl.h.
25255         (Depends-on): Add math.
25256         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25257         (Include): Specify <math.h> instead of isnanl.h.
25258         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25259         HAVE_ISNAN[FDL].
25260         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25261         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25262         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25263         * NEWS: Mention the change.
25264
25265 2008-10-18  Bruno Haible  <bruno@clisp.org>
25266
25267         Add getusershell(), setusershell(), endusershell() declarations to
25268         <unistd.h>.
25269         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25270         declarations.
25271         * lib/getusershell.c: Include unistd.h.
25272         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25273         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25274         HAVE_GETUSERSHELL.
25275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25276         and HAVE_GETUSERSHELL.
25277         * modules/getusershell (Depends-on): Add unistd, extensions.
25278         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25279         (Include): Specify <unistd.h>.
25280         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25281         HAVE_GETUSERSHELL.
25282
25283 2008-10-18  Bruno Haible  <bruno@clisp.org>
25284
25285         Add a getloadavg() declaration to <stdlib.h>.
25286         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25287         getloadavg declaration.
25288         (getloadavg): New declaration.
25289         * lib/getloadavg.c: Include <stdlib.h> first.
25290         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25291         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25292         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25294         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25295         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25297         (Include): Specify <stdlib.h>.
25298         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25299         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25300
25301 2008-10-18  Bruno Haible  <bruno@clisp.org>
25302
25303         * lib/dirchownmod.c: Don't include lchmod.h.
25304
25305         Move the lchmod() declaration to <sys/stat.h>.
25306         * lib/lchmod.h: Remove file.
25307         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25308         (lchmod): New declaration, moved here from lib/lchown.h.
25309         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25310         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25312         and HAVE_LCHMOD.
25313         * modules/lchmod (Files): Remove lib/lchmod.h.
25314         (Depends-on): Add sys_stat, extensions.
25315         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25316         (Include): Specify <sys/stat.h> instead of lchmod.h.
25317         * modules/sys_stat (Depends-on): Add link-warning.
25318         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25319         definition of GL_LINK_WARNING.
25320         * NEWS: Mention the change.
25321
25322 2008-10-18  Bruno Haible  <bruno@clisp.org>
25323
25324         * lib/fchdir.c: Don't include dirfd.h.
25325         * lib/fts.c: Likewise.
25326         * lib/getcwd.c: Likewise.
25327         * lib/glob.c: Likewise.
25328
25329         Move the dirfd() declaration to <dirent.h>.
25330         * lib/dirfd.h: Remove file.
25331         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25332         (dirfd): New declaration.
25333         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25334         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25335         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25336         HAVE_DECL_DIRFD.
25337         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25338         HAVE_DECL_DIRFD.
25339         * modules/dirfd (Files): Remove lib/dirfd.h.
25340         (Depends-on): Add dirent, extensions.
25341         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25342         (Include): Specify <dirent.h> instead of dirfd.h.
25343         * modules/dirent (Depends-on): Add link-warning.
25344         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25345         definition of GL_LINK_WARNING.
25346         * NEWS: Mention the change.
25347
25348 2008-10-18  Bruno Haible  <bruno@clisp.org>
25349
25350         Move the euidaccess() declaration to <unistd.h>.
25351         * lib/euidaccess.h: Remove file.
25352         * lib/unistd.in.h (euidaccess): New declaration.
25353         * lib/euidaccess.c: Don't include euidaccess.h.
25354         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25355         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25357         and HAVE_EUIDACCESS.
25358         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25359         (Depends-on): Add unistd.
25360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25361         (Include): Specify <unistd.h> instead of euidaccess.h.
25362         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25363         HAVE_EUIDACCESS.
25364         * NEWS: Mention the change.
25365
25366 2008-10-18  Bruno Haible  <bruno@clisp.org>
25367
25368         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25369
25370         Move the getdomainname() declaration to <unistd.h>.
25371         * lib/getdomainname.h: Remove file.
25372         * lib/unistd.in.h (getdomainname): New declaration.
25373         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25374         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25375         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25376         HAVE_GETDOMAINNAME.
25377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25378         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25379         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25380         (Depends-on): Add unistd, extensions.
25381         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25382         (Includes): Specify <unistd.h> instead of getdomainname.h.
25383         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25384         HAVE_GETDOMAINNAME.
25385         * NEWS: Mention the change.
25386
25387 2008-10-18  Bruno Haible  <bruno@clisp.org>
25388
25389         * modules/dirent: New file.
25390         * m4/dirent_h.m4: New file.
25391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25392         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25393         * modules/fchdir (Files): Remove lib/dirent.in.h.
25394         (Depends-on): Add dirent.
25395         (Makefile.am): Move rules to modules/dirent.
25396         * doc/posix-headers/dirent.texi: Mention the new module.
25397
25398 2008-10-18  Bruno Haible  <bruno@clisp.org>
25399
25400         Avoid -Wunused-parameter warnings in public gnulib header files.
25401         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25402         macro.
25403         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25404
25405 2008-10-18  Bruno Haible  <bruno@clisp.org>
25406
25407         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25408         * doc/glibc-functions/error.texi: Mention the module 'error'.
25409         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25410         * doc/glibc-functions/getdomainname.texi: Mention the module
25411         'getdomainname'.
25412         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25413         * doc/glibc-functions/getpagesize.texi: Mention the module
25414         'getpagesize'.
25415         * doc/glibc-functions/getusershell.texi: Mention the module
25416         'getusershell'.
25417         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25418         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25419         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25420         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25421         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25422         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25423         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25424         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25425         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25426         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25427         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25428         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25429         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25430         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25431
25432 2008-10-17  Bruno Haible  <bruno@clisp.org>
25433
25434         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25435         HP-UX and IRIX, use -0.0L.
25436         * tests/test-ceill.c (minus_zero): Likewise.
25437         * tests/test-floorl.c (minus_zero): Likewise.
25438         * tests/test-frexpl.c (minus_zero): Likewise.
25439         * tests/test-isnan.c (minus_zerol): Likewise.
25440         * tests/test-isnanl.h (minus_zero): Likewise.
25441         * tests/test-ldexpl.c (minus_zero): Likewise.
25442         * tests/test-roundl.c (minus_zero): Likewise.
25443         * tests/test-signbit.c (minus_zerol): Likewise.
25444         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25445         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25446         * tests/test-truncl.c (minus_zero): Likewise.
25447         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25448         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25449         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25450         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25451
25452 2008-10-17  Bruno Haible  <bruno@clisp.org>
25453
25454         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25455         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25456         that it gets activated only for gcc >= 3.0.
25457         * lib/dirent.in.h: Likewise.
25458         * lib/errno.in.h: Likewise.
25459         * lib/fcntl.in.h: Likewise.
25460         * lib/float.in.h: Likewise.
25461         * lib/iconv.in.h: Likewise.
25462         * lib/inttypes.in.h: Likewise.
25463         * lib/locale.in.h: Likewise.
25464         * lib/math.in.h: Likewise.
25465         * lib/netdb.in.h: Likewise.
25466         * lib/netinet_in.in.h: Likewise.
25467         * lib/search.in.h: Likewise.
25468         * lib/signal.in.h: Likewise.
25469         * lib/spawn.in.h: Likewise.
25470         * lib/stdarg.in.h: Likewise.
25471         * lib/stdint.in.h: Likewise.
25472         * lib/stdio.in.h: Likewise.
25473         * lib/stdlib.in.h: Likewise.
25474         * lib/string.in.h: Likewise.
25475         * lib/strings.in.h: Likewise.
25476         * lib/sys_file.in.h: Likewise.
25477         * lib/sys_ioctl.in.h: Likewise.
25478         * lib/sys_select.in.h: Likewise.
25479         * lib/sys_socket.in.h: Likewise.
25480         * lib/sys_stat.in.h: Likewise.
25481         * lib/sys_time.in.h: Likewise.
25482         * lib/sysexits.in.h: Likewise.
25483         * lib/time.in.h: Likewise.
25484         * lib/unistd.in.h: Likewise.
25485         * lib/wchar.in.h: Likewise.
25486         * lib/wctype.in.h: Likewise.
25487         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25488
25489 2008-10-17  Jim Meyering  <meyering@redhat.com>
25490
25491         ignore-value: don't depend on inline module
25492         * modules/ignore-value (Depends-on): Remove 'inline'.
25493         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25494         Suggestion from Bruno Haible.
25495
25496 2008-10-17  Bruno Haible  <bruno@clisp.org>
25497
25498         New implementation of condition variables for Win32.
25499         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25500         (gl_linked_waitqueue_t): New type.
25501         (gl_cond_t): Use it.
25502         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25503         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25504         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25505         (glthread_cond_init_func, glthread_cond_wait_func,
25506         glthread_cond_timedwait_func, glthread_cond_signal_func,
25507         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25508         Reimplemented on the basis of gl_linked_waitqueue_t.
25509         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25510         gl_waitqueue_t.
25511         (gl_rwlock_t): Update.
25512         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25513
25514 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25515
25516         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25517         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25518
25519 2008-10-17  Jim Meyering  <meyering@redhat.com>
25520
25521         ignore-value: new module
25522         * modules/ignore-value: New file.
25523         * lib/ignore-value.h: New file.
25524         * MODULES.html.sh (Compiler warning management): New section,
25525         just for this module.  More to come.
25526
25527 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25528
25529         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25530         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25531         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25532
25533 2008-10-16  Jim Meyering  <meyering@redhat.com>
25534
25535         openat-die.c: avoid 'no previous prototype' warning
25536         * lib/openat-die.c: Include "openat.h".
25537         Reported by Reuben Thomas <rrt@sc3d.org>.
25538
25539 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25540
25541         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25542         * lib/netdb.in.h: Fix typo.
25543         Reported by Bruno Haible  <bruno@clisp.org>
25544
25545         * lib/netdb.in.h: Include sys/socket.h for platforms without
25546         netdb.h, to get structures like hostent on MinGW.
25547         * modules/netdb (Depends-on): Add sys_socket.
25548
25549 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25550
25551         * modules/netdb, modules/netdb-tests: New file.
25552         * m4/netdb_h.m4: New file.
25553         * lib/netdb.in.h: Add, currently just an empty file pending
25554         definitions.
25555         * tests/test-netdb.c: New file.
25556         * doc/posix-headers/netdb.texi: Mention that we replace it if
25557         needed.
25558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25559         netdb.
25560
25561 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25562
25563         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25564         with code.
25565
25566 2008-10-13  Bruno Haible  <bruno@clisp.org>
25567
25568         * lib/glthread/cond.c (glthread_cond_wait_func,
25569         glthread_cond_timedwait_func): Add a comment.
25570
25571 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25572
25573         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25574         * tests/test-select.c: Likewise,
25575
25576 2008-10-13  Bruno Haible  <bruno@clisp.org>
25577
25578         * lib/glthread/cond.c (glthread_cond_wait_func,
25579         glthread_cond_timedwait_func): Fix variable name.
25580         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25581
25582 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25583
25584         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25585         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25586         struct sockaddr.sa_len.
25587         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25588
25589 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25590
25591         * build-aux/pmccabe2html: Add css and css_url parameters.
25592
25593 2008-10-12  Bruno Haible  <bruno@clisp.org>
25594
25595         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25596         calling aclx_get.
25597         Reported by Rainer Tammer <tammer@tammer.net>.
25598
25599 2008-10-12  Bruno Haible  <bruno@clisp.org>
25600
25601         Use msvcrt aware primitives for creation/termination of Win32 threads.
25602         * lib/glthread/thread.c: Include <process.h>.
25603         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25604         (wrapper_func): Update signature.
25605         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25606
25607 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25608             Bruno Haible  <bruno@clisp.org>
25609
25610         Provide a Win32 implementation of the 'cond' module.
25611         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25612         * lib/glthread/cond.c (glthread_cond_init_func,
25613         glthread_cond_wait_func, glthread_cond_timedwait_func,
25614         glthread_cond_signal_func, glthread_cond_broadcast_func,
25615         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25616         * modules/cond (Dependencies): Add gettimeofday.
25617
25618 2008-10-11  Bruno Haible  <bruno@clisp.org>
25619
25620         Make sleep work on older versions of mingw.
25621         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25622         only whether it exists.
25623         * doc/posix-functions/sleep.texi: Mention the problem with older
25624         versions of mingw.
25625
25626 2008-10-11  Bruno Haible  <bruno@clisp.org>
25627
25628         New module 'shutdown'.
25629         * modules/shutdown: New file.
25630         * lib/sys_socket.in.h (shutdown): New declaration.
25631         * lib/winsock.c (shutdown): New function.
25632         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25633         GNULIB_SHUTDOWN.
25634         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25635         * doc/posix-functions/shutdown.texi: Document the new module.
25636
25637 2008-10-11  Jim Meyering  <meyering@redhat.com>
25638
25639         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25640
25641 2008-10-11  Bruno Haible  <bruno@clisp.org>
25642
25643         New module 'fclose'.
25644         * modules/fclose: New file.
25645         * lib/stdio.in.h (fclose): New declaration.
25646         * lib/fclose.c: New file.
25647         * m4/fclose.m4: New file.
25648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25649         REPLACE_FCLOSE.
25650         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25651         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25652         REPLACE_FCLOSE.
25653         * modules/close (Depends-on): fclose.
25654         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25655
25656 2008-10-11  Bruno Haible  <bruno@clisp.org>
25657
25658         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25659         set errno and don't call _close.
25660
25661 2008-10-10  Bruno Haible  <bruno@clisp.org>
25662
25663         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25664         ACL, not afterwards. Fixes test failure on Cygwin.
25665
25666 2008-10-09  Ben Pfaff  <blp@gnu.org>
25667
25668         * build-aux/announce-gen: Fix gnulib version related part of usage
25669         message.  Die with a useful error message if no tarballs are
25670         found.
25671
25672 2008-10-10  Jim Meyering  <meyering@redhat.com>
25673
25674         bootstrap: use git's --depth=N option only if it's supported
25675         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25676         recognize the --depth option.  Reported by Pádraig Brady.
25677
25678 2008-10-09  Bruno Haible  <bruno@clisp.org>
25679
25680         New module 'ioctl'.
25681         * modules/ioctl: New file.
25682         * lib/sys_socket.in.h (ioctl): Remove declaration.
25683         * lib/winsock.c: Include <sys/ioctl.h>.
25684         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25685         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25686         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25687         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25688         * doc/posix-functions/ioctl.texi: Mention the new module.
25689
25690 2008-10-09  Bruno Haible  <bruno@clisp.org>
25691
25692         New module 'sys_ioctl'.
25693         * lib/sys_ioctl.in.h: New file.
25694         * m4/sys_ioctl_h.m4: New file.
25695         * modules/sys_ioctl: New file.
25696         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25697
25698 2008-10-09  Bruno Haible  <bruno@clisp.org>
25699
25700         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25701         * lib/winsock.c: Include <stdarg.h>.
25702         (rpl_ioctl): Change to second argument 'int' and then varargs.
25703
25704 2008-10-09  Bruno Haible  <bruno@clisp.org>
25705
25706         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25707         when the sys_socket module is present and the system has <winsock2.h>.
25708
25709 2008-10-09  Bruno Haible  <bruno@clisp.org>
25710
25711         * doc/posix-functions/close.texi: Mention module 'close' instead of
25712         module 'sys_socket'.
25713
25714 2008-10-09  Bruno Haible  <bruno@clisp.org>
25715
25716         * doc/glibc-headers/sys_ioctl.texi: New file.
25717         * doc/gnulib.texi: Include it.
25718
25719 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25720             Bruno Haible  <bruno@clisp.org>
25721
25722         Combine the two replacements of 'close'.
25723         * lib/sys_socket.in.h (close): Define to a reminder to include
25724         <unistd.h>.
25725         (_gl_close_fd_maybe_socket): New declaration.
25726         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25727         * lib/winsock.c (close): Remove undefinition.
25728         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25729         needed for the gnulib module 'close'.
25730         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25731         define to an error symbol or to a warning, if suitable.
25732         * lib/close.c: Include <sys/socket.h>.
25733         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25734         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25735         UNISTD_H_HAVE_WINSOCK2_H.
25736         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25738         UNISTD_H_HAVE_WINSOCK2_H.
25739         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25740         (configure.ac): Set a module indicator.
25741         (Makefile.am): Substitute GNULIB_CLOSE.
25742         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25743         * modules/poll-tests (Depends-on): Add close.
25744         * modules/select-tests (Depends-on): Likewise.
25745
25746 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25747             Bruno Haible  <bruno@clisp.org>
25748
25749         New module 'close'.
25750         * modules/close: New file.
25751         * lib/unistd.in.h (close): Move declaration out of the
25752         FCHDIR_REPLACEMENT scope.
25753         (_gl_unregister_fd): New declaration.
25754         * lib/close.c: New file.
25755         * lib/fchdir.c (rpl_close): Remove function.
25756         * m4/close.m4: New file.
25757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25758         close.
25759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25760         REPLACE_CLOSE.
25761         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25762         REPLACE_CLOSE.
25763         * modules/fchdir (Depends-on): Add close.
25764
25765 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25766             Bruno Haible  <bruno@clisp.org>
25767
25768         * lib/fcntl.in.h (open): Simplify conditionals.
25769         (_gl_register_fd): New declaration.
25770         * lib/fchdir.c (rpl_open): Remove function.
25771         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25772         also.
25773         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25775         open.
25776
25777 2008-10-09  Jim Meyering  <meyering@redhat.com>
25778
25779         GNUmakefile: use the more name-space-friendly "_version"
25780         * top/GNUmakefile (_dummy): Update.
25781         (_version): Rename from "version".
25782
25783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25784             Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25787         rpl_close.
25788         (_gl_register_fd): New function, extracted from rpl_open.
25789         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25790         (rpl_open, rpl_opendir): Use _gl_register_fd.
25791
25792 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25793
25794         Fix organization of 'open' replacement.
25795         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25796         (gl_FUNC_OPEN): Use it.
25797         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25798
25799 2008-10-08  Bruno Haible  <bruno@clisp.org>
25800
25801         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25802
25803 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25804
25805         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25806         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25807         listen).
25808
25809 2008-10-08  Eric Blake  <ebb9@byu.net>
25810
25811         GNUmakefile: add 'make version' target
25812         * top/GNUmakefile (_curr-ver): Split version update rules...
25813         (version): ...into a target.
25814
25815 2008-10-07  Bruno Haible  <bruno@clisp.org>
25816
25817         Use a more portable replacement expression for -0.0L.
25818         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25819         instead of -0.0L. Fix m4 quotation.
25820
25821         * tests/test-signbit.c: Include <float.h>.
25822         (minus_zero): New variable.
25823         (test_signbitl): Use minus_zero instead of -zero.
25824         * modules/signbit-tests (Depends-on): Add float.
25825
25826         * tests/test-ceill.c: Include <float.h>.
25827         (zero): Remove variable.
25828         (minus_zero): New variable.
25829         (main): Use minus_zero instead of -zero.
25830         * modules/ceill-tests (Depends-on): Add float.
25831
25832         * tests/test-floorl.c: Include <float.h>.
25833         (zero): Remove variable.
25834         (minus_zero): New variable.
25835         (main): Use minus_zero instead of -zero.
25836         * modules/floorl-tests (Depends-on): Add float.
25837
25838         * tests/test-roundl.c: Include <float.h>.
25839         (zero): Remove variable.
25840         (minus_zero): New variable.
25841         (main): Use minus_zero instead of -zero.
25842         * modules/roundl-tests (Depends-on): Add float.
25843
25844         * tests/test-truncl.c: Include <float.h>.
25845         (zero): Remove variable.
25846         (minus_zero): New variable.
25847         (main): Use minus_zero instead of -zero.
25848         * modules/truncl-tests (Depends-on): Add float.
25849
25850         * tests/test-frexpl.c (zero): Remove variable.
25851         (minus_zero): New variable.
25852         (main): Use minus_zero instead of -zero.
25853         * modules/frexpl-tests (Depends-on): Add float.
25854
25855         * tests/test-isnan.c (zerol): Remove variable.
25856         (minus_zerol): New variable.
25857         (test_long_double): Use minus_zerol instead of -zerol.
25858         * modules/isnan-tests (Depends-on): Add float.
25859
25860         * tests/test-isnanl.h (zero): Remove variable.
25861         (minus_zero): New variable.
25862         (main): Use minus_zero instead of -zero.
25863         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25864         * modules/isnanl-tests (Depends-on): Add float.
25865
25866         * tests/test-ldexpl.c (zero): Remove variable.
25867         (minus_zero): New variable.
25868         (main): Use minus_zero instead of -zero.
25869         * modules/ldexpl-tests (Depends-on): Add float.
25870
25871         * tests/test-snprintf-posix.h (zerol): Remove variable.
25872         (minus_zerol): New variable.
25873         (test_function): Use minus_zerol instead of -zerol.
25874         * modules/snprintf-posix-tests (Depends-on): Add float.
25875         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25876
25877         * tests/test-sprintf-posix.h (zerol): Remove variable.
25878         (minus_zerol): New variable.
25879         (test_function): Use minus_zerol instead of -zerol.
25880         * modules/sprintf-posix-tests (Depends-on): Add float.
25881         * modules/vsprintf-posix-tests (Depends-on): Add float.
25882
25883         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25884         (minus_zerol): New variable.
25885         (test_function): Use minus_zerol instead of -zerol.
25886         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25887
25888         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25889         (minus_zerol): New variable.
25890         (test_function): Use minus_zerol instead of -zerol.
25891         * modules/vasprintf-posix-tests (Depends-on): Add float.
25892
25893 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25894
25895         * MODULES.html.sh (Support for building documentation): Mention
25896         pmccabe2html.  Sort entries.
25897
25898         Add pmccabe2html module, from gnupdf.
25899         * build-aux/pmccabe.css: New file.
25900         * build-aux/pmccabe2html: New file.
25901         * m4/pmccabe2html.m4: New file.
25902         * modules/pmccabe2html: New file.
25903
25904 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25905
25906         flock: new module
25907         * MODULES.html.sh: Add to list of modules.
25908         * lib/flock.c: flock implementation for Windows and Unix systems
25909         which have fcntl.
25910         * doc/glibc-functions/flock.texi: Update documentation.
25911         * lib/sys_file.in.h: <sys/file.h> header file.
25912         * m4/flock.m4: M4 macros.
25913         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25914         * modules/flock: flock module.
25915         * modules/flock-tests: flock tests module.
25916         * modules/sys_file: sys/file.h module.
25917         * tests/test-flock.c: test suite for flock.
25918
25919 2008-10-06  Jim Meyering  <meyering@redhat.com>
25920
25921         bootstrap: check for LT_INIT more portably still ;-)
25922         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
25923         Spotted by Bruno Haible.
25924
25925 2008-10-06  Eric Blake  <ebb9@byu.net>
25926
25927         test-signbit: avoid tripping Irix cc bug on -0.0L
25928         * tests/test-signbit.c (minus_zerol): Delete, and replace with
25929         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
25930         entire testsuite consistent and avoids an Irix 6.2 bug.
25931
25932 2008-10-05  Bruno Haible  <bruno@clisp.org>
25933             Jim Meyering  <jim@meyering.net>
25934
25935         Add an option for ignoring EPIPE during close_stdout.
25936         * lib/closeout.h: Include <stdbool.h>.
25937         (close_stdout_set_ignore_EPIPE): New declaration.
25938         * lib/closeout.c: Include <stdbool.h>.
25939         (ignore_EPIPE): New variable.
25940         (close_stdout_set_ignore_EPIPE): New function.
25941         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
25942         * lib/close-stream.c (close_stream): Mention the possible EPIPE
25943         failure.
25944         * modules/closeout (Depends-on): Add stdbool.
25945
25946 2008-10-05  Bruno Haible  <bruno@clisp.org>
25947
25948         * modules/accept: New file.
25949         * modules/bind: New file.
25950         * modules/connect: New file.
25951         * modules/getpeername: New file.
25952         * modules/getsockname: New file.
25953         * modules/getsockopt: New file.
25954         * modules/listen: New file.
25955         * modules/recv: New file.
25956         * modules/recvfrom: New file.
25957         * modules/send: New file.
25958         * modules/sendto: New file.
25959         * modules/setsockopt: New file.
25960         * modules/socket: New file.
25961         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
25962         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25963         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
25964         the particular module is requested. Add a link warning when the
25965         particular module is not requested.
25966         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
25967         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
25968         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
25969         the particular module is requested.
25970         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
25971         gl_SYS_SOCKET_H_DEFAULTS): New macros.
25972         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
25973         * modules/sys_socket (Depends-on): Add link-warning.
25974         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
25975         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
25976         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
25977         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
25978         GL_LINK_WARNING.
25979         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
25980         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
25981         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
25982         * doc/posix-functions/getpeername.texi: Mention the new module
25983         'getpeername'.
25984         * doc/posix-functions/getsockname.texi: Mention the new module
25985         'getsockname'.
25986         * doc/posix-functions/getsockopt.texi: Mention the new module
25987         'getsockopt'.
25988         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
25989         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
25990         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
25991         * doc/posix-functions/send.texi: Mention the new module 'send'.
25992         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
25993         * doc/posix-functions/setsockopt.texi: Mention the new module
25994         'setsockopt'.
25995         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
25996         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
25997         listen, connect, accept.
25998         * modules/select-tests (Depends-on): Likewise.
25999
26000 2008-10-05  Bruno Haible  <bruno@clisp.org>
26001
26002         * lib/winsock.c (strerror): Remove unused #undef.
26003         (rpl_close): Remove unused local variable.
26004
26005         * modules/sys_socket (Depends-on); Add errno.
26006
26007 2008-10-05  Bruno Haible  <bruno@clisp.org>
26008
26009         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26010         (select): Add a link warning when the 'select' module is not used.
26011         * modules/sys_select (Depends-on): Add link-warning.
26012         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26013         Suggested by Paolo Bonzini.
26014
26015 2008-10-05  Jim Meyering  <meyering@redhat.com>
26016
26017         bootstrap: check for LT_INIT more portably
26018         * build-aux/bootstrap: Avoid using grep -E, since it's not
26019         portable enough.  Suggestion from Bruno Haible.
26020
26021 2008-10-05  Bruno Haible  <bruno@clisp.org>
26022
26023         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26024         as being fixed by gnulib.
26025
26026 2008-10-05  Bruno Haible  <bruno@clisp.org>
26027
26028         * modules/select-tests: New file, mostly copied from
26029         modules/sys_select-tests.
26030         * tests/test-select.c: New file, mostly copied from
26031         tests/test-sys_select.c.
26032         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26033         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26034         (Makefile.am): Remove test_sys_select_LDADD.
26035
26036         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26037         to an undefined symbol, for an error message.
26038         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26039         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26040         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26041         winsock-select.c here.
26042         * modules/sys_select (Files): Remove lib/winsock-select.c.
26043         (Depends-on): Remove alloca.
26044         (Makefile.am): Substitute GNULIB_SELECT.
26045         * modules/select: New file.
26046         * doc/posix-functions/select.texi: Update.
26047
26048 2008-10-05  Bruno Haible  <bruno@clisp.org>
26049
26050         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26051         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26052         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26053         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26054         getdtablesize.
26055         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26056         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26057
26058 2008-10-05  Bruno Haible  <bruno@clisp.org>
26059
26060         * modules/getdtablesize-tests: New file.
26061         * tests/test-getdtablesize.c: New file.
26062
26063         New module 'getdtablesize'.
26064         * lib/unistd.in.h (getdtablesize): New declaration.
26065         * lib/getdtablesize.c: New file.
26066         * m4/getdtablesize.m4: New file.
26067         * modules/getdtablesize: New file.
26068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26069         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26070         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26071         HAVE_GETDTABLESIZE.
26072         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26073
26074 2008-10-05  Bruno Haible  <bruno@clisp.org>
26075
26076         * modules/sched (Makefile.am): Fix typo.
26077         Reported by Simon Josefsson.
26078
26079 2008-10-05  Jim Meyering  <meyering@redhat.com>
26080
26081         bootstrap: check for LT_INIT, too
26082         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26083         are deprecated.  Suggestion from Ralf Wildenhues.
26084
26085 2008-10-05  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26088         overriding them by ours.
26089         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26090
26091 2008-10-05  Jim Meyering  <meyering@redhat.com>
26092
26093         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26094         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26095         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26096
26097 2008-10-04  Bruno Haible  <bruno@clisp.org>
26098
26099         * modules/dup2 (License): Change to LGPLv2+.
26100         * modules/sleep (License): Likewise.
26101         * modules/perror (License): Likewise.
26102         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26103         Blake.
26104         * modules/signal (License): Likewise.
26105         * modules/sigprocmask (License): Likewise.
26106         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26107         Meyering.
26108
26109 2008-10-04  Bruno Haible  <bruno@clisp.org>
26110
26111         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26112         Reported by Rainer Tammer <tammer@tammer.net>.
26113
26114 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26115             Bruno Haible  <bruno@clisp.org>
26116
26117         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26118         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26119         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26120
26121 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26122
26123         filevercmp: new module
26124         * lib/filevercmp.h: New function filevercmp comparing version strings.
26125         * lib/filevercmp.c: Implementation of filevercmp function.
26126         * modules/filevercmp: Module metadata.
26127         * tests/test-filevercmp.c: Unit test for new module.
26128         * modules/filevercmp-tests: Unit test metadata.
26129         * MODULES.html.sh: Add filevercmp module.
26130
26131 2008-10-03  Bruno Haible  <bruno@clisp.org>
26132
26133         * lib/c-ctype.h: Add comment.
26134         Reported by Jim Meyering.
26135
26136 2008-10-02  Bruno Haible  <bruno@clisp.org>
26137
26138         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26139
26140 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26141
26142         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26143         name of bootstrap.conf accordingly.
26144
26145 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26146
26147         * build-aux/bootstrap: Install git-merge-changelog configuration
26148         items into .gitconfig if needed.
26149
26150 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26151
26152         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26153         git repository, and initialize/update it accordingly.
26154
26155 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26156
26157         * modules/fsync-tests: New file.
26158         * tests/test-fsync.c: New file.
26159
26160         New module 'fsync'.
26161         * lib/fsync.c: New file.
26162         * m4/fsync.m4: New file.
26163         * modules/fsync: New file.
26164         * lib/unistd.in.h (fsync): New declaration.
26165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26166         GNULIB_FSYNC and HAVE_FSYNC.
26167         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26168         * MODULES.html.sh (posix_functions): Add fsync.
26169         * doc/posix-functions/fsync.texi: Mention the new module.
26170
26171 2008-10-02  Jim Meyering  <meyering@redhat.com>
26172
26173         fts.c: sync with similar code from coreutils' remove.c
26174         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26175         Guard also with "#if defined __linux__", since for now at least,
26176         this code is Linux-kernel-specific.
26177
26178 2008-10-02  Jim Meyering  <meyering@redhat.com>
26179
26180         fts: bug fixes
26181         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26182         Include <sys/vfs.h>, not <sys/statfs.h>.
26183
26184         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26185         Include <sys/vfs.h>, not <sys/statfs.h>.
26186
26187 2008-10-01  Bruno Haible  <bruno@clisp.org>
26188
26189         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26190         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26191         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26192         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26193         * doc/posix-functions/posix_spawnp.texi: Likewise.
26194         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26195         whether posix_spawn actually works.
26196         * m4/pipe.m4 (gl_PIPE): Likewise.
26197         * modules/execute (Files): Add m4/posix_spawn.m4.
26198         * modules/pipe (Files): Add m4/posix_spawn.m4.
26199         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26200
26201 2008-10-01  Jim Meyering  <meyering@redhat.com>
26202
26203         remove trailing spaces
26204         * NEWS: Likewise.
26205         * lib/poll.c (poll): Likewise.
26206         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26207         * lib/winsock.c (rpl_close): Likewise.
26208         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26209         * modules/yield: Likewise.
26210         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26211         * tests/test-sys_select.c (connect_to_socket): Likewise.
26212
26213         fts.c: adjust a new interface to be more generally useful
26214         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26215         (fts_build): Adjust caller.
26216
26217 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26218
26219         * modules/cond-tests: New file.
26220         * tests/test-cond.c: New file.
26221
26222 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26223             Bruno Haible  <bruno@clisp.org>
26224
26225         * modules/cond (Dependencies): Add errno, time.
26226         * lib/glthread/cond.h: Include <time.h>.
26227         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26228         across platforms.
26229
26230 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26231             Bruno Haible  <bruno@clisp.org>
26232
26233         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26234
26235 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26236             Bruno Haible  <bruno@clisp.org>
26237
26238         * modules/tls-tests (Depends-on): Add thread, yield.
26239         (configure.ac): Remove all checks.
26240         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26241         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26242         gl_thread_self): Remove definitions. Include glthread/thread.h and
26243         glthread/yield.h instead.
26244         (test_tls): Pass an additional NULL argument to gl_thread_join.
26245
26246 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26247             Bruno Haible  <bruno@clisp.org>
26248
26249         * modules/lock-tests (Depends-on): Add thread, yield.
26250         (configure.ac): Remove all checks.
26251         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26252         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26253         gl_thread_self): Remove definitions. Include glthread/thread.h and
26254         glthread/yield.h instead.
26255         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26256         additional NULL argument to gl_thread_join.
26257
26258 2008-09-30  Bruno Haible  <bruno@clisp.org>
26259
26260         Fix the Win32 implementation of the 'thread' module.
26261         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26262         pointer type.
26263         (gl_thread_self): Invoke gl_thread_self_func.
26264         (gl_thread_self_func): New declaration.
26265         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26266         (do_init_self_key, init_self_key): New functions.
26267         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26268         Remove some fields.
26269         (running_threads, running_lock): Remove variables.
26270         (get_current_thread_handle): New function.
26271         (gl_thread_self_func, wrapper_func, glthread_create_func,
26272         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26273         simplified.
26274
26275 2008-09-30  Bruno Haible  <bruno@clisp.org>
26276
26277         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26278         files.
26279
26280 2008-09-30  Jim Meyering  <meyering@redhat.com>
26281
26282         fts.m4: correct the test for statfs.f_type
26283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26284         when checking for statfs.f_type.
26285
26286 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26287
26288         tests: avoid some compiler warnings
26289         * tests/test-memchr.c (main): Pass NULL indirectly.
26290         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26291
26292 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26293
26294         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26295         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26296         exactly specified dayshifts.
26297         (dayshift): New rule.
26298         (rel): Add dayshift.
26299         (relative_time_table) [tomorrow, yesterday, today, now]:
26300         Use tDAY_SHIFT in place of tDAY_UNIT.
26301         * tests/test-getdate.c: Add tests for now-disallowed countable
26302         dayshifts, e.g., "4 yesterday ago".
26303
26304 2008-09-29  Bruno Haible  <bruno@clisp.org>
26305
26306         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26307         * tests/test-posix_spawn1.in.sh: Renamed from
26308         tests/test-posix_spawn.in.sh.
26309         * tests/test-posix_spawn2.c: New file.
26310         * tests/test-posix_spawn2.in.sh: New file.
26311         * modules/posix_spawnp-tests (Files): Update.
26312         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26313
26314 2008-09-29  Bruno Haible  <bruno@clisp.org>
26315
26316         Propagate effects of putenv/setenv/unsetenv to child processes.
26317         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26318         * lib/pipe.c (create_pipe): Likewise.
26319
26320 2008-09-29  Bruno Haible  <bruno@clisp.org>
26321
26322         Enable use of shell scripts as executables in mingw.
26323         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26324         run the program as a shell script.
26325         * lib/pipe.c (create_pipe): Likewise.
26326         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26327         resulting array.
26328
26329 2008-09-29  Eric Blake  <ebb9@byu.net>
26330
26331         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26332
26333 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26334
26335         * doc/posix-functions/accept.texi: Update mingw problems.
26336         * doc/posix-functions/bind.texi: Update mingw problems.
26337         * doc/posix-functions/close.texi: Update mingw problems.
26338         * doc/posix-functions/connect.texi: Update mingw problems.
26339         * doc/posix-functions/getpeername.texi: Update mingw problems.
26340         * doc/posix-functions/getsockname.texi: Update mingw problems.
26341         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26342         * doc/posix-functions/ioctl.texi: Update mingw problems.
26343         * doc/posix-functions/listen.texi: Update mingw problems.
26344         * doc/posix-functions/recv.texi: Update mingw problems.
26345         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26346         * doc/posix-functions/select.texi: Update mingw problems.
26347         * doc/posix-functions/send.texi: Update mingw problems.
26348         * doc/posix-functions/sendto.texi: Update mingw problems.
26349         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26350         * doc/posix-functions/socket.texi: Update mingw problems.
26351
26352 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26353             Bruno Haible  <bruno@clisp.org>
26354
26355         * lib/sys_select.in.h: Include sys/time.h.
26356         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26357         * modules/sys_select: Depend on sys_time.
26358         * tests/test-sys_select.c: Test that sys/select.h defines struct
26359         timeval fully.
26360
26361 2008-09-29  Bruno Haible  <bruno@clisp.org>
26362
26363         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26364         * lib/sys_select.in.h: Likewise.
26365
26366 2008-09-29  Bruno Haible  <bruno@clisp.org>
26367
26368         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26369
26370 2008-09-29  Bruno Haible  <bruno@clisp.org>
26371
26372         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26373         Set LIBSOCKET instead of augmenting LIBS.
26374         * modules/sockets (Link): New section.
26375         * modules/sockets-tests (test_sockets_LDADD): New variable.
26376         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26377         * modules/poll-tests (test_poll_LDADD): New variable.
26378         * NEWS: Document the change.
26379
26380 2008-09-29  Bruno Haible  <bruno@clisp.org>
26381
26382         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26383         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26384         ARPA_INET_H directly.
26385         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26386
26387 2008-09-28  Bruno Haible  <bruno@clisp.org>
26388
26389         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26390         from gl_HEADER_SYS_SOCKET.
26391         (gl_HEADER_SYS_SOCKET): Invoke it.
26392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26393
26394 2008-09-28  Bruno Haible  <bruno@clisp.org>
26395
26396         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26397         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26398         Needed on OSF/1 4.0.
26399
26400 2008-09-28  Bruno Haible  <bruno@clisp.org>
26401
26402         Override open more carefully.
26403         * lib/open.c (orig_open): New function.
26404         (rpl_open): Use orig_open instead of open.
26405         * lib/fcntl.in.h: Add special invocation convention.
26406         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26407         (gl_FUNC_OPEN): Invoke it.
26408
26409         Override freopen more carefully.
26410         * lib/freopen.c (orig_freopen): New function.
26411         (rpl_freopen): Use orig_freopen instead of freopen.
26412         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26413         (gl_FUNC_FREOPEN): Invoke it.
26414
26415         Override fopen more carefully.
26416         * lib/fopen.c (orig_fopen): New function.
26417         (rpl_fopen): Use orig_fopen instead of fopen.
26418         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26419         (gl_FUNC_FOPEN): Invoke it.
26420         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26421
26422 2008-09-28  Bruno Haible  <bruno@clisp.org>
26423
26424         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26425         SIGPIPE.
26426
26427 2008-09-28  Bruno Haible  <bruno@clisp.org>
26428
26429         * tests/test-sigaction.c (handler, main): Disable the check whether
26430         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26431         glibc systems with LinuxThreads.
26432
26433 2008-09-28  Bruno Haible  <bruno@clisp.org>
26434
26435         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26436
26437         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26438         with AIX xlc.
26439         * lib/fcntl.in.h (open): Likewise.
26440         Reported by Rainer Tammer <tammer@tammer.net>.
26441
26442 2008-09-28  Bruno Haible  <bruno@clisp.org>
26443
26444         * modules/posix_spawnp-tests: New file.
26445         * tests/test-posix_spawn.c: New file.
26446         * tests/test-posix_spawn.in.sh: New file.
26447
26448         New module 'posix_spawnp'.
26449         * modules/posix_spawnp: New file.
26450         * lib/spawnp.c: New file, from GNU libc with modifications.
26451         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26452
26453         New module 'posix_spawn'.
26454         * modules/posix_spawn: New file.
26455         * lib/spawn.c: New file, from GNU libc with modifications.
26456         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26457
26458         New module 'posix_spawnattr_destroy'.
26459         * modules/posix_spawnattr_destroy: New file.
26460         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26461         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26462         module.
26463
26464         New module 'posix_spawnattr_setsigmask'.
26465         * modules/posix_spawnattr_setsigmask: New file.
26466         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26467         modifications.
26468         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26469         new module.
26470
26471         New module 'posix_spawnattr_getsigmask'.
26472         * modules/posix_spawnattr_getsigmask: New file.
26473         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26474         modifications.
26475         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26476         new module.
26477
26478         New module 'posix_spawnattr_setsigdefault'.
26479         * modules/posix_spawnattr_setsigdefault: New file.
26480         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26481         modifications.
26482         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26483         new module.
26484
26485         New module 'posix_spawnattr_getsigdefault'.
26486         * modules/posix_spawnattr_getsigdefault: New file.
26487         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26488         modifications.
26489         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26490         new module.
26491
26492         New module 'posix_spawnattr_setschedpolicy'.
26493         * modules/posix_spawnattr_setschedpolicy: New file.
26494         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26495         modifications.
26496         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26497         new module.
26498
26499         New module 'posix_spawnattr_getschedpolicy'.
26500         * modules/posix_spawnattr_getschedpolicy: New file.
26501         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26502         modifications.
26503         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26504         new module.
26505
26506         New module 'posix_spawnattr_setschedparam'.
26507         * modules/posix_spawnattr_setschedparam: New file.
26508         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26509         modifications.
26510         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26511         new module.
26512
26513         New module 'posix_spawnattr_getschedparam'.
26514         * modules/posix_spawnattr_getschedparam: New file.
26515         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26516         modifications.
26517         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26518         new module.
26519
26520         New module 'posix_spawnattr_setpgroup'.
26521         * modules/posix_spawnattr_setpgroup: New file.
26522         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26523         modifications.
26524         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26525         module.
26526
26527         New module 'posix_spawnattr_getpgroup'.
26528         * modules/posix_spawnattr_getpgroup: New file.
26529         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26530         modifications.
26531         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26532         module.
26533
26534         New module 'posix_spawnattr_setflags'.
26535         * modules/posix_spawnattr_setflags: New file.
26536         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26537         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26538         module.
26539
26540         New module 'posix_spawnattr_getflags'.
26541         * modules/posix_spawnattr_getflags: New file.
26542         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26543         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26544         module.
26545
26546         New module 'posix_spawnattr_init'.
26547         * modules/posix_spawnattr_init: New file.
26548         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26549         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26550         module.
26551
26552         New module 'posix_spawn_file_actions_destroy'.
26553         * modules/posix_spawn_file_actions_destroy: New file.
26554         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26555         modifications.
26556         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26557         the new module.
26558
26559         New module 'posix_spawn_file_actions_addopen'.
26560         * modules/posix_spawn_file_actions_addopen: New file.
26561         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26562         modifications.
26563         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26564         the new module.
26565
26566         New module 'posix_spawn_file_actions_adddup2'.
26567         * modules/posix_spawn_file_actions_adddup2: New file.
26568         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26569         modifications.
26570         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26571         the new module.
26572
26573         New module 'posix_spawn_file_actions_addclose'.
26574         * modules/posix_spawn_file_actions_addclose: New file.
26575         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26576         modifications.
26577         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26578         the new module.
26579
26580         New module 'posix_spawn_file_actions_init'.
26581         * modules/posix_spawn_file_actions_init: New file.
26582         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26583         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26584         new module.
26585
26586         New module 'posix_spawn-internal'.
26587         * modules/posix_spawn-internal: New file.
26588         * lib/spawn_int.h: New file, from GNU libc with modifications.
26589         * lib/spawni.c: New file, from GNU libc with modifications.
26590         * m4/posix_spawn.m4: New file.
26591
26592         New module 'spawn'.
26593         * modules/spawn: New file.
26594         * lib/spawn.in.h: New file, from GNU libc with modifications.
26595         * m4/spawn_h.m4: New file.
26596         * doc/posix-headers/spawn.texi: Mention the new module.
26597
26598 2008-09-28  Bruno Haible  <bruno@clisp.org>
26599
26600         * modules/sched-tests: New file.
26601         * tests/test-sched.c: New file.
26602
26603         New module 'sched'.
26604         * modules/sched: New file.
26605         * lib/sched.in.h: New file.
26606         * m4/sched_h.m4: New file.
26607         * doc/posix-headers/sched.texi: Mention the new module.
26608
26609 2008-09-27  Eric Blake  <ebb9@byu.net>
26610
26611         Fix previous patch, and tweak references to $0.
26612         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26613         (func_version, func_gnulib_dir): Don't call this program
26614         gnulib-tool.
26615         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26616         with using $0 in function.
26617         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26618         (func_fatal_error): Reuse the name the user invoked us with.
26619
26620 2008-09-27  Bruno Haible  <bruno@clisp.org>
26621
26622         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26623         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26624         (gl_ICONV_H): Not here.
26625         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26626         instead of assigning ICONV_H directly.
26627
26628         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26630         WCHAR_H directly.
26631
26632 2008-09-27  Bruno Haible  <bruno@clisp.org>
26633
26634         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26635         * modules/arpa_inet (Depends-on): Add link-warning.
26636         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26637         * modules/unistd (Makefile.am): Likewise.
26638
26639 2008-09-26  Bruno Haible  <bruno@clisp.org>
26640
26641         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26642         variables.
26643         (func_version): Essentially copied from gnulib-tool.
26644         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26645         func_readlink): Copied from gnulib-tool.
26646
26647 2008-09-26  Bruno Haible  <bruno@clisp.org>
26648
26649         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26650         invoking git-version-gen.
26651
26652 2008-09-26  Bruno Haible  <bruno@clisp.org>
26653
26654         * posix-modules: Update to directory names changed on 2008-01-19.
26655         Remove commas in output before splitting into words. No more need to
26656         avoid 'ftruncate' since 2007-02-19.
26657
26658 2008-09-26  Bruno Haible  <bruno@clisp.org>
26659
26660         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26661
26662 2008-09-26  Bruno Haible  <bruno@clisp.org>
26663
26664         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26665         * modules/fwriteerror (Depends-on): Add errno.
26666
26667 2008-09-26  Bruno Haible  <bruno@clisp.org>
26668
26669         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26670         * tests/test-vc-list-files-cvs.sh: Likewise.
26671
26672 2008-09-26  Bruno Haible  <bruno@clisp.org>
26673
26674         * doc/posix-headers/sys_resource.texi: Reorder items.
26675
26676 2008-09-26  Jim Meyering  <meyering@redhat.com>
26677
26678         fts: tweak inode comparison function
26679         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26680         inode numbers, as documented.
26681
26682         fts: sort dirent entries on inode number before traversing
26683         This avoids a quadratic, seek-related performance penalty when
26684         operating on a directory containing many entries (measurable at 10k;
26685         3.5 hours at 2 million entries with a cold cache) on certain types
26686         of file systems, including ext3 and ext4, but not tmpfs.
26687         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26688         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26689         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26690         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26691         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26692         (fts_build): Set the stat.st_ino member from D_INO.
26693         If it is likely to be useful, sort dirent entries on inode number.
26694
26695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26696         and the struct statfs.f_type member.
26697         * modules/fts (Depends-on): Add d-ino.
26698
26699 2008-09-26  Bruno Haible  <bruno@clisp.org>
26700
26701         * modules/sigpipe-die (Depends-on): Add sigpipe.
26702
26703         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26704         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26705         and GNULIB_STDIO_H_SIGPIPE are set.
26706         * lib/stdio-write.c: New file.
26707         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26708         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26709         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26710         REPLACE_STDIO_WRITE_FUNCS.
26711         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26712         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26713         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26714         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26715         * modules/stdio (Files): Add lib/stdio-write.c.
26716         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26717         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26718         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26719         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26720         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26721         REPLACE_FPRINTF_POSIX.
26722         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26723         REPLACE_PRINTF_POSIX.
26724         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26725         REPLACE_VFPRINTF_POSIX.
26726         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26727         REPLACE_VPRINTF_POSIX.
26728         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26729         SIGPIPE issue.
26730         * doc/posix-functions/fputc.texi: Likewise.
26731         * doc/posix-functions/fputs.texi: Likewise.
26732         * doc/posix-functions/fwrite.texi: Likewise.
26733         * doc/posix-functions/printf.texi: Likewise.
26734         * doc/posix-functions/putc.texi: Likewise.
26735         * doc/posix-functions/putchar.texi: Likewise.
26736         * doc/posix-functions/puts.texi: Likewise.
26737         * doc/posix-functions/vfprintf.texi: Likewise.
26738         * doc/posix-functions/vprintf.texi: Likewise.
26739
26740         * modules/safe-write (Depends-on): Add write.
26741
26742         * modules/sigpipe-tests: New file.
26743         * tests/test-sigpipe.c: New file.
26744         * tests/test-sigpipe.sh: New file.
26745
26746         * modules/write: New file.
26747         * lib/unistd.in.h: Include <sys/types.h>.
26748         (write): New declaration.
26749         * lib/write.c: New file.
26750         * m4/write.m4: New file.
26751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26752         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26753         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26754         GNULIB_WRITE, REPLACE_WRITE.
26755         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26756         and the SIGPIPE issue.
26757
26758         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26759         (raise): New declaration.
26760         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26761         (ext_signal): New function.
26762         (rpl_raise): New function.
26763         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26764         GNULIB_SIGNAL_H_SIGPIPE.
26765         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26766         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26767
26768         * modules/sigpipe: New file.
26769         * m4/sigpipe.m4: New file.
26770
26771 2008-09-25  Derek Price  <derek@ximbiot.com>
26772             Bruno Haible  <bruno@clisp.org>
26773
26774         * gnulib-tool (func_import): Report all license incompatibilities, not
26775         just the first one.
26776
26777 2008-09-25  Bruno Haible  <bruno@clisp.org>
26778
26779         * gnulib-tool (func_import): When computing the edits, consider not
26780         only the Makefile.ams that exist but also those that will be generated.
26781
26782 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26783
26784         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26785         fixes gnulib-tool --test warning about duplicate dependency.
26786
26787 2008-09-25  Bruno Haible  <bruno@clisp.org>
26788
26789         * gnulib-tool: Don't ask the user to perform edits in the generated
26790         Makefile.ams.
26791         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26792         apply to the Makefile.am being generated.
26793         (func_emit_tests_Makefile_am): Execute edits that apply to the
26794         Makefile.am being generated.
26795         (func_import): Setup list of Makefile.am edits before emitting the
26796         Makefile.ams, not at the end.
26797         (func_create_testdir): Update.
26798         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26799
26800 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26801
26802         * gnulib-tool (func_import): Store the --tests-base option in the
26803         comment in gnulib-cache.m4.
26804
26805 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26806
26807         * NEWS: Document increased portability that sys_select now provides.
26808
26809         * lib/sys_select.in.h: Install select wrapper.
26810         * lib/sys_socket.in.h: Use more descriptive name when there is no
26811         select wrapper.
26812         * lib/winsock-select.c: New.
26813         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26814         Require gl_HEADER_SYS_SOCKET.
26815         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26816         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26817         * tests/test-sys_select.c: Add functional tests.
26818
26819 2008-09-24  Eric Blake  <ebb9@byu.net>
26820
26821         open, fopen: close fd leak in last patch
26822         * lib/open.c (rpl_open): Close fd before returning error.
26823         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26824         * doc/posix-functions/open.texi (open): Document that Irix also
26825         has the bug.
26826         * doc/posix-functions/fopen.texi (fopen): Likewise.
26827         Reported by Paolo Bonzini.
26828
26829 2008-09-24  Bruno Haible  <bruno@clisp.org>
26830
26831         Ensure that a filename ending in a slash cannot be used to access a
26832         non-directory.
26833         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26834         to check whether it's really a directory.
26835         * lib/fopen.c: Include fcntl.h, unistd.h.
26836         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26837         and fdopen().
26838         * modules/fopen (Depends-on): Add unistd.
26839         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26840         * tests/test-fopen.c (main): Likewise.
26841         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26842         * doc/posix-functions/fopen.texi: Likewise.
26843         Reported by Eric Blake.
26844
26845 2008-09-23  Eric Blake  <ebb9@byu.net>
26846
26847         c-stack: avoid compiler optimizations when provoking overflow
26848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26849         recursion harder to optimize, to ensure a stack overflow occurs.
26850         * tests/test-c-stack.c (recurse): Likewise.
26851         Borrowed from libsigsegv.
26852
26853         c-stack: work around Irix sigaltstack bug
26854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26855         whether sigaltstack uses wrong end of stack_t (copied in part from
26856         libsigsegv).
26857         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26858         Irix bug, without requiring an over-allocation.
26859         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26860         bug.
26861
26862         fopen: document mingw bug on directories
26863         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26864         not allowing a stream visiting a directory, even though reading
26865         from such a stream is not portable.
26866
26867 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26868
26869         * lib/poll.c: Rewrite.
26870         * modules/poll: Depend on alloca.
26871
26872 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26873
26874         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26875         instead define prototypes for a full set of wrappers.  Ensure
26876         that Cygwin does not use the compatibility code, which is only
26877         for MinGW.
26878         * lib/winsock.c: New.
26879         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26880         * modules/sys_socket: Add lib/winsock.c.
26881
26882         * modules/poll-tests: Add errno and perror.
26883         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26884
26885 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26886
26887         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26888
26889 2008-09-23  Bruno Haible  <bruno@clisp.org>
26890
26891         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26892         * doc/glibc-functions/*: Likewise.
26893
26894 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26895
26896         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26897         success.
26898
26899 2008-09-22  Eric Blake  <ebb9@byu.net>
26900             Bruno Haible  <bruno@clisp.org>
26901
26902         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26903         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26904         supply %A but mishandle pseudo-NaN.
26905         Reported by Simon Josefsson.
26906
26907 2008-09-21  Bruno Haible  <bruno@clisp.org>
26908
26909         * tests/test-lock.c (main): Tweak skip message.
26910         * tests/test-tls.c (main): Likewise.
26911
26912 2008-09-21  Bruno Haible  <bruno@clisp.org>
26913
26914         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26915         whether 'struct sigaction' has sa_sigaction here...
26916         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26917         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26918
26919 2008-09-21  Bruno Haible  <bruno@clisp.org>
26920
26921         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
26922         section.
26923         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
26924         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
26925         the new section.
26926         (Support for obsolete systems lacking POSIX:2001): New section.
26927         (String handling <string.h>): Move strdup to the new section.
26928         Suggested by Simon Josefsson and Paolo Bonzini.
26929
26930 2008-09-21  Bruno Haible  <bruno@clisp.org>
26931
26932         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
26933         exponents in %e and %g results on 'long double'. Needed for mingw's
26934         improved *printf functions.
26935         * tests/test-vasprintf-posix.c (test_function): Likewise.
26936         * tests/test-snprintf-posix.h (test_function): Likewise.
26937         * tests/test-sprintf-posix.h (test_function): Likewise.
26938         Reported by Eric Blake.
26939
26940 2008-09-21  Bruno Haible  <bruno@clisp.org>
26941
26942         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
26943         * tests/test-sprintf-posix.h (test_function): Likewise.
26944
26945 2008-09-21  Bruno Haible  <bruno@clisp.org>
26946
26947         * modules/getpass (Depends-on): Add strdup-posix.
26948
26949         New module 'strdup-posix'.
26950         * modules/strdup-posix: New file.
26951         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
26952         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
26953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26954         REPLACE_STRDUP.
26955         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
26956         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
26957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26958         strdup-posix.
26959
26960         * modules/strdup (Depends-on): Remove malloc-posix.
26961
26962 2008-09-20  Bruno Haible  <bruno@clisp.org>
26963
26964         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
26965         Wildenhues.
26966
26967 2008-09-20  Bruno Haible  <bruno@clisp.org>
26968
26969         Ensure that wint_t gets defined on IRIX 5.3.
26970         * lib/wchar.in.h (wint_t): Define if not defined by the system.
26971         * lib/wctype.in.h (wint_t): Likewise.
26972         (__wctype_wint_t): Remove type.
26973         (isw*): Use wint_t instead of __wctype_wint_t.
26974         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
26975         * modules/wchar (Files): Add m4/wint_t.m4.
26976         (Makefile.am): Substitute HAVE_WINT_T.
26977         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
26978         * tests/test-wctype.c: Check that wint_t is defined.
26979         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
26980         * doc/posix-headers/wctype.texi: Likewise.
26981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26982
26983 2008-09-18  Bruno Haible  <bruno@clisp.org>
26984
26985         * gnulib-tool (func_exit): Update comment.
26986
26987 2008-09-18  Simon Josefsson  <simon@josefsson.org>
26988
26989         * modules/getaddrinfo (Depends-on): Remove strdup, this module
26990         assumes strdup exists and does not depend on strdup to return
26991         ENOMEM on out of memory conditions.
26992
26993 2008-09-18  Bruno Haible  <bruno@clisp.org>
26994
26995         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
26996         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
26997         digits for the exponent.
26998
26999 2008-09-18  Jim Meyering  <meyering@redhat.com>
27000             Bruno Haible  <bruno@clisp.org>
27001
27002         * lib/vasnprintf.c (decimal_point_char): Define also if
27003         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27004
27005 2008-09-16  Bruno Haible  <bruno@clisp.org>
27006         and Eric Blake  <ebb9@byu.net>
27007
27008         vasnprintf: support Irix 5.3
27009         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27010         that mishandle long double infinity.
27011         Reported by Tom G. Christensen.
27012
27013 2008-09-16  Bruno Haible  <bruno@clisp.org>
27014
27015         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27016         Solaris 9.
27017         * doc/glibc-functions/alphasort.texi: Likewise.
27018         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27019
27020 2008-09-16  Jim Meyering  <meyering@redhat.com>
27021
27022         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27023         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27024         a umask modification leak out of a subshell.  Otherwise, the
27025         opensolaris /bin/sh would be accepted and thus cause unwarranted
27026         failures in the coreutils test suite.
27027
27028 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27029
27030         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27031         to succeed.
27032
27033 2008-09-16  Jim Meyering  <meyering@redhat.com>
27034
27035         avoid spurious test failure when library is built without ACL support
27036         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27037         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27038         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27039         * tests/test-copy-acl.sh: Likewise.
27040
27041 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27042
27043         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27044         based on character occurrence counts.
27045
27046 2008-09-15  Eric Blake  <ebb9@byu.net>
27047
27048         tests: avoid some compiler warnings
27049         * tests/test-memchr.c (main): Pass NULL indirectly.
27050         * tests/test-closein.c (main): Avoid unused variable.
27051
27052 2008-09-15  Bruno Haible  <bruno@clisp.org>
27053
27054         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27055         are missing on OpenBSD 4.0 individually.
27056         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27057
27058 2008-09-15  Bruno Haible  <bruno@clisp.org>
27059
27060         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27061         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27062         * doc/posix-functions/perror.texi: Likewise.
27063         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27064         is missing.
27065         Reported by Eric Blake.
27066
27067         * lib/errno.in.h: Use replacement values >= 2000.
27068         Reported by Eric Blake.
27069
27070 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27071
27072         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27073         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27074         limit.
27075         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27076         compareseq was aborted.
27077
27078 2008-09-14  Bruno Haible  <bruno@clisp.org>
27079
27080         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27081         yvec_edit_count.
27082         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27083         (fstrcmp_bounded): Simplify result computation accordingly.
27084
27085 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27086
27087         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27088         (fstrcmp): Define in terms of fstrcmp_bounded.
27089         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27090         lower_bound argument.
27091         Return quickly if the result is certainly < lower_bound.
27092         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27093
27094 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27095
27096         * lib/diffseq.h (EARLY_ABORT): New macro.
27097         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27098         evaluates to true.
27099
27100 2008-09-14  Bruno Haible  <bruno@clisp.org>
27101
27102         * modules/perror-tests: New file.
27103         * tests/test-perror.sh: New file.
27104         * tests/test-perror.c: New file.
27105
27106         New module 'perror'.
27107         * lib/stdio.in.h (perror): New declaration.
27108         * lib/perror.c: New file.
27109         * m4/perror.m4: New file.
27110         * modules/perror: New file.
27111         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27112         * doc/posix-functions/perror.texi: Mention the perror module.
27113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27114         REPLACE_PERROR.
27115         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27116         REPLACE_PERROR.
27117
27118 2008-09-14  Bruno Haible  <bruno@clisp.org>
27119
27120         * modules/stdio (Makefile.am): Reorder to match the order in
27121         lib/stdio.in.h.
27122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27123
27124 2008-09-13  Bruno Haible  <bruno@clisp.org>
27125
27126         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27127
27128 2008-09-13  Bruno Haible  <bruno@clisp.org>
27129
27130         Extend strerror to cover the added errno values.
27131         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27132         (rpl_strerror): Provide error messages for the added errno values and
27133         for the WSA* values.
27134         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27135         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27136         strerror.
27137         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27138         * modules/strerror (Depends-on): Add errno.
27139         * doc/posix-functions/strerror.texi: Document the change.
27140         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27141         and EOVERFLOW.
27142
27143 2008-09-13  Bruno Haible  <bruno@clisp.org>
27144
27145         * modules/EOVERFLOW: Remove file.
27146         * m4/eoverflow.m4: Remove file.
27147         * modules/EOVERFLOW-tests: Remove file.
27148         * tests/test-EOVERFLOW.c: Remove file.
27149         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27150         * modules/ftell (Depends-on): Likewise.
27151         * modules/getdelim (Depends-on): Likewise.
27152         * modules/getugroups (Depends-on): Likewise.
27153         * modules/poll (Depends-on): Likewise.
27154         * modules/snprintf (Depends-on): Likewise.
27155         * modules/sprintf-posix (Depends-on): Likewise.
27156         * modules/vasnprintf (Depends-on): Likewise.
27157         * modules/vasprintf (Depends-on): Likewise.
27158         * modules/vfprintf-posix (Depends-on): Likewise.
27159         * modules/vsnprintf (Depends-on): Likewise.
27160         * modules/vsprintf-posix (Depends-on): Likewise.
27161         * modules/xvasprintf (Depends-on): Likewise.
27162         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27163         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27164         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27165         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27166         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27167         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27168         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27169         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27171         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27172         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27173         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27174         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27175         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27176         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27177         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27178         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27179         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27180         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27181         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27182         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27183         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27184         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27185         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27186         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27187         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27188         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27189         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27190         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27191         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27192         * MODULES.html.sh: Remove EOVERFLOW.
27193         * NEWS: Mention the change.
27194
27195 2008-09-13  Bruno Haible  <bruno@clisp.org>
27196
27197         * modules/errno-tests: New file.
27198         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27199
27200         * lib/errno.in.h: New file.
27201         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27202         * modules/errno: New file.
27203         * doc/posix-headers/errno.texi: Update documentation.
27204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27205
27206 2008-09-13  Bruno Haible  <bruno@clisp.org>
27207
27208         * tests/test-poll.c: Use #if for native Windows, rather than testing
27209         __MSVCRT__.
27210
27211 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27212             Bruno Haible  <bruno@clisp.org>
27213
27214         * lib/glob.c: Don't include <pwd.h> on native Windows.
27215         (WINDOWS32): New macro.
27216         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27217
27218 2008-09-13  Bruno Haible  <bruno@clisp.org>
27219
27220         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27221         (ETIMEDOUT): Remove macro.
27222         (glthread_cond_timedwait_multithreaded): New declaration.
27223         (glthread_cond_timedwait): Use it.
27224         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27225         (glthread_cond_timedwait_multithreaded): New function.
27226
27227 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27228
27229         * modules/poll-tests: Do not check for io.h.
27230         * tests/test-poll.c: Check for __MSVCRT__ instead.
27231
27232 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27233
27234         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27235         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27236         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27237
27238 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27239
27240         * modules/poll-tests: New.
27241         * tests/test-poll.c: New.
27242
27243 2008-09-12  Eric Blake  <ebb9@byu.net>
27244
27245         frexp: test for NetBSD failure on -0.0
27246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27247         not all, bugs from NetBSD 3.0 have been fixed.
27248         * doc/posix-functions/frexp.texi (frexp): Document bug.
27249         Reported by Thomas Klausner.
27250
27251         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27252         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27253         literal -0.0.
27254         Reported by Jonathan C. Patschke <jp@centtech.com>.
27255
27256 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27257
27258         * lib/glthread/cond.h: Use dummy implementation also if
27259         USE_WIN32_THREADS.
27260
27261 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27262
27263         * modules/fnmatch-posix (License): Change to LGPLv2+.
27264         * modules/fnmatch-gnu (License): Likewise.
27265
27266 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27267
27268         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27269
27270 2008-09-11  Jim Meyering  <meyering@redhat.com>
27271
27272         * users.txt: Add gtk-vnc.
27273
27274 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27275
27276         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27277         rotate amounts.
27278
27279         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27280         required for 16-bit and 8-bit rotates.
27281         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27282         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27283         UINT8_MAX instead of hard-coded constants.
27284         Suggested by Paul Eggert.
27285
27286 2008-09-07  Bruno Haible  <bruno@clisp.org>
27287
27288         * tests/test-striconveh.c (main): Check behaviour when converting from
27289         UTF-7.
27290
27291         Make striconveh work better with stateful encodings.
27292         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27293         that iconv does not increment the inptr when returning -1/EINVAL.
27294
27295 2008-09-07  Bruno Haible  <bruno@clisp.org>
27296
27297         * build-aux/config.rpath: Update according to libtool-2.2.6.
27298         * build-aux/config.libpath: Likewise.
27299
27300 2008-09-06  Bruno Haible  <bruno@clisp.org>
27301
27302         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27303         * lib/freadptr.c (freadptr): Likewise.
27304         * lib/freadseek.c (freadptrinc): Likewise.
27305         Reported by Simon Josefsson.
27306
27307 2008-09-06  Bruno Haible  <bruno@clisp.org>
27308
27309         * modules/freadptr (License): Change to LGPLv2+.
27310         * modules/freadseek (License): Likewise.
27311         Suggested by Eric Blake.
27312
27313         * modules/memchr2 (License): Change to LGPLv2+.
27314         Approved by Eric Blake.
27315
27316 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27317             Bruno Haible  <bruno@clisp.org>
27318
27319         Make gnulib-tool work with native 'sed' on AIX.
27320         * gnulib-tool (sed_noop): New variable.
27321         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27322         func_add_or_update, func_create_testdir): Use it to initialize sed
27323         script variables.
27324         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27325
27326 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27327             Bruno Haible  <bruno@clisp.org>
27328
27329         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27330         also works after #include directives.
27331
27332 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27333
27334         getdate.y: reject an out-of-range timezone value
27335         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27336         the range [-24...+24].  When specified with only one or two digits,
27337         * tests/test-getdate.c: Tests for the fix.
27338         * doc/getdate.texi: Document this change.
27339
27340 2008-09-03  Bruno Haible  <bruno@clisp.org>
27341
27342         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27343
27344 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27345
27346         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27347         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27348         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27349         Blake <ebb9@byu.net>.
27350
27351         * tests/test-bitrotate.c: Add more test vectors.
27352
27353 2008-09-02  Eric Blake  <ebb9@byu.net>
27354
27355         vasnprintf-posix: handle large precision via %.*d
27356         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27357         when handling it ourselves.
27358         * tests/test-vasnprintf-posix.c (test_function): Add test.
27359         * tests/test-snprintf-posix.h (test_function): Likewise.
27360         * tests/test-sprintf-posix.h (test_function): Likewise.
27361         * tests/test-vasprintf-posix.c (test_function): Likewise.
27362         Reported by Alain Guibert.
27363
27364 2008-09-01  Eric Blake  <ebb9@byu.net>
27365
27366         c-stack: make configure-time check more robust
27367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27368         successful sigaction call.
27369         Reported by Tom G. Christensen.
27370
27371 2008-09-01  Bruno Haible  <bruno@clisp.org>
27372
27373         New module 'findprog-lgpl'.
27374         * modules/findprog-lgpl: New file.
27375         * lib/findprog-lgpl.c: New file.
27376         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27377         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27378         to decide whether to use strdup or xstrdup, concatenated_filename or
27379         xconcatenated_filename.
27380
27381 2008-09-01  Bruno Haible  <bruno@clisp.org>
27382
27383         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27384         'xconcat-filename' (GPL).
27385         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27386         (License): Change to LGPLv2+.
27387         * modules/xconcat-filename: New file.
27388         * lib/concat-filename.h (concatenated_filename): Change specification.
27389         (xconcatenated_filename): New declaration.
27390         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27391         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27392         memory situations.
27393         * lib/xconcat-filename.c: New file.
27394         * NEWS: Mention the change.
27395         * lib/findprog.c: Include concat-filename.h, not filename.h.
27396         (find_in_path): Use xconcatenated_filename instead of
27397         concatenated_filename.
27398         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27399         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27400         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27401         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27402         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27403         instead of concatenated_filename.
27404         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27405         (execute_java_class): Use xconcatenated_filename instead of
27406         concatenated_filename.
27407         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27408         * modules/javacomp (Depends-on): Likewise.
27409         * modules/javaexec (Depends-on): Likewise.
27410
27411 2008-09-01  Bruno Haible  <bruno@clisp.org>
27412
27413         Split module 'filename' into 'filename' and 'concat-filename'.
27414         * modules/filename: Keep only lib/filename.h.
27415         (License): Change to LGPLv2+.
27416         * modules/concat-filename: New file, extracted from modules/filename.
27417         * lib/filename.h (concatenated_filename): Remove declaration.
27418         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27419         * lib/concat-filename.c: Include concat-filename.h.
27420         * NEWS: Mention the change.
27421
27422 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27423
27424         * lib/bitrotate.h (rotl8, rotr8): Add.
27425
27426         * modules/bitrotate (configure.ac): Need
27427         AC_REQUIRE([AC_C_INLINE]).
27428         (Description): Mention stdint.h.  Reported by Bruno Haible
27429         <bruno@clisp.org>.
27430
27431         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27432         Paolo Bonzini <bonzini@gnu.org>.
27433
27434 2008-08-31  Bruno Haible  <bruno@clisp.org>
27435
27436         Assume Solaris specific bi-arch conventions on Solaris systems.
27437         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27438         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27440         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27441         like acl_libdirstem.
27442         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27443         acl_libdirstem.
27444         * NEWS: Mention the change.
27445         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27446
27447 2008-08-31  Jim Meyering  <meyering@redhat.com>
27448
27449         * lib/strftime.h: Add comments describing the two added arguments.
27450
27451         remove duplicate #include directives
27452         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27453         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27454
27455 2008-08-31  Bruno Haible  <bruno@clisp.org>
27456
27457         New module 'sigpipe-die'.
27458         * modules/sigpipe-die: New file.
27459         * lib/sigpipe-die.h: New file.
27460         * lib/sigpipe-die.c: New file.
27461         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27462
27463 2008-08-31  Bruno Haible  <bruno@clisp.org>
27464
27465         Don't override previously installed signal handlers.
27466         * lib/fatal-signal.c (saved_sigactions): New variable.
27467         (uninstall_handlers): Reset the signal to the saved handler, not
27468         to SIG_DFL (except when ignored).
27469         (install_handlers): Save the previous handlers.
27470
27471 2008-08-30  Bruno Haible  <bruno@clisp.org>
27472
27473         * gnulib-tool (func_reset_sigpipe): New function.
27474         (func_get_automake_snippet, func_modules_transitive_closure,
27475         func_import): Invoke it before a join command that reads from stdin,
27476         to avoid "echo: write error: Broken pipe" error messages on stderr.
27477         Reported by Sam Steingold <sds@gnu.org>.
27478
27479 2008-08-30  Bruno Haible  <bruno@clisp.org>
27480
27481         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27482         Code copied from m4/open.m4.
27483         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27484         access and the filename ends in a slash. Code copied from lib/open.c.
27485         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27486         * tests/test-fopen.c (main): Check against bug with trailing slash.
27487
27488 2008-08-29  Bruno Haible  <bruno@clisp.org>
27489
27490         Avoid some "gcc -pedantic" warnings.
27491         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27492         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27493         * lib/dirent.in.h: Likewise.
27494         * lib/fcntl.in.h: Likewise.
27495         * lib/float.in.h: Likewise.
27496         * lib/iconv.in.h: Likewise.
27497         * lib/inttypes.in.h: Likewise.
27498         * lib/locale.in.h: Likewise.
27499         * lib/math.in.h: Likewise.
27500         * lib/netinet_in.in.h: Likewise.
27501         * lib/search.in.h: Likewise.
27502         * lib/signal.in.h: Likewise.
27503         * lib/stdarg.in.h: Likewise.
27504         * lib/stdint.in.h: Likewise.
27505         * lib/stdio.in.h: Likewise.
27506         * lib/stdlib.in.h: Likewise.
27507         * lib/string.in.h: Likewise.
27508         * lib/strings.in.h: Likewise.
27509         * lib/sys_select.in.h: Likewise.
27510         * lib/sys_socket.in.h: Likewise.
27511         * lib/sys_stat.in.h: Likewise.
27512         * lib/sys_time.in.h: Likewise.
27513         * lib/sysexits.in.h: Likewise.
27514         * lib/time.in.h: Likewise.
27515         * lib/unistd.in.h: Likewise.
27516         * lib/wchar.in.h: Likewise.
27517         * lib/wctype.in.h: Likewise.
27518         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27519         * modules/fchdir (Makefile.am): Likewise.
27520         * modules/fcntl (Makefile.am): Likewise.
27521         * modules/float (Makefile.am): Likewise.
27522         * modules/iconv_open (Makefile.am): Likewise.
27523         * modules/inttypes (Makefile.am): Likewise.
27524         * modules/locale (Makefile.am): Likewise.
27525         * modules/math (Makefile.am): Likewise.
27526         * modules/netinet_in (Makefile.am): Likewise.
27527         * modules/search (Makefile.am): Likewise.
27528         * modules/signal (Makefile.am): Likewise.
27529         * modules/stdarg (Makefile.am): Likewise.
27530         * modules/stdint (Makefile.am): Likewise.
27531         * modules/stdio (Makefile.am): Likewise.
27532         * modules/stdlib (Makefile.am): Likewise.
27533         * modules/string (Makefile.am): Likewise.
27534         * modules/strings (Makefile.am): Likewise.
27535         * modules/sys_select (Makefile.am): Likewise.
27536         * modules/sys_socket (Makefile.am): Likewise.
27537         * modules/sys_stat (Makefile.am): Likewise.
27538         * modules/sys_time (Makefile.am): Likewise.
27539         * modules/sysexits (Makefile.am): Likewise.
27540         * modules/time (Makefile.am): Likewise.
27541         * modules/unistd (Makefile.am): Likewise.
27542         * modules/wchar (Makefile.am): Likewise.
27543         * modules/wctype (Makefile.am): Likewise.
27544         Reported by Reuben Thomas <rrt@sc3d.org>.
27545
27546 2008-08-29  Bruno Haible  <bruno@clisp.org>
27547
27548         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27549         any more.
27550
27551 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27552
27553         * MODULES.html.sh (Misc): Add bitrotate.
27554
27555         * modules/bitrotate: New file.
27556
27557         * lib/bitrotate.h: New file.
27558
27559         * modules/bitrotate-tests: New file.
27560
27561         * tests/test-bitrotate.c: New file.
27562
27563         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27564         on the bitrotate module.
27565
27566         * lib/arctwo.c: Use new bitrotate module.
27567
27568 2008-08-29  Jim Meyering  <meyering@redhat.com>
27569
27570         bootstrap: merge changes from coreutils
27571         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27572         of copied files.  Remove a kludge, now that this is fixed.
27573         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27574         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27575         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27576
27577 2008-08-29  Bruno Haible  <bruno@clisp.org>
27578
27579         * MODULES.html.sh: Remove --cvs-urls option.
27580
27581 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27582
27583         maint.mk: adjust to file name change
27584         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27585
27586 2008-08-28  Jim Meyering  <meyering@redhat.com>
27587
27588         * modules/getndelim2 (License): Relicense to LGPLv2+.
27589         Approved by Richard Stallman for the version of 1995, and by
27590         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27591
27592 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27593
27594         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27595         dummy if one is not available.  Do not touch them if
27596         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27597         (getc_maybe_unlocked): New.
27598         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27599
27600 2008-08-26  Eric Blake  <ebb9@byu.net>
27601
27602         doc/INSTALL: resync from autoconf
27603         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27604         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27605         moving...
27606         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27607         * INSTALL: Regenerate.
27608         * INSTALL.ISO: New file.
27609         * INSTALL.UTF-8: Likewise.
27610
27611 2008-08-26  Jim Meyering  <meyering@redhat.com>
27612
27613         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27614         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27615         these definitions conditional, so that they may be overridden, too.
27616
27617 2008-08-26  Bruno Haible  <bruno@clisp.org>
27618
27619         Generate INSTALL file variants with prettier quotes.
27620         * doc/Makefile (INSTALL_PRELUDE): New macro.
27621         (INSTALL): Use it.
27622         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27623
27624 2008-08-26  Bruno Haible  <bruno@clisp.org>
27625
27626         Run makeinfo in an English locale.
27627         * doc/Makefile (MAKEINFO): New variable.
27628
27629 2008-08-26  Bruno Haible  <bruno@clisp.org>
27630
27631         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27632         Suggested by Eric Blake.
27633
27634 2008-08-25  Bruno Haible  <bruno@clisp.org>
27635
27636         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27637
27638 2008-08-25  Eric Blake  <ebb9@byu.net>
27639
27640         c-stack: test that stack overflow can be caught
27641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27642         that platform allows handling stack overflow; at least OS/2 EMX
27643         has sigaltstack, but crashes before transferring control to
27644         handler on stack overflow.
27645         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27646         check for HAVE_STACK_OVERFLOW_HANDLING.
27647         Reported by Elbert Pol.
27648
27649 2008-08-25  Bruno Haible  <bruno@clisp.org>
27650
27651         * doc/posix-functions/strftime.texi: Fix description of strftime
27652         module.
27653
27654 2008-08-24  Bruno Haible  <bruno@clisp.org>
27655
27656         * tests/uniwidth/test-uc_width2.c: New file.
27657         * tests/uniwidth/test-uc_width2.sh: New file.
27658         * modules/uniwidth/width-tests (Files): Add the new files.
27659         (TESTS): Add uniwidth/test-uc_width2.sh.
27660         (TESTS_ENVIRONMENT): New variable.
27661         (check_PROGRAMS): Add test-uc_width2.
27662         (test_uc_width2_SOURCES): New variable.
27663
27664         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27665         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27666         not 0x00AB.
27667         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27668
27669 2008-08-22  Eric Blake  <ebb9@byu.net>
27670
27671         test-lock, test-tls: mention why a test is skipped
27672         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27673         skipped.
27674         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27675
27676         count-one-bits: relax license
27677         * modules/count-one-bits (License): Relicense to LGPLv2+.
27678         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27679
27680 2008-08-22  Andreas Schwab  <schwab@suse.de>
27681
27682         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27683         Remove spurious space in assignment.
27684
27685 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27686
27687         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27688         Paul Eggert <eggert@CS.UCLA.EDU>.
27689
27690 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27691
27692         * modules/gettext: Add m4/threadlib.m4.
27693
27694 2008-08-19  Eric Blake  <ebb9@byu.net>
27695
27696         test-c-stack: fix compilation failure on FreeBSD 5.0
27697         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27698         headers before <sys/resource.h>.
27699         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27700         the bug.
27701         Reported by Nelson H. F. Beebe.
27702
27703         strverscmp: migrate from "strverscmp.h" to <string.h>
27704         * modules/string (Makefile.am): Add new hooks.
27705         * modules/strverscmp (Files): Remove strverscmp.h.
27706         (Depends-on): Add string.
27707         (configure.ac): Add indicator.
27708         (Include): Mention new header.
27709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27710         defaults.
27711         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27712         results.
27713         * lib/strverscmp.h: Delete.
27714         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27715         * tests/test-strverscmp.c (includes): Adjust client.
27716         * lib/check-version.c (includes): Likewise.
27717         * NEWS: Document the change.
27718
27719         strverscmp: add unit test
27720         * modules/strverscmp-tests: New file.
27721         * tests/test-strverscmp.c: Likewise.
27722
27723 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27724
27725         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27726         regarding Windows crypto stuff, from Mono.
27727
27728 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27729
27730         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27731         if present, for intel RND.  Return error on failures.
27732
27733 2008-08-18  Ben Pfaff  <blp@gnu.org>
27734
27735         gitlog-to-changelog: give better diagnostic for failed pipe-open
27736         * build-aux/gitlog-to-changelog: Improve error message: suggest
27737         that the version of Git may be too old.
27738
27739 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27740
27741         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27742         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27743
27744 2008-08-18  Bruno Haible  <bruno@clisp.org>
27745
27746         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27747         pthread_in_use().
27748
27749 2008-08-18  Bruno Haible  <bruno@clisp.org>
27750
27751         * lib/glthread/threadlib.c: Include <pthread.h>.
27752
27753 2008-08-18  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27756         glthread_recursive_lock_* macros.
27757         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27758         Fix syntax error.
27759
27760 2008-08-18  Bruno Haible  <bruno@clisp.org>
27761
27762         * lib/glthread/thread.c: Avoid forcing a context switch right after
27763         thread creation.
27764
27765 2008-08-17  Bruno Haible  <bruno@clisp.org>
27766
27767         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27768         * lib/glthread/thread.h: Provide Win32 specific implementation.
27769         * modules/thread (Files): Add lib/glthread/thread.c.
27770         (Depends-on): Add lock.
27771         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27772
27773 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27774
27775         New module 'yield'.
27776         * modules/yield: New file.
27777         * lib/glthread/yield.h: New file.
27778         * m4/yield.m4: New file.
27779         * MODULES.html.sh (Multithreading): Add yield.
27780
27781 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27782
27783         New module 'thread'.
27784         * modules/thread: New file.
27785         * lib/glthread/thread.h: New file.
27786         * m4/thread.m4: New file.
27787         * MODULES.html.sh (Multithreading): Add thread.
27788
27789 2008-08-17  Bruno Haible  <bruno@clisp.org>
27790
27791         * lib/glthread/lock.h: Include <stdlib.h> always.
27792         * lib/glthread/tls.h: Likewise.
27793         * lib/glthread/cond.h: Likewise.
27794
27795 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27796
27797         New module 'cond'.
27798         * modules/cond: New file.
27799         * lib/glthread/cond.h: New file.
27800         * lib/glthread/cond.c: New file.
27801         * m4/cond.m4: New file.
27802         * MODULES.html.sh (Multithreading): Add cond.
27803
27804 2008-08-16  Eric Blake  <ebb9@byu.net>
27805
27806         c-stack: fix regression on Irix 5.3 from 2008-06-21
27807         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27808         sa_sigaction...
27809         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27810         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27811         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27812         * modules/signal (Makefile.am): Use the value.
27813         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27814         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27815         * doc/posix-headers/signal.texi (signal.h): Document this
27816         portability issue.
27817         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27818         Reported by Tom G. Christensen.
27819
27820 2008-08-17  Bruno Haible  <bruno@clisp.org>
27821
27822         New module 'threadlib'.
27823         * modules/threadlib: New file.
27824         * lib/glthread/threadlib.c: New file, extracted from
27825         lib/glthread/lock.c.
27826         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27827         functions.
27828         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27829         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27830         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27831         macros.
27832         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27833         (gl_DISABLE_THREADS): Remove macro.
27834         * modules/lock (Files): Remove build-aux/config.rpath.
27835         (Depends-on): Remove havelib. Add threadlib.
27836         (configure.ac-early): Remove section.
27837         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27838         * modules/tls (Depends-on): Remove lock. Add threadlib.
27839         (Link): New section, copied from threadlib.
27840         * MODULES.html.sh (Multithreading): Add threadlib.
27841
27842 2008-08-14  Bruno Haible  <bruno@clisp.org>
27843
27844         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27845         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27846         glthread_rwlock_unlock, glthread_rwlock_destroy,
27847         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27848         glthread_recursive_lock_destroy): Define as macros always.
27849         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27850         glthread_lock_lock.
27851         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27852         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27853         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27854         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27855         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27856         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27857         (glthread_recursive_lock_lock_func): Renamed from
27858         glthread_recursive_lock_lock.
27859         (glthread_recursive_lock_unlock_func): Renamed from
27860         glthread_recursive_lock_unlock.
27861         (glthread_recursive_lock_destroy_func): Renamed from
27862         glthread_recursive_lock_destroy.
27863
27864 2008-08-14  Bruno Haible  <bruno@clisp.org>
27865
27866         * lib/glthread/lock.h: Renamed from lib/lock.h.
27867         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27868         * lib/glthread/tls.h: Renamed from lib/tls.h.
27869         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27870         * lib/fstrcmp.c: Update includes.
27871         * lib/strsignal.c: Update includes.
27872         * modules/lock (Files, Makefile.am): Update.
27873         (Include): Change to "glthread/lock.h".
27874         * modules/tls (Files, Makefile.am): Update.
27875         (Include): Change to "glthread/tls.h".
27876         * tests/test-lock.c: Update includes.
27877         * tests/test-tls.c: Update includes.
27878         * NEWS: Mention the renamed header files.
27879
27880 2008-08-11  Jim Meyering  <meyering@redhat.com>
27881
27882         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27883
27884 2008-08-11  Eric Blake  <ebb9@byu.net>
27885
27886         test-c-stack: avoid C99-ism
27887         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27888         before statement.
27889         Reported by Alain Guibert.
27890
27891 2008-08-10  Jim Meyering  <meyering@redhat.com>
27892
27893         ensure that return value of uinttostr et al are not ignored
27894         * lib/inttostr.h (__GNUC_PREREQ): Define.
27895         (__attribute_warn_unused_result__): Define.
27896         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27897
27898 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27899
27900         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27901         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27902
27903 2008-08-07  Jim Meyering  <meyering@redhat.com>
27904
27905         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27906
27907         * modules/mkstemp (License): Relicense under LGPLv2+.
27908         * modules/tempname (License): Likewise.
27909
27910 2008-08-06  Bruno Haible  <bruno@clisp.org>
27911
27912         * lib/poll.c (poll): Further micro-optimization.
27913
27914 2008-08-06  Jim Meyering  <meyering@redhat.com>
27915
27916         inet_pton.c: use locale-independent tolower
27917         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27918         (inet_pton6): Use c_tolower rather than tolower.
27919         * modules/inet_pton (Depends-on): Add c-ctype.
27920
27921 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
27922
27923         * lib/poll.c (poll): Avoid division when timeout is 0, cache
27924         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
27925
27926 2008-08-06  Jim Meyering  <meyering@redhat.com>
27927
27928         * modules/inet_pton (License): Relicense under LGPLv2+.
27929
27930 2008-08-03  Bruno Haible  <bruno@clisp.org>
27931
27932         Additional non-aborting API for lock and tls.
27933         * lib/lock.h: Include <errno.h>.
27934         (glthread_lock_init): New macro/function.
27935         (gl_lock_init): Define as wrapper around glthread_lock_init.
27936         (glthread_lock_lock): New macro/function.
27937         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
27938         (glthread_lock_unlock): New macro/function.
27939         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
27940         (glthread_lock_destroy): New macro/function.
27941         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
27942         (glthread_rwlock_init): New macro/function.
27943         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
27944         (glthread_rwlock_rdlock): New macro/function.
27945         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
27946         (glthread_rwlock_wrlock): New macro/function.
27947         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
27948         (glthread_rwlock_unlock): New macro/function.
27949         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
27950         (glthread_rwlock_destroy): New macro/function.
27951         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
27952         (glthread_recursive_lock_init): New macro/function.
27953         (gl_recursive_lock_init): Define as wrapper around
27954         glthread_recursive_lock_init.
27955         (glthread_recursive_lock_lock): New macro/function.
27956         (gl_recursive_lock_lock): Define as wrapper around
27957         glthread_recursive_lock_lock.
27958         (glthread_recursive_lock_unlock): New macro/function.
27959         (gl_recursive_lock_unlock): Define as wrapper around
27960         glthread_recursive_lock_unlock.
27961         (glthread_recursive_lock_destroy): New macro/function.
27962         (gl_recursive_lock_destroy): Define as wrapper around
27963         glthread_recursive_lock_destroy.
27964         (glthread_once): New macro/function.
27965         (gl_once): Define as wrapper around glthread_once.
27966         Update function declarations.
27967         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
27968         glthread_rwlock_init. Return error code.
27969         (glthread_rwlock_rdlock_multithreaded): Renamed from
27970         glthread_rwlock_rdlock. Return error code.
27971         (glthread_rwlock_wrlock_multithreaded): Renamed from
27972         glthread_rwlock_wrlock. Return error code.
27973         (glthread_rwlock_unlock_multithreaded): Renamed from
27974         glthread_rwlock_unlock. Return error code.
27975         (glthread_rwlock_destroy_multithreaded): Renamed from
27976         glthread_rwlock_destroy. Return error code.
27977         (glthread_recursive_lock_init_multithreaded): Renamed from
27978         glthread_recursive_lock_init. Return error code.
27979         (glthread_recursive_lock_lock_multithreaded): Renamed from
27980         glthread_recursive_lock_lock. Return error code.
27981         (glthread_recursive_lock_unlock_multithreaded): Renamed from
27982         glthread_recursive_lock_unlock. Return error code.
27983         (glthread_recursive_lock_destroy_multithreaded): Renamed from
27984         glthread_recursive_lock_destroy. Return error code.
27985         (glthread_once_call): Make static.
27986         (glthread_once_multithreaded): Renamed from glthread_once.
27987         * lib/tls.h: Include <errno.h>.
27988         (glthread_tls_key_init): New macro/function.
27989         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
27990         (glthread_tls_set): New macro/function.
27991         (gl_tls_set): Define as wrapper around glthread_tls_set.
27992         (glthread_tls_key_destroy): New macro/function.
27993         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
27994         Update function declarations.
27995         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
27996         glthread_tls_get.
27997         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27998
27999 2008-08-04  Eric Blake  <ebb9@byu.net>
28000
28001         gnumakefile: use space, not TAB, outside of targets
28002         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28003
28004 2008-08-02  Jim Meyering  <meyering@redhat.com>
28005
28006         getdate.y: avoid locale-dependent date parsing failure
28007         In Turkish locales, getdate would fail to recognize keywords
28008         containing a lowercase "i".  The solution is not to rely on
28009         locale-sensitive case-conversion.
28010         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28011         (lookup_word): Use c_toupper in place of toupper.
28012         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28013         Reported by Vefa Bicakci <bicave@superonline.com> in
28014         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28015         * modules/getdate (Depends-on): Add c-ctype.
28016
28017 2008-08-02  Bruno Haible  <bruno@clisp.org>
28018
28019         * gnulib-tool (func_import): When updating or creating a .gitignore
28020         file, prepend each added line with a slash, and ignore leading slashes
28021         from the existing lines.
28022         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28023
28024 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28025
28026         Portability fix for GNU make 3.79.1.
28027         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28028         versions do not understand.
28029
28030 2008-08-01  Bruno Haible  <bruno@clisp.org>
28031
28032         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28033         * tests/test-isnanf.h (zero): New variable.
28034         (main): Avoid literal -0.0f.
28035         * tests/test-isnand.h (zero): New variable.
28036         (main): Avoid literal -0.0.
28037         * tests/test-isnanl.h (zero): New variable.
28038         (main): Avoid literal -0.0L.
28039         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28040         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28041         -0.0, -0.0L.
28042         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28043         (test_signbitd): Avoid literal -0.0.
28044         (test_signbitl): Avoid literal -0.0L.
28045         * tests/test-ceilf1.c (zero): New variable.
28046         (main): Avoid literal -0.0f.
28047         * tests/test-ceill.c (zero): New variable.
28048         (main): Avoid literal -0.0L.
28049         * tests/test-floorf1.c (zero): New variable.
28050         (main): Avoid literal -0.0f.
28051         * tests/test-floorl.c (zero): New variable.
28052         (main): Avoid literal -0.0L.
28053         * tests/test-roundf1.c (zero): New variable.
28054         (main): Avoid literal -0.0f.
28055         * tests/test-round1.c (zero): New variable.
28056         (main): Avoid literal -0.0.
28057         * tests/test-roundl.c (zero): New variable.
28058         (main): Avoid literal -0.0L.
28059         * tests/test-truncf1.c (zero): New variable.
28060         (main): Avoid literal -0.0f.
28061         * tests/test-trunc1.c (zero): New variable.
28062         (main): Avoid literal -0.0.
28063         * tests/test-truncl.c (zero): New variable.
28064         (main): Avoid literal -0.0L.
28065         * tests/test-frexp.c (zero): New variable.
28066         (main): Avoid literal -0.0.
28067         * tests/test-frexpl.c (zero): New variable.
28068         (main): Avoid literal -0.0L.
28069         * tests/test-ldexpl.c (zero): New variable.
28070         (main): Avoid literal -0.0L.
28071         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28072         (zerod, zerol): New variables.
28073         (test_function): Avoid literals -0.0, -0.0L.
28074         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28075         (zerod, zerol): New variables.
28076         (test_function): Avoid literals -0.0, -0.0L.
28077         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28078         (zerod, zerol): New variables.
28079         (test_function): Avoid literals -0.0, -0.0L.
28080         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28081         (zerod, zerol): New variables.
28082         (test_function): Avoid literals -0.0, -0.0L.
28083         * tests/test-strtod.c (zero): New variable.
28084         (main): Avoid literal -0.0.
28085         Reported by Jonathan C. Patschke <jp@centtech.com>.
28086
28087 2008-07-31  Jim Meyering  <meyering@redhat.com>
28088
28089         sha256.h: correct definition of SHA224_DIGEST_SIZE
28090         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28091         Reported by Paulie Pena IV <paulie4@gmail.com>.
28092         Define as 224 / 8, rather than as a literal.
28093         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28094         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28095         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28096
28097 2008-07-31  Bruno Haible  <bruno@clisp.org>
28098
28099         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28100         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28101         Reported by Jonathan Patschke <jp@centtech.com>.
28102
28103 2008-07-31  Bruno Haible  <bruno@clisp.org>
28104
28105         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28106         Reported by Paolo Bonzini <bonzini@gnu.org>.
28107
28108 2008-07-30  Eric Blake  <ebb9@byu.net>
28109
28110         test-strtod: allow compilation without -lm
28111         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28112         Reported by Dennis Clarke <blastwave@gmail.com>.
28113
28114 2008-07-28  Jim Meyering  <meyering@redhat.com>
28115
28116         bootstrap: work also when there are no .po files in po/
28117         * build-aux/bootstrap (update_po_files): Complete the change
28118         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28119
28120 2008-07-27  Jim Meyering  <meyering@redhat.com>
28121
28122         * users.txt: Add zile.
28123
28124 2008-07-26  Ben Pfaff  <blp@gnu.org>
28125
28126         Add missing dependencies on new m4/exponent[fdl].m4 files.
28127         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28128         * modules/isnand-nolibm: Add m4/exponentd.m4.
28129         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28130         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28131         m4/isnan[fdl].m4, because the macros actually used moved.
28132         Reported by Jim Meyering.
28133
28134 2008-07-14  Ben Pfaff  <blp@gnu.org>
28135
28136         Add isinf module.
28137         * lib/isinf.c: New file.
28138         * lib/math.in.h: Define isinf macro if we have decided to replace
28139         it.
28140         * m4/isinf.m4: New file.
28141         * m4/math_h.m4: Initialize and substitute variables for isinf
28142         module.
28143         * modules/isinf: New file.
28144         * modules/isinf-tests: New file.
28145         * modules/math: Add substitutions for new module.
28146         * tests/test-isinf.c: New file.
28147         * doc/posix-functions/isinf.texi: Mention new module.
28148         * MODULES.html.sh: Mention new module.
28149
28150 2008-07-14  Ben Pfaff  <blp@gnu.org>
28151
28152         Factor out some macros for use by additional modules.
28153         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28154         exponentf.m4.
28155         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28156         exponentd.m4.
28157         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28158         file exponentl.m4.
28159         * m4/exponentf.m4: New file.
28160         * m4/exponentd.m4: New file.
28161         * m4/exponentl.m4: New file.
28162         * modules/isnanf: Use new file m4/exponentf.m4.
28163         * modules/isnand: Use new file m4/exponentd.m4.
28164         * modules/isnanl: Use new file m4/exponentl.m4.
28165
28166 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28167
28168         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28169         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28170         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28171         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28172
28173         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28174         readlink on platforms without PATH_MAX.
28175
28176 2008-07-21  Eric Blake  <ebb9@byu.net>
28177
28178         Warn, not fail, on stale version.
28179         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28180
28181         Don't allow installation with stale devel version number.
28182         * top/GNUmakefile (_is-install-target): New macro.
28183         (_curr-ver): Forbid installation with stale version number.
28184
28185 2008-07-20  Bruno Haible  <bruno@clisp.org>
28186
28187         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28188         TESTS_ENVIRONMENT.
28189         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28190
28191 2008-07-20  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/c-stack.h (c_stack_action): Add documentation.
28194         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28195
28196 2008-07-20  Bruno Haible  <bruno@clisp.org>
28197
28198         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28199         * modules/readlink (License): Likewise.
28200
28201 2008-07-17  Eric Blake  <ebb9@byu.net>
28202
28203         * modules/c-stack (Link): Fix typo.
28204
28205         Make c-stack use libsigsegv, when available.
28206         * modules/c-stack (Depends-on): Add libsigsegv.
28207         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28208         needed.
28209         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28210         (segv_handler, overflow_handler, c_stack_action)
28211         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28212         implementation when libsigsegv is available, but only when using
28213         the library is necessary.
28214         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28215         comment, explaining why XSI check fails on Linux.
28216         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28217         * tests/test-c-stack2.sh: Tweak skip message.
28218         * NEWS: Document new link-time requirements.
28219
28220 2008-07-16  Eric Blake  <ebb9@byu.net>
28221
28222         c-stack: Expose false positives when not using libsigsegv.
28223         * modules/c-stack-tests (Files): Expand test.
28224         * tests/test-c-stack.c (main): Add means to conditionally trigger
28225         non-overflow SIGSEGV.
28226         * tests/test-c-stack2.sh: New file.
28227
28228 2008-07-14  Bruno Haible  <bruno@clisp.org>
28229
28230         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28231         Reported by Eric Blake.
28232
28233 2008-07-14  Sam Steingold  <sds@gnu.org>
28234             Bruno Haible  <bruno@clisp.org>
28235
28236         New module libsigsegv.
28237         * modules/libsigsegv: New file.
28238         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28239         modifications.
28240         * MODULES.html.sh (Signal handling): New section.
28241
28242 2008-07-14  Bruno Haible  <bruno@clisp.org>
28243
28244         * modules/unictype/ctype-* (Description): Add the word "function".
28245         Improves the resulting doc in MODULES.html.
28246
28247 2008-07-12  Ben Pfaff  <blp@gnu.org>
28248
28249         Add longlong module.
28250         * modules/longlong: New file.
28251
28252 2008-07-12  Bruno Haible  <bruno@clisp.org>
28253
28254         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28255         to empty.
28256
28257 2008-07-10  Ben Pfaff  <blp@gnu.org>
28258
28259         Add isnan module.
28260         * doc/posix-functions/isnan.texi: Mention new module.
28261         * lib/math.in.h: Define isnan macro if we have decided to replace
28262         it.
28263         * m4/isnan.m4: New file.
28264         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28265         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28266         also.
28267         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28268         redundancy.
28269         * m4/math_h.m4: Initialize and substitute variables for isnan
28270         module.
28271         * modules/isnan: New file.
28272         * modules/isnan-tests: New file.
28273         * modules/math: Add substitutions for new module.
28274         * tests/test-isnan.c: New file.
28275         * MODULES.html.sh: Mention new module.
28276
28277 2008-07-10  Ben Pfaff  <blp@gnu.org>
28278
28279         Add isnanf module.
28280         * lib/isnanf.m4: New file.
28281         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28282         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28283         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28284         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28285         * modules/isnanf: New file.
28286         * modules/isnanf-tests: New file.
28287         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28288         files.
28289         * tests/test-isnanf-nolibm.c: factored most of its contents into
28290         new file tests/test-isnanf.h.
28291         * tests/test-isnanf.h: New file.
28292         * tests/test-isnanf.c: New file.
28293         * MODULES.html.sh: Mention new module.
28294         * doc/glibc-functions/isnanf.texi: Mention new module.
28295
28296 2008-07-10  Ben Pfaff  <blp@gnu.org>
28297
28298         Add isnand module.
28299         * lib/isnand.h: New file.
28300         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28301         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28302         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28303         functionality also.
28304         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28305         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28306         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28307         * modules/isnand: New file.
28308         * modules/isnand-tests: New file.
28309         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28310         files.
28311         * tests/test-isnand-nolibm.c: factored most of its contents into
28312         new file tests/test-isnand.h.
28313         * tests/test-isnand.h: New file.
28314         * tests/test-isnand.c: New file.
28315         * MODULES.html.sh: Mention new module.
28316
28317 2008-07-10  Ben Pfaff  <blp@gnu.org>
28318
28319         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28320         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28321         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28322         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28323         * modules/isnanf-nolibm: Update references to renamed files.
28324         * modules/isnand-nolibm: Likewise.
28325         * modules/isnanf-nolibm-tests: Likewise.
28326         * modules/isnand-nolibm-tests: Likewise.
28327         * lib/frexp.c: Likewise.
28328         * lib/isfinite.c: Likewise.
28329         * lib/signbitd.c: Likewise.
28330         * lib/signbitf.c: Likewise.
28331         * lib/vasnprintf.c: Likewise.
28332         * tests/test-ceilf1.c: Likewise.
28333         * tests/test-ceilf2.c: Likewise.
28334         * tests/test-floorf1.c: Likewise.
28335         * tests/test-floorf2.c: Likewise.
28336         * tests/test-frexp.c: Likewise.
28337         * tests/test-round1.c: Likewise.
28338         * tests/test-round2.c: Likewise.
28339         * tests/test-roundf1.c: Likewise.
28340         * tests/test-strtod.c: Likewise.
28341         * tests/test-trunc1.c: Likewise.
28342         * tests/test-trunc2.c: Likewise.
28343         * tests/test-truncf1.c: Likewise.
28344         * tests/test-truncf2.c: Likewise.
28345         * NEWS: Mention the renamed header files.
28346
28347 2008-07-11  Jim Meyering  <meyering@redhat.com>
28348
28349         vc-list-files: make the last-resort awk code more portable
28350         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28351         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28352         does not support it.
28353
28354 2008-07-10  Eric Blake  <ebb9@byu.net>
28355
28356         Work with tar's bootstrap.
28357         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28358         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28359         an m4 comment.
28360
28361 2008-07-09  Jim Meyering  <meyering@redhat.com>
28362
28363         posix-shell.m4: fix typo that made this test malfunction
28364         * m4/posix-shell.m4: Remove capitalization in variable name.
28365
28366 2008-07-08  Bruno Haible  <bruno@clisp.org>
28367
28368         * m4/onceonly.m4: Update comments.
28369         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28370
28371 2008-07-04  Jim Meyering  <meyering@redhat.com>
28372
28373         * users.txt: Add vc-dwim.
28374         (bison, coreutils): Use the gitweb URL.
28375
28376 2008-07-03  Jim Meyering  <meyering@redhat.com>
28377
28378         * users.txt: Add libffcall.  From Sam Steingold.
28379
28380 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28381
28382         getdate.y: do not ignore TZ with relative day, month or year offset
28383         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28384         relative-date-handling, since otherwise, the latter would clobber the
28385         sole output (an updated Start value) of the tz-handling block.
28386         * tests/test-getdate.c: Tests for the fix
28387
28388 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28389
28390         Recognize 'foo_LIBRARIES += libgnu.a'.
28391         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28392         makefile snippet has already specified an installation location,
28393         also using '+='.
28394
28395 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28396
28397         getdate.y: factor out common actions
28398         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28399         Use them in place of open-coded actions.
28400
28401 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28402
28403         Add self-test for getdate module.
28404         * modules/getdate-tests: New file.
28405         * tests/test-getdate.c: New file.
28406
28407 2008-06-29  Bruno Haible  <bruno@clisp.org>
28408
28409         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28410         .gitignore.
28411         Reported by Sylvain Beucler <beuc@beuc.net>.
28412
28413 2008-06-29  Bruno Haible  <bruno@clisp.org>
28414
28415         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28416         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28417
28418 2008-06-29  Bruno Haible  <bruno@clisp.org>
28419
28420         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28421         EXTRA_DIST.
28422         Reported by Sylvain Beucler <beuc@beuc.net>.
28423
28424 2008-06-26  Jim Meyering  <meyering@redhat.com>
28425
28426         make several modules depend on the "open" module
28427         This provides slightly increased consistency when opening-for-write
28428         the name of a non-directory spelled with a trailing slash.
28429         * modules/chdir-safer: Likewise.
28430         * modules/chown: Likewise.
28431         * modules/clean-temp: Likewise.
28432         * modules/copy-file: Likewise.
28433         * modules/fchdir: Likewise.
28434         * modules/fcntl-safer: Likewise.
28435         * modules/pipe: Likewise.
28436         * modules/utime: Likewise.
28437         Prompted by Eric Blake and Bruno Haible.
28438
28439 2008-06-24  Andreas Schwab  <schwab@suse.de>
28440
28441         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28442         literals can be used as initializers for global variables.
28443
28444 2008-06-23  Eric Blake  <ebb9@byu.net>
28445
28446         Make gnulib-cache.m4 easier to diff.
28447         * gnulib-tool (func_import): Allow newlines when reading cached
28448         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28449
28450 2008-06-23  Bruno Haible  <bruno@clisp.org>
28451
28452         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28453         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28454         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28455         m4/signalblocking.m4.
28456         (gl_PREREQ_SIGACTION): Don't invoke it.
28457         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28458         gl_PREREQ_SIG_HANDLER_H.
28459         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28460         Don't check for sigaction here.
28461
28462 2008-06-23  Bruno Haible  <bruno@clisp.org>
28463
28464         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28465         (install_handlers): Don't set the SA_RESETHAND flag.
28466
28467 2008-06-23  Bruno Haible  <bruno@clisp.org>
28468
28469         * m4/sigaction.m4: Comment fixes.
28470         * lib/signal.in.h: Likewise.
28471
28472 2008-06-23  Eric Blake  <ebb9@byu.net>
28473
28474         Fix typo.
28475         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28476
28477         Avoid SA_ namespace.
28478         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28479         Reported by Ralf Wildenhues.
28480
28481         Avoid test failure due to SA_RESTORER.
28482         * tests/test-sigaction.c (SA_MASK): New macro.
28483         (main): Avoid failing due to extension flags being set.
28484         Reported by Jim Meyering.
28485
28486         Revert use of sig-handler.h in sigprocmask.c.
28487         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28488         it requires the existence of struct sigaction.
28489         * lib/sigprocmask.c (handler_t): Restore typedef.
28490         (rpl_signal, old_handlers): Use local type.
28491
28492 2008-06-22  Bruno Haible  <bruno@clisp.org>
28493
28494         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28495         conditionally.
28496         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28497
28498 2008-06-22  Bruno Haible  <bruno@clisp.org>
28499
28500         * doc/posix-functions/siginterrupt.texi: Move note.
28501
28502         * lib/signal.in.h (SA_RESTART): New macro.
28503         * lib/sigaction.c: Update comment.
28504
28505         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28506
28507         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28508         (gl_PREREQ_SIGPROCMASK): Invoke it.
28509         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28510
28511         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28512
28513         * lib/sigprocmask.c: Update a comment.
28514
28515 2008-06-21  Eric Blake  <ebb9@byu.net>
28516
28517         Use sigaction module rather than signal().
28518         * modules/c-stack (Depends-on): Add sigaction.
28519         * modules/fatal-signal (Depends-on): Likewise.
28520         * modules/nanosleep (Depends-on): Likewise.
28521         * modules/sigprocmask (Files): Add sig-handler.h.
28522         * modules/sigaction (Files): Likewise.
28523         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28524         Eggert.
28525         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28526         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28527         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28528         (init_fatal_signals): Likewise.
28529         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28530         (siginterrupt): Delete fallback.
28531         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28532         instead.
28533         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28534         siginterrupt.
28535
28536         New module sigaction, for mingw.
28537         * modules/sigaction: New module...
28538         * modules/sigaction-tests: ...and its test.
28539         * m4/sigaction.m4: New file.
28540         * lib/sigaction.c: Likewise.
28541         * tests/test-sigaction.c: Likewise.
28542         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28543         * modules/signal (Makefile.am): Likewise.
28544         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28545         needed.
28546         * doc/posix-headers/signal.texi (signal.h): Mention provided
28547         types.
28548         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28549         that sigaction is preferable.
28550         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28551         module.
28552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28553         sigaction.
28554
28555         Improve robustness of sigprocmask by overriding signal.
28556         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28557         is in use.
28558         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28559         (SIGKILL, SIGSTOP): Provide fallbacks.
28560         (rpl_signal): Implement.
28561         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28562         signal can be called inside handlers.
28563
28564         Fix nanosleep module on mingw.
28565         * modules/nanosleep (Depends-on): Add sys_select.
28566         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28567
28568         Fix licensing of sigprocmask.
28569         * modules/raise (License): Relicense as LGPL.
28570
28571 2008-06-21  Bruno Haible  <bruno@clisp.org>
28572
28573         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28574         result if it contains question marks.
28575         Reported by Michael Geng <linux@michaelgeng.de>.
28576
28577 2008-06-19  Bruno Haible  <bruno@clisp.org>
28578
28579         Fix CVS-ism.
28580         * doc/gnulib.texi: Include updated-stamp.texi.
28581         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28582         (updated-stamp.texi): New rule.
28583         (gnulib.info): Depend on it.
28584         * doc/.gitignore: Add updated-stamp.texi.
28585         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28586
28587 2008-06-19  Bruno Haible  <bruno@clisp.org>
28588
28589         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28590         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28591
28592 2008-06-19  Eric Blake  <ebb9@byu.net>
28593
28594         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28595         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28596         Reported by Stepan Kasal.
28597
28598 2008-06-18  Bruno Haible  <bruno@clisp.org>
28599
28600         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28601         Reported by Eric Blake.
28602
28603 2008-06-18  Eric Blake  <ebb9@byu.net>
28604
28605         Work around cygwin 1.5.25 strsignal bug.
28606         * tests/test-strsignal.c: Allow for const char *.
28607         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28608
28609 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28610
28611         * users.txt: Update URL to article and add author/date
28612         information.
28613
28614 2008-06-17  Bruno Haible  <bruno@clisp.org>
28615
28616         New macro gl_DISABLE_THREADS.
28617         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28618         if the user did not pass --enable-threads or --disable-threads option.
28619         (gl_DISABLE_THREADS): New macro.
28620         Reported by Eric Blake <ebb9@byu.net>.
28621
28622 2008-06-17  Bruno Haible  <bruno@clisp.org>
28623
28624         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28625         when the macro ignores it.
28626         Based on a patch by Eric Blake <ebb9@byu.net>.
28627
28628 2008-06-17  Bruno Haible  <bruno@clisp.org>
28629
28630         * modules/tls (License): Change to LGPLv2+.
28631         Reported by Eric Blake.
28632
28633 2008-06-17  Eric Blake  <ebb9@byu.net>
28634
28635         Simplify c-stack prerequisites.
28636         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28638         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28639         check.
28640         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28641         <sys/resource.h>.
28642
28643         Move c-stack test into testsuite.
28644         * modules/c-stack-tests: New file.
28645         * lib/c-stack.c [DEBUG]: Move test program...
28646         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28647         fail test if sigaltstack is lacking.
28648         * tests/test-c-stack.sh: New driver file.
28649
28650 2008-06-16  Eric Blake  <ebb9@byu.net>
28651
28652         Use raise module consistently.
28653         * modules/fatal-signal (Depends-on): Add raise.
28654         * modules/sigprocmask (Depends-on): Likewise.
28655         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28656         * lib/sigprocmask.c (sigprocmask): Likewise.
28657         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28658         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28659
28660         Fix compliance bug in sigpending.
28661         * lib/sigprocmask.c (sigpending): Return pending array via
28662         parameter, not return value.
28663
28664 2008-06-14  Eric Blake  <ebb9@byu.net>
28665
28666         Improve obstack-printf test code.
28667         * tests/test-obstack-printf.c (test_function): Fix comment, and
28668         simplify usage of obstack_* in macros.  Add a test for coverage.
28669         Reported by Bruno Haible.
28670
28671 2008-06-14  Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28674         array size as a constant, not as a const variable.
28675         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28676         AC_USE_SYSTEM_EXTENSIONS.
28677         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28678         Test whether the obstack_printf function actually exists.
28679         * modules/obstack-printf (Depends-on): Add extensions.
28680         (Include): Remove obstack.h.
28681         * modules/obstack-printf-posix (Depends-on): Add extensions.
28682         (Include): Remove obstack.h.
28683
28684 2008-06-13  Eric Blake  <ebb9@byu.net>
28685
28686         Add obstack-printf and obstack-printf-posix modules.
28687         * modules/obstack-printf: New file.
28688         * modules/obstack-printf-posix: Likewise.
28689         * MODULES.html.sh (Misc): Mention them.
28690         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28691         Likewise.
28692         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28693         Likewise.
28694         * modules/stdio (Makefile.am): Accomodate new modules.
28695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28696         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28697         Declare.
28698         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28699         functions.
28700         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28701         (gl_REPLACE_OBSTACK_PRINTF): New macros
28702         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28703         * tests/test-obstack-printf.c: New file.
28704         * modules/obstack-printf-tests: Likewise.
28705         * modules/obstack-printf-posix-tests: Likewise.
28706
28707 2008-06-11  Bruno Haible  <bruno@clisp.org>
28708
28709         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28710         * lib/open.c: Include errno.h.
28711         (open): Fail when attempting to write to a file that has a trailing
28712         slash.
28713         * tests/test-open.c (main): Test against trailing slash bug.
28714         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28715
28716 2008-06-10  Bruno Haible  <bruno@clisp.org>
28717
28718         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28719         for $? to work inside the trap command, with various /bin/sh-s.
28720         * tests/test-vc-list-files-cvs.sh: Likewise.
28721
28722 2008-06-10  Bruno Haible  <bruno@clisp.org>
28723
28724         * lib/acl-internal.h: Don't include gettext.h here.
28725         * lib/set-mode-acl.c: Include gettext.h here.
28726         * lib/copy-acl.c: Likewise.
28727
28728 2008-06-10  Bruno Haible  <bruno@clisp.org>
28729
28730         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28731         * lib/wait-process.c (wait_subprocess): Likewise.
28732         * lib/execute.h (execute): Add termsigp argument.
28733         * lib/execute.c (execute): Likewise.
28734         * lib/csharpcomp.c (compile_csharp_using_pnet,
28735         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28736         * lib/csharpexec.c (execute_csharp_using_pnet,
28737         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28738         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28739         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28740         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28741         is_jikes_present): Update.
28742         * lib/javaexec.c (execute_java_class): Update.
28743         * lib/javaversion.c (execute_and_read_line): Update.
28744         * NEWS: Document the changes.
28745         Reported by Eric Blake.
28746
28747 2008-06-10  Eric Blake  <ebb9@byu.net>
28748
28749         Add missing include.
28750         * tests/test-strstr.c (includes): Add <signal.h>.
28751         * tests/test-strcasestr.c (includes): Likewise.
28752         * tests/test-memmem.c (includes): Likewise.
28753
28754 2008-06-10  Bruno Haible  <bruno@clisp.org>
28755
28756         * lib/wait-process.c (wait_subprocess): Add an assertion.
28757
28758 2008-06-10  Bruno Haible  <bruno@clisp.org>
28759
28760         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28761
28762 2008-06-10  Bruno Haible  <bruno@clisp.org>
28763
28764         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28765         using alarm().
28766         * tests/test-strcasestr.c (main): Likewise.
28767         * tests/test-strstr.c (main): Likewise.
28768
28769 2008-06-09  Bruno Haible  <bruno@clisp.org>
28770
28771         Work around the Solaris 10 ACE ACLs ABI change.
28772         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28773         declare if ACL_NO_TRIVIAL is present.
28774         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28775         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28776         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28777         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28778         define if ACL_NO_TRIVIAL is present.
28779         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28780         and use the current ABI.
28781         (file_has_acl): Use same #if condition as elsewhere.
28782         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28783         in use, and use the current ABI.
28784         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28785         Reported by Jim Meyering.
28786
28787 2008-06-09  Eric Blake  <ebb9@byu.net>
28788
28789         Work around environments that (stupidly) ignore SIGALRM.
28790         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28791         before using alarm().
28792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28793         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28794         Reported by Ian Beckwith <ianb@erislabs.net>.
28795
28796         Produce autobuild blurb earlier in log.
28797         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28798
28799 2008-06-09  Jim Meyering  <meyering@redhat.com>
28800         and Ondřej Vašík  <ovasik@redhat.com>
28801
28802         utimens.c: correct kernel bug work-around
28803         Ondřej Vašík found that the invalid return value of 280 indicates
28804         failure, not success, and the kernel bug we're trying to work
28805         around affects not just the utimensat call, but also the fallback
28806         futimens call.
28807         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28808         not success.
28809         [HAVE_FUTIMENS]: Use the same work-around, here.
28810
28811 2008-06-09  Jim Meyering  <meyering@redhat.com>
28812
28813         add more guards around definition of ACE_-related code
28814         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28815         ALLOW and ACE_OWNER are also defined.
28816
28817 2008-06-08  Bruno Haible  <bruno@clisp.org>
28818
28819         * lib/acl-internal.h: Add me as co-author.
28820         * lib/file-has-acl.c: Likewise.
28821         * lib/set-mode-acl.c: Likewise.
28822         * lib/copy-acl.c: Likewise.
28823
28824 2008-06-08  Bruno Haible  <bruno@clisp.org>
28825
28826         Add support for AIX ACLs.
28827         * lib/acl-internal.h (acl_nontrivial): New declaration.
28828         * lib/file-has-acl.c (acl_nontrivial): New function.
28829         (file_has_acl): Add implementation using AIX 4 ACL API.
28830         * lib/set-mode-acl.c (qset_acl): Likewise.
28831         * lib/copy-acl.c (qcopy_acl): Likewise.
28832
28833 2008-06-08  Bruno Haible  <bruno@clisp.org>
28834
28835         Add support for HP-UX ACLs.
28836         * lib/acl-internal.h (acl_nontrivial): New declaration.
28837         * lib/file-has-acl.c (acl_nontrivial): New function.
28838         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28839         * lib/set-mode-acl.c (qset_acl): Likewise.
28840         * lib/copy-acl.c (qcopy_acl): Likewise.
28841
28842 2008-06-08  Bruno Haible  <bruno@clisp.org>
28843
28844         Add support for Cygwin ACLs.
28845         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28846         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28847         the chmod_or_fchmod call.
28848         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28849
28850 2008-06-08  Bruno Haible  <bruno@clisp.org>
28851
28852         Fix bug with setuid modes in Solaris 10+ code.
28853         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28854         succeeded, when the mode contains some special bits.
28855
28856 2008-06-08  Bruno Haible  <bruno@clisp.org>
28857
28858         Add support for Solaris 7..10 ACLs.
28859         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28860         declarations.
28861         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28862         functions.
28863         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28864         * lib/set-mode-acl.c (qset_acl): Likewise.
28865         * lib/copy-acl.c (qcopy_acl): Likewise.
28866
28867 2008-06-08  Bruno Haible  <bruno@clisp.org>
28868
28869         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28870         declaration.
28871         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28872         (acl_access_nontrivial): Remove MacOS X case.
28873         (file_has_acl): Use acl_extended_nontrivial.
28874         * lib/copy-acl.c (qcopy_acl): Likewise.
28875
28876 2008-06-08  Bruno Haible  <bruno@clisp.org>
28877
28878         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28879
28880 2008-06-08  Jim Meyering  <meyering@redhat.com>
28881
28882         * modules/acl (Maintainer): Add Bruno Haible.
28883
28884 2008-06-07  Bruno Haible  <bruno@clisp.org>
28885
28886         Improve support for Tru64 ACLs.
28887         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28888         ACL on OSF/1.
28889
28890 2008-06-07  Bruno Haible  <bruno@clisp.org>
28891
28892         Add support for MacOS X ACLs.
28893         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28894         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28895         * lib/set-mode-acl.c (qset_acl): Likewise.
28896         * lib/copy-acl.c (qcopy_acl): Likewise.
28897
28898 2008-06-07  Bruno Haible  <bruno@clisp.org>
28899
28900         Fix memory leak introduced on 2008-05-22.
28901         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28902         use.
28903
28904 2008-06-07  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28907         to construct an empty ACL.
28908
28909 2008-06-07  Bruno Haible  <bruno@clisp.org>
28910
28911         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28912         precisely.
28913         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28914
28915 2008-06-07  Bruno Haible  <bruno@clisp.org>
28916
28917         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28918         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28919
28920 2008-06-07  Bruno Haible  <bruno@clisp.org>
28921
28922         * doc/posix-functions/_setjmp.texi: Explain the use of this function
28923         regardless of POSIX.
28924         * doc/posix-functions/_longjmp.texi: Likewise.
28925         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
28926         SystemV platform in this case.
28927
28928 2008-06-06  Eric Blake  <ebb9@byu.net>
28929
28930         Document abort() bugs.
28931         * doc/posix-functions/abort.texi (abort): Mention anomalies.
28932
28933         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
28934         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
28935         sigsetjmp.
28936         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
28937         siglongjmp, but only as a macro.
28938         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
28939         is obsolete.
28940         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
28941
28942         Tweak documentation to cover cygwin argz bugs.
28943         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
28944         argz bug fix; no code change needed since no cygwin releases
28945         occurred between the last fix and the bug being tested.
28946         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28947         module and recently fixed cygwin bugs.
28948         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
28949         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
28950         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
28951         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
28952         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
28953         Likewise.
28954         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
28955         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
28956         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
28957         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
28958         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
28959         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
28960         Likewise.
28961
28962         Avoid gcc warning on cygwin.
28963         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
28964         !ACL_NO_TRIVIAL]: Avoid unused variable.
28965
28966 2008-06-05  Eric Blake  <ebb9@byu.net>
28967
28968         Be tolerant of UNKNOWN version in gnulib-tool test dir.
28969         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
28970         git-version-gen fails to come up with a version.
28971         Reported by Simon Josefsson.
28972
28973 2008-06-05  Jim Meyering  <meyering@redhat.com>
28974             Paul Eggert  <eggert@cs.ucla.edu>
28975
28976         utimens.c: work around a probable Linux kernel bug
28977         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
28978         appears to be a kernel bug that causes utimensat to return 280
28979         instead of 0, indicating success.
28980
28981 2008-06-04  Bruno Haible  <bruno@clisp.org>
28982
28983         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
28984         2008-06-01 commit.
28985
28986 2008-06-04  Bruno Haible  <bruno@clisp.org>
28987
28988         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
28989         * lib/file-has-acl.c (acl_access_nontrivial): New function.
28990         (file_has_acl): Use it. Save errno afterwards.
28991         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
28992
28993 2008-06-03  Bruno Haible  <bruno@clisp.org>
28994
28995         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
28996         draft code. Simplify #ifs.
28997         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
28998         Put Solaris code after POSIX-draft code. Fix comments regarding
28999         Solaris 10, HP-UX. Mention Cygwin.
29000         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29001
29002 2008-06-03  Eric Blake  <ebb9@byu.net>
29003
29004         Provide fallback for older kernels.
29005         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29006         Provide runtime fallback if kernel lacks support.
29007         Reported by Mike Frysinger.
29008
29009 2008-06-02  Bruno Haible  <bruno@clisp.org>
29010
29011         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29012         it exists.
29013
29014 2008-06-02  Bruno Haible  <bruno@clisp.org>
29015
29016         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29017         * lib/copy-acl.c (qcopy_acl): Update comment.
29018
29019 2008-06-02  Bruno Haible  <bruno@clisp.org>
29020
29021         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29022         like ACL APIs.
29023
29024 2008-06-02  Bruno Haible  <bruno@clisp.org>
29025
29026         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29027         * tests/test-set-mode-acl.sh: Likewise.
29028         * tests/test-copy-acl.sh: Likewise.
29029         * tests/test-copy-file.sh: Likewise.
29030
29031 2008-06-02  Bruno Haible  <bruno@clisp.org>
29032
29033         * tests/test-file-has-acl.sh: Remove unused code.
29034
29035 2008-06-01  Bruno Haible  <bruno@clisp.org>
29036
29037         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29038         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29039         messages.
29040         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29041
29042 2008-06-01  Bruno Haible  <bruno@clisp.org>
29043
29044         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29045         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29046         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29047         APIs.
29048         * modules/acl-tests (configure.ac): Remove tests now contained in
29049         m4/acl.m4.
29050
29051 2008-06-02  Jim Meyering  <meyering@redhat.com>
29052
29053         announce-gen: use a better key-server host name
29054         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29055         it may be more consistently reliable.  Suggested by Werner Koch
29056         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29057
29058 2008-06-01  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29061         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29062
29063 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29064
29065         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29066
29067 2008-06-01  Bruno Haible  <bruno@clisp.org>
29068
29069         New ACL tests.
29070         * tests/test-file-has-acl.sh: New file.
29071         * tests/test-file-has-acl.c: New file.
29072         * tests/test-set-mode-acl.sh: New file.
29073         * tests/test-set-mode-acl.c: New file.
29074         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29075         * tests/test-copy-acl.c: New file.
29076         * modules/acl-tests: New file, based on modules/copy-file-tests.
29077         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29078         (Depends-on): Add acl-tests.
29079         (configure.ac): Remove checks.
29080         (Makefile.am): Don't create test-sameacls program here any more.
29081
29082 2008-06-01  Bruno Haible  <bruno@clisp.org>
29083
29084         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29085         * tests/test-sameacls.c: Include progname.h.
29086         (main): Invoke set_program_name. Portability fixes for MacOS X,
29087         Solaris, HP-UX.
29088
29089 2008-06-01  Bruno Haible  <bruno@clisp.org>
29090
29091         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29092         function.
29093         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29094
29095 2008-06-01  Bruno Haible  <bruno@clisp.org>
29096
29097         * modules/rpmatch (Depends-on): Add strdup.
29098
29099 2008-06-01  Bruno Haible  <bruno@clisp.org>
29100
29101         * lib/pipe.c: Include unistd-safer.h.
29102         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29103         * modules/pipe (Depends-on): Add unistd-safer.
29104
29105 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29106
29107         * modules/autobuild (configure.ac): Call AB_INIT.
29108
29109 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29110
29111         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29112         Suggested by Bruno Haible <bruno@clisp.org>.
29113
29114 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29115
29116         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29117         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29118         <bruno@clisp.org>.
29119
29120 2008-05-29  Eric Blake  <ebb9@byu.net>
29121
29122         Prefer new POSIX 200x interfaces over futimesat.
29123         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29124         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29125         when available.
29126         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29127
29128 2008-05-28  Bruno Haible  <bruno@clisp.org>
29129
29130         * modules/stpcpy (License): Change to LGPLv2+.
29131         Requested by David Lutterkort <dlutter@redhat.com>.
29132
29133 2008-05-27  Bruno Haible  <bruno@clisp.org>
29134
29135         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29136         current mingw.
29137         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29138
29139 2008-05-27  Bruno Haible  <bruno@clisp.org>
29140
29141         * modules/iconv_open (Link): New section, from module 'iconv'.
29142         * modules/striconv (Link): Likewise.
29143         * modules/striconveh (Link): Likewise.
29144         * modules/xstriconv (Link): Likewise.
29145         * modules/unicodeio (Link): Likewise.
29146         * modules/propername (Link): Likewise.
29147         Reported by Jim Meyering.
29148
29149 2008-05-26  Jim Meyering  <meyering@redhat.com>
29150
29151         sha256: do not artificially restrict buffer length to be < 2^32
29152         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29153         uint32_t to size_t.
29154         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29155         to match.
29156
29157         avoid unaligned access errors, e.g., on sparc
29158         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29159         direct access through a possibly-unaligned uint64* pointer.
29160         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29161         direct access through a possibly-unaligned uint32* pointer.
29162         Prompted by this patch from Tom "spot" Callaway:
29163         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29164
29165         sha512.c: fix typo in comment
29166         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29167
29168 2008-05-25  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29171         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29172         (Makefile.am): Update lib_SOURCES.
29173
29174 2008-05-25  Bruno Haible  <bruno@clisp.org>
29175
29176         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29177
29178 2008-05-25  Jim Meyering  <meyering@redhat.com>
29179
29180         useless-if-before-free: freed expr may have white-space differences
29181         * build-aux/useless-if-before-free: Recognize cases in which the
29182         freed expression differs from the tested one in embedded white
29183         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29184         $1 was used, so we can't make any regexp shy.  Improved tests now
29185         detect this.
29186
29187         useless-if-before-free: accept white space in the expression.
29188         * build-aux/useless-if-before-free: For now, any white space
29189         in the expression must be identical in the free argument.
29190
29191         useless-if-before-free: efficiency tweak
29192         * build-aux/useless-if-before-free: Make the expression-matching
29193         regexp "shy".
29194         Make the *outer* regexp shy, not the expr-matching one.
29195
29196         update code-in-comment to accept cast of free arg
29197         * build-aux/useless-if-before-free: Update regexp.
29198
29199 2008-05-25  Bruno Haible  <bruno@clisp.org>
29200
29201         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29202         * modules/copy-file-tests (Files, Makefile.am): Update.
29203         * tests/test-copy-file.c (func_test_copy): Update.
29204
29205 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29206
29207         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29208
29209 2008-05-23  Bruno Haible  <bruno@clisp.org>
29210
29211         Improve support for ACLs on OSF/1.
29212         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29213         Remove fallback for unknown flavors of ACLs.
29214
29215 2008-05-22  Bruno Haible  <bruno@clisp.org>
29216
29217         Add support for ACLs on OSF/1.
29218         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29219         replacements.
29220         (acl_free_text): New macro fallback.
29221         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29222         acl_free.
29223         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29224         acl_free_text function. Require AC_C_INLINE.
29225
29226 2008-05-22  Bruno Haible  <bruno@clisp.org>
29227
29228         Make copy_acl work on MacOS X 10.5.
29229         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29230         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29231         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29232         If MODE_INSIDE_ACL, don't assume that every system has the same text
29233         representation for ACLs as FreeBSD.
29234         * lib/copy-acl.c (copy_acl): Add support for platforms with
29235         !MODE_INSIDE_ACL.
29236         * lib/file-has-acl.c (file_has_acl): Likewise.
29237         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29238         FreeBSD, MacOS X, or IRIX, respectively.
29239
29240 2008-05-22  Bruno Haible  <bruno@clisp.org>
29241
29242         * lib/acl.h: Don't include <sys/acl.h>.
29243         (GETACLCNT): Move fallback to lib/acl-internal.h.
29244         * lib/acl-internal.h: Include <sys/acl.h> here.
29245         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29246
29247 2008-05-22  Bruno Haible  <bruno@clisp.org>
29248
29249         Split off copy_acl function to separate file.
29250         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29251         * lib/acl.c (copy_acl): Moved function to separate file.
29252         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29253         * modules/acl (Files): Add lib/copy-acl.c.
29254         (Makefiles.am): Augment lib_SOURCES.
29255
29256 2008-05-22  Bruno Haible  <bruno@clisp.org>
29257
29258         * modules/copy-file-tests: New file.
29259         * tests/test-copy-file.sh: New file.
29260         * tests/test-copy-file.c: New file.
29261         * tests/test-copy-file-sameacls.c: New file.
29262
29263 2008-05-22  Eric Blake  <ebb9@byu.net>
29264
29265         Avoid gcc warning.
29266         * tests/test-memcmp.c (main): Pass NULL indirectly.
29267
29268 2008-05-21  Bruno Haible  <bruno@clisp.org>
29269
29270         Add reference doc about ACLs.
29271         * doc/acl-resources.txt: New file.
29272         * doc/acl-cygwin.txt: New file.
29273
29274 2008-05-21  Bruno Haible  <bruno@clisp.org>
29275
29276         Avoid one more warning from gcc.
29277         * lib/vasnprintf.c (IF_LINT): Update comments.
29278         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29279
29280 2008-05-21  Jim Meyering  <meyering@redhat.com>
29281
29282         avoid a warning from gcc
29283         * lib/vasnprintf.c (IF_LINT): Define.
29284         (scale10_round_decimal_long_double):
29285         Use it to avoid a "may be used uninitialized" warning.
29286         (scale10_round_decimal_double): Likewise.
29287
29288 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29289
29290         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29291         declared.
29292
29293 2008-05-20  Bruno Haible  <bruno@clisp.org>
29294
29295         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29296         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29297
29298 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29299
29300         * modules/memcmp-tests: New file.
29301         * tests/test-memcmp.c: New file.
29302
29303 2008-05-19  Bruno Haible  <bruno@clisp.org>
29304
29305         * modules/propername (Notice, configure.ac): Put quoted "..." into
29306         --keyword option.
29307         * lib/propername.h: Update comments accordingly.
29308         Reported by Eric Blake.
29309
29310 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29311
29312         * modules/getpass-gnu (Depends-on): Add fseeko.
29313
29314 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29315
29316         * modules/base64-tests: New file.
29317
29318 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29319
29320         * lib/base64.c (base64_decode_ctx): If a decode context structure
29321         was passed in use it to ignore newlines.  If a context structure
29322         was _not_ passed in, continue to treat newlines as garbage (this
29323         is the historical behavior).  Formerly base64_decode.
29324         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29325         takes a decode context structure.
29326         * lib/base64.h (base64_decode): Macro for four-argument calls.
29327         (base64_decode_alloc): Likewise.
29328         * lib/base64.c (base64_decode_ctx): If a decode context structure
29329         was passed in use it to ignore newlines.  If a context structure
29330         was _not_ passed in, continue to treat newlines as garbage (this
29331         is the historical behavior).  Formerly base64_decode.
29332         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29333         takes a decode context structure.
29334         * lib/base64.h (base64_decode): Macro for four-argument calls.
29335         (base64_decode_alloc): Likewise.
29336
29337 2008-05-19  Jim Meyering  <meyering@redhat.com>
29338
29339         avoid a warning from gcc
29340         * lib/trim.c (IF_LINT): Define.
29341         (trim2): Use it to avoid a "may be used uninitialized" warning.
29342
29343         Fix doc typo.
29344         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29345
29346 2008-05-19  Bruno Haible  <bruno@clisp.org>
29347
29348         * doc/glibc-functions/getpass.texi: Document limits of other
29349         implementations.
29350
29351 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29352             Bruno Haible <bruno@clisp.org>
29353
29354         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29355
29356 2008-05-18  Bruno Haible  <bruno@clisp.org>
29357
29358         * modules/propername: New file, from GNU gettext.
29359         * lib/propername.h: New file, from GNU gettext.
29360         * lib/propername.c: New file, from GNU gettext.
29361         * MODULES.html.sh (Internationalization functions): Add propername.
29362
29363 2008-05-16  Jim Meyering  <meyering@redhat.com>
29364             Bruno Haible  <bruno@clisp.org>
29365
29366         Avoid some warnings from "gcc -Wshadow".
29367         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29368
29369 2008-05-15  Eric Blake  <ebb9@byu.net>
29370
29371         Extend previous patch to cygwin 1.7.0.
29372         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29373         fast implementation in cygwin >= 1.7.0.
29374         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29376
29377 2008-05-15  Bruno Haible  <bruno@clisp.org>
29378
29379         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29380         implementation in glibc >= 2.9.
29381         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29383
29384 2008-05-15  Bruno Haible  <bruno@clisp.org>
29385
29386         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29387         (Unicode string functions): Add unilbrk/*.
29388         Reported by Karl Berry.
29389
29390 2008-05-15  Eric Blake  <ebb9@byu.net>
29391
29392         Fix violation of <stdbool.h> replacement in regex.
29393         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29394         * lib/regexec.c (re_search_internal): Likewise.
29395         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29396
29397 2008-05-15  Jim Meyering  <meyering@redhat.com>
29398
29399         avoid distracting test output when git or cvs is not found
29400         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29401         * tests/test-vc-list-files-git.sh: Likewise.
29402
29403 2008-05-15  Eric Blake  <ebb9@byu.net>
29404
29405         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29406         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29407         glibc version.
29408         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29409         * doc/posix-functions/strstr.texi (strstr): Likewise.
29410         * lib/str-two-way.h (MAX): Sychronize with glibc.
29411
29412 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29413
29414         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29415         opr.ctx_type.
29416         (calc_first): Initialize constraint field.
29417         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29418         Fix grammar.
29419         (duplicate_node): Merge constraint field for all node types.
29420         (calc_eclosure_iter): Look at constraint field for all node types.
29421         * lib/regex_internal.c (create_cd_newstate): Don't look at
29422         opr.ctx_type.
29423
29424 2008-05-14  Bruno Haible  <bruno@clisp.org>
29425
29426         Help GCC to do better code generation.
29427         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29428         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29429         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29430         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29431         Declare with attribute 'malloc' if supported.
29432
29433 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29434
29435         use "echo STR|wc -c" rather than unportable "expr length STR"
29436         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29437         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29438
29439 2008-05-14  Jim Meyering  <meyering@redhat.com>
29440
29441         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29442         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29443         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29444         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29445         via Collin Lasse.
29446
29447 2008-05-14  Eric Blake  <ebb9@byu.net>
29448
29449         Avoid quadratic growth in gl_LIBSOURCES.
29450         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29451         Suggested by Bruno Haible.
29452
29453         Test xmemdup0.
29454         * modules/xmemdup0-tests: New file.
29455         * tests/test-xmemdup0.c: Likewise.
29456
29457 2008-05-13  Eric Blake  <ebb9@byu.net>
29458
29459         Split xmemdup0 into its own module.
29460         * modules/xmemdup0: New file.
29461         * lib/xmemdup0.h: Likewise.
29462         * lib/xmemdup0.c: Likewise.
29463         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29464         * lib/xalloc.h (xmemdup0): Remove.
29465         * lib/xmalloc.c (xmemdup0): Likewise.
29466
29467 2008-05-13  Eric Blake  <ebb9@byu.net>
29468             Bruno Haible  <bruno@clisp.org>
29469
29470         Reduce number of forks required during autoconf.
29471         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29472         and gl_LIBSOURCES_DIR.
29473         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29474         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29475         m4_syscmd per file.
29476         <m4_foreach_w>: Move...
29477         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29478
29479 2008-05-13  Eric Blake  <ebb9@byu.net>
29480
29481         * gnulib-tool: Fix various comment typos.
29482
29483 2008-05-12  Bruno Haible  <bruno@clisp.org>
29484
29485         Tailor the linebreaking algorithm.
29486         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29487
29488 2008-05-12  Bruno Haible  <bruno@clisp.org>
29489
29490         Update to Unicode 5.0.0.
29491         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29492         LBP_JV, LBP_JT. Redistribute values.
29493         (unilbrk_table): Change size.
29494         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29495         Unicode TR#14 rev. 22.
29496         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29497         LBP_JV, LBP_JT. Redistribute values.
29498         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29499         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29500         Update.
29501         * lib/unilbrk/lbrkprop1.h: Regenerated.
29502         * lib/unilbrk/lbrkprop2.h: Regenerated.
29503         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29504         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29505         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29506         Likewise.
29507         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29508         Likewise.
29509         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29510         result.
29511         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29512         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29513         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29514         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29515         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29516         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29517
29518 2008-05-11  Bruno Haible  <bruno@clisp.org>
29519
29520         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29521
29522 2008-05-11  Bruno Haible  <bruno@clisp.org>
29523
29524         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29525         * modules/unilbrk/gen-lbrk: New file.
29526
29527 2008-05-11  Bruno Haible  <bruno@clisp.org>
29528
29529         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29530         * m4/sha512.m4 (gl_SHA512): Likewise.
29531
29532 2008-05-11  Jim Meyering  <meyering@redhat.com>
29533
29534         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29535         * modules/crypto/sha256: New file.
29536         * modules/crypto/sha512: Likewise.
29537         * lib/sha256.c: Likewise.
29538         * lib/sha256.h: Likewise.
29539         * lib/sha512.c: Likewise.
29540         * lib/sha512.h: Likewise.
29541         * lib/u64.h: Likewise.
29542         * m4/sha256.m4: Likewise.
29543         * m4/sha512.m4: Likewise.
29544         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29545
29546 2008-05-10  Bruno Haible  <bruno@clisp.org>
29547
29548         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29549         (Input/Output <stdio.h>): Add xprintf.
29550         (Signal handling <signal.h>): Add strsignal.
29551         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29552         (Core language properties): Add func.
29553         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29554         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29555         strings.
29556         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29557         (Input/output): New section.
29558         (File system functions): Add openat-die, stat-macros.
29559         (Networking functions): Add sockets.
29560         (Unicode string functions): Add unictype/*.
29561         (Support for building libraries and executables): Add gperf.
29562         (Support for building documentation): Add agpl-3.0.
29563         (Misc): Add nocrash.
29564
29565 2008-05-10  Bruno Haible  <bruno@clisp.org>
29566
29567         * modules/unictype/gen-ctype: New file.
29568
29569 2008-05-10  Jim Meyering  <meyering@redhat.com>
29570
29571         Make chdir-safer.c more efficient on a system with no symlinks.
29572         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29573         also if ELOOP is zero.  Suggested by Bruno Haible.
29574
29575         Make chdir-safer.c slightly safer.
29576         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29577         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29578
29579         Avoid compile failure on systems without ELOOP (like mingw).
29580         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29581         Reported by Bruno Haible.
29582
29583 2008-05-10  Bruno Haible  <bruno@clisp.org>
29584
29585         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29586         (is_utf8_encoding): Use a case-insensitive comparison.
29587         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29588         streq.
29589
29590 2008-05-10  Bruno Haible  <bruno@clisp.org>
29591
29592         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29593         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29594         * lib/unilbrk/ulc-common.h (iconv_string_length,
29595         iconv_string_keeping_offsets): Remove declarations.
29596         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29597         Don't include <iconv.h>, streq.h, xsize.h.
29598         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29599         conversion.
29600         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29601         <iconv.h>, streq.h, xsize.h.
29602         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29603         conversion.
29604         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29605         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29606         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29607         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29608
29609 2008-05-10  Bruno Haible  <bruno@clisp.org>
29610
29611         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29612         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29613
29614         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29615         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29616
29617         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29618         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29619
29620         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29621         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29622
29623         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29624         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29625
29626         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29627         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29628
29629         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29630         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29631
29632         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29633         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29634
29635 2008-05-10  Bruno Haible  <bruno@clisp.org>
29636
29637         Split up 'linebreak' module.
29638         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29639         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29640         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29641         modifications.
29642         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29643         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29644         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29645         lib/linebreak.c.
29646         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29647         lib/linebreak.c.
29648         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29649         lib/linebreak.c.
29650         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29651         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29652         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29653         lib/linebreak.c.
29654         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29655         lib/linebreak.c.
29656         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29657         lib/linebreak.c.
29658         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29659         lib/linebreak.c.
29660         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29661         lib/linebreak.c.
29662         * modules/unilbrk/base: New file.
29663         * modules/unilbrk/tables: New file.
29664         * modules/unilbrk/u8-possible-linebreaks: New file.
29665         * modules/unilbrk/u16-possible-linebreaks: New file.
29666         * modules/unilbrk/u32-possible-linebreaks: New file.
29667         * modules/unilbrk/ulc-common: New file.
29668         * modules/unilbrk/ulc-possible-linebreaks: New file.
29669         * modules/unilbrk/u8-width-linebreaks: New file.
29670         * modules/unilbrk/u16-width-linebreaks: New file.
29671         * modules/unilbrk/u32-width-linebreaks: New file.
29672         * modules/unilbrk/ulc-width-linebreaks: New file.
29673         * lib/linebreak.h: Remove file.
29674         * lib/linebreak.c: Remove file.
29675         * m4/linebreak.m4: Remove file.
29676         * modules/linebreak: Remove file.
29677         * NEWS: Mention the changes.
29678
29679 2008-05-09  Eric Blake  <ebb9@byu.net>
29680
29681         Add xmemdup0.
29682         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29683         implementation.
29684         * lib/xmalloc.c (xmemdup0): New C implementation.
29685
29686 2008-05-08  Bruno Haible  <bruno@clisp.org>
29687
29688         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29689
29690 2008-05-07  Eric Blake  <ebb9@byu.net>
29691
29692         Support cross-compilation of <wctype.h>.
29693         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29694         AC_CACHE_CHECK.
29695
29696 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29697
29698         * build-aux/vc-list-files: Add support for bzr.
29699
29700 2008-05-03  Jim Meyering  <meyering@redhat.com>
29701
29702         avoid failed assertion with tight malloc
29703         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29704
29705 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29706
29707         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29708         are needed from arpa/inet.h.
29709         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29710         Reported by Bruno Haible.
29711
29712 2008-05-02  Jim Meyering  <meyering@redhat.com>
29713
29714         avoid compilation error on FreeBSD 6
29715         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29716
29717 2008-05-01  Jim Meyering  <meyering@redhat.com>
29718
29719         useless-if-before-free: correct --help's exit status description
29720         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29721         for one or more matches, etc.  Reported by Bruno Haible.
29722
29723         vc-list-files: make the stand-alone gnulib test work
29724         * modules/vc-list-files-tests (configure.ac):
29725         Define and AC_SUBST abs_aux_dir.
29726         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29727         $(abs_top_srcdir) to each script and having each of them
29728         duplicate the work of setting PATH, set PATH here, using
29729         the new variable, abs_aux_dir instead.
29730         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29731         * tests/test-vc-list-files-git.sh: Likewise.
29732         Reported by Bruno Haible.
29733
29734 2008-05-01  Bruno Haible  <bruno@clisp.org>
29735
29736         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29737         reallocation. Rename 'done' to 'found_delimiter'.
29738
29739 2008-05-01  Jim Meyering  <meyering@redhat.com>
29740
29741         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29742         * build-aux/vc-list-files: Use `...`, not $(...).
29743
29744 2008-04-30  Jim Meyering  <meyering@redhat.com>
29745
29746         add tests for vc-list-files
29747         * modules/vc-list-files-tests: New module.
29748         * tests/test-vc-list-files-cvs.sh: New file.
29749         * tests/test-vc-list-files-git.sh: New file.
29750
29751         avoid a warning from gcc
29752         * lib/getndelim2.c (IF_LINT): Define.
29753         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29754
29755         vc-list-files: work properly with build-aux/cvsu, too
29756         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29757         to all cvs-based clauses.
29758
29759         vc-list-files: work properly in the CVS+awk case, too
29760         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29761
29762         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29763         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29764         take more than one file argument, so .  Add quotes, just in case $dir
29765         ever contains a shell meta-character.  Prompted by Soren Hansen in
29766         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29767
29768 2008-04-29  Eric Blake  <ebb9@byu.net>
29769
29770         Optimize getndelim2 to use block operations when possible.
29771         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29772         freadseek, and memchr2.
29773         * lib/getndelim2.c (getndelim2): Use them for block reads.
29774
29775 2008-04-29  Bruno Haible  <bruno@clisp.org>
29776
29777         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29778         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29779         * modules/inet_ntop (Depends-on): Add extensions.
29780         * modules/inet_pton (Depends-on): Likewise.
29781         Reported by Simon Josefsson.
29782
29783 2008-04-29  Jim Meyering  <meyering@redhat.com>
29784
29785         When the is more than one match in a block, match all of them.
29786         * build-aux/useless-if-before-free: Iterate through each block
29787         until there are no more matches.
29788
29789         Fix broken useless-if-before-free script.
29790         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29791         the expression to match cast of argument to free-like function.
29792
29793 2008-04-29  Eric Blake  <ebb9@byu.net>
29794
29795         Use new header.
29796         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29797
29798 2008-04-29  Jim Meyering  <meyering@redhat.com>
29799
29800         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29801         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29802         by gnulib to exist and to declare e.g., inet_ntop.
29803         Don't include "inet_ntop.h", now removed.
29804
29805         * m4/arpa_inet_h.m4: Remove trailing blanks.
29806
29807 2008-04-29  Eric Blake  <ebb9@byu.net>
29808
29809         Silence valgrind on safe reads beyond potential array bounds.
29810         * lib/rawmemchr.valgrind: New file.
29811         * lib/strchrnul.valgrind: Likewise.
29812         * modules/rawmemchr (Files): Distribute new file.
29813         * modules/strchrnul (Files): Likewise.
29814         Suggested by Bruno Haible.
29815
29816 2008-04-29  Bruno Haible  <bruno@clisp.org>
29817
29818         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29819         (inet_ntop, inet_pton): Change portability warning's wording.
29820         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29821         Invoke gl_CHECK_NEXT_HEADERS.
29822         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29823         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29824         set ARPA_INET_H.
29825         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29826         * modules/arpa_inet (Description): No longer only for systems that
29827         lack it.
29828         (Depends-on): Add include_next.
29829         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29830         HAVE_ARPA_INET_H.
29831
29832 2008-04-29  Jim Meyering  <meyering@redhat.com>
29833
29834         * modules/mkdir (License): Re-license as LGPLv2+.
29835
29836 2008-04-29  Bruno Haible  <bruno@clisp.org>
29837
29838         * modules/rawmemchr (Maintainer): Set to Eric.
29839         * modules/strchrnul (Maintainer): Likewise.
29840
29841 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29842
29843         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29844         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29845
29846         * modules/arpa_inet (arpa/inet.h): Use them.
29847
29848 2008-04-28  Eric Blake  <ebb9@byu.net>
29849
29850         Test getndelim2.
29851         * modules/getndelim2-tests: New file.
29852         * tests/test-getndelim2.c: Likewise.
29853         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29854         stream.
29855         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29856
29857         * MODULES.html.sh: Document new module.
29858
29859 2008-04-20  Bruno Haible  <bruno@clisp.org>
29860
29861         * lib/c-stack.c (die): Use raise.
29862         * modules/c-stack (Depends-on): Add raise.
29863
29864 2008-04-28  Bruno Haible  <bruno@clisp.org>
29865
29866         Expect rpmatch to be declared.
29867         * lib/yesno.c (rpmatch): Remove declaration.
29868
29869         Declare rpmatch.
29870         * lib/stdlib.in.h (rpmatch): New declaration.
29871         * lib/rpmatch.c: Include <stdlib.h> first.
29872         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29873         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29875         HAVE_RPMATCH.
29876         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29877         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29878         (Include): Set to <stdlib.h>.
29879         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29880         HAVE_RPMATCH.
29881         * NEWS: Document the change.
29882
29883 2008-04-28  Bruno Haible  <bruno@clisp.org>
29884
29885         Change rpmatch to use nl_langinfo when appropriate.
29886         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29887         (N_): New macro.
29888         (localized_pattern): New function/macro.
29889         (try): Remove match, nomatch arguments. Copy the pattern into safe
29890         memory before caching it.
29891         (rpmatch): Use localized_pattern. Add translator comments.
29892         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29893         Suggested by Eric Blake.
29894         * modules/rpmatch (Depends-on): Add stdbool.
29895
29896 2008-04-28  Eric Blake  <ebb9@byu.net>
29897
29898         Add rawmemchr module, matching glibc.
29899         * modules/string (Makefile.am): New indicator.
29900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29901         * lib/string.in.h (rawmemchr): Declare when appropriate.
29902         * modules/rawmemchr: New file.
29903         * m4/rawmemchr.m4: Likewise.
29904         * lib/rawmemchr.c: Likewise.
29905         * modules/rawmemchr-tests: Likewise.
29906         * tests/test-rawmemchr.c: Likewise.
29907         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29908         module.
29909         * modules/strchrnul (Depends-on): Add rawmemchr.
29910         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29911
29912         Whitespace cleanup.
29913         * tests/test-strchrnul.c: Reindent.
29914         * lib/strchrnul.c: Likewise.
29915
29916         Optimize and test strchrnul.
29917         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29918         * modules/strchrnul-tests: New file.
29919         * tests/test-strchrnul.c: Likewise.
29920
29921         Remove intprops dependency.
29922         * modules/memchr (Depends-on): Remove intprops.
29923         * modules/memrchr (Depends-on): Likewise.
29924         * modules/memchr2 (Depends-on): Likewise.
29925         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
29926         * lib/memrchr.c (__memrchr): Likewise.
29927         * lib/memrchr2.c (memchr2): Likewise.
29928         Reported by Simon Josefsson.
29929
29930 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29931
29932         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
29933         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29934
29935 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29936
29937         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
29938
29939         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
29940
29941         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
29942
29943         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
29944         declarations.
29945         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
29946
29947         * m4/inet_pton.m4: Don't check for header files.
29948
29949         * m4/inet_ntop.m4: Don't check for header files.
29950
29951 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29952
29953         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
29954         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
29955         trigger for cygwin).
29956         Reported by Bruno Haible  <bruno@clisp.org>.
29957
29958 2008-04-28  Bruno Haible  <bruno@clisp.org>
29959
29960         * doc/posix-functions/strdup.texi: Mention mingw problem.
29961
29962 2008-04-27  Bruno Haible  <bruno@clisp.org>
29963
29964         * modules/stat-time-tests (Depends-on): Add sleep.
29965         * tests/test-stat-time.c (force_unlink): New function.
29966         (cleanup): Use it.
29967         (test_mtime): Remove the ctime related tests.
29968         (test_ctime): New function, containing the ctime related tests.
29969         (main): Call test_ctime, except on native Windows platforms.
29970
29971 2008-04-27  Bruno Haible  <bruno@clisp.org>
29972
29973         * lib/rpmatch.c (rpmatch): Add some comments.
29974         Reported by James Youngman <jay@gnu.org>.
29975
29976 2008-04-27  Bruno Haible  <bruno@clisp.org>
29977
29978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
29979         quiet NaNs.
29980
29981 2008-04-27  Bruno Haible  <bruno@clisp.org>
29982
29983         Make test-yesno.sh work on mingw.
29984         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
29985         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
29986         (main): Set stdin to binary mode.
29987         * modules/yesno-tests (Depends-on): Add binary-io.
29988
29989 2008-04-27  Bruno Haible  <bruno@clisp.org>
29990
29991         Fix 'isfinite' on x86, x86_64, ia64 platforms.
29992         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
29993         argument that lie outside the IEEE 854 domain.
29994         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
29995         (gl_ISFINITE): Use it.
29996         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
29997
29998 2008-04-27  Bruno Haible  <bruno@clisp.org>
29999
30000         Allow local renaming in config.h.
30001         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30002
30003 2008-04-27  Bruno Haible  <bruno@clisp.org>
30004
30005         * lib/memchr.c (__memchr): Change type of 'i'.
30006         * lib/memchr2.c (memchr2): Likewise.
30007
30008 2008-04-26  Eric Blake  <ebb9@byu.net>
30009         and Bruno Haible  <bruno@clisp.org>
30010
30011         Optimize and test memrchr.
30012         * modules/memrchr (Depends-on): Add intprops.
30013         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30014         * modules/memrchr-tests: New file.
30015         * tests/test-memrchr.c: New file.
30016
30017 2008-04-26  Bruno Haible  <bruno@clisp.org>
30018
30019         Add tentative support for DragonFly BSD.
30020         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30021         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30022         fp.
30023         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30024         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30025         * lib/fpurge.c (fpurge): Likewise.
30026         * lib/freadable.c (freaadable): Likewise.
30027         * lib/freadahead.c (freadahead): Likewise.
30028         * lib/freading.c (freading): Likewise.
30029         * lib/freadptr.c (freadptr): Likewise.
30030         * lib/freadseek.c (freadptrinc): Likewise.
30031         * lib/fseeko.c (fseeko): Likewise.
30032         * lib/fseterr.c (fseterr): Likewise.
30033         * lib/fwritable.c (fwritable): Likewise.
30034         * lib/fwriting.c (fwriting): Likewise.
30035
30036 2008-04-26  Bruno Haible  <bruno@clisp.org>
30037
30038         * lib/stdio-impl.h: New file.
30039         * lib/fbufmode.c: Include stdio-impl.h.
30040         (fbufmode): Use fp_, remove redundant #defines.
30041         * lib/fflush.c: Include stdio-impl.h.
30042         (clear_ungetc_buffer): Remove redundant #defines.
30043         * lib/fpurge.c: Include stdio-impl.h.
30044         (fpurge): Remove redundant #defines.
30045         * lib/freadable.c: Include stdio-impl.h.
30046         (freadable): Remove redundant #defines.
30047         * lib/freadahead.c: Include stdio-impl.h.
30048         (freadahead): Remove redundant #defines.
30049         * lib/freading.c: Include stdio-impl.h.
30050         (freading): Remove redundant #defines.
30051         * lib/freadptr.c: Include stdio-impl.h.
30052         (freadptr): Remove redundant #defines.
30053         * lib/freadseek.c: Include stdio-impl.h.
30054         (freadptrinc): Remove redundant #defines.
30055         * lib/fseeko.c: Include stdio-impl.h.
30056         (rpl_fseeko): Remove redundant #defines.
30057         * lib/fseterr.c: Include stdio-impl.h.
30058         (fseterr): Remove redundant #defines.
30059         * lib/fwritable.c: Include stdio-impl.h.
30060         (fwritable: Remove redundant #defines.
30061         * lib/fwriting.c: Include stdio-impl.h.
30062         (fwriting): Remove redundant #defines.
30063         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30064         * modules/fflush (Files): Likewise.
30065         * modules/fpurge (Files): Likewise.
30066         * modules/freadable (Files): Likewise.
30067         * modules/freadahead (Files): Likewise.
30068         * modules/freading (Files): Likewise.
30069         * modules/freadptr (Files): Likewise.
30070         * modules/freadseek (Files): Likewise.
30071         * modules/fseeko (Files): Likewise.
30072         * modules/fseterr (Files): Likewise.
30073         * modules/fwritable (Files): Likewise.
30074         * modules/fwriting (Files): Likewise.
30075
30076 2008-04-26  Bruno Haible  <bruno@clisp.org>
30077
30078         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30079         restore_seek_optimization, update_fpos_cache): New functions, extracted
30080         from rpl_fflush.
30081         (rpl_fflush): Use them.
30082         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30083         (gl_REPLACE_FFLUSH): Use it.
30084
30085 2008-04-26  Bruno Haible  <bruno@clisp.org>
30086
30087         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30088         on Solaris.
30089         * tests/test-xstrtoimax.sh: Likewise.
30090         * tests/test-xstrtoumax.sh: Likewise.
30091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30092
30093 2008-04-26  Bruno Haible  <bruno@clisp.org>
30094
30095         * modules/memchr-tests: New file.
30096         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30097
30098 2008-04-26  Eric Blake  <ebb9@byu.net>
30099             Bruno Haible  <bruno@clisp.org>
30100
30101         * lib/memchr.c: Include intprops.h.
30102         (__memchr): Optimize parallel detection of matching bytes. Rename local
30103         variables. Add explanatory comments.
30104
30105 2008-04-26  Bruno Haible  <bruno@clisp.org>
30106
30107         Fix module 'memchr', broken since 2000-10-28.
30108         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30109
30110 2008-04-26  Bruno Haible  <bruno@clisp.org>
30111
30112         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30113         comments.
30114
30115 2008-04-25  Eric Blake  <ebb9@byu.net>
30116
30117         Use native fstatat on cygwin 1.7.0.
30118         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30119         first.
30120
30121 2008-04-23  Eric Blake  <ebb9@byu.net>
30122
30123         Improve memchr2 performance.
30124         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30125         NUL bytes.
30126         * modules/memchr2 (Depends-on): Use intprops.h.
30127
30128 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30129
30130         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30131         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30132         <blp@cs.stanford.edu>.
30133
30134 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30135
30136         * lib/arpa_inet.in.h: New file.
30137
30138         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30139         (Makefile.am): Sed in substitute header file.
30140
30141         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30142         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30143
30144         * modules/inet_ntop (configure.ac): Use
30145         gl_ARPA_INET_MODULE_INDICATOR.
30146
30147         * modules/inet_pton (configure.ac): Use
30148         gl_ARPA_INET_MODULE_INDICATOR.
30149
30150 2008-04-22  Jim Meyering  <meyering@redhat.com>
30151
30152         * modules/verify (License): Re-license as LGPLv2+.
30153
30154 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30155
30156         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30157         parameter to void* as per POSIX standard (MinGW uses char*).
30158
30159 2008-04-21  Bruno Haible  <bruno@clisp.org>
30160
30161         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30162         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30163         Define to replacements if REPLACE_ISWCNTRL is 1.
30164         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30165         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30166         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30167         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30168         what it fixes.
30169         * doc/posix-functions/iswalpha.texi: Likewise.
30170         * doc/posix-functions/iswblank.texi: Likewise.
30171         * doc/posix-functions/iswcntrl.texi: Likewise.
30172         * doc/posix-functions/iswdigit.texi: Likewise.
30173         * doc/posix-functions/iswgraph.texi: Likewise.
30174         * doc/posix-functions/iswlower.texi: Likewise.
30175         * doc/posix-functions/iswprint.texi: Likewise.
30176         * doc/posix-functions/iswpunct.texi: Likewise.
30177         * doc/posix-functions/iswspace.texi: Likewise.
30178         * doc/posix-functions/iswupper.texi: Likewise.
30179         * doc/posix-functions/iswxdigit.texi: Likewise.
30180         Reported by Alain Guibert.
30181
30182 2008-04-21  Bruno Haible  <bruno@clisp.org>
30183
30184         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30185         Patch by Alain Guibert.
30186
30187 2008-04-21  Bruno Haible  <bruno@clisp.org>
30188
30189         Fix test failures on mingw.
30190         * tests/test-xstrtol.c (print_no_progname): New function.
30191         (main): Install it in error_print_progname hook.
30192         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30193         * tests/test-xstrtoimax.sh: Likewise.
30194         * tests/test-xstrtoumax.sh: Likewise.
30195
30196 2008-04-21  Bruno Haible  <bruno@clisp.org>
30197
30198         Fix test failure on mingw.
30199         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30200
30201 2008-04-21  Bruno Haible  <bruno@clisp.org>
30202
30203         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30204         Actually assign a value.
30205
30206 2008-04-20  Bruno Haible  <bruno@clisp.org>
30207
30208         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30209         take 2.
30210         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30211         'canonicalize-lgpl' module is also used.
30212         * lib/canonicalize-lgpl.c: Undo last change.
30213         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30214
30215 2008-04-20  Bruno Haible  <bruno@clisp.org>
30216
30217         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30218         config.h. Provide _mkdir based fallback for mingw.
30219         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30220         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30221         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30222         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30223         rather than defining mkdir in config.h.
30224         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30225         (gl_SYS_STAT_H_DEFAULTS): New macro.
30226         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30227         HAVE_IO_H any more.
30228         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30229         HAVE_DECL_MKDIR and HAVE_IO_H.
30230
30231 2008-04-20  Bruno Haible  <bruno@clisp.org>
30232
30233         * lib/isapipe.c: Port to native Windows platforms.
30234
30235 2008-04-20  Bruno Haible  <bruno@clisp.org>
30236
30237         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30238
30239 2008-04-21  Eric Blake  <ebb9@byu.net>
30240
30241         Work around preprocessors that don't handle UINTMAX_MAX.
30242         * lib/memchr2.c (memchr2): Avoid embedded #if.
30243         Reported by Alain Guibert, fix suggested by Bruno Haible.
30244
30245 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30246
30247         * doc/posix-functions/strftime.texi (strftime): Explain better
30248         Windows incompatibility.  Suggested by Micah Cowan
30249         <micah@cowan.name>.
30250
30251 2008-04-20  Bruno Haible  <bruno@clisp.org>
30252
30253         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30254         unistr/u8-mblen.
30255
30256 2008-04-20  Bruno Haible  <bruno@clisp.org>
30257
30258         Fix test failure on platforms with non-GNU iconv.
30259         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30260         (U_TO_U8): Use it, rather than u16_to_u8.
30261         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30262         units at the end of the input string.
30263         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30264
30265 2008-04-20  Bruno Haible  <bruno@clisp.org>
30266
30267         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30268         when the resulting length is 0.
30269         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30270
30271 2008-04-20  Bruno Haible  <bruno@clisp.org>
30272
30273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30274         works.
30275         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30276
30277 2008-04-20  Bruno Haible  <bruno@clisp.org>
30278
30279         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30280         * modules/tsearch-tests (configure.ac): Test for initstate function.
30281
30282 2008-04-20  Bruno Haible  <bruno@clisp.org>
30283
30284         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30285         for nlink_t if missing.
30286         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30287
30288 2008-04-19  Bruno Haible  <bruno@clisp.org>
30289
30290         Work around snprintf bug on Linux libc5.
30291         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30293         gl_SNPRINTF_SIZE1.
30294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30295         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30296         that test failed.
30297         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30298         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30299         * modules/snprintf (Files): Add m4/printf.m4.
30300         * modules/vsnprintf (Files): Likewise.
30301         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30302         * doc/posix-functions/vsnprintf.texi: Likewise.
30303
30304 2008-04-19  Bruno Haible  <bruno@clisp.org>
30305
30306         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30307         from 0.0058 to less than 10^-7.
30308
30309 2008-04-19  Bruno Haible  <bruno@clisp.org>
30310
30311         Fix rounding when a precision is given.
30312         * lib/vasnprintf.c (is_borderline): New function.
30313         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30314         9...9x.
30315         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30316         %e, %g.
30317         * tests/test-vasprintf-posix.c (test_function): Likewise.
30318         * tests/test-snprintf-posix.h (test_function): Likewise.
30319         * tests/test-sprintf-posix.h (test_function): Likewise.
30320         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30321         * tests/test-printf-posix.h (test_function): Likewise.
30322         * tests/test-printf-posix.output: Update.
30323         Reported by John Darrington <john@darrington.wattle.id.au> via
30324         Ben Pfaff <blp@cs.stanford.edu>.
30325
30326 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30327
30328         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30329         Suggested by Bruno Haible <bruno@clisp.org>.
30330
30331 2008-04-17  Bruno Haible  <bruno@clisp.org>
30332
30333         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30334         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30335         implementation.
30336         Patch by Bruce Merry <bmerry@gmail.com>.
30337
30338 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30339
30340         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30341         doesn't work under Windows.
30342
30343 2008-04-16  Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30346         New macros.
30347         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30348         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30349         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30350         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30351         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30352         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30353         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30354         macros.
30355         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30356         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30357         Northern Sotho, Uighur.
30358
30359 2008-04-16  Bruno Haible  <bruno@clisp.org>
30360
30361         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30362         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30363         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30364         Reported by Daniel Bergström <daniel@octocode.com>.
30365
30366 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30367             Bruno Haible  <bruno@clisp.org>
30368
30369         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30370         function.
30371         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30372         New functions, mostly extracted from gl_locale_name_default.
30373         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30374
30375 2008-04-16  Eric Blake  <ebb9@byu.net>
30376
30377         Adjust strtod detection to catch glibc 2.7 bug.
30378         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30379         Reported by John Gatewood Ham.
30380
30381 2008-04-16  Bruno Haible  <bruno@clisp.org>
30382
30383         Add tentative support for Linux libc5.
30384         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30385         * lib/fpurge.c (fpurge): Likewise.
30386         * lib/freadable.c (freadable): Likewise.
30387         * lib/freadahead.c (freadahead): Likewise.
30388         * lib/freading.c (freading): Likewise.
30389         * lib/freadptr.c (freadptr): Likewise.
30390         * lib/freadseek.c (freadptrinc): Likewise.
30391         * lib/fseeko.c (rpl_fseeko): Likewise.
30392         * lib/fseterr.c (fseterr): Likewise.
30393         * lib/fwritable.c (fwritable): Likewise.
30394         * lib/fwriting.c (fwriting): Likewise.
30395         Reported by Alain Guibert <alguibert+bts@free.fr>.
30396
30397 2008-04-15  Bruno Haible  <bruno@clisp.org>
30398
30399         * modules/mathl (configure.ac): Define module indicator.
30400
30401 2008-04-15  Bruno Haible  <bruno@clisp.org>
30402
30403         * lib/logl.c (logl): Remove unused variables.
30404
30405 2008-04-15  Bruno Haible  <bruno@clisp.org>
30406
30407         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30408         fails.
30409
30410 2008-04-15  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/trim.c (trim2): Fix argument of isspace() macro.
30413
30414 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30415
30416         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30417         to 0.
30418         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30419
30420 2008-04-14  Bruno Haible  <bruno@clisp.org>
30421
30422         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30423         AC_LANG_PROGRAM argument.
30424         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30425         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30427         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30428         * m4/math_h.m4 (gl_MATH_H): Likewise.
30429         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30431         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30432         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30433         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30434         * m4/regex.m4 (gl_REGEX): Likewise.
30435         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30436         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30439         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30440         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30443
30444 2008-04-14  Jim Meyering  <meyering@redhat.com>
30445
30446         test-strtod: fix typos: s/abs/fabs/
30447         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30448
30449 2008-04-13  Bruno Haible  <bruno@clisp.org>
30450
30451         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30452         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30453         module is also used and while not building the reloc-wrapper.
30454
30455 2008-04-13  Bruno Haible  <bruno@clisp.org>
30456
30457         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30458
30459 2008-04-13  Bruno Haible  <bruno@clisp.org>
30460
30461         Fix AIX compilation failure introduced on 2008-04-02.
30462         * tests/test-frexp.c (exp): Undefine before redefining.
30463         * tests/test-frexpl.c (exp): Likewise.
30464
30465 2008-04-13  Bruno Haible  <bruno@clisp.org>
30466
30467         Work around a HP-UX stdio bug.
30468         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30469         * tests/test-ftello.c (main): Likewise.
30470         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30471         * doc/posix-functions/ftello.texi: Likewise.
30472
30473 2008-04-13  Bruno Haible  <bruno@clisp.org>
30474
30475         Make test-signbit pass on HP-UX/hppa.
30476         * tests/test-signbit.c (minus_zerol): New variable.
30477         (test_signbitl): Use it.
30478
30479 2008-04-13  Bruno Haible  <bruno@clisp.org>
30480
30481         Make truncl work on OSF/1 4.0.
30482         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30483         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30484         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30486         HAVE_DECL_TRUNCL.
30487         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30488         HAVE_DECL_TRUNCL.
30489         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30490
30491 2008-04-13  Bruno Haible  <bruno@clisp.org>
30492
30493         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30494
30495 2008-04-13  Bruno Haible  <bruno@clisp.org>
30496
30497         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30498         expression, so as to avoid HP-UX 11 cc compiler bug.
30499
30500 2008-04-13  Bruno Haible  <bruno@clisp.org>
30501
30502         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30503
30504 2008-04-13  Bruno Haible  <bruno@clisp.org>
30505
30506         * lib/git-merge-changelog.c: Remove empty declaration outside of
30507         functions.
30508
30509 2008-04-13  Bruno Haible  <bruno@clisp.org>
30510
30511         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30512
30513 2008-04-13  Bruno Haible  <bruno@clisp.org>
30514
30515         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30516         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30518         also if it exists but lacks definitions of the SHUT_* macros.
30519         * modules/sys_socket (Description): Update.
30520         Reported by Elbert Pol <e.pol@chello.nl>.
30521
30522 2008-04-13  Bruno Haible  <bruno@clisp.org>
30523
30524         * lib/localcharset.c (OS2): Don't redefine if already defined.
30525         Reported by Elbert Pol <e.pol@chello.nl>.
30526
30527 2008-04-13  Bruno Haible  <bruno@clisp.org>
30528
30529         * lib/binary-io.h [__EMX__]: Include <io.h>.
30530         Reported by Elbert Pol <e.pol@chello.nl>.
30531
30532 2008-04-12  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/fpucw.h: Enable the definitions also for x86_64.
30535         Needed for NetBSD/x86_64.
30536         Reported by Thomas Klausner <tk@giga.or.at>.
30537
30538 2008-04-12  Bruno Haible  <bruno@clisp.org>
30539
30540         * tests/test-strtod.c: Include isnand.h.
30541         (main): Use isnand instead of isnan.
30542         Reported by Jim Meyering.
30543
30544 2008-04-12  Bruno Haible  <bruno@clisp.org>
30545
30546         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30547         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30548
30549 2008-04-12  Jim Meyering  <meyering@redhat.com>
30550
30551         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30552
30553 2008-04-12  Bruno Haible  <bruno@clisp.org>
30554
30555         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30556         Reported by Elbert Pol <e.pol@chello.nl>.
30557
30558 2008-04-12  Eric Blake  <ebb9@byu.net>
30559
30560         Work around Solaris 10 math.h bug.
30561         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30562         (gl_MATH_H_DEFAULTS): Set up default.
30563         * modules/math (Makefile.am): Replace new indicators.
30564         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30565         * tests/test-math.c (main): Test this.
30566         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30567         * doc/posix-headers/math.texi (math.h): Mention bug.
30568         Reported by Nelson H. F. Beebe and Jim Meyering.
30569
30570 2008-04-11  Bruno Haible  <bruno@clisp.org>
30571
30572         Adapt to future versions of Apple GCC.
30573         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30574         Reported by Peter O'Gorman <peter@pogma.com>.
30575
30576 2008-04-11  Bruno Haible  <bruno@clisp.org>
30577
30578         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30579
30580 2008-04-11  Bruno Haible  <bruno@clisp.org>
30581
30582         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30583
30584         * modules/getaddrinfo-tests (Makefile.am): Define
30585         test_getaddrinfo_LDADD.
30586
30587 2008-04-11  Bruno Haible  <bruno@clisp.org>
30588
30589         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30590         (init): Fix syntax error.
30591         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30592         is declared.
30593
30594 2008-04-11  Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30597         * modules/glob (Depends-on): Add stdbool.
30598
30599 2008-04-11  Bruno Haible  <bruno@clisp.org>
30600
30601         * lib/trim.c: Include <string.h>.
30602
30603 2008-04-11  Eric Blake  <ebb9@byu.net>
30604
30605         Avoid compile failure on OS/2.
30606         * lib/regex_internal.h (internal_function): Disable optimization
30607         on OS/2 (__EMX__), where it caused compiler error.
30608         Reported by Elbert Pol.
30609
30610 2008-04-11  Bruno Haible  <bruno@clisp.org>
30611
30612         Flush the standard error stream before aborting. Needed on mingw.
30613         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30614         * tests/test-array_list.c (ASSERT): Likewise.
30615         * tests/test-array_oset.c (ASSERT): Likewise.
30616         * tests/test-avltree_list.c (ASSERT): Likewise.
30617         * tests/test-avltree_oset.c (ASSERT): Likewise.
30618         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30619         * tests/test-binary-io.c (ASSERT): Likewise.
30620         * tests/test-byteswap.c (ASSERT): Likewise.
30621         * tests/test-c-ctype.c (ASSERT): Likewise.
30622         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30623         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30624         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30625         * tests/test-c-strstr.c (ASSERT): Likewise.
30626         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30627         * tests/test-canonicalize.c (ASSERT): Likewise.
30628         * tests/test-carray_list.c (ASSERT): Likewise.
30629         * tests/test-ceilf1.c (ASSERT): Likewise.
30630         * tests/test-ceilf2.c (ASSERT): Likewise.
30631         * tests/test-ceill.c (ASSERT): Likewise.
30632         * tests/test-count-one-bits.c (ASSERT): Likewise.
30633         * tests/test-fbufmode.c (ASSERT): Likewise.
30634         * tests/test-fflush2.c (ASSERT): Likewise.
30635         * tests/test-floorf1.c (ASSERT): Likewise.
30636         * tests/test-floorf2.c (ASSERT): Likewise.
30637         * tests/test-floorl.c (ASSERT): Likewise.
30638         * tests/test-fopen.c (ASSERT): Likewise.
30639         * tests/test-fpending.c (ASSERT): Likewise.
30640         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30641         * tests/test-fpurge.c (ASSERT): Likewise.
30642         * tests/test-freadable.c (ASSERT): Likewise.
30643         * tests/test-freadahead.c (ASSERT): Likewise.
30644         * tests/test-freading.c (ASSERT): Likewise.
30645         * tests/test-freadptr.c (ASSERT): Likewise.
30646         * tests/test-freadptr2.c (ASSERT): Likewise.
30647         * tests/test-freadseek.c (ASSERT): Likewise.
30648         * tests/test-freopen.c (ASSERT): Likewise.
30649         * tests/test-frexp.c (ASSERT): Likewise.
30650         * tests/test-frexpl.c (ASSERT): Likewise.
30651         * tests/test-fseek.c (ASSERT): Likewise.
30652         * tests/test-fseeko.c (ASSERT): Likewise.
30653         * tests/test-fstrcmp.c (ASSERT): Likewise.
30654         * tests/test-ftell.c (ASSERT): Likewise.
30655         * tests/test-ftello.c (ASSERT): Likewise.
30656         * tests/test-func.c (ASSERT): Likewise.
30657         * tests/test-fwritable.c (ASSERT): Likewise.
30658         * tests/test-fwriting.c (ASSERT): Likewise.
30659         * tests/test-getdelim.c (ASSERT): Likewise.
30660         * tests/test-getline.c (ASSERT): Likewise.
30661         * tests/test-i-ring.c (ASSERT): Likewise.
30662         * tests/test-iconv-utf.c (ASSERT): Likewise.
30663         * tests/test-iconv.c (ASSERT): Likewise.
30664         * tests/test-isfinite.c (ASSERT): Likewise.
30665         * tests/test-isnand.c (ASSERT): Likewise.
30666         * tests/test-isnanf.c (ASSERT): Likewise.
30667         * tests/test-isnanl.h (ASSERT): Likewise.
30668         * tests/test-ldexpl.c (ASSERT): Likewise.
30669         * tests/test-linked_list.c (ASSERT): Likewise.
30670         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30671         * tests/test-localename.c (ASSERT): Likewise.
30672         * tests/test-lseek.c (ASSERT): Likewise.
30673         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30674         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30675         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30676         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30677         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30678         * tests/test-mbschr.c (ASSERT): Likewise.
30679         * tests/test-mbscspn.c (ASSERT): Likewise.
30680         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30681         * tests/test-mbspbrk.c (ASSERT): Likewise.
30682         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30683         * tests/test-mbsrchr.c (ASSERT): Likewise.
30684         * tests/test-mbsspn.c (ASSERT): Likewise.
30685         * tests/test-mbsstr1.c (ASSERT): Likewise.
30686         * tests/test-mbsstr2.c (ASSERT): Likewise.
30687         * tests/test-mbsstr3.c (ASSERT): Likewise.
30688         * tests/test-memchr2.c (ASSERT): Likewise.
30689         * tests/test-memmem.c (ASSERT): Likewise.
30690         * tests/test-open.c (ASSERT): Likewise.
30691         * tests/test-printf-frexp.c (ASSERT): Likewise.
30692         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30693         * tests/test-printf-posix.c (ASSERT): Likewise.
30694         * tests/test-quotearg.c (ASSERT): Likewise.
30695         * tests/test-rbtree_list.c (ASSERT): Likewise.
30696         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30697         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30698         * tests/test-round1.c (ASSERT): Likewise.
30699         * tests/test-roundf1.c (ASSERT): Likewise.
30700         * tests/test-roundl.c (ASSERT): Likewise.
30701         * tests/test-signbit.c (ASSERT): Likewise.
30702         * tests/test-sleep.c (ASSERT): Likewise.
30703         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30704         * tests/test-snprintf.c (ASSERT): Likewise.
30705         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30706         * tests/test-stat-time.c (ASSERT): Likewise.
30707         * tests/test-strcasestr.c (ASSERT): Likewise.
30708         * tests/test-strerror.c (ASSERT): Likewise.
30709         * tests/test-striconv.c (ASSERT): Likewise.
30710         * tests/test-striconveh.c (ASSERT): Likewise.
30711         * tests/test-striconveha.c (ASSERT): Likewise.
30712         * tests/test-strsignal.c (ASSERT): Likewise.
30713         * tests/test-strstr.c (ASSERT): Likewise.
30714         * tests/test-strtod.c (ASSERT): Likewise.
30715         * tests/test-trunc1.c (ASSERT): Likewise.
30716         * tests/test-trunc2.c (ASSERT): Likewise.
30717         * tests/test-truncf1.c (ASSERT): Likewise.
30718         * tests/test-truncf2.c (ASSERT): Likewise.
30719         * tests/test-truncl.c (ASSERT): Likewise.
30720         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30721         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30722         * tests/test-vasnprintf.c (ASSERT): Likewise.
30723         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30724         * tests/test-vasprintf.c (ASSERT): Likewise.
30725         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30726         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30727         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30728         * tests/test-vsnprintf.c (ASSERT): Likewise.
30729         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30730         * tests/test-wcwidth.c (ASSERT): Likewise.
30731         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30732         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30733         * tests/test-xvasprintf.c (ASSERT): Likewise.
30734         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30735         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30736         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30737         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30738         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30739         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30740         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30741         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30742         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30743         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30744         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30745         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30746         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30747         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30748         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30749         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30750         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30751         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30752         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30753         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30754         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30755         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30756         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30757         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30758         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30759         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30760         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30761         * tests/unictype/test-combining.c (ASSERT): Likewise.
30762         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30763         * tests/unictype/test-digit.c (ASSERT): Likewise.
30764         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30765         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30766         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30767         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30768         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30769         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30770         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30771         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30772         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30773         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30774         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30775         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30776         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30777         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30778         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30779         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30780         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30781         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30782         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30783         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30784         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30785         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30786         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30787         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30788         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30789         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30790         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30791         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30792         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30793         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30794         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30795         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30796         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30797         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30798         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30799         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30800         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30801         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30802         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30803         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30804         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30805         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30806         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30807         Reported by Eric Blake.
30808
30809 2008-04-11  Bruno Haible  <bruno@clisp.org>
30810
30811         * lib/wchar.in.h: Tweak comment.
30812
30813 2008-04-11  Bruno Haible  <bruno@clisp.org>
30814
30815         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30816         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30817         gl_COMMON.
30818         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30819
30820 2008-04-11  Bruno Haible  <bruno@clisp.org>
30821
30822         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30823
30824 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30825
30826         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30827         of attempting to use non-existing /dev/*random.  Based on patch
30828         from Adam Strzelecki <ono@java.pl> in
30829         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30830
30831 2008-04-08  Bruno Haible  <bruno@clisp.org>
30832
30833         Add tentative support for emx+gcc.
30834         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30835         * lib/fpurge.c (fpurge): Likewise.
30836         * lib/freadable.c (freadable): Likewise.
30837         * lib/freadahead.c (freadahead): Likewise.
30838         * lib/freading.c (freading): Likewise.
30839         * lib/freadptr.c (freadptr): Likewise.
30840         * lib/freadseek.c (freadptrinc): Likewise.
30841         * lib/fseeko.c (rpl_fseeko): Likewise.
30842         * lib/fseterr.c (fseterr): Likewise.
30843         * lib/fwritable.c (fwritable): Likewise.
30844         * lib/fwriting.c (fwriting): Likewise.
30845         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30846
30847 2008-04-09  Eric Blake  <ebb9@byu.net>
30848
30849         Avoid some autoconf warnings.
30850         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30851         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30852         * m4/afs.m4 (gl_AFS): Likewise.
30853         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30854         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30855         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30856         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30857         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30858         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30859         (AC_CHECK_DECLS_ONCE): Likewise.
30860         Rename file...
30861         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30862         gnulib-tool requires autoconf 2.59 or better.
30863         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30864
30865 2008-04-08  Eric Blake  <ebb9@byu.net>
30866
30867         Use 'git describe --match' if present (added in git 1.5.5).
30868         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30869         if possible.
30870
30871 2008-04-08  Bruno Haible  <bruno@clisp.org>
30872
30873         Add tentative support for OpenServer.
30874         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30875         _ptr, _cnt.
30876         * lib/fpurge.c (fpurge): Likewise.
30877         * lib/freadable.c (freadable): Likewise.
30878         * lib/freadahead.c (freadahead): Likewise.
30879         * lib/freading.c (freading): Likewise.
30880         * lib/freadptr.c (freadptr): Likewise.
30881         * lib/freadseek.c (freadptrinc): Likewise.
30882         * lib/fseeko.c (rpl_fseeko): Likewise.
30883         * lib/fseterr.c (fseterr): Likewise.
30884         * lib/fwritable.c (fwritable): Likewise.
30885         * lib/fwriting.c (fwriting): Likewise.
30886         Reported by Roger Cornelius <rac@tenzing.org> and
30887         Brian K. White <brian@aljex.com>.
30888
30889 2008-04-06  Jim Meyering  <meyering@redhat.com>
30890
30891         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30892
30893 2008-04-06  Bruno Haible  <bruno@clisp.org>
30894
30895         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30896         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30897         * tests/test-printf-posix.sh: Likewise.
30898         * tests/test-vfprintf-posix.sh: Likewise.
30899         * tests/test-vprintf-posix.sh: Likewise.
30900         * tests/test-xprintf-posix.sh: Likewise.
30901
30902 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30903
30904         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30905         hide error from 'ls', needed on OS/2.
30906         Report by Elbert Pol <elbert.pol@gmail.com>.
30907
30908 2008-04-04  Eric Blake  <ebb9@byu.net>
30909
30910         Make test-fseeko.c failures meaningful.
30911         * tests/test-fseeko.c: Print line number on failure.
30912         * tests/test-fseek.c: Likewise.
30913         Reported by Nelson H. F. Beebe.
30914
30915         Improve strtod bug detection check.
30916         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30917         required for Solaris 10.
30918         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30919
30920 2008-04-04  Bruno Haible  <bruno@clisp.org>
30921
30922         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
30923         by m4/setenv.m4.
30924
30925 2008-04-03  Eric Blake  <ebb9@byu.net>
30926
30927         Ensure sane .version contents.
30928         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
30929         version string.
30930         * build-aux/git-version-gen: Improve documentation.
30931
30932         Make GNU make output nicer.
30933         * top/GNUmakefile [!_have-Makefile]: Add dependency on
30934         MAKECMDGOALS to enforce message for all command line targets.  Set
30935         srcdir for use in maint.mk.
30936
30937         Another maintainer tweak.
30938         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
30939         a target that regenerates version.
30940
30941 2008-04-03  Jim Meyering  <meyering@redhat.com>
30942
30943         vc-list-files: don't cause coreutils "make po-check" failure
30944         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
30945
30946 2008-04-03  Eric Blake  <ebb9@byu.net>
30947
30948         Allow VPATH usage of vc-list-files.
30949         * build-aux/vc-list-files (scriptversion): Add timestamp.
30950         (options): Add --help, --version, -C.
30951         (CVS): Support installed cvsu.
30952
30953 2008-04-02  Bruno Haible  <bruno@clisp.org>
30954
30955         Avoid some "statement with no effect" warnings from gcc.
30956         * tests/test-wctype.c (main): Explicitly ignore unused values.
30957         Reported by Jim Meyering.
30958
30959 2008-04-02  Jim Meyering  <meyering@redhat.com>
30960
30961         Avoid some warnings from "gcc -Wshadow".
30962         * tests/test-frexp.c (exp): Define to a different identifier.
30963         * tests/test-frexpl.c (exp): Likewise.
30964
30965 2008-04-03  Jim Meyering  <meyering@redhat.com>
30966
30967         bootstrap: remove dangling *.[ch] symlinks from lib
30968         * build-aux/bootstrap [dangling symlink removal]: Move find's
30969         -depth option to precede all others, to avoid a warning.
30970         Remove *.[ch] files too, and from "$source_base" (usually lib/).
30971
30972 2008-04-02  Bruno Haible  <bruno@clisp.org>
30973
30974         Avoid some warnings from "gcc -Wshadow".
30975         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
30976         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
30977         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
30978         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
30979         Reported by Jim Meyering.
30980
30981 2008-04-01  Bruno Haible  <bruno@clisp.org>
30982
30983         Fix test to work on IRIX 6.5 with cc.
30984         * tests/test-math.c (numeric_equal): New function.
30985         (main): Use it.
30986
30987 2008-04-01  Bruno Haible  <bruno@clisp.org>
30988
30989         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
30990
30991 2008-04-01  Bruno Haible  <bruno@clisp.org>
30992
30993         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
30994         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30995         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
30996         (Depends-on): Remove math.
30997
30998         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
30999         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31000         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31001         (Depends-on): Remove math.
31002
31003         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31004         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31005         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31006         (Depends-on): Remove math.
31007         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31008         (Depends-on): Remove math.
31009
31010         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31011         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31012         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31013         (Depends-on): Remove math.
31014         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31015         (Depends-on): Remove math.
31016
31017         * tests/test-round1.c: Include nan.h.
31018         (main): Use NaNd instead of NAN.
31019         * modules/round-tests (Files): Add tests/nan.h.
31020
31021         * tests/test-trunc1.c: Include nan.h.
31022         (main): Use NaNd instead of NAN.
31023         * modules/trunc-tests (Files): Add tests/nan.h.
31024
31025         * tests/test-roundf1.c: Include nan.h.
31026         (main): Use NaNf instead of NAN.
31027         * modules/roundf-tests (Files): Add tests/nan.h.
31028
31029         * tests/test-truncf1.c: Include nan.h.
31030         (main): Use NaNf instead of NAN.
31031         * modules/truncf-tests (Files): Add tests/nan.h.
31032
31033         * tests/test-ceilf1.c: Include nan.h.
31034         (main): Use NaNf instead of NAN.
31035         * modules/ceilf-tests (Files): Add tests/nan.h.
31036
31037         * tests/test-floorf1.c: Include nan.h.
31038         (main): Use NaNf instead of NAN.
31039         * modules/floorf-tests (Files): Add tests/nan.h.
31040
31041         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31042         (main): Use NaNf instead of NAN.
31043         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31044
31045         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31046         (main): Use NaNd instead of NAN.
31047         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31048
31049         * tests/test-frexp.c: Include nan.h.
31050         (main): Use NaNd instead of NAN.
31051         * modules/frexp-tests (Files): Add tests/nan.h.
31052
31053         * lib/isnan.c: Don't include <math.h>.
31054         (FUNC): Don't use NAN macro.
31055         * modules/isnand-nolibm (Depends-on): Remove math.
31056         * modules/isnanf-nolibm (Depends-on): Remove math.
31057         * modules/isnanl (Depends-on): Remove math.
31058         * modules/isnanl-nolibm (Depends-on): Remove math.
31059
31060         * tests/nan.h: New file.
31061
31062 2008-04-01  Eric Blake  <ebb9@byu.net>
31063
31064         Fix typos.
31065         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31066         values to be the right type.
31067
31068         For now, cater to gnulib strtod inaccuracies.
31069         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31070         fractional results.  While not as nice from a QoI perspective, it
31071         is a quicker patch than correctly implementing decimal to binary
31072         rounding.
31073
31074 2008-03-31  Eric Blake  <ebb9@byu.net>
31075
31076         Guarantee a definition of NAN.
31077         * lib/math.in.h (NAN): Define if missing.
31078         * tests/test-math.c (main): Test it.
31079         * doc/posix-headers/math.texi (math.h): Document this.
31080         * lib/isnan.c (rpl_isnand): Use it.
31081         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31082         * tests/test-floorf1.c (NaN): Likewise.
31083         * tests/test-frexp.c (NaN): Likewise.
31084         * tests/test-isnand.c (NaN): Likewise.
31085         * tests/test-isnanf.c (NaN): Likewise.
31086         * tests/test-round1.c (NaN): Likewise.
31087         * tests/test-roundf1.c (NaN): Likewise.
31088         * tests/test-snprintf-posix.h (NaN): Likewise.
31089         * tests/test-sprintf-posix.h (NaN): Likewise.
31090         * tests/test-trunc1.c (NaN): Likewise.
31091         * tests/test-truncf1.c (NaN): Likewise.
31092         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31093         * tests/test-vasprintf-posix.c (NaN): Likewise.
31094         * modules/isnand-nolibm (Depends-on): Add math.
31095         * modules/isnanf-nolibm (Depends-on): Likewise.
31096         * modules/isnanl (Depends-on): Likewise.
31097         * modules/isnanl-nolibm (Depends-on): Likewise.
31098         * modules/snprintf-posix-tests (Depends-on): Likewise.
31099         * modules/sprintf-posix-tests (Depends-on): Likewise.
31100         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31101         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31102         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31103         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31104
31105 2008-03-31  Bruno Haible  <bruno@clisp.org>
31106
31107         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31108         * doc/posix-functions/strtod.texi: Likewise.
31109
31110 2008-03-31  Bruno Haible  <bruno@clisp.org>
31111
31112         * tests/test-strtod.c (main): Don't use C99 syntax.
31113
31114 2008-03-31  Bruno Haible  <bruno@clisp.org>
31115
31116         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31117         Reported by Eric Blake.
31118
31119 2008-03-31  Jim Meyering  <meyering@redhat.com>
31120
31121         Don't compare actual signbit return values.
31122         * tests/test-strtod.c (main): Rather, compare only their
31123         zero/non-zero nature.
31124
31125 2008-03-31  Eric Blake  <ebb9@byu.net>
31126
31127         More strtod documentation.
31128         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31129         failures as distinct bugs.
31130
31131 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31134         Problem reported by Erik Benada in
31135         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31136
31137 2008-03-30  Bruno Haible  <bruno@clisp.org>
31138
31139         * tests/test-strtod.c: Add comments about which assertion fails on which
31140         platform.
31141         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31142
31143 2008-03-30  Eric Blake  <ebb9@byu.net>
31144
31145         Test signbit behavior on zeros.
31146         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31147         (test_signbitd, test_signbitl): Likewise.
31148
31149         More strtod touchups.
31150         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31151         sign of negative underflow, for now.  Use .5, not .1.
31152         * doc/posix-functions/strtod.texi (strtod): Mention these
31153         limitations.
31154         Reported by Jim Meyering.
31155
31156 2008-03-30  Bruno Haible  <bruno@clisp.org>
31157
31158         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31159         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31160
31161 2008-03-30  Bruno Haible  <bruno@clisp.org>
31162
31163         Avoid failure when attempting to return empty iconv results on some
31164         platforms.
31165         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31166         allocation, don't report ENOMEM when the resulting string is empty.
31167
31168 2008-03-30  Bruno Haible  <bruno@clisp.org>
31169
31170         Fix buffer overrun.
31171         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31172         Don't consider the width for tmp_length. Check count against tmp_length
31173         before doing the padding. Ensure enough allocation during padding.
31174
31175 2008-03-30  Eric Blake  <ebb9@byu.net>
31176
31177         strtod touchups.
31178         * lib/strtod.c (strtod): Avoid compiler warnings.
31179         Reported by Jim Meyering.
31180
31181 2008-03-30  Bruno Haible  <bruno@clisp.org>
31182
31183         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31184         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31185         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31186         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31187         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31188         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31189         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31190         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31191
31192         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31193         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31194         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31195         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31196         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31197         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31198         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31199         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31200
31201         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31202         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31203         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31204         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31205         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31206         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31207         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31208         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31209
31210         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31211         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31212
31213         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31214         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31215
31216         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31217         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31218
31219         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31221         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31222
31223         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31225         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31226
31227         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31229         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31230
31231         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31232         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31233         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31234
31235         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31236         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31238         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31239         (Depends-on): Add EOVERFLOW.
31240         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31241         (Depends-on): Add EOVERFLOW.
31242         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31243         (Depends-on): Add EOVERFLOW.
31244         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31245         (Depends-on): Add EOVERFLOW.
31246         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31247         (Depends-on): Add EOVERFLOW.
31248         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31249         (Depends-on): Add EOVERFLOW.
31250         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31251         (Depends-on): Add EOVERFLOW.
31252         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31253         (Depends-on): Add EOVERFLOW.
31254
31255         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31256         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31257         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31258
31259         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31261         * modules/snprintf (Depends-on): Add EOVERFLOW.
31262
31263         * lib/poll.c (EOVERFLOW): Remove fallback.
31264         * modules/poll (Depends-on): Add EOVERFLOW.
31265
31266         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31267         * modules/getugroups (Depends-on): Add EOVERFLOW.
31268
31269         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31270         * modules/getdelim (Depends-on): Add EOVERFLOW.
31271
31272         * lib/ftell.c (EOVERFLOW): Remove fallback.
31273         * modules/ftell (Depends-on): Add EOVERFLOW.
31274
31275         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31277         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31278
31279         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31280
31281         * modules/EOVERFLOW-tests: New file.
31282         * tests/test-EOVERFLOW.c: New file.
31283
31284         * modules/EOVERFLOW: New file.
31285         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31286
31287 2008-03-30  Bruno Haible  <bruno@clisp.org>
31288
31289         Fix bug introduced on 2007-06-10.
31290         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31291         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31292
31293 2008-03-30  Bruno Haible  <bruno@clisp.org>
31294
31295         Improve freadseek's efficiency after ungetc.
31296         * lib/freadseek.c: Include freadahead.h.
31297         (freadptrinc): New function, extracted from freadseek.
31298         (freadseek): Use it in a loop. Use freadahead to determine the number
31299         of loop iterations.
31300         * modules/freadseek (Depends-on): Add freadahead.
31301         (configure.ac): Require AC_C_INLINE.
31302
31303 2008-03-30  Bruno Haible  <bruno@clisp.org>
31304
31305         * lib/freadseek.c (freadseek): Don't ignore the return value of
31306         freadptr.
31307
31308 2008-03-29  Eric Blake  <ebb9@byu.net>
31309
31310         Add hex float support.
31311         * modules/strtod (Depends-on): Add c-ctype.
31312         (Link): Mention POW_LIB.
31313         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31314         whitespace between 'e' and exponent.
31315         * tests/test-strtod.c (main): Enable hex float tests.
31316         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31317         now provides.
31318
31319         Document various strtod bugs, with some fixes.
31320         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31321         "-0x", "inf", "nan", and hex constants.
31322         * doc/posix-functions/atof.texi (atof): Likewise.
31323         * modules/stdlib (Makefile.am): Support strtod.
31324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31325         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31326         detect additional strtod bugs.
31327         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31328         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31329         bool where appropriate.  Parse 'inf' and 'nan'.
31330         * tests/test-strtod.c: New file.
31331         * modules/strtod (Depends-on): Add stdbool, stdlib.
31332         (configure.ac): Turn on module indicator.
31333         * modules/strtod-tests: New module.
31334
31335 2008-03-29  Eric Blake  <ebb9@byu.net>
31336
31337         Fix ftell on mingw.
31338         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31339         * modules/ftell-tests (Depends-on): Add binary-io.
31340         * modules/ftello-tests (Depends-on): Likewise.
31341         * tests/test-ftell.c (main): Enhance test to cover behavior after
31342         ungetc.  Enforce binary mode.
31343         * tests/test-ftello.c (main): Likewise.
31344
31345         Pass test-freadseek on cygwin.
31346         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31347         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31348         ungetc buffer.
31349
31350         * tests/test-fflush2.c (main): Fix typo.
31351
31352 2008-03-29  Bruno Haible  <bruno@clisp.org>
31353
31354         * tests/test-fflush2.c (main): Temporarily disable the contents of
31355         this test.
31356         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31357         Reported by Eric Blake.
31358
31359 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31360
31361         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31362         (GC_SHA224_DIGEST_SIZE): Add.
31363
31364         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31365         (gc_hash_digest_length): Likewise.
31366         (gc_hash_buffer): Likewise.
31367
31368 2008-03-25  Bruno Haible  <bruno@clisp.org>
31369
31370         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31371         detail which gettext release to use.
31372         Reported by Simon Josefsson.
31373
31374 2008-03-26  Jim Meyering  <meyering@redhat.com>
31375
31376         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31377         * modules/gnumakefile (clean-GNUmakefile): Also, use
31378         test ... && ... || : syntax rather than if-then ... fi.
31379
31380         gnumakefile: Don't double-quote-expand $(VPATH) value.
31381         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31382
31383 2008-03-24  Eric Blake  <ebb9@byu.net>
31384
31385         Alter GNUmakefile to install into top directory.
31386         * modules/maintainer-makefile: Split, and add dependency...
31387         * modules/gnumakefile: to this new module.
31388         * build-aux/GNUmakefile: Move...
31389         * top/GNUmakefile: ...here.
31390         * build-aux/maint.mk: Move...
31391         * top/maint.mk: ...here.
31392         * MODULES.html.sh (Support for maintaining...): Document new
31393         module.
31394
31395 2008-03-23  Bruno Haible  <bruno@clisp.org>
31396
31397         * gnulib-tool: New options --vc-files, --no-vc-files.
31398         (func_usage): Document them.
31399         (vc_files): New variable.
31400         (func_import): Consider vc_files.
31401         (func_create_testdir): Set vc_files to empty.
31402         Suggested by Jim Meyering and Karl Berry.
31403
31404 2008-03-23  Bruno Haible  <bruno@clisp.org>
31405
31406         Fix regex compilation error on HP-UX 11.
31407         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31408         * modules/regex (Files): Add m4/mbstate_t.m4.
31409         Reported by Ton Voon <ton.voon@altinity.com>.
31410
31411 2008-03-23  Bruno Haible  <bruno@clisp.org>
31412
31413         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31414
31415 2008-03-23  Eric Blake  <ebb9@byu.net>
31416             Bruno Haible  <bruno@clisp.org>
31417
31418         Install files from top/ in the destination directory.
31419         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31420         augmentation also for the files from top/.
31421         (func_import, func_create_testdir): Rewrite file names:
31422         top/filename -> filename.
31423
31424 2008-03-23  Bruno Haible  <bruno@clisp.org>
31425
31426         Tweak "gnulib --version" output.
31427         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31428
31429 2008-03-23  Bruno Haible  <bruno@clisp.org>
31430
31431         Tweak "gnulib --version" output.
31432         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31433         rather than contents of ChangeLog, when possible.
31434
31435 2008-03-21  Eric Blake  <ebb9@byu.net>
31436
31437         More --version tweaks.
31438         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31439         date of last ChangeLog entry.
31440
31441 2008-03-21  Jim Meyering  <meyering@redhat.com>
31442
31443         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31444
31445 2008-03-20  Eric Blake  <ebb9@byu.net>
31446
31447         VPATH fix.
31448         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31449
31450 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31451
31452         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31453         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31454
31455 2008-03-20  Eric Blake  <ebb9@byu.net>
31456
31457         Sync GNUmakefile with coreutils.
31458         * build-aux/GNUmakefile (have-Makefile): Rename...
31459         (_have-Makefile): ...to this, for namespace consideration.
31460         (GNUmakefile.cfg): Include, if present.
31461         (_autoreconf): Define a default.
31462         (_is-dist-target): New rule for rebuilds to pick up intra-release
31463         version.
31464         (maint-cfg.mk): Rename...
31465         (cfg.mk): ...to this.
31466
31467 2008-03-18  Jim Meyering  <meyering@redhat.com>
31468
31469         New script and module: mktempd
31470         * MODULES.html.sh (maint+release support): Add mktempd.
31471         * build-aux/mktempd: New file.
31472         * modules/mktempd: New file.
31473
31474 2008-03-15  Jim Meyering  <meyering@redhat.com>
31475
31476         Undo last change.
31477         * lib/sha1.c, lib/md5.c: 63 != ~63.
31478         Reported by Andreas Schwab.
31479
31480         sha1.c, md5.c: Hoist a redundant expression.
31481         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31482         "ctx->buflen" only once, before calling *_process_block.
31483         * lib/md5.c (md5_process_bytes): Likewise.
31484
31485 2008-03-14  Eric Blake  <ebb9@byu.net>
31486
31487         Bump copyright year in files generated by gnulib-tool.
31488         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31489         gnulib-tool, rather than hard-coding it.
31490
31491         Fix 'gnulib-tool --version' output to work with git.
31492         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31493         (startup): ...here.
31494         (func_version): Use it to invoke git-version-gen, rather than
31495         relying on CVS keyword expansion.  Modernize wording.
31496         (cvsdatestamp, last_checkin_date, version): Kill unused
31497         variables.
31498
31499 2008-03-12  Jim Meyering  <meyering@redhat.com>
31500
31501         Recognize optional cast of the argument to free.
31502         * build-aux/useless-if-before-free: Update regexps.
31503
31504         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31505
31506 2008-03-11  Bruno Haible  <bruno@clisp.org>
31507
31508         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31509         by a single package.
31510         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31511         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31512         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31513         Reported by Sam Steingold <sds@gnu.org>.
31514
31515 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31516
31517         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31518         repositories.
31519
31520 2008-03-11  Bruno Haible  <bruno@clisp.org>
31521
31522         Avoid conflicts between local macro definitions.
31523         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31524         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31525
31526 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31527             Bruno Haible  <bruno@clisp.org>
31528
31529         Make va_copy work with some version of xlc on AIX 5.1.
31530         * lib/stdarg.in.h: New file.
31531         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31532         On AIX, use a <stdarg.h> file substitute.
31533         * modules/stdarg (Files): Add lib/stdarg.in.h.
31534         (Depends-on): Add include_next.
31535         (Makefile.am): Build a stdarg.h substitute if requested.
31536         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31537
31538 2008-03-10  Bruno Haible  <bruno@clisp.org>
31539
31540         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31542         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31543
31544 2008-03-10  Bruno Haible  <bruno@clisp.org>
31545
31546         * modules/stdlib (Depends-on): Add include_next, remove
31547         absolute-header.
31548
31549 2008-03-09  Bruno Haible  <bruno@clisp.org>
31550
31551         * lib/freadahead.h (freadahead): Document more precisely.
31552         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31553         the sum of both buffer sizes.
31554         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31555         * NEWS: Document the change.
31556
31557 2008-03-09  Bruno Haible  <bruno@clisp.org>
31558
31559         Extend freadptr to return also the buffer size.
31560         * lib/freadptr.h (freadptr): Add sizep argument.
31561         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31562         (freadptr): Add sizep argument. Determine buffer size like freadahead
31563         does.
31564         * tests/test-freadptr.c: Don't include freadahead.h.
31565         (main): Adapt for new calling convention of freadptr.
31566         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31567         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31568         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31569         tests/test-freadptr2.sh.
31570         (Depends): Remove freadahead.
31571         (TESTS): Add test-freadptr2.sh.
31572         (check_PROGRAMS): Add test-freadptr2.
31573
31574 2008-03-09  Bruno Haible  <bruno@clisp.org>
31575
31576         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31577         Report and solution by Simon Josefsson.
31578
31579 2008-03-06  Bruno Haible  <bruno@clisp.org>
31580
31581         Make fflush after ungetc work on BSD platforms.
31582         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31583         * tests/test-fflush2.c: New file.
31584         * tests/test-fflush2.sh: New file.
31585         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31586         tests/test-fflush2.c.
31587         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31588         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31589
31590 2008-03-06  Eric Blake  <ebb9@byu.net>
31591
31592         Likewise for ftello.
31593         * modules/ftello (Dependencies): Add extensions.
31594         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31595
31596 2008-03-06  Bruno Haible  <bruno@clisp.org>
31597
31598         * modules/fseeko (Dependencies): Add extensions.
31599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31600         Needed on glibc systems.
31601
31602 2008-03-06  Bruno Haible  <bruno@clisp.org>
31603
31604         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31605         email address.
31606         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31607
31608 2008-03-06  Bruno Haible  <bruno@clisp.org>
31609
31610         * users.txt: Add libgnupdf.
31611
31612 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31613
31614         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31615         (Header File Substitutes, Function Substitutes,
31616         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31617         (Build robot for gnulib): Fix typo.
31618
31619 2008-03-06  Bruno Haible  <bruno@clisp.org>
31620
31621         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31622         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31623
31624 2008-03-06  Bruno Haible  <bruno@clisp.org>
31625
31626         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31627         * doc/gnulib.texi: Include it.
31628
31629 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31630
31631         * modules/func (License): Change license to unlimited; there was
31632         no LGPL parts in the module anyway.
31633
31634 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31635
31636         * modules/__func__: Renamed to modules/func.
31637         * modules/__func__-tests: Renamed to modules/func-tests.
31638         * tests/test-__func__.c: Renamed to tests/test-func.c.
31639         * m4/__func__.m4: Renamed to m4/func.m4.
31640         * doc/gnulib.texi (__func__): Section renamed to func.
31641         Suggested by Eric Blake <ebb9@byu.net>.
31642
31643 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31644
31645         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31646         about __func__.  Make example self-contained.  Suggested by Eric
31647         Blake <ebb9@byu.net>.
31648
31649         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31650         Suggested by Eric Blake <ebb9@byu.net>.
31651
31652 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31653
31654         * modules/__func__: New file.
31655         * modules/__func__-tests: New file.
31656         * tests/test-__func__.c: New file.
31657         * m4/__func__.m4: New file.
31658         * doc/gnulib.texi (__func__): Document __func__ module.
31659
31660 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31661
31662         * modules/byteswap (License): Re-license as LGPLv2+.
31663
31664 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31665
31666         * doc/Makefile: Add pdf target.
31667
31668 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31669
31670         * modules/inline (License): Use 'unlimited', since there are only
31671         *.m4 files in this module.
31672
31673 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31674             Bruno Haible  <bruno@clisp.org>
31675
31676         Add support for HP C 7.1 on OpenVMS 8.3.
31677         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31678
31679 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31680
31681         Update VMS specifics.
31682         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31683
31684 2008-03-02  Jim Meyering  <meyering@redhat.com>
31685
31686         Remove the last dependency on the "free" module.
31687         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31688         Reported by Bob Proulx.
31689
31690         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31691
31692         Remove useless "if" tests before free.  Deprecate "free" module.
31693         * doc/posix-functions/free.texi: Mention that this
31694         module is no longer useful.
31695         * modules/free (Notice): Say this module is obsolete.
31696         * modules/readutmp (Depends-on): Remove free.
31697         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31698         * lib/putenv.c (putenv): Likewise.
31699         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31700         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31701         * tests/test-c-strcasestr.c (main): Likewise.
31702         * tests/test-c-strstr.c (main): Likewise.
31703         * tests/test-mbscasestr1.c (main): Likewise.
31704         * tests/test-mbscasestr2.c (main): Likewise.
31705         * tests/test-mbsstr1.c (main): Likewise.
31706         * tests/test-mbsstr2.c (main): Likewise.
31707         * tests/test-memmem.c (main): Likewise.
31708         * tests/test-strcasestr.c (main): Likewise.
31709         * tests/test-striconv.c (main): Likewise.
31710         * tests/test-striconveh.c (main): Likewise.
31711         * tests/test-striconveha.c (main): Likewise.
31712         * tests/test-strstr.c (main): Likewise.
31713
31714         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31715
31716         bootstrap: sync from coreutils again
31717         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31718
31719 2008-03-01  Jim Meyering  <meyering@redhat.com>
31720
31721         bootstrap: sync from coreutils
31722         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31723         also when the target doesn't exist.
31724
31725 2008-03-01  Eric Blake  <ebb9@byu.net>
31726
31727         Fix bugs in last patch.
31728         * lib/memchr2.c (memchr2): Fix typo.
31729         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31730         extension.
31731         Reported by Bruce Korb.
31732
31733         New module 'memchr2'.
31734         * modules/memchr2: New file.
31735         * modules/memchr2-tests: Likewise.
31736         * lib/memchr2.h: Likewise.
31737         * lib/memchr2.c: Likewise, based on memchr.c.
31738         * tests/test-memchr2.c: New test.
31739         * MODULES.html.sh (String handling): Add memchr2.
31740
31741 2008-02-29  Bruno Haible  <bruno@clisp.org>
31742
31743         * modules/freadseek-tests: New file.
31744         * tests/test-freadseek.sh: New file.
31745         * tests/test-freadseek.c: New file.
31746
31747         New module 'freadseek'.
31748         * modules/freadseek: New file.
31749         * lib/freadseek.h: New file.
31750         * lib/freadseek.c: New file.
31751         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31752
31753 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31754
31755         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31756         wydawca.
31757
31758         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31759         program_invocation_name and program_invocation_short_name are
31760         present.
31761
31762 2008-02-28  Bruno Haible  <bruno@clisp.org>
31763
31764         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31765         * tests/test-freadptr.sh: Also test non-seekable stdin.
31766
31767 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31768
31769         * build-aux/bootstrap (source_base, m4_base)
31770         (doc_base, tests_base): New variables.
31771         (gnulib_tool_options): Do not hardcode base directories, use
31772         the above variables instead.
31773
31774 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31775
31776         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31777
31778 2008-02-28  Bruno Haible  <bruno@clisp.org>
31779
31780         * modules/freadptr-tests: New file.
31781         * tests/test-freadptr.sh: New file.
31782         * tests/test-freadptr.c: New file.
31783
31784         New module 'freadptr'.
31785         * modules/freadptr: New file.
31786         * lib/freadptr.h: New file.
31787         * lib/freadptr.c: New file.
31788         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31789
31790 2008-02-26  Karl Berry  <karl@freefriends.org>
31791
31792         Sync from Libtool:
31793         * libltdl/argz.c (argz_add, argz_count): New functions.
31794         * libltdl/argz.in.h: Declare them.
31795         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31796
31797 2008-02-22  Bruno Haible  <bruno@clisp.org>
31798
31799         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31800         is a pointer type.  Needed for HP-UX 10.
31801         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31802         * doc/posix-functions/gmtime_r.texi: Likewise.
31803         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31804
31805 2008-02-24  Bruno Haible  <bruno@clisp.org>
31806
31807         * modules/environ-tests: New file.
31808         * tests/test-environ.c: New file.
31809
31810         New module 'environ'.
31811         * modules/environ: New file.
31812         * lib/unistd.in.h (environ): New declaration.
31813         * m4/environ.m4: New file.
31814         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31815         after use.
31816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31817         HAVE_DECL_ENVIRON.
31818         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31819         HAVE_DECL_ENVIRON.
31820         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31821         wrong claim that 'environ' is missing on some systems.
31822         * modules/execute (Depends-on): Add environ.
31823         * lib/execute.c (environ): Remove fallback declaration.
31824         * modules/pipe (Depends-on): Add environ.
31825         * lib/pipe.c (environ): Remove fallback declaration.
31826         * modules/setenv (Depends-on): Add environ.
31827         * lib/setenv.c (environ): Remove fallback declaration.
31828         * modules/unsetenv (Depends-on): Add environ.
31829         * lib/unsetenv.c (environ): Remove fallback declaration.
31830         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31831         m4/environ.m4.
31832         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31833         (gl_PREREQ_UNSETENV): Likewise.
31834
31835 2008-02-24  Bruno Haible  <bruno@clisp.org>
31836
31837         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31838
31839 2008-02-20  Bob Proulx  <bob@proulx.com>
31840
31841         Enable use of older two part flavor 'git describe'.
31842         * build-aux/git-version-gen: If using the older two part flavor of
31843         git version then recreate the third part now present in the
31844         newer three part flavor of git describe.
31845
31846 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31847
31848         * lib/fts.c (fts_build): Typo correction to comment.
31849
31850 2008-02-17  Bruno Haible  <bruno@clisp.org>
31851
31852         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31853         generating no-op conflicts.
31854
31855 2008-02-17  Bruno Haible  <bruno@clisp.org>
31856
31857         Speed up by 10%.
31858         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31859         result_entries, rather than an index-based loop.
31860
31861 2008-02-17  Bruno Haible  <bruno@clisp.org>
31862
31863         Speed up by 25%.
31864         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31865         'hashcode_cached'.
31866         (entry_create): New function.
31867         (entry_hashcode): Use the cached hashcode if possible.
31868         (read_changelog_file, try_split_merged_entry): Use entry_create.
31869
31870 2008-02-17  Bruno Haible  <bruno@clisp.org>
31871
31872         Speed up from O(n^2) to O(n) for long ChangeLog files.
31873         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31874         (read_changelog_file): Change implementation of entries_reversed list
31875         to rbtreehash.
31876         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31877
31878 2008-02-17  Bruno Haible  <bruno@clisp.org>
31879
31880         New option --split-merged-entry.
31881         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31882         (find_paragraph_end, try_split_merged_entry): New functions.
31883         (long_options): Add option --split-merged-entry.
31884         (usage): Document option --split-merged-entry.
31885         (main): Implement option --split-merged-entry.
31886         Reported by Eric Blake.
31887
31888 2008-02-17  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/git-merge-changelog.c: Include c-strstr.h.
31891         (main): Support the "git pull --rebase" situation.
31892         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31893         Reported by Eric Blake.
31894
31895 2008-02-16  Eric Blake  <ebb9@byu.net>
31896
31897         Avoid doubling \ in common case of "c-maybe" quoting style.
31898         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31899         eliding outer quotes.
31900         * lib/quotearg.h: Document this.
31901         * tests/test-quotearg.c (result_strings, inputs, results_g)
31902         (flag_results, locale_results): Test it by adding a new string to
31903         each test group.
31904         (compare_strings): Test new string.
31905
31906 2008-02-13  Eric Blake  <ebb9@byu.net>
31907
31908         Avoid trigraph quoting in default output.
31909         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31910         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31911         unless explicitly requested.
31912         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31913
31914 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31915
31916         Don't rely on signed integer overflowing to negative value.
31917         * lib/getugroups.c (getugroups): Include <limits.h>.
31918         Instead, compare against INT_MAX, and increment only if the test passes.
31919
31920 2008-02-13  Jim Meyering  <meyering@redhat.com>
31921         and Eric Blake  <ebb9@byu.net>
31922
31923         Avoid shadowing warning and compile errors on Linux.
31924         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
31925         forwarding macros on Linux.
31926         (dcgettext): Define a stub, for Linux.
31927         (results_g, main): Avoid warnings.
31928
31929 2008-02-12  Eric Blake  <ebb9@byu.net>
31930
31931         Silence warning in last patch.
31932         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
31933
31934         Quotearg part 4: add tests, fix c-maybe colon quoting.
31935         * lib/quotearg.h: Improve documentation.
31936         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
31937         escapes when adding outer quotes.  When quoting trigraphs, use
31938         valid C notation.  When quoting NUL, omit extra characters if next
31939         character is not digit.  Alter prototype.
31940         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
31941         callers.
31942         * modules/quotearg-tests: New module.
31943         * tests/test-quotearg.c: New test.
31944
31945 2008-02-07  Eric Blake  <ebb9@byu.net>
31946
31947         Quotearg part 3: add flag to control outer quote elision.
31948         * lib/quotearg.h (c_maybe_quoting_style): New style.
31949         (enum quoting_flags): Better documentation of flags.
31950         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
31951         c-maybe style.
31952         (quotearg_buffer_restyled): Handle new flag to elide outer
31953         quotes.
31954
31955         Quotearg part 2: add flag that can control NUL elision.
31956         * lib/quotearg.h (set_quoting_flags): New prototype.
31957         * lib/quotearg.c (struct quoting_options): Add flag field.
31958         (set_quoting_flags): New function.
31959         (quotearg_buffer_restyled): Add flags parameter.
31960         (quotearg_alloc_mem): Set the flag if length cannot be returned.
31961         (quotearg_n_options): Set the flag, since length cannot be
31962         returned.
31963         (quoting_options_from_style): Default flags correctly.
31964
31965         Quotearg part 1: more wrappers, restore quotearg_char state.
31966         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
31967         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
31968         (quotearg_colon_mem): New wrappers.
31969         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
31970         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
31971         functions.
31972         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
31973         (quotearg_colon_mem): New functions.
31974
31975 2008-02-11  Bruno Haible  <bruno@clisp.org>
31976
31977         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
31978         library in the current directory: it does not work with parallel make.
31979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31980
31981 2008-02-11  Bruno Haible  <bruno@clisp.org>
31982
31983         * .gitattributes: New file.
31984
31985 2008-02-11  Jim Meyering  <meyering@redhat.com>
31986
31987         useless-if-before-free: Fix reversed exit values.
31988         * build-aux/useless-if-before-free: Use correct values
31989         for EXIT_MATCH and EXIT_NO_MATCH.
31990
31991         * build-aux/useless-if-before-free: Close stdout carefully.
31992
31993 2008-02-10  Bruno Haible  <bruno@clisp.org>
31994
31995         New module 'git-merge-changelog'.
31996         * modules/git-merge-changelog: New file.
31997         * lib/git-merge-changelog.c: New file.
31998
31999 2008-02-10  Jim Meyering  <meyering@redhat.com>
32000
32001         useless-if-before-free: New option: --list (-l).
32002
32003         useless-if-before-free: Don't exit immediately upon open failure.
32004         * build-aux/useless-if-before-free: Exit 2 for errors.
32005         Upon failure to open a file, don't exit immediately.
32006         Rather, just warn and continue with any remaining files.
32007
32008 2008-02-10  Bruno Haible  <bruno@clisp.org>
32009
32010         New abstract list operation 'node_set_value'.
32011         * lib/gl_list.h (gl_list_node_set_value): New function.
32012         (struct gl_list_implementation): New field node_set_value.
32013         * lib/gl_list.c (gl_list_node_set_value): New function.
32014         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32015         (gl_array_list_implementation): Update.
32016         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32017         (gl_carray_list_implementation): Update.
32018         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32019         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32020         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32021         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32022         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32023         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32024         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32025         Update.
32026         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32027         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32028         (gl_sublist_list_implementation): Update.
32029
32030 2008-02-10  Bruno Haible  <bruno@clisp.org>
32031
32032         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32033         Needed when ELEMENT is #defined to 'some_type *'.
32034
32035 2008-02-10  Jim Meyering  <meyering@redhat.com>
32036
32037         New script and module: useless-if-before-free
32038         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32039         * build-aux/useless-if-before-free: New file.
32040         * modules/useless-if-before-free: New file.
32041
32042         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32043
32044         xstrtol_error: Fix typo.
32045         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32046         s/exit_failure/exit_status/.
32047
32048 2008-02-09  Jim Meyering  <meyering@redhat.com>
32049
32050         New script and module: gitlog-to-changelog
32051         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32052         * modules/gitlog-to-changelog: New file.
32053         * build-aux/gitlog-to-changelog: New file.
32054
32055 2008-02-08  Jim Meyering  <meyering@redhat.com>
32056
32057         Avoid two "parameter unused" warnings.
32058         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32059         Mark "st" as used.
32060
32061         Use "git COMMAND", not "git-COMMAND".
32062         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32063         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32064         * build-aux/git-version-gen: Use "git status", not "git-status".
32065
32066 2008-02-07  Bruno Haible  <bruno@clisp.org>
32067
32068         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32069         Avoids a crash on Windows Vista.
32070         Reported by Adam Strzelecki <ono@java.pl> via
32071         Simon Josefsson <simon@josefsson.org>.
32072
32073 2008-02-06  Bruno Haible  <bruno@clisp.org>
32074
32075         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32076         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32077         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32079         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32080         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32081         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32082         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32083         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32084         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32085         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32087         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32090         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32091         left-adjust flag.
32092         * tests/test-snprintf-posix.h (test_function): Likewise.
32093         * tests/test-sprintf-posix.h (test_function): Likewise.
32094         * tests/test-vasprintf-posix.c (test_function): Likewise.
32095         * doc/posix-functions/fprintf.texi: Update.
32096         * doc/posix-functions/printf.texi: Update.
32097         * doc/posix-functions/snprintf.texi: Update.
32098         * doc/posix-functions/sprintf.texi: Update.
32099         * doc/posix-functions/vfprintf.texi: Update.
32100         * doc/posix-functions/vprintf.texi: Update.
32101         * doc/posix-functions/vsnprintf.texi: Update.
32102         * doc/posix-functions/vsprintf.texi: Update.
32103         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32104
32105 2008-02-06  Bruno Haible  <bruno@clisp.org>
32106
32107         Fix bug introduced on 2008-01-26.
32108         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32109
32110 2008-02-06  Bruno Haible  <bruno@clisp.org>
32111
32112         Fix bug introduced on 2007-06-10.
32113         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32114         !NEED_PRINTF_FLAG_ZERO.
32115
32116 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32117
32118         getloadavg: use libperfstat on AIX5
32119         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32120
32121 2008-02-03  Bruno Haible  <bruno@clisp.org>
32122
32123         * lib/diffseq.h: Add comments about required #includes.
32124         Reported by Michael Biggs <gnulib@doubleplum.net>.
32125
32126 2008-02-01  Bruno Haible  <bruno@clisp.org>
32127
32128         * users.txt: Add gnuit.
32129
32130 2008-01-31  Bruno Haible  <bruno@clisp.org>
32131
32132         * lib/md4.c (set_uint32): Mark as inline.
32133         * lib/md5.c (set_uint32): Likewise.
32134         * lib/sha1.c (set_uint32): Likewise.
32135         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32136         * m4/md5.m4 (gl_MD5): Likewise.
32137         * m4/sha1.m4 (gl_SHA1): Likewise.
32138
32139 2008-01-31  Jim Meyering  <meyering@redhat.com>
32140
32141         Use "sizeof VAR", rather than a literal "4".
32142         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32143         * lib/md4.c (md4_read_ctx): Likewise.
32144         * lib/sha1.c (sha1_read_ctx): Likewise.
32145
32146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32147
32148         * tests/test-sha1.c: New file, based on test-md5.c.
32149
32150         * modules/crypto/sha1-tests: New file.
32151
32152 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32153
32154         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32155
32156 2008-01-31  Jim Meyering  <meyering@redhat.com>
32157
32158         Prefer "sizeof v" over the equivalent "4".
32159         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32160         * lib/md5.c (set_uint32): Likewise.
32161         * lib/sha1.c (set_uint32): Likewise.
32162
32163 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32164
32165         * lib/sha1.c (set_uint32): Mark function as static.
32166
32167 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32168
32169         md2: clarify comments to say that alignment is not required.
32170         * lib/md2.h: Remove warning about alignment in comment.
32171         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32172         never been required.
32173
32174 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32175
32176         md4: adapt alignment constraint fix from sha1.
32177         * lib/md4.c (set_uint32): New function, from sha1.c
32178         (md4_read_ctx): Use it.
32179         (md4_finish_ctx): Doc fix.
32180         * lib/md4.h: Doc fix.
32181
32182 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32183
32184         md5: adapt alignment constraint fix from sha1.
32185         * lib/md5.c (set_uint32): New function, from sha1.c
32186         (md5_read_ctx): Use it.
32187         (md5_finish_ctx): Doc fix.
32188         * lib/md5.h: Doc fix.
32189
32190 2008-01-30  Peter Palfrader  <weasel@debian.org>
32191
32192         sha1: remove the result buffer alignment constraint
32193         * lib/sha1.c (set_uint32): New function.
32194         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32195         constraint.
32196         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32197         * lib/sha1.h: Likewise.
32198
32199 2008-01-30  Andreas Schwab  <schwab@suse.de>
32200             Bruno Haible  <bruno@clisp.org>
32201
32202         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32203         correct definition of LDBL_MIN_EXP.
32204
32205 2008-01-30  Karl Berry  <karl@gnu.org>
32206
32207         * config/srclist-update: try to preserve x bit on updates.
32208         * config/srclistvars.sh: update for karl.
32209
32210 2008-01-29  Jim Meyering  <meyering@redhat.com>
32211
32212         vasnprintf.c: Avoid warning about unused label
32213         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32214         "overflow" label definition and associated code with the
32215         same cpp condition that guards the sole use of that label.
32216
32217 2008-01-26  Bruno Haible  <bruno@clisp.org>
32218
32219         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32220         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32221         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32222         * lib/isnanl-nolibm.h (isnanl): Likewise.
32223         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32224
32225 2008-01-26  Bruno Haible  <bruno@clisp.org>
32226
32227         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32228         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32229
32230 2008-01-26  Bruno Haible  <bruno@clisp.org>
32231
32232         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32233         GCC >= 4.0 built-in.
32234         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32235
32236 2008-01-26  Bruno Haible  <bruno@clisp.org>
32237
32238         Rename isnan, applicable to 'double' only, to isnand.
32239         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32240         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32241         (configure.ac): Update.
32242         (Include): Replace "isnan.h" with "isnand.h".
32243         * m4/isnand.m4: Renamed from m4/isnan.m4.
32244         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32245         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32246         instead of isnan.c.
32247         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32248         instead of HAVE_ISNAN_IN_LIBC.
32249         (isnand): Renamed from isnan.
32250         * lib/isnand.c: New file.
32251         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32252         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32253         (Makefile.am): Update.
32254         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32255         Include isnand.h instead of isnan.h.
32256         (main): Test isnand instead of isnan.
32257         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32258         isnan-nolibm.
32259         * modules/frexp (Depends-on): Likewise.
32260         * modules/frexp-tests (Depends-on): Likewise.
32261         * modules/frexp-nolibm (Depends-on): Likewise.
32262         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32263         * modules/isfinite (Depends-on): Likewise.
32264         * modules/round-tests (Depends-on): Likewise.
32265         * modules/signbit (Depends-on): Likewise.
32266         * modules/signbit-tests (Depends-on): Likewise.
32267         * modules/snprintf-posix (Depends-on): Likewise.
32268         * modules/sprintf-posix (Depends-on): Likewise.
32269         * modules/trunc-tests (Depends-on): Likewise.
32270         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32271         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32272         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32273         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32274         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32275         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32276         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32277         * modules/vasnprintf-posix (Depends-on): Likewise.
32278         * modules/vasprintf-posix (Depends-on): Likewise.
32279         * modules/vfprintf-posix (Depends-on): Likewise.
32280         * modules/vsnprintf-posix (Depends-on): Likewise.
32281         * modules/vsprintf-posix (Depends-on): Likewise.
32282         * lib/frexp.c: Include isnand.h instead of isnan.h.
32283         (ISNAN): Set to isnand instead of isnan.
32284         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32285         (gl_isfinited): Use isnand instead of isnan.
32286         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32287         (gl_signbitd): Use isnand instead of isnan.
32288         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32289         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32290         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32291         (main): Use isnand instead of isnan.
32292         * tests/test-round1.c: Include isnand.h.
32293         (main): Use isnand instead of isnan.
32294         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32295         (ISNAN): Set to isnand instead of isnan.
32296         * tests/test-trunc1.c: Include isnand.h.
32297         (main): Use isnand instead of isnan.
32298         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32299         (equal): Use isnand instead of isnan.
32300         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32301         isnand-nolibm.
32302         * NEWS: Mention the change.
32303
32304 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32305             Bruno Haible  <bruno@clisp.org>
32306
32307         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32308         the GCC builtins for signbits are present and set
32309         REPLACE_SIGNBIT_USING_GCC if so.
32310         * lib/math.in.h (signbit): Define using GCC builtins if
32311         REPLACE_SIGNBIT_USING_GCC is set.
32312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32313         REPLACE_SIGNBIT_USING_GCC.
32314         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32315
32316 2008-01-25  Jim Meyering  <meyering@redhat.com>
32317
32318         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32319         * lib/poll.c: Include <config.h>, not "config.h".
32320         * tests/test-getaddrinfo.c: Likewise.
32321
32322 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32323
32324         * modules/sockets-tests: New file.
32325
32326 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32327
32328         * modules/sockets: New module, can be used to call WSA_Startup and
32329         WSA_Cleanup when needed.
32330
32331         * lib/sockets.h, lib/sockets.c: New files.
32332
32333         * m4/sockets.m4: New file.
32334
32335         * tests/test-sockets.c: New file.
32336
32337 2008-01-19  Bruno Haible  <bruno@clisp.org>
32338
32339         * doc/posix-headers: Renamed from doc/headers.
32340         * doc/posix-functions: Renamed from doc/functions.
32341         * doc/gnulib.texi: Update.
32342
32343 2008-01-19  Bruno Haible  <bruno@clisp.org>
32344
32345         * doc/glibc-functions/strcasestr.texi: Include contents of
32346         doc/functions/strcasestr.texi, fixing the list of platforms.
32347         * doc/functions/strcasestr.texi: Remove file.
32348
32349 2008-01-19  Bruno Haible  <bruno@clisp.org>
32350
32351         * doc/glibc-functions/memmem.texi: Include contents of
32352         doc/functions/memmem.texi.
32353         * doc/functions/memmem.texi: Remove file.
32354
32355 2008-01-18  Bruno Haible  <bruno@clisp.org>
32356
32357         * doc/glibc-functions/*.texi: New files.
32358         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32359         to use the new files.
32360
32361 2008-01-17  Bruno Haible  <bruno@clisp.org>
32362
32363         * tests/test-gethostname.c (main): Fix printf statement.
32364
32365 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32366
32367         * modules/gethostname-tests: New file.
32368
32369         * tests/test-gethostname.c: New file.
32370
32371 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32372
32373         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32374         used by the UNAME case.  Reported by Bruno Haible
32375         <bruno@clisp.org>.
32376
32377 2008-01-17  Eric Blake  <ebb9@byu.net>
32378
32379         Convert c-strcasestr to be more efficient.
32380         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32381         (Depends-on): Add c-strcase, remove malloca, strnlen.
32382         * tests/test-c-strcasestr.c (main): Enhance test.
32383         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32384
32385 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32386
32387         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32388         Use it in creating po/Makevars.
32389
32390 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32391
32392         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32393         Applications that requires it should initialize libgcrypt
32394         manually.
32395
32396 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32397
32398         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32399
32400 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32401
32402         Fix problem with getdate on mingw32 reported by Simon Josefsson
32403         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32404         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32405         tzname", when deciding whether to declare tzname.
32406         * lib/strftime.c (tzname): Likewise.
32407
32408 2008-01-15  Bruno Haible  <bruno@clisp.org>
32409
32410         Work around a MacOS X 10.5 bug in frexpl().
32411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32412         * doc/functions/frexpl.texi: Document the bug.
32413         Reported by Elias Pipping <pipping@gentoo.org>.
32414
32415 2008-01-14  Eric Blake  <ebb9@byu.net>
32416
32417         Touch up previous patch.
32418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32419         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32420
32421         Convert strcasestr module to use Two-Way algorithm.
32422         * modules/strcasestr-simple: New module, based on the old
32423         strcasestr, but with Two-Way rather than KMP.
32424         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32425         * lib/string.in.h (rpl_strcasestr): Declare.
32426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32427         performance.
32428         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32429         * modules/string (Makefile.am): Support strcasestr.
32430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32431         * modules/strcasestr-tests (Depends-on): Check for alarm.
32432         * tests/test-strcasestr.c: Augment test.
32433         * lib/str-two-way.h: Clean up stray macro.
32434         * NEWS: Document new module.
32435         * MODULES.html.sh (string handling): Likewise.
32436         * doc/functions/strcasestr.texi: New file.
32437         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32438         here, since it is not a POSIX function.
32439
32440 2008-01-14  Colin Watson  <cjwatson@debian.org>
32441             Bruno Haible  <bruno@clisp.org>
32442
32443         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32444         works fine; if not, set REPLACE_STRSIGNAL.
32445         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32447         REPLACE_STRSIGNAL.
32448         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32449         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32450         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32451
32452 2008-01-14  Bruno Haible  <bruno@clisp.org>
32453
32454         * modules/strsignal (Include): Change to <string.h>.
32455
32456 2008-01-14  Colin Watson  <cjwatson@debian.org>
32457
32458         * modules/argp (Notice): Add a notice recommending to change
32459         XGETTEXT_OPTIONS.
32460         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32461
32462 2008-01-13  Colin Watson  <cjwatson@debian.org>
32463
32464         * modules/strsignal-tests: New file.
32465         * tests/test-strsignal.c: New file.
32466
32467         * lib/strsignal.c: New file, from glibc with modifications.
32468         * lib/siglist.h: New file, from glibc with modifications.
32469         * lib/string.in.h (strsignal): New declaration.
32470         * m4/strsignal.m4: New file.
32471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32472         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32473         * modules/strsignal: New file.
32474         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32475         HAVE_DECL_STRSIGNAL.
32476
32477 2008-01-13  Bruno Haible  <bruno@clisp.org>
32478
32479         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32480         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32481         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32482         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32483
32484 2008-01-13  Bruno Haible  <bruno@clisp.org>
32485
32486         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32487         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32488         * lib/argp.h (__attribute__): Likewise.
32489         * lib/c-stack.c (__attribute__): Likewise.
32490         * lib/error.h (__attribute__): Likewise.
32491         * lib/fts.c (__attribute__): Likewise.
32492         * lib/openat.h (__attribute__): Likewise.
32493         * lib/stdio.in.h (__attribute__): Likewise.
32494         * lib/string.in.h (__attribute__): Likewise.
32495         * lib/utimens.c (__attribute__): Likewise.
32496         * lib/vasnprintf.h (__attribute__): Likewise.
32497         * lib/xalloc.h (__attribute__): Likewise.
32498         * lib/xprintf.h (__attribute__): Likewise.
32499         * lib/xstrtol.h (__attribute__): Likewise.
32500         * lib/xvasprintf.h (__attribute__): Likewise.
32501
32502 2008-01-12  Bruno Haible  <bruno@clisp.org>
32503
32504         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32505         * doc/glibc-headers/a.out.texi: New file.
32506         * doc/glibc-headers/aliases.texi: New file.
32507         * doc/glibc-headers/alloca.texi: New file.
32508         * doc/glibc-headers/ar.texi: New file.
32509         * doc/glibc-headers/argp.texi: New file.
32510         * doc/glibc-headers/argz.texi: New file.
32511         * doc/glibc-headers/byteswap.texi: New file.
32512         * doc/glibc-headers/crypt.texi: New file.
32513         * doc/glibc-headers/endian.texi: New file.
32514         * doc/glibc-headers/envz.texi: New file.
32515         * doc/glibc-headers/err.texi: New file.
32516         * doc/glibc-headers/error.texi: New file.
32517         * doc/glibc-headers/execinfo.texi: New file.
32518         * doc/glibc-headers/fpu_control.texi: New file.
32519         * doc/glibc-headers/fstab.texi: New file.
32520         * doc/glibc-headers/fts.texi: New file.
32521         * doc/glibc-headers/getopt.texi: New file.
32522         * doc/glibc-headers/ieee754.texi: New file.
32523         * doc/glibc-headers/ifaddrs.texi: New file.
32524         * doc/glibc-headers/libintl.texi: New file.
32525         * doc/glibc-headers/mcheck.texi: New file.
32526         * doc/glibc-headers/mntent.texi: New file.
32527         * doc/glibc-headers/obstack.texi: New file.
32528         * doc/glibc-headers/paths.texi: New file.
32529         * doc/glibc-headers/printf.texi: New file.
32530         * doc/glibc-headers/pty.texi: New file.
32531         * doc/glibc-headers/resolv.texi: New file.
32532         * doc/glibc-headers/shadow.texi: New file.
32533         * doc/glibc-headers/sysexits.texi: New file.
32534         * doc/glibc-headers/ttyent.texi: New file.
32535
32536 2008-01-12  Jim Meyering  <meyering@redhat.com>
32537
32538         announce-gen: emit Gnulib's git-based version string.
32539         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32540         New option --gnulib-version=V, where V is expected to be
32541         the output of running git describe in the gnulib directory.
32542         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32543         not useful, and plan to stop publishing an xdelta file with each
32544         coreutils release.
32545
32546         * build-aux/announce-gen: Also check for lzma-compressed files.
32547
32548 2008-01-11  Bruno Haible  <bruno@clisp.org>
32549
32550         * tests/test-memmem.c (main): Increase maximum allowed time.
32551         * tests/test-strstr.c (main): Likewise.
32552
32553 2008-01-11  Bruno Haible  <bruno@clisp.org>
32554
32555         * doc/functions/memmem.texi: Add more precisions about platforms.
32556         * doc/functions/strstr.texi: Likewise.
32557
32558 2008-01-10  Eric Blake  <ebb9@byu.net>
32559
32560         * m4/strstr.m4: Delete cruft from copy-n-paste.
32561         Reported by Bruno Haible.
32562
32563 2008-01-10  Bruno Haible  <bruno@clisp.org>
32564
32565         Make c-strstr rely on strstr.
32566         * lib/c-strstr.c: Don't include str-kmp.h.
32567         (c_strstr): Define in terms of strstr.
32568         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32569         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32570
32571 2008-01-10  Bruno Haible  <bruno@clisp.org>
32572
32573         * doc/gnulib.texi (String Functions in C Locale): New section.
32574         * doc/c-ctype.texi: New file.
32575         * doc/c-strcase.texi: New file.
32576         * doc/c-strcaseeq.texi: New file.
32577         * doc/c-strcasestr.texi: New file.
32578         * doc/c-strstr.texi: New file.
32579         * doc/c-strtod.texi: New file.
32580         * doc/c-strtold.texi: New file.
32581
32582 2008-01-10  Eric Blake  <ebb9@byu.net>
32583
32584         * lib/relocatable.h: Fix a comment.
32585
32586 2008-01-10  Eric Blake  <ebb9@byu.net>
32587
32588         Share two-way algorithm.
32589         * lib/str-two-way.h: New file, merged from...
32590         * lib/memmem.c: ...here...
32591         * lib/strstr.c: ...and here.
32592         * modules/memmem (Files): Use it.
32593         * modules/strstr (Files): Likewise.
32594
32595         Avoid quadratic strstr implementations.
32596         * lib/strstr.c: New file.
32597         * m4/strstr.m4: Likewise.
32598         * modules/strstr: Likewise.
32599         * modules/strstr-tests: Likewise.
32600         * tests/test-strstr.c: Likewise.
32601         * lib/string.in.h (rpl_strstr): Declare.
32602         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32604         * modules/string (Makefile.am): Likewise.
32605         * MODULES.html.sh (string handling): Mention new module.
32606         * doc/functions/strstr.texi (strstr): Document the bug.
32607
32608 2008-01-10  Bruno Haible  <bruno@clisp.org>
32609
32610         * lib/relocatable.h (relocate): State whether result is freshly
32611         allocated or not.
32612         * lib/relocatable.c (relocate): Return a freshly allocated string
32613         instead of a pointer to a privately held string.
32614         Reported by Sylvain Beucler <beuc@gnu.org>.
32615
32616 2008-01-10  Colin Watson  <cjwatson@debian.org>
32617
32618         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32619         s/S_ISNLK/S_ISLNK/.
32620
32621 2008-01-09  Bruno Haible  <bruno@clisp.org>
32622
32623         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32624         and other files.
32625         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32626         if it's only a guess.
32627         * modules/memmem: Simplify by depending on memmem-simple.
32628
32629 2008-01-09  Bruno Haible  <bruno@clisp.org>
32630
32631         Work around OpenBSD 4.0 tdelete() bug.
32632         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32633         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32634         macros and don't redefine the enum values.
32635         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32636         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32637         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32638
32639 2008-01-09  Bruno Haible  <bruno@clisp.org>
32640
32641         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32642         (main): Don't perform the tests if setlocale did not install a UTF-8
32643         locale. Needed on OpenBSD 4.0.
32644         * modules/wcwidth-tests (Depends-on): Add localcharset.
32645
32646 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32647
32648         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32649         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32650         * NEWS: announce this.
32651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32652
32653 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32654         and Eric Blake  <ebb9@byu.net>
32655
32656         Add memmem-simple module.
32657         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32658         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32659         * modules/memmem-simple: New file.
32660         * modules/memmem (Description): Tweak.
32661         * MODULES.html.sh (string handling): Mention new module.
32662         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32663         addressed by memmem-simple.
32664         * NEWS: Document the difference.
32665
32666 2008-01-09  Eric Blake  <ebb9@byu.net>
32667
32668         Give gcc some memmem optimization hints.
32669         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32670         (strcasestr): Declare as pure.
32671         * modules/memmem (Maintainer): Claim my implementation.
32672
32673 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32674
32675         Support AIX 6.1 and higher.
32676         * build-aux/config.libpath: Likewise.
32677         * build-aux/config.rpath: Likewise.
32678
32679 2008-01-08  Jim Meyering  <meyering@redhat.com>
32680             Bruno Haible  <bruno@clisp.org>
32681
32682         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32683         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32684         Reported by Peter Fales in
32685         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32686
32687 2008-01-08  Bruno Haible  <bruno@clisp.org>
32688
32689         * modules/unictype/category-of (Depends-on): Add
32690         unictype/category-none.
32691         * modules/unictype/category-and-tests (Depends-on): Add
32692         unictype/category-{L,N,Lu,Nd}.
32693         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32694         * modules/unictype/category-or-tests (Depends-on): Add
32695         unictype/category-{L,N}.
32696         * modules/unictype/category-name-tests (Depends-on): Add
32697         unictype/category-{Z,Nl}.
32698         Reported by Simon Josefsson.
32699
32700 2008-01-08  Bruno Haible  <bruno@clisp.org>
32701
32702         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32703         convention better.
32704         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32705         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32706         Reported by Peter Miller <millerp@canb.auug.org.au>.
32707
32708 2008-01-08  Eric Blake  <ebb9@byu.net>
32709
32710         Rewrite memmem to guarantee linear complexity without malloc.
32711         * lib/memmem.c (memmem): Use Two-Way rather than
32712         Knuth-Morris-Pratt, to allow O(1) space usage.
32713         (critical_factorization, two_way_short_needle)
32714         (two_way_long_needle): New functions.
32715         (knuth_morris_pratt): Delete.
32716         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32717         Add stdint.
32718         * tests/test-memmem.c (main): Add tests for periodic needle and
32719         sublinear performance.
32720         * doc/functions/memmem.texi (memmem): Document other deficiencies
32721         in cygwin and older glibc.
32722
32723 2008-01-08  Bruno Haible  <bruno@clisp.org>
32724
32725         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32726         augmentation.
32727
32728 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32729
32730         Add a configure time option: --disable-acl.
32731         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32732         AC_ARG_ENABLE(acl).
32733
32734 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32735
32736         * tests/test-localename.c: Don't include obsolete "setenv.h".
32737
32738         * modules/localename-tests (Depends-on): Need unsetenv.
32739
32740 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32741
32742         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32743
32744 2008-01-06  Colin Watson  <cjwatson@debian.org>
32745
32746         * users.txt: Add man-db.
32747
32748 2008-01-07  Bruno Haible  <bruno@clisp.org>
32749
32750         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32751         previous section name.
32752
32753 2008-01-07  Bruno Haible  <bruno@clisp.org>
32754
32755         * lib/progname.c (set_program_name): Don't strip off a leading
32756         "lt-" prefix outside a .libs directory.
32757         Suggested by Paul Eggert.
32758
32759 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32760             Bruno Haible  <bruno@clisp.org>
32761
32762         Improve memory cleanup in 'relocatable' module.
32763         * lib/relocatable.h (compute_curr_prefix): Change return type to
32764         'char *'.
32765         * lib/relocatable.c (compute_curr_prefix): Change return type to
32766         'char *'. Free curr_installdir after use.
32767         (relocate): Free curr_prefix_better after use.
32768         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32769
32770 2008-01-01  Bruno Haible  <bruno@clisp.org>
32771
32772         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32773         failure on older glibc systems.
32774         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32775
32776 2008-01-05  Eric Blake  <ebb9@byu.net>
32777
32778         Avoid quadratic system memmem.
32779         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32780         Reported by Ralf Wildenhues.
32781
32782         Fix memmem test for mingw.
32783         * modules/memmem-tests (configure.ac): Check for alarm.
32784         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32785         it.
32786         * doc/functions/memmem.texi: New file.
32787         * doc/gnulib.texi (Function Substitutes): Add memmem.
32788         Reported by Bruno Haible.
32789
32790 2008-01-04  Bruno Haible  <bruno@clisp.org>
32791
32792         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32793         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32794         gl_HEADER_STRING_H_DEFAULTS.
32795
32796 2008-01-04  Eric Blake  <ebb9@byu.net>
32797
32798         Shorten duration of memmem test.
32799         * tests/test-memmem.c (main): Use alarm to declare failure if test
32800         is taking too long.
32801         Reported by Ralf Wildenhues.
32802
32803 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32804
32805         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32806         string, needed by strerror.
32807
32808 2008-01-03  Colin Watson  <cjwatson@debian.org>
32809             Bruno Haible  <bruno@clisp.org>
32810
32811         * doc/gnulib-tool.texi (Localization): New section.
32812
32813 2008-01-02  Bruno Haible  <bruno@clisp.org>
32814
32815         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32816         variables to 'unsigned char *' type.
32817         Reported by Paul Eggert.
32818
32819 2008-01-02  Jim Meyering  <jim@meyering.net>
32820
32821         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32822
32823 2007-12-31  Jim Meyering  <jim@meyering.net>
32824
32825         Avoid use of private FTS type name.
32826         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32827
32828 2007-12-30  Karl Berry  <karl@gnu.org>
32829
32830         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32831         work around defect in Texinfo and/or the standalone Info browser.
32832
32833 2007-12-30  Bruno Haible  <bruno@clisp.org>
32834
32835         Unify 5 copies of the KMP code.
32836         * lib/str-kmp.h: New file.
32837         * lib/c-strcasestr.c: Include str-kmp.h.
32838         (knuth_morris_pratt): Remove function.
32839         (c_strcasestr): Update.
32840         * lib/c-strstr.c: Include str-kmp.h.
32841         (knuth_morris_pratt): Remove function.
32842         (c_strcasestr): Update.
32843         * lib/mbscasestr.c: Include str-kmp.h.
32844         (knuth_morris_pratt_unibyte): Remove function.
32845         * lib/mbsstr.c: Include str-kmp.h.
32846         (knuth_morris_pratt_unibyte): Remove function.
32847         * lib/strcasestr.c: Include str-kmp.h.
32848         (knuth_morris_pratt): Remove function.
32849         (strcasestr): Update.
32850         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32851         * modules/c-strstr (Files): Likewise.
32852         * modules/mbscasestr (Files): Likewise.
32853         * modules/mbsstr (Files): Likewise.
32854         * modules/strcasestr (Files): Likewise.
32855         Suggested by Paul Eggert.
32856
32857 2007-12-30  Bruno Haible  <bruno@clisp.org>
32858
32859         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32860         defined.
32861
32862 2007-12-30  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/xmalloca.h: Include xalloc.h.
32865         (xnmalloca): New macro.
32866
32867 2007-12-30  Bruno Haible  <bruno@clisp.org>
32868
32869         * lib/malloca.h (nmalloca): New macro.
32870         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32871         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32872         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32873         knuth_morris_pratt_multibyte): Likewise.
32874         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32875         knuth_morris_pratt_multibyte): Likewise.
32876         * lib/memmem.c (knuth_morris_pratt): Likewise.
32877         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32878
32879 2007-12-25  Bruno Haible  <bruno@clisp.org>
32880
32881         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32882         * lib/glob.c: Don't include openat.h.
32883         (link_exists2_p): Add back the code that deals with the
32884         !GLOB_ALTDIRFUNC case.
32885         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32886         let it do the filename concatenation.
32887         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32888         * modules/glob (Depends-on): Remove openat.
32889
32890 2007-12-31  Bruno Haible  <bruno@clisp.org>
32891
32892         * modules/dirfd (License): Change to LGPLv2+.
32893         Approved by Jim Meyering.
32894
32895 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32896
32897         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32898         when multiplying M by sizeof (size_t).
32899
32900 2007-12-10  Martin Lambers  <marlam@marlam.de>
32901
32902         Override getpagesize on mingw.
32903         * lib/getpagesize.c: New file.
32904         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32905         * modules/getpagesize (Files): Add lib/getpagesize.c.
32906         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32908         REPLACE_GETPAGESIZE.
32909         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32910
32911 2007-12-25  Bruno Haible  <bruno@clisp.org>
32912
32913         * modules/localcharset (Notice): New field.
32914         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32915         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32916
32917 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32918             Bruno Haible  <bruno@clisp.org>
32919
32920         Avoid using the syntax symbol() in formatted documentation.
32921         * MODULES.html.sh (func_module): When replacing symbol() with a
32922         hyperlink, remove the parentheses. Show an error if some remain.
32923         Recognize and render the '...' syntax.
32924         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
32925         Rework. Add paragraph about GCC's inlining.
32926         * doc/alloca.texi: Likewise.
32927         * doc/error.texi: Remove parentheses from symbol reference.
32928         * doc/gnulib-intro.texi: Likewise.
32929         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
32930         * modules/fnmatch (Description): Reword to say "the ... function".
32931         * modules/full-read (Description): Likewise.
32932         * modules/full-write (Description): Likewise.
32933         * modules/safe-read (Description): Likewise.
32934         * modules/safe-write (Description): Likewise.
32935         * modules/strchrnul (Description): Likewise.
32936         * modules/trim (Description): Likewise.
32937         * modules/error (Description): Remove parentheses from symbol
32938         references.
32939         * modules/verror (Description): Likewise.
32940         Reported by Karl Berry.
32941
32942 2007-12-25  Bruno Haible  <bruno@clisp.org>
32943
32944         Fixup after 2007-10-16 commit.
32945         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
32946
32947 2007-12-24  Bruno Haible  <bruno@clisp.org>
32948
32949         Make --enable-relocatable work with DESTDIR.
32950         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
32951         to compute installdir from destprog.
32952         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
32953         also set the RELOC_DESTDIR variable.
32954         Reported by Левашев Иван <octagram@bluebottle.com>.
32955
32956 2007-12-24  Bruno Haible  <bruno@clisp.org>
32957
32958         Fix link error due to xalloc_die().
32959         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
32960         of xreadlink.
32961         * lib/relocwrapper.c: Update comments.
32962         * build-aux/install-reloc: Remove xreadlink.c from file list.
32963         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
32964         xreadlink.c.
32965         Reported by Левашев Иван <octagram@bluebottle.com>.
32966
32967 2007-12-24  Bruno Haible  <bruno@clisp.org>
32968
32969         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
32970         * lib/setenv.h: Remove file.
32971         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
32972         lib/setenv.h.
32973         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
32974         (Depends-on): Add stdlib.
32975         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
32976         gl_FUNC_UNSETENV.
32977         (Include): Replace setenv.h with <stdlib.h>.
32978         * modules/unsetenv: New file.
32979         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
32980         * lib/unsetenv.c: Include <stdlib.h> first.
32981         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
32982         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
32983         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
32984         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
32985         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
32986         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
32988         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32989         * doc/functions/unsetenv.texi: Update.
32990         * modules/xsetenv (Depends-on): Add unsetenv.
32991         * modules/getdate (Depends-on): Likewise.
32992         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
32993         * lib/xsetenv.c: Don't include setenv.h.
32994         * lib/getdate.y: Likewise.
32995         * lib/relocwrapper.c: Likewise.
32996         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
32997         (Depends-on): Add stdlib.
32998         * NEWS: Mention the changes.
32999         Reported by Левашев Иван <octagram@bluebottle.com>.
33000
33001 2007-12-23  Bruno Haible  <bruno@clisp.org>
33002
33003         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33004         indentation.
33005
33006 2007-12-23  Bruno Haible  <bruno@clisp.org>
33007
33008         * lib/c-strcasestr.c: Add more comments.
33009         * lib/c-strstr.c: Likewise.
33010         * lib/mbscasestr.c: Likewise.
33011         * lib/mbsstr.c: Likewise.
33012         * lib/strcasestr.c: Likewise.
33013         * lib/memmem.c: Likewise.
33014
33015 2007-12-23  Bruno Haible  <bruno@clisp.org>
33016
33017         * tests/test-memmem.c: Include <string.h> first.
33018
33019 2007-12-22  Bruno Haible  <bruno@clisp.org>
33020
33021         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33022         the contents of $testsbase.
33023         Reported by Ralf Wildenhues.
33024
33025 2007-12-22  Bruno Haible  <bruno@clisp.org>
33026
33027         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33028         two variables local_ldadd_before, local_ldadd_last.
33029
33030 2007-12-20  Eric Blake  <ebb9@byu.net>
33031
33032         Work around circular library issue when cross-compiling.
33033         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33034         that progname.o does not need to pull in rpl_memcmp.
33035
33036 2007-12-19  Eric Blake  <ebb9@byu.net>
33037
33038         Fix memmem to avoid O(n^2) worst-case complexity.
33039         * lib/memmem.c (knuth_morris_pratt): New function.
33040         (memmem): Use it if first few naive iterations fail.
33041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33042         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33043         * modules/memchr (License): Likewise.
33044         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33045         malloca.
33046         * tests/test-memmem.c: Rewrite, borrowing ideas from
33047         test-mbsstr1.c; the old version wouldn't even compile!
33048         * modules/memmem-tests: New file.
33049         * lib/string.in.h (rpl_memmem): Add declaration.
33050         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33052         REPLACE_MEMMEM.
33053
33054 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33055
33056         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33057         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33058         before any system include files, and undef after them all.  This
33059         should fix a problem on VMS reported by John E. Malmberg in
33060         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33061
33062 2007-12-17  Eric Blake  <ebb9@byu.net>
33063
33064         Revert addition of verify, for BSD/OS.
33065         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33066         can't handle large files, for the sake of obsolete platforms.
33067         * modules/fseeko (Depends-on): Remove verify.
33068         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33069         * doc/functions/ftello.texi (ftello): Likewise.
33070         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33071         Reported by Larry Jones.
33072
33073 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33074
33075         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33076         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33077
33078 2007-12-17  Jim Meyering  <meyering@redhat.com>
33079
33080         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33081         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33082         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33083         * modules/getcwd (Depends-on): Add openat.
33084         Reported by Petr Salinger.
33085
33086 2007-12-17  Bruno Haible  <bruno@clisp.org>
33087
33088         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33089         avoid a segmentation fault of the configure test on x86_64 systems.
33090
33091 2007-12-15  Jim Meyering  <meyering@redhat.com>
33092
33093         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33094
33095 2007-12-13  Eric Blake  <ebb9@byu.net>
33096
33097         Another fseek test.
33098         * tests/test-fseek.c (main): Also test ungetc handling.
33099         * tests/test-fseeko.c (main): Likewise.
33100         * modules/fseeko (Depends-on): Add verify.
33101         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33102         large.
33103         Reported by Larry Jones.
33104
33105         Fix fseeko on mingw.
33106         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33107         seek.
33108
33109         Beef up fseek tests.
33110         * tests/test-fseek.c (main): Also test eof handling.
33111         * tests/test-fseeko.c (main): Likewise.
33112         Reported by Larry Jones.
33113
33114 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33115
33116         Fix fseeko on BSD-based platforms.
33117         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33118         successful seek.
33119
33120 2007-12-12  Eric Blake  <ebb9@byu.net>
33121
33122         Allow circular dependency of separate libtests.a
33123         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33124         when use_libtests.
33125
33126 2007-12-11  Eric Blake  <ebb9@byu.net>
33127
33128         Fix bug with -0.0L in previous patch.
33129         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33130         * tests/test-isnan.c (main): Also test on zeroes.
33131         * tests/test-isnanf.c (main): Likewise.
33132         * tests/test-isnanl.h (main): Likewise.
33133
33134         Detect pseudo-denormals on x86 even when cross-compiling.
33135         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33136         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33137         invalid bit patterns that happen to satisfy ==.
33138
33139         Avoid link failures with separate libtests.a.
33140         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33141         last, to satisfy circular dependencies.
33142
33143 2007-12-11  Eric Blake  <ebb9@byu.net>
33144         and Bruno Haible  <bruno@clisp.org>
33145
33146         Fix OpenBSD 4.0 <float.h> handling of long double.
33147         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33148         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33149         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33150
33151 2007-12-11  Jim Meyering  <meyering@redhat.com>
33152
33153         * users.txt: Add libvirt.
33154
33155         Support versions of autoconf prior to 2.59c.
33156         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33157         if it is not already defined.
33158
33159 2007-12-09  Bruno Haible  <bruno@clisp.org>
33160
33161         Let 'gnulib-tool --import' collect sources needed for the tests in
33162         tests/ rather than in lib/.
33163         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33164         argument. If true, add rules to generate libtests.a, and put libtests.a
33165         into $(LDADD). Consider source files in subdirectories and set
33166         uses_subdirs.
33167         (func_emit_initmacro_start, func_emit_initmacro_end,
33168         func_emit_initmacro_done): Pass all arguments explicitly.
33169         (func_import): Determine two module lists main_modules,
33170         testsrelated_modules. Determine use_libtests. Determine two variables
33171         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33172         instead of just sed_transform_lib_file. Determine two variables
33173         main_files and testsrelated_files. Compute 'files' as the union of
33174         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33175         func_add_or_update. In the generated gnulib-comp.m4, collect the
33176         object files for tests/ in different variables than those for lib/.
33177         Substitute LIBTESTS_LIBDEPS.
33178         (func_create_testdir): Combine the uses_subdirs results from
33179         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33180
33181 2007-12-09  Bruno Haible  <bruno@clisp.org>
33182
33183         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33184         the build-aux directory.
33185
33186 2007-12-09  Bruno Haible  <bruno@clisp.org>
33187
33188         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33189         introduced on 2006-09-09.
33190
33191 2007-12-07  Jim Meyering  <meyering@redhat.com>
33192
33193         Let these macros work also with autoconf-2.59.
33194         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33195         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33197
33198 2007-12-06  Jim Meyering  <meyering@redhat.com>
33199
33200         Avoid a configure-time syntax error in gl_FUNC_ACL.
33201         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33202         function in each branch, before testing the cache variable.
33203
33204 2007-12-04  Eric Blake  <ebb9@byu.net>
33205
33206         Make scripts executable.
33207         * build-aux/config.guess: Add execute permissions.
33208         * build-aux/config.sub: Likewise.
33209         * build-aux/gendocs.sh: Likewise.
33210
33211         Fix frexp on mingw.
33212         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33213         cross-compiling.
33214         * doc/functions/frexp.texi (frexp): Document the bug.
33215
33216         Make cygwin fseeko check more reliable.
33217         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33218         version numbers, rather than unrelated feature check.
33219         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33220         * doc/functions/ftello.texi (ftello): Likewise.
33221         Reported by Bruno Haible.
33222
33223         * m4/strerror.m4: Bump version number.
33224
33225 2007-12-03  Bruno Haible  <bruno@clisp.org>
33226
33227         * doc/functions/mprotect.texi: Mention the mingw problem.
33228
33229 2007-12-03  Eric Blake  <ebb9@byu.net>
33230
33231         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33232         REPLACE_STRERROR is initialized before this macro.
33233
33234 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33235
33236         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33237         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33238         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33239         put -lsec in even for programs other than 'ls'.  This fixes a problem
33240         for gettext reported by Bruno Haible in
33241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33242         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33243         Add support for Solaris 10.  This isn't efficient, but should get the
33244         job done for now.
33245
33246 2007-12-03  James Youngman  <jay@gnu.org>
33247
33248         * doc/regexprops-generic.texi: change "an close-group" to "a
33249         close-group" and "illegal" to "not allowed".
33250
33251 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33252
33253         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33254         pr_byname.h. Needed for the rare case when the maintainer has done
33255         "make maintainer-clean" in the source directory and then attempts a
33256         build outside the source directory.
33257         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33258         scripts_byname.h.
33259
33260 2007-12-02  Martin Lambers <marlam@marlam.de>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         * lib/getpagesize.h: Remove file.
33264         * lib/unistd.in.h: Include declaration of getpagesize here.
33265         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33266         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33267         HAVE_SYS_PARAM_H.
33268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33269         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33270         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33271         (Depends-on): Add unistd.
33272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33273         (Include): Use <unistd.h> instead of getpagesize.h.
33274         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33275         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33276         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33277         gl_GETPAGESIZE invocation, already handled by module dependency.
33278         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33279
33280 2007-12-02  Bruno Haible  <bruno@clisp.org>
33281
33282         * modules/strings-tests: New file.
33283         * tests/test-strings.c: New file.
33284
33285         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33286         * lib/strings.in.h: New file.
33287         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33288         * m4/strings_h.m4: New file.
33289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33290         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33291         * modules/strings: New file.
33292         * modules/string (Makefile.am): Update.
33293         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33294         Reported by Karl Berry.
33295
33296 2007-12-01  Eric Blake  <ebb9@byu.net>
33297
33298         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33299         accomodate fix in cygwin 1.5.25.
33300
33301 2007-12-01  Jim Meyering  <meyering@redhat.com>
33302
33303         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33304         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33305         that would inhibit utf8-optimization of a regexp containing line-
33306         or buffer-anchors, e.g., `^', `$'.
33307
33308 2007-11-30  Bruno Haible  <bruno@clisp.org>
33309
33310         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33311         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33312         glthread_recursive_lock_init.
33313         * lib/lock.c (glthread_recursive_lock_init)
33314         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33315         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33316
33317 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33318
33319         New function qset_acl, like set_acl but with syscall semantics.
33320         * lib/acl.h (qset_acl): New decl.
33321         * lib/acl.c (qset_acl): New function.
33322         (set_acl): Use new function.  Use more-consistent diagnostics.
33323
33324 2007-11-28  Jim Meyering  <meyering@redhat.com>
33325
33326         * modules/physmem (License): Change from GPL to LGPLv2+.
33327
33328 2007-11-26  Bruno Haible  <bruno@clisp.org>
33329
33330         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33331         'long double' type has excess precision.
33332         Reported by Jim Meyering in
33333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33334
33335 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33336
33337         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33338         Sync from <http://gnu.org/licenses>.
33339         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33340         with license text from same location.
33341         * doc/maintain.texi, doc/standards.texi:  Sync from
33342         <http://savannah.gnu.org/projects/gnustandards>.
33343
33344 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33345         and Jim Meyering  <meyering@redhat.com>
33346
33347         Adjust getdate' grammar to accept a slightly more regular language.
33348         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33349         Before, the former was rejected.
33350         * lib/getdate.y (digits_to_date_time): New function, factored
33351         out of ...
33352         (number): ...here.  Just call digits_to_date_time.
33353         (hybrid): New non-terminal to handle an <unsigned number,
33354         signed relative offset> sequence consistently.
33355
33356 2007-11-18  Jim Meyering  <meyering@redhat.com>
33357
33358         Pull my changes from coreutils:
33359         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33360         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33361         use of $gnulib_tool_option_extras, so that it's separated from the
33362         preceding argument.
33363
33364         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33365         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33366         parent destination directories before copying a file into place.
33367
33368 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33369
33370         bootstrap: work also with 4-argument variant of AC_INIT
33371         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33372
33373 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33374
33375         Port test-getaddrinfo to Solaris.
33376         Problem reported by Bruno Haible in
33377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33378         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33379         explanation of setting 'hints'.
33380         Don't reject an implementation merely because it returns EAI_SERVICE.
33381         (EAI_SERVICE): Define to 0 if not defined.
33382
33383 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33384
33385         The license of gnu-make and posix-shell is now "GPLed build tool".
33386         * modules/gnu-make (License): Likewise.
33387         * modules/posix-shell (License): Likewise.
33388
33389         New module posix-shell, for determining a POSIX shell
33390         or perhaps something that is close enough to a POSIX shell.
33391         * m4/posix-shell.m4: New file.
33392         * modules/posix-shell: New file.
33393
33394         * MODULES.html.sh: Mention new module.
33395
33396         New module gnu-make, for determining whether we're using GNU Make.
33397         * m4/gnu-make.m4: New file.
33398         * modules/gnu-make: New file.
33399         * MODULES.html.sh: Mention new module.
33400
33401 2007-11-14  Jim Meyering  <meyering@redhat.com>
33402
33403         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33404         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33405         use this macro to create a function _definition_.
33406         Remove useless "#undef ARGMATCH_DIE".
33407
33408 2007-11-14  Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/config.charset: Update for OpenBSD 4.1.
33411         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33412
33413 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33414
33415         Document 64-bit #if problems in stdint.texi.
33416         * doc/headers/stdint.texi (stdint.h): Mention problems with
33417         64-bit-#if, and how to work around them.
33418
33419         Don't insist on 'long long int' support in the preprocessor.  It
33420         breaks too many things.  For example, PRIdMAX still uses a 'long
33421         long int' format with the latest Sun compiler, even though
33422         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33423         preprocessor problem.  This causes the latest coreutils to dump
33424         core on Solaris 10 sparc with the Sun C compiler.
33425         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33426         the troublesome expressions at configure-time, not at #if-time.
33427         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33428         preprocessor.
33429         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33430         compile-time C checks, done at 'configure'-time.
33431         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33432         * modules/inttypes (Makefile): Substitute the new symbols that
33433         gl_INTTYPES_H now generates.
33434         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33435
33436 2007-11-12  Bruno Haible  <bruno@clisp.org>
33437
33438         Tests for Unicode character classification functions.
33439
33440         * modules/unictype/bidicategory-byname-tests: New file.
33441         * modules/unictype/bidicategory-name-tests: New file.
33442         * modules/unictype/bidicategory-of-tests: New file.
33443         * modules/unictype/bidicategory-test-tests: New file.
33444         * modules/unictype/block-list-tests: New file.
33445         * modules/unictype/block-of-tests: New file.
33446         * modules/unictype/block-test-tests: New file.
33447         * modules/unictype/category-C-tests: New file.
33448         * modules/unictype/category-Cc-tests: New file.
33449         * modules/unictype/category-Cf-tests: New file.
33450         * modules/unictype/category-Cn-tests: New file.
33451         * modules/unictype/category-Co-tests: New file.
33452         * modules/unictype/category-Cs-tests: New file.
33453         * modules/unictype/category-L-tests: New file.
33454         * modules/unictype/category-Ll-tests: New file.
33455         * modules/unictype/category-Lm-tests: New file.
33456         * modules/unictype/category-Lo-tests: New file.
33457         * modules/unictype/category-Lt-tests: New file.
33458         * modules/unictype/category-Lu-tests: New file.
33459         * modules/unictype/category-M-tests: New file.
33460         * modules/unictype/category-Mc-tests: New file.
33461         * modules/unictype/category-Me-tests: New file.
33462         * modules/unictype/category-Mn-tests: New file.
33463         * modules/unictype/category-N-tests: New file.
33464         * modules/unictype/category-Nd-tests: New file.
33465         * modules/unictype/category-Nl-tests: New file.
33466         * modules/unictype/category-No-tests: New file.
33467         * modules/unictype/category-P-tests: New file.
33468         * modules/unictype/category-Pc-tests: New file.
33469         * modules/unictype/category-Pd-tests: New file.
33470         * modules/unictype/category-Pe-tests: New file.
33471         * modules/unictype/category-Pf-tests: New file.
33472         * modules/unictype/category-Pi-tests: New file.
33473         * modules/unictype/category-Po-tests: New file.
33474         * modules/unictype/category-Ps-tests: New file.
33475         * modules/unictype/category-S-tests: New file.
33476         * modules/unictype/category-Sc-tests: New file.
33477         * modules/unictype/category-Sk-tests: New file.
33478         * modules/unictype/category-Sm-tests: New file.
33479         * modules/unictype/category-So-tests: New file.
33480         * modules/unictype/category-Z-tests: New file.
33481         * modules/unictype/category-Zl-tests: New file.
33482         * modules/unictype/category-Zp-tests: New file.
33483         * modules/unictype/category-Zs-tests: New file.
33484         * modules/unictype/category-and-not-tests: New file.
33485         * modules/unictype/category-and-tests: New file.
33486         * modules/unictype/category-byname-tests: New file.
33487         * modules/unictype/category-name-tests: New file.
33488         * modules/unictype/category-none-tests: New file.
33489         * modules/unictype/category-of-tests: New file.
33490         * modules/unictype/category-or-tests: New file.
33491         * modules/unictype/category-test-withtable-tests: New file.
33492         * modules/unictype/combining-class-tests: New file.
33493         * modules/unictype/ctype-alnum-tests: New file.
33494         * modules/unictype/ctype-alpha-tests: New file.
33495         * modules/unictype/ctype-blank-tests: New file.
33496         * modules/unictype/ctype-cntrl-tests: New file.
33497         * modules/unictype/ctype-digit-tests: New file.
33498         * modules/unictype/ctype-graph-tests: New file.
33499         * modules/unictype/ctype-lower-tests: New file.
33500         * modules/unictype/ctype-print-tests: New file.
33501         * modules/unictype/ctype-punct-tests: New file.
33502         * modules/unictype/ctype-space-tests: New file.
33503         * modules/unictype/ctype-upper-tests: New file.
33504         * modules/unictype/ctype-xdigit-tests: New file.
33505         * modules/unictype/decimal-digit-tests: New file.
33506         * modules/unictype/digit-tests: New file.
33507         * modules/unictype/mirror-tests: New file.
33508         * modules/unictype/numeric-tests: New file.
33509         * modules/unictype/property-alphabetic-tests: New file.
33510         * modules/unictype/property-ascii-hex-digit-tests: New file.
33511         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33512         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33513         * modules/unictype/property-bidi-block-separator-tests: New file.
33514         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33515         * modules/unictype/property-bidi-common-separator-tests: New file.
33516         * modules/unictype/property-bidi-control-tests: New file.
33517         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33518         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33519         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33520         * modules/unictype/property-bidi-european-digit-tests: New file.
33521         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33522         * modules/unictype/property-bidi-left-to-right-tests: New file.
33523         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33524         * modules/unictype/property-bidi-other-neutral-tests: New file.
33525         * modules/unictype/property-bidi-pdf-tests: New file.
33526         * modules/unictype/property-bidi-segment-separator-tests: New file.
33527         * modules/unictype/property-bidi-whitespace-tests: New file.
33528         * modules/unictype/property-byname-tests: New file.
33529         * modules/unictype/property-combining-tests: New file.
33530         * modules/unictype/property-composite-tests: New file.
33531         * modules/unictype/property-currency-symbol-tests: New file.
33532         * modules/unictype/property-dash-tests: New file.
33533         * modules/unictype/property-decimal-digit-tests: New file.
33534         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33535         * modules/unictype/property-deprecated-tests: New file.
33536         * modules/unictype/property-diacritic-tests: New file.
33537         * modules/unictype/property-extender-tests: New file.
33538         * modules/unictype/property-format-control-tests: New file.
33539         * modules/unictype/property-grapheme-base-tests: New file.
33540         * modules/unictype/property-grapheme-extend-tests: New file.
33541         * modules/unictype/property-grapheme-link-tests: New file.
33542         * modules/unictype/property-hex-digit-tests: New file.
33543         * modules/unictype/property-hyphen-tests: New file.
33544         * modules/unictype/property-id-continue-tests: New file.
33545         * modules/unictype/property-id-start-tests: New file.
33546         * modules/unictype/property-ideographic-tests: New file.
33547         * modules/unictype/property-ids-binary-operator-tests: New file.
33548         * modules/unictype/property-ids-trinary-operator-tests: New file.
33549         * modules/unictype/property-ignorable-control-tests: New file.
33550         * modules/unictype/property-iso-control-tests: New file.
33551         * modules/unictype/property-join-control-tests: New file.
33552         * modules/unictype/property-left-of-pair-tests: New file.
33553         * modules/unictype/property-line-separator-tests: New file.
33554         * modules/unictype/property-logical-order-exception-tests: New file.
33555         * modules/unictype/property-lowercase-tests: New file.
33556         * modules/unictype/property-math-tests: New file.
33557         * modules/unictype/property-non-break-tests: New file.
33558         * modules/unictype/property-not-a-character-tests: New file.
33559         * modules/unictype/property-numeric-tests: New file.
33560         * modules/unictype/property-other-alphabetic-tests: New file.
33561         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33562         * modules/unictype/property-other-grapheme-extend-tests: New file.
33563         * modules/unictype/property-other-id-continue-tests: New file.
33564         * modules/unictype/property-other-id-start-tests: New file.
33565         * modules/unictype/property-other-lowercase-tests: New file.
33566         * modules/unictype/property-other-math-tests: New file.
33567         * modules/unictype/property-other-uppercase-tests: New file.
33568         * modules/unictype/property-paired-punctuation-tests: New file.
33569         * modules/unictype/property-paragraph-separator-tests: New file.
33570         * modules/unictype/property-pattern-syntax-tests: New file.
33571         * modules/unictype/property-pattern-white-space-tests: New file.
33572         * modules/unictype/property-private-use-tests: New file.
33573         * modules/unictype/property-punctuation-tests: New file.
33574         * modules/unictype/property-quotation-mark-tests: New file.
33575         * modules/unictype/property-radical-tests: New file.
33576         * modules/unictype/property-sentence-terminal-tests: New file.
33577         * modules/unictype/property-soft-dotted-tests: New file.
33578         * modules/unictype/property-space-tests: New file.
33579         * modules/unictype/property-terminal-punctuation-tests: New file.
33580         * modules/unictype/property-test-tests: New file.
33581         * modules/unictype/property-titlecase-tests: New file.
33582         * modules/unictype/property-unassigned-code-value-tests: New file.
33583         * modules/unictype/property-unified-ideograph-tests: New file.
33584         * modules/unictype/property-uppercase-tests: New file.
33585         * modules/unictype/property-variation-selector-tests: New file.
33586         * modules/unictype/property-white-space-tests: New file.
33587         * modules/unictype/property-xid-continue-tests: New file.
33588         * modules/unictype/property-xid-start-tests: New file.
33589         * modules/unictype/property-zero-width-tests: New file.
33590         * modules/unictype/scripts-tests: New file.
33591         * modules/unictype/syntax-c-ident-tests: New file.
33592         * modules/unictype/syntax-c-whitespace-tests: New file.
33593         * modules/unictype/syntax-java-ident-tests: New file.
33594         * modules/unictype/syntax-java-whitespace-tests: New file.
33595         * tests/unictype/test-bidi_byname.c: New file.
33596         * tests/unictype/test-bidi_name.c: New file.
33597         * tests/unictype/test-bidi_of.c: New file.
33598         * tests/unictype/test-bidi_test.c: New file.
33599         * tests/unictype/test-block_list.c: New file.
33600         * tests/unictype/test-block_of.c: New file.
33601         * tests/unictype/test-block_test.c: New file.
33602         * tests/unictype/test-categ_and.c: New file.
33603         * tests/unictype/test-categ_and_not.c: New file.
33604         * tests/unictype/test-categ_byname.c: New file.
33605         * tests/unictype/test-categ_name.c: New file.
33606         * tests/unictype/test-categ_none.c: New file.
33607         * tests/unictype/test-categ_of.c: New file.
33608         * tests/unictype/test-categ_or.c: New file.
33609         * tests/unictype/test-categ_test_withtable.c: New file.
33610         * tests/unictype/test-combining.c: New file.
33611         * tests/unictype/test-decdigit.c: New file.
33612         * tests/unictype/test-digit.c: New file.
33613         * tests/unictype/test-mirror.c: New file.
33614         * tests/unictype/test-numeric.c: New file.
33615         * tests/unictype/test-pr_byname.c: New file.
33616         * tests/unictype/test-pr_test.c: New file.
33617         * tests/unictype/test-predicate-part1.h: New file.
33618         * tests/unictype/test-predicate-part2.h: New file.
33619         * tests/unictype/test-scripts.c: New file.
33620         * tests/unictype/test-sy_c_ident.c: New file.
33621         * tests/unictype/test-sy_java_ident.c: New file.
33622
33623         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33624         for Unicode 5.0.0.
33625         * tests/unictype/test-categ_Cc.c: Likewise.
33626         * tests/unictype/test-categ_Cf.c: Likewise.
33627         * tests/unictype/test-categ_Cn.c: Likewise.
33628         * tests/unictype/test-categ_Co.c: Likewise.
33629         * tests/unictype/test-categ_Cs.c: Likewise.
33630         * tests/unictype/test-categ_L.c: Likewise.
33631         * tests/unictype/test-categ_Ll.c: Likewise.
33632         * tests/unictype/test-categ_Lm.c: Likewise.
33633         * tests/unictype/test-categ_Lo.c: Likewise.
33634         * tests/unictype/test-categ_Lt.c: Likewise.
33635         * tests/unictype/test-categ_Lu.c: Likewise.
33636         * tests/unictype/test-categ_M.c: Likewise.
33637         * tests/unictype/test-categ_Mc.c: Likewise.
33638         * tests/unictype/test-categ_Me.c: Likewise.
33639         * tests/unictype/test-categ_Mn.c: Likewise.
33640         * tests/unictype/test-categ_N.c: Likewise.
33641         * tests/unictype/test-categ_Nd.c: Likewise.
33642         * tests/unictype/test-categ_Nl.c: Likewise.
33643         * tests/unictype/test-categ_No.c: Likewise.
33644         * tests/unictype/test-categ_P.c: Likewise.
33645         * tests/unictype/test-categ_Pc.c: Likewise.
33646         * tests/unictype/test-categ_Pd.c: Likewise.
33647         * tests/unictype/test-categ_Pe.c: Likewise.
33648         * tests/unictype/test-categ_Pf.c: Likewise.
33649         * tests/unictype/test-categ_Pi.c: Likewise.
33650         * tests/unictype/test-categ_Po.c: Likewise.
33651         * tests/unictype/test-categ_Ps.c: Likewise.
33652         * tests/unictype/test-categ_S.c: Likewise.
33653         * tests/unictype/test-categ_Sc.c: Likewise.
33654         * tests/unictype/test-categ_Sk.c: Likewise.
33655         * tests/unictype/test-categ_Sm.c: Likewise.
33656         * tests/unictype/test-categ_So.c: Likewise.
33657         * tests/unictype/test-categ_Z.c: Likewise.
33658         * tests/unictype/test-categ_Zl.c: Likewise.
33659         * tests/unictype/test-categ_Zp.c: Likewise.
33660         * tests/unictype/test-categ_Zs.c: Likewise.
33661         * tests/unictype/test-ctype_alnum.c: Likewise.
33662         * tests/unictype/test-ctype_alpha.c: Likewise.
33663         * tests/unictype/test-ctype_blank.c: Likewise.
33664         * tests/unictype/test-ctype_cntrl.c: Likewise.
33665         * tests/unictype/test-ctype_digit.c: Likewise.
33666         * tests/unictype/test-ctype_graph.c: Likewise.
33667         * tests/unictype/test-ctype_lower.c: Likewise.
33668         * tests/unictype/test-ctype_print.c: Likewise.
33669         * tests/unictype/test-ctype_punct.c: Likewise.
33670         * tests/unictype/test-ctype_space.c: Likewise.
33671         * tests/unictype/test-ctype_upper.c: Likewise.
33672         * tests/unictype/test-ctype_xdigit.c: Likewise.
33673         * tests/unictype/test-decdigit.h: Likewise.
33674         * tests/unictype/test-digit.h: Likewise.
33675         * tests/unictype/test-numeric.h: Likewise.
33676         * tests/unictype/test-pr_alphabetic.c: Likewise.
33677         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33678         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33679         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33680         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33681         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33682         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33683         * tests/unictype/test-pr_bidi_control.c: Likewise.
33684         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33685         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33686         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33687         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33688         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33689         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33690         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33691         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33692         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33693         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33694         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33695         * tests/unictype/test-pr_combining.c: Likewise.
33696         * tests/unictype/test-pr_composite.c: Likewise.
33697         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33698         * tests/unictype/test-pr_dash.c: Likewise.
33699         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33700         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33701         * tests/unictype/test-pr_deprecated.c: Likewise.
33702         * tests/unictype/test-pr_diacritic.c: Likewise.
33703         * tests/unictype/test-pr_extender.c: Likewise.
33704         * tests/unictype/test-pr_format_control.c: Likewise.
33705         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33706         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33707         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33708         * tests/unictype/test-pr_hex_digit.c: Likewise.
33709         * tests/unictype/test-pr_hyphen.c: Likewise.
33710         * tests/unictype/test-pr_id_continue.c: Likewise.
33711         * tests/unictype/test-pr_id_start.c: Likewise.
33712         * tests/unictype/test-pr_ideographic.c: Likewise.
33713         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33714         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33715         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33716         * tests/unictype/test-pr_iso_control.c: Likewise.
33717         * tests/unictype/test-pr_join_control.c: Likewise.
33718         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33719         * tests/unictype/test-pr_line_separator.c: Likewise.
33720         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33721         * tests/unictype/test-pr_lowercase.c: Likewise.
33722         * tests/unictype/test-pr_math.c: Likewise.
33723         * tests/unictype/test-pr_non_break.c: Likewise.
33724         * tests/unictype/test-pr_not_a_character.c: Likewise.
33725         * tests/unictype/test-pr_numeric.c: Likewise.
33726         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33727         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33728         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33729         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33730         * tests/unictype/test-pr_other_id_start.c: Likewise.
33731         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33732         * tests/unictype/test-pr_other_math.c: Likewise.
33733         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33734         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33735         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33736         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33737         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33738         * tests/unictype/test-pr_private_use.c: Likewise.
33739         * tests/unictype/test-pr_punctuation.c: Likewise.
33740         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33741         * tests/unictype/test-pr_radical.c: Likewise.
33742         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33743         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33744         * tests/unictype/test-pr_space.c: Likewise.
33745         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33746         * tests/unictype/test-pr_titlecase.c: Likewise.
33747         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33748         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33749         * tests/unictype/test-pr_uppercase.c: Likewise.
33750         * tests/unictype/test-pr_variation_selector.c: Likewise.
33751         * tests/unictype/test-pr_white_space.c: Likewise.
33752         * tests/unictype/test-pr_xid_continue.c: Likewise.
33753         * tests/unictype/test-pr_xid_start.c: Likewise.
33754         * tests/unictype/test-pr_zero_width.c: Likewise.
33755         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33756         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33757
33758 2007-11-12  Bruno Haible  <bruno@clisp.org>
33759
33760         Unicode character classification functions.
33761         * lib/unictype.h: New file.
33762         * modules/unictype/base: New file.
33763         * modules/unictype/category-L: New file.
33764         * modules/unictype/category-Lu: New file.
33765         * modules/unictype/category-Ll: New file.
33766         * modules/unictype/category-Lt: New file.
33767         * modules/unictype/category-Lm: New file.
33768         * modules/unictype/category-Lo: New file.
33769         * modules/unictype/category-M: New file.
33770         * modules/unictype/category-Mn: New file.
33771         * modules/unictype/category-Mc: New file.
33772         * modules/unictype/category-Me: New file.
33773         * modules/unictype/category-N: New file.
33774         * modules/unictype/category-Nd: New file.
33775         * modules/unictype/category-Nl: New file.
33776         * modules/unictype/category-No: New file.
33777         * modules/unictype/category-P: New file.
33778         * modules/unictype/category-Pc: New file.
33779         * modules/unictype/category-Pd: New file.
33780         * modules/unictype/category-Ps: New file.
33781         * modules/unictype/category-Pe: New file.
33782         * modules/unictype/category-Pi: New file.
33783         * modules/unictype/category-Pf: New file.
33784         * modules/unictype/category-Po: New file.
33785         * modules/unictype/category-S: New file.
33786         * modules/unictype/category-Sm: New file.
33787         * modules/unictype/category-Sc: New file.
33788         * modules/unictype/category-Sk: New file.
33789         * modules/unictype/category-So: New file.
33790         * modules/unictype/category-Z: New file.
33791         * modules/unictype/category-Zs: New file.
33792         * modules/unictype/category-Zl: New file.
33793         * modules/unictype/category-Zp: New file.
33794         * modules/unictype/category-C: New file.
33795         * modules/unictype/category-Cc: New file.
33796         * modules/unictype/category-Cf: New file.
33797         * modules/unictype/category-Cs: New file.
33798         * modules/unictype/category-Co: New file.
33799         * modules/unictype/category-Cn: New file.
33800         * modules/unictype/category-or: New file.
33801         * modules/unictype/category-of: New file.
33802         * modules/unictype/category-test: New file.
33803         * modules/unictype/category-test-withtable: New file.
33804         * modules/unictype/category-byname: New file.
33805         * modules/unictype/category-none: New file.
33806         * modules/unictype/category-and: New file.
33807         * modules/unictype/category-and-not: New file.
33808         * modules/unictype/category-name: New file.
33809         * modules/unictype/combining-class: New file.
33810         * modules/unictype/category-all: New file.
33811         * modules/unictype/bidicategory-all: New file.
33812         * modules/unictype/bidicategory-byname: New file.
33813         * modules/unictype/bidicategory-name: New file.
33814         * modules/unictype/bidicategory-of: New file.
33815         * modules/unictype/bidicategory-test: New file.
33816         * modules/unictype/decimal-digit: New file.
33817         * modules/unictype/digit: New file.
33818         * modules/unictype/numeric: New file.
33819         * modules/unictype/mirror: New file.
33820         * modules/unictype/property-white-space: New file.
33821         * modules/unictype/property-alphabetic: New file.
33822         * modules/unictype/property-other-alphabetic: New file.
33823         * modules/unictype/property-not-a-character: New file.
33824         * modules/unictype/property-default-ignorable-code-point: New file.
33825         * modules/unictype/property-other-default-ignorable-code-point: New
33826         file.
33827         * modules/unictype/property-deprecated: New file.
33828         * modules/unictype/property-logical-order-exception: New file.
33829         * modules/unictype/property-variation-selector: New file.
33830         * modules/unictype/property-private-use: New file.
33831         * modules/unictype/property-unassigned-code-value: New file.
33832         * modules/unictype/property-uppercase: New file.
33833         * modules/unictype/property-other-uppercase: New file.
33834         * modules/unictype/property-lowercase: New file.
33835         * modules/unictype/property-other-lowercase: New file.
33836         * modules/unictype/property-titlecase: New file.
33837         * modules/unictype/property-soft-dotted: New file.
33838         * modules/unictype/property-id-start: New file.
33839         * modules/unictype/property-other-id-start: New file.
33840         * modules/unictype/property-id-continue: New file.
33841         * modules/unictype/property-other-id-continue: New file.
33842         * modules/unictype/property-xid-start: New file.
33843         * modules/unictype/property-xid-continue: New file.
33844         * modules/unictype/property-pattern-white-space: New file.
33845         * modules/unictype/property-pattern-syntax: New file.
33846         * modules/unictype/property-join-control: New file.
33847         * modules/unictype/property-grapheme-base: New file.
33848         * modules/unictype/property-grapheme-extend: New file.
33849         * modules/unictype/property-other-grapheme-extend: New file.
33850         * modules/unictype/property-grapheme-link: New file.
33851         * modules/unictype/property-bidi-control: New file.
33852         * modules/unictype/property-bidi-left-to-right: New file.
33853         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33854         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33855         * modules/unictype/property-bidi-european-digit: New file.
33856         * modules/unictype/property-bidi-eur-num-separator: New file.
33857         * modules/unictype/property-bidi-eur-num-terminator: New file.
33858         * modules/unictype/property-bidi-arabic-digit: New file.
33859         * modules/unictype/property-bidi-common-separator: New file.
33860         * modules/unictype/property-bidi-block-separator: New file.
33861         * modules/unictype/property-bidi-segment-separator: New file.
33862         * modules/unictype/property-bidi-whitespace: New file.
33863         * modules/unictype/property-bidi-non-spacing-mark: New file.
33864         * modules/unictype/property-bidi-boundary-neutral: New file.
33865         * modules/unictype/property-bidi-pdf: New file.
33866         * modules/unictype/property-bidi-embedding-or-override: New file.
33867         * modules/unictype/property-bidi-other-neutral: New file.
33868         * modules/unictype/property-hex-digit: New file.
33869         * modules/unictype/property-ascii-hex-digit: New file.
33870         * modules/unictype/property-ideographic: New file.
33871         * modules/unictype/property-unified-ideograph: New file.
33872         * modules/unictype/property-radical: New file.
33873         * modules/unictype/property-ids-binary-operator: New file.
33874         * modules/unictype/property-ids-trinary-operator: New file.
33875         * modules/unictype/property-zero-width: New file.
33876         * modules/unictype/property-space: New file.
33877         * modules/unictype/property-non-break: New file.
33878         * modules/unictype/property-iso-control: New file.
33879         * modules/unictype/property-format-control: New file.
33880         * modules/unictype/property-dash: New file.
33881         * modules/unictype/property-hyphen: New file.
33882         * modules/unictype/property-punctuation: New file.
33883         * modules/unictype/property-line-separator: New file.
33884         * modules/unictype/property-paragraph-separator: New file.
33885         * modules/unictype/property-quotation-mark: New file.
33886         * modules/unictype/property-sentence-terminal: New file.
33887         * modules/unictype/property-terminal-punctuation: New file.
33888         * modules/unictype/property-currency-symbol: New file.
33889         * modules/unictype/property-math: New file.
33890         * modules/unictype/property-other-math: New file.
33891         * modules/unictype/property-paired-punctuation: New file.
33892         * modules/unictype/property-left-of-pair: New file.
33893         * modules/unictype/property-combining: New file.
33894         * modules/unictype/property-composite: New file.
33895         * modules/unictype/property-decimal-digit: New file.
33896         * modules/unictype/property-numeric: New file.
33897         * modules/unictype/property-diacritic: New file.
33898         * modules/unictype/property-extender: New file.
33899         * modules/unictype/property-ignorable-control: New file.
33900         * modules/unictype/property-test: New file.
33901         * modules/unictype/property-byname: New file.
33902         * modules/unictype/property-all: New file.
33903         * modules/unictype/scripts: New file.
33904         * modules/unictype/scripts-all: New file.
33905         * modules/unictype/block-of: New file.
33906         * modules/unictype/block-test: New file.
33907         * modules/unictype/block-list: New file.
33908         * modules/unictype/block-all: New file.
33909         * modules/unictype/syntax-c-whitespace: New file.
33910         * modules/unictype/syntax-java-whitespace: New file.
33911         * modules/unictype/syntax-c-ident: New file.
33912         * modules/unictype/syntax-java-ident: New file.
33913         * modules/unictype/ctype-alnum: New file.
33914         * modules/unictype/ctype-alpha: New file.
33915         * modules/unictype/ctype-cntrl: New file.
33916         * modules/unictype/ctype-digit: New file.
33917         * modules/unictype/ctype-graph: New file.
33918         * modules/unictype/ctype-lower: New file.
33919         * modules/unictype/ctype-print: New file.
33920         * modules/unictype/ctype-punct: New file.
33921         * modules/unictype/ctype-space: New file.
33922         * modules/unictype/ctype-upper: New file.
33923         * modules/unictype/ctype-xdigit: New file.
33924         * modules/unictype/ctype-blank: New file.
33925         * lib/unictype/bidi_byname.c: New file.
33926         * lib/unictype/bidi_name.c: New file.
33927         * lib/unictype/bidi_of.c: New file.
33928         * lib/unictype/bidi_test.c: New file.
33929         * lib/unictype/bitmap.h: New file.
33930         * lib/unictype/block_test.c: New file.
33931         * lib/unictype/blocks.c: New file.
33932         * lib/unictype/categ_C.c: New file.
33933         * lib/unictype/categ_Cc.c: New file.
33934         * lib/unictype/categ_Cf.c: New file.
33935         * lib/unictype/categ_Cn.c: New file.
33936         * lib/unictype/categ_Co.c: New file.
33937         * lib/unictype/categ_Cs.c: New file.
33938         * lib/unictype/categ_L.c: New file.
33939         * lib/unictype/categ_Ll.c: New file.
33940         * lib/unictype/categ_Lm.c: New file.
33941         * lib/unictype/categ_Lo.c: New file.
33942         * lib/unictype/categ_Lt.c: New file.
33943         * lib/unictype/categ_Lu.c: New file.
33944         * lib/unictype/categ_M.c: New file.
33945         * lib/unictype/categ_Mc.c: New file.
33946         * lib/unictype/categ_Me.c: New file.
33947         * lib/unictype/categ_Mn.c: New file.
33948         * lib/unictype/categ_N.c: New file.
33949         * lib/unictype/categ_Nd.c: New file.
33950         * lib/unictype/categ_Nl.c: New file.
33951         * lib/unictype/categ_No.c: New file.
33952         * lib/unictype/categ_P.c: New file.
33953         * lib/unictype/categ_Pc.c: New file.
33954         * lib/unictype/categ_Pd.c: New file.
33955         * lib/unictype/categ_Pe.c: New file.
33956         * lib/unictype/categ_Pf.c: New file.
33957         * lib/unictype/categ_Pi.c: New file.
33958         * lib/unictype/categ_Po.c: New file.
33959         * lib/unictype/categ_Ps.c: New file.
33960         * lib/unictype/categ_S.c: New file.
33961         * lib/unictype/categ_Sc.c: New file.
33962         * lib/unictype/categ_Sk.c: New file.
33963         * lib/unictype/categ_Sm.c: New file.
33964         * lib/unictype/categ_So.c: New file.
33965         * lib/unictype/categ_Z.c: New file.
33966         * lib/unictype/categ_Zl.c: New file.
33967         * lib/unictype/categ_Zp.c: New file.
33968         * lib/unictype/categ_Zs.c: New file.
33969         * lib/unictype/categ_and.c: New file.
33970         * lib/unictype/categ_and_not.c: New file.
33971         * lib/unictype/categ_byname.c: New file.
33972         * lib/unictype/categ_name.c: New file.
33973         * lib/unictype/categ_none.c: New file.
33974         * lib/unictype/categ_of.c: New file.
33975         * lib/unictype/categ_or.c: New file.
33976         * lib/unictype/categ_test.c: New file.
33977         * lib/unictype/combining.c: New file.
33978         * lib/unictype/ctype_alnum.c: New file.
33979         * lib/unictype/ctype_alpha.c: New file.
33980         * lib/unictype/ctype_blank.c: New file.
33981         * lib/unictype/ctype_cntrl.c: New file.
33982         * lib/unictype/ctype_digit.c: New file.
33983         * lib/unictype/ctype_graph.c: New file.
33984         * lib/unictype/ctype_lower.c: New file.
33985         * lib/unictype/ctype_print.c: New file.
33986         * lib/unictype/ctype_punct.c: New file.
33987         * lib/unictype/ctype_space.c: New file.
33988         * lib/unictype/ctype_upper.c: New file.
33989         * lib/unictype/ctype_xdigit.c: New file.
33990         * lib/unictype/decdigit.c: New file.
33991         * lib/unictype/digit.c: New file.
33992         * lib/unictype/identsyntaxmap.h: New file.
33993         * lib/unictype/mirror.c: New file.
33994         * lib/unictype/numeric.c: New file.
33995         * lib/unictype/pr_alphabetic.c: New file.
33996         * lib/unictype/pr_ascii_hex_digit.c: New file.
33997         * lib/unictype/pr_bidi_arabic_digit.c: New file.
33998         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
33999         * lib/unictype/pr_bidi_block_separator.c: New file.
34000         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34001         * lib/unictype/pr_bidi_common_separator.c: New file.
34002         * lib/unictype/pr_bidi_control.c: New file.
34003         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34004         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34005         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34006         * lib/unictype/pr_bidi_european_digit.c: New file.
34007         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34008         * lib/unictype/pr_bidi_left_to_right.c: New file.
34009         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34010         * lib/unictype/pr_bidi_other_neutral.c: New file.
34011         * lib/unictype/pr_bidi_pdf.c: New file.
34012         * lib/unictype/pr_bidi_segment_separator.c: New file.
34013         * lib/unictype/pr_bidi_whitespace.c: New file.
34014         * lib/unictype/pr_byname.c: New file.
34015         * lib/unictype/pr_byname.gperf: New file.
34016         * lib/unictype/pr_combining.c: New file.
34017         * lib/unictype/pr_composite.c: New file.
34018         * lib/unictype/pr_currency_symbol.c: New file.
34019         * lib/unictype/pr_dash.c: New file.
34020         * lib/unictype/pr_decimal_digit.c: New file.
34021         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34022         * lib/unictype/pr_deprecated.c: New file.
34023         * lib/unictype/pr_diacritic.c: New file.
34024         * lib/unictype/pr_extender.c: New file.
34025         * lib/unictype/pr_format_control.c: New file.
34026         * lib/unictype/pr_grapheme_base.c: New file.
34027         * lib/unictype/pr_grapheme_extend.c: New file.
34028         * lib/unictype/pr_grapheme_link.c: New file.
34029         * lib/unictype/pr_hex_digit.c: New file.
34030         * lib/unictype/pr_hyphen.c: New file.
34031         * lib/unictype/pr_id_continue.c: New file.
34032         * lib/unictype/pr_id_start.c: New file.
34033         * lib/unictype/pr_ideographic.c: New file.
34034         * lib/unictype/pr_ids_binary_operator.c: New file.
34035         * lib/unictype/pr_ids_trinary_operator.c: New file.
34036         * lib/unictype/pr_ignorable_control.c: New file.
34037         * lib/unictype/pr_iso_control.c: New file.
34038         * lib/unictype/pr_join_control.c: New file.
34039         * lib/unictype/pr_left_of_pair.c: New file.
34040         * lib/unictype/pr_line_separator.c: New file.
34041         * lib/unictype/pr_logical_order_exception.c: New file.
34042         * lib/unictype/pr_lowercase.c: New file.
34043         * lib/unictype/pr_math.c: New file.
34044         * lib/unictype/pr_non_break.c: New file.
34045         * lib/unictype/pr_not_a_character.c: New file.
34046         * lib/unictype/pr_numeric.c: New file.
34047         * lib/unictype/pr_other_alphabetic.c: New file.
34048         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34049         * lib/unictype/pr_other_grapheme_extend.c: New file.
34050         * lib/unictype/pr_other_id_continue.c: New file.
34051         * lib/unictype/pr_other_id_start.c: New file.
34052         * lib/unictype/pr_other_lowercase.c: New file.
34053         * lib/unictype/pr_other_math.c: New file.
34054         * lib/unictype/pr_other_uppercase.c: New file.
34055         * lib/unictype/pr_paired_punctuation.c: New file.
34056         * lib/unictype/pr_paragraph_separator.c: New file.
34057         * lib/unictype/pr_pattern_syntax.c: New file.
34058         * lib/unictype/pr_pattern_white_space.c: New file.
34059         * lib/unictype/pr_private_use.c: New file.
34060         * lib/unictype/pr_punctuation.c: New file.
34061         * lib/unictype/pr_quotation_mark.c: New file.
34062         * lib/unictype/pr_radical.c: New file.
34063         * lib/unictype/pr_sentence_terminal.c: New file.
34064         * lib/unictype/pr_soft_dotted.c: New file.
34065         * lib/unictype/pr_space.c: New file.
34066         * lib/unictype/pr_terminal_punctuation.c: New file.
34067         * lib/unictype/pr_test.c: New file.
34068         * lib/unictype/pr_titlecase.c: New file.
34069         * lib/unictype/pr_unassigned_code_value.c: New file.
34070         * lib/unictype/pr_unified_ideograph.c: New file.
34071         * lib/unictype/pr_uppercase.c: New file.
34072         * lib/unictype/pr_variation_selector.c: New file.
34073         * lib/unictype/pr_white_space.c: New file.
34074         * lib/unictype/pr_xid_continue.c: New file.
34075         * lib/unictype/pr_xid_start.c: New file.
34076         * lib/unictype/pr_zero_width.c: New file.
34077         * lib/unictype/scripts.c: New file.
34078         * lib/unictype/sy_c_ident.c: New file.
34079         * lib/unictype/sy_c_whitespace.c: New file.
34080         * lib/unictype/sy_java_ident.c: New file.
34081         * lib/unictype/sy_java_whitespace.c: New file.
34082
34083         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34084         Unicode 5.0.0.
34085         * lib/unictype/blocks.h: Likewise.
34086         * lib/unictype/categ_C.h: Likewise.
34087         * lib/unictype/categ_Cc.h: Likewise.
34088         * lib/unictype/categ_Cf.h: Likewise.
34089         * lib/unictype/categ_Cn.h: Likewise.
34090         * lib/unictype/categ_Co.h: Likewise.
34091         * lib/unictype/categ_Cs.h: Likewise.
34092         * lib/unictype/categ_L.h: Likewise.
34093         * lib/unictype/categ_Ll.h: Likewise.
34094         * lib/unictype/categ_Lm.h: Likewise.
34095         * lib/unictype/categ_Lo.h: Likewise.
34096         * lib/unictype/categ_Lt.h: Likewise.
34097         * lib/unictype/categ_Lu.h: Likewise.
34098         * lib/unictype/categ_M.h: Likewise.
34099         * lib/unictype/categ_Mc.h: Likewise.
34100         * lib/unictype/categ_Me.h: Likewise.
34101         * lib/unictype/categ_Mn.h: Likewise.
34102         * lib/unictype/categ_N.h: Likewise.
34103         * lib/unictype/categ_Nd.h: Likewise.
34104         * lib/unictype/categ_Nl.h: Likewise.
34105         * lib/unictype/categ_No.h: Likewise.
34106         * lib/unictype/categ_P.h: Likewise.
34107         * lib/unictype/categ_Pc.h: Likewise.
34108         * lib/unictype/categ_Pd.h: Likewise.
34109         * lib/unictype/categ_Pe.h: Likewise.
34110         * lib/unictype/categ_Pf.h: Likewise.
34111         * lib/unictype/categ_Pi.h: Likewise.
34112         * lib/unictype/categ_Po.h: Likewise.
34113         * lib/unictype/categ_Ps.h: Likewise.
34114         * lib/unictype/categ_S.h: Likewise.
34115         * lib/unictype/categ_Sc.h: Likewise.
34116         * lib/unictype/categ_Sk.h: Likewise.
34117         * lib/unictype/categ_Sm.h: Likewise.
34118         * lib/unictype/categ_So.h: Likewise.
34119         * lib/unictype/categ_Z.h: Likewise.
34120         * lib/unictype/categ_Zl.h: Likewise.
34121         * lib/unictype/categ_Zp.h: Likewise.
34122         * lib/unictype/categ_Zs.h: Likewise.
34123         * lib/unictype/categ_of.h: Likewise.
34124         * lib/unictype/combining.h: Likewise.
34125         * lib/unictype/ctype_alnum.h: Likewise.
34126         * lib/unictype/ctype_alpha.h: Likewise.
34127         * lib/unictype/ctype_blank.h: Likewise.
34128         * lib/unictype/ctype_cntrl.h: Likewise.
34129         * lib/unictype/ctype_digit.h: Likewise.
34130         * lib/unictype/ctype_graph.h: Likewise.
34131         * lib/unictype/ctype_lower.h: Likewise.
34132         * lib/unictype/ctype_print.h: Likewise.
34133         * lib/unictype/ctype_punct.h: Likewise.
34134         * lib/unictype/ctype_space.h: Likewise.
34135         * lib/unictype/ctype_upper.h: Likewise.
34136         * lib/unictype/ctype_xdigit.h: Likewise.
34137         * lib/unictype/decdigit.h: Likewise.
34138         * lib/unictype/digit.h: Likewise.
34139         * lib/unictype/mirror.h: Likewise.
34140         * lib/unictype/numeric.h: Likewise.
34141         * lib/unictype/pr_alphabetic.h: Likewise.
34142         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34143         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34144         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34145         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34146         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34147         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34148         * lib/unictype/pr_bidi_control.h: Likewise.
34149         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34150         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34151         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34152         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34153         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34154         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34155         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34156         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34157         * lib/unictype/pr_bidi_pdf.h: Likewise.
34158         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34159         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34160         * lib/unictype/pr_combining.h: Likewise.
34161         * lib/unictype/pr_composite.h: Likewise.
34162         * lib/unictype/pr_currency_symbol.h: Likewise.
34163         * lib/unictype/pr_dash.h: Likewise.
34164         * lib/unictype/pr_decimal_digit.h: Likewise.
34165         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34166         * lib/unictype/pr_deprecated.h: Likewise.
34167         * lib/unictype/pr_diacritic.h: Likewise.
34168         * lib/unictype/pr_extender.h: Likewise.
34169         * lib/unictype/pr_format_control.h: Likewise.
34170         * lib/unictype/pr_grapheme_base.h: Likewise.
34171         * lib/unictype/pr_grapheme_extend.h: Likewise.
34172         * lib/unictype/pr_grapheme_link.h: Likewise.
34173         * lib/unictype/pr_hex_digit.h: Likewise.
34174         * lib/unictype/pr_hyphen.h: Likewise.
34175         * lib/unictype/pr_id_continue.h: Likewise.
34176         * lib/unictype/pr_id_start.h: Likewise.
34177         * lib/unictype/pr_ideographic.h: Likewise.
34178         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34179         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34180         * lib/unictype/pr_ignorable_control.h: Likewise.
34181         * lib/unictype/pr_iso_control.h: Likewise.
34182         * lib/unictype/pr_join_control.h: Likewise.
34183         * lib/unictype/pr_left_of_pair.h: Likewise.
34184         * lib/unictype/pr_line_separator.h: Likewise.
34185         * lib/unictype/pr_logical_order_exception.h: Likewise.
34186         * lib/unictype/pr_lowercase.h: Likewise.
34187         * lib/unictype/pr_math.h: Likewise.
34188         * lib/unictype/pr_non_break.h: Likewise.
34189         * lib/unictype/pr_not_a_character.h: Likewise.
34190         * lib/unictype/pr_numeric.h: Likewise.
34191         * lib/unictype/pr_other_alphabetic.h: Likewise.
34192         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34193         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34194         * lib/unictype/pr_other_id_continue.h: Likewise.
34195         * lib/unictype/pr_other_id_start.h: Likewise.
34196         * lib/unictype/pr_other_lowercase.h: Likewise.
34197         * lib/unictype/pr_other_math.h: Likewise.
34198         * lib/unictype/pr_other_uppercase.h: Likewise.
34199         * lib/unictype/pr_paired_punctuation.h: Likewise.
34200         * lib/unictype/pr_paragraph_separator.h: Likewise.
34201         * lib/unictype/pr_pattern_syntax.h: Likewise.
34202         * lib/unictype/pr_pattern_white_space.h: Likewise.
34203         * lib/unictype/pr_private_use.h: Likewise.
34204         * lib/unictype/pr_punctuation.h: Likewise.
34205         * lib/unictype/pr_quotation_mark.h: Likewise.
34206         * lib/unictype/pr_radical.h: Likewise.
34207         * lib/unictype/pr_sentence_terminal.h: Likewise.
34208         * lib/unictype/pr_soft_dotted.h: Likewise.
34209         * lib/unictype/pr_space.h: Likewise.
34210         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34211         * lib/unictype/pr_titlecase.h: Likewise.
34212         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34213         * lib/unictype/pr_unified_ideograph.h: Likewise.
34214         * lib/unictype/pr_uppercase.h: Likewise.
34215         * lib/unictype/pr_variation_selector.h: Likewise.
34216         * lib/unictype/pr_white_space.h: Likewise.
34217         * lib/unictype/pr_xid_continue.h: Likewise.
34218         * lib/unictype/pr_xid_start.h: Likewise.
34219         * lib/unictype/pr_zero_width.h: Likewise.
34220         * lib/unictype/scripts.h: Likewise.
34221         * lib/unictype/scripts_byname.gperf: Likewise.
34222         * lib/unictype/sy_c_ident.h: Likewise.
34223         * lib/unictype/sy_c_whitespace.h: Likewise.
34224         * lib/unictype/sy_java_ident.h: Likewise.
34225         * lib/unictype/sy_java_whitespace.h: Likewise.
34226
34227         * lib/unictype/Makefile: New file.
34228         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34229         glibc.
34230         * lib/unictype/3level.h: New file, copied from glibc.
34231         * lib/unictype/3levelbit.h: New file.
34232
34233 2007-11-11  Bruno Haible  <bruno@clisp.org>
34234
34235         * modules/gperf: New file.
34236         * modules/iconv_open (Depends-on): Add it.
34237         (Makefile.am): Remove the GPERF definition.
34238
34239 2007-11-11  Bruno Haible  <bruno@clisp.org>
34240
34241         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34242         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34243
34244 2007-11-11  Bruno Haible  <bruno@clisp.org>
34245
34246         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34247         (usage): Remove function.
34248
34249 2007-11-11  Bruno Haible  <bruno@clisp.org>
34250
34251         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34252         gl_FUNC_CEILF_LIBS.
34253         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34254         gl_FUNC_CEIL_LIBS.
34255         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34256         gl_FUNC_CEILL_LIBS.
34257         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34258         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34259         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34260
34261 2007-11-11  Bruno Haible  <bruno@clisp.org>
34262
34263         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34264         roundf were declared but do not exist on functions.
34265         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34266         roundl were declared but do not exist on functions.
34267         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34268         HAVE_FLOORL_AND_CEILL, respectively.
34269         Needed for Sun C on Solaris 10.
34270
34271 2007-11-11  Bruno Haible  <bruno@clisp.org>
34272
34273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34274         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34275         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34276         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34277         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34278         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34279         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34280         HAVE_DECL_ROUNDF.
34281         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34282         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34284         of HAVE_DECL_ROUND*.
34285         * modules/math (Makefile.am): Update.
34286
34287 2007-11-10  Bruno Haible  <bruno@clisp.org>
34288
34289         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34290         ptrdiff_t as m4/intl.m4.
34291
34292 2007-11-10  Jim Meyering  <meyering@redhat.com>
34293
34294         Avoid link failure for the argmatch test.
34295         * tests/test-argmatch.c (usage): Define function to avoid a link
34296         failure: argmatch_die requires a usage function.
34297
34298 2007-11-09  Bruno Haible  <bruno@clisp.org>
34299
34300         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34301         * doc/functions/vsnprintf.texi: Likewise.
34302         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34303         with a size argument < 2.
34304
34305 2007-11-09  Bruno Haible  <bruno@clisp.org>
34306
34307         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34308         buffer. Fixes an inefficiency introduced on 2007-11-03.
34309
34310 2007-11-09  Bruno Haible  <bruno@clisp.org>
34311
34312         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34313         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34314
34315 2007-11-08  Jim Meyering  <meyering@redhat.com>
34316
34317         Change cache variable name prefix "jm_" to "gl_" everywhere.
34318         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34319         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34320         * m4/uptime.m4: s/gl_/jm_/
34321
34322 2007-11-07  Bruno Haible  <bruno@clisp.org>
34323
34324         Update to GNU gettext 0.17.
34325         * m4/intl.m4: Update to GNU gettext 0.17.
34326         * m4/po.m4: Likewise.
34327         * modules/gettext (Files): Remove m4/ulonglong.m4.
34328         (configure.ac): Require gettext infrastructure from version 0.17.
34329
34330 2007-11-06  Bruno Haible  <bruno@clisp.org>
34331
34332         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34333         symbolic values are not defined in a public header.
34334         * lib/freadable.c (freadable) [QNX]: Likewise.
34335         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34336         * lib/freading.c (freading) [QNX]: Likewise.
34337         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34338         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34339         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34340         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34341         Reported by Alain Magloire.
34342
34343         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34344
34345 2007-11-05  Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34348         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34349         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34350         Reported by Eric Blake.
34351
34352 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34353             Bruno Haible  <bruno@clisp.org>
34354
34355         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34356         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34357         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34358         (malloc): Undefine also before including <stdlib.h>.
34359         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34360         Needed on OSF/1 4.0.
34361
34362 2007-11-05  Jim Meyering  <meyering@redhat.com>
34363
34364         git-version-gen: sync from coreutils.
34365         * build-aux/git-version-gen: Add comments.
34366         Change the first '-' to '.' in the snapshot version string,
34367         e.g., 6.9-377-08144 -> 6.9.377-08144
34368         Remove first parameter.
34369         Don't declare a version "-dirty" merely because a time
34370         stamp has changed.
34371
34372 2007-11-04  Bruno Haible  <bruno@clisp.org>
34373
34374         * lib/lock.h: Protect all macro definitions containing an 'if'
34375         statement through a "do { ... } while (0)".
34376         * lib/tls.h: Likewise.
34377
34378 2007-11-04  Bruno Haible  <bruno@clisp.org>
34379
34380         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34381
34382 2007-11-04  Bruno Haible  <bruno@clisp.org>
34383
34384         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34385         * modules/fprintf-posix (Depends-on): Add nocrash.
34386         * modules/snprintf-posix (Depends-on): Likewise.
34387         * modules/sprintf-posix (Depends-on): Likewise.
34388         * modules/vasnprintf-posix (Depends-on): Likewise.
34389         * modules/vasprintf-posix (Depends-on): Likewise.
34390         * modules/vfprintf-posix (Depends-on): Likewise.
34391         * modules/vsnprintf-posix (Depends-on): Likewise.
34392         * modules/vsprintf-posix (Depends-on): Likewise.
34393         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34394         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34395         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34396         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34397         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34398         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34399         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34400
34401 2007-11-04  Bruno Haible  <bruno@clisp.org>
34402
34403         * modules/nocrash: New file.
34404         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34405         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34406
34407 2007-11-04  Bruno Haible  <bruno@clisp.org>
34408
34409         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34410         precision handling.
34411         * tests/test-vasprintf-posix.c (test_function): Likewise.
34412         * tests/test-snprintf-posix.h (test_function): Likewise.
34413         * tests/test-sprintf-posix.h (test_function): Likewise.
34414
34415         Fix *printf behaviour for large precisions on mingw and BeOS.
34416         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34417         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34419         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34421         gl_PRINTF_PRECISION and test its result. Invoke
34422         gl_PREREQ_VASNPRINTF_PRECISION.
34423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34430         * doc/functions/fprintf.texi: Update.
34431         * doc/functions/printf.texi: Update.
34432         * doc/functions/snprintf.texi: Update.
34433         * doc/functions/sprintf.texi: Update.
34434         * doc/functions/vfprintf.texi: Update.
34435         * doc/functions/vprintf.texi: Update.
34436         * doc/functions/vsnprintf.texi: Update.
34437         * doc/functions/vsprintf.texi: Update.
34438
34439 2007-11-04  Bruno Haible  <bruno@clisp.org>
34440
34441         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34442
34443 2007-11-04  Bruno Haible  <bruno@clisp.org>
34444
34445         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34446         Reported by Sylvain Beucler <beuc@gnu.org>.
34447
34448 2007-11-03  Bruno Haible  <bruno@clisp.org>
34449
34450         * tests/test-fprintf-posix2.sh: New file.
34451         * tests/test-fprintf-posix2.c: New file.
34452         * modules/fprintf-posix-tests (Files): Add them.
34453         (TESTS): Add test-fprintf-posix2.sh.
34454         (configure.ac): Check for getrlimit and setrlimit.
34455         (check_PROGRAMS): Add test-fprintf-posix2.
34456
34457         * tests/test-printf-posix2.sh: New file.
34458         * tests/test-printf-posix2.c: New file.
34459         * modules/printf-posix-tests (Files): Add them.
34460         (TESTS): Add test-printf-posix2.sh.
34461         (configure.ac): Check for getrlimit and setrlimit.
34462         (check_PROGRAMS): Add test-printf-posix2.
34463
34464         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34465         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34466         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34467         (decode_double): New function, copied from decode_long_double.
34468         (scale10_round_decimal_decoded): New function, extracted from
34469         scale10_round_decimal_long_double.
34470         (scale10_round_decimal_long_double): Use it.
34471         (scale10_round_decimal_double): New function.
34472         (floorlog10): New function.
34473         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34475         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34477         gl_PRINTF_ENOMEM and test its result. Invoke
34478         gl_PREREQ_VASNPRINTF_ENOMEM.
34479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34486         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34487         * modules/snprintf-posix (Depends-on): Likewise.
34488         * modules/sprintf-posix (Depends-on): Likewise.
34489         * modules/vasnprintf-posix (Depends-on): Likewise.
34490         * modules/vasprintf-posix (Depends-on): Likewise.
34491         * modules/vfprintf-posix (Depends-on): Likewise.
34492         * modules/vsnprintf-posix (Depends-on): Likewise.
34493         * modules/vsprintf-posix (Depends-on): Likewise.
34494         * doc/functions/fprintf.texi: Update.
34495         * doc/functions/printf.texi: Update.
34496         * doc/functions/snprintf.texi: Update.
34497         * doc/functions/sprintf.texi: Update.
34498         * doc/functions/vfprintf.texi: Update.
34499         * doc/functions/vprintf.texi: Update.
34500         * doc/functions/vsnprintf.texi: Update.
34501         * doc/functions/vsprintf.texi: Update.
34502
34503 2007-11-03  Bruno Haible  <bruno@clisp.org>
34504
34505         * modules/frexp-nolibm-tests: New file.
34506
34507         * modules/frexp-nolibm: New file.
34508         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34509
34510 2007-11-03  Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34513         value is C99 compliant.
34514         Needed for OSF/1 5.1.
34515
34516 2007-11-03  Bruno Haible  <bruno@clisp.org>
34517
34518         Fix out-of-memory handling of vasnprintf.
34519         * lib/printf-parse.c: Include <errno.h>.
34520         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34521         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34522         is already set.
34523
34524 2007-11-02  Eric Blake  <ebb9@byu.net>
34525
34526         Fix tests on cygwin.
34527         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34528
34529 2007-11-01  Bruno Haible  <bruno@clisp.org>
34530
34531         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34532         warning.
34533         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34534         needed for POSIX compatibility.
34535
34536 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34537
34538         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34539         for compatibility with GNU.
34540
34541 2007-11-01  Bruno Haible  <bruno@clisp.org>
34542
34543         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34544         (putenv): Renamed from rpl_putenv. Change argument type from
34545         'const char *' to 'char *'.
34546         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34547         of defining putenv in config.h, just set REPLACE_PUTENV.
34548         * modules/putenv (Depends-on): Add stdlib.
34549         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34550         (Include): Use <stdlib.h>.
34551         * lib/stdlib.in.h (putenv): New declaration.
34552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34553         REPLACE_PUTENV.
34554         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34555         REPLACE_PUTENV.
34556         Needed for MacOS X 10.5.0.
34557         Reported by Peter O'Gorman <peter@pogma.com>.
34558
34559 2007-11-01  Jim Meyering  <meyering@redhat.com>
34560
34561         Treat an empty date string exactly like "0".
34562         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34563         if the remaining date string (to be parsed) is empty, use "0".
34564         Reported by Mischa Molhoek and discussed in this thread:
34565         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34566
34567 2007-10-31  Bruno Haible  <bruno@clisp.org>
34568
34569         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34570         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34571         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34572         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34573         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34574         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34575
34576 2007-10-31  Bruno Haible  <bruno@clisp.org>
34577
34578         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34579         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34580         (AC_TYPE_LONG_LONG_INT): Use it.
34581         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34582         it as well.
34583         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34584         to m4/longlong.m4.
34585         * modules/stdint (Files): Remove m4/ulonglong.m4.
34586         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34587         m4/ulonglong.m4.
34588         * modules/strtoumax (Files): Likewise.
34589
34590 2007-10-30  Bruno Haible  <bruno@clisp.org>
34591
34592         * modules/xvasprintf-posix: New file.
34593         Suggested by Eric Blake.
34594
34595 2007-10-30  Bruno Haible  <bruno@clisp.org>
34596
34597         * modules/xprintf-posix-tests: New file.
34598         * tests/test-xprintf-posix.sh: New file.
34599         * tests/test-xprintf-posix.c: New file.
34600         * tests/test-xfprintf-posix.c: New file.
34601
34602         * modules/xprintf-posix: New file.
34603
34604 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34605
34606         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34607         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34608         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34609
34610 2007-10-29  Bruno Haible  <bruno@clisp.org>
34611
34612         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34613         contain the special marker '_cv_'.
34614         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34615         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34616         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34617         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34618         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34619         Reported by Ralf Wildenhues.
34620
34621 2007-10-29  Bruno Haible  <bruno@clisp.org>
34622
34623         * gnulib-tool (func_import): When --lgpl is not specified, set
34624         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34625         GPLv3.
34626         Reported by Simon Josefsson.
34627
34628 2007-10-28  Bruno Haible  <bruno@clisp.org>
34629
34630         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34631         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34632         HAVE_DECL_ISFINITE.
34633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34634         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34635         HAVE_DECL_ISFINITE.
34636
34637 2007-10-28  Bruno Haible  <bruno@clisp.org>
34638
34639         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34640         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34641
34642 2007-10-28  Bruno Haible  <bruno@clisp.org>
34643
34644         Fix link errors with Sun C 5.0 on Solaris 10.
34645         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34646         function is declared but not present in the compiler's libm.
34647         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34648         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34649         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34650         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34651         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34652         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34653         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34655         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34656         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34657         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34658         HAVE_DECL_FLOORL.
34659
34660 2007-10-28  Bruno Haible  <bruno@clisp.org>
34661
34662         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34663         gl_FUNC_FLOORL. Cache the result.
34664         (gl_FUNC_FLOORL): Use it.
34665         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34666         gl_FUNC_CEILL. Cache the result.
34667         (gl_FUNC_CEILL): Use it.
34668
34669         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34670         gl_FUNC_FLOOR. Cache the result.
34671         (gl_FUNC_FLOOR): Use it.
34672         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34673         gl_FUNC_CEIL. Cache the result.
34674         (gl_FUNC_CEIL): Use it.
34675
34676         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34677         gl_FUNC_FLOORF. Cache the result.
34678         (gl_FUNC_FLOORF): Use it.
34679         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34680         gl_FUNC_CEILF. Cache the result.
34681         (gl_FUNC_CEILF): Use it.
34682
34683 2007-10-28  Bruno Haible  <bruno@clisp.org>
34684
34685         * gnulib-tool: Allow specifying the LGPL version number through
34686         --lgpl=2 or --lgpl=3.
34687         (func_usage): Document --lgpl with argument.
34688         Handle --lgpl=... arguments.
34689         (func_import): Recognize also gl_LGPL calls with an argument. When
34690         --lgpl=2 is used and the module's license is just LGPL, report an
34691         error. Set sed_transform_lib_file according to the lgpl variable. In
34692         the generated files, use --lgpl or gl_LGPL invocations with argument,
34693         if necessary.
34694         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34695         an LGPv2+ license.
34696         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34697         gl_LGPL macro.
34698
34699 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34700             Bruno Haible  <bruno@clisp.org>
34701
34702         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34703         (u16_uctomb_aux): Likewise.
34704         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34705         !HAVE_INLINE.
34706         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34707
34708 2007-10-28  Bruno Haible  <bruno@clisp.org>
34709
34710         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34711         Invoke AM_GETTEXT_OPTION if it exists.
34712         * modules/vasprintf: Likewise.
34713         * modules/verror: Likewise.
34714         * modules/xprintf: Likewise.
34715         * modules/xvasprintf: Likewise.
34716
34717 2007-10-27  Ben Pfaff  <blp@gnu.org>
34718
34719         * lib/math.in.h: Define isfinite macro and prototypes for
34720         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34721         implementations.
34722         * m4/math_h.m4: New substitutions for isfinite module.
34723         * lib/isfinite.c: New file.
34724         * m4/isfinite.m4: New file.
34725         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34726         * modules/isfinite: New file.
34727         * modules/isfinite-tests: New file.
34728         * tests/tests-isfinite.c: New file.
34729         * doc/functions/isfinite.texi: Mention isfinite module.
34730         * MODULES.html.sh: Mention new module.
34731
34732 2007-10-27  Ben Pfaff  <blp@gnu.org>
34733
34734         Ralf Wildenhues reported that Tru64 4.0D declares the round
34735         functions but does not have definitions.
34736         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34737         cannot be found in any library, set the output variable to
34738         "missing" instead of "".
34739         * m4/round.m4: Also use our substitute if we cannot find round in
34740         any library, even if it is declared.
34741         * m4/roundf.m4: Likewise for roundf.
34742         * m4/roundl.m4: Likewise for roundl.
34743         * lib/math.in.h: Undefine roundf, round, roundl before defining
34744         their replacements, to allow for hypothetical systems where these
34745         may be defined as macros but not available in libraries.
34746
34747 2007-10-27  Bruno Haible  <bruno@clisp.org>
34748
34749         * doc/gnulib.texi: Invoke @firstparagraphindent.
34750         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34751         changes in gnulib.
34752         (Source changes): New section.
34753
34754 2007-10-26  Bruno Haible  <bruno@clisp.org>
34755
34756         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34757         borrowed from autoconf.
34758
34759 2007-10-26  Bruno Haible  <bruno@clisp.org>
34760
34761         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34762         strerror returned the empty string. Needed on HP-UX 11.00.
34763
34764 2007-10-24  Micah Cowan  <micah@cowan.name>
34765
34766         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34767         * build-aux/bootstrap: Remove support for now-unnecessary option,
34768         --cvs-user, and envvars CVS_USER, CVS_RSH.
34769
34770 2007-10-24  Jim Meyering  <meyering@redhat.com>
34771
34772         Avoid diagnostics from sha1sum when there is no cached checksum.
34773         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34774         if the po.s1 file hasn't been created yet.
34775
34776         * build-aux/bootstrap: Sync from coreutils:
34777         2007-10-24  Jim Meyering  <meyering@redhat.com>
34778         Get gnulib from the git repository, not from an obsolete cvs one.
34779         * build-aux/bootstrap: Suggestion from Micah Cowan.
34780         2007-10-04  Jim Meyering  <jim@meyering.net>
34781         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34782         (update_po_files): Work also when there are no .po files in po/.
34783
34784 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34785
34786         * README: Append ".git" to git and cg examples.
34787         Problem reported by Benoit Sigoure.
34788
34789 2007-10-23  Micah Cowan  <micah@cowan.name>
34790
34791         * users.txt: Add wget.
34792
34793 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34794
34795         Fix linking of some unistdio tests on FreeBSD.
34796         * modules/unistdio/u16-vsnprintf-tests
34797         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34798         * modules/unistdio/u16-vsprintf-tests
34799         (test_u16_vsnprintf1_LDADD): Likewise.
34800         * modules/unistdio/u32-vsnprintf-tests
34801         (test_u32_vsnprintf1_LDADD): Likewise.
34802         * modules/unistdio/u32-vsprintf-tests
34803         (test_u32_vsprintf1_LDADD): Likewise.
34804         * modules/unistdio/u8-vsnprintf-tests
34805         (test_u8_vsnprintf1_LDADD): Likewise.
34806         * modules/unistdio/u8-vsprintf-tests
34807         (test_u8_vsprintf1_LDADD): Likewise.
34808         * modules/unistdio/ulc-vsnprintf-tests
34809         (test_ulc_vsnprintf1_LDADD): Likewise.
34810         * modules/unistdio/ulc-vsprintf-tests
34811         (test_ulc_vsprintf1_LDADD): Likewise.
34812
34813         Fix linking of some uniconv tests on FreeBSD.
34814         * modules/uniconv/u16-conv-from-enc-tests
34815         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34816         * modules/uniconv/u16-conv-to-enc-tests
34817         (test_u16_conv_to_enc_LDADD): Likewise.
34818         * modules/uniconv/u16-strconv-from-enc-tests
34819         (test_u16_strconv_from_enc_LDADD): Likewise.
34820         * modules/uniconv/u16-strconv-to-enc-tests
34821         (test_u16_strconv_to_enc_LDADD): Likewise.
34822         * modules/uniconv/u32-conv-from-enc-tests
34823         (test_u32_conv_from_enc_LDADD): Likewise.
34824         * modules/uniconv/u32-conv-to-enc-tests
34825         (test_u32_conv_to_enc_LDADD): Likewise.
34826         * modules/uniconv/u32-strconv-from-enc-tests
34827         (test_u32_strconv_from_enc_LDADD): Likewise.
34828         * modules/uniconv/u32-strconv-to-enc-tests
34829         (test_u32_strconv_to_enc_LDADD): Likewise.
34830         * modules/uniconv/u8-conv-from-enc-tests
34831         (test_u8_conv_from_enc_LDADD): Likewise.
34832         * modules/uniconv/u8-conv-to-enc-tests
34833         (test_u8_conv_to_enc_LDADD): Likewise.
34834         * modules/uniconv/u8-strconv-from-enc-tests
34835         (test_u8_strconv_from_enc_LDADD): Likewise.
34836         * modules/uniconv/u8-strconv-to-enc-tests
34837         (test_u8_strconv_to_enc_LDADD): Likewise.
34838
34839 2007-10-22  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34842         size.
34843
34844 2007-10-22  Eric Blake  <ebb9@byu.net>
34845
34846         Tweak x*printf documentation.
34847         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34848         variable name and comments.
34849         Suggested by Bruno Haible.
34850
34851 2007-10-22  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/acl.c (copy_acl): Fix file name in comment.
34854
34855 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34856
34857         Fix Tru64 problem with stdbool.h.
34858         * lib/stdbool.in.h (false, true):
34859         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34860         Don't declare as an enum in this situation; it runs afoul of Tru64.
34861         Problem reported by Steven M. Schweda in
34862         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34863
34864 2007-10-22  Eric Blake  <ebb9@byu.net>
34865
34866         Also wrap vf?printf.
34867         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34868         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34869         (xvprintf, xvfprintf): New functions.
34870
34871 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34872
34873         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34874         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34875
34876         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34877         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34878
34879 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34880
34881         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34882         by Bruno Haible.
34883
34884 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34885
34886         * lib/getloadavg.c
34887         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34888         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34889
34890         * tests/test-i-ring.c: Work for C89.
34891
34892 2007-10-22  Bruno Haible  <bruno@clisp.org>
34893
34894         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34895         -1u, in preprocessor expression, so that we don't test for the bug
34896         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34898
34899 2007-10-22  Eric Blake  <ebb9@byu.net>
34900
34901         * tests/test-yesno.sh: Silence stderr during test.
34902
34903 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34904
34905         * modules/crypto/gc-camellia: New file.
34906
34907         * m4/gc-camellia.m4: New file.
34908
34909         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34910
34911         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34912
34913 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34914
34915         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34916         --help to stdout.  Reported by sms@antinode.org (Steven
34917         M. Schweda).
34918
34919 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34920
34921         * users.txt: Fix link to libksba.
34922
34923 2007-10-21  Ben Pfaff  <blp@gnu.org>
34924
34925         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
34926         round.c roundf implementation that depends on floorf and ceilf to
34927         be tested unconditionally.
34928
34929 2007-10-21  Ben Pfaff  <blp@gnu.org>
34930
34931         * m4/check-libm-func.m4: Removed.
34932         * m4/check-math-lib.m4: New file.
34933         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
34934         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
34935         definition and lack of AC_LIBOBJ([roundf]).
34936         * m4/roundl.m4: Ditto, and similarly for roundl.
34937         * modules/round: Reference new m4 file.
34938         * modules/roundf: Ditto.
34939         * modules/roundl: Ditto.
34940         * tests/test-round2.c (main): Use ROUND instead of round.
34941         Bug report from Bruno Haible.
34942
34943 2007-10-21  Bruno Haible  <bruno@clisp.org>
34944
34945         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
34946         context.
34947
34948 2007-10-21  Bruno Haible  <bruno@clisp.org>
34949
34950         * tests/test-wcwidth.c (main): Allow negative result for some control
34951         characters.
34952
34953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
34954         Needed on OSF/1 5.1.
34955
34956 2007-10-21  Bruno Haible  <bruno@clisp.org>
34957
34958         * tests/test-floorf1.c: Include isnanf.h.
34959         (main): Use isnanf() instead of isnan().
34960         * tests/test-ceilf1.c: Include isnanf.h.
34961         (main): Use isnanf() instead of isnan().
34962         * tests/test-truncf1.c: Include isnanf.h.
34963         (main): Use isnanf() instead of isnan().
34964         * tests/test-roundf1.c: Include isnanf.h.
34965         (main): Use isnanf() instead of isnan().
34966
34967 2007-10-21  Eric Blake  <ebb9@byu.net>
34968
34969         * users.txt: Update URL for m4.
34970
34971 2007-10-21  Bruno Haible  <bruno@clisp.org>
34972
34973         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
34974
34975 2007-10-21  Bruno Haible  <bruno@clisp.org>
34976
34977         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
34978         Git's management files if the CVS files are not present.
34979
34980 2007-10-20  Bruno Haible  <bruno@clisp.org>
34981
34982         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
34983         gcc-3.4.x.
34984
34985 2007-10-20  Ben Pfaff  <blp@gnu.org>
34986
34987         * lib/math.in.h: Declare round, roundf, roundl if we are providing
34988         implementations.
34989         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
34990         * lib/round.c: New file.
34991         * lib/roundf.c: New file.
34992         * lib/roundl.c: New file.
34993         * m4/round.m4: New file.
34994         * m4/roundf.m4: New file.
34995         * m4/roundl.m4: New file.
34996         * m4/check-libm-func-m4: New file.
34997         * modules/math: Replace round, roundf, roundl related @VARS@ in
34998         math.in.h.
34999         * modules/round: New file.
35000         * modules/round-tests: New file.
35001         * modules/roundf: New file.
35002         * modules/roundf-tests: New file.
35003         * modules/roundl: New file.
35004         * modules/roundl-tests: New file.
35005         * tests/test-round1.c: New file.
35006         * tests/test-round2.c: New file.
35007         * tests/test-roundf1.c: New file.
35008         * tests/test-roundf2.c: New file.
35009         * tests/test-roundl.c: New file.
35010         * doc/functions/round.texi: Mention round module.
35011         * doc/functions/roundf.texi: Mention roundf module.
35012         * doc/functions/roundl.texi: Mention roundl module.
35013         * MODULES.html.sh: Mention new modules.
35014         Thanks to Bruno Haible for suggestions.
35015
35016 2007-10-20  Jim Meyering  <meyering@redhat.com>
35017
35018         * lib/xprintf.c: Include <config.h> unconditionally.
35019
35020         Change xprintf's license to GPL.
35021         * modules/xprintf (License): s/LGPL/GPL/, since this module
35022         depends on modules (exit and exitfail) which are GPL.
35023         Suggestion from Bruno Haible.
35024
35025         xprintf fixes.
35026         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35027         Use a clearer diagnostic.
35028         Patch from Bruno Haible.
35029
35030 2007-10-20  Bruno Haible  <bruno@clisp.org>
35031
35032         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35033         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35035
35036 2007-10-20  Bruno Haible  <bruno@clisp.org>
35037
35038         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35039         precision in the comparison result > x - 1 or similar.
35040         * tests/test-ceilf2.c (correct_result_p): Likewise.
35041         * tests/test-truncf2.c (correct_result_p): Likewise.
35042         * tests/test-trunc2.c (correct_result_p): Likewise.
35043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35044
35045 2007-10-20  Bruno Haible  <bruno@clisp.org>
35046
35047         * modules/ceil: New file.
35048         * m4/ceil.m4: New file.
35049         * doc/functions/ceil.texi: Mention the 'ceil' module.
35050
35051 2007-10-20  Bruno Haible  <bruno@clisp.org>
35052
35053         * modules/floor: New file.
35054         * m4/floor.m4: New file.
35055         * doc/functions/floor.texi: Mention the 'floor' module.
35056
35057 2007-10-20  Bruno Haible  <bruno@clisp.org>
35058
35059         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35060         of %a.
35061         * modules/floorf-tests (Depends-on): Likewise.
35062         * modules/truncf-tests (Depends-on): Likewise.
35063         * modules/trunc-tests (Depends-on): Likewise.
35064         Reported by Ben Pfaff.
35065
35066 2007-10-19  Jim Meyering  <meyering@redhat.com>
35067
35068         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35069         Don't bother testing specific errno values.  Just test ferror.
35070
35071         New module: xprintf
35072         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35073
35074 2007-10-19  Bruno Haible  <bruno@clisp.org>
35075
35076         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35077         syntax.
35078         * modules/javaexec (Makefile.am): Likewise.
35079         * modules/relocatable-prog (Makefile.am): Likewise.
35080         Suggested by Jim Meyering.
35081
35082 2007-10-18  Bruno Haible  <bruno@clisp.org>
35083
35084         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35085         Reported by Jim Meyering.
35086
35087 2007-10-18  Eric Blake  <ebb9@byu.net>
35088
35089         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35090
35091 2007-10-18  Bruno Haible  <bruno@clisp.org>
35092
35093         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35094         the format string into writable memory. Needed in Fortify conditions.
35095
35096 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35097             Bruno Haible  <bruno@clisp.org>
35098
35099         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35100         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35101         * modules/trim (Depends-on): Add mbchar.
35102         (configure.ac): Add gl_FUNC_MBRTOWC.
35103         (Makefile.am): Augment lib_SOURCES.
35104
35105 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35106
35107         Modify glob.c to use fstatat and dirfd, to simplify it.
35108         Suggested by Eric Blake.
35109         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35110         Don't include <stdbool.h>; not used.
35111         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35112         (link_exists_p): Simplify implementation, since we can now assume
35113         dirfd and fstatat.
35114         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35115
35116 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35117
35118         * gnulib-tool (func_get_dependencies): Fix sed script to
35119         match only tests.
35120
35121 2007-10-17  Bruno Haible  <bruno@clisp.org>
35122
35123         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35124         allow locale names without encoding suffix.
35125         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35126         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35127
35128 2007-10-16  Bruno Haible  <bruno@clisp.org>
35129
35130         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35131         * lib/getgroups.c (getgroups): Likewise.
35132         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35133
35134 2007-10-16  Bruno Haible  <bruno@clisp.org>
35135
35136         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35137         * modules/malloc-posix (License): Likewise.
35138         * modules/realloc-posix (License): Likewise.
35139         * modules/calloc-posix (License): Likewise.
35140         * modules/intprops (License): Change from GPL to LGPL, with
35141         Paul Eggert's approval.
35142
35143 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35144
35145         Merge glibc changes into lib/glob.c.
35146
35147         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35148         2007-10-15 04:59:03 UTC.  Here are the changes:
35149
35150         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35151
35152         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35153
35154         * lib/glob.c: Add some branch prediction throughout.
35155
35156         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35157
35158         [BZ #5103]
35159         * lib/glob.c (glob): Recognize patterns starting \/.
35160
35161         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35162
35163         [BZ #3996]
35164         * lib/glob.c (attribute_hidden): Define if not defined.
35165         (glob): Unescape dirname, filename or username when needed and not
35166         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35167         is NULL.  Handle unescaped [ in pattern without closing ].
35168         Don't pass GLOB_CHECK down to recursive glob for directories.
35169         (__glob_pattern_type): New function.
35170         (__glob_pattern_p): Implement using __glob_pattern_type.
35171         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35172         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35173         Remove unreachable code.
35174
35175         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35176
35177         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35178         explain why there are no leaks.
35179
35180         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35181
35182         [BZ #3253]
35183         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35184         time, rather allocate increasingly bigger arrays of pointers, if
35185         possible with alloca, if too large with malloc.
35186
35187 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35188
35189         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35190         Problem reported by H.Merijn Brand in
35191         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35193         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35194
35195 2007-10-15  Bruno Haible  <bruno@clisp.org>
35196
35197         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35198         with explicit rpl_ prefix.
35199         * lib/fopen.c (fopen): Likewise.
35200         * lib/freopen.c (freopen): Likewise.
35201         * lib/iconv.c (iconv): Likewise.
35202         * lib/iconv_close.c (iconv_close): Likewise.
35203
35204 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35205
35206         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35207
35208 2007-10-15  Bruno Haible  <bruno@clisp.org>
35209
35210         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35211         <stddef.h> instead of <stdlib.h> since we only need NULL.
35212         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35213
35214 2007-10-15  Bruno Haible  <bruno@clisp.org>
35215
35216         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35217         Replace paragraph talking about LIBOBJS.
35218         Reported by Colin Watson <cjwatson@debian.org>.
35219
35220 2007-10-15  Bruno Haible  <bruno@clisp.org>
35221
35222         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35223         <stdlib.h> before using NULL.
35224
35225 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35226
35227         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35228         Reported by Albert Chin <china@thewrittenword.com>.
35229
35230 2007-10-14  Bruno Haible  <bruno@clisp.org>
35231
35232         * modules/iconv_open-utf-tests: New file.
35233         * tests/test-iconv-utf.c: New file.
35234
35235         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35236         * modules/iconv_open-utf: New file.
35237         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35238         (iconv, iconv_close): New declarations.
35239         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35240         be defined.
35241         (iconv_open): Add special handling of conversion between UTF-8 and
35242         UTF-{16,32}{BE,LE}.
35243         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35244         * lib/iconv_close.c: New file.
35245         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35246         gl_FUNC_ICONV_OPEN.
35247         (gl_FUNC_ICONV_OPEN): Use it.
35248         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35249         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35250         and REPLACE_ICONV_UTF.
35251         * modules/iconv_open (Depends-on): Add c-strcase.
35252         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35253         ICONV_CONST.
35254         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35255
35256 2007-10-13  Albert Chin  <china@thewrittenword.com>
35257             Bruno Haible  <bruno@clisp.org>
35258
35259         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35260         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35261
35262 2007-10-13  Bruno Haible  <bruno@clisp.org>
35263
35264         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35265         defined, use the ISO C99 inline semantics.
35266         * lib/argp.h (ARGP_EI): Likewise.
35267
35268 2007-10-13  Bruno Haible  <bruno@clisp.org>
35269
35270         Handle 'inline' change in gcc 4.3.0.
35271         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35272         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35273         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35274         argp_fmtstream_point): Disable 'extern' declaration if the function
35275         definition is going to be provided inline.
35276         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35277         semantics, not the ISO C99 inline semantics.
35278         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35279         'extern' declaration if the function definition is going to be provided
35280         inline.
35281         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35282         the GNU C inline semantics, not the ISO C99 inline semantics. With
35283         GCC 4.2, avoid a warning.
35284
35285 2007-10-13  Bruno Haible  <bruno@clisp.org>
35286
35287         * lib/freading.h (freading): Enable the use of __freading for
35288         glibc >= 2.7.
35289         * lib/freading.c (freading): Likewise.
35290
35291 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35292
35293         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35294         "warning: C99 inline functions are not supported; using GNU89".
35295
35296 2007-10-12  Bruno Haible  <bruno@clisp.org>
35297
35298         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35299         of 2.
35300         * tests/test-ceilf2.c: New file.
35301         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35302
35303         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35304         * modules/ceilf-tests: Update.
35305
35306 2007-10-12  Bruno Haible  <bruno@clisp.org>
35307
35308         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35309         of 2.
35310         * tests/test-floorf2.c: New file.
35311         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35312
35313         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35314         * modules/floorf-tests: Update.
35315
35316 2007-10-12  Bruno Haible  <bruno@clisp.org>
35317
35318         * tests/test-trunc2.c: New file.
35319         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35320
35321         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35322         * modules/trunc-tests: Update.
35323
35324 2007-10-12  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35327         of 2.
35328         * tests/test-truncf2.c: New file.
35329         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35330
35331         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35332         * modules/truncf-tests: Update.
35333
35334 2007-10-11  Eric Blake  <ebb9@byu.net>
35335
35336         Don't claim strerror is broken on Interix.
35337         * doc/functions/strerror.texi (strerror): Known broken systems are
35338         now Solaris 8, and not Interix.
35339         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35340         Interix on cross-compile.
35341         Reported by Martin Koeppe in
35342         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35343
35344 2007-10-11  Bruno Haible  <bruno@clisp.org>
35345
35346         * modules/i-ring-tests: New file.
35347         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35348         instead of assert.
35349
35350 2007-10-11  Bruno Haible  <bruno@clisp.org>
35351
35352         * modules/filenamecat-tests: New file.
35353         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35354         * lib/filenamecat.c: Remove test code.
35355
35356 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35357
35358         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35359
35360         * lib/strerror.c: Include <string.h> always, to test interface,
35361         and to remove the need for the dummy.
35362         Include intprops.h to compute width instead of doing it ourselves
35363         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35364         (strerror): Define it to return NULL if there's no system strerror.
35365         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35366         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35367         ancient pre-strerror Unix systems well any more.  Saying "unknown
35368         system error" is enough.
35369         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35370         simpler strerror.c implementation.
35371         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35372         Simplify the tests to reflect the simpler strerror implementation.
35373         * modules/strerror (Depends-on): Add intprops.
35374
35375 2007-10-09  Eric Blake  <ebb9@byu.net>
35376
35377         Silence test-fpending.
35378         * modules/fpending-tests (Files): Add wrapper script.
35379         * tests/test-fpending.sh: New file.
35380
35381 2007-10-09  Bruno Haible  <bruno@clisp.org>
35382
35383         * MODULES.html.sh (func_module): Don't create a hyperlink for
35384         function names like 'printf_frexp'.
35385         (Misc): Add crc, memxor.
35386         (Characteristics of floating types): New section.
35387         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35388         isnanf-nolibm, signbit, trunc, truncf, truncl.
35389         (Enhancements for ISO C 99 functions): New subsection Input/output.
35390         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35391         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35392         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35393         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35394         (Enhancements for POSIX:2001 functions): Add chdir-long.
35395         (File system functions): Add areadlink, chdir-safer, read-file.
35396         Remove cycle-check.
35397         (File system as inode set): New section.
35398         (Date and time): Add gethrxtime.
35399         (Multithreading): Add openmp.
35400         (Internationalization functions): Add localename.
35401         (Unicode string functions): Add unistr/u*-mbsnlen.
35402         (Support for maintaining and releasing projects): Add git-version-gen.
35403         (Lone files): Remove directories.
35404
35405 2007-10-08  Ben Pfaff  <blp@gnu.org>
35406
35407         * lib/xmalloca.h: Fix typo in comment.
35408
35409 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35410
35411         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35412         when avoiding problems with integer overflow.  Use a portable test
35413         instead.
35414
35415 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35416
35417         * modules/dummy (License): Change to LGPLv2+.
35418         * modules/float (License): Likewise
35419         * modules/realloc (License): Likewise
35420         * modules/stdlib (License): Likewise
35421
35422 2007-10-07  Bruno Haible  <bruno@clisp.org>
35423
35424         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35425         * floor.c (TWO_MANT_DIG): Likewise.
35426         * ceil.c (TWO_MANT_DIG): Likewise.
35427         Reported by Ben Pfaff.
35428
35429 2007-10-07  Bruno Haible  <bruno@clisp.org>
35430
35431         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35432         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35433         * lib/frexp.c (FUNC): Likewise.
35434         * lib/printf-frexp.h (printf_frexp): Likewise.
35435         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35436         * lib/printf-frexp.c (FUNC): Likewise.
35437         Suggested by Jim Meyering.
35438
35439 2007-10-07  Jim Meyering  <meyering@redhat.com>
35440
35441         Make xnanosleep's integer overflow test more robust.
35442         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35443         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35444
35445 2007-10-07  Bruno Haible  <bruno@clisp.org>
35446
35447         * NEWS: Mention the license change.
35448
35449         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35450         abbreviations in the modules files.
35451
35452         Change copyright notice from GPLv2+ to GPLv3+.
35453         * README: Change copyright notice.
35454         * MODULES.html.sh: Likewise.
35455         * build-aux/bootstrap.conf: Likewise.
35456         * build-aux/config.libpath: Likewise.
35457         * build-aux/csharpcomp.sh.in: Likewise.
35458         * build-aux/csharpexec.sh.in: Likewise.
35459         * build-aux/install-reloc: Likewise.
35460         * build-aux/javacomp.sh.in: Likewise.
35461         * build-aux/javaexec.sh.in: Likewise.
35462         * build-aux/ldd.sh.in: Likewise.
35463         * build-aux/reloc-ldflags: Likewise.
35464         * build-aux/relocatable.sh.in: Likewise.
35465         * build-aux/x-to-1.in: Likewise.
35466         * check-module: Likewise.
35467         * config/srclistvars.sh: Likewise.
35468         * gnulib-tool: Likewise.
35469         * lib/acl-internal.h: Likewise.
35470         * lib/acl.c: Likewise.
35471         * lib/acl.h: Likewise.
35472         * lib/acl_entries.c: Likewise.
35473         * lib/areadlink-with-size.c: Likewise.
35474         * lib/areadlink.c: Likewise.
35475         * lib/areadlink.h: Likewise.
35476         * lib/argmatch.c: Likewise.
35477         * lib/argmatch.h: Likewise.
35478         * lib/argp-ba.c: Likewise.
35479         * lib/argp-eexst.c: Likewise.
35480         * lib/argp-fmtstream.c: Likewise.
35481         * lib/argp-fmtstream.h: Likewise.
35482         * lib/argp-fs-xinl.c: Likewise.
35483         * lib/argp-help.c: Likewise.
35484         * lib/argp-namefrob.h: Likewise.
35485         * lib/argp-parse.c: Likewise.
35486         * lib/argp-pin.c: Likewise.
35487         * lib/argp-pv.c: Likewise.
35488         * lib/argp-pvh.c: Likewise.
35489         * lib/argp-xinl.c: Likewise.
35490         * lib/argp.h: Likewise.
35491         * lib/at-func.c: Likewise.
35492         * lib/atanl.c: Likewise.
35493         * lib/backupfile.c: Likewise.
35494         * lib/backupfile.h: Likewise.
35495         * lib/basename.c: Likewise.
35496         * lib/binary-io.h: Likewise.
35497         * lib/byteswap.in.h: Likewise.
35498         * lib/c-stack.c: Likewise.
35499         * lib/c-stack.h: Likewise.
35500         * lib/c-strcasestr.c: Likewise.
35501         * lib/c-strcasestr.h: Likewise.
35502         * lib/c-strstr.c: Likewise.
35503         * lib/c-strstr.h: Likewise.
35504         * lib/c-strtod.c: Likewise.
35505         * lib/calloc.c: Likewise.
35506         * lib/canon-host.c: Likewise.
35507         * lib/canon-host.h: Likewise.
35508         * lib/canonicalize-lgpl.c: Likewise.
35509         * lib/canonicalize.c: Likewise.
35510         * lib/canonicalize.h: Likewise.
35511         * lib/ceil.c: Likewise.
35512         * lib/ceilf.c: Likewise.
35513         * lib/ceill.c: Likewise.
35514         * lib/chdir-long.c: Likewise.
35515         * lib/chdir-long.h: Likewise.
35516         * lib/chdir-safer.c: Likewise.
35517         * lib/chdir-safer.h: Likewise.
35518         * lib/chown.c: Likewise.
35519         * lib/classpath.c: Likewise.
35520         * lib/classpath.h: Likewise.
35521         * lib/clean-temp.c: Likewise.
35522         * lib/clean-temp.h: Likewise.
35523         * lib/cloexec.c: Likewise.
35524         * lib/close-stream.c: Likewise.
35525         * lib/closein.c: Likewise.
35526         * lib/closein.h: Likewise.
35527         * lib/closeout.c: Likewise.
35528         * lib/closeout.h: Likewise.
35529         * lib/concat-filename.c: Likewise.
35530         * lib/copy-file.c: Likewise.
35531         * lib/copy-file.h: Likewise.
35532         * lib/count-one-bits.h: Likewise.
35533         * lib/crc.c: Likewise.
35534         * lib/crc.h: Likewise.
35535         * lib/creat-safer.c: Likewise.
35536         * lib/csharpcomp.c: Likewise.
35537         * lib/csharpcomp.h: Likewise.
35538         * lib/csharpexec.c: Likewise.
35539         * lib/csharpexec.h: Likewise.
35540         * lib/cycle-check.c: Likewise.
35541         * lib/cycle-check.h: Likewise.
35542         * lib/diacrit.c: Likewise.
35543         * lib/diacrit.h: Likewise.
35544         * lib/diffseq.h: Likewise.
35545         * lib/dirchownmod.c: Likewise.
35546         * lib/dirent.in.h: Likewise.
35547         * lib/dirfd.c: Likewise.
35548         * lib/dirfd.h: Likewise.
35549         * lib/dirname.c: Likewise.
35550         * lib/dirname.h: Likewise.
35551         * lib/dummy.c: Likewise.
35552         * lib/dup-safer.c: Likewise.
35553         * lib/dup2.c: Likewise.
35554         * lib/eealloc.h: Likewise.
35555         * lib/error.c: Likewise.
35556         * lib/error.h: Likewise.
35557         * lib/euidaccess.c: Likewise.
35558         * lib/exclude.c: Likewise.
35559         * lib/exclude.h: Likewise.
35560         * lib/execute.c: Likewise.
35561         * lib/execute.h: Likewise.
35562         * lib/exitfail.c: Likewise.
35563         * lib/exitfail.h: Likewise.
35564         * lib/expl.c: Likewise.
35565         * lib/fatal-signal.c: Likewise.
35566         * lib/fatal-signal.h: Likewise.
35567         * lib/fbufmode.c: Likewise.
35568         * lib/fbufmode.h: Likewise.
35569         * lib/fchdir.c: Likewise.
35570         * lib/fchmodat.c: Likewise.
35571         * lib/fchownat.c: Likewise.
35572         * lib/fcntl--.h: Likewise.
35573         * lib/fcntl-safer.h: Likewise.
35574         * lib/fcntl.in.h: Likewise.
35575         * lib/fd-safer.c: Likewise.
35576         * lib/fflush.c: Likewise.
35577         * lib/file-has-acl.c: Likewise.
35578         * lib/file-set.c: Likewise.
35579         * lib/file-type.c: Likewise.
35580         * lib/file-type.h: Likewise.
35581         * lib/fileblocks.c: Likewise.
35582         * lib/filemode.c: Likewise.
35583         * lib/filemode.h: Likewise.
35584         * lib/filename.h: Likewise.
35585         * lib/filenamecat.c: Likewise.
35586         * lib/filenamecat.h: Likewise.
35587         * lib/findprog.c: Likewise.
35588         * lib/findprog.h: Likewise.
35589         * lib/float.in.h: Likewise.
35590         * lib/floor.c: Likewise.
35591         * lib/floorf.c: Likewise.
35592         * lib/floorl.c: Likewise.
35593         * lib/fopen-safer.c: Likewise.
35594         * lib/fopen.c: Likewise.
35595         * lib/fpending.c: Likewise.
35596         * lib/fpending.h: Likewise.
35597         * lib/fprintf.c: Likewise.
35598         * lib/fprintftime.h: Likewise.
35599         * lib/fpucw.h: Likewise.
35600         * lib/fpurge.c: Likewise.
35601         * lib/fpurge.h: Likewise.
35602         * lib/freadable.c: Likewise.
35603         * lib/freadable.h: Likewise.
35604         * lib/freadahead.c: Likewise.
35605         * lib/freadahead.h: Likewise.
35606         * lib/freading.c: Likewise.
35607         * lib/freading.h: Likewise.
35608         * lib/free.c: Likewise.
35609         * lib/freopen.c: Likewise.
35610         * lib/frexp.c: Likewise.
35611         * lib/frexpl.c: Likewise.
35612         * lib/fseek.c: Likewise.
35613         * lib/fseterr.c: Likewise.
35614         * lib/fseterr.h: Likewise.
35615         * lib/fstatat.c: Likewise.
35616         * lib/fstrcmp.c: Likewise.
35617         * lib/fstrcmp.h: Likewise.
35618         * lib/fsusage.c: Likewise.
35619         * lib/fsusage.h: Likewise.
35620         * lib/ftell.c: Likewise.
35621         * lib/ftello.c: Likewise.
35622         * lib/fts-cycle.c: Likewise.
35623         * lib/fts.c: Likewise.
35624         * lib/fts_.h: Likewise.
35625         * lib/full-read.c: Likewise.
35626         * lib/full-read.h: Likewise.
35627         * lib/full-write.c: Likewise.
35628         * lib/full-write.h: Likewise.
35629         * lib/fwritable.c: Likewise.
35630         * lib/fwritable.h: Likewise.
35631         * lib/fwriteerror.c: Likewise.
35632         * lib/fwriteerror.h: Likewise.
35633         * lib/fwriting.c: Likewise.
35634         * lib/fwriting.h: Likewise.
35635         * lib/gcd.c: Likewise.
35636         * lib/gcd.h: Likewise.
35637         * lib/getcwd.c: Likewise.
35638         * lib/getdate.h: Likewise.
35639         * lib/getdate.y: Likewise.
35640         * lib/getdomainname.c: Likewise.
35641         * lib/getdomainname.h: Likewise.
35642         * lib/getgroups.c: Likewise.
35643         * lib/gethostname.c: Likewise.
35644         * lib/gethrxtime.c: Likewise.
35645         * lib/gethrxtime.h: Likewise.
35646         * lib/getloadavg.c: Likewise.
35647         * lib/getndelim2.c: Likewise.
35648         * lib/getndelim2.h: Likewise.
35649         * lib/getnline.c: Likewise.
35650         * lib/getnline.h: Likewise.
35651         * lib/getopt.c: Likewise.
35652         * lib/getopt.in.h: Likewise.
35653         * lib/getopt1.c: Likewise.
35654         * lib/getopt_int.h: Likewise.
35655         * lib/getpagesize.h: Likewise.
35656         * lib/getsubopt.c: Likewise.
35657         * lib/gettime.c: Likewise.
35658         * lib/getugroups.c: Likewise.
35659         * lib/getugroups.h: Likewise.
35660         * lib/getusershell.c: Likewise.
35661         * lib/gl_anyavltree_list1.h: Likewise.
35662         * lib/gl_anyavltree_list2.h: Likewise.
35663         * lib/gl_anyhash_list1.h: Likewise.
35664         * lib/gl_anyhash_list2.h: Likewise.
35665         * lib/gl_anylinked_list1.h: Likewise.
35666         * lib/gl_anylinked_list2.h: Likewise.
35667         * lib/gl_anyrbtree_list1.h: Likewise.
35668         * lib/gl_anyrbtree_list2.h: Likewise.
35669         * lib/gl_anytree_list1.h: Likewise.
35670         * lib/gl_anytree_list2.h: Likewise.
35671         * lib/gl_anytree_oset.h: Likewise.
35672         * lib/gl_anytreehash_list1.h: Likewise.
35673         * lib/gl_anytreehash_list2.h: Likewise.
35674         * lib/gl_array_list.c: Likewise.
35675         * lib/gl_array_list.h: Likewise.
35676         * lib/gl_array_oset.c: Likewise.
35677         * lib/gl_array_oset.h: Likewise.
35678         * lib/gl_avltree_list.c: Likewise.
35679         * lib/gl_avltree_list.h: Likewise.
35680         * lib/gl_avltree_oset.c: Likewise.
35681         * lib/gl_avltree_oset.h: Likewise.
35682         * lib/gl_avltreehash_list.c: Likewise.
35683         * lib/gl_avltreehash_list.h: Likewise.
35684         * lib/gl_carray_list.c: Likewise.
35685         * lib/gl_carray_list.h: Likewise.
35686         * lib/gl_linked_list.c: Likewise.
35687         * lib/gl_linked_list.h: Likewise.
35688         * lib/gl_linkedhash_list.c: Likewise.
35689         * lib/gl_linkedhash_list.h: Likewise.
35690         * lib/gl_list.c: Likewise.
35691         * lib/gl_list.h: Likewise.
35692         * lib/gl_oset.c: Likewise.
35693         * lib/gl_oset.h: Likewise.
35694         * lib/gl_rbtree_list.c: Likewise.
35695         * lib/gl_rbtree_list.h: Likewise.
35696         * lib/gl_rbtree_oset.c: Likewise.
35697         * lib/gl_rbtree_oset.h: Likewise.
35698         * lib/gl_rbtreehash_list.c: Likewise.
35699         * lib/gl_rbtreehash_list.h: Likewise.
35700         * lib/gl_sublist.c: Likewise.
35701         * lib/gl_sublist.h: Likewise.
35702         * lib/group-member.c: Likewise.
35703         * lib/group-member.h: Likewise.
35704         * lib/hard-locale.c: Likewise.
35705         * lib/hard-locale.h: Likewise.
35706         * lib/hash-pjw.c: Likewise.
35707         * lib/hash-pjw.h: Likewise.
35708         * lib/hash-triple.c: Likewise.
35709         * lib/hash.c: Likewise.
35710         * lib/hash.h: Likewise.
35711         * lib/human.c: Likewise.
35712         * lib/human.h: Likewise.
35713         * lib/i-ring.c: Likewise.
35714         * lib/i-ring.h: Likewise.
35715         * lib/idcache.c: Likewise.
35716         * lib/imaxabs.c: Likewise.
35717         * lib/imaxdiv.c: Likewise.
35718         * lib/inet_pton.c: Likewise.
35719         * lib/inet_pton.h: Likewise.
35720         * lib/intprops.h: Likewise.
35721         * lib/inttostr.c: Likewise.
35722         * lib/inttostr.h: Likewise.
35723         * lib/inttypes.in.h: Likewise.
35724         * lib/isapipe.c: Likewise.
35725         * lib/isdir.c: Likewise.
35726         * lib/isnan.c: Likewise.
35727         * lib/isnan.h: Likewise.
35728         * lib/isnanf.c: Likewise.
35729         * lib/isnanf.h: Likewise.
35730         * lib/isnanl-nolibm.h: Likewise.
35731         * lib/isnanl.c: Likewise.
35732         * lib/isnanl.h: Likewise.
35733         * lib/javacomp.c: Likewise.
35734         * lib/javacomp.h: Likewise.
35735         * lib/javaexec.c: Likewise.
35736         * lib/javaexec.h: Likewise.
35737         * lib/javaversion.c: Likewise.
35738         * lib/javaversion.h: Likewise.
35739         * lib/javaversion.java: Likewise.
35740         * lib/lbrkprop.h: Likewise.
35741         * lib/lchmod.h: Likewise.
35742         * lib/lchown.c: Likewise.
35743         * lib/ldexpl.c: Likewise.
35744         * lib/linebreak.c: Likewise.
35745         * lib/linebreak.h: Likewise.
35746         * lib/linebuffer.c: Likewise.
35747         * lib/linebuffer.h: Likewise.
35748         * lib/locale.in.h: Likewise.
35749         * lib/logl.c: Likewise.
35750         * lib/long-options.c: Likewise.
35751         * lib/long-options.h: Likewise.
35752         * lib/lstat.c: Likewise.
35753         * lib/lstat.h: Likewise.
35754         * lib/math.in.h: Likewise.
35755         * lib/mbchar.c: Likewise.
35756         * lib/mbchar.h: Likewise.
35757         * lib/mbfile.h: Likewise.
35758         * lib/mbiter.h: Likewise.
35759         * lib/mbscasecmp.c: Likewise.
35760         * lib/mbscasestr.c: Likewise.
35761         * lib/mbschr.c: Likewise.
35762         * lib/mbscspn.c: Likewise.
35763         * lib/mbslen.c: Likewise.
35764         * lib/mbsncasecmp.c: Likewise.
35765         * lib/mbsnlen.c: Likewise.
35766         * lib/mbspbrk.c: Likewise.
35767         * lib/mbspcasecmp.c: Likewise.
35768         * lib/mbsrchr.c: Likewise.
35769         * lib/mbssep.c: Likewise.
35770         * lib/mbsspn.c: Likewise.
35771         * lib/mbsstr.c: Likewise.
35772         * lib/mbstok_r.c: Likewise.
35773         * lib/mbswidth.c: Likewise.
35774         * lib/mbswidth.h: Likewise.
35775         * lib/mbuiter.h: Likewise.
35776         * lib/memcasecmp.c: Likewise.
35777         * lib/memcasecmp.h: Likewise.
35778         * lib/memchr.c: Likewise.
35779         * lib/memcmp.c: Likewise.
35780         * lib/memcoll.c: Likewise.
35781         * lib/memcoll.h: Likewise.
35782         * lib/memcpy.c: Likewise.
35783         * lib/memrchr.c: Likewise.
35784         * lib/mkancesdirs.c: Likewise.
35785         * lib/mkdir-p.c: Likewise.
35786         * lib/mkdir-p.h: Likewise.
35787         * lib/mkdir.c: Likewise.
35788         * lib/mkdirat.c: Likewise.
35789         * lib/mkdtemp.c: Likewise.
35790         * lib/mkstemp-safer.c: Likewise.
35791         * lib/mkstemp.c: Likewise.
35792         * lib/modechange.c: Likewise.
35793         * lib/modechange.h: Likewise.
35794         * lib/mountlist.c: Likewise.
35795         * lib/mountlist.h: Likewise.
35796         * lib/mpsort.c: Likewise.
35797         * lib/nanosleep.c: Likewise.
35798         * lib/obstack.c: Likewise.
35799         * lib/obstack.h: Likewise.
35800         * lib/open-safer.c: Likewise.
35801         * lib/open.c: Likewise.
35802         * lib/openat-die.c: Likewise.
35803         * lib/openat-priv.h: Likewise.
35804         * lib/openat-proc.c: Likewise.
35805         * lib/openat.c: Likewise.
35806         * lib/openat.h: Likewise.
35807         * lib/pagealign_alloc.c: Likewise.
35808         * lib/pagealign_alloc.h: Likewise.
35809         * lib/physmem.c: Likewise.
35810         * lib/physmem.h: Likewise.
35811         * lib/pipe-safer.c: Likewise.
35812         * lib/pipe.c: Likewise.
35813         * lib/pipe.h: Likewise.
35814         * lib/posixtm.c: Likewise.
35815         * lib/posixtm.h: Likewise.
35816         * lib/posixver.c: Likewise.
35817         * lib/printf-frexp.c: Likewise.
35818         * lib/printf-frexp.h: Likewise.
35819         * lib/printf-frexpl.c: Likewise.
35820         * lib/printf-frexpl.h: Likewise.
35821         * lib/printf.c: Likewise.
35822         * lib/progname.c: Likewise.
35823         * lib/progname.h: Likewise.
35824         * lib/progreloc.c: Likewise.
35825         * lib/putenv.c: Likewise.
35826         * lib/quote.c: Likewise.
35827         * lib/quote.h: Likewise.
35828         * lib/quotearg.c: Likewise.
35829         * lib/quotearg.h: Likewise.
35830         * lib/raise.c: Likewise.
35831         * lib/readline.c: Likewise.
35832         * lib/readline.h: Likewise.
35833         * lib/readlink.c: Likewise.
35834         * lib/readtokens.c: Likewise.
35835         * lib/readtokens.h: Likewise.
35836         * lib/readtokens0.c: Likewise.
35837         * lib/readtokens0.h: Likewise.
35838         * lib/readutmp.c: Likewise.
35839         * lib/readutmp.h: Likewise.
35840         * lib/realloc.c: Likewise.
35841         * lib/relocwrapper.c: Likewise.
35842         * lib/rename-dest-slash.c: Likewise.
35843         * lib/rename.c: Likewise.
35844         * lib/rmdir.c: Likewise.
35845         * lib/rpmatch.c: Likewise.
35846         * lib/safe-read.c: Likewise.
35847         * lib/safe-read.h: Likewise.
35848         * lib/safe-write.c: Likewise.
35849         * lib/safe-write.h: Likewise.
35850         * lib/same-inode.h: Likewise.
35851         * lib/same.c: Likewise.
35852         * lib/same.h: Likewise.
35853         * lib/save-cwd.c: Likewise.
35854         * lib/save-cwd.h: Likewise.
35855         * lib/savedir.c: Likewise.
35856         * lib/savedir.h: Likewise.
35857         * lib/savewd.c: Likewise.
35858         * lib/savewd.h: Likewise.
35859         * lib/search.in.h: Likewise.
35860         * lib/setenv.c: Likewise.
35861         * lib/setenv.h: Likewise.
35862         * lib/settime.c: Likewise.
35863         * lib/sh-quote.c: Likewise.
35864         * lib/sh-quote.h: Likewise.
35865         * lib/sig2str.c: Likewise.
35866         * lib/sig2str.h: Likewise.
35867         * lib/signal.in.h: Likewise.
35868         * lib/signbitd.c: Likewise.
35869         * lib/signbitf.c: Likewise.
35870         * lib/signbitl.c: Likewise.
35871         * lib/sigprocmask.c: Likewise.
35872         * lib/sincosl.c: Likewise.
35873         * lib/sleep.c: Likewise.
35874         * lib/sprintf.c: Likewise.
35875         * lib/sqrtl.c: Likewise.
35876         * lib/stat-time.h: Likewise.
35877         * lib/stdio--.h: Likewise.
35878         * lib/stdio-safer.h: Likewise.
35879         * lib/stdlib--.h: Likewise.
35880         * lib/stdlib-safer.h: Likewise.
35881         * lib/stdlib.in.h: Likewise.
35882         * lib/stpcpy.c: Likewise.
35883         * lib/stpncpy.c: Likewise.
35884         * lib/strchrnul.c: Likewise.
35885         * lib/strcspn.c: Likewise.
35886         * lib/strerror.c: Likewise.
35887         * lib/strftime.c: Likewise.
35888         * lib/strftime.h: Likewise.
35889         * lib/striconveh.c: Likewise.
35890         * lib/striconveh.h: Likewise.
35891         * lib/striconveha.c: Likewise.
35892         * lib/striconveha.h: Likewise.
35893         * lib/stripslash.c: Likewise.
35894         * lib/strnlen1.c: Likewise.
35895         * lib/strnlen1.h: Likewise.
35896         * lib/strtod.c: Likewise.
35897         * lib/strtoimax.c: Likewise.
35898         * lib/strtok_r.c: Likewise.
35899         * lib/strtol.c: Likewise.
35900         * lib/strtoll.c: Likewise.
35901         * lib/strtoul.c: Likewise.
35902         * lib/strtoull.c: Likewise.
35903         * lib/sysexits.in.h: Likewise.
35904         * lib/tempname.c: Likewise.
35905         * lib/tempname.h: Likewise.
35906         * lib/timespec.h: Likewise.
35907         * lib/tls.c: Likewise.
35908         * lib/tls.h: Likewise.
35909         * lib/tmpdir.c: Likewise.
35910         * lib/tmpdir.h: Likewise.
35911         * lib/tmpfile-safer.c: Likewise.
35912         * lib/tmpfile.c: Likewise.
35913         * lib/trigl.c: Likewise.
35914         * lib/trigl.h: Likewise.
35915         * lib/trim.c: Likewise.
35916         * lib/trim.h: Likewise.
35917         * lib/trunc.c: Likewise.
35918         * lib/truncf.c: Likewise.
35919         * lib/truncl.c: Likewise.
35920         * lib/tsearch.c: Likewise.
35921         * lib/unicodeio.c: Likewise.
35922         * lib/unicodeio.h: Likewise.
35923         * lib/unistd--.h: Likewise.
35924         * lib/unistd-safer.h: Likewise.
35925         * lib/unistdio/ulc-fprintf.c: Likewise.
35926         * lib/unistdio/ulc-vfprintf.c: Likewise.
35927         * lib/unlinkdir.c: Likewise.
35928         * lib/unlinkdir.h: Likewise.
35929         * lib/unlocked-io.h: Likewise.
35930         * lib/unsetenv.c: Likewise.
35931         * lib/userspec.c: Likewise.
35932         * lib/utime.c: Likewise.
35933         * lib/utimecmp.c: Likewise.
35934         * lib/utimecmp.h: Likewise.
35935         * lib/utimens.c: Likewise.
35936         * lib/verify.h: Likewise.
35937         * lib/verror.c: Likewise.
35938         * lib/verror.h: Likewise.
35939         * lib/version-etc-fsf.c: Likewise.
35940         * lib/version-etc.c: Likewise.
35941         * lib/version-etc.h: Likewise.
35942         * lib/vfprintf.c: Likewise.
35943         * lib/vprintf.c: Likewise.
35944         * lib/vsprintf.c: Likewise.
35945         * lib/w32spawn.h: Likewise.
35946         * lib/wait-process.c: Likewise.
35947         * lib/wait-process.h: Likewise.
35948         * lib/wcwidth.c: Likewise.
35949         * lib/write-any-file.c: Likewise.
35950         * lib/xalloc-die.c: Likewise.
35951         * lib/xalloc.h: Likewise.
35952         * lib/xasprintf.c: Likewise.
35953         * lib/xgetcwd.c: Likewise.
35954         * lib/xgetcwd.h: Likewise.
35955         * lib/xgetdomainname.c: Likewise.
35956         * lib/xgetdomainname.h: Likewise.
35957         * lib/xgethostname.c: Likewise.
35958         * lib/xmalloc.c: Likewise.
35959         * lib/xmalloca.c: Likewise.
35960         * lib/xmalloca.h: Likewise.
35961         * lib/xmemcoll.c: Likewise.
35962         * lib/xnanosleep.c: Likewise.
35963         * lib/xreadlink.c: Likewise.
35964         * lib/xreadlink.h: Likewise.
35965         * lib/xsetenv.c: Likewise.
35966         * lib/xsetenv.h: Likewise.
35967         * lib/xstriconv.c: Likewise.
35968         * lib/xstriconv.h: Likewise.
35969         * lib/xstrndup.c: Likewise.
35970         * lib/xstrndup.h: Likewise.
35971         * lib/xstrtod.c: Likewise.
35972         * lib/xstrtod.h: Likewise.
35973         * lib/xstrtol-error.c: Likewise.
35974         * lib/xstrtol.c: Likewise.
35975         * lib/xstrtol.h: Likewise.
35976         * lib/xtime.h: Likewise.
35977         * lib/xvasprintf.c: Likewise.
35978         * lib/xvasprintf.h: Likewise.
35979         * lib/yesno.c: Likewise.
35980         * lib/yesno.h: Likewise.
35981         * posix-modules: Likewise.
35982         * tests/test-alloca-opt.c: Likewise.
35983         * tests/test-arcfour.c: Likewise.
35984         * tests/test-arctwo.c: Likewise.
35985         * tests/test-argmatch.c: Likewise.
35986         * tests/test-argp-2.sh: Likewise.
35987         * tests/test-argp.c: Likewise.
35988         * tests/test-arpa_inet.c: Likewise.
35989         * tests/test-array_list.c: Likewise.
35990         * tests/test-array_oset.c: Likewise.
35991         * tests/test-atexit.c: Likewise.
35992         * tests/test-avltree_list.c: Likewise.
35993         * tests/test-avltree_oset.c: Likewise.
35994         * tests/test-avltreehash_list.c: Likewise.
35995         * tests/test-base64.c: Likewise.
35996         * tests/test-binary-io.c: Likewise.
35997         * tests/test-byteswap.c: Likewise.
35998         * tests/test-c-ctype.c: Likewise.
35999         * tests/test-c-strcasecmp.c: Likewise.
36000         * tests/test-c-strcasestr.c: Likewise.
36001         * tests/test-c-strncasecmp.c: Likewise.
36002         * tests/test-c-strstr.c: Likewise.
36003         * tests/test-canonicalize-lgpl.c: Likewise.
36004         * tests/test-canonicalize.c: Likewise.
36005         * tests/test-carray_list.c: Likewise.
36006         * tests/test-ceilf.c: Likewise.
36007         * tests/test-ceill.c: Likewise.
36008         * tests/test-count-one-bits.c: Likewise.
36009         * tests/test-crc.c: Likewise.
36010         * tests/test-dirname.c: Likewise.
36011         * tests/test-fbufmode.c: Likewise.
36012         * tests/test-fcntl.c: Likewise.
36013         * tests/test-fflush.c: Likewise.
36014         * tests/test-floorf.c: Likewise.
36015         * tests/test-floorl.c: Likewise.
36016         * tests/test-fopen.c: Likewise.
36017         * tests/test-fprintf-posix.c: Likewise.
36018         * tests/test-fprintf-posix.h: Likewise.
36019         * tests/test-fpurge.c: Likewise.
36020         * tests/test-freadable.c: Likewise.
36021         * tests/test-freadahead.c: Likewise.
36022         * tests/test-freading.c: Likewise.
36023         * tests/test-freopen.c: Likewise.
36024         * tests/test-frexp.c: Likewise.
36025         * tests/test-frexpl.c: Likewise.
36026         * tests/test-fseek.c: Likewise.
36027         * tests/test-fseeko.c: Likewise.
36028         * tests/test-fseterr.c: Likewise.
36029         * tests/test-fstrcmp.c: Likewise.
36030         * tests/test-ftell.c: Likewise.
36031         * tests/test-ftello.c: Likewise.
36032         * tests/test-fwritable.c: Likewise.
36033         * tests/test-fwriting.c: Likewise.
36034         * tests/test-getaddrinfo.c: Likewise.
36035         * tests/test-getpass.c: Likewise.
36036         * tests/test-gettimeofday.c: Likewise.
36037         * tests/test-hmac-md5.c: Likewise.
36038         * tests/test-hmac-sha1.c: Likewise.
36039         * tests/test-iconv.c: Likewise.
36040         * tests/test-iconvme.c: Likewise.
36041         * tests/test-inttypes.c: Likewise.
36042         * tests/test-isnan.c: Likewise.
36043         * tests/test-isnanf.c: Likewise.
36044         * tests/test-isnanl-nolibm.c: Likewise.
36045         * tests/test-isnanl.c: Likewise.
36046         * tests/test-isnanl.h: Likewise.
36047         * tests/test-ldexpl.c: Likewise.
36048         * tests/test-linked_list.c: Likewise.
36049         * tests/test-linkedhash_list.c: Likewise.
36050         * tests/test-locale.c: Likewise.
36051         * tests/test-localename.c: Likewise.
36052         * tests/test-lock.c: Likewise.
36053         * tests/test-lseek.c: Likewise.
36054         * tests/test-malloca.c: Likewise.
36055         * tests/test-math.c: Likewise.
36056         * tests/test-mbscasecmp.c: Likewise.
36057         * tests/test-mbscasestr1.c: Likewise.
36058         * tests/test-mbscasestr2.c: Likewise.
36059         * tests/test-mbscasestr3.c: Likewise.
36060         * tests/test-mbscasestr4.c: Likewise.
36061         * tests/test-mbschr.c: Likewise.
36062         * tests/test-mbscspn.c: Likewise.
36063         * tests/test-mbsncasecmp.c: Likewise.
36064         * tests/test-mbspbrk.c: Likewise.
36065         * tests/test-mbspcasecmp.c: Likewise.
36066         * tests/test-mbsrchr.c: Likewise.
36067         * tests/test-mbsspn.c: Likewise.
36068         * tests/test-mbsstr1.c: Likewise.
36069         * tests/test-mbsstr2.c: Likewise.
36070         * tests/test-mbsstr3.c: Likewise.
36071         * tests/test-md5.c: Likewise.
36072         * tests/test-memmem.c: Likewise.
36073         * tests/test-netinet_in.c: Likewise.
36074         * tests/test-open.c: Likewise.
36075         * tests/test-printf-frexp.c: Likewise.
36076         * tests/test-printf-frexpl.c: Likewise.
36077         * tests/test-printf-posix.c: Likewise.
36078         * tests/test-printf-posix.h: Likewise.
36079         * tests/test-rbtree_list.c: Likewise.
36080         * tests/test-rbtree_oset.c: Likewise.
36081         * tests/test-rbtreehash_list.c: Likewise.
36082         * tests/test-read-file.c: Likewise.
36083         * tests/test-rijndael.c: Likewise.
36084         * tests/test-search.c: Likewise.
36085         * tests/test-signbit.c: Likewise.
36086         * tests/test-sleep.c: Likewise.
36087         * tests/test-snprintf-posix.c: Likewise.
36088         * tests/test-snprintf-posix.h: Likewise.
36089         * tests/test-snprintf.c: Likewise.
36090         * tests/test-sprintf-posix.c: Likewise.
36091         * tests/test-sprintf-posix.h: Likewise.
36092         * tests/test-stat-time.c: Likewise.
36093         * tests/test-stdbool.c: Likewise.
36094         * tests/test-stdint.c: Likewise.
36095         * tests/test-stdio.c: Likewise.
36096         * tests/test-stdlib.c: Likewise.
36097         * tests/test-stpncpy.c: Likewise.
36098         * tests/test-strcasestr.c: Likewise.
36099         * tests/test-striconv.c: Likewise.
36100         * tests/test-striconveh.c: Likewise.
36101         * tests/test-striconveha.c: Likewise.
36102         * tests/test-string.c: Likewise.
36103         * tests/test-sys_select.c: Likewise.
36104         * tests/test-sys_socket.c: Likewise.
36105         * tests/test-sys_stat.c: Likewise.
36106         * tests/test-sys_time.c: Likewise.
36107         * tests/test-sysexits.c: Likewise.
36108         * tests/test-time.c: Likewise.
36109         * tests/test-tls.c: Likewise.
36110         * tests/test-trunc.c: Likewise.
36111         * tests/test-truncf.c: Likewise.
36112         * tests/test-truncl.c: Likewise.
36113         * tests/test-unistd.c: Likewise.
36114         * tests/test-vasnprintf-posix.c: Likewise.
36115         * tests/test-vasnprintf-posix2.c: Likewise.
36116         * tests/test-vasnprintf.c: Likewise.
36117         * tests/test-vasprintf-posix.c: Likewise.
36118         * tests/test-vasprintf.c: Likewise.
36119         * tests/test-verify.c: Likewise.
36120         * tests/test-vfprintf-posix.c: Likewise.
36121         * tests/test-vprintf-posix.c: Likewise.
36122         * tests/test-vsnprintf-posix.c: Likewise.
36123         * tests/test-vsnprintf.c: Likewise.
36124         * tests/test-vsprintf-posix.c: Likewise.
36125         * tests/test-wchar.c: Likewise.
36126         * tests/test-wctype.c: Likewise.
36127         * tests/test-wcwidth.c: Likewise.
36128         * tests/test-xstrtol.c: Likewise.
36129         * tests/test-xvasprintf.c: Likewise.
36130         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36131         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36132         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36133         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36134         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36135         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36136         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36137         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36138         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36139         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36140         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36141         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36142         * tests/uniname/test-uninames.c: Likewise.
36143         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36144         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36145         * tests/unistdio/test-u16-printf1.h: Likewise.
36146         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36147         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36148         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36149         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36150         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36151         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36152         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36153         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36154         * tests/unistdio/test-u32-printf1.h: Likewise.
36155         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36156         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36157         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36158         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36159         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36160         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36161         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36162         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36163         * tests/unistdio/test-u8-printf1.h: Likewise.
36164         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36165         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36166         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36167         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36168         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36169         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36170         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36171         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36172         * tests/unistdio/test-ulc-printf1.h: Likewise.
36173         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36174         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36175         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36176         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36177         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36178         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36179         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36180         * tests/uniwidth/test-u16-width.c: Likewise.
36181         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36182         * tests/uniwidth/test-u32-width.c: Likewise.
36183         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36184         * tests/uniwidth/test-u8-width.c: Likewise.
36185         * tests/uniwidth/test-uc_width.c: Likewise.
36186         * config/srclist-update: Likewise.
36187         (fixlicense): Update to GPLv3+.
36188
36189         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36190         * tests/test-tsearch.c: Change copyright notice.
36191
36192         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36193         * lib/c-strcaseeq.h: Change copyright notice.
36194         * lib/streq.h: Likewise.
36195         * lib/uniconv.h: Likewise.
36196         * lib/uniconv/u-conv-from-enc.h: Likewise.
36197         * lib/uniconv/u-conv-to-enc.h: Likewise.
36198         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36199         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36200         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36201         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36202         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36203         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36204         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36205         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36206         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36207         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36208         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36209         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36210         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36211         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36212         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36213         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36214         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36215         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36216         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36217         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36218         * lib/uniname.h: Likewise.
36219         * lib/uniname/uniname.c: Likewise.
36220         * lib/unistdio.h: Likewise.
36221         * lib/unistdio/u-asnprintf.h: Likewise.
36222         * lib/unistdio/u-asprintf.h: Likewise.
36223         * lib/unistdio/u-printf-args.c: Likewise.
36224         * lib/unistdio/u-printf-args.h: Likewise.
36225         * lib/unistdio/u-printf-parse.h: Likewise.
36226         * lib/unistdio/u-snprintf.h: Likewise.
36227         * lib/unistdio/u-sprintf.h: Likewise.
36228         * lib/unistdio/u-vasprintf.h: Likewise.
36229         * lib/unistdio/u-vsnprintf.h: Likewise.
36230         * lib/unistdio/u-vsprintf.h: Likewise.
36231         * lib/unistdio/u16-asnprintf.c: Likewise.
36232         * lib/unistdio/u16-asprintf.c: Likewise.
36233         * lib/unistdio/u16-printf-parse.c: Likewise.
36234         * lib/unistdio/u16-snprintf.c: Likewise.
36235         * lib/unistdio/u16-sprintf.c: Likewise.
36236         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36237         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36238         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36239         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36240         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36241         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36242         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36243         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36244         * lib/unistdio/u16-vasnprintf.c: Likewise.
36245         * lib/unistdio/u16-vasprintf.c: Likewise.
36246         * lib/unistdio/u16-vsnprintf.c: Likewise.
36247         * lib/unistdio/u16-vsprintf.c: Likewise.
36248         * lib/unistdio/u32-asnprintf.c: Likewise.
36249         * lib/unistdio/u32-asprintf.c: Likewise.
36250         * lib/unistdio/u32-printf-parse.c: Likewise.
36251         * lib/unistdio/u32-snprintf.c: Likewise.
36252         * lib/unistdio/u32-sprintf.c: Likewise.
36253         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36254         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36255         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36256         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36257         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36258         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36259         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36260         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36261         * lib/unistdio/u32-vasnprintf.c: Likewise.
36262         * lib/unistdio/u32-vasprintf.c: Likewise.
36263         * lib/unistdio/u32-vsnprintf.c: Likewise.
36264         * lib/unistdio/u32-vsprintf.c: Likewise.
36265         * lib/unistdio/u8-asnprintf.c: Likewise.
36266         * lib/unistdio/u8-asprintf.c: Likewise.
36267         * lib/unistdio/u8-printf-parse.c: Likewise.
36268         * lib/unistdio/u8-snprintf.c: Likewise.
36269         * lib/unistdio/u8-sprintf.c: Likewise.
36270         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36271         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36272         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36273         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36274         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36275         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36276         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36277         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36278         * lib/unistdio/u8-vasnprintf.c: Likewise.
36279         * lib/unistdio/u8-vasprintf.c: Likewise.
36280         * lib/unistdio/u8-vsnprintf.c: Likewise.
36281         * lib/unistdio/u8-vsprintf.c: Likewise.
36282         * lib/unistdio/ulc-asnprintf.c: Likewise.
36283         * lib/unistdio/ulc-asprintf.c: Likewise.
36284         * lib/unistdio/ulc-printf-parse.c: Likewise.
36285         * lib/unistdio/ulc-snprintf.c: Likewise.
36286         * lib/unistdio/ulc-sprintf.c: Likewise.
36287         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36288         * lib/unistdio/ulc-vasprintf.c: Likewise.
36289         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36290         * lib/unistdio/ulc-vsprintf.c: Likewise.
36291         * lib/unistr.h: Likewise.
36292         * lib/unistr/u-cpy-alloc.h: Likewise.
36293         * lib/unistr/u-cpy.h: Likewise.
36294         * lib/unistr/u-endswith.h: Likewise.
36295         * lib/unistr/u-move.h: Likewise.
36296         * lib/unistr/u-set.h: Likewise.
36297         * lib/unistr/u-startswith.h: Likewise.
36298         * lib/unistr/u-stpcpy.h: Likewise.
36299         * lib/unistr/u-stpncpy.h: Likewise.
36300         * lib/unistr/u-strcat.h: Likewise.
36301         * lib/unistr/u-strcpy.h: Likewise.
36302         * lib/unistr/u-strcspn.h: Likewise.
36303         * lib/unistr/u-strdup.h: Likewise.
36304         * lib/unistr/u-strlen.h: Likewise.
36305         * lib/unistr/u-strncat.h: Likewise.
36306         * lib/unistr/u-strncpy.h: Likewise.
36307         * lib/unistr/u-strnlen.h: Likewise.
36308         * lib/unistr/u-strpbrk.h: Likewise.
36309         * lib/unistr/u-strspn.h: Likewise.
36310         * lib/unistr/u-strstr.h: Likewise.
36311         * lib/unistr/u-strtok.h: Likewise.
36312         * lib/unistr/u16-check.c: Likewise.
36313         * lib/unistr/u16-chr.c: Likewise.
36314         * lib/unistr/u16-cmp.c: Likewise.
36315         * lib/unistr/u16-cpy-alloc.c: Likewise.
36316         * lib/unistr/u16-cpy.c: Likewise.
36317         * lib/unistr/u16-endswith.c: Likewise.
36318         * lib/unistr/u16-mblen.c: Likewise.
36319         * lib/unistr/u16-mbsnlen.c: Likewise.
36320         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36321         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36322         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36323         * lib/unistr/u16-mbtouc.c: Likewise.
36324         * lib/unistr/u16-mbtoucr.c: Likewise.
36325         * lib/unistr/u16-move.c: Likewise.
36326         * lib/unistr/u16-next.c: Likewise.
36327         * lib/unistr/u16-prev.c: Likewise.
36328         * lib/unistr/u16-set.c: Likewise.
36329         * lib/unistr/u16-startswith.c: Likewise.
36330         * lib/unistr/u16-stpcpy.c: Likewise.
36331         * lib/unistr/u16-stpncpy.c: Likewise.
36332         * lib/unistr/u16-strcat.c: Likewise.
36333         * lib/unistr/u16-strchr.c: Likewise.
36334         * lib/unistr/u16-strcmp.c: Likewise.
36335         * lib/unistr/u16-strcpy.c: Likewise.
36336         * lib/unistr/u16-strcspn.c: Likewise.
36337         * lib/unistr/u16-strdup.c: Likewise.
36338         * lib/unistr/u16-strlen.c: Likewise.
36339         * lib/unistr/u16-strmblen.c: Likewise.
36340         * lib/unistr/u16-strmbtouc.c: Likewise.
36341         * lib/unistr/u16-strncat.c: Likewise.
36342         * lib/unistr/u16-strncmp.c: Likewise.
36343         * lib/unistr/u16-strncpy.c: Likewise.
36344         * lib/unistr/u16-strnlen.c: Likewise.
36345         * lib/unistr/u16-strpbrk.c: Likewise.
36346         * lib/unistr/u16-strrchr.c: Likewise.
36347         * lib/unistr/u16-strspn.c: Likewise.
36348         * lib/unistr/u16-strstr.c: Likewise.
36349         * lib/unistr/u16-strtok.c: Likewise.
36350         * lib/unistr/u16-to-u32.c: Likewise.
36351         * lib/unistr/u16-to-u8.c: Likewise.
36352         * lib/unistr/u16-uctomb-aux.c: Likewise.
36353         * lib/unistr/u16-uctomb.c: Likewise.
36354         * lib/unistr/u32-check.c: Likewise.
36355         * lib/unistr/u32-chr.c: Likewise.
36356         * lib/unistr/u32-cmp.c: Likewise.
36357         * lib/unistr/u32-cpy-alloc.c: Likewise.
36358         * lib/unistr/u32-cpy.c: Likewise.
36359         * lib/unistr/u32-endswith.c: Likewise.
36360         * lib/unistr/u32-mblen.c: Likewise.
36361         * lib/unistr/u32-mbsnlen.c: Likewise.
36362         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36363         * lib/unistr/u32-mbtouc.c: Likewise.
36364         * lib/unistr/u32-mbtoucr.c: Likewise.
36365         * lib/unistr/u32-move.c: Likewise.
36366         * lib/unistr/u32-next.c: Likewise.
36367         * lib/unistr/u32-prev.c: Likewise.
36368         * lib/unistr/u32-set.c: Likewise.
36369         * lib/unistr/u32-startswith.c: Likewise.
36370         * lib/unistr/u32-stpcpy.c: Likewise.
36371         * lib/unistr/u32-stpncpy.c: Likewise.
36372         * lib/unistr/u32-strcat.c: Likewise.
36373         * lib/unistr/u32-strchr.c: Likewise.
36374         * lib/unistr/u32-strcmp.c: Likewise.
36375         * lib/unistr/u32-strcpy.c: Likewise.
36376         * lib/unistr/u32-strcspn.c: Likewise.
36377         * lib/unistr/u32-strdup.c: Likewise.
36378         * lib/unistr/u32-strlen.c: Likewise.
36379         * lib/unistr/u32-strmblen.c: Likewise.
36380         * lib/unistr/u32-strmbtouc.c: Likewise.
36381         * lib/unistr/u32-strncat.c: Likewise.
36382         * lib/unistr/u32-strncmp.c: Likewise.
36383         * lib/unistr/u32-strncpy.c: Likewise.
36384         * lib/unistr/u32-strnlen.c: Likewise.
36385         * lib/unistr/u32-strpbrk.c: Likewise.
36386         * lib/unistr/u32-strrchr.c: Likewise.
36387         * lib/unistr/u32-strspn.c: Likewise.
36388         * lib/unistr/u32-strstr.c: Likewise.
36389         * lib/unistr/u32-strtok.c: Likewise.
36390         * lib/unistr/u32-to-u16.c: Likewise.
36391         * lib/unistr/u32-to-u8.c: Likewise.
36392         * lib/unistr/u32-uctomb.c: Likewise.
36393         * lib/unistr/u8-check.c: Likewise.
36394         * lib/unistr/u8-chr.c: Likewise.
36395         * lib/unistr/u8-cmp.c: Likewise.
36396         * lib/unistr/u8-cpy-alloc.c: Likewise.
36397         * lib/unistr/u8-cpy.c: Likewise.
36398         * lib/unistr/u8-endswith.c: Likewise.
36399         * lib/unistr/u8-mblen.c: Likewise.
36400         * lib/unistr/u8-mbsnlen.c: Likewise.
36401         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36402         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36403         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36404         * lib/unistr/u8-mbtouc.c: Likewise.
36405         * lib/unistr/u8-mbtoucr.c: Likewise.
36406         * lib/unistr/u8-move.c: Likewise.
36407         * lib/unistr/u8-next.c: Likewise.
36408         * lib/unistr/u8-prev.c: Likewise.
36409         * lib/unistr/u8-set.c: Likewise.
36410         * lib/unistr/u8-startswith.c: Likewise.
36411         * lib/unistr/u8-stpcpy.c: Likewise.
36412         * lib/unistr/u8-stpncpy.c: Likewise.
36413         * lib/unistr/u8-strcat.c: Likewise.
36414         * lib/unistr/u8-strchr.c: Likewise.
36415         * lib/unistr/u8-strcmp.c: Likewise.
36416         * lib/unistr/u8-strcpy.c: Likewise.
36417         * lib/unistr/u8-strcspn.c: Likewise.
36418         * lib/unistr/u8-strdup.c: Likewise.
36419         * lib/unistr/u8-strlen.c: Likewise.
36420         * lib/unistr/u8-strmblen.c: Likewise.
36421         * lib/unistr/u8-strmbtouc.c: Likewise.
36422         * lib/unistr/u8-strncat.c: Likewise.
36423         * lib/unistr/u8-strncmp.c: Likewise.
36424         * lib/unistr/u8-strncpy.c: Likewise.
36425         * lib/unistr/u8-strnlen.c: Likewise.
36426         * lib/unistr/u8-strpbrk.c: Likewise.
36427         * lib/unistr/u8-strrchr.c: Likewise.
36428         * lib/unistr/u8-strspn.c: Likewise.
36429         * lib/unistr/u8-strstr.c: Likewise.
36430         * lib/unistr/u8-strtok.c: Likewise.
36431         * lib/unistr/u8-to-u16.c: Likewise.
36432         * lib/unistr/u8-to-u32.c: Likewise.
36433         * lib/unistr/u8-uctomb-aux.c: Likewise.
36434         * lib/unistr/u8-uctomb.c: Likewise.
36435         * lib/unitypes.h: Likewise.
36436         * lib/uniwidth.h: Likewise.
36437         * lib/uniwidth/cjk.h: Likewise.
36438         * lib/uniwidth/u16-strwidth.c: Likewise.
36439         * lib/uniwidth/u16-width.c: Likewise.
36440         * lib/uniwidth/u32-strwidth.c: Likewise.
36441         * lib/uniwidth/u32-width.c: Likewise.
36442         * lib/uniwidth/u8-strwidth.c: Likewise.
36443         * lib/uniwidth/u8-width.c: Likewise.
36444         * lib/uniwidth/width.c: Likewise.
36445
36446 2007-10-07  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36449         The file is still under LGPL (see modules/inttypes).
36450
36451 2007-10-06  Bruno Haible  <bruno@clisp.org>
36452
36453         * modules/trunc (Dependencies): Add 'extensions'.
36454         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36455         Reported by Ben Pfaff <blp@gnu.org>.
36456
36457 2007-10-06  Bruno Haible  <bruno@clisp.org>
36458
36459         * modules/freopen-tests: New file.
36460         * tests/test-freopen.c: New file.
36461
36462         * modules/fopen-tests: New file.
36463         * tests/test-fopen.c: New file.
36464
36465         * modules/fopen: New file.
36466         * lib/fopen.c: New file.
36467         * m4/fopen.m4: New file.
36468         * modules/freopen: New file.
36469         * lib/freopen.c: New file.
36470         * m4/freopen.m4: New file.
36471         * lib/stdio.in.h (fopen, freopen): New declarations.
36472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36473         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36474         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36475         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36476         * doc/functions/fopen.texi: Mention the 'fopen' module.
36477         * doc/functions/freopen.texi: Mention the 'freopen' module.
36478
36479 2007-10-06  Bruno Haible  <bruno@clisp.org>
36480
36481         * modules/open-tests: New file.
36482         * tests/test-open.c: New file.
36483
36484         * modules/open: New file.
36485         * lib/open.c: New file.
36486         * m4/open.m4: New file.
36487         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36488         lib/open.c does.
36489         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36490         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36491         macros.
36492         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36493         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36494         REPLACE_OPEN.
36495         * doc/functions/open.texi: Mention the 'open' module.
36496
36497 2007-10-04  Bruno Haible  <bruno@clisp.org>
36498
36499         * modules/ceill-tests: New file.
36500         * tests/test-ceill.c: New file.
36501
36502         * modules/ceill: New file.
36503         * lib/ceill.c: Replace entire file.
36504         * m4/ceill.m4: New file.
36505         * lib/math.in.h (ceill): Replace declaration.
36506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36507         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36508         * doc/functions/ceill.texi: Mention the 'ceill' module.
36509         * modules/mathl (Files): Remove lib/ceill.c.
36510         (Depends-on): Add ceill.
36511
36512 2007-10-04  Bruno Haible  <bruno@clisp.org>
36513
36514         * modules/ceilf-tests: New file.
36515         * tests/test-ceilf.c: New file.
36516
36517         * modules/ceilf: New file.
36518         * lib/ceil.c: New file.
36519         * lib/ceilf.c: New file.
36520         * m4/ceilf.m4: New file.
36521         * lib/math.in.h (ceilf): New declaration.
36522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36523         HAVE_DECL_CEILF.
36524         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36525         HAVE_DECL_CEILF.
36526         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36527
36528 2007-10-04  Bruno Haible  <bruno@clisp.org>
36529
36530         * modules/floorl-tests: New file.
36531         * tests/test-floorl.c: New file.
36532
36533         * modules/floorl: New file.
36534         * lib/floorl.c: Replace entire file.
36535         * m4/floorl.m4: New file.
36536         * lib/math.in.h (floorl): Replace declaration.
36537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36538         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36539         * doc/functions/floorl.texi: Mention the 'floorl' module.
36540         * modules/mathl (Files): Remove lib/floorl.c.
36541         (Depends-on): Add floorl.
36542
36543 2007-10-04  Bruno Haible  <bruno@clisp.org>
36544
36545         * modules/floorf-tests: New file.
36546         * tests/test-floorf.c: New file.
36547
36548         * modules/floorf: New file.
36549         * lib/floor.c: New file.
36550         * lib/floorf.c: New file.
36551         * m4/floorf.m4: New file.
36552         * lib/math.in.h (floorf): New declaration.
36553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36554         HAVE_DECL_FLOORF.
36555         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36556         HAVE_DECL_FLOORF.
36557         * doc/functions/floorf.texi: Mention the 'floorf' module.
36558
36559 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36560             Bruno Haible  <bruno@clisp.org>
36561
36562         Advertise for the Git server instead of the CVS server.
36563         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36564         repository instead of the CVS one.
36565         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36566         about all VCS systems generically.
36567         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36568
36569 2007-10-04  Bruno Haible  <bruno@clisp.org>
36570
36571         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36572         means.
36573         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36574
36575 2007-10-04  Bruno Haible  <bruno@clisp.org>
36576
36577         * modules/truncl-tests: New file.
36578         * tests/test-truncl.c: New file.
36579
36580         * modules/truncl: New file.
36581         * lib/truncl.c: New file.
36582         * m4/truncl.m4: New file.
36583         * lib/math.in.h (truncl): New declaration.
36584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36585         HAVE_DECL_TRUNCL.
36586         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36587         HAVE_DECL_TRUNCL.
36588         * doc/functions/truncl.texi: Mention the 'truncl' module.
36589
36590 2007-10-04  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/truncf-tests: New file.
36593         * tests/test-truncf.c: New file.
36594
36595         * modules/truncf: New file.
36596         * lib/trunc.c: Make paramerizable through USE_* macros.
36597         * lib/truncf.c: New file.
36598         * m4/truncf.m4: New file.
36599         * lib/math.in.h (truncf): New declaration.
36600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36601         HAVE_DECL_TRUNCF.
36602         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36603         HAVE_DECL_TRUNCF.
36604         * doc/functions/truncf.texi: Mention the 'truncf' module.
36605
36606 2007-10-03  Bruno Haible  <bruno@clisp.org>
36607
36608         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36609         augmentation also for tests modules.
36610         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36611         * modules/atexit-tests (Makefile.am): Likewise.
36612         * modules/binary-io-tests (Makefile.am): Likewise.
36613         * modules/c-strcase-tests (Makefile.am): Likewise.
36614         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36615         * modules/canonicalize-tests (Makefile.am): Likewise.
36616         * modules/closein-tests (Makefile.am): Likewise.
36617         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36618         * modules/freadahead-tests (Makefile.am): Likewise.
36619         * modules/fseek-tests (Makefile.am): Likewise.
36620         * modules/fseeko-tests (Makefile.am): Likewise.
36621         * modules/ftell-tests (Makefile.am): Likewise.
36622         * modules/ftello-tests (Makefile.am): Likewise.
36623         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36624         * modules/isnanl-tests (Makefile.am): Likewise.
36625         * modules/lseek-tests (Makefile.am): Likewise.
36626         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36627         * modules/mbscasestr-tests (Makefile.am): Likewise.
36628         * modules/mbschr-tests (Makefile.am): Likewise.
36629         * modules/mbscspn-tests (Makefile.am): Likewise.
36630         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36631         * modules/mbspbrk-tests (Makefile.am): Likewise.
36632         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36633         * modules/mbsrchr-tests (Makefile.am): Likewise.
36634         * modules/mbsspn-tests (Makefile.am): Likewise.
36635         * modules/mbsstr-tests (Makefile.am): Likewise.
36636         * modules/printf-posix-tests (Makefile.am): Likewise.
36637         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36638         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36639         * modules/tsearch-tests (Makefile.am): Likewise.
36640         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36641         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36642         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36643         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36644         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36645         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36646         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36647         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36648         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36649         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36650         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36651         * modules/xstrtol-tests (Makefile.am): Likewise.
36652         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36653         * modules/yesno-tests (Makefile.am): Likewise.
36654
36655 2007-10-03  Bruno Haible  <bruno@clisp.org>
36656
36657         * modules/trunc-tests: New file.
36658         * tests/test-trunc.c: New file.
36659
36660         * modules/trunc: New file.
36661         * lib/trunc.c: New file.
36662         * m4/trunc.m4: New file.
36663         * lib/math.in.h (trunc): New declaration.
36664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36665         HAVE_DECL_TRUNC.
36666         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36667         HAVE_DECL_TRUNC.
36668         * doc/functions/trunc.texi: Mention the 'trunc' module.
36669
36670 2007-10-03  Bruno Haible  <bruno@clisp.org>
36671
36672         * tests/test-fpending.c: New file, mostly copied
36673         from coreutils/lib/t-fpending.c.
36674         * modules/fpending-tests: New file.
36675
36676 2007-10-03  Bruno Haible  <bruno@clisp.org>
36677
36678         Port the stdio extensions to QNX (untested).
36679         * lib/fseterr.c (fseterr): Add support for QNX.
36680         * lib/fbufmode.c (fbufmode): Likewise.
36681         * lib/freadable.c (freadable): Likewise.
36682         * lib/fwritable.c (fwritable): Likewise.
36683         * lib/freading.c (freading): Likewise.
36684         * lib/fwriting.c (fwriting): Likewise.
36685         * lib/freadahead.c (freadahed): Likewise.
36686         * lib/fpurge.c (fpurge): Likewise.
36687         * lib/fseeko.c (rpl_fseeko): Likewise.
36688
36689 2007-10-03  Bruno Haible  <bruno@clisp.org>
36690             Jim Meyering  <jim@meyering.net>
36691             Eric Blake  <ebb9@byu.net>
36692
36693         * doc/relocatable.texi: Use @command instead of @program.
36694
36695 2007-10-02  Jim Meyering  <jim@meyering.net>
36696
36697         Perform one more "_.h" -> ".in.h" substitution.
36698         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36699         instead of unistd_.h here, too.
36700
36701 2007-10-01  Bruno Haible  <bruno@clisp.org>
36702
36703         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36704         Needed for the alloca-opt module.
36705
36706 2007-09-30  Bruno Haible  <bruno@clisp.org>
36707
36708         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36709         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36710         alloca_.h.
36711         * lib/argz.in.h: Renamed from lib/argz_.h.
36712         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36713         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36714         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36715         byteswap_.h.
36716         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36717         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36718         dirent_.h.
36719         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36720         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36721         fcntl_.h.
36722         * lib/float.in.h: Renamed from lib/float_.h.
36723         * modules/float (Files, Makefile.am): Use float.in.h instead of
36724         float_.h.
36725         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36726         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36727         fnmatch_.h.
36728         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36729         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36730         getopt_.h.
36731         * lib/glob.in.h: Renamed from lib/glob_.h.
36732         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36733         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36734         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36735         iconv_.h.
36736         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36737         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36738         inttypes_.h.
36739         * lib/locale.in.h: Renamed from lib/locale_.h.
36740         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36741         locale_.h.
36742         * lib/math.in.h: Renamed from lib/math_.h.
36743         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36744         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36745         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36746         of netinet_in_.h. Add dependency.
36747         * lib/poll.in.h: Renamed from lib/poll_.h.
36748         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36749         * lib/search.in.h: Renamed from lib/search_.h.
36750         * modules/search (Files, Makefile.am): Use search.in.h instead of
36751         search_.h.
36752         * lib/signal.in.h: Renamed from lib/signal_.h.
36753         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36754         _signal.h.
36755         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36756         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36757         stdbool_.h.
36758         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36759         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36760         stdint_.h.
36761         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36762         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36763         stdio_.h.
36764         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36765         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36766         stdlib_.h.
36767         * lib/string.in.h: Renamed from lib/string_.h.
36768         * modules/string (Files, Makefile.am): Use string.in.h instead of
36769         string_.h.
36770         * doc/gnulib-tool.texi (Initial import): Update.
36771         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36772         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36773         of sys_select_.h. Add dependency.
36774         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36775         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36776         of sys_socket_.h.
36777         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36778         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36779         sys_stat_.h.
36780         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36781         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36782         sys_time_.h.
36783         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36784         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36785         sysexits_.h.
36786         * lib/time.in.h: Renamed from lib/time_.h.
36787         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36788         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36789         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36790         unistd_.h.
36791         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36792         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36793         wchar_.h.
36794         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36795         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36796         wctype_.h.
36797         * build-aux/bootstrap (slurp): Update.
36798         * lib/.cppi-disable: Update.
36799
36800 2007-09-30  Bruno Haible  <bruno@clisp.org>
36801
36802         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36803         Needed on BeOS.
36804
36805 2007-09-30  Bruno Haible  <bruno@clisp.org>
36806
36807         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36808
36809 2007-09-29  Bruno Haible  <bruno@clisp.org>
36810
36811         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36812
36813 2007-09-29  Bruno Haible  <bruno@clisp.org>
36814
36815         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36816         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36817         * build-aux/install-reloc: Compile also areadlink.c.
36818         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36819
36820 2007-09-29  Bruno Haible  <bruno@clisp.org>
36821
36822         * gnulib-tool (func_emit_initmacro_done): Indentation.
36823
36824 2007-09-29  Bruno Haible  <bruno@clisp.org>
36825
36826         * README: Add CVS checkout update instructions.
36827         Info from Bob Proulx <bob@proulx.com>.
36828
36829 2007-09-28  Eric Blake  <ebb9@byu.net>
36830
36831         Provide move-if-change.
36832         * build-aux/move-if-change: New file, based on best practice
36833         rather than any canonical upstream location.
36834
36835 2007-09-28  Jim Meyering  <jim@meyering.net>
36836
36837         Fix canonicalize loop-detection corner case.
36838         Do not attempt to stat the symlink values stored via seen_triple.
36839         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36840         on linux-2.6.18, (but not 2.6.22).
36841         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36842         triple_compare.  The former compares dev,ino,filename, while the latter
36843         would actually stat dirname(filename) when dev and ino were equal.
36844         * lib/hash-triple.c: Install <string.h>.
36845         (STREQ): Define.
36846         (triple_compare_ino_str): New function.
36847         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36848
36849 2007-09-28  Eric Blake  <ebb9@byu.net>
36850
36851         Enforce that AC_REPLACE_FUNCS files exist.
36852         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36853         override check for typos.
36854
36855         Fix test-closein on Solaris 10.
36856         * tests/test-closein.c (main): Don't assume stdin can be inherited
36857         closed on all systems.
36858         * tests/test-closein.sh: Likewise.
36859         Reported by Piotr Tarnowski.
36860
36861 2007-09-28  Jim Meyering  <jim@meyering.net>
36862
36863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36864
36865 2007-09-27  Jim Meyering  <jim@meyering.net>
36866
36867         canonicalize: Avoid a false-positive cycle failure.
36868         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36869         Sort.  Remove cycle-check.
36870         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36871         not cycle-check.h.
36872         (seen_triple): New function.
36873         (canonicalize_filename_mode): Use it instead of cycle-check.
36874         * tests/test-canonicalize.c: Add a test for this bug.
36875         * tests/test-canonicalize.sh: Set up and run the test.
36876
36877         New module, file-set, from coreutils.
36878         * modules/file-set: Define it.
36879         * lib/file-set.c, lib/file-set.h: Implement.
36880
36881         New module, hash-triple, from coreutils.
36882         * modules/hash-triple: Define it.
36883         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36884
36885 2007-09-25  Eric Blake  <ebb9@byu.net>
36886
36887         Fix strerror on Interix.
36888         * lib/string_.h (strerror): Declare replacement.
36889         * doc/functions/strerror.texi (strerror): Document the Interix
36890         shortcoming.
36891         * modules/string (Makefile.am): Support new hooks.
36892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36893         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36894         gl_FUNC_STRERROR_SEPARATE.
36895         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36896         * lib/strerror.c (rpl_strerror): Provide replacement.
36897         * modules/strerror (Depends-on): Add string.
36898         (configure.ac): Detect use of module.
36899         * tests/test-strerror.c: New file.
36900         * modules/strerror-tests: New test module.
36901         * modules/argp (Depends-on): Add strerror.
36902         * modules/error (Depends-on): Likewise.
36903         Reported by Martin Koeppe.
36904
36905 2007-09-24  Bruno Haible  <bruno@clisp.org>
36906
36907         * README: Update git instructions.
36908
36909 2007-09-24  Eric Blake  <ebb9@byu.net>
36910
36911         Revert fpending breakage from 2007-09-08.
36912         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36913         __fpending.c.
36914
36915 2007-09-24  Jim Meyering  <jim@meyering.net>
36916
36917         filenamecat.c: Add a test.
36918         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36919         showing how the function works when DIR is the empty string.
36920
36921 2007-09-21  Simon Josefsson  <simon@josefsson.org>
36922
36923         * tests/test-canonicalize.sh: Turn on executable bit.
36924
36925 2007-09-19  Eric Blake  <ebb9@byu.net>
36926
36927         * README: Update CVS instructions.
36928
36929 2007-09-18  Bruno Haible  <bruno@clisp.org>
36930
36931         * modules/areadlink: New file.
36932         * lib/areadlink.h (areadlink): New declaration.
36933         * lib/areadlink.c: New file, based on lib/xreadlink.c.
36934
36935 2007-09-17  Jim Meyering  <jim@meyering.net>
36936
36937         * lib/savewd.c (ESTALE) [!defined]: Define.
36938         Reported to be required on Interix by Martin Koeppe.
36939
36940 2007-09-17  Bruno Haible  <bruno@clisp.org>
36941
36942         * gnulib-tool (func_version): Use $version.
36943
36944 2007-09-16  Bruno Haible  <bruno@clisp.org>
36945
36946         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
36947         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
36948         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
36949         Reported by Greg Schafer <gschafer@zip.com.au>.
36950
36951 2007-09-15  Bruno Haible  <bruno@clisp.org>
36952
36953         * gnulib-tool (sed): Try a little harder to make bash understand the
36954         alias.
36955         Reported by Bruce Korb <bruce.korb@gmail.com>.
36956
36957 2007-09-13  Eric Blake  <ebb9@byu.net>
36958
36959         * ChangeLog: Remove conflict markers.
36960
36961 2007-09-13  Simon Josefsson  <simon@josefsson.org>
36962
36963         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
36964         Reported by Bruno Haible <bruno@clisp.org>.
36965
36966 2007-09-12  Bruno Haible  <bruno@clisp.org>
36967
36968         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
36969         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
36970         is not defined.
36971
36972 2007-09-12  Eric Blake  <ebb9@byu.net>
36973
36974         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
36975         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
36976         Autoconf definition.
36977         * modules/euidaccess (Depends-on): Add extensions, for
36978         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
36979         * modules/fnmatch (Depends-on): Likewise.
36980         * modules/getaddrinfo (Depends-on): Likewise.
36981         * modules/getdelim (Depends-on): Likewise.
36982         * modules/getline (Depends-on): Likewise.
36983         * modules/getsubopt (Depends-on): Likewise.
36984         * modules/gettext (Depends-on): Likewise.
36985         * modules/group-member (Depends-on): Likewise.
36986         * modules/mbchar (Depends-on): Likewise.
36987         * modules/memmem (Depends-on): Likewise.
36988         * modules/mempcpy (Depends-on): Likewise.
36989         * modules/memrchr (Depends-on): Likewise.
36990         * modules/pagealign_alloc (Depends-on): Likewise.
36991         * modules/readutmp (Depends-on): Likewise.
36992         * modules/stpcpy (Depends-on): Likewise.
36993         * modules/stpncpy (Depends-on): Likewise.
36994         * modules/strchrnul (Depends-on): Likewise.
36995         * modules/strndup (Depends-on): Likewise.
36996         * modules/strsep (Depends-on): Likewise.
36997         * modules/strverscmp (Depends-on): Likewise.
36998         * modules/vasprintf (Depends-on): Likewise.
36999         * modules/wcwidth (Depends-on): Likewise.
37000         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37001         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37002         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37003         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37004         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37005         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37006         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37007         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37008         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37009         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37010         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37011         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37012         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37013         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37014         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37015         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37016         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37017         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37019         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37020         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37021         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37022         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37023         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37024         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37026         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37027         so that lock.m4 can be used in gettext without extensions module.
37028
37029 2007-09-11  Bruno Haible  <bruno@clisp.org>
37030
37031         * m4/isc-posix.m4: Remove file.
37032         Suggested by Eric Blake.
37033
37034 2007-09-11  Eric Blake  <ebb9@byu.net>
37035
37036         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37037
37038 2007-09-10  Bruno Haible  <bruno@clisp.org>
37039
37040         * posix-modules: Fix typo in error message.
37041         Reported by Matt <mkraai@beckman.com>.
37042
37043 2007-09-09  Bruno Haible  <bruno@clisp.org>
37044
37045         * doc/functions/getdelim.texi: Update list of platforms lacking the
37046         function.
37047         * doc/functions/getline.texi: Likewise.
37048
37049 2007-09-09  Jim Meyering  <jim@meyering.net>
37050
37051         * lib/hash.c (hash_initialize): Detect calloc failure.
37052         Reported by Bruno Haible.
37053
37054 2007-09-09  Bruno Haible  <bruno@clisp.org>
37055
37056         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37057         malloc or realloc fails.
37058
37059 2007-09-09  Bruno Haible  <bruno@clisp.org>
37060
37061         * modules/getcwd (Depends-on): Add malloc-posix.
37062         * modules/glob (Depends-on): Likewise.
37063         * modules/putenv (Depends-on): Likewise.
37064         * modules/strdup (Depends-on): Likewise.
37065         * modules/getdelim (Depends-on): Add realloc-posix.
37066         * modules/read-file (Depends-on): Likewise.
37067
37068 2007-09-09  Bruno Haible  <bruno@clisp.org>
37069
37070         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37071         (gl_FUNC_MALLOC_POSIX): Require it.
37072         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37073         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37074         * modules/realloc (Files): Add m4/malloc.m4.
37075         * modules/calloc (Files): Likewise.
37076
37077 2007-09-09  Bruno Haible  <bruno@clisp.org>
37078
37079         * modules/malloc-posix: New file.
37080         * modules/malloc (Depends-on): Add malloc-posix.
37081         * lib/malloc.c: Include errno.h.
37082         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37083         and a POSIX-compatible malloc into a single function. Set ENOMEM
37084         when returning NULL.
37085         * m4/malloc.m4: New file.
37086         * doc/functions/malloc.texi: Mention the malloc-posix module.
37087         * lib/stdlib_.h (malloc): New declaration.
37088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37089         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37090         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37091         and HAVE_MALLOC_POSIX.
37092
37093 2007-09-09  Bruno Haible  <bruno@clisp.org>
37094
37095         * modules/realloc-posix: New file.
37096         * modules/realloc (Depends-on): Add realloc-posix.
37097         * lib/realloc.c: Include errno.h.
37098         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37099         and a POSIX-compatible realloc into a single function. Set ENOMEM
37100         when returning NULL.
37101         * m4/realloc.m4: New file.
37102         * doc/functions/realloc.texi: Mention the realloc-posix module.
37103         * lib/stdlib_.h (realloc): New declaration.
37104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37105         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37106         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37107         and HAVE_REALLOC_POSIX.
37108
37109 2007-09-09  Bruno Haible  <bruno@clisp.org>
37110
37111         * modules/calloc-posix: New file.
37112         * modules/calloc (Depends-on): Add calloc-posix.
37113         * lib/calloc.c: Include errno.h.
37114         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37115         and a POSIX-compatible calloc into a single function. Set ENOMEM
37116         when returning NULL.
37117         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37118         * doc/functions/calloc.texi: Mention the calloc-posix module.
37119         * lib/stdlib_.h (calloc): New declaration.
37120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37121         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37122         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37123         and HAVE_CALLOC_POSIX.
37124
37125 2007-09-09  Bruno Haible  <bruno@clisp.org>
37126
37127         Allow for modules to show an arbitrary notice.
37128         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37129         * gnulib-tool: New option --extract-notice.
37130         (func_usage): Document it.
37131         (sed_extract_prog): Update.
37132         (func_get_notice): New function.
37133         (func_modules_notice): New function.
37134         (func_import, func_create_testdir): Invoke it.
37135         Suggested by Jim Meyering.
37136
37137 2007-09-09  Bruno Haible  <bruno@clisp.org>
37138
37139         * gnulib-tool: New options --verbose, --quiet.
37140         (func_usage): Document them.
37141         (verbose): New variable.
37142         (func_execute_command): New function.
37143         (func_import): Don't show the module list and the file list if
37144         $verbose < 0.
37145         (func_create_testdir): Likewise. Use func_execute_command.
37146         (func_create_megatestdir): Use func_execute_command.
37147
37148 2007-09-08  Bruno Haible  <bruno@clisp.org>
37149
37150         * gnulib-tool (func_import): Prefer rsync over wget when available,
37151         for fetching the PO files.
37152
37153 2007-09-08  Bruno Haible  <bruno@clisp.org>
37154
37155         * posix-modules: New file. Portions copied from gnulib-tool.
37156         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37157
37158 2007-09-08  Jim Meyering  <jim@meyering.net>
37159
37160         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37161         * lib/fpending.h: Rename from __fpending.h.
37162         * lib/fpending.c: Rename from __fpending.c.
37163         Include "fpending.h", not "__fpending.h".
37164         * lib/__fpending.h, lib/__fpending.c: Remove files.
37165         * modules/fpending (Files): Reflect new file names.
37166         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37167
37168 2007-09-08  Bruno Haible  <bruno@clisp.org>
37169
37170         * m4/inttypes-h.m4: Remove stub file.
37171
37172 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37173
37174         * doc/headers/stdint.texi: Discuss #include_next issue.
37175
37176 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37177
37178         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37179
37180 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37181
37182         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37183         in variable name.
37184
37185 2007-09-03  Jim Meyering  <jim@meyering.net>
37186
37187         New module: git-version-gen.
37188         * modules/git-version-gen: New file.
37189
37190         Import changes from coreutils for bootstrap script.
37191
37192         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37193
37194         bootstrap: uses rsync to download the .po files
37195         * build-aux/bootstrap (po_download_command_format): New global.
37196         (download_po_files): Use rsync.
37197         (update_po_files): Don't remove .po files after download,
37198         so future rsync runs can take advantage of the copies.
37199
37200         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37201
37202         Solve the unnecessary-.po-file-regeneration problem once and for all.
37203         * build-aux/bootstrap (download_po_files): New function, renamed from
37204         get_translations.  Now, downloads, but doesn't update LINGUAS.
37205         (update_po_files): New function.
37206
37207         bootstrap: Ignore more.
37208         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37209         uniwidth to e.g., lib/.gitignore.
37210         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37211
37212         * build-aux/bootstrap: New setting: vc_ignore.
37213         (insert_sorted_if_absent): Create $file if absent.
37214         Adapt to new, possibly empty, list: $vc_ignore.
37215
37216         bootstrap: generate more ignorable names
37217         * build-aux/bootstrap (slurp): When generating ignorable names,
37218         also map .sin to .sed, .gperf to .c, and .y to .c.
37219
37220 2007-09-03  Jim Meyering  <jim@meyering.net>
37221
37222         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37223         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37224
37225 2007-09-02  Bruno Haible  <bruno@clisp.org>
37226
37227         Fix mis-recognition of 'mcs' on QNX 6.
37228         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37229         output contains the string "Mono".
37230         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37231         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37232
37233 2007-09-01  Bruno Haible  <bruno@clisp.org>
37234
37235         Fix collision between uniwidth/* and linebreak modules.
37236         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37237         u32_width): Remove declarations.
37238         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37239         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37240         streq3, streq2, streq1, streq0): Remove functions.
37241         (STREQ): Remove macro.
37242         (is_cjk_encoding): Remove function.
37243         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37244         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37245         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37246         * NEWS: Document the change.
37247
37248 2007-09-01  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/streq.h: Add double-inclusion guard.
37251
37252 2007-09-01  Karl Berry  <karl@gnu.org>
37253
37254         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37255
37256 2007-08-28  Jim Meyering  <jim@meyering.net>
37257
37258         Rename mreadlink_with_size to areadlink_with_size.
37259         * NEWS: Document the change.
37260         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37261         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37262         * lib/mreadlink.h: Rename this to...
37263         * lib/areadlink.h: ...this.
37264         * modules/mreadlink-with-size: Rename this to...
37265         * modules/areadlink-with-size: ...this.
37266         * lib/canonicalize.c: Reflect the renaming.
37267         * modules/canonicalize: Likewise.
37268
37269 2007-08-26  Bruno Haible  <bruno@clisp.org>
37270
37271         * gnulib-tool (func_import): When deciding which files to remove,
37272         consider also dangling symbolic links.
37273         Reported by Eric Blake.
37274
37275 2007-08-26  Bruno Haible  <bruno@clisp.org>
37276
37277         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37278
37279 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37280
37281         * lib/readline.c: Don't include getline.h, the prototype is now
37282         found in stdio.h.
37283
37284 2007-08-23  Jim Meyering  <jim@meyering.net>
37285
37286         Getdelim touchup.
37287         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37288         around the funlockfile call, since funlockfile never sets errno.
37289         Don't set errno upon failed realloc.
37290
37291 2007-08-22  Eric Blake  <ebb9@byu.net>
37292
37293         Getline touchups.
37294         * lib/getdelim.c (getdelim): Revert regression that required *n to
37295         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37296         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37297         getdelim, rather than whether implementation is missing.
37298         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37299         * lib/stdio_.h (getline): Also declare if replacement is
37300         required.
37301         * doc/functions/getdelim.texi: New file.
37302         * doc/functions/getline.texi: Likewise.
37303         * doc/gnulib.texi (Function Substitutes): Add new files.
37304         Reported by Bruno Haible.
37305
37306 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37307
37308         * users.txt: Add Guile.
37309
37310 2007-08-22  Eric Blake  <ebb9@byu.net>
37311
37312         * tests/test-getdelim.c (main): Use remove, not unlink.
37313         * tests/test-getline.c (main): Likewise.
37314
37315         Move getline and getdelim into stdio.h, per POSIX 200x.
37316         * modules/getline (Files): Remove getline.h.
37317         (Depends-on): Add stdio.
37318         (configure.ac): Add module indicator.
37319         * modules/getdelim (Files): Remove getdelim.h.
37320         (Depends-on): Add stdio.
37321         (configure.ac): Add module indicator.
37322         * modules/stdio (Makefile.am): Work with new indicators.
37323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37324         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37326         * lib/getdelim.h: Delete.
37327         * lib/getline.h: Delete.
37328         * lib/stdio_.h (getdelim, getline): Declare.
37329         * modules/getdelim-tests: New module.
37330         * modules/getline-tests: Likewise.
37331         * tests/test-getdelim.c: New file.
37332         * tests/test-getline.c: Likewise.
37333         * NEWS: Document the change.
37334         * lib/getline.c: Update choice of header.
37335         * lib/csharpcomp.c: Likewise.
37336         * lib/getpass.c: Likewise.
37337         * lib/javacomp.c: Likewise.
37338         * lib/javaversion.c: Likewise.
37339         * lib/yesno.c: Likewise.
37340         * lib/getdelim.c: Likewise.
37341         (getdelim): Set errno on failure, and avoid memory leak.
37342
37343 2007-08-19  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/closein (Depends-on): Add freadahead.
37346         * lib/closein.c: Include freadahead.h.
37347         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37348         is zero.
37349
37350 2007-08-19  Bruno Haible  <bruno@clisp.org>
37351
37352         * modules/freadahead-tests: New file.
37353         * tests/test-freadahead.sh: New file.
37354         * tests/test-freadahead.c: New file.
37355
37356         * modules/freadahead: New file.
37357         * lib/freadahead.h: New file.
37358         * lib/freadahead.c: New file.
37359         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37360         fbufmode, fpurge, freadable, fwritable.
37361
37362 2007-08-19  Eric Blake  <ebb9@byu.net>
37363
37364         Test yesno in combination with closein.
37365         * lib/yesno.c (yesno): Document use of stdin.
37366         * modules/yesno-tests (Files): New module.
37367         * tests/test-yesno.c (main): New file.
37368         * tests/test-yesno.sh: Likewise.
37369
37370 2007-08-19  Bruno Haible  <bruno@clisp.org>
37371
37372         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37373         * lib/fseeko.c (rpl_fseeko): Likewise.
37374         * lib/fseterr.c (fseterr): Likewise.
37375
37376 2007-08-19  Bruno Haible  <bruno@clisp.org>
37377
37378         * tests/test-lseek.c (main): Disable a test for BeOS.
37379         * doc/functions/lseek.texi: Document the BeOS bug.
37380
37381 2007-08-19  Bruno Haible  <bruno@clisp.org>
37382             Eric Blake  <ebb9@byu.net>
37383
37384         * lib/lseek.c: Include <sys/stat.h>.
37385         (rpl_lseek): Add workaround code also for Unix platforms.
37386         Needed for BeOS.
37387         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37388         * doc/functions/lseek.texi: Document BeOS definiency.
37389
37390 2007-08-18  Bruno Haible  <bruno@clisp.org>
37391
37392         * modules/fstrcmp-tests: New file.
37393         * tests/test-fstrcmp.c: New file.
37394
37395 2007-08-18  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/fstrcmp: New file, from GNU gettext with modifications.
37398         * lib/fstrcmp.h: New file, from GNU gettext.
37399         * lib/fstrcmp.c: New file, from GNU gettext.
37400         * MODULES.html.sh (String handling): Add fstrcmp.
37401
37402 2007-08-18  Bruno Haible  <bruno@clisp.org>
37403
37404         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37405         'bool'.
37406         (diag, compareseq): Remove const from the ctxt argument.
37407         (USE_HEURISTIC): Undefine at the end.
37408
37409 2007-08-18  Jim Meyering  <jim@meyering.net>
37410
37411         New file: lib/idcache.h
37412         * NEWS: Mention the addition.
37413         * modules/idcache (Files): Add lib/idcache.h
37414         * lib/idcache.c: Include "idcache.h".
37415         Don't include <sys/types.h>.
37416         Add a FIXME comment.
37417         Move file-scoped "static" declarations to the top.
37418         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37419
37420 2007-08-17  Bruno Haible  <bruno@clisp.org>
37421         and Paul Eggert  <eggert@cs.ucla.edu>
37422
37423         * MODULES.html.sh: Add diffseq.
37424         * modules/diffseq: New file.
37425         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37426         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37427
37428 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37429
37430         Import changes from coreutils for bootstrap script.
37431
37432         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37433
37434         * build-aux/bootstrap (slurp): Work even in environments where
37435         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37436         current code does not slurp files whose names start with ".", and
37437         this looks like it might be a troublesome area.
37438
37439         2007-07-11  Jim Meyering  <jim@meyering.net>
37440
37441         If there's a GPL vN copyright comment, require that N == 3.
37442
37443         2007-07-08  Jim Meyering  <jim@meyering.net>
37444
37445         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37446         * build-aux/bootstrap (mam_template): Move definition out of loop.
37447
37448         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37449
37450         * build-aux/bootstrap (symlink_to_dir): Rename function from
37451         symlink_to_gnulib.  Add a directory parameter.  Update all
37452         callers.
37453         (cp_mark_as_generated): Also check for -- and link to -- files in
37454         gl/.
37455
37456         2007-07-08  Jim Meyering  <jim@meyering.net>
37457
37458         Adapt to deeper hierarchy in gnulib.
37459         * build-aux/bootstrap (symlink_to_dir): If the destination
37460         directory doesn't exist, create it. This is required at least for
37461         "lib/uniwidth/cjk.h".
37462
37463         2007-05-15  Jim Meyering  <jim@meyering.net>
37464
37465         * build-aux/bootstrap: Now that generated Makefile.am files
37466         are no longer under version control, they must be created at
37467         bootstrap time.
37468
37469 2007-08-14  Ben Pfaff  <blp@gnu.org>
37470
37471         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37472
37473 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37474
37475         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37476         given the changes below.
37477         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37478         even on hosts that have padding bits beyond the supported 64.
37479
37480 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37481
37482         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37483         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37484         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37485         depends on it.
37486         (xstrtol_error): Remove.
37487         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37488         but with a different signature.
37489         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37490         * lib/xstrtol-error.c: Include exitfail.h.
37491         (xstrtol_fatal): New function, with a different signature from the
37492         old xstrtol_error, so that the caller need not worry about passing
37493         in an exit status, or about storage management of the option argument.
37494         (xstrtol_error): Now a static function.  Redo signature to
37495         implement xstrtol_fatal.  Output the correct number of hyphens in
37496         front of the option so that the caller need not worry about
37497         storage management.
37498         (N_): New macro.
37499         (_): Remove; not used now.
37500         * modules/xstrtol: Depend on getopt.
37501         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37502         of old STRTOL_FATAL_ERROR macro.
37503         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37504         of test program.
37505         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37506         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37507
37508 2007-08-08  Eric Blake  <ebb9@byu.net>
37509
37510         * lib/xstrtol-error.c: Add missing include.
37511
37512         Move xstrtol messages into gnulib domain, when --pobase is used.
37513         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37514         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37515         * modules/xstrtol (Files): Distribute new file.
37516         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37517         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37518         * tests/test-xstrtol.c: ...into new file.
37519         * tests/test-xstrtoul.c: Also test xstrtoul.
37520         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37521         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37522         * tests/test-xstrtol.sh: Drive the tests.
37523         * tests/test-xstrtoimax.sh: Likewise.
37524         * tests/test-xstrtoumax.sh: Likewise.
37525         * modules/xstrtol-tests: New module.
37526         * modules/xstrtoimax-tests: Likewise.
37527         * modules/xstrtoumax-tests: Likewise.
37528
37529 2007-08-08  Jim Meyering  <jim@meyering.net>
37530
37531         New function: mfile_name_concat.
37532         * lib/filenamecat.c (mfile_name_concat): New function, just like
37533         file_name_concat, but return NULL upon failure rather than exiting
37534         with a diagnostic.
37535         * lib/filenamecat.h: Declare it.
37536
37537 2007-08-07  Bruno Haible  <bruno@clisp.org>
37538
37539         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37540         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37541         warning from gcc.
37542         Reported by Eric Blake.
37543
37544 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37545
37546         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37547         * modules/crypto/arcfour (License): Likewise.
37548         * modules/crypto/des-tests (License): Likewise.
37549         * modules/crypto/gc-arctwo-tests (License): Likewise.
37550         * modules/crypto/gc-des-tests (License): Likewise.
37551         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37552         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37553         * modules/crypto/gc-md2-tests (License): Likewise.
37554         * modules/crypto/gc-md4-tests (License): Likewise.
37555         * modules/crypto/gc-md5-tests (License): Likewise.
37556         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37557         * modules/crypto/gc-rijndael-tests (License): Likewise.
37558         * modules/crypto/gc-sha1-tests (License): Likewise.
37559         * modules/crypto/gc-tests (License): Likewise.
37560         * modules/crypto/hmac-md5 (License): Likewise.
37561         * modules/crypto/hmac-sha1 (License): Likewise.
37562         * modules/crypto/md2-tests (License): Likewise.
37563         * modules/crypto/md4-tests (License): Likewise.
37564         * modules/crypto/md5 (License): Likewise.
37565         * modules/crypto/rijndael (License): Likewise.
37566         * modules/crypto/sha1 (License): Likewise.
37567         * modules/memxor (License): Likewise.
37568
37569 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37570         and Bruno Haible  <bruno@clisp.org>
37571
37572         * NEWS: Describe interface changes to human, xstrtol.
37573         * lib/human.h: Include <xstrtol.h>.
37574         (human_options): Return enum strtol_error, not int.  Remove
37575         bool arg; take int * instead.
37576         * lib/human.c: Don't include "gettext.h".
37577         (_): Remove; no longer used.
37578         Don't include <xstrtol.h>, since human.h does it.
37579         (human_options): Adjust to abovementioned interface changes.
37580         Do not report error to stderr; that's now the caller's
37581         responsibility.
37582         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37583         interface change.
37584         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37585         Str, Argument_type_string.  All uses changed.  Put " argument"
37586         in diagnostics to make them clearer.  Change wording of suffix
37587         message for clarity.
37588         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37589         Argument_type_string.
37590         (STRTOL_FATAL_WARN): Remove; no longer used.
37591         * modules/human (Depends-on): Remove gettext-h.
37592
37593 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37594
37595         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37596
37597 2007-07-31  Bruno Haible  <bruno@clisp.org>
37598
37599         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37600         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37601         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37602
37603 2007-07-31  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37606         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37607
37608 2007-07-30  Bruno Haible  <bruno@clisp.org>
37609
37610         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37611         * modules/c-ctype (License): Likewise.
37612         * modules/c-strcase (License): Likewise.
37613         * modules/check-version (License): Likewise.
37614         * modules/iconv (License): Likewise.
37615         * modules/iconv_open (License): Likewise.
37616         * modules/read-file (License): Likewise.
37617         * modules/striconv (License): Likewise.
37618         * modules/strverscmp (License): Likewise.
37619         * modules/vasprintf (License): Likewise.
37620         * modules/crypto/des (License): Likewise.
37621         * modules/crypto/gc (License): Likewise.
37622         * modules/crypto/gc-arcfour (License): Likewise.
37623         * modules/crypto/gc-arctwo (License): Likewise.
37624         * modules/crypto/gc-des (License): Likewise.
37625         * modules/crypto/gc-hmac-md5 (License): Likewise.
37626         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37627         * modules/crypto/gc-md2 (License): Likewise.
37628         * modules/crypto/gc-md4 (License): Likewise.
37629         * modules/crypto/gc-md5 (License): Likewise.
37630         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37631         * modules/crypto/gc-random (License): Likewise.
37632         * modules/crypto/gc-rijndael (License): Likewise.
37633         * modules/crypto/gc-sha1 (License): Likewise.
37634         * modules/crypto/md2 (License): Likewise.
37635         * modules/crypto/md4 (License): Likewise.
37636
37637 2007-07-30  Jim Meyering  <jim@meyering.net>
37638
37639         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37640         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37641         it has valid stat data.  This bug would cause du not to count the
37642         sizes of inaccessible directories.
37643         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37644         in <http://bugzilla.redhat.com/250077>.
37645
37646 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37647             Bruno Haible  <bruno@clisp.org>
37648
37649         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37650         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37651         #include_next, gives a diagnostic about it, but reports no error in
37652         the exit code.
37653         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37654
37655 2007-07-24  Ben Pfaff  <blp@gnu.org>
37656
37657         Improve name: "count-one-bits" is better than "popcount".
37658         * MODULES.html.sh: Update name.
37659         * lib/popcount.h: Renamed lib/count-one-bits.h.
37660         (popcount): Renamed count_one_bits.
37661         (popcountl): Renamed count_one_bits_l.
37662         (popcountll): Renamed count_one_bits_ll.
37663         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37664         * modules/popcount: Renamed module/count-one-bits.
37665         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37666         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37667
37668 2007-07-23  Ben Pfaff  <blp@gnu.org>
37669
37670         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37671         better code generation, and add U to large constants to avoid
37672         warnings, in non-GCC case.
37673         Suggested by Bruno Haible.
37674
37675 2007-07-23  Ben Pfaff  <blp@gnu.org>
37676
37677         * lib/popcount.h: Use verify_true instead of if...abort.
37678         * modules/popcount: Depend on verify module.
37679         Suggested by Jim Meyering.
37680
37681 2007-07-23  Bruno Haible  <bruno@clisp.org>
37682
37683         * gnulib-tool (func_import): Create a .cvsignore file also when the
37684         directory is not yet in CVS but the toplevel directory is. When
37685         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37686         Reported by Karl Berry.
37687
37688 2007-07-22  Ben Pfaff  <blp@gnu.org>
37689
37690         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37691         case.
37692         Suggested by Eric Blake.
37693
37694 2007-07-22  Ben Pfaff  <blp@gnu.org>
37695
37696         New module: popcount.
37697         * MODULES.html.sh: Add popcount.
37698         * modules/popcount: New file.
37699         * modules/popcount-tests: New file.
37700         * tests/test-popcount.c: New file.
37701         * lib/popcount.h: New file.
37702         * m4/popcount.m4: New file.
37703
37704 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37705
37706         * build-aux/announce-gen: Update to GPLv3.
37707
37708         * build-aux/config.guess: Update from config.
37709
37710 2007-07-21  Bruno Haible  <bruno@clisp.org>
37711
37712         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37713         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37714
37715 2007-07-20  Jim Meyering  <jim@meyering.net>
37716
37717         * check-module: Diagnose a self-dependency.
37718
37719 2007-07-19  Bruno Haible  <bruno@clisp.org>
37720
37721         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37722         empty.
37723         Reported by Eric Blake.
37724
37725 2007-07-18  Bruno Haible  <bruno@clisp.org>
37726
37727         * gnulib-tool: New options --po-base, --po-domain.
37728         (func_usage): Document them.
37729         (pobase, po_domain): New variables.
37730         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37731         DEFAULT_TEXT_DOMAIN.
37732         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37733         (func_import): Consider pobase and po_domain. Create a po/ directory.
37734         (func_create_testdir): Set pobase and po_domain to empty.
37735         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37736         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37737
37738 2007-07-18  Bruno Haible  <bruno@clisp.org>
37739
37740         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37741         EXTRA_DIST augmentation for files in build-aux/.
37742
37743 2007-07-16  Bruno Haible  <bruno@clisp.org>
37744
37745         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37746         * modules/getdelim (License): Likewise.
37747
37748 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37749
37750         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37751         * modules/d-type (License): Likewise.
37752         * modules/extensions (License): Likewise.
37753         * modules/fnmatch (License): Likewise.
37754         * modules/fseeko (License): Likewise.
37755         * modules/getaddrinfo (License): Likewise.
37756         * modules/getline (License): Likewise.
37757         * modules/getlogin_r (License): Likewise.
37758         * modules/getpass (License): Likewise.
37759         * modules/gettimeofday (License): Likewise.
37760         * modules/glob (License): Likewise.
37761         * modules/inet_ntop (License): Likewise.
37762         * modules/malloc (License): Likewise.
37763         * modules/malloca (License): Likewise.
37764         * modules/memmem (License): Likewise.
37765         * modules/mempcpy (License): Likewise.
37766         * modules/memset (License): Likewise.
37767         * modules/minmax (License): Likewise.
37768         * modules/mktime (License): Likewise.
37769         * modules/netinet_in (License): Likewise.
37770         * modules/pathmax (License): Likewise.
37771         * modules/poll (License): Likewise.
37772         * modules/regex (License): Likewise.
37773         * modules/snprintf (License): Likewise.
37774         * modules/stdbool (License): Likewise.
37775         * modules/stdint (License): Likewise.
37776         * modules/stdio (License): Likewise.
37777         * modules/strcase (License): Likewise.
37778         * modules/strcasestr (License): Likewise.
37779         * modules/strdup (License): Likewise.
37780         * modules/string (License): Likewise.
37781         * modules/strndup (License): Likewise.
37782         * modules/strnlen (License): Likewise.
37783         * modules/strpbrk (License): Likewise.
37784         * modules/strptime (License): Likewise.
37785         * modules/strsep (License): Likewise.
37786         * modules/sys_select (License): Likewise.
37787         * modules/sys_socket (License): Likewise.
37788         * modules/sys_stat (License): Likewise.
37789         * modules/sys_time (License): Likewise.
37790         * modules/time (License): Likewise.
37791         * modules/time_r (License): Likewise.
37792         * modules/timegm (License): Likewise.
37793         * modules/unistd (License): Likewise.
37794         * modules/vsnprintf (License): Likewise.
37795         * modules/wctype (License): Likewise.
37796
37797 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37798
37799         * modules/argz (License): LGPLv2+.
37800
37801 2007-07-15  Karl Berry  <karl@gnu.org>
37802
37803         * doc/gnulib.texi: revise node structure per new fdl.texi.
37804
37805 2007-07-14  Bruno Haible  <bruno@clisp.org>
37806
37807         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37808         the output file.
37809         * lib/uniname/uninames.h: Regenerated.
37810
37811 2007-07-14  Karl Berry  <karl@gnu.org>
37812
37813         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37814         omitting sectioning and index commands.
37815
37816 2007-07-13  Bruno Haible  <bruno@clisp.org>
37817
37818         New gnulib-tool option --more-symlinks.
37819         * gnulib-tool (func_usage): Document --more-symlinks.
37820         (do_copyrights): New variable.
37821         Recognize option --more-symlinks.
37822         (func_import): Don't add a copyright notice transform to
37823         sed_transform_lib_file if do_copyrights is empty.
37824
37825 2007-07-13  Bruno Haible  <bruno@clisp.org>
37826
37827         * lib/vasnprintf.c (decimal_point_char): Define also if
37828         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37829         && !NEED_PRINTF_DIRECTIVE_A.
37830         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37831         Gary V. Vaughan <gary@gnu.org>.
37832
37833 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37834
37835         * lib/inttypes_.h: Undo previous change, since it was fixed
37836         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37837
37838 2007-07-13  Bruno Haible  <bruno@clisp.org>
37839
37840         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37841         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37842
37843 2007-07-13  Jim Meyering  <jim@meyering.net>
37844
37845         df: Don't fail for Tru64's "file-on-file mount".
37846         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37847         so we fall through and use statfs instead.  Details here:
37848         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37849         Reported by Albert Chin.
37850
37851 2007-07-13  Bruno Haible  <bruno@clisp.org>
37852
37853         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37854         * modules/configmake (License): Likewise.
37855         * modules/gettext (License): Likewise.
37856         * modules/gettext-h (License): Likewise.
37857         * modules/include_next (License): Likewise.
37858         * modules/link-warning (License): Likewise.
37859         * modules/localcharset (License): Likewise.
37860         * modules/localename (License): Likewise.
37861         * modules/lock (License): Likewise.
37862         * modules/relocatable-lib-lgpl (License): Likewise.
37863         * modules/size_max (License): Likewise.
37864         * modules/vasnprintf (License): Likewise.
37865         * modules/wchar (License): Likewise.
37866         * modules/xsize (License): Likewise.
37867
37868 2007-07-13  Bruno Haible  <bruno@clisp.org>
37869
37870         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37871         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37872
37873 2007-07-12  Bruno Haible  <bruno@clisp.org>
37874
37875         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37876         in the modules files.
37877
37878 2007-07-11  Karl Berry  <karl@gnu.org>
37879
37880         * MODULES.html.sh (func_module): use
37881          sed -e '\|^'"${includefile}"'$|d'
37882          instead of /.../d, to avoid errors on $includefile's containing /.
37883
37884 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37885
37886         * gnulib-tool (func_import): Avoid duplication of --avoid
37887         statements
37888         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37889         names to `_' in variable names.
37890
37891 2007-07-10  Eric Blake  <ebb9@byu.net>
37892
37893         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37894         * NEWS: Document this change.
37895
37896 2007-07-08  Bruno Haible  <bruno@clisp.org>
37897
37898         Update to Unicode 5.0.
37899         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37900         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37901         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37902         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37903         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37904         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37905         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37906         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37907         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37908         U+10A3F, U+1D242..U+1D244.
37909         (nonspacing_table_ind): Update.
37910         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37911         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37912
37913 2007-07-08  Bruno Haible  <bruno@clisp.org>
37914
37915         Update to Unicode 5.0.
37916         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37917         code transform. Extend the name index field of unicode_name_to_code and
37918         unicode_code_to_name from 16 to 24 bits.
37919         * lib/uniname/uniname.c (unicode_character_name,
37920         unicode_name_character): Add the range 0x12xxx to the code transform.
37921         * lib/uniname/uninames.h: Regenerated.
37922         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
37923
37924 2007-07-07  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/wcwidth-tests: New file.
37927         * tests/test-wcwidth.c: New file.
37928
37929         Work around MacOS X wcwidth() bug.
37930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
37931         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
37932         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
37933         original wcwidth in non-UTF-8 locales.
37934         * modules/wcwidth (Depends-on): Add localcharset, streq,
37935         uniwidth/width.
37936         * doc/functions/wcwidth.texi: Update.
37937
37938 2007-07-07  Bruno Haible  <bruno@clisp.org>
37939
37940         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
37941         (wcwidth): New declaration.
37942         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
37943         macros.
37944         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
37945         here. Prepare for creating <wchar.h> unconditionally.
37946         * modules/wchar (Depends-on): Add link-warning.
37947         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
37948         REPLACE_WCWIDTH, and GL_LINK_WARNING.
37949         * lib/wcwidth.h: Remove file.
37950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
37951         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
37952         * modules/wcwidth (Files): Remove lib/wcwidth.h.
37953         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
37954         (Include): Replace wcwidth.h with <wchar.h>.
37955         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
37956         * lib/mbchar.h: Don't include wcwidth.h.
37957         * lib/mbswidth.c: Likewise.
37958         * NEWS: Mention the change.
37959
37960 2007-07-07  Bruno Haible  <bruno@clisp.org>
37961
37962         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
37963         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
37964         definition with an external declaration.
37965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
37966         defined as a function. Remove AC_C_INLINE requirement.
37967         * modules/wcwidth (Files): Add lib/wcwidth.c.
37968         (Makefile.am): Remove redundant statement.
37969
37970 2007-07-07  Bruno Haible  <bruno@clisp.org>
37971
37972         * MODULES.html.sh (Unicode string functions): Add the new modules.
37973
37974         * tests/uniwidth/test-u32-strwidth.c: New file.
37975         * modules/uniwidth/u32-strwidth-tests: New file.
37976
37977         * lib/uniwidth/u32-strwidth.c: New file.
37978         * modules/uniwidth/u32-strwidth: New file.
37979
37980         * tests/uniwidth/test-u16-strwidth.c: New file.
37981         * modules/uniwidth/u16-strwidth-tests: New file.
37982
37983         * lib/uniwidth/u16-strwidth.c: New file.
37984         * modules/uniwidth/u16-strwidth: New file.
37985
37986         * tests/uniwidth/test-u8-strwidth.c: New file.
37987         * modules/uniwidth/u8-strwidth-tests: New file.
37988
37989         * lib/uniwidth/u8-strwidth.c: New file.
37990         * modules/uniwidth/u8-strwidth: New file.
37991
37992         * tests/uniwidth/test-u32-width.c: New file.
37993         * modules/uniwidth/u32-width-tests: New file.
37994
37995         * lib/uniwidth/u32-width.c: New file.
37996         * modules/uniwidth/u32-width: New file.
37997
37998         * tests/uniwidth/test-u16-width.c: New file.
37999         * modules/uniwidth/u16-width-tests: New file.
38000
38001         * lib/uniwidth/u16-width.c: New file.
38002         * modules/uniwidth/u16-width: New file.
38003
38004         * tests/uniwidth/test-u8-width.c: New file.
38005         * modules/uniwidth/u8-width-tests: New file.
38006
38007         * lib/uniwidth/u8-width.c: New file.
38008         * modules/uniwidth/u8-width: New file.
38009
38010         * tests/uniwidth/test-uc_width.c: New file.
38011         * modules/uniwidth/width-tests: New file.
38012
38013         * lib/uniwidth/width.c: New file, from GNU libiconv.
38014         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38015         * modules/uniwidth/width: New file.
38016
38017         * lib/uniwidth.h: New file, from GNU libiconv.
38018         * modules/uniwidth/base: New file.
38019
38020 2007-07-07  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/uniname.h: New file, from GNU gettext.
38023         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38024         * lib/uniname/uninames.h: New file, from GNU gettext.
38025         * lib/uniname/uniname.c: New file, from GNU gettext.
38026         * tests/uniname/test-uninames.sh: New file.
38027         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38028         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38029         * modules/uniname/base: New file.
38030         * modules/uniname/uniname: New file.
38031         * modules/uniname/uniname-tests: New file.
38032         * MODULES.html.sh (Unicode string functions): Add the new modules.
38033
38034 2007-07-06  Bruno Haible  <bruno@clisp.org>
38035
38036         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38037
38038 2007-07-06  Bruno Haible  <bruno@clisp.org>
38039
38040         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38041         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38042         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38043         include <sys/time.h>.
38044         Reported by Eric Blake.
38045
38046 2007-07-06  Eric Blake  <ebb9@byu.net>
38047
38048         Fix testing canonicalize on cygwin.
38049         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38050         Revert patch from 2007-06-19.
38051         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38052         canonicalize module is also in use.
38053         * tests/test-canonicalize.c: New file.
38054         * tests/test-canonicalize.sh: Likewise.
38055         * modules/canonicalize-tests: Likewise.
38056
38057 2007-07-06  Jim Meyering  <jim@meyering.net>
38058
38059         * lib/getugroups.c (getugroups): Detect getgrent failure.
38060         Adjust comment to reflect reality: this function may return -1.
38061
38062 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38063
38064         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38065         the new TP address.
38066         (usage): Fix typo
38067         (gnulib_mk): New variable.
38068
38069 2007-07-05  Jim Meyering  <jim@meyering.net>
38070
38071         Don't let endgrent clobber errno, no matter how improbable.
38072         * lib/getugroups.c (getugroups): Save and restore errno around
38073         endgrent call.
38074
38075         Close the group DB even when failing with 2^31 or more members.
38076         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38077
38078 2007-07-04  Jim Meyering  <jim@meyering.net>
38079
38080         * lib/getugroups.h: New file.
38081         * lib/getugroups.c: Include "getugroups.h".
38082         Remove uses of "register" keyword.
38083         Move local variable, "cp", down into scope where used.
38084         Give "username" parameter the "const" attribute.
38085         * modules/getugroups (Files): Add lib/getugroups.h
38086
38087 2007-07-04  Karl Berry  <karl@gnu.org>
38088
38089         * MODULES.html.sh (func_all_modules): Complete rename of
38090         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38091
38092 2007-07-02  Bruno Haible  <bruno@clisp.org>
38093
38094         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38095         mode, when inttypes.h comes from gnulib.
38096         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38097
38098 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38099
38100         * NEWS: Mention lgpl module name change.
38101
38102         * modules/lgpl-2.1: Renamed from lgpl.
38103
38104         * NEWS: Mention gpl module name change.
38105
38106         * modules/gpl-3.0: New file, based on gpl-2.0.
38107
38108         * modules/gpl-2.0: Renamed from gpl.
38109
38110         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38111         doc/gpl-2.0.texi.
38112
38113 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38114
38115         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38116         #define __STDC_LIMIT_MACROS temporarily while including
38117         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38118         Problem reported by Joel E. Denny in
38119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38120
38121 2007-07-01  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/unistdio.h: New file.
38124         * lib/unistdio/u-asnprintf.h: New file.
38125         * lib/unistdio/u-asprintf.h: New file.
38126         * lib/unistdio/u-printf-args.c: New file.
38127         * lib/unistdio/u-printf-args.h: New file.
38128         * lib/unistdio/u-printf-parse.h: New file.
38129         * lib/unistdio/u-snprintf.h: New file.
38130         * lib/unistdio/u-sprintf.h: New file.
38131         * lib/unistdio/u-vasprintf.h: New file.
38132         * lib/unistdio/u-vsnprintf.h: New file.
38133         * lib/unistdio/u-vsprintf.h: New file.
38134         * lib/unistdio/ulc-asnprintf.c: New file.
38135         * lib/unistdio/ulc-asprintf.c: New file.
38136         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38137         * lib/unistdio/ulc-printf-parse.c: New file.
38138         * lib/unistdio/ulc-snprintf.c: New file.
38139         * lib/unistdio/ulc-sprintf.c: New file.
38140         * lib/unistdio/ulc-vasnprintf.c: New file.
38141         * lib/unistdio/ulc-vasprintf.c: New file.
38142         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38143         * lib/unistdio/ulc-vsnprintf.c: New file.
38144         * lib/unistdio/ulc-vsprintf.c: New file.
38145         * lib/unistdio/u8-asnprintf.c: New file.
38146         * lib/unistdio/u8-asprintf.c: New file.
38147         * lib/unistdio/u8-printf-parse.c: New file.
38148         * lib/unistdio/u8-snprintf.c: New file.
38149         * lib/unistdio/u8-sprintf.c: New file.
38150         * lib/unistdio/u8-vasnprintf.c: New file.
38151         * lib/unistdio/u8-vasprintf.c: New file.
38152         * lib/unistdio/u8-vsnprintf.c: New file.
38153         * lib/unistdio/u8-vsprintf.c: New file.
38154         * lib/unistdio/u8-u8-asnprintf.c: New file.
38155         * lib/unistdio/u8-u8-asprintf.c: New file.
38156         * lib/unistdio/u8-u8-snprintf.c: New file.
38157         * lib/unistdio/u8-u8-sprintf.c: New file.
38158         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38159         * lib/unistdio/u8-u8-vasprintf.c: New file.
38160         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38161         * lib/unistdio/u8-u8-vsprintf.c: New file.
38162         * lib/unistdio/u16-asnprintf.c: New file.
38163         * lib/unistdio/u16-asprintf.c: New file.
38164         * lib/unistdio/u16-printf-parse.c: New file.
38165         * lib/unistdio/u16-snprintf.c: New file.
38166         * lib/unistdio/u16-sprintf.c: New file.
38167         * lib/unistdio/u16-vasnprintf.c: New file.
38168         * lib/unistdio/u16-vasprintf.c: New file.
38169         * lib/unistdio/u16-vsnprintf.c: New file.
38170         * lib/unistdio/u16-vsprintf.c: New file.
38171         * lib/unistdio/u16-u16-asnprintf.c: New file.
38172         * lib/unistdio/u16-u16-asprintf.c: New file.
38173         * lib/unistdio/u16-u16-snprintf.c: New file.
38174         * lib/unistdio/u16-u16-sprintf.c: New file.
38175         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38176         * lib/unistdio/u16-u16-vasprintf.c: New file.
38177         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38178         * lib/unistdio/u16-u16-vsprintf.c: New file.
38179         * lib/unistdio/u32-asnprintf.c: New file.
38180         * lib/unistdio/u32-asprintf.c: New file.
38181         * lib/unistdio/u32-printf-parse.c: New file.
38182         * lib/unistdio/u32-snprintf.c: New file.
38183         * lib/unistdio/u32-sprintf.c: New file.
38184         * lib/unistdio/u32-vasnprintf.c: New file.
38185         * lib/unistdio/u32-vasprintf.c: New file.
38186         * lib/unistdio/u32-vsnprintf.c: New file.
38187         * lib/unistdio/u32-vsprintf.c: New file.
38188         * lib/unistdio/u32-u32-asnprintf.c: New file.
38189         * lib/unistdio/u32-u32-asprintf.c: New file.
38190         * lib/unistdio/u32-u32-snprintf.c: New file.
38191         * lib/unistdio/u32-u32-sprintf.c: New file.
38192         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38193         * lib/unistdio/u32-u32-vasprintf.c: New file.
38194         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38195         * lib/unistdio/u32-u32-vsprintf.c: New file.
38196         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38197         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38198         * tests/unistdio/test-ulc-printf1.h: New file.
38199         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38200         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38201         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38202         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38203         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38204         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38205         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38206         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38207         * tests/unistdio/test-u8-asnprintf1.c: New file.
38208         * tests/unistdio/test-u8-asnprintf1.h: New file.
38209         * tests/unistdio/test-u8-printf1.h: New file.
38210         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38211         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38212         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38213         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38214         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38215         * tests/unistdio/test-u8-vasprintf1.c: New file.
38216         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38217         * tests/unistdio/test-u8-vsprintf1.c: New file.
38218         * tests/unistdio/test-u16-asnprintf1.c: New file.
38219         * tests/unistdio/test-u16-asnprintf1.h: New file.
38220         * tests/unistdio/test-u16-printf1.h: New file.
38221         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38222         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38223         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38224         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38225         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38226         * tests/unistdio/test-u16-vasprintf1.c: New file.
38227         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38228         * tests/unistdio/test-u16-vsprintf1.c: New file.
38229         * tests/unistdio/test-u32-asnprintf1.c: New file.
38230         * tests/unistdio/test-u32-asnprintf1.h: New file.
38231         * tests/unistdio/test-u32-printf1.h: New file.
38232         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38233         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38234         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38235         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38236         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38237         * tests/unistdio/test-u32-vasprintf1.c: New file.
38238         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38239         * tests/unistdio/test-u32-vsprintf1.c: New file.
38240         * modules/unistdio/base: New file.
38241         * modules/unistdio/u-printf-args: New file.
38242         * modules/unistdio/ulc-asnprintf: New file.
38243         * modules/unistdio/ulc-asprintf: New file.
38244         * modules/unistdio/ulc-fprintf: New file.
38245         * modules/unistdio/ulc-printf-parse: New file.
38246         * modules/unistdio/ulc-snprintf: New file.
38247         * modules/unistdio/ulc-sprintf: New file.
38248         * modules/unistdio/ulc-vasnprintf: New file.
38249         * modules/unistdio/ulc-vasprintf: New file.
38250         * modules/unistdio/ulc-vfprintf: New file.
38251         * modules/unistdio/ulc-vsnprintf: New file.
38252         * modules/unistdio/ulc-vsprintf: New file.
38253         * modules/unistdio/u8-asnprintf: New file.
38254         * modules/unistdio/u8-asprintf: New file.
38255         * modules/unistdio/u8-printf-parse: New file.
38256         * modules/unistdio/u8-snprintf: New file.
38257         * modules/unistdio/u8-sprintf: New file.
38258         * modules/unistdio/u8-vasnprintf: New file.
38259         * modules/unistdio/u8-vasprintf: New file.
38260         * modules/unistdio/u8-vsnprintf: New file.
38261         * modules/unistdio/u8-vsprintf: New file.
38262         * modules/unistdio/u8-u8-asnprintf: New file.
38263         * modules/unistdio/u8-u8-asprintf: New file.
38264         * modules/unistdio/u8-u8-snprintf: New file.
38265         * modules/unistdio/u8-u8-sprintf: New file.
38266         * modules/unistdio/u8-u8-vasnprintf: New file.
38267         * modules/unistdio/u8-u8-vasprintf: New file.
38268         * modules/unistdio/u8-u8-vsnprintf: New file.
38269         * modules/unistdio/u8-u8-vsprintf: New file.
38270         * modules/unistdio/u16-asnprintf: New file.
38271         * modules/unistdio/u16-asprintf: New file.
38272         * modules/unistdio/u16-printf-parse: New file.
38273         * modules/unistdio/u16-snprintf: New file.
38274         * modules/unistdio/u16-sprintf: New file.
38275         * modules/unistdio/u16-vasnprintf: New file.
38276         * modules/unistdio/u16-vasprintf: New file.
38277         * modules/unistdio/u16-vsnprintf: New file.
38278         * modules/unistdio/u16-vsprintf: New file.
38279         * modules/unistdio/u16-u16-asnprintf: New file.
38280         * modules/unistdio/u16-u16-asprintf: New file.
38281         * modules/unistdio/u16-u16-snprintf: New file.
38282         * modules/unistdio/u16-u16-sprintf: New file.
38283         * modules/unistdio/u16-u16-vasnprintf: New file.
38284         * modules/unistdio/u16-u16-vasprintf: New file.
38285         * modules/unistdio/u16-u16-vsnprintf: New file.
38286         * modules/unistdio/u16-u16-vsprintf: New file.
38287         * modules/unistdio/u32-asnprintf: New file.
38288         * modules/unistdio/u32-asprintf: New file.
38289         * modules/unistdio/u32-printf-parse: New file.
38290         * modules/unistdio/u32-snprintf: New file.
38291         * modules/unistdio/u32-sprintf: New file.
38292         * modules/unistdio/u32-vasnprintf: New file.
38293         * modules/unistdio/u32-vasprintf: New file.
38294         * modules/unistdio/u32-vsnprintf: New file.
38295         * modules/unistdio/u32-vsprintf: New file.
38296         * modules/unistdio/u32-u32-asnprintf: New file.
38297         * modules/unistdio/u32-u32-asprintf: New file.
38298         * modules/unistdio/u32-u32-snprintf: New file.
38299         * modules/unistdio/u32-u32-sprintf: New file.
38300         * modules/unistdio/u32-u32-vasnprintf: New file.
38301         * modules/unistdio/u32-u32-vasprintf: New file.
38302         * modules/unistdio/u32-u32-vsnprintf: New file.
38303         * modules/unistdio/u32-u32-vsprintf: New file.
38304         * modules/unistdio/ulc-asnprintf-tests: New file.
38305         * modules/unistdio/ulc-vasnprintf-tests: New file.
38306         * modules/unistdio/ulc-vasprintf-tests: New file.
38307         * modules/unistdio/ulc-vsnprintf-tests: New file.
38308         * modules/unistdio/ulc-vsprintf-tests: New file.
38309         * modules/unistdio/u8-asnprintf-tests: New file.
38310         * modules/unistdio/u8-vasnprintf-tests: New file.
38311         * modules/unistdio/u8-vasprintf-tests: New file.
38312         * modules/unistdio/u8-vsnprintf-tests: New file.
38313         * modules/unistdio/u8-vsprintf-tests: New file.
38314         * modules/unistdio/u16-asnprintf-tests: New file.
38315         * modules/unistdio/u16-vasnprintf-tests: New file.
38316         * modules/unistdio/u16-vasprintf-tests: New file.
38317         * modules/unistdio/u16-vsnprintf-tests: New file.
38318         * modules/unistdio/u16-vsprintf-tests: New file.
38319         * modules/unistdio/u32-asnprintf-tests: New file.
38320         * modules/unistdio/u32-vasnprintf-tests: New file.
38321         * modules/unistdio/u32-vasprintf-tests: New file.
38322         * modules/unistdio/u32-vsnprintf-tests: New file.
38323         * modules/unistdio/u32-vsprintf-tests: New file.
38324         * MODULES.html.sh (Unicode string functions): Add the new modules.
38325
38326 2007-07-01  Bruno Haible  <bruno@clisp.org>
38327
38328         * lib/sprintf.c (sprintf): Limit the available length estimation,
38329         to avoid address wraparound.
38330         * lib/vsprintf.c (vsprintf): Likewise.
38331         * modules/sprintf-posix (Dependencies): Add stdint.
38332         * modules/vsprintf-posix (Dependencies): Likewise.
38333
38334 2007-07-01  Bruno Haible  <bruno@clisp.org>
38335
38336         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38337         Windows PATH as well. Conservative double-quoting. Comments.
38338
38339 2007-07-01  Bruno Haible  <bruno@clisp.org>
38340             Eric Blake  <ebb9@byu.net>
38341             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38342
38343         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38344         empty components in $PATH, denoting '.'.
38345
38346 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38347
38348         * gnulib-tool: Fix indentation.
38349         (func_create_megatestdir): Likewise.
38350         Report by Bruno Haible.
38351
38352 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38353
38354         Sync from Automake.
38355         * build-aux/gnupload: Fix shell portability issues with for loops.
38356         Report by Karl Berry.
38357
38358 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38359
38360         * build-aux/maint.mk (POURL): Use translationproject.org.
38361
38362 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38363             Bruno Haible  <bruno@clisp.org>
38364
38365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38366         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38367         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38368         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38369         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38370
38371 2007-06-27  Bruno Haible  <bruno@clisp.org>
38372
38373         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38374         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38375
38376 2007-06-26  Karl Berry  <karl@gnu.org>
38377
38378         * MODULES.html.sh: remove xreadlink-with-size.
38379
38380 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38381
38382         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38383         method that I hope also handles the double-include problem noted
38384         by Bruno Haible in
38385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38386
38387 2007-06-23  Bruno Haible  <bruno@clisp.org>
38388
38389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38390         Don't let the 'mostlyclean' target fail if the last subdirectory could
38391         not be removed.
38392         Reported by Karl Berry.
38393
38394 2007-06-23  Bruno Haible  <bruno@clisp.org>
38395
38396         * gnulib-tool (echo): Add a speedier workaround for ksh.
38397         * tests/test-echo.sh: Likewise.
38398
38399 2007-06-23  Bruno Haible  <bruno@clisp.org>
38400
38401         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38402         * tests/test-echo.sh: Likewise.
38403
38404 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38405
38406         * gnulib-tool (IFS): Initialize early, so we don't set it to
38407         empty later.
38408         (self_abspathname): Rewrite algorithm to set it, reindent.
38409         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38410         (func_create_megatestdir): Merge some sed scripts.
38411
38412 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38413
38414         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38415         exposed by Sun Studio 11 cc on Solaris 8.
38416
38417 2007-06-22  Bruno Haible  <bruno@clisp.org>
38418
38419         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38420         backslashes.
38421         * tests/test-echo.sh: New file.
38422
38423 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38424
38425         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38426         simplify `sed_replace_build_aux' scripts, they are portable but
38427         echoing them with `echo' is not.
38428         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38429
38430 2007-06-21  Karl Berry  <karl@gnu.org>
38431
38432         * config/srclist.txt: guess we can't handle the licenses via
38433         srclist at the moment.
38434
38435 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38436
38437         * MODULES.html.sh: Add include_next.
38438         * modules/include_next: New file.
38439
38440 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38441
38442         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38443         INCLUDE_NEXT.
38444         (gl_CHECK_NEXT_HEADERS): New macro.
38445         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38446         the obsolescent gl_ABSOLUTE_HEADER.
38447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38448         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38449         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38450         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38451         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38452         * m4/math_h.m4 (gl_MATH_H): Likewise.
38453         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38454         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38455         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38456         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38457         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38458         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38459         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38462         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38464         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38465         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38466         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38467         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38468         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38469         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38470         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38471         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38472         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38473         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38474         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38475         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38476         * lib/float_.h: Likewise.
38477         * lib/inttypes_.h: Likewise.
38478         * lib/math_.h: Likewise.
38479         * lib/search_.h: Likewise.
38480         * lib/signal_.h: Likewise.
38481         * lib/stdint_.h: Likewise.
38482         * lib/stdio_.h: Likewise.
38483         * lib/stdlib_.h: Likewise.
38484         * lib/string_.h: Likewise.
38485         * lib/sys_stat_.h: Likewise.
38486         * lib/sys_time_.h: Likewise.
38487         * lib/time_.h: Likewise.
38488         * lib/unistd_.h: Likewise.
38489         * lib/wchar_.h: Likewise.
38490         * lib/wctype_.h: Likewise.
38491         * lib/dirent_.h: Likewise.
38492         * lib/iconv_.h: Likewise.
38493         * lib/locale_.h: Likewise.
38494         * lib/netinet_in_.h: Likewise.
38495         * lib/sys_select_.h: Likewise.
38496         * lib/sys_socket_.h: Likewise.
38497         * lib/sysexits_.h: Likewise.
38498         * modules/fcntl (Depends-on): Depend on include_next, not
38499         absolute_header.
38500         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38501         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38502         * modules/fchdir: Likewise.
38503         * modules/float: Likewise.
38504         * modules/iconv_open: Likewise.
38505         * modules/inttypes: Likewise.
38506         * modules/locale: Likewise.
38507         * modules/math: Likewise.
38508         * modules/netinet_in: Likewise.
38509         * modules/search: Likewise.
38510         * modules/signal: Likewise.
38511         * modules/stdint: Likewise.
38512         * modules/stdio: Likewise.
38513         * modules/stdlib: Likewise.
38514         * modules/string: Likewise.
38515         * modules/sys_select: Likewise.
38516         * modules/sys_socket: Likewise.
38517         * modules/sys_stat: Likewise.
38518         * modules/sys_time: Likewise.
38519         * modules/sysexits: Likewise.
38520         * modules/time: Likewise.
38521         * modules/unistd: Likewise.
38522         * modules/wchar: Likewise.
38523         * modules/wctype: Likewise.
38524         * modules/sys_stat: Change maintainer to "all".
38525         * modules/unistd: Likewise.
38526
38527 2007-06-20  Karl Berry  <karl@gnu.org>
38528
38529         * config/srclist.txt: track www changes in license files.
38530
38531 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38532
38533         * build-aux/bootstrap: Remove stray dot.
38534         Make sure build_aux settings are honored when linking
38535         gnulib_extra_files.
38536
38537 2007-06-19  Eric Blake  <ebb9@byu.net>
38538
38539         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38540         Allow compilation on cygwin.
38541
38542 2007-06-19  Jim Meyering  <jim@meyering.net>
38543
38544         xreadlink-with-size: Remove module.  No longer used.
38545         Ex-callers now use xreadlink or mreadlink-with-size.
38546         * modules/xreadlink-with-size: Remove module.
38547         * lib/xreadlink-with-size.c: Remove file.
38548         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38549         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38550         just before the function definition *is* accurate.
38551
38552         Eliminate one way canonicalize_filename_mode could exit.
38553         * lib/canonicalize.c (canonicalize_filename_mode):
38554         Use mreadlink_with_size, not xreadlink_with_size.
38555
38556 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38557
38558         Detect porting problems to FreeBSD/arm, which has time_t wider than
38559         long int.  Original problem reported for GNU diff by Xin Li in
38560         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38561         * modules/getdate (Depends-on): Add intprops, verify.
38562         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38563         is an integer type no wider than long int.
38564
38565 2007-06-18  Jim Meyering  <jim@meyering.net>
38566
38567         New module: mreadlink-with-size.
38568         * MODULES.html.sh: Add mreadlink-with-size.
38569         * modules/mreadlink-with-size: New module
38570         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38571         not xreadlink-with-size.
38572         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38573
38574 2007-06-16  Bruno Haible  <bruno@clisp.org>
38575
38576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38577         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38578         Reported by Gary V. Vaughan <gary@gnu.org>.
38579
38580 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38581
38582         Revamp lchown so that it lives in unistd.h where it belongs.
38583         * lib/lchown.h: Remove.
38584         * lib/dirchownmod.c: Don't include lib/lchown.h.
38585         * lib/fchownat.c: Likewise.
38586         * lib/openat.c: Likewise.
38587         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38588         does not follow symlinks.
38589         (EOPNOTSUPP): Define if not defined.
38590         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38591         is defined to 0.
38592         (lchown): New decl.
38593         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38594         Do not check for lchown decl.
38595         Set REPLACE_LCHOWN.
38596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38597         REPLACE_LCHOWN.
38598         * modules/chown: Make it clear it follows symlinks.
38599         * modules/lchown: Make it clear it doesn't follow symlinks.
38600         (Files): Remove lib/lchown.h
38601         (Depends-on): Add unistd.
38602         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38603         (Include): Include <unistd.h>, not "lchown.h".
38604         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38605         REPLACE_LCHOWN.
38606
38607 2007-06-15  Jim Meyering  <jim@meyering.net>
38608
38609         Change license (GPL to LGPL) of fsusage and dependents.
38610         * modules/fsusage (License): Change to LGPL.
38611         * modules/full-read (License): Likewise.
38612         * modules/full-write (License): Likewise.
38613         * modules/safe-read (License): Likewise.
38614         * modules/safe-write (License): Likewise.
38615
38616 2007-06-14  Ben Pfaff  <blp@gnu.org>
38617
38618         Missing part of allocsa -> malloca transition.
38619         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38620         gl_MALLOCA.
38621
38622 2007-06-12  Bruno Haible  <bruno@clisp.org>
38623
38624         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38625         to ia64, x86_64, i386.
38626         Reported by Eric Blake.
38627
38628 2007-06-12  Bruno Haible  <bruno@clisp.org>
38629
38630         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38631         cross-compiling to x86_64.
38632
38633 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38634
38635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38636         glitch reported by Ralf Wildenhues in
38637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38638
38639         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38640         Vin Shelton.
38641
38642 2007-06-11  Bruno Haible  <bruno@clisp.org>
38643
38644         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38645         replacement string.
38646         Reported by Eric Blake.
38647
38648 2007-06-10  Bruno Haible  <bruno@clisp.org>
38649
38650         Prepare vasnprintf code for use with Unicode strings.
38651         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38652         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38653         TYPE_U32_STRING.
38654         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38655         a_u32_string variants.
38656         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38657         * lib/printf-args.c: Don't include config.h and the specification
38658         header if PRINTF_FETCHARGS is already defined.
38659         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38660         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38661         TYPE_U16_STRING, TYPE_U32_STRING.
38662         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38663         u16_directive, u16_directives, u32_directive, u32_directives): New
38664         types.
38665         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38666         New declarations.
38667         * lib/printf-parse.c: Don't include config.h and the specification
38668         header if PRINTF_PARSE is already defined. Eliminate the set of
38669         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38670         them now. Include c-ctype.h.
38671         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38672         directive and CHAR_T_ONLY_ASCII.
38673         * lib/vasnprintf.c: Don't include config.h and the specification header
38674         if VASNPRINTF is already defined.
38675         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38676         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38677         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38678         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38679         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38680         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38681         code accordingly.
38682         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38683         pad_ourselves also in this case, with the 'c' and 's' directives, and
38684         with a different notion of "width".
38685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38686
38687 2007-06-10  Bruno Haible  <bruno@clisp.org>
38688
38689         * modules/unistr/u32-mbsnlen: New file.
38690         * lib/unistr/u32-mbsnlen.c: New file.
38691
38692         * modules/unistr/u16-mbsnlen: New file.
38693         * lib/unistr/u16-mbsnlen.c: New file.
38694
38695         * modules/unistr/u8-mbsnlen: New file.
38696         * lib/unistr/u8-mbsnlen.c: New file.
38697
38698         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38699         declarations.
38700
38701 2007-06-10  Bruno Haible  <bruno@clisp.org>
38702
38703         * lib/string_.h (mbsnlen): New declaration.
38704         * lib/mbsnlen.c: New file.
38705         * m4/mbsnlen.m4: New file.
38706         * modules/mbsnlen: New file.
38707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38708         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38709         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38710
38711 2007-06-10  Bruno Haible  <bruno@clisp.org>
38712
38713         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38714
38715 2007-06-10  Bruno Haible  <bruno@clisp.org>
38716
38717         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38718         * lib/mbuiter.h: Likewise.
38719
38720 2007-06-10  Bruno Haible  <bruno@clisp.org>
38721
38722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38723         declaration.
38724
38725 2007-06-10  Karl Berry  <karl@gnu.org>
38726
38727         * config/srclist.txt: remove gettext entries, Bruno prefers
38728         to update individually.
38729
38730 2007-06-10  Bruno Haible  <bruno@clisp.org>
38731
38732         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38733         'maxlen'. Ensure only length + width bytes are allocated, not
38734         length + 1 + width.
38735
38736 2007-06-09  Bruno Haible  <bruno@clisp.org>
38737
38738         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38739         (CHAR_T): Remove macro.
38740         (VASNPRINTF): Update.
38741
38742 2007-06-09  Bruno Haible  <bruno@clisp.org>
38743
38744         * MODULES.html.sh (Unicode string functions): Add the new modules.
38745
38746         * modules/uniconv/u32-conv-to-enc: New file.
38747         * lib/uniconv/u32-conv-to-enc.c: New file.
38748         * modules/uniconv/u32-conv-to-enc-tests: New file.
38749         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38750
38751         * modules/uniconv/u16-conv-to-enc: New file.
38752         * lib/uniconv/u16-conv-to-enc.c: New file.
38753         * lib/uniconv/u-conv-to-enc.h: New file.
38754         * modules/uniconv/u16-conv-to-enc-tests: New file.
38755         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38756
38757         * modules/uniconv/u8-conv-to-enc: New file.
38758         * lib/uniconv/u8-conv-to-enc.c: New file.
38759         * modules/uniconv/u8-conv-to-enc-tests: New file.
38760         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38761
38762         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38763         u32_conv_to_encoding): New declarations.
38764
38765 2007-06-09  Bruno Haible  <bruno@clisp.org>
38766
38767         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38768
38769 2007-06-09  Bruno Haible  <bruno@clisp.org>
38770
38771         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38772         * modules/malloca: Renamed from modules/allocsa, updated.
38773         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38774         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38775         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38776         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38777         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38778         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38779         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38780         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38781         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38782         * modules/c-strcasestr (Depends-on): Update.
38783         * lib/c-strcasestr.c: Update.
38784         * modules/c-strstr (Depends-on): Update.
38785         * lib/c-strstr.c: Update.
38786         * modules/canonicalize-lgpl (Depends-on): Update.
38787         * lib/canonicalize-lgpl.c: Update.
38788         * modules/clean-temp (Depends-on): Update.
38789         * lib/clean-temp.c: Update.
38790         * modules/csharpcomp (Depends-on): Update.
38791         * lib/csharpcomp.c: Update.
38792         * modules/csharpexec (Depends-on): Update.
38793         * lib/csharpexec.c: Update.
38794         * modules/javacomp (Depends-on): Update.
38795         * lib/javacomp.c: Update.
38796         * modules/javaexec (Depends-on): Update.
38797         * lib/javaexec.c: Update.
38798         * modules/mbscasestr (Depends-on): Update.
38799         * lib/mbscasestr.c: Update.
38800         * modules/mbsstr (Depends-on): Update.
38801         * lib/mbsstr.c: Update.
38802         * modules/setenv (Depends-on): Update.
38803         * lib/setenv.c: Update.
38804         * modules/strcasestr (Depends-on): Update.
38805         * lib/strcasestr.c: Update.
38806         * modules/striconveha (Depends-on): Update.
38807         * lib/striconveha.c: Update.
38808         * modules/relocatable-prog-wrapper (Files): Update.
38809         * lib/relocwrapper.c: Update.
38810         * build-aux/install-reloc: Update.
38811         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38812
38813 2007-06-08  Bruno Haible  <bruno@clisp.org>
38814
38815         Port to uClibc.
38816         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38817         * lib/fpurge.c (fpurge): Likewise.
38818         * lib/freading.c (freading): Likewise.
38819         * lib/fseeko.c (rpl_fseeko): Likewise.
38820         * lib/fseterr.c (fseterr): Likewise.
38821         * lib/fwriting.c (fwriting): Likewise.
38822         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38823
38824 2007-06-08  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38827         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38828         * modules/gettext (Files): Add m4/intlmacosx.m4.
38829
38830 2007-06-07  Bruno Haible  <bruno@clisp.org>
38831
38832         * modules/localename-tests: New file.
38833         * tests/test-localename.c: New file.
38834
38835         New module 'localename'.
38836         * lib/localename.h: New file.
38837         * lib/localename.c: New file, from GNU gettext.
38838         * m4/localename.m4: New file.
38839         * modules/localename: New file.
38840
38841 2007-06-07  Bruno Haible  <bruno@clisp.org>
38842
38843         Work around the lack of <wchar.h> on some builds of uClibc.
38844         * doc/headers/wchar.texi: Update.
38845         * lib/wchar_.h: Include <wchar.h> only if it exists.
38846         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38847         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38848         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38849         doesn't exist.
38850         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38851         * modules/mbfile (Depends-on): Add wchar.
38852         * modules/mbiter (Depends-on): Likewise.
38853         * modules/mbuiter (Depends-on): Likewise.
38854         Reported by Simon Josefsson.
38855
38856 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38857
38858         Work around problem reported by Steven M. Schweda in
38859         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38860         Tru64 5.1B with the Compaq compiler environment installed declares
38861         an 'isblank' function but does not define it in the C library.
38862         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38863         * lib/regex_internal.h (isblank): Likewise.
38864         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38865         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38866
38867 2007-06-05  Bruno Haible  <bruno@clisp.org>
38868
38869         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38870         ia64.
38871         * modules/printf-safe: New file.
38872         * modules/fprintf-posix (Depends-on): Add printf-safe.
38873         * modules/printf-posix (Depends-on): Likewise.
38874         * modules/snprintf-posix (Depends-on): Likewise.
38875         * modules/sprintf-posix (Depends-on): Likewise.
38876         * modules/vasnprintf-posix (Depends-on): Likewise.
38877         * modules/vasprintf-posix (Depends-on): Likewise.
38878         * modules/vfprintf-posix (Depends-on): Likewise.
38879         * modules/vprintf-posix (Depends-on): Likewise.
38880         * modules/vsnprintf-posix (Depends-on): Likewise.
38881         * modules/vsprintf-posix (Depends-on): Likewise.
38882         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38883         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38884         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38885         "no" on i386, x86_64, ia64.
38886         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38887         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38888         on i386, x86_64, ia64.
38889         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38890         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38891         on i386, x86_64, ia64.
38892         * tests/test-vasnprintf-posix.c: Include float.h.
38893         (LDBL80_WORDS): New macro.
38894         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38895         on i386, x86_64, ia64.
38896         * tests/test-vasprintf-posix.c: Include float.h.
38897         (LDBL80_WORDS): New macro.
38898         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38899         on i386, x86_64, ia64.
38900         * tests/test-snprintf-posix.c: Include float.h.
38901         * tests/test-sprintf-posix.c: Likewise.
38902         * tests/test-vsnprintf-posix.c: Likewise.
38903         * tests/test-vsprintf-posix.c: Likewise.
38904
38905 2007-06-05  Bruno Haible  <bruno@clisp.org>
38906
38907         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38908         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38909         non-IEEE numbers on i386, x86_64, ia64.
38910         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38911         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38912         * tests/test-isnanl.h: Include float.h.
38913         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38914
38915 2007-06-05  Bruno Haible  <bruno@clisp.org>
38916
38917         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38918         also the %a / %A. Handle the %a / %A code before this extra handling.
38919
38920 2007-06-05  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
38923         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
38924
38925 2007-06-05  Bruno Haible  <bruno@clisp.org>
38926
38927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
38928         typo in variable name.
38929
38930 2007-06-05  Eric Blake  <ebb9@byu.net>
38931
38932         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
38933         Reported by Simon Josefsson.
38934
38935 2007-06-04  Bruno Haible  <bruno@clisp.org>
38936
38937         Avoid test failures on some PowerPC platforms.
38938         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
38939         Define differently for PowerPC.
38940         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
38941         Reported by Gary V. Vaughan <gary@gnu.org>.
38942
38943 2007-06-02  Bruno Haible  <bruno@clisp.org>
38944
38945         Fix test-stdint failure on FreeBSD/ia64.
38946         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
38947         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
38948         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
38949         * doc/headers/stdint.texi: Update.
38950
38951 2007-06-01  Bruno Haible  <bruno@clisp.org>
38952
38953         * tests/test-binary-io.c (main): Pass a third argument to open().
38954         Reported by Gary V. Vaughan <gary@gnu.org>.
38955
38956 2007-06-01  Bruno Haible  <bruno@clisp.org>
38957
38958         * doc/functions/frexpl.texi: Update for mingw.
38959
38960 2007-06-01  Bruno Haible  <bruno@clisp.org>
38961
38962         * tests/test-lseek.c (main): Disable test of errno for invalid third
38963         argument.
38964         * doc/functions/lseek.texi: Update.
38965         Reported by Gary V. Vaughan <gary@gnu.org>.
38966
38967 2007-05-28  Bruno Haible  <bruno@clisp.org>
38968
38969         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
38970
38971 2007-05-31  Eric Blake  <ebb9@byu.net>
38972
38973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
38974         cross compiling.
38975
38976 2007-05-30  Eric Blake  <ebb9@byu.net>
38977         and Bruno Haible  <bruno@clisp.org>
38978
38979         Work around mingw test failures exposed by m4-1.4.9b.
38980         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
38981         * tests/test-unistd.c: Disable uid_t and git_t tests for the
38982         moment.
38983
38984 2007-05-30  Bruno Haible  <bruno@clisp.org>
38985
38986         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
38987         assuming that they are closed. Needed on HP-UX 11.
38988
38989 2007-05-29  Bruno Haible  <bruno@clisp.org>
38990
38991         Fix a problem with #include_next.
38992         * lib/dirent_.h: Split the double-inclusion guard.
38993         * lib/fcntl_.h: Likewise.
38994         * lib/float_.h: Likewise.
38995         * lib/iconv_.h: Likewise.
38996         * lib/inttypes_.h: Likewise.
38997         * lib/locale_.h: Likewise.
38998         * lib/math_.h: Likewise.
38999         * lib/netinet_in_.h: Likewise.
39000         * lib/search_.h: Likewise.
39001         * lib/signal_.h: Likewise.
39002         * lib/stdint_.h: Likewise.
39003         * lib/stdio_.h: Likewise.
39004         * lib/stdlib_.h: Likewise.
39005         * lib/string_.h: Likewise.
39006         * lib/sys_select_.h: Likewise.
39007         * lib/sys_socket_.h: Likewise.
39008         * lib/sys_stat_.h: Likewise.
39009         * lib/sys_time_.h: Likewise.
39010         * lib/sysexits_.h: Likewise.
39011         * lib/time_.h: Likewise.
39012         * lib/unistd_.h: Likewise.
39013         * lib/wchar_.h: Likewise.
39014         * lib/wctype_.h: Likewise.
39015
39016 2007-05-29  Bruno Haible  <bruno@clisp.org>
39017
39018         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39019         for the moment.
39020
39021 2007-05-29  Bruno Haible  <bruno@clisp.org>
39022
39023         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39024         invocation.
39025         Reported by Eric Blake.
39026
39027 2007-05-29  Bruno Haible  <bruno@clisp.org>
39028
39029         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39030         compiling case.
39031
39032 2007-05-29  Eric Blake  <ebb9@byu.net>
39033             Bruno Haible  <bruno@clisp.org>
39034
39035         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39036         cross compiles.
39037
39038 2007-05-28  Eric Blake  <ebb9@byu.net>
39039
39040         * modules/closein-tests (test_closein_LDADD): Support test on
39041         cygwin with libtool.
39042
39043 2007-05-28  Bruno Haible  <bruno@clisp.org>
39044
39045         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39046         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39047         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39048         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39049         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39050         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39051         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39052         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39053         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39054
39055 2007-05-28  Eric Blake  <ebb9@byu.net>
39056
39057         Unconditionally include <config.h> in unit tests.
39058         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39059         * tests/test-allocsa.c, tests/test-arcfour.c,
39060         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39061         tests/test-array_list.c, tests/test-array_oset.c,
39062         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39063         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39064         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39065         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39066         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39067         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39068         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39069         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39070         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39071         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39072         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39073         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39074         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39075         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39076         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39077         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39078         test-md5.c, test-memmem.c, test-printf-posix.c,
39079         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39080         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39081         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39082         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39083         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39084         test-vasnprintf-posix2.c, test-vasnprintf.c,
39085         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39086         test-vfprintf-posix.c, test-vprintf-posix.c,
39087         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39088         test-xvasprintf.c: Likewise.
39089
39090 2007-05-28  Bruno Haible  <bruno@clisp.org>
39091
39092         * gnulib-tool (func_import): Remember the --with-tests command-line
39093         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39094         Reported by Eric Blake.
39095
39096 2007-05-28  Bruno Haible  <bruno@clisp.org>
39097
39098         * modules/ftell-tests: New file.
39099         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39100         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39101
39102         * lib/ftell.c: New file.
39103         * modules/ftell: New file.
39104         * m4/ftell.m4: New file.
39105         * doc/functions/ftell.texi: Update.
39106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39107         REPLACE_FTELL.
39108         * lib/stdio_.h (rpl_ftell): New declaration.
39109         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39110         REPLACE_FTELL.
39111
39112 2007-05-28  Eric Blake  <ebb9@byu.net>
39113
39114         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39115
39116 2007-05-28  Bruno Haible  <bruno@clisp.org>
39117
39118         * modules/fseek-tests: New file.
39119         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39120         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39121
39122         * lib/fseek.c: New file.
39123         * modules/fseek: New file.
39124         * m4/fseek.m4: New file.
39125         * doc/functions/fseek.texi: Update.
39126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39127         REPLACE_FSEEK.
39128         * lib/stdio_.h (rpl_fseek): New declaration.
39129         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39130         REPLACE_FSEEK.
39131
39132 2007-05-28  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/stdio_.h (fflush): More comments.
39135
39136 2007-05-28  Bruno Haible  <bruno@clisp.org>
39137
39138         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39139         runtime test.
39140
39141 2007-05-28  Eric Blake  <ebb9@byu.net>
39142
39143         Improve lseek module.
39144         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39145         * lib/unistd_.h (lseek): Scale back link warning message.
39146         * tests/test-lseek.c: Beef up test.
39147         * tests/test-lseek.sh: Exercise more facets of lseek.
39148         Reported by Bruno Haible.
39149
39150 2007-05-28  Bruno Haible  <bruno@clisp.org>
39151
39152         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39153         to define.
39154
39155 2007-05-27  Bruno Haible  <bruno@clisp.org>
39156
39157         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39158
39159 2007-05-27  Bruno Haible  <bruno@clisp.org>
39160
39161         * modules/openmp: New file.
39162         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39163         Noah Misch.
39164
39165 2007-05-26  Bruno Haible  <bruno@clisp.org>
39166
39167         * modules/chdir-long (Depends-on): Add fchdir.
39168         * modules/chdir-safer (Depends-on): Likewise.
39169         * modules/fts (Depends-on): Likewise.
39170         * modules/fts-lgpl (Depends-on): Likewise.
39171         * modules/openat (Depends-on): Likewise.
39172         * modules/savewd (Depends-on): Likewise.
39173
39174 2007-05-24  Eric Blake  <ebb9@byu.net>
39175
39176         Fix lseek on mingw.
39177         * modules/lseek: New module.
39178         * m4/lseek.m4: New file.
39179         * lib/lseek.c: New file.
39180         * modules/lseek-tests: New file.
39181         * tests/test-lseek.c: New file.
39182         * tests/test-lseek.sh: New file.
39183         * MODULES.html.sh: Document lseek module.
39184         * modules/fflush (Depends-on): Add lseek, fseeko.
39185         * modules/fseeko (Depends-on): Likewise.
39186         * modules/ftello (Depends-on): Likewise.
39187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39188         broken.
39189         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39190         broken.
39191         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39192         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39193         * lib/ftello.c (rpl_ftello): Likewise.
39194         * tests/test-fseeko.c (main): Test this.
39195         * tests/test-fseeko.sh: Likewise.
39196         * tests/test-ftello.c (main): Likewise.
39197         * tests/test-ftello.sh: Likewise.
39198         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39199         implies replacing fseek.
39200         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39201         HAVE_FTELLO.
39202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39203         * modules/unistd (Makefile.am): Likewise.
39204         * lib/unistd_.h (lseek): Declare a replacement.
39205         * doc/functions/lseek.texi (lseek): Document this fix.
39206         * doc/functions/fseek.texi (fseek): Likewise.
39207         * doc/functions/ftell.texi (ftell): Likewise.
39208
39209 2007-05-24  Bruno Haible  <bruno@clisp.org>
39210
39211         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39212         in the printed representation of a NaN.
39213         * tests/test-vasprintf-posix.c (test_function): Likewise.
39214         * tests/test-snprintf-posix.h (test_function): Likewise.
39215         * tests/test-sprintf-posix.h (test_function): Likewise.
39216         Reported by Eric Blake.
39217
39218 2007-05-23  Eric Blake  <ebb9@byu.net>
39219
39220         Fix fseeko/ftello on cygwin 1.5.24.
39221         * doc/functions/fseeko.texi (fseeko): Document the fix.
39222         * doc/functions/ftello.texi (ftello): Document the fix.
39223         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39224         * doc/functions/stdout.text (stdout): New file.
39225         * doc/functions/stderr.text (stderr): New file.
39226         * doc/gnulib.texi (Function Substitutes): Use new files.
39227         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39228         prior to 1.7.0.
39229         * tests/test-ftello.c (main): Likewise for ftello.
39230         * tests/test-fseeko.sh: New file.
39231         * tests/test-ftello.sh: New file.
39232         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39233         with seekable stdin.
39234         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39235         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39236         (gl_REPLACE_FSEEKO): New macro.
39237         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39238         * modules/fseeko (Files): Distribute fseeko.c.
39239         * modules/ftello (Files): Distribute ftello.c.
39240         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39241         mode.
39242         * lib/ftello.c (rpl_ftello): New file.
39243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39244         fseeko, ftello.
39245         (gl_STDIN_LARGE_OFFSET): New macro.
39246         * modules/stdio (Makefile.am): Perform the replacement.
39247         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39248
39249 2007-05-23  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39252         GNULIB_POSIXCHECK is defined.
39253
39254 2007-05-21  Bruno Haible  <bruno@clisp.org>
39255
39256         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39257         Check also the output for NaN arguments. When cross-compiling, guess
39258         no on IRIX.
39259         * lib/vasnprintf.c: Update comments.
39260         * tests/test-vasnprintf-posix.c (strisnan): New function.
39261         (test_function): Use it.
39262         * tests/test-vasprintf-posix.c (strisnan): New function.
39263         (test_function): Use it.
39264         * tests/test-snprintf-posix.h (strisnan): New function.
39265         (test_function): Use it.
39266         * tests/test-sprintf-posix.h (strisnan): New function.
39267         (test_function): Use it.
39268         Reported by Eric Blake.
39269
39270 2007-05-20  Bruno Haible  <bruno@clisp.org>
39271
39272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39273         numbers that fails on BeOS.
39274         * doc/functions/frexpl.texi: Update.
39275
39276 2007-05-20  Jim Meyering  <jim@meyering.net>
39277
39278         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39279         forced upon us by glibc-2.6.
39280
39281 2007-05-20  Bruno Haible  <bruno@clisp.org>
39282
39283         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39284         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39285         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39286         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39287         NEED_PRINTF_INFINITE.
39288         (is_infinitel): New function.
39289         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39291         gl_PREREQ_VASNPRINTF_INFINITE.
39292         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39293         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39294         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39295         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39296         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39297         gl_PREREQ_VASNPRINTF_INFINITE.
39298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39305         * doc/functions/fprintf.texi: Update.
39306         * doc/functions/printf.texi: Update.
39307         * doc/functions/snprintf.texi: Update.
39308         * doc/functions/sprintf.texi: Update.
39309         * doc/functions/vfprintf.texi: Update.
39310         * doc/functions/vprintf.texi: Update.
39311         * doc/functions/vsnprintf.texi: Update.
39312         * doc/functions/vsprintf.texi: Update.
39313
39314 2007-05-20  Bruno Haible  <bruno@clisp.org>
39315
39316         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39317         was not found in libc.
39318         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39319
39320 2007-05-20  Bruno Haible  <bruno@clisp.org>
39321
39322         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39323         printed as "-nan" instead of "nan".
39324         * tests/test-vasprintf-posix.c (test_function): Likewise.
39325         * tests/test-snprintf-posix.h (test_function): Likewise.
39326         * tests/test-sprintf-posix.h (test_function): Likewise.
39327         Needed for HP-UX 11.
39328
39329 2007-05-20  Jim Meyering  <jim@meyering.net>
39330
39331         Fix buggy test for the fchownat-deref bug.
39332         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39333         symlink required for the run-test.  Without it, this test would
39334         always declare that fchownat doesn't work, and client code would
39335         unnecessarily use the replacement function with fixed libc.
39336         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39337         Reported by Greg Schafer.
39338
39339 2007-05-19  Bruno Haible  <bruno@clisp.org>
39340
39341         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39342         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39343         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39344         Needed for IRIX 6.5 and Solaris 2.5.1.
39345
39346 2007-05-19  Bruno Haible  <bruno@clisp.org>
39347
39348         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39349         (test_function): Skip tests involving -0.0 on platforms where
39350         -0.0 = 0.0.
39351         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39352         (test_function): Skip tests involving -0.0 on platforms where
39353         -0.0 = 0.0.
39354         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39355         (test_function): Skip tests involving -0.0 on platforms where
39356         -0.0 = 0.0.
39357         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39358         (test_function): Skip tests involving -0.0 on platforms where
39359         -0.0 = 0.0.
39360         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39361         tests.
39362         * tests/test-printf-posix.h (test_function): Likewise.
39363         * tests/test-printf-posix.output: Remove all -0.0 related results.
39364         Needed for IRIX 6.5.
39365
39366 2007-05-19  Bruno Haible  <bruno@clisp.org>
39367
39368         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39369         printed as "nan0x7fffffff" instead of "nan".
39370         * tests/test-vasprintf-posix.c (test_function): Likewise.
39371         * tests/test-snprintf-posix.h (test_function): Likewise.
39372         * tests/test-sprintf-posix.h (test_function): Likewise.
39373         * tests/test-fprintf-posix.h (NaN): Remove macro.
39374         (test_function): Remove all NaN related tests.
39375         * tests/test-printf-posix.h (NaN): Remove macro.
39376         (test_function): Remove all NaN related tests.
39377         * tests/test-printf-posix.output: Remove all NaN related results.
39378         Needed for IRIX 6.5.
39379
39380 2007-05-19  Bruno Haible  <bruno@clisp.org>
39381
39382         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39383         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39384
39385 2007-05-19  Bruno Haible  <bruno@clisp.org>
39386
39387         * lib/float_.h: New file.
39388         * m4/float_h.m4: New file.
39389         * modules/float: New file.
39390         * modules/isnanl (Dependencies): Add float.
39391         * modules/isnanl-nolibm (Dependencies): Likewise.
39392         * modules/mathl (Dependencies): Likewise.
39393         * modules/printf-frexpl (Dependencies): Likewise.
39394         * modules/signbit (Dependencies): Likewise.
39395         * modules/vasnprintf (Dependencies): Likewise.
39396         * doc/headers/float.texi: Update.
39397
39398 2007-05-19  Jim Meyering  <jim@meyering.net>
39399
39400         * lib/utimens.c (gl_futimens): Rename from futimens,
39401         now that glibc-2.6 declares futimens.
39402         * lib/utimens.h: Likewise.
39403
39404 2007-05-19  Bruno Haible  <bruno@clisp.org>
39405
39406         Avoid test failures on mingw.
39407         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39408         * tests/test-printf-posix.sh: Likewise.
39409         * tests/test-vfprintf-posix.sh: Likewise.
39410         * tests/test-vprintf-posix.sh: Likewise.
39411
39412 2007-05-19  Bruno Haible  <bruno@clisp.org>
39413
39414         Fix *printf result for NaN, Inf, -0.0 on mingw.
39415         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39416         * lib/vasnprintf.c: Include math.h and isnan.h.
39417         (is_infinite_or_zero): New function.
39418         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39419         values in the %f, %F, %e, %E, %g, %G directives.
39420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39422         gl_PRINTF_INFINITE and test its result. Invoke
39423         gl_PREREQ_VASNPRINTF_INFINITE.
39424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39431         * doc/functions/fprintf.texi: Update.
39432         * doc/functions/printf.texi: Update.
39433         * doc/functions/snprintf.texi: Update.
39434         * doc/functions/sprintf.texi: Update.
39435         * doc/functions/vfprintf.texi: Update.
39436         * doc/functions/vprintf.texi: Update.
39437         * doc/functions/vsnprintf.texi: Update.
39438         * doc/functions/vsprintf.texi: Update.
39439
39440 2007-05-19  Bruno Haible  <bruno@clisp.org>
39441
39442         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39443         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39444         Instead of multiplying with 10^k, set extra_zeroes to k.
39445         (scale10_round_long_double): Remove function.
39446
39447 2007-05-18  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39450         introduced on 2007-05-06.
39451
39452 2007-05-18  Bruno Haible  <bruno@clisp.org>
39453
39454         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39455         %g directives.
39456         * tests/test-vasprintf-posix.c (test_function): Likewise.
39457         * tests/test-snprintf-posix.h (test_function): Likewise.
39458         * tests/test-sprintf-posix.h (test_function): Likewise.
39459
39460 2007-05-18  Bruno Haible  <bruno@clisp.org>
39461
39462         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39463         (strmatch): New function.
39464         (test_function): Test the %f directive on numbers of various exponents.
39465         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39466         (strmatch): New function.
39467         (test_function): Test the %f directive on numbers of various exponents.
39468         * tests/test-snprintf-posix.h (strmatch): New function.
39469         (test_function): Test the %f directive on numbers of various exponents.
39470         * tests/test-sprintf-posix.h (strmatch): New function.
39471         (test_function): Test the %f directive on numbers of various exponents.
39472         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39473         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39474         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39475         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39476
39477 2007-05-18  Bruno Haible  <bruno@clisp.org>
39478
39479         Add support for 'long double' number output.
39480         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39481         * lib/vasnprintf.c: Include math.h and float+.h.
39482         (mp_limb_t): New type.
39483         (GMP_LIMB_BITS): New macro.
39484         (mp_twolimb_t): New type.
39485         (GMP_TWOLIMB_BITS): New macro.
39486         (mpn_t): New type.
39487         (multiply, divide, convert_to_decimal, decode_long_double,
39488         scale10_round_long_double, scale10_round_decimal_long_double,
39489         floorlog10l): New functions.
39490         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39491         for the %f, %F, %e, %E, %g, %G directives.
39492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39494         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39495         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39503         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39504         * modules/snprintf-posix (Depends-on): Likewise.
39505         * modules/sprintf-posix (Depends-on): Likewise.
39506         * modules/vasnprintf-posix (Depends-on): Likewise.
39507         * modules/vasprintf-posix (Depends-on): Likewise.
39508         * modules/vfprintf-posix (Depends-on): Likewise.
39509         * modules/vsnprintf-posix (Depends-on): Likewise.
39510         * modules/vsprintf-posix (Depends-on): Likewise.
39511         * modules/vasnprintf (Files): Add lib/float+.h.
39512         * doc/functions/fprintf.texi: Update.
39513         * doc/functions/printf.texi: Update.
39514         * doc/functions/snprintf.texi: Update.
39515         * doc/functions/sprintf.texi: Update.
39516         * doc/functions/vfprintf.texi: Update.
39517         * doc/functions/vprintf.texi: Update.
39518         * doc/functions/vsnprintf.texi: Update.
39519         * doc/functions/vsprintf.texi: Update.
39520
39521 2007-05-18  Bruno Haible  <bruno@clisp.org>
39522
39523         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39524
39525 2007-05-18  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39528         for printing 64-bit integers. Needed for mingw.
39529
39530 2007-05-18  Bruno Haible  <bruno@clisp.org>
39531
39532         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39533         gl_FUNC_FREXPL_WORKS.
39534         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39535
39536 2007-05-18  Bruno Haible  <bruno@clisp.org>
39537
39538         * modules/frexpl-nolibm-tests: New file.
39539
39540         * modules/frexpl-nolibm: New file.
39541         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39542
39543 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39544
39545         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39546         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39547         GCC 4.2, which otherwise issues a lot of warnings.
39548         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39549         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39550         Likewise.
39551         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39552         * modules/iconv_open (iconv.h): Likewise.
39553         * modules/locale (locale.h): Likewise.
39554         * modules/netinet_in (netinet/in.h): Likewise.
39555         * modules/sys_select (sys_select.h): Likewise.
39556         * modules/sys_socket (sys/socket.h): Likewise.
39557         * modules/sys_stat (sys/stat.h): Likewise.
39558         * modules/sysexits (sysexits.h): Likewise.
39559         * modules/unistd (unistd.h): Likewise.
39560
39561 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39562
39563         * modules/closein-tests (Makefile.am): Distribute
39564         `test-closein.sh'.
39565
39566 2007-05-17  Bruno Haible  <bruno@clisp.org>
39567
39568         * tests/test-printf-posix.output: Renamed from
39569         tests/test-fprintf-posix.out.
39570         * modules/fprintf-posix-tests: Update.
39571         * modules/printf-posix-tests: Update.
39572         * modules/vfprintf-posix-tests: Update.
39573         * modules/vprintf-posix-tests: Update.
39574         * tests/test-fprintf-posix.sh: Update.
39575         * tests/test-printf-posix.sh: Update.
39576         * tests/test-vfprintf-posix.sh: Update.
39577         * tests/test-vprintf-posix.sh: Update.
39578         Reported by Ralf Wildenhues.
39579
39580 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39581
39582         * lib/fcntl_.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/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39586         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39587         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39588         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39589         it should no longer be needed.
39590         * lib/string_.h: Likewise.
39591         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39592         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39593         * modules/inttypes (inttypes.h): Likewise.
39594         * modules/math (math.h): Likewise.
39595         * modules/search (search.h): Likewise.
39596         * modules/signal (signal.h): Likewise.
39597         * modules/stdint (stdint.h): Likewise.
39598         * modules/stdio (stdio.h): Likewise.
39599         * modules/stdlib (stdlib.h): Likewise.
39600         * modules/string (string.h): Likewise.
39601         * modules/sys_time (sys/time.h): Likewise.
39602         * modules/time (time.h): Likewise.
39603         * modules/wchar (wchar.h): Likewise.
39604         * modules/wctype (wtype.h): Likewise.
39605
39606 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39607
39608         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39609
39610 2007-05-13  Bruno Haible  <bruno@clisp.org>
39611
39612         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39613         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39614         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39615         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39616         (gl_PREREQ_STRTOK_R): Don't require it here.
39617
39618 2007-05-13  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39621         when used in C++ mode.
39622
39623 2007-05-12  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/linebuffer.h: Tweak doc.
39626         * lib/linebuffer.c: Likewise.
39627
39628 2007-05-12  James Youngman  <jay@gnu.org>
39629
39630         * lib/linebuffer.c (readlinebuffer_delim): New function,
39631         like readlinebuffer, but use a caller-specified delimiter.
39632         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39633         as the delimiter.
39634         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39635
39636 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39637
39638         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39639         * modules/openat (Files): Remove openat-die.c.
39640         (Depends-on): Add openat-die.
39641         * modules/openat-die: New module.
39642
39643 2007-05-06  Bruno Haible  <bruno@clisp.org>
39644
39645         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39646         Update with info about Cygwin.
39647         * doc/functions/fprintf.texi: Update.
39648         * doc/functions/printf.texi: Update.
39649         * doc/functions/snprintf.texi: Update.
39650         * doc/functions/sprintf.texi: Update.
39651         * doc/functions/vfprintf.texi: Update.
39652         * doc/functions/vprintf.texi: Update.
39653         * doc/functions/vsnprintf.texi: Update.
39654         * doc/functions/vsprintf.texi: Update.
39655         Reported by Eric Blake.
39656
39657 2007-05-06  Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39660         padding ourselves for the floating-point directives.
39661         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39664         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39665         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39673         * tests/test-snprintf-posix.h (test_function): Also check the width
39674         and some flags in the %f directive.
39675         * tests/test-sprintf-posix.h (test_function): Likewise.
39676         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39677         * tests/test-vasprintf-posix.c (test_function): Likewise.
39678         * doc/functions/fprintf.texi: Update.
39679         * doc/functions/printf.texi: Update.
39680         * doc/functions/snprintf.texi: Update.
39681         * doc/functions/sprintf.texi: Update.
39682         * doc/functions/vfprintf.texi: Update.
39683         * doc/functions/vprintf.texi: Update.
39684         * doc/functions/vsnprintf.texi: Update.
39685         * doc/functions/vsprintf.texi: Update.
39686
39687 2007-05-06  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39690         pass the ' flag character to sprintf or snprintf.
39691         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39694         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39695         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39703         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39704         flag.
39705         * tests/test-sprintf-posix.h (test_function): Likewise.
39706         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39707         * tests/test-vasprintf-posix.c (test_function): Likewise.
39708         * doc/functions/fprintf.texi: Update.
39709         * doc/functions/printf.texi: Update.
39710         * doc/functions/snprintf.texi: Update.
39711         * doc/functions/sprintf.texi: Update.
39712         * doc/functions/vfprintf.texi: Update.
39713         * doc/functions/vprintf.texi: Update.
39714         * doc/functions/vsnprintf.texi: Update.
39715         * doc/functions/vsprintf.texi: Update.
39716
39717 2007-05-01  Bruno Haible  <bruno@clisp.org>
39718
39719         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39720
39721 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39722
39723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39724         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39725
39726 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39727
39728         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39729         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39731
39732 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39733
39734         * lib/argp-help.c (struct hol_entry): New member `ord'.
39735         (HOL_ENTRY_PTRCMP): Use ord for comparison
39736         (hol_sort): Initialize ord.
39737
39738 2007-05-01  Bruno Haible  <bruno@clisp.org>
39739
39740         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39741         Reported by Eric Blake.
39742         * doc/gnulib.texi (Function Substitutes): Update.
39743
39744 2007-05-01  Bruno Haible  <bruno@clisp.org>
39745
39746         * doc/functions.texi: Remove file, now redundant through
39747         doc/functions/*.texi.
39748
39749 2007-05-01  Bruno Haible  <bruno@clisp.org>
39750
39751         * modules/argp (Depends-on): Add sleep.
39752
39753 2007-05-01  Bruno Haible  <bruno@clisp.org>
39754
39755         * modules/sleep-tests: New file.
39756         * tests/test-sleep.c: New file.
39757
39758         * modules/sleep: New file.
39759         * lib/sleep.c: New file.
39760         * m4/sleep.m4: New file.
39761         * lib/unistd_.h (sleep): New declaration.
39762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39763         HAVE_SLEEP.
39764         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39765         * doc/functions/sleep.texi: Document the sleep module.
39766
39767 2007-05-01  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/sigprocmask.h: Remove file.
39770         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39771         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39772         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39773         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39774         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39775         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39776         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39777         HAVE_SIGSET_T as a shell variable.
39778         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39779         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39780         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39781         (Depends-on): Add signal. Remove verify.
39782         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39783         (Include): Mention <signal.h> instead of sigprocmask.h.
39784         * NEWS: Mention the change.
39785         * lib/fatal-signal.c: Don't include sigprocmask.h.
39786
39787 2007-05-01  Bruno Haible  <bruno@clisp.org>
39788
39789         * modules/signal: New file.
39790         * lib/signal_.h: New file.
39791         * m4/signal_h.m4: New file.
39792
39793 2007-05-01  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39796         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39797         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39798         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39799
39800 2007-05-01  Bruno Haible  <bruno@clisp.org>
39801
39802         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39803         configure time.
39804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39805         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39806         * modules/sys_stat (Makefile.am): Substitute their values into
39807         sys/stat.h.
39808
39809 2007-05-01  Bruno Haible  <bruno@clisp.org>
39810
39811         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39812         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39813         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39814
39815 2007-05-01  Bruno Haible  <bruno@clisp.org>
39816
39817         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39818         'assert' module here.
39819
39820 2007-05-01  Bruno Haible  <bruno@clisp.org>
39821
39822         * doc/functions/*.texi: New files.
39823         * doc/functions/google-ranking.txt: New file.
39824         * doc/gnulib.texi (Function Substitutes): New chapter.
39825         (ctime, inet_ntoa): Remove sections.
39826         * doc/ctime.texi: Remove file.
39827         * doc/inet_ntoa.texi: Remove file.
39828         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39829         dependencies.
39830         (%.info): New rule, specifying a --reference-limit.
39831
39832 2007-05-01  Bruno Haible  <bruno@clisp.org>
39833
39834         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39835
39836 2007-05-01  Bruno Haible  <bruno@clisp.org>
39837
39838         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39839         the portability of 'mkdir' to mingw systems.
39840
39841 2007-05-01  Bruno Haible  <bruno@clisp.org>
39842
39843         * doc/headers/google-ranking.txt: New file.
39844
39845 2007-04-30  Eric Blake  <ebb9@byu.net>
39846
39847         Prefer fseeko to fseek.
39848         * modules/getpass (Depends-on): Add fseeko.
39849         * lib/getpass.c (getpass): Use fseeko, not fseek.
39850
39851 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39852
39853         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39854         assumes the sorting is stable, while most qsort implementations
39855         are not.  Use argument addresses to ensure they never compare as
39856         equal.
39857
39858         * tests/test-argp-2.sh (usage-indent test): Fix output
39859         (func_compare): Restore diff options
39860         * tests/test-argp.c: Restore #include "progname.h"
39861
39862 2007-04-29  Bruno Haible  <bruno@clisp.org>
39863
39864         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39865         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39866         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39868         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39869         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39870         (TESTS, check_PROGRAMS): Add test-snprintf.
39871         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39872         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39873         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39874         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39875         assertions that fail on HP-UX, OSF/1, or IRIX.
39876         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39877
39878 2007-04-29  Bruno Haible  <bruno@clisp.org>
39879
39880         * MODULES.html.sh (posix_functions): Remove 'contents'.
39881
39882 2007-04-29  Karl Berry  <karl@gnu.org>
39883
39884         * config/srclist.txt (gendocs_template_min): new entry.
39885
39886 2007-04-29  Bruno Haible  <bruno@clisp.org>
39887
39888         Work around fpurge bug on BSD systems.
39889         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39890         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39891         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39892         fpurge to rpl_fpurge if the system already has this function.
39893         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39894         the case where the system already has this function. Correct invariants
39895         on BSD systems.
39896         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39897         BSD systems.
39898
39899 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39900
39901         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39902         proposed by Sven Verdoolaege.
39903
39904         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39905         options.
39906         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39907         (usage and help tests): Update
39908
39909 2007-04-29  Bruno Haible  <bruno@clisp.org>
39910
39911         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39912         Print more information in case of failure. Disable a test on BeOS.
39913
39914 2007-04-29  Bruno Haible  <bruno@clisp.org>
39915
39916         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39917         This helps debugging on systems on which no gdb is available.
39918
39919 2007-04-29  Bruno Haible  <bruno@clisp.org>
39920
39921         * lib/freading.h: Improve comments.
39922         * lib/fwriting.h: Likewise.
39923         * tests/test-freading.c (main): Don't check freading immediately after
39924         repositioning. Needed for glibc.
39925
39926 2007-04-29  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/freading.c (freading): Trivial simplification.
39929
39930 2007-04-28  Bruno Haible  <bruno@clisp.org>
39931
39932         * tests/test-fwriting.c (main): Also test the interaction between
39933         fflush and fwriting.
39934         * modules/fwriting-tests (Depends-on): Add fflush.
39935
39936         * tests/test-freading.c (main): Also test the interaction between
39937         fflush and freading.
39938         * modules/freading-tests (Depends-on): Add fflush.
39939
39940 2007-04-28  Bruno Haible  <bruno@clisp.org>
39941
39942         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
39943         fseeko and ftello.
39944         Suggested by Eric Blake.
39945
39946 2007-04-28  Jim Meyering  <jim@meyering.net>
39947
39948         Avoid false-negative in gl_STDINT_H's C99 conformance test.
39949         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
39950         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
39951
39952 2007-04-27  Eric Blake  <ebb9@byu.net>
39953
39954         * doc/headers/assert.texi (assert.h): Document assert module use.
39955
39956 2007-04-27  Bruno Haible  <bruno@clisp.org>
39957
39958         * doc/headers/*.texi: New files.
39959         * doc/gnulib.texi (Header File Substitutes): New chapter.
39960         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
39961         dependencies.
39962         (standards.info ,standards.html, standards.dvi): Update dependencies.
39963         (mostlyclean, clean): New targets.
39964
39965 2007-04-27  Bruno Haible  <bruno@clisp.org>
39966
39967         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
39968         * modules/sysexits (Files, Makefile.am): Update.
39969
39970         * lib/sys_socket_.h: Renamed from lib/socket_.h.
39971         * modules/sys_socket (Files, Makefile.am): Update.
39972
39973         * lib/sys_stat_.h: Renamed from lib/stat_.h.
39974         * modules/sys_stat (Files, Makefile.am): Update.
39975
39976 2007-04-27  Eric Blake  <ebb9@byu.net>
39977
39978         * lib/freading.h: Improve comments.
39979         * lib/fwriting.h: Likewise.
39980         * lib/fflush.c: Likewise.
39981
39982         Fix closein for mingw.
39983         * modules/closein-tests: Add tests for closein.
39984         * tests/test-closein.c: New file.
39985         * tests/test-closein.sh: Likewise.
39986         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
39987         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
39988
39989 2007-04-27  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
39992         version is < 6.
39993         * lib/math_.h [__DECC]: Likewise.
39994         * lib/stdio_.h [__DECC]: Likewise.
39995         * lib/stdlib_.h [__DECC]: Likewise.
39996         * lib/string_.h [__DECC]: Likewise.
39997         * lib/time_.h [__DECC]: Likewise.
39998         * lib/wchar_.h [__DECC]: Likewise.
39999         * lib/wctype_.h [__DECC]: Likewise.
40000
40001 2007-04-27  Bruno Haible  <bruno@clisp.org>
40002
40003         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40004
40005 2007-04-27  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/fflush.c: Add comments.
40008         * modules/fpurge-tests (Depends-on): Add fflush.
40009         * modules/freadable-tests (Depends-on): Likewise.
40010         * modules/fwritable-tests (Depends-on): Likewise.
40011
40012 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40013
40014         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40015         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40016         Report by Bruno Haible <bruno@clisp.org>.
40017
40018 2007-04-26  Eric Blake  <ebb9@byu.net>
40019
40020         Fix fflush on mingw.
40021         * modules/fflush (Depends-on): Add freading.
40022         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40023         but unread data.
40024
40025 2007-04-26  Eric Blake  <ebb9@byu.net>
40026         and Bruno Haible  <bruno@clisp.org>
40027
40028         Implement freading and fwriting.
40029         * lib/freading.c: New file.
40030         * lib/freading.h: Likewise.
40031         * m4/freading.m4: Likewise.
40032         * modules/freading: Likewise.
40033         * modules/freading-tests: Likewise.
40034         * tests/test-freading.c: Likewise.
40035         * lib/fwriting.c: New file.
40036         * lib/fwriting.h: Likewise.
40037         * m4/fwriting.m4: Likewise.
40038         * modules/fwriting: Likewise.
40039         * modules/fwriting-tests: Likewise.
40040         * tests/test-fwriting.c: Likewise.
40041         * MODULES.html.sh (File stream based Input/Output): Mention them.
40042
40043 2007-04-26  Bruno Haible  <bruno@clisp.org>
40044
40045         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40046         'long' when we assume it.
40047         Suggested by Eric Blake.
40048
40049 2007-04-26  Bruno Haible  <bruno@clisp.org>
40050
40051         Ensure fseeko, ftello are declared on glibc systems.
40052         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40053         * modules/fseeko (configure.ac-early): Likewise.
40054         * modules/ftello (configure.ac-early): Likewise.
40055         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40056         AC_FUNC_FSEEKO for this.
40057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40058         (gl_CHECK_FSEEKO): Remove macro.
40059
40060 2007-04-26  Bruno Haible  <bruno@clisp.org>
40061
40062         * tests/test-fflush.c (main): Also check the ftell result after
40063         fflush and fseek/fseeko.
40064         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40065         file descriptor position cache in the stream.
40066         * lib/fseeko.c (rpl_fseeko): Likewise.
40067
40068 2007-04-26  Bruno Haible  <bruno@clisp.org>
40069
40070         * modules/fflush-tests (Depends-on): Add fseeko.
40071
40072 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40073             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40074
40075         * lib/argz_.h: ensure error_t definition is obtained in same
40076         mechanism system argz.h would have.
40077         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40078         argz facilities are known bad.  Err on the side of caution if
40079         cross-compiling.
40080
40081 2007-04-25  Eric Blake  <ebb9@byu.net>
40082
40083         * lib/fpurge.c (includes): Use stdlib.h for free.
40084         * tests/test-fflush.c (main): Also test fflush-fseeko.
40085
40086 2007-04-25  Bruno Haible  <bruno@clisp.org>
40087
40088         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40089         * lib/fseeko.c: New file.
40090         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40091         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40092         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40093         gl_FUNC_FSEEKO.
40094         (gl_FUNC_FSEEKO): Invoke it.
40095         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40096         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40097         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40098
40099 2007-04-25  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/fflush (Depends-on): Add ftello.
40102
40103 2007-04-25  Bruno Haible  <bruno@clisp.org>
40104
40105         * modules/ftello-tests: New file.
40106         * tests/test-ftello.c: New file.
40107
40108         * modules/ftello: New file.
40109         * m4/ftello.m4: New file.
40110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40111         HAVE_FTELLO.
40112         * lib/stdio_.h (ftello): New declaration.
40113         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40114         HAVE_FTELLO.
40115
40116 2007-04-25  Bruno Haible  <bruno@clisp.org>
40117
40118         * modules/fseeko-tests: New file.
40119         * tests/test-fseeko.c: New file.
40120
40121         * modules/fseeko: New file.
40122         * m4/fseeko.m4: New file.
40123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40124         HAVE_FSEEKO.
40125         * lib/stdio_.h (fseeko): New declaration.
40126         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40127         HAVE_FSEEKO.
40128
40129 2007-04-25  Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40132
40133 2007-04-25  Bruno Haible  <bruno@clisp.org>
40134
40135         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40136         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40137         * tests/test-unistd.c: Likewise.
40138         * tests/test-fcntl.c: Likewise.
40139
40140 2007-04-23  Eric Blake  <ebb9@byu.net>
40141
40142         * lib/fflush.c: Fix missing include.
40143         Reported by Bruno Haible.
40144
40145 2007-04-23  Bruno Haible  <bruno@clisp.org>
40146
40147         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40148         Reported by Eric Blake.
40149
40150 2007-04-23  Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40153
40154 2007-04-23  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40157
40158 2007-04-23  Bruno Haible  <bruno@clisp.org>
40159
40160         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40161         Needed on HP-UX 11.
40162
40163 2007-04-16  Eric Blake  <ebb9@byu.net>
40164
40165         Make fflush rely on fpurge.
40166         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40167         open coding all variants.
40168         * modules/fflush (Depends-on): Add fpurge and unistd.
40169         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40170         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40171
40172         Fix --with-tests compilation on cygwin.
40173         * modules/argmatch-tests (Makefile.am): List gnulib library first
40174         in LDADD.
40175         * modules/argp-tests (Makefile.am): Likewise.
40176         * modules/array-list-tests (Makefile.am): Likewise.
40177         * modules/array-oset-tests (Makefile.am): Likewise.
40178         * modules/avltree-list-tests (Makefile.am): Likewise.
40179         * modules/avltree-oset-tests (Makefile.am): Likewise.
40180         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40181         * modules/carray-list-tests (Makefile.am): Likewise.
40182         * modules/dirname-tests (Makefile.am): Likewise.
40183         * modules/frexp-tests (Makefile.am): Likewise.
40184         * modules/isnanl-tests (Makefile.am): Likewise.
40185         * modules/linked-list-tests (Makefile.am): Likewise.
40186         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40187         * modules/lock-tests (Makefile.am): Likewise.
40188         * modules/rbtree-list-tests (Makefile.am): Likewise.
40189         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40190         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40191         * modules/tls-tests (Makefile.am): Likewise.
40192         * modules/tsearch-tests (Makefile.am): Likewise.
40193         * modules/xvasprintf-tests (Makefile.am): Likewise.
40194
40195         Fix fpurge for cygwin.
40196         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40197         value.
40198         * modules/fpurge-tests (Depends-on): Clean up trash.
40199
40200 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40201
40202         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40203
40204         * m4/autobuild.m4: Re-indent.
40205
40206 2007-04-13  Bruno Haible  <bruno@clisp.org>
40207
40208         * modules/fpurge-tests: New file.
40209         * tests/test-fpurge.c: New file.
40210
40211         * modules/fpurge: New file.
40212         * lib/fpurge.h: New file.
40213         * lib/fpurge.c: New file.
40214         * m4/fpurge.m4: New file.
40215
40216 2007-04-13  Bruno Haible  <bruno@clisp.org>
40217
40218         * modules/fbufmode-tests: New file.
40219         * tests/test-fbufmode.c: New file.
40220
40221         * modules/fbufmode: New file.
40222         * lib/fbufmode.h: New file.
40223         * lib/fbufmode.c: New file.
40224         * m4/fbufmode.m4: New file.
40225
40226 2007-04-13  Bruno Haible  <bruno@clisp.org>
40227
40228         * modules/fwritable-tests: New file.
40229         * tests/test-fwritable.c: New file.
40230
40231         * modules/fwritable: New file.
40232         * lib/fwritable.h: New file.
40233         * lib/fwritable.c: New file.
40234         * m4/fwritable.m4: New file.
40235
40236 2007-04-13  Bruno Haible  <bruno@clisp.org>
40237
40238         * modules/freadable-tests: New file.
40239         * tests/test-freadable.c: New file.
40240
40241         * modules/freadable: New file.
40242         * lib/freadable.h: New file.
40243         * lib/freadable.c: New file.
40244         * m4/freadable.m4: New file.
40245
40246 2007-04-13  Bruno Haible  <bruno@clisp.org>
40247
40248         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40249         MOSTLYCLEANFILES.
40250
40251 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40252
40253         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40254         gzip bootstrap.conf to avoid dragging in i18n machinery.
40255         (gnulib_tool_option): Use it.
40256
40257 2007-04-13  Bruno Haible  <bruno@clisp.org>
40258
40259         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40260         %F directives.
40261         * tests/test-vasprintf-posix.c (test_function): Likewise.
40262         * tests/test-snprintf-posix.h (test_function): Likewise.
40263         * tests/test-sprintf-posix.h (test_function): Likewise.
40264         * tests/test-fprintf-posix.h (test_function): Likewise.
40265         * tests/test-printf-posix.h (test_function): Likewise.
40266         * tests/test-fprintf-posix.out: Likewise.
40267
40268 2007-04-13  Bruno Haible  <bruno@clisp.org>
40269
40270         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40271         * modules/tls-tests (configure.ac): Likewise.
40272         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40273
40274 2007-04-13  Bruno Haible  <bruno@clisp.org>
40275
40276         * lib/tls.c (glthread_tls_get): Fix return type.
40277         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40278
40279 2007-04-12  Eric Blake  <ebb9@byu.net>
40280
40281         * modules/gettime (Depends-on): Remove gettime.
40282         Reported by Dmitry V. Levin.
40283
40284 2007-04-12  Bruno Haible  <bruno@clisp.org>
40285
40286         * modules/fflush (Include): Mention <stdio.h>.
40287         * modules/strtoimax (Include): Mention <inttypes.h>.
40288         * modules/strtoumax (Include): Likewise.
40289
40290 2007-04-12  Eric Blake  <ebb9@byu.net>
40291
40292         * .cvsignore: New file.
40293         * .gitignore: Likewise.
40294
40295 2007-04-12  Bruno Haible  <bruno@clisp.org>
40296
40297         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40298         not before, since $(LDADD) often contains libgnu.a.
40299         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40300         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40301         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40302         Needed on Cygwin.
40303
40304 2007-04-12  Eric Blake  <ebb9@byu.net>
40305
40306         Work around glibc's failure to flush stdin on fclose.
40307         * lib/closein.c (close_stdin): Flush stdin before closing.
40308
40309         Work around glibc's failure to reset seekable stdin on exit.
40310         * modules/closein: New module.
40311         * lib/closein.c: New file.
40312         * lib/closein.h: Likewise.
40313         * m4/closein.m4: Likewise.
40314         * MODULES.html.sh (File stream based Input/Output): Document it.
40315
40316 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40317
40318         * gnulib-tool: Rename generated 'autobuild' script to
40319         'do-autobuild' in --create-megatestdir output.
40320
40321         * doc/gnulib.texi (Build robot for gnulib): Fix.
40322
40323 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40324
40325         * modules/sysexits (Depends-on): Add absolute-header.
40326
40327 2007-04-12  Eric Blake  <ebb9@byu.net>
40328
40329         No need to preserve errno on success.
40330         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40331         Reported by Bruno Haible.
40332
40333 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40334
40335         * MODULES.html.sh (Support for maintaining and releasing
40336         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40337
40338 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40339
40340         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40341
40342 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40343
40344         * modules/autobuild: New module.
40345
40346         * m4/autobuild.m4: New file.
40347
40348 2007-04-11  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40351         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40355         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40356         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40358         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40359         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40361         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40362         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40363         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40364         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40365         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40367         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40368         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40370         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40371         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40373         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40374         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40378         Reported by Eric Blake.
40379
40380 2007-04-11  Bruno Haible  <bruno@clisp.org>
40381
40382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40383
40384 2007-04-10  Bruno Haible  <bruno@clisp.org>
40385
40386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40387         for NaN and Infinity. Needed on FreeBSD 6.1.
40388         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40389         regarding results for "%010a" of Infinity and NaN.
40390         * tests/test-vasprintf-posix.c (test_function): Likewise.
40391         * tests/test-snprintf-posix.h (test_function): Likewise.
40392         * tests/test-sprintf-posix.h (test_function): Likewise.
40393         * tests/test-fprintf-posix.h (test_function): Likewise.
40394         * tests/test-printf-posix.h (test_function): Likewise.
40395         * tests/test-fprintf-posix.out: Likewise.
40396
40397 2007-04-10  Bruno Haible  <bruno@clisp.org>
40398
40399         * modules/locale-tests: New file.
40400         * tests/test-locale.c: New file.
40401
40402         * modules/locale: New file.
40403         * lib/locale_.h: New file.
40404         * m4/locale_h.m4: New file.
40405
40406 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40407             Bruno Haible  <bruno@clisp.org>
40408
40409         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40410         be determined, test for availability of the copysignf, copysign,
40411         copysignl functions.
40412         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40413         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40414         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40415
40416 2007-04-09  Eric Blake  <ebb9@byu.net>
40417
40418         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40419         * modules/stdio (Makefile.am): Support fflush.
40420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40421         * modules/fflush: New file.
40422         * lib/fflush.c: Likewise.
40423         * m4/fflush.m4: Likewise.
40424         * modules/fflush-tests: New test.
40425         * tests/test-fflush.c: Likewise.
40426         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40427
40428 2007-04-06  Bruno Haible  <bruno@clisp.org>
40429
40430         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40431         (VASNPRINTF): Use signbit for faster determination whether to print a
40432         minus sign.
40433         * modules/vasnprintf (Files): Remove lib/float+.h.
40434         * modules/fprintf-posix (Depends-on): Add signbit.
40435         * modules/snprintf-posix (Depends-on): Likewise.
40436         * modules/sprintf-posix (Depends-on): Likewise.
40437         * modules/vasnprintf-posix (Depends-on): Likewise.
40438         * modules/vasprintf-posix (Depends-on): Likewise.
40439         * modules/vfprintf-posix (Depends-on): Likewise.
40440         * modules/vsnprintf-posix (Depends-on): Likewise.
40441         * modules/vsprintf-posix (Depends-on): Likewise.
40442
40443 2007-04-06  Bruno Haible  <bruno@clisp.org>
40444
40445         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40446         * tests/test-frexpl.c (main): Likewise.
40447         * tests/test-ldexpl.c (main): Likewise.
40448         * modules/frexp-tests (Depends-on): Add signbit.
40449         * modules/frexpl-tests (Depdends-on): Likewise.
40450         * modules/ldexpl-tests (Depdends-on): Likewise.
40451
40452 2007-04-06  Bruno Haible  <bruno@clisp.org>
40453
40454         * modules/signbit-tests: New file.
40455         * tests/test-signbit.c: New file.
40456
40457         * modules/signbit: New file.
40458         * lib/signbitf.c: New file.
40459         * lib/signbitd.c: New file.
40460         * lib/signbitl.c: New file.
40461         * m4/signbit.m4: New file.
40462         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40463         (signbit): New macro.
40464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40465         REPLACE_SIGNBIT.
40466         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40467         REPLACE_FREXPL into math.h.
40468
40469 2007-04-06  Bruno Haible  <bruno@clisp.org>
40470
40471         * modules/isnanf-nolibm-tests: New file.
40472         * tests/test-isnanf.c: New file.
40473
40474         * modules/isnanf-nolibm: New file.
40475         * lib/isnanf.h: New file.
40476         * lib/isnanf.c: New file.
40477         * lib/isnan.c: Consider the USE_FLOAT macro.
40478         * m4/isnanf.m4: New file.
40479
40480 2007-04-06  Bruno Haible  <bruno@clisp.org>
40481
40482         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40483         (Link): New section.
40484
40485         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40486
40487 2007-04-06  Bruno Haible  <bruno@clisp.org>
40488
40489         Assume the 'long double' type.
40490         * m4/longdouble.m4: Remove file.
40491         * config/srclist.txt: Don't mention longdouble.m4.
40492         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40493         * lib/float+.h: Likewise.
40494         * lib/frexp.c: Likewise.
40495         * lib/printf-args.h: Likewise.
40496         * lib/printf-args.c: Likewise.
40497         * lib/printf-frexp.c: Likewise.
40498         * lib/printf-parse.c: Likewise.
40499         * lib/vasnprintf.c: Likewise.
40500         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40501         * m4/intl.m4: Likewise.
40502         * m4/isnanl.m4: Likewise.
40503         * m4/printf.m4: Likewise.
40504         * m4/printf-frexpl.m4: Likewise.
40505         * m4/vasnprintf.m4: Likewise.
40506         * modules/allocsa (Files): Remove m4/longdouble.m4.
40507         * modules/gettext (Files): Likewise.
40508         * modules/relocatable-prog-wrapper (Files): Likewise.
40509         * modules/vasnprintf (Files): Likewise.
40510         * modules/isnanl (Files): Likewise.
40511         (Include): Simplify.
40512         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40513         (Include): Simplify.
40514         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40515         (Include): Simplify.
40516         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40517         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40518         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40519         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40520         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40521         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40522         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40523         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40524         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40525         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40526         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40527         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40528         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40529         * tests/test-isnanl.c: Likewise.
40530         * tests/test-snprintf-posix.h: Likewise.
40531         * tests/test-sprintf-posix.h: Likewise.
40532         * tests/test-vasnprintf-posix.c: Likewise.
40533         * tests/test-vasnprintf-posix2.c: Likewise.
40534         * tests/test-vasprintf-posix.c: Likewise.
40535
40536 2007-04-06  Bruno Haible  <bruno@clisp.org>
40537
40538         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40539         * lib/math_.h [__DECC]: Include the overridden include file through
40540         #include_next, outside the double-inclusion guard.
40541         * lib/stdio_.h [__DECC]: Likewise.
40542         * lib/stdlib_.h [__DECC]: Likewise.
40543         * lib/string_.h [__DECC]: Likewise.
40544         * lib/time_.h [__DECC]: Likewise.
40545         * lib/wchar_.h [__DECC]: Likewise.
40546         * lib/wctype_.h [__DECC]: Likewise.
40547         * lib/inttypes_.h [__DECC]: Likewise.
40548         Reported by Albert Chin <china@thewrittenword.com> in
40549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40550
40551 2007-04-04  Eric Blake  <ebb9@byu.net>
40552
40553         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40554         1.5.x.
40555
40556 2007-04-04  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40559         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40560
40561 2007-04-04  Bruno Haible  <bruno@clisp.org>
40562
40563         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40564         results for "%010a" of Infinity and NaN.
40565         * tests/test-vasprintf-posix.c (test_function): Likewise.
40566         * tests/test-snprintf-posix.h (test_function): Likewise.
40567         * tests/test-sprintf-posix.h (test_function): Likewise.
40568         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40569         * tests/test-printf-posix.h (test_function): Likewise.
40570         * tests/test-fprintf-posix.out: Update.
40571         Needed for FreeBSD 6.1.
40572
40573 2007-04-04  Bruno Haible  <bruno@clisp.org>
40574
40575         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40576         directly used by the gnulib modules nor by gnulib-tool.
40577
40578 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40579
40580         * DEPENDENCIES: Give overall description of version dependency
40581         desirability.  Use more-typical names for apps.
40582         Add shell, coreutils, diffutils, grep, tar, gzip.
40583
40584 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40585
40586         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40587
40588 2007-04-04  Karl Berry  <karl@gnu.org>
40589
40590         * MODULES.html.sh (func_module): missing '.
40591
40592 2007-04-03  Bruno Haible  <bruno@clisp.org>
40593
40594         * modules/argmatch-tests (Makefile.am): New variable
40595         test_argmatch_LDADD.
40596         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40597         * modules/array-list-tests (Makefile.am): New variable
40598         test_array_list_LDADD.
40599         * modules/array-oset-tests (Makefile.am): New variable
40600         test_array_oset_LDADD.
40601         * modules/avltree-list-tests (Makefile.am): New variable
40602         test_avltree_list_LDADD.
40603         * modules/avltree-oset-tests (Makefile.am): New variable
40604         test_avltree_oset_LDADD.
40605         * modules/avltreehash-list-tests (Makefile.am): New variable
40606         test_avltreehash_list_LDADD.
40607         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40608         test_canonicalize_lgpl_LDADD.
40609         * modules/carray-list-tests (Makefile.am): New variable
40610         test_carray_list_LDADD.
40611         * modules/dirname-tests (Makefile.am): New variable
40612         test_dirname_LDADD.
40613         * modules/linked-list-tests (Makefile.am): New variable
40614         test_linked_list_LDADD.
40615         * modules/linkedhash-list-tests (Makefile.am): New variable
40616         test_linkedhash_list_LDADD.
40617         * modules/rbtree-list-tests (Makefile.am): New variable
40618         test_rbtree_list_LDADD.
40619         * modules/rbtree-oset-tests (Makefile.am): New variable
40620         test_rbtree_oset_LDADD.
40621         * modules/rbtreehash-list-tests (Makefile.am): New variable
40622         test_rbtreehash_list_LDADD.
40623         * modules/xvasprintf-tests (Makefile.am): New variable
40624         test_xvasprintf_LDADD.
40625         Reported by Eric Blake.
40626
40627 2007-04-03  Eric Blake  <ebb9@byu.net>
40628
40629         * DEPENDENCIES: Weaken m4 requirements.
40630
40631 2007-04-03  Bruno Haible  <bruno@clisp.org>
40632
40633         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40634         * modules/isnanl-tests (configure.ac): Likewise.
40635
40636 2007-04-03  Ben Pfaff  <blp@gnu.org>
40637
40638         * modules/iconv_open: Add $(srcdir)/ to source directory
40639         references in Makefile fragments that call gperf, to fix VPATH
40640         builds.
40641
40642 2007-04-03  Bruno Haible  <bruno@clisp.org>
40643
40644         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40645         * lib/ldexpl.c: Undo last change.
40646
40647 2007-04-03  Bruno Haible  <bruno@clisp.org>
40648
40649         * modules/printf-frexpl (Depends-on): Undo last change.
40650         (Files): Add m4/ldexpl.m4.
40651
40652 2007-04-03  Bruno Haible  <bruno@clisp.org>
40653
40654         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40655         * modules/isnanl (Link): New section.
40656
40657         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40658         * modules/frexp (Link): New section.
40659
40660         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40661         * modules/frexpl (Link): New section.
40662
40663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40664         * modules/ldexpl (Link): New section.
40665
40666 2007-04-03  Bruno Haible  <bruno@clisp.org>
40667
40668         * modules/TEMPLATE-EXTENDED: New file.
40669         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40670
40671 2007-04-03  Bruno Haible  <bruno@clisp.org>
40672
40673         * DEPENDENCIES: New file.
40674         Suggested by Simon Josefsson.
40675
40676 2007-04-03  Bruno Haible  <bruno@clisp.org>
40677
40678         * doc/gnulib.texi: Escape @.
40679
40680 2007-04-03  James Youngman  <jay@gnu.org>
40681         and Paul Eggert  <eggert@cs.ucla.edu>
40682
40683         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40684         birthtime on all systems that have birthtime, not just those which
40685         use st_birthtimensec rather than st_birthtim.  Putting zero in
40686         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40687         that the birth time is not available for files on an NFS mount.
40688
40689 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40690
40691         * modules/memxor: Move back from crypto/, suggested by Bruno.
40692         * modules/crypto/hmac-sha1: Fix memxor dependency.
40693
40694         * modules/crypto/gc: Moved from ../.
40695
40696 2007-04-02  Eric Blake  <ebb9@byu.net>
40697
40698         * lib/ldexpl.c (includes): Avoid libm.
40699
40700         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40701
40702 2007-04-02  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40705         on IRIX.
40706
40707 2007-04-02  Bruno Haible  <bruno@clisp.org>
40708
40709         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40710         x86 or x86_64 platforms running MacOS X.
40711         Reported by Ryan Schmidt <@ryandesign.com>.
40712
40713 2007-04-02  Bruno Haible  <bruno@clisp.org>
40714
40715         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40716         i386.
40717
40718 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40719
40720         * modules/crypto/arcfour: Moved from ../.
40721         * modules/crypto/arcfour-tests: Moved from ../.
40722         * modules/crypto/arctwo: Moved from ../.
40723         * modules/crypto/arctwo-tests: Moved from ../.
40724         * modules/crypto/des: Moved from ../.
40725         * modules/crypto/des-tests: Moved from ../.
40726         * modules/crypto/gc-arcfour: Moved from ../.
40727         * modules/crypto/gc-arcfour-tests: Moved from ../.
40728         * modules/crypto/gc-arctwo: Moved from ../.
40729         * modules/crypto/gc-arctwo-tests: Moved from ../.
40730         * modules/crypto/gc-des: Moved from ../.
40731         * modules/crypto/gc-des-tests: Moved from ../.
40732         * modules/crypto/gc-hmac-md5: Moved from ../.
40733         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40734         * modules/crypto/gc-hmac-sha1: Moved from ../.
40735         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40736         * modules/crypto/gc-md2: Moved from ../.
40737         * modules/crypto/gc-md2-tests: Moved from ../.
40738         * modules/crypto/gc-md4: Moved from ../.
40739         * modules/crypto/gc-md4-tests: Moved from ../.
40740         * modules/crypto/gc-md5: Moved from ../.
40741         * modules/crypto/gc-md5-tests: Moved from ../.
40742         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40743         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40744         * modules/crypto/gc-random: Moved from ../.
40745         * modules/crypto/gc-rijndael: Moved from ../.
40746         * modules/crypto/gc-rijndael-tests: Moved from ../.
40747         * modules/crypto/gc-sha1: Moved from ../.
40748         * modules/crypto/gc-sha1-tests: Moved from ../.
40749         * modules/crypto/gc-tests: Moved from ../.
40750         * modules/crypto/hmac-md5: Moved from ../.
40751         * modules/crypto/hmac-md5-tests: Moved from ../.
40752         * modules/crypto/hmac-sha1: Moved from ../.
40753         * modules/crypto/hmac-sha1-tests: Moved from ../.
40754         * modules/crypto/md2: Moved from ../.
40755         * modules/crypto/md2-tests: Moved from ../.
40756         * modules/crypto/md4: Moved from ../.
40757         * modules/crypto/md4-tests: Moved from ../.
40758         * modules/crypto/md5: Moved from ../.
40759         * modules/crypto/md5-tests: Moved from ../.
40760         * modules/crypto/memxor: Moved from ../.
40761         * modules/crypto/rijndael: Moved from ../.
40762         * modules/crypto/rijndael-tests: Moved from ../.
40763         * modules/crypto/sha1: Moved from ../.
40764
40765 2007-03-30  James Youngman  <jay@gnu.org>
40766
40767         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40768         rename() to change the ctime of a file (because ctime is unaffected
40769         by rename on jfs2 on AIX 5.1).
40770         (main): Start by doing cleanup, in case a previous run failed leaving
40771         test files behind.
40772
40773 2007-03-31  Bruno Haible  <bruno@clisp.org>
40774
40775         Support old proprietary implementations of iconv.
40776         * modules/iconv_open: New file.
40777         * lib/iconv_.h: New file.
40778         * m4/iconv_h.m4: New file.
40779         * lib/iconv_open.c: New file.
40780         * lib/iconv_open-aix.gperf: New file.
40781         * lib/iconv_open-hpux.gperf: New file.
40782         * lib/iconv_open-irix.gperf: New file.
40783         * lib/iconv_open-osf.gperf: New file.
40784         * m4/iconv_open.m4: New file.
40785         * modules/linebreak (Depends-on): Add iconv_open.
40786         * modules/striconv (Depends-on): Likewise.
40787         * modules/striconveh (Depends-on): Likewise.
40788         * modules/unicodeio (Depends-on): Likewise.
40789         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40790         (iconv_t)(-1).
40791         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40792         conversion if cd is (iconv_t)(-1).
40793         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40794         is not possible.
40795
40796 2007-03-31  Bruno Haible  <bruno@clisp.org>
40797
40798         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40799         work on Solaris either. Protect also second use of "autodetect_jp".
40800
40801 2007-03-31  Bruno Haible  <bruno@clisp.org>
40802
40803         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40804         the function is not present.
40805
40806 2007-03-31  Bruno Haible  <bruno@clisp.org>
40807
40808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40809         the function is not present.
40810
40811 2007-03-31  Bruno Haible  <bruno@clisp.org>
40812
40813         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40814         a bug in HP-UX iconv_open().
40815
40816 2007-03-31  Bruno Haible  <bruno@clisp.org>
40817
40818         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40819         (Mathematics <math.h>): New section, add fpieee.
40820         (Input/output <stdio.h>): Add fseterr.
40821         (Mathematics <math.h>): New section, add printf-frexp.
40822         (Container data structures): Add sublist.
40823         (Core language properties): Add fpucw, inline.
40824         (Functions for greatest-width integer types <inttypes.h>): Add
40825         imaxabs, imaxdiv, inttypes.
40826         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40827         isnanl-nolibm, ldexp.
40828         (Mathematics <math.h>): New section, add printf-frexpl.
40829         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40830         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40831         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40832         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40833         (Unicode string functions): Add unistr/u*-mbtoucr.
40834         (Java): Add javacomp-script, javaexec-script.
40835         (C#): Add csharpcomp-script, csharpexec-script.
40836         (Support for building libraries and executables): Add havelib,
40837         relocatable-*.
40838         (Support for maintaining and releasing projects): Renamed from
40839         'Support for maintaining and release projects'. Add announce-gen.
40840
40841 2007-03-31  Bruno Haible  <bruno@clisp.org>
40842
40843         * README: Talk primarily about git.
40844         (git and CVS): Renamed from CVS.
40845         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40846         gnulib is available through git.
40847         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40848
40849 2007-03-30  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40852         * lib/poll_.h: Likewise.
40853         * lib/stat_.h: Likewise.
40854         * lib/sys_time_.h: Likewise.
40855         * lib/sysexit_.h: Likewise.
40856         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40857         * lib/stdbool_.h: Likewise.
40858         * lib/byteswap_.h: Add double-inclusion guard.
40859
40860 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40861
40862         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40863
40864 2007-03-30  Karl Berry  <karl@gnu.org>
40865
40866         * config/srclist-update: double space after USA in the license
40867         substitution, since that's how it's usually (?) written.
40868
40869 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40870
40871         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40872         reported by Bruno Haible.
40873
40874 2007-03-29  Bruno Haible  <bruno@clisp.org>
40875
40876         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40877         a bug in AIX iconv().
40878
40879 2007-03-29  Bruno Haible  <bruno@clisp.org>
40880
40881         * modules/ldexpl-tests: New file.
40882         * tests/test-ldexpl.c: New file.
40883
40884 2007-03-29  Bruno Haible  <bruno@clisp.org>
40885
40886         * lib/ldexpl.c: Include fpucw.h.
40887         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40888         multiplication.
40889         * modules/ldexpl (Depends-on): Add fpucw.
40890
40891 2007-03-29  Bruno Haible  <bruno@clisp.org>
40892
40893         * modules/ldexpl: New file.
40894         * m4/ldexpl.m4: New file.
40895         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40896         set.
40897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40898         REPLACE_LDEXPL.
40899         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40900         REPLACE_LDEXPL.
40901         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40902         gl_FUNC_LDEXPL_WORKS.
40903         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40904         * modules/mathl (Files): Remove lib/ldexpl.c.
40905         (Depends-on): Add ldexpl.
40906
40907 2007-03-29  Bruno Haible  <bruno@clisp.org>
40908
40909         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40910
40911 2007-03-29  Bruno Haible  <bruno@clisp.org>
40912
40913         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40914         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40915         and possibly also HP-UX.
40916         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40917         work on AIX, IRIX, HP-UX, OSF/1.
40918         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40919         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40920         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40921         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40922         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
40923         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40924
40925 2007-03-29  Bruno Haible  <bruno@clisp.org>
40926
40927         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
40928
40929 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40930
40931         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
40932         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
40933
40934 2007-03-29  Eric Blake  <ebb9@byu.net>
40935
40936         * lib/acl-internal.h: Remove redundant include.
40937         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
40938         Cygwin when a file is locked.
40939
40940 2007-03-29  Bruno Haible  <bruno@clisp.org>
40941
40942         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
40943         file.
40944         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
40945
40946 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40947
40948         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
40949         try to remove a parent directory if the child couldn't be removed
40950         (except for the first rmdir, which could fail because the child
40951         doesn't exist).  Problem reported by Jeff Blaine in
40952         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
40953
40954 2007-03-28  Bruno Haible  <bruno@clisp.org>
40955
40956         * lib/striconveh.c (utf8conv_carefully): New function.
40957         (mem_cd_iconveh_internal): Invoke it.
40958
40959 2007-03-28  Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
40962         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
40963         input.
40964         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
40965         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
40966         unistr/u8-uctomb.
40967
40968 2007-03-28  Bruno Haible  <bruno@clisp.org>
40969
40970         * modules/unistr/u8-mbtoucr: New file.
40971         * lib/unistr/u8-mbtoucr.c: New file.
40972         * modules/unistr/u16-mbtoucr: New file.
40973         * lib/unistr/u16-mbtoucr.c: New file.
40974         * modules/unistr/u16-mbtoucr: New file.
40975         * lib/unistr/u16-mbtoucr.c: New file.
40976         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
40977
40978 2007-03-27  Simon Josefsson  <simon@josefsson.org>
40979             Bruno Haible  <bruno@clisp.org>
40980
40981         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
40982         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
40983         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
40984
40985         * m4/stdio_h.m4: Add stubs for vasprintf too.
40986
40987         * modules/stdio: Support vasprintf in sed command.
40988
40989         * modules/vasprintf: Depend on stdio for prototypes.  Remove
40990         vasprintf.h.  Add stdio module indicator.
40991
40992         * lib/stdio_.h: Declare asprintf and vasprintf, based on
40993         vasprintf.h.
40994
40995         * lib/vasprintf.h: File removed.
40996
40997         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
40998         * lib/vasprintf.c: Ditto.
40999         * lib/xvasprintf.c: Ditto.
41000         * tests/test-vasprintf-posix.c: Ditto.
41001         * tests/test-vasprintf.c: Ditto.
41002
41003 2007-03-27  Bruno Haible  <bruno@clisp.org>
41004
41005         Make vasnprintf multithread-safe.
41006         * lib/vasnprintf.c (decimal_point_char): New function.
41007         (VASNPRINTF): Use it.
41008         Suggested by Simon Josefsson.
41009
41010 2007-03-27  Eric Blake  <ebb9@byu.net>
41011
41012         Support sub-second birthtime on cygwin.
41013         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41014         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41015         (get_stat_birthtime): Also work with st_birthtim.
41016
41017 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41018
41019         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41020         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41021         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41022         (get_stat_birthtime_ns): Simplify compile-time tests.
41023         (get_stat_birthtime): Change the API to look like
41024         get_stat_mtime etc., except return a negative tv_nsec on error.
41025         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41026         Don't check for "spare" fields.
41027         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41028         or for struct stat.st_birthtime, as these tests aren't used.
41029         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41030
41031 2007-03-27  Bruno Haible  <bruno@clisp.org>
41032
41033         * lib/stat-time.h: Include <sys/stat.h>.
41034
41035 2007-03-27  James Youngman  <jay@gnu.org>
41036
41037         * lib/stat-time.h (get_stat_birthtime): New function for
41038           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41039         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41040           and its variants.
41041         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41042         * modules/stat-time-test: New file.
41043         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41044
41045 2007-03-26  Bruno Haible  <bruno@clisp.org>
41046
41047         Better support of signalling NaNs.
41048         * lib/atanl.c: Include isnanl.h.
41049         (atanl): Perform test for NaN at the beginning of the function and
41050         through a call to isnanl.
41051         * lib/cosl.c: Include isnanl.h.
41052         (cosl): Perform test for NaN at the beginning of the function and
41053         through a call to isnanl.
41054         * lib/ldexpl.c: Include isnanl.h.
41055         (ldexpl): Perform test for NaN through a call to isnanl.
41056         * lib/logl.c: Include isnanl.h.
41057         (logl): Perform test for NaN at the beginning of the function and
41058         through a call to isnanl.
41059         * lib/sinl.c: Include isnanl.h.
41060         (sinl): Perform test for NaN at the beginning of the function and
41061         through a call to isnanl.
41062         * lib/sqrtl.c: Include isnanl.h.
41063         (sqrtl): Perform test for NaN at the beginning of the function and
41064         through a call to isnanl.
41065         * lib/tanl.c: Include isnanl.h.
41066         (tanl): Perform test for NaN at the beginning of the function and
41067         through a call to isnanl.
41068         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41069         * modules/mathl (Depends-on): Add isnanl.
41070
41071 2007-03-26  Eric Blake  <ebb9@byu.net>
41072
41073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41074         regression in logic sense of previous patch.
41075
41076 2007-03-26  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41079         unportable shell command "if ! ...".
41080         Reported by Ralf Wildenhues.
41081
41082 2007-03-25  Bruno Haible  <bruno@clisp.org>
41083
41084         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41085         <sysexits.h> file, and only add EX_CONFIG.
41086         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41087         absolute file name and whether it is sufficient. Substitute also
41088         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41089         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41090         ABSOLUTE_SYSEXITS_H into sysexits.h.
41091
41092 2007-03-25  Bruno Haible  <bruno@clisp.org>
41093
41094         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41095         hints is NULL.
41096
41097 2007-03-25  Bruno Haible  <bruno@clisp.org>
41098
41099         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41100         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41101
41102 2007-03-25  Bruno Haible  <bruno@clisp.org>
41103
41104         * lib/vasnprintf.c: Include langinfo.h.
41105         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41106         multithread-safe.
41107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41113         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41116         Reported by Simon Josefsson.
41117
41118 2007-03-25  Bruno Haible  <bruno@clisp.org>
41119
41120         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41121         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41122         * modules/vasnprintf (Depends-on): Add stdint.
41123
41124 2007-03-25  Bruno Haible  <bruno@clisp.org>
41125
41126         * modules/fpieee: New file.
41127         * m4/fpieee.m4: New file.
41128         * modules/isnan-nolibm (Depends-on): Add fpieee.
41129         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41130         * modules/isnanl (Depends-on): Add fpieee.
41131
41132 2007-03-25  Bruno Haible  <bruno@clisp.org>
41133
41134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41135
41136 2007-03-25  Bruno Haible  <bruno@clisp.org>
41137
41138         Avoid test failures on IRIX 6.5.
41139         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41140         (main): Use it.
41141         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41142         macros.
41143         (main): Use them.
41144
41145 2007-03-25  Bruno Haible  <bruno@clisp.org>
41146
41147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41148         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41149         exists but doesn't work.
41150         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41151         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41153         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41154
41155 2007-03-25  Bruno Haible  <bruno@clisp.org>
41156
41157         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41158         returns inf. Needed on IRIX 6.5.
41159
41160 2007-03-25  Bruno Haible  <bruno@clisp.org>
41161
41162         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41163         (main): Use isnanl instead of x != x idiom.
41164         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41165
41166         * tests/test-frexp.c: Include isnan.h.
41167         (main): Use isnan instead of x != x idiom.
41168         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41169
41170 2007-03-25  Bruno Haible  <bruno@clisp.org>
41171
41172         * tests/test-frexp.c (NaN): New function/macro.
41173         (main): Use it instead of 0.0 / 0.0.
41174         * tests/test-isnan.c (NaN): New function/macro.
41175         (main): Use it instead of 0.0 / 0.0.
41176         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41177         (test_function): Use it instead of 0.0 / 0.0.
41178         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41179         (test_function): Use it instead of 0.0 / 0.0.
41180         * tests/test-snprintf-posix.h (NaN): New function/macro.
41181         (test_function): Use it instead of 0.0 / 0.0.
41182         * tests/test-sprintf-posix.h (NaN): New function/macro.
41183         (test_function): Use it instead of 0.0 / 0.0.
41184         * tests/test-fprintf-posix.h (NaN): New function/macro.
41185         (test_function): Use it instead of 0.0 / 0.0.
41186         * tests/test-printf-posix.h (NaN): New function/macro.
41187         (test_function): Use it instead of 0.0 / 0.0.
41188
41189         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41190
41191 2007-03-25  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41194
41195 2007-03-25  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/regexec.c (merge_state_with_log): Make static.
41198
41199 2007-03-25  Bruno Haible  <bruno@clisp.org>
41200
41201         * lib/trigl.c (kernel_rem_pio2): Make static.
41202
41203 2007-03-25  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/sincosl.c (sincosl_table): Make static.
41206
41207 2007-03-25  Bruno Haible  <bruno@clisp.org>
41208
41209         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41210         if the compiler does not support C99.
41211
41212 2007-03-25  Bruno Haible  <bruno@clisp.org>
41213
41214         * modules/time (Makefile.am): Ensure all rule action lines start with a
41215         tab.
41216
41217 2007-03-24  Bruno Haible  <bruno@clisp.org>
41218
41219         * modules/tsearch-tests: New file.
41220         * tests/test-tsearch.sh: New file.
41221         * tests/test-tsearch.c: New file, mostly copied from glibc.
41222
41223         * modules/search-tests: New file.
41224         * tests/test-search.c: New file.
41225
41226         * modules/search: New file.
41227         * lib/search_.h: New file, incorporating lib/tsearch.h.
41228         * m4/search_h.m4: New file.
41229         * lib/tsearch.h: Remove file.
41230         * lib/tsearch.c: Include search.h instead of tsearch.h.
41231         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41232         HAVE_TSEARCH.
41233         * modules/tsearch (Files): Remove lib/tsearch.h.
41234         (Depends-on): Add search.
41235         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41236         (Include): Change tsearch.h into search.h.
41237
41238 2007-03-24  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/fpucw: New file.
41241         * lib/fpucw.h: New file.
41242         * lib/frexp.c: Include fpucw.h.
41243         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41244         (FUNC): Use them.
41245         * lib/printf-frexp.c: Include fpucw.h.
41246         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41247         (FUNC): Use them.
41248         * lib/vasnprintf.c: Include fpucw.h.
41249         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41250         'long double' calculations.
41251         * tests/test-frexpl.c: Include fpucw.h.
41252         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41253         * tests/test-printf-frexpl.c: Include fpucw.h.
41254         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41255         * modules/frexpl (Depends-on): Add fpucw.
41256         * modules/printf-frexpl (Depends-on): Likewise.
41257         * modules/fprintf-posix (Depends-on): Likewise.
41258         * modules/snprintf-posix (Depends-on): Likewise.
41259         * modules/sprintf-posix (Depends-on): Likewise.
41260         * modules/vasnprintf-posix (Depends-on): Likewise.
41261         * modules/vasprintf-posix (Depends-on): Likewise.
41262         * modules/vfprintf-posix (Depends-on): Likewise.
41263         * modules/vsnprintf-posix (Depends-on): Likewise.
41264         * modules/vsprintf-posix (Depends-on): Likewise.
41265         * modules/frexpl-tests (Depends-on): Likewise.
41266         * modules/printf-frexpl-tests (Depends-on): Likewise.
41267
41268 2007-03-24  Bruno Haible  <bruno@clisp.org>
41269
41270         * lib/float+.h: New file.
41271         * lib/isnan.c: Include float+.h.
41272         (SIZE): New macro.
41273         (FUNC): Compare only SIZE bytes of the value.
41274         * lib/vasnprintf.c: Include float+.h.
41275         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41276         SIZEOF_LDBL or SIZEOF_DBL bytes.
41277         * modules/isnan-nolibm (Files): Add lib/float+.h.
41278         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41279         * modules/isnanl (Files): Add lib/float+.h.
41280         * modules/vasnprintf (Files): Add lib/float+.h.
41281
41282 2007-03-24  Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41285         include isnanl-nolibm.h.
41286
41287 2007-03-24  Bruno Haible  <bruno@clisp.org>
41288
41289         * tests/test-read-file.c (main): Don't produce spurious output for
41290         expected situations. Make the test fail if it encountered unexpected
41291         results.
41292
41293 2007-03-24  Bruno Haible  <bruno@clisp.org>
41294
41295         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41296         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41297
41298 2007-03-24  Bruno Haible  <bruno@clisp.org>
41299
41300         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41301
41302 2007-03-24  Bruno Haible  <bruno@clisp.org>
41303
41304         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41305         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41306
41307         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41308         * modules/utf8-ucs4: Turn into a symbolic link to module
41309         unistr/u8-mbtouc.
41310
41311         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41312         utf8-ucs4-unsafe.
41313         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41314         unistr/u8-mbtouc-unsafe.
41315
41316         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41317         * modules/utf16-ucs4: Turn into a symbolic link to module
41318         unistr/u16-mbtouc.
41319
41320         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41321         utf16-ucs4-unsafe.
41322         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41323         unistr/u16-mbtouc-unsafe.
41324
41325         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41326         * modules/ucs4-utf8: Turn into a symbolic link to module
41327         unistr/u8-ubtomb.
41328
41329         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41330         * modules/ucs4-utf16: Turn into a symbolic link to module
41331         unistr/u16-ubtomb.
41332
41333 2007-03-24  Bruno Haible  <bruno@clisp.org>
41334
41335         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41336         Enable the function only if HAVE_INLINE.
41337         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41338         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41339         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41340         Enable the function only if HAVE_INLINE.
41341         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41342         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41343         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41344         Enable the function only if HAVE_INLINE.
41345         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41346         Enable the function only if HAVE_INLINE.
41347         * modules/utf8-ucs4: Update.
41348         * modules/utf8-ucs4-unsafe: Update.
41349         * modules/utf16-ucs4: Update.
41350         * modules/utf16-ucs4-unsafe: Update.
41351         * modules/ucs4-utf8: Update.
41352         * modules/ucs4-utf16: Update.
41353
41354 2007-03-24  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/utf8-ucs4.h: Remove file.
41357         * lib/utf8-ucs4-unsafe.h: Remove file.
41358         * lib/utf16-ucs4.h: Remove file.
41359         * lib/utf16-ucs4-unsafe.h: Remove file.
41360         * lib/ucs4-utf8.h: Remove file.
41361         * lib/ucs4-utf16.h: Remove file.
41362         * lib/unistr.h: Include their previous contents.
41363         * m4/utf-ucs4.m4: Remove file.
41364         * m4/ucs4-utf.m4: Remove file.
41365         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41366         (Depends-on): Add unistr/base.
41367         (configure.ac): Remove gl_UTF_UCS4.
41368         (Makefile.am): Update.
41369         (Include): Change to unistr.h.
41370         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41371         (Depends-on): Add unistr/base.
41372         (configure.ac): Remove gl_UTF_UCS4.
41373         (Makefile.am): Update.
41374         (Include): Change to unistr.h.
41375         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41376         (Depends-on): Add unistr/base.
41377         (configure.ac): Remove gl_UTF_UCS4.
41378         (Makefile.am): Update.
41379         (Include): Change to unistr.h.
41380         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41381         (Depends-on): Add unistr/base.
41382         (configure.ac): Remove gl_UTF_UCS4.
41383         (Makefile.am): Update.
41384         (Include): Change to unistr.h.
41385         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41386         (Depends-on): Add unistr/base.
41387         (configure.ac): Remove gl_UCS4_UTF.
41388         (Makefile.am): Update.
41389         (Include): Change to unistr.h.
41390         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41391         (Depends-on): Add unistr/base.
41392         (configure.ac): Remove gl_UCS4_UTF.
41393         (Makefile.am): Update.
41394         (Include): Change to unistr.h.
41395         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41396         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41397         utf8-ucs4-unsafe.h.
41398         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41399         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41400         utf16-ucs4-unsafe.h.
41401         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41402         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41403         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41404         * lib/unistr/u8-strchr.c: Likewise.
41405         * lib/unistr/u8-strrchr.c: Likewise.
41406         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41407         * lib/unistr/u16-strchr.c: Likewise.
41408         * lib/unistr/u16-strrchr.c: Likewise.
41409         * lib/striconveh.c: Update.
41410         * lib/linebreak.c: Update.
41411
41412 2007-03-24  Bruno Haible  <bruno@clisp.org>
41413
41414         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41415         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41416
41417 2007-03-22  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41420
41421 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41422
41423         * MODULES.html.sh (File system functions): New module write-any-file.
41424         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41425         * m4/write-any-file.m4: New files.
41426
41427 2007-03-23  Eric Blake  <ebb9@byu.net>
41428
41429         * gnulib-tool: Rearrange space-tab sequences, since some editors
41430         like to eat them.
41431
41432 2007-03-23  Eric Blake  <ebb9@byu.net>
41433
41434         * lib/version-etc.c (version_etc_va): Update license wording to
41435         be more concise.  Recommended by Richard Stallman.
41436
41437 2007-03-22  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/poll.c (MSG_PEEK): New fallback definition.
41440
41441 2007-03-22  Bruno Haible  <bruno@clisp.org>
41442
41443         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41444         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41445         (main): Update.
41446         Fixes a compilation error on BeOS.
41447
41448 2007-03-22  Bruno Haible  <bruno@clisp.org>
41449
41450         * modules/frexpl-tests: New file.
41451         * tests/test-frexpl.c: New file.
41452
41453         * modules/frexpl: New file.
41454         * m4/frexpl.m4: New file.
41455         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41456         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41458         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41459         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41460         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41461
41462 2007-03-22  Bruno Haible  <bruno@clisp.org>
41463
41464         * lib/frexpl.c: Share code with lib/frexp.c.
41465         * modules/mathl (Files): Add lib/frexp.c.
41466         (Depends-on): Add isnanl-nolibm.
41467
41468 2007-03-22  Bruno Haible  <bruno@clisp.org>
41469
41470         * modules/printf-frexp (Files): Add m4/frexp.m4.
41471         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41472         only if the found frexp function actually works.
41473
41474 2007-03-22  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/frexp.c: Remove older implementation that uses divisions.
41477
41478 2007-03-21  Bruno Haible  <bruno@clisp.org>
41479
41480         * modules/frexp-tests: New file.
41481         * tests/test-frexp.c: New file.
41482
41483         * modules/frexp: New file.
41484         * lib/frexp.c: New file.
41485         * m4/frexp.m4: New file.
41486         * lib/math_.h (frexp): New declaration.
41487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41488         REPLACE_FREXP.
41489         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41490
41491 2007-03-21  Bruno Haible  <bruno@clisp.org>
41492
41493         * modules/isnanl-tests: New file.
41494         * tests/test-isnanl.c: New file.
41495
41496         * modules/isnanl: New file.
41497         * lib/isnanl.h: New file.
41498         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41499         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41500         gl_FUNC_ISNANL_WORKS.
41501         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41502         New macros.
41503
41504 2007-03-21  Bruno Haible  <bruno@clisp.org>
41505
41506         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41507         lib/isnanl.h.
41508         (Include): Update.
41509         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41510         * lib/vasnprintf.c: Update.
41511         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41512         tests/test-isnanl.h, remove tests/test-isnanl.c.
41513         (Makefile.am): Update.
41514         * tests/test-isnanl-nolibm.c: New file.
41515         * tests/test-isnanl.h: New file.
41516         * tests/test-isnanl.c: Remove file.
41517
41518 2007-03-21  Jim Meyering  <jim@meyering.net>
41519
41520         When trying to open ".", treat ESTALE like EACCES.
41521         * lib/savewd.c (savewd_save): Resort to forking not just upon
41522         failure with EACCES, but also when errno is ESTALE.
41523
41524 2007-03-20  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41527         Needed on AIX 5.1. Reported by Matthew Woehlke.
41528
41529 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41530
41531         Suggestions by Bruno Haible:
41532         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41533         our own.
41534         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41535         * modules/acl (Depends-on): Add gettext.
41536
41537 2007-03-19  Bruno Haible  <bruno@clisp.org>
41538
41539         * modules/iconvme: Remove file.
41540         * lib/iconvme.h: Remove file.
41541         * lib/iconvme.c: Remove file.
41542         * m4/iconvme.m4: Remove file.
41543
41544 2007-03-19  Bruno Haible  <bruno@clisp.org>
41545
41546         * doc/relocatable-maint.texi: Break long shell script line.
41547         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41548
41549 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41550
41551         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41552         handle file_has_acl.
41553         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41554         * lib/acl.c: Move header inclusions and related macro defns into
41555         lib/acl-internal.h.
41556         (S_ISLNK): Remove defn, since that's now done for us.
41557         (file_has_acl): Move to lib/file-has-acl.c.
41558         Call acl_trivial if available.  This is the crucial part of the fix.
41559         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41560         shared within the library.  Rewrite a bit, partly to make it compatible
41561         with the GNU coding style.
41562         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41563         Remove unnecessary double-quotes.
41564         Don't test for acl_to_text; the build will catch that.
41565         Replace acl_entries if it doesn't exist and it is needed.
41566         Check for -lsec and acl_trivial (as used on Solaris 10).
41567         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41568         lib/file-has-acl.c.
41569         (Depends-on): Add sys_stat, for S_ISLNK.
41570
41571 2007-03-19  Ben Pfaff  <blp@gnu.org>
41572
41573         * doc/gnulib.texi: Fix typos.
41574         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41575
41576 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41577
41578         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41579         If size is zero here, buf must be zero.
41580
41581 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41582
41583         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41584         <bruno@clisp.org>.
41585
41586 2007-03-18  Bruno Haible  <bruno@clisp.org>
41587
41588         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41589         Suggested by Eric Blake.
41590
41591 2007-03-18  Ben Pfaff  <blp@gnu.org>
41592
41593         * doc/relocatable.texi: Recommend using as prefix a directory
41594         that does not exist and will never be created.  Based on
41595         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41596         and others.
41597
41598 2007-03-17  Bruno Haible  <bruno@clisp.org>
41599
41600         * lib/fchownat.c: Include lchown.h.
41601
41602 2007-03-17  Bruno Haible  <bruno@clisp.org>
41603
41604         Fix endless loop when the given allocated size was > INT_MAX.
41605         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41606         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41607         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41608         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41609         * lib/sprintf.c (sprintf): Likewise.
41610
41611 2007-03-17  Bruno Haible  <bruno@clisp.org>
41612
41613         * tests/test-argp-2.sh (func_compare): Output a context diff.
41614
41615 2007-03-17  Bruno Haible  <bruno@clisp.org>
41616
41617         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41618         locale's decimal-point character.
41619
41620 2007-03-17  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41623         before comparing it. Needed because on some platforms (e.g. x86) a
41624         'long double' occupies less bytes than sizeof (long double).
41625
41626 2007-03-17  Bruno Haible  <bruno@clisp.org>
41627
41628         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41629         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41630         * tests/test-getaddrinfo.c (simple): Likewise.
41631         * tests/test-read-file.c (main): Likewise.
41632
41633 2007-03-17  Bruno Haible  <bruno@clisp.org>
41634
41635         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41636
41637 2007-03-17  Bruno Haible  <bruno@clisp.org>
41638
41639         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41640         unused variable.
41641
41642 2007-03-17  Bruno Haible  <bruno@clisp.org>
41643
41644         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41645         * tests/test-c-strncasecmp.c: Likewise.
41646
41647 2007-03-17  Bruno Haible  <bruno@clisp.org>
41648
41649         * modules/stdlib (Depends-on): Add unistd.
41650         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41651         Needed for MacOS X 10.3.
41652
41653 2007-03-17  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41656
41657 2007-03-17  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41660
41661 2007-03-17  Bruno Haible  <bruno@clisp.org>
41662
41663         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41664         to reflect files copied from gnulib (with or without modifications).
41665         Suggested by Jim Meyering.
41666
41667 2007-03-17  Eric Blake  <ebb9@byu.net>
41668
41669         * NEWS: Document stdlib change from 2007-02-18.
41670
41671 2007-03-17  Jim Meyering  <jim@meyering.net>
41672
41673         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41674         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41675         someone uses a name containing shell meta-characters.
41676         Reported by Alfred M. Szmidt.
41677
41678         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41679
41680 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41681
41682         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41683         and copy gettext configuration files only if configure.ac contains
41684         a use of AM_GNU_GETTEXT_VERSION.
41685
41686 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41687
41688         * build-aux/bootstrap (gnulib_name): New variable.
41689         (gnulib_tool_options): Use it.
41690
41691 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41692
41693         * tests/test-des.c: Use new namespace.
41694
41695 2007-03-15  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41698         Reported by James Youngman <jay@gnu.org>.
41699
41700 2007-03-15  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41703         declared prototype. Needed with cc on OSF/1 5.1.
41704
41705 2007-03-15  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41708         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41709         (struct gl_list_implementation): Add dispose_fn argument to the
41710         'create_empty', 'create' methods.
41711         (struct gl_list_impl_base): Add field 'dispose_fn'.
41712         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41713         argument.
41714         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41715         dispose_fn argument.
41716         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41717         dispose_fn on the dropped values.
41718         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41719         dispose_fn argument.
41720         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41721         dropped values.
41722         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41723         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41724         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41725         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41726         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41727         argument.
41728         (gl_tree_list_free): Call dispose_fn on the dropped values.
41729         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41730         the dropped values.
41731         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41732         Add dispose_fn argument.
41733         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41734         Call dispose_fn on the dropped values.
41735         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41736         Add dispose_fn argument.
41737         (gl_sublist_create): Initialize the 'dispose_fn' field.
41738         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41739         * tests/test-array_list.c (main): Update.
41740         * tests/test-carray_list.c (main): Update.
41741         * tests/test-avltree_list.c (main): Update.
41742         * tests/test-rbtree_list.c (main): Update.
41743         * tests/test-avltreehash_list.c (main): Update.
41744         * tests/test-rbtreehash_list.c (main): Update.
41745         * tests/test-linked_list.c (main): Update.
41746         * tests/test-linkedhash_list.c (main): Update.
41747         * tests/test-array_oset.c (main): Update.
41748
41749 2007-03-15  Bruno Haible  <bruno@clisp.org>
41750
41751         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41752         (gl_oset_create_empty): Add dispose_fn argument.
41753         (struct gl_oset_implementation): Add dispose_fn argument to
41754         'create_empty' method.
41755         (struct gl_oset_impl_base): Add dispose_fn field.
41756         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41757         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41758         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41759         values.
41760         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41761         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41762         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41763         dropped value.
41764         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41765         dropped value.
41766         * tests/test-array_oset.c (main): Update.
41767         * tests/test-avltree_oset.c (main): Update.
41768         * tests/test-rbtree_oset.c (main): Update.
41769         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41770
41771 2007-03-13  Bruno Haible  <bruno@clisp.org>
41772
41773         * tests/test-stdbool.c (i): Update after last patch.
41774
41775 2007-03-12  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41778         the iswprint macro. Needed on Solaris 2.5.1.
41779
41780 2007-03-12  Bruno Haible  <bruno@clisp.org>
41781
41782         * tests/test-printf-frexp.c (main): Declare x as volatile.
41783
41784 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41785
41786         * doc/gnulib.texi (Build robot for gnulib): New section.
41787
41788 2007-03-12  Jim Meyering  <jim@meyering.net>
41789
41790         * build-aux/bootstrap: New file.
41791         * build-aux/bootstrap.conf: New file, from coreutils.
41792
41793 2007-03-11  Bruno Haible  <bruno@clisp.org>
41794
41795         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41796
41797 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41798
41799         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41800         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41801         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41802
41803 2007-03-11  Bruno Haible  <bruno@clisp.org>
41804
41805         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41806         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41807
41808 2007-03-11  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41811         formula. Needed for SunPRO C 5.0.
41812
41813 2007-03-11  Bruno Haible  <bruno@clisp.org>
41814
41815         * modules/long-options (Depends-on): Add getopt.
41816
41817 2007-03-11  Bruno Haible  <bruno@clisp.org>
41818
41819         * modules/modechange (Depends-on): Add stdbool.
41820
41821 2007-03-11  Bruno Haible  <bruno@clisp.org>
41822
41823         * modules/i-ring (Depends-on): Add stdbool.
41824
41825 2007-03-11  Bruno Haible  <bruno@clisp.org>
41826
41827         * modules/gc-des (Depends-on): Add stdbool.
41828
41829 2007-03-11  Bruno Haible  <bruno@clisp.org>
41830
41831         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41832
41833 2007-03-11  Bruno Haible  <bruno@clisp.org>
41834
41835         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41836
41837 2007-03-11  Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41840
41841 2007-03-11  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/vasnprintf.c (sprintf): Undefine.
41844
41845 2007-03-11  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41848         initializers in SunPRO C and Compaq C compilers.
41849
41850 2007-03-11  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41853         decrementing code ANSI C compliant.
41854
41855 2007-03-11  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41858         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41859
41860 2007-03-11  Bruno Haible  <bruno@clisp.org>
41861
41862         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41863         <stdbool.h> substitute doesn't pass.
41864
41865 2007-03-11  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41868
41869 2007-03-11  Bruno Haible  <bruno@clisp.org>
41870
41871         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41872         script, for submission to autobuild.josefsson.org.
41873
41874 2007-03-10  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/canonicalize-lgpl-tests: New file.
41877         * tests/test-canonicalize-lgpl.sh: New file.
41878         * tests/test-canonicalize-lgpl.c: New file.
41879
41880         * modules/c-strcase-tests: New file.
41881         * tests/test-c-strcase.sh: New file.
41882         * tests/test-c-strcasecmp.c: New file.
41883         * tests/test-c-strncasecmp.c: New file.
41884
41885         * modules/atexit-tests: New file.
41886         * tests/test-atexit.sh: New file.
41887         * tests/test-atexit.c: New file.
41888
41889 2007-03-10  Bruno Haible  <bruno@clisp.org>
41890
41891         * tests/test-binary-io.sh: Use temporary filenames that are not so
41892         likely to clash with those of other tests (in a parallel make).
41893         * tests/test-binary-io.c: Likewise.
41894
41895 2007-03-10  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41898         fallback; use #error instead.
41899         Suggested by Simon Josefsson.
41900
41901 2007-03-10  Bruno Haible  <bruno@clisp.org>
41902
41903         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41904         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41905         first and the last.
41906
41907 2007-03-10  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41910
41911 2007-03-10  Bruno Haible  <bruno@clisp.org>
41912
41913         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41914         "make distcheck".
41915         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41916         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41917         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41918
41919 2007-03-10  Bruno Haible  <bruno@clisp.org>
41920
41921         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
41922         variable.
41923         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
41924         variable.
41925
41926 2007-03-09  Eric Blake  <ebb9@byu.net>
41927         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
41928
41929         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
41930         types are not being provided by gnulib.
41931         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
41932         types are supported.
41933
41934 2007-03-10  Bruno Haible  <bruno@clisp.org>
41935
41936         * lib/stdio_.h (__attribute__): New macro.
41937         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
41938         vsprintf): Specify __attribute__ __format__ for GCC.
41939         Suggested by Eric Blake.
41940
41941 2007-03-09  Bruno Haible  <bruno@clisp.org>
41942
41943         * modules/printf-posix-tests: New file.
41944         * tests/test-printf-posix.sh: New file.
41945         * tests/test-printf-posix.c: New file.
41946
41947         * modules/printf-posix: New file.
41948         * lib/printf.c: New file.
41949         * m4/printf-posix-rpl.m4: New file.
41950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
41951         REPLACE_PRINTF.
41952         * lib/stdio_.h (printf): New declaration.
41953         (format, __format__, ____printf____, ____scanf____, ____strftime____,
41954         ____strfmon____): New macros.
41955         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
41956         REPLACE_PRINTF.
41957
41958 2007-03-09  Bruno Haible  <bruno@clisp.org>
41959
41960         * tests/test-vasnprintf-posix2.sh: New file.
41961         * tests/test-vasnprintf-posix2.c: New file.
41962         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
41963         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41964         (Makefile.am): Activate test-vasnprintf-posix2.sh.
41965
41966         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
41967         a locale dependent decimal point, rather than always '.'.
41968
41969 2007-03-09  Eric Blake  <ebb9@byu.net>
41970
41971         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
41972         spite of platforms like Tandem/NSK that define it to -1.
41973
41974 2007-03-08  Bruno Haible  <bruno@clisp.org>
41975
41976         * modules/vprintf-posix-tests: New file.
41977         * tests/test-vprintf-posix.sh: New file.
41978         * tests/test-vprintf-posix.c: New file.
41979         * tests/test-printf-posix.h: New file.
41980
41981         * modules/vprintf-posix: New file.
41982         * lib/vprintf.c: New file.
41983         * m4/vprintf-posix.m4: New file.
41984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
41985         REPLACE_VPRINTF.
41986         * lib/stdio_.h (vprintf): New declaration.
41987         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
41988         REPLACE_VPRINTF.
41989
41990 2007-03-08  Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/fprintf-posix-tests: New file.
41993         * tests/test-fprintf-posix.sh: New file.
41994         * tests/test-fprintf-posix.c: New file.
41995
41996         * modules/fprintf-posix: New file.
41997         * lib/fprintf.c: New file.
41998         * m4/fprintf-posix.m4: New file.
41999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42000         REPLACE_FPRINTF.
42001         * lib/stdio_.h (fprintf): New declaration.
42002         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42003         REPLACE_FPRINTF.
42004
42005 2007-03-08  Bruno Haible  <bruno@clisp.org>
42006
42007         * modules/vfprintf-posix-tests: New file.
42008         * tests/test-vfprintf-posix.sh: New file.
42009         * tests/test-vfprintf-posix.c: New file.
42010         * tests/test-fprintf-posix.h: New file.
42011         * tests/test-fprintf-posix.out: New file.
42012
42013         * modules/vfprintf-posix: New file.
42014         * lib/vfprintf.c: New file.
42015         * m4/vfprintf-posix.m4: New file.
42016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42017         REPLACE_VFPRINTF.
42018         * lib/stdio_.h (vfprintf): New declaration.
42019         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42020         REPLACE_VFPRINTF.
42021
42022 2007-03-08  Bruno Haible  <bruno@clisp.org>
42023
42024         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42025
42026 2007-03-08  Bruno Haible  <bruno@clisp.org>
42027
42028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42029         instead of 'expr' invocations.
42030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42032         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42035         Suggested by Paul Eggert.
42036
42037 2007-03-08  Bruno Haible  <bruno@clisp.org>
42038
42039         * modules/fseterr-tests: New file.
42040         * tests/test-fseterr.c: New file.
42041
42042         * modules/fseterr: New file.
42043         * lib/fseterr.h: New file.
42044         * lib/fseterr.c: New file.
42045
42046 2007-03-08  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42049         * lib/getopt_.h: Likewise.
42050         * lib/mbswidth.h: Likewise.
42051         * lib/setenv.h: Likewise.
42052         * lib/vasnprintf.h: Likewise.
42053         * lib/vasprintf.h: Likewise.
42054         * lib/verror.h: Likewise.
42055         * lib/xsetenv.h: Likewise.
42056         * lib/xvasprintf.h: Likewise.
42057
42058 2007-03-08  Jim Meyering  <jim@meyering.net>
42059
42060         * users.txt: Add parted.
42061
42062         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42063
42064 2007-03-07  Bruno Haible  <bruno@clisp.org>
42065
42066         * m4/printf.m4: Make the shell script snippets copy&pastable.
42067
42068 2007-03-02  Bruno Haible  <bruno@clisp.org>
42069
42070         * lib/netinet_in_.h: New file.
42071         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42072         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42073         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42074         (Depends-on): Add absolute-header.
42075         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42076         into netinet/in.h.
42077
42078 2007-03-03  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/sys_select_.h: New file.
42081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42082         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42083         * modules/sys_select (Files): Add lib/sys_select_.h.
42084         (Depends-on): Add absolute-header.
42085         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42086         into sys/select.h.
42087
42088 2007-03-02  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42091         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42092         values.
42093         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42094         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42095         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42096         * modules/sys_socket (Depends-on): Add absolute-header.
42097         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42098         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42099         (Include): Remove requirement of inclusion of <sys/types.h>.
42100
42101 2007-03-02  Bruno Haible  <bruno@clisp.org>
42102
42103         * lib/byteswap_.h (bswap_32): Fix formula.
42104
42105 2007-03-06  Bruno Haible  <bruno@clisp.org>
42106
42107         * modules/sprintf-posix-tests: New file.
42108         * tests/test-sprintf-posix.c: New file.
42109
42110         * modules/sprintf-posix: New file.
42111         * lib/sprintf.c: New file.
42112         * m4/sprintf-posix.m4: New file.
42113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42114         REPLACE_SPRINTF.
42115         * lib/stdio_.h (sprintf): New declaration.
42116         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42117         REPLACE_SPRINTF.
42118
42119 2007-03-06  Bruno Haible  <bruno@clisp.org>
42120
42121         * modules/vsprintf-posix-tests: New file.
42122         * tests/test-vsprintf-posix.c: New file.
42123         * tests/test-sprintf-posix.h: New file.
42124
42125         * modules/vsprintf-posix: New file.
42126         * lib/vsprintf.c: New file.
42127         * m4/vsprintf-posix.m4: New file.
42128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42129         REPLACE_VSPRINTF.
42130         * lib/stdio_.h (vsprintf): New declaration.
42131         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42132         REPLACE_VSPRINTF.
42133
42134 2007-03-06  Bruno Haible  <bruno@clisp.org>
42135
42136         * modules/vsnprintf (Depend-on): Remove minmax.
42137
42138 2007-03-06  Bruno Haible  <bruno@clisp.org>
42139
42140         * modules/snprintf-posix-tests: New file.
42141         * tests/test-snprintf-posix.c: New file.
42142
42143         * modules/snprintf-posix: New file.
42144         * m4/snprintf-posix.m4: New file.
42145         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42146         gl_FUNC_SNPRINTF.
42147         (gl_FUNC_SNPRINTF): Invoke it.
42148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42149         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42150         is set.
42151         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42152
42153 2007-03-06  Bruno Haible  <bruno@clisp.org>
42154
42155         * modules/vsnprintf-posix-tests: New file.
42156         * tests/test-vsnprintf-posix.c: New file.
42157         * tests/test-snprintf-posix.h: New file.
42158
42159         * modules/vsnprintf-posix: New file.
42160         * m4/vsnprintf-posix.m4: New file.
42161         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42162         gl_FUNC_VSNPRINTF.
42163         (gl_FUNC_VSNPRINTF): Invoke it.
42164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42165         * lib/stdio_.h (vsnprintf): Define as a replacement if
42166         REPLACE_VSNPRINTF is set.
42167         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42168
42169 2007-03-06  Bruno Haible  <bruno@clisp.org>
42170
42171         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42173
42174 2007-03-06  Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42177         (asinl): Declare also if HAVE_DECL_ASINL is set.
42178         (atanl): Declare also if HAVE_DECL_ATANL is set.
42179         (ceill): Declare also if HAVE_DECL_CEILL is set.
42180         (cosl): Declare also if HAVE_DECL_COSL is set.
42181         (expl): Declare also if HAVE_DECL_EXPL is set.
42182         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42183         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42184         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42185         (logl): Declare also if HAVE_DECL_LOGL is set.
42186         (sinl): Declare also if HAVE_DECL_SINL is set.
42187         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42188         (tanl): Declare also if HAVE_DECL_TANL is set.
42189         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42191         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42192         declaration of frexpl, ldexpl.
42193         * modules/printf-frexpl (Depends-on): Add math.
42194         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42195
42196 2007-03-05  Bruno Haible  <bruno@clisp.org>
42197
42198         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42199         frexpl and ldexpl are declared.
42200         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42201
42202 2007-03-05  Bruno Haible  <bruno@clisp.org>
42203
42204         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42205         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42206
42207 2007-03-05  Bruno Haible  <bruno@clisp.org>
42208
42209         * lib/stdio_.h: Include <stddef.h>.
42210
42211 2007-03-05  Bruno Haible  <bruno@clisp.org>
42212
42213         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42214
42215 2007-03-05  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42218         NetBSD 4, from Ralf Wildenhues.
42219
42220 2007-03-04  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/vasprintf.h: Update #if logic for the case when the functions
42223         exist but are overridden.
42224
42225 2007-03-04  Bruno Haible  <bruno@clisp.org>
42226
42227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42228         implementations: glibc-2.4 and MacOS X 10.3.
42229         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42230         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42231         * tests/test-vasprintf-posix.c (test_function): Likewise.
42232
42233 2007-03-04  Bruno Haible  <bruno@clisp.org>
42234
42235         * modules/vasprintf-posix-tests: New file.
42236         * tests/test-vasprintf-posix.c: New file.
42237
42238         * modules/vasprintf-posix: New file.
42239         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42240         defined.
42241         * m4/vasprintf-posix.m4: New file.
42242         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42243         gl_FUNC_VASPRINTF.
42244         (gl_FUNC_VASPRINTF): Invoke it.
42245         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42246         here.
42247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42248
42249 2007-03-04  Bruno Haible  <bruno@clisp.org>
42250
42251         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42252         REPLACE_GETTIMEOFDAY.
42253         * modules/sys_time (Makefile.am): Likewise.
42254         * m4/sys_time_h.m4: Likewise.
42255         * m4/gettimeofday.m4: Likewise.
42256
42257 2007-03-04  Bruno Haible  <bruno@clisp.org>
42258
42259         * modules/vasnprintf-posix-tests: New file.
42260         * tests/test-vasnprintf-posix.c: New file.
42261
42262         * modules/vasnprintf-posix: New file.
42263         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42264         printf-frexpl.h.
42265         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42266         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42267         REPLACE_VASNPRINTF is defined.
42268         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42269         gl_FUNC_VASNPRINTF.
42270         (gl_FUNC_VASNPRINTF): Invoke it.
42271         * m4/vasnprintf-posix.m4: New file.
42272         * m4/printf.m4: New file.
42273
42274 2007-03-04  Bruno Haible  <bruno@clisp.org>
42275
42276         Compile progreloc.c only if --enable-relocatable is specified.
42277         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42278         if --enable-relocatable was specified.
42279         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42280         lib_SOURCES.
42281
42282 2007-03-04  Jim Meyering  <jim@meyering.net>
42283
42284         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42285         Use it consistently, rather than enumerating errno constants.
42286
42287 2007-03-04  Bruno Haible  <bruno@clisp.org>
42288
42289         * modules/xvasprintf-tests: New file.
42290         * tests/test-xvasprintf.c: New file.
42291
42292         * modules/vasprintf-tests: New file.
42293         * tests/test-vasprintf.c: New file.
42294
42295         * modules/vasnprintf-tests: New file.
42296         * tests/test-vasnprintf.c: New file.
42297
42298         * modules/vsnprintf-tests: New file.
42299         * tests/test-vsnprintf.c: New file.
42300
42301         * modules/snprintf-tests: New file.
42302         * tests/test-snprintf.c: New file.
42303
42304 2007-03-04  Bruno Haible  <bruno@clisp.org>
42305
42306         Compile relocatable.c only if --enable-relocatable is specified.
42307         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42308         gl_RELOCATABLE_LIBRARY.
42309         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42310         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42311         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42312         gl_RELOCATABLE_LIBRARY.
42313         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42314         (Makefile.am): Remove lib_SOURCES.
42315         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42316         gl_RELOCATABLE_LIBRARY.
42317         (Makefile.am): Remove lib_SOURCES.
42318         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42319         always.
42320         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42321         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42322
42323 2007-03-04  Bruno Haible  <bruno@clisp.org>
42324
42325         * modules/argmatch-tests: New file.
42326         * tests/test-argmatch.c: New file.
42327
42328         * tests/test-allocsa.c (main): Halve the number of loop runs.
42329
42330         * modules/alloca-opt-tests: New file.
42331         * tests/test-alloca-opt.c: New file.
42332
42333 2007-03-04  Jim Meyering  <jim@meyering.net>
42334
42335         Work around difference between Linux ACLs and Solaris 10 ZFS.
42336         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42337         for EINVAL.
42338
42339 2007-03-03  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/relocatable-prog (Depends-on): Add back progreloc's
42342         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42343
42344 2007-03-03  Bruno Haible  <bruno@clisp.org>
42345
42346         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42347         * modules/relocatable-lib: New file.
42348
42349 2007-03-03  Bruno Haible  <bruno@clisp.org>
42350
42351         * modules/relocatable-prog: Renamed from modules/relocatable.
42352         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42353
42354 2007-03-03  Bruno Haible  <bruno@clisp.org>
42355
42356         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42357         m4/relocatable-lib.m4.
42358         (Depends-on): Remove 'relocatable'.
42359         (configure.ac): Add gl_RELOCATABLE_NOP.
42360
42361 2007-03-03  Bruno Haible  <bruno@clisp.org>
42362
42363         * modules/relocatable-prog-wrapper: New file.
42364         * modules/relocatable (Depends-on): Add it. Remove all other
42365         dependencies except progname.
42366         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42367
42368         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42369         (gl_FUNC_STRERROR): Nop.
42370         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42371
42372         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42373         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42374
42375         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42376         (gl_FUNC_READLINK): Update.
42377
42378         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42379
42380 2007-03-03  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42383         * modules/xreadlink (Depends-on): Add unistd.
42384         * modules/xreadlink-with-size (Depends-on): Likewise.
42385
42386 2007-03-03  Bruno Haible  <bruno@clisp.org>
42387
42388         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42389         extracted from gt_FUNC_SETENV.
42390         (gt_FUNC_SETENV): Remove macro.
42391         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42392         remove gt_FUNC_SETENV.
42393
42394 2007-03-03  Bruno Haible  <bruno@clisp.org>
42395
42396         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42397         ENABLE_RELOCATABLE here.
42398         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42399
42400 2007-03-03  Bruno Haible  <bruno@clisp.org>
42401
42402         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42403         * tests/test-rbtreehash_list.c: Include progname.h.
42404         (main): Call set_program_name.
42405
42406         * modules/rbtree-oset-tests (Depends-on): Add progname.
42407         * tests/test-rbtree_oset.c: Include progname.h.
42408         (main): Call set_program_name.
42409
42410         * modules/rbtree-list-tests (Depends-on): Add progname.
42411         * tests/test-rbtree_list.c: Include progname.h.
42412         (main): Call set_program_name.
42413
42414         * modules/linked-list-tests (Depends-on): Add progname.
42415         * tests/test-linked_list.c: Include progname.h.
42416         (main): Call set_program_name.
42417
42418 2007-03-03  Bruno Haible  <bruno@clisp.org>
42419
42420         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42421         All uses of __restrict changed to _Restrict_.
42422         * lib/glob_.h (__restrict): Remove macro.
42423
42424 2007-03-02  Bruno Haible  <bruno@clisp.org>
42425
42426         * modules/gettext (configure.ac): Require gettext infrastructure
42427         from version 0.16.1.
42428
42429 2007-03-02  Bruno Haible  <bruno@clisp.org>
42430
42431         * modules/linkedhash-list-tests (Depends-on): Add progname.
42432         * tests/test-linkedhash_list.c: Include progname.h.
42433         (main): Call set_program_name.
42434
42435         * modules/carray-list-tests (Depends-on): Add progname.
42436         * tests/test-carray_list.c: Include progname.h.
42437         (main): Call set_program_name.
42438
42439         * modules/avltreehash-list-tests (Depends-on): Add progname.
42440         * tests/test-avltreehash_list.c: Include progname.h.
42441         (main): Call set_program_name.
42442
42443         * modules/avltree-oset-tests (Depends-on): Add progname.
42444         * tests/test-avltree_oset.c: Include progname.h.
42445         (main): Call set_program_name.
42446
42447         * modules/avltree-list-tests (Depends-on): Add progname.
42448         * tests/test-avltree_list.c: Include progname.h.
42449         (main): Call set_program_name.
42450
42451         * modules/array-oset-tests (Depends-on): Add progname.
42452         * tests/test-array_oset.c: Include progname.h.
42453         (main): Call set_program_name.
42454
42455         * modules/array-list-tests (Depends-on): Add progname.
42456         * tests/test-array_list.c: Include progname.h.
42457         (main): Call set_program_name.
42458
42459         * modules/argp-tests (Depends-on): Add progname.
42460         * tests/test-argp.c: Include argp.h first. Include progname.h.
42461         (main): Call set_program_name.
42462
42463 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42464
42465         * doc/gnulib-tool.texi (Initial import): Reword description of
42466         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42467         limited effect even if defined after the first system include.
42468
42469 2007-03-01  Bruno Haible  <bruno@clisp.org>
42470
42471         * build-aux/config.libpath: Update to libtool-1.5.22.
42472         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42473
42474 2007-03-01  Bruno Haible  <bruno@clisp.org>
42475
42476         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42477         foo_CFLAGS.
42478         Reported by Ralf Wildenhues.
42479
42480 2007-03-01  Bruno Haible  <bruno@clisp.org>
42481
42482         * build-aux/install-reloc: Remove object files left over by some
42483         compilers.
42484         Reported by Ralf Wildenhues.
42485
42486 2007-03-01  Bruno Haible  <bruno@clisp.org>
42487
42488         * build-aux/install-reloc: Break long lines.
42489
42490 2007-03-01  Bruno Haible  <bruno@clisp.org>
42491
42492         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42493         Reported by Ralf Wildenhues.
42494
42495 2007-03-01  Bruno Haible  <bruno@clisp.org>
42496
42497         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42498         include ordering constraints.
42499
42500 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42501
42502         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42504         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42505         as another example.
42506         * lib/time_.h: Fix misspelling.
42507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42508         Require gl_HEADER_TIME_H_DEFAULTS.
42509         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42510         * m4/time_r.m4 (gl_TIME_R): Likewise.
42511         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42512
42513 2007-03-01  Bruno Haible  <bruno@clisp.org>
42514
42515         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42516         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42517
42518 2007-03-01  Jim Meyering  <jim@meyering.net>
42519
42520         * modules/xreadlink (Maintainer): Add my name.
42521         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42522
42523 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42524             Bruno Haible  <bruno@clisp.org>
42525
42526         * build-aux/install-reloc: Compile also c-ctype.c.
42527         * build-aux/relocatable.sh.in: New file.
42528         * doc/relocatable.texi: New file.
42529         * doc/relocatable-maint.texi: New file.
42530         * doc/gnulib.texi: Include relocatable-maint.texi.
42531         * lib/progreloc.c: Include unistd.h unconditionally.
42532         * lib/relocwrapper.c: Include unistd.h unconditionally.
42533         Include c-ctype.h.
42534         (add_dotbin): Use c_tolower.
42535         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42536         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42537         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42538         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42539         to m4/relocatable-lib.m4.
42540         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42541         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42542         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42543         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42544         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42545         * modules/relocatable: New file.
42546         * modules/relocatable-lib: New file.
42547         * modules/relocatable-script: New file.
42548
42549 2007-02-28  Bruno Haible  <bruno@clisp.org>
42550
42551         Import --enable-relocatable infrastructure.
42552         * build-aux/config.libpath: New file, from GNU gettext.
42553         * build-aux/install-reloc: New file, from GNU gettext.
42554         * build-aux/reloc-ldflags: New file, from GNU gettext.
42555         * lib/relocatable.h: New file, from GNU gettext.
42556         * lib/relocatable.c: New file, from GNU gettext.
42557         * lib/relocwrapper.c: New file, from GNU gettext.
42558         * m4/relocatable.m4: New file, from GNU gettext.
42559
42560 2007-02-28  Bruno Haible  <bruno@clisp.org>
42561
42562         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42563
42564         * modules/xreadlink: New file, from GNU gettext with modifications.
42565         * lib/xreadlink.c: New file, from GNU gettext.
42566         * lib/xreadlink.h: Add comments.
42567         (xreadlink): New declaration.
42568
42569         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42570         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42571         lib/xreadlink-with-size.c.
42572         (configure.ac): Remove gl_XREADLINK invocation.
42573         (Makefile.am): Augment lib_SOURCES.
42574         * m4/xreadlink.m4: Remove file.
42575         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42576         (xreadlink_with_size): Renamed from xreadink.
42577         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42578         * modules/canonicalize (Depends-on): Replace xreadlink with
42579         xreadlink-with-size.
42580         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42581
42582 2007-02-25  Jim Meyering  <jim@meyering.net>
42583
42584         * build-aux/announce-gen: When complaining about excess arguments,
42585         list them.
42586
42587 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42588
42589         * README: Document signed integer overflow situation more
42590         accurately.
42591
42592 2007-02-25  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42595         'a' or 'A' conversion.
42596
42597 2007-02-25  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/filename: Renamed from modules/pathname.
42600         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42601         lib/concatpath.c with lib/concat-filename.c.
42602         (Makefile.am): Update.
42603         (Include): Replace pathname.h with filename.h.
42604         * lib/filename.h: Renamed from lib/pathname.h.
42605         (concatenated_filename): Renamed from concatenated_pathname.
42606         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42607         (concatenated_filename): Renamed from concatenated_pathname.
42608         * lib/findprog.c: Include filename.h instead of pathname.h.
42609         (find_in_path): Update.
42610         * lib/javacomp.c: Include filename.h instead of pathname.h.
42611         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42612         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42613         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42614         is_oldgcj_14_13_usable, is_javac_usable): Update.
42615         * lib/javaexec.c: Include filename.h instead of pathname.h.
42616         (execute_java_class): Update.
42617         * modules/findprog: Update.
42618         * modules/javacomp: Update.
42619         * modules/javaexec: Update.
42620         * MODULES.html.sh (File system functions): Add 'filename', remove
42621         'pathname'.
42622
42623 2007-02-25  Bruno Haible  <bruno@clisp.org>
42624
42625         * modules/printf-frexpl-tests: New file.
42626         * tests/test-printf-frexpl.c: New file.
42627
42628         * modules/printf-frexpl: New file.
42629         * lib/printf-frexpl.h: New file.
42630         * lib/printf-frexpl.c: New file.
42631         * m4/printf-frexpl.m4: New file.
42632
42633 2007-02-25  Bruno Haible  <bruno@clisp.org>
42634
42635         * modules/printf-frexp-tests: New file.
42636         * tests/test-printf-frexp.c: New file.
42637
42638         * modules/printf-frexp: New file.
42639         * lib/printf-frexp.h: New file.
42640         * lib/printf-frexp.c: New file.
42641         * m4/printf-frexp.m4: New file.
42642
42643 2007-02-25  Bruno Haible  <bruno@clisp.org>
42644
42645         Assume automake >= 1.10 for the tests.
42646         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42647         * modules/arctwo-tests: Likewise.
42648         * modules/argp-tests: Likewise.
42649         * modules/avltree-list-tests: Likewise.
42650         * modules/avltree-oset-tests: Likewise.
42651         * modules/avltreehash-list-tests: Likewise.
42652         * modules/carray-list-tests: Likewise.
42653         * modules/crc-tests: Likewise.
42654         * modules/des-tests: Likewise.
42655         * modules/gc-arcfour-tests: Likewise.
42656         * modules/gc-arctwo-tests: Likewise.
42657         * modules/gc-des-tests: Likewise.
42658         * modules/gc-hmac-md5-tests: Likewise.
42659         * modules/gc-hmac-sha1-tests: Likewise.
42660         * modules/gc-md2-tests: Likewise.
42661         * modules/gc-md4-tests: Likewise.
42662         * modules/gc-md5-tests: Likewise.
42663         * modules/gc-pbkdf2-sha1-tests: Likewise.
42664         * modules/gc-rijndael-tests: Likewise.
42665         * modules/gc-sha1-tests: Likewise.
42666         * modules/gc-tests: Likewise.
42667         * modules/getaddrinfo-tests: Likewise.
42668         * modules/hmac-md5-tests: Likewise.
42669         * modules/hmac-sha1-tests: Likewise.
42670         * modules/linked-list-tests: Likewise.
42671         * modules/linkedhash-list-tests: Likewise.
42672         * modules/lock-tests: Likewise.
42673         * modules/md2-tests: Likewise.
42674         * modules/md4-tests: Likewise.
42675         * modules/md5-tests: Likewise.
42676         * modules/rbtree-list-tests: Likewise.
42677         * modules/rbtree-oset-tests: Likewise.
42678         * modules/rbtreehash-list-tests: Likewise.
42679         * modules/read-file-tests: Likewise.
42680         * modules/rijndael-tests: Likewise.
42681         * modules/stdint-tests: Likewise.
42682         * modules/tls-tests: Likewise.
42683
42684 2007-02-24  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42687         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42688         function; instead check whether isnan with a double argument links.
42689         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42690         function; instead check whether isnan with a 'long double' argument
42691         links.
42692         Reported by Eric Blake <ebb9@byu.net>.
42693
42694 2007-02-24  Bruno Haible  <bruno@clisp.org>
42695
42696         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42697         defined.
42698         * lib/isnanl.c: Remove all code. Just include isnan.c.
42699         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42700
42701 2007-02-25  Jim Meyering  <jim@meyering.net>
42702
42703         Avoid conflicting types for 'unsetenv' on FreeBSD.
42704         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42705         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42706         in stdlib.h.
42707
42708 2007-02-24  Bruno Haible  <bruno@clisp.org>
42709
42710         * modules/isnanl-nolibm-tests: New file.
42711         * tests/test-isnanl.c: New file.
42712
42713         * modules/isnanl-nolibm: New file.
42714         * lib/isnanl.h: New file.
42715         * lib/isnanl.c: New file.
42716         * m4/isnanl.m4: New file.
42717
42718 2007-02-24  Bruno Haible  <bruno@clisp.org>
42719
42720         * modules/isnan-nolibm-tests: New file.
42721         * tests/test-isnan.c: New file.
42722
42723         * modules/isnan-nolibm: New file.
42724         * lib/isnan.h: New file.
42725         * lib/isnan.c: New file.
42726         * m4/isnan.m4: New file.
42727
42728 2007-02-24  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42731         assume that an exponent fits in 20 bits.
42732
42733 2007-02-24  Jim Meyering  <jim@meyering.net>
42734
42735         * m4/regex.m4: Update the description of the configure-time option,
42736         --without-included-regex, to state accurately what the defaults are,
42737         and perhaps to give people an idea why using this option is risky.
42738
42739 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42740
42741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42742         loops on small arguments.  This attempts to avoid the problem
42743         Bruno Haible reported for AIX 4.3.2 in
42744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42745
42746 2007-02-23  Bruno Haible  <bruno@clisp.org>
42747
42748         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42749         Needed for help2man.
42750
42751 2007-02-23  Karl Berry  <karl@gnu.org>
42752
42753         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42754         exists, foo.h should be cvs-ignored, not committed.
42755
42756 2007-02-23  Eric Blake  <ebb9@byu.net>
42757
42758         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42759         * lib/stat-time.h (includes): Likewise.
42760         * lib/utimecmp.c (includes): Likewise.
42761         * lib/utimens.h (includes): Likewise.
42762         * lib/getdate.y (includes): Also include "timespec.h" for use
42763         internal to the module.
42764         * modules/utimens (Depends-on): Revert yesterday's patch.
42765         * modules/nanosleep (Depends-on): Add missing dependency.
42766
42767 2007-02-22  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/glob.c: Don't include getlogin_r.h.
42770
42771 2007-02-22  Jim Meyering  <jim@meyering.net>
42772
42773         * modules/utimens (Depends-on): Add timespec, required for
42774         utimens.h's inclusion of timespec.h.
42775
42776 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42777
42778         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42779         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42780         Schwab in
42781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42782         I'll try to think of a better way to fix the Solaris problem.
42783
42784         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42785         like glibc; on Solaris 10, it fails with errno == EINVAL.
42786         POSIX says the behavior is unspecified if the first argument is NULL,
42787         so play it safe and never pass NULL to the system getcwd.
42788
42789 2007-02-21  Jim Meyering  <jim@meyering.net>
42790
42791         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42792         of gettimeofday.  It would conflict with the one now always
42793         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42794         an IRIX 6.5 build failure.
42795
42796 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42797
42798         Minor fixups to port to Solaris 10 with Sun C 5.8.
42799         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42800         * modules/getcwd (Depends-on): Add dirfd.
42801         * lib/putenv.c (putenv): #undef it.
42802         (rpl_putenv): New decl.
42803         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42804
42805 2007-02-20  Bruno Haible  <bruno@clisp.org>
42806
42807         * modules/stdio-tests: New file.
42808         * tests/test-stdio.c: New file.
42809
42810         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42811         (Depends-on): Add stdio.
42812         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42813         (Include): Use <stdio.h> instead of vsnprintf.h.
42814         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42815         HAVE_DECL_VSNPRINTF.
42816         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42817
42818         * modules/snprintf (Files): Remove lib/snprintf.h.
42819         (Depends-on): Add stdio.
42820         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42821         (Include): Use <stdio.h> instead of snprintf.h.
42822         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42823         HAVE_DECL_SNPRINTF.
42824         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42825         * lib/getaddrinfo.c: Likewise.
42826
42827         * modules/stdio: New file.
42828         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42829         * lib/snprintf.h: Remove file.
42830         * lib/vsnprintf.h: Remove file.
42831         * lib/.cppi-disable: Remove snprintf.h.
42832         * m4/stdio_h.m4: New file.
42833         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42834
42835 2007-02-20  Jim Meyering  <jim@meyering.net>
42836
42837         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42838         used by e.g., mingw.  From Bruno Haible.
42839
42840 2007-02-19  Bruno Haible  <bruno@clisp.org>
42841
42842         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42843         warnings.
42844         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42845
42846 2007-02-19  Bruno Haible  <bruno@clisp.org>
42847
42848         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42849         from mingw users.
42850
42851 2007-02-19  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42854         warnings.
42855         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42856
42857 2007-02-19  Jim Meyering  <jim@meyering.net>
42858
42859         Don't use FD after a successful "fdopendir (fd)".
42860         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42861         Reset it by calling dirfd on the just-obtained DIR*.
42862
42863         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42864         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42865
42866 2007-02-18  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/readlink.c: Include <unistd.h>.
42869         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42870         HAVE_READLINK.
42871         * modules/readlink (Depends-on): Add unistd.
42872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42873         (Include): Add <unistd.h>.
42874
42875         * lib/getlogin_r.h: Remove file.
42876         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42877         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42878         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42879         HAVE_DECL_GETLOGIN_R.
42880         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42882         (Include): Use <unistd.h> instead of getlogin_r.h.
42883
42884         * lib/getcwd.h: Remove file.
42885         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42886         * lib/xgetcwd.c: Likewise.
42887         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42888         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42889         * modules/getcwd (Files): Remove lib/getcwd.h.
42890         (Depends-on): Add unistd.
42891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42892         (Include): Use <unistd.h> instad of getcwd.h.
42893
42894         * lib/ftruncate.c: Include <unistd.h> first.
42895         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42896         Set HAVE_FTRUNCATE.
42897         * modules/ftruncate (Depends-on): Add unistd.
42898         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42899
42900         * lib/fchdir.c: Include <unistd.h> first.
42901         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42903         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42904         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42905         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42906
42907         * lib/dup2.c: Include <unistd.h> first.
42908         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42909         HAVE_DUP2.
42910         * modules/dup2 (Depends-on): Add unistd.
42911         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42912
42913         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42914         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42915         REPLACE_CHOWN. Don't define chown as a macro here.
42916         * modules/chown (Depends-on): Add unistd.
42917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42918
42919         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
42920         Add definition for GL_LINK_WARNING.
42921         (chown, dup2): New declarations.
42922         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
42923         link warning.
42924         (ftruncate): New declaration.
42925         (getcwd): New declaration, taken from old getcwd.h.
42926         (getlogin_r): New declaration, taken from old getlogin_r.h.
42927         (readlink): New declaration.
42928         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
42929         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
42930         (gl_PREREQ_UNISTD): Remove macro.
42931         (gl_UNISTD_MODULE_INDICATOR): New macro.
42932         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
42933         many new variables. Don't set UNISTD_H.
42934         * modules/unistd (Description): Change.
42935         (Depends-on): Add link-warning.
42936         (configure.ac): Update.
42937         (Makefile.am): Create unistd.h always. Substitute many new variables
42938         into it.
42939
42940 2007-02-18  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
42943         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
42944         HAVE_GETSUBOPT.
42945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
42946         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
42947         * lib/getsubopt.h: Remove file.
42948         * modules/getsubopt (Files): Remove lib/getsubopt.h.
42949         (Depends-on): Add stdlib.
42950         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42951         (Includes): Use <stdlib.h> instead of getsubopt.h.
42952         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
42953         Set HAVE_GETSUBOPT.
42954         * lib/getsubopt.c: Don't include getsubopt.h.
42955
42956 2007-02-18  Bruno Haible  <bruno@clisp.org>
42957
42958         * modules/fchdir (Depends-on): Add dup2.
42959
42960 2007-02-18  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/stdlib_.h: Handle glibc's special invocation convention
42963         specially.
42964
42965 2007-02-18  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/stdlib-tests: New file.
42968         * tests/test-stdlib.c: New file.
42969
42970         * modules/mkstemp (Files): Remove lib/mkstemp.h.
42971         (Depends-on): Add stdlib.
42972         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42973         (Includes): Use <stdlib.h> instead of mkstemp.h.
42974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42975         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
42976         * lib/mkstemp.c: Don't include mkstemp.h.
42977         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
42978         * lib/stdlib--.h: Don't include mkstemp.h.
42979
42980         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
42981         (Depends-on): Add stdlib.
42982         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42983         (Includes): Use <stdlib.h> instead of mkdtemp.h.
42984         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42985         HAVE_MKDTEMP.
42986         * lib/mkdtemp.c: Don't include mkdtemp.h.
42987         * lib/clean-temp.c: Don't include mkdtemp.h.
42988
42989         * modules/exit (Files): Remove lib/exit.h.
42990         (Depends-on): Add stdlib.
42991         (Makefile.am): Remove lib_SOURCES.
42992         (Include): Use <stdlib.h> instead of exit.h.
42993         * lib/argmatch.c: Don't include exit.h.
42994         * lib/execute.c: Likewise.
42995         * lib/pagealign_alloc.c: Likewise.
42996         * lib/pipe.c: Likewise.
42997         * lib/wait-process.c: Likewise.
42998         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
42999         * lib/exitfail.c: Likewise.
43000         * lib/savewd.c: Likewise.
43001         * lib/xsetenv.c: Likewise.
43002
43003         * modules/stdlib: New file.
43004         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43005         and extra comments about mkstemp().
43006         * lib/exit.h: Remove file.
43007         * lib/mkdtemp.h: Remove file.
43008         * lib/mkstemp.h: Remove file.
43009         * m4/stdlib_h.m4: New file.
43010         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43011
43012 2007-02-18  Bruno Haible  <bruno@clisp.org>
43013
43014         * modules/math-tests: New file.
43015         * tests/test-math.c: New file.
43016
43017         * modules/math: New file.
43018         * modules/mathl (Files): Remove lib/mathl.h.
43019         (Depends-on): Add math.
43020         (Makefile.am): Don't mention mathl.h.
43021         (Include): Use <math.h> instead of mathl.h.
43022         * lib/math_.h: New file.
43023         * lib/mathl.h: Remove file.
43024         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43025         mathl.h.
43026         * lib/asinl.c: Likewise.
43027         * lib/atanl.c: Likewise.
43028         * lib/ceill.c: Likewise.
43029         * lib/cosl.c: Likewise.
43030         * lib/expl.c: Likewise.
43031         * lib/floorl.c: Likewise.
43032         * lib/frexpl.c: Likewise.
43033         * lib/ldexpl.c: Likewise.
43034         * lib/logl.c: Likewise.
43035         * lib/sincosl.c: Likewise.
43036         * lib/sinl.c: Likewise.
43037         * lib/sqrtl.c: Likewise.
43038         * lib/tanl.c: Likewise.
43039         * lib/trigl.c: Likewise.
43040         * m4/math_h.m4: New file.
43041         * MODULES.html.sh (Mathematics): Add math.
43042
43043 2007-02-17  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/wctype-tests: New file.
43046         * tests/test-wctype.c: New file.
43047
43048         * modules/wchar-tests: New file.
43049         * tests/test-wchar.c: New file.
43050
43051         * modules/unistd-tests: New file.
43052         * tests/test-unistd.c: New file.
43053
43054         * modules/time-tests: New file.
43055         * tests/test-time.c: New file.
43056
43057         * modules/sysexits-tests: New file.
43058         * tests/test-sysexits.c: New file.
43059
43060         * modules/sys_time-tests: New file.
43061         * tests/test-sys_time.c: New file.
43062
43063         * modules/sys_stat-tests: New file.
43064         * tests/test-sys_stat.c: New file.
43065
43066         * modules/sys_socket-tests: New file.
43067         * tests/test-sys_socket.c: New file.
43068
43069         * modules/sys_select-tests: New file.
43070         * tests/test-sys_select.c: New file.
43071
43072         * modules/string-tests: New file.
43073         * tests/test-string.c: New file.
43074
43075         * modules/stdbool-tests: New file.
43076         * tests/test-stdbool.c: New file.
43077
43078         * modules/netinet_in-tests: New file.
43079         * tests/test-netinet_in.c: New file.
43080
43081         * modules/inttypes-tests: New file.
43082         * tests/test-inttypes.c: New file.
43083
43084         * modules/fcntl-tests: New file.
43085         * tests/test-fcntl.c: New file.
43086
43087         * modules/byteswap-tests: New file.
43088         * tests/test-byteswap.c: New file.
43089
43090         * modules/arpa_inet-tests: New file.
43091         * tests/test-arpa_inet.c: New file.
43092
43093 2007-02-17  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43096         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43097         if the corresponding module is not enabled. Emit link warnings if
43098         the function is used nevertheless.
43099         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43100         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43101         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43102         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43103         * modules/inttypes (Depends-on): Add link-warning.
43104         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43105         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43106         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43107         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43108         * modules/imaxdiv (configure.ac): Likewise.
43109         * modules/strtoimax (configure.ac): Likewise.
43110         * modules/strtoumax (configure.ac): Likewise.
43111
43112 2007-02-17  Bruno Haible  <bruno@clisp.org>
43113
43114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43115         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43116         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43117         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43118
43119 2007-02-17  Bruno Haible  <bruno@clisp.org>
43120
43121         * modules/link-warning: New file.
43122         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43123         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43124         * modules/string (Depends-on): Add link-warning.
43125         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43126         string.h.
43127         * MODULES.html.sh (Support for building libraries and executables): Add
43128         link-warning.
43129
43130 2007-02-17  Bruno Haible  <bruno@clisp.org>
43131
43132         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43133         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43134         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43135         long lines.
43136
43137 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43138             Bruno Haible  <bruno@clisp.org>
43139
43140         * modules/tmpfile: New file.
43141         * lib/tmpfile.c: New file.
43142         * m4/tmpfile.m4: New file.
43143         * MODULES.html.sh (func_all_modules): New section "Input/output".
43144
43145 2007-02-15  Bruno Haible  <bruno@clisp.org>
43146
43147         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43148         (supports_delete_on_close): New function.
43149         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43150
43151 2007-02-14  Bruno Haible  <bruno@clisp.org>
43152
43153         * modules/mbspcasecmp-tests: New file.
43154         * tests/test-mbspcasecmp.sh: New file.
43155         * tests/test-mbspcasecmp.c: New file.
43156
43157         New module mbspcasecmp.
43158         * modules/mbspcasecmp: New file.
43159         * lib/mbspcasecmp.c: New file.
43160         * lib/string_.h (strncasecmp): Change warning message.
43161         (mbspcasecmp): New declaration.
43162         * m4/mbspcasecmp.m4: New file.
43163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43164         GNULIB_MBSPCASECMP.
43165         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43166         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43167
43168 2007-02-14  Bruno Haible  <bruno@clisp.org>
43169
43170         * modules/mbsncasecmp-tests: New file.
43171         * tests/test-mbsncasecmp.sh: New file.
43172         * tests/test-mbsncasecmp.c: New file.
43173
43174         New module mbsncasecmp.
43175         * modules/mbsncasecmp: New file.
43176         * lib/mbsncasecmp.c: New file.
43177         * lib/string_.h (mbsncasecmp): New declaration.
43178         * m4/mbsncasecmp.m4: New file.
43179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43180         GNULIB_MBSNCASECMP.
43181         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43182         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43183
43184 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43185
43186         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43187         Verify that it doesn't overlap with our flags.
43188         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43189         do not have the desired effect in multibyte locales; instead, use
43190         mbscasecmp.
43191         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43192         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43193         we don't require GNU fnmatch ourselves (if our users require it, they
43194         should do so explicitly).
43195
43196         Fix regex code so it doesn't rely on strcasecmp.
43197         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43198         Otherwise, include gnulib's langinfo.h.
43199         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43200         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43201         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43202         * modules/regex (FILES): Remove m4/codeset.m4.
43203         (Depends-on): Add localcharset.  Remove strcase.
43204
43205 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43206
43207         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43208         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43209
43210 2007-02-13  Bruno Haible  <bruno@clisp.org>
43211
43212         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43214
43215 2007-02-12  Bruno Haible  <bruno@clisp.org>
43216
43217         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43218         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43219         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43220         time warning rather than a link error.
43221
43222 2007-02-12  Bruno Haible  <bruno@clisp.org>
43223
43224         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43225         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43227
43228 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43229
43230         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43231         args, not 2.
43232
43233 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43234
43235         New module 'time', so that apps can include <time.h> as per
43236         POSIX and GNU instead of separate include files like time_r.h
43237         and timegm.h.  This implementation tries out a simpler approach
43238         for replacing decls in standard include files (as compared to
43239         the string module), somewhat as an experiment.
43240
43241         * config/srclist.txt: Comment out mktime.c for now.
43242         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43243         since it doesn't apply any more.  Use generic wording instead.
43244         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43245         'time'.
43246         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43247         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43248         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43249         Don't include <sys/types.h>; no longer needed since we assume C89.
43250         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43251         * lib/strftime.c: Likewise.
43252         * lib/time_r.c: Likewise.
43253         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43254         * lib/nanosleep.c: Include <time.h> first, to check interface.
43255         * lib/strptime.c: Likewise.
43256         * lib/time_r.c: Likewise.
43257         * lib/timegm.c: Likewise.
43258         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43259         needed.
43260         * lib/timegm.c: Don't include timegm.h; no longer needed.
43261         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43262         time.h now handles any problems in that area.
43263         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43264         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43265         that time.h defines struct timespec.
43266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43267         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43268         handles that.
43269         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43270         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43271         needed.  Set REPLACE_LOCALTIME.
43272         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43273         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43274         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43275         nanosleep; time_h.m4 now does that.  Don't require
43276         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43277         module handles this now.
43278         * modules/getdate (Depends-on): Remove timespec.  Add time.
43279         * modules/nanosleep (Depends-on): Likewise.
43280         * modules/stat-time (Depends-on): Likewise.
43281         * modules/nanosleep (Include): Include time.h, not timespec.h.
43282         * modules/strptime (Files): Remove lib/strptime.h.
43283         (Depends-on): Add extensions, time.
43284         (Include): Include time.h, not strptime.h.
43285         * modules/time_r (Files): Remove lib/time_r.h.
43286         (Depends-on): Add time.
43287         (Include): Include time.h, not time_r.h.
43288         * modules/timegm: Likewise.
43289         * modules/timespec (Description): Now does timespec-related decls
43290         of our own, instead of struct timespec itself.
43291         (Depends-on): Add time; remove extensions.
43292         (Maintainer): Add self.
43293         * modules/utimecmp (Depends-on): Add time; remove timespec.
43294         * modules/utimens (Depends-on): Likewise.
43295         * modules/xnanosleep (Depends-on): Likewise.
43296
43297 2007-02-11  Bruno Haible  <bruno@clisp.org>
43298
43299         * lib/c-strstr.c: Include allocsa.h.
43300         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43301         * lib/c-strcasestr.c: Include allocsa.h.
43302         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43303         * lib/strcasestr.c: Include allocsa.h.
43304         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43305         * lib/mbsstr.c: Include allocsa.h.
43306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43307         allocsa/freesa instead of malloc/free.
43308         * lib/mbscasestr.c: Include allocsa.h.
43309         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43310         allocsa/freesa instead of malloc/free.
43311         * modules/c-strstr (Depends-on): Add allocsa.
43312         * modules/c-strcasestr (Depends-on): Likewise.
43313         * modules/strcasestr (Depends-on): Likewise.
43314         * modules/mbsstr (Depends-on): Likewise.
43315         * modules/mbscasestr (Depends-on): Likewise.
43316
43317 2007-02-11  Bruno Haible  <bruno@clisp.org>
43318
43319         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43320
43321         * modules/mbsspn-tests: New file.
43322         * tests/test-mbsspn.sh: New file.
43323         * tests/test-mbsspn.c: New file.
43324
43325 2007-02-11  Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43328
43329         * modules/mbspbrk-tests: New file.
43330         * tests/test-mbspbrk.sh: New file.
43331         * tests/test-mbspbrk.c: New file.
43332
43333 2007-02-11  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43336         unneeded cast.
43337
43338         * modules/mbscspn-tests: New file.
43339         * tests/test-mbscspn.sh: New file.
43340         * tests/test-mbscspn.c: New file.
43341
43342 2007-02-11  Bruno Haible  <bruno@clisp.org>
43343
43344         * modules/mbscasecmp-tests: New file.
43345         * tests/test-mbscasecmp.sh: New file.
43346         * tests/test-mbscasecmp.c: New file.
43347
43348 2007-02-11  Bruno Haible  <bruno@clisp.org>
43349
43350         Ensure O(n) worst-case complexity of mbscasestr.
43351         * lib/mbscasestr.c: Include stdbool.h.
43352         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43353         functions.
43354         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43355         the bookkeeping indicates that it's worth it.
43356         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43357
43358         * modules/mbscasestr-tests: New file.
43359         * tests/test-mbscasestr1.c: New file.
43360         * tests/test-mbscasestr2.sh: New file.
43361         * tests/test-mbscasestr2.c: New file.
43362         * tests/test-mbscasestr3.sh: New file.
43363         * tests/test-mbscasestr3.c: New file.
43364         * tests/test-mbscasestr4.sh: New file.
43365         * tests/test-mbscasestr4.c: New file.
43366         * m4/locale-tr.m4: New file.
43367
43368 2007-02-11  Bruno Haible  <bruno@clisp.org>
43369
43370         Ensure O(n) worst-case complexity of mbsstr.
43371         * lib/mbsstr.c: Include stdbool.h.
43372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43373         functions.
43374         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43375         bookkeeping indicates that it's worth it.
43376         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43377
43378         * modules/mbsstr-tests: New file.
43379         * tests/test-mbsstr1.c: New file.
43380         * tests/test-mbsstr2.sh: New file.
43381         * tests/test-mbsstr2.c: New file.
43382         * tests/test-mbsstr3.sh: New file.
43383         * tests/test-mbsstr3.c: New file.
43384         * m4/locale-fr.m4: New file.
43385
43386 2007-02-11  Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/mbsrchr.c (mbsrchr): Fix bug.
43389
43390         * modules/mbsrchr-tests: New file.
43391         * tests/test-mbsrchr.sh: New file.
43392         * tests/test-mbsrchr.c: New file.
43393
43394 2007-02-11  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/mbschr.c (mbschr): Fix bug.
43397
43398         * modules/mbschr-tests: New file.
43399         * tests/test-mbschr.sh: New file.
43400         * tests/test-mbschr.c: New file.
43401         * m4/locale-zh.m4: New file.
43402
43403 2007-02-11  Bruno Haible  <bruno@clisp.org>
43404
43405         Support for copying multibyte string iterators.
43406         * lib/mbiter.h: Include <string.h>.
43407         (mbiter_multi_copy): New function.
43408         (mbi_copy): New macro.
43409         * lib/mbuiter.h: Include <string.h>.
43410         (mbuiter_multi_copy): New function.
43411         (mbui_copy): New macro.
43412
43413 2007-02-11  Bruno Haible  <bruno@clisp.org>
43414
43415         New module mbslen.
43416         * modules/mbslen: New file.
43417         * lib/mbslen.c: New file.
43418         * lib/string_.h (mbslen): New declaration.
43419         * m4/mbslen.m4: New file.
43420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43421         GNULIB_MBSLEN.
43422         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43423         * MODULES.html.sh (Internationalization functions): Add mbslen.
43424
43425 2007-02-11  Bruno Haible  <bruno@clisp.org>
43426
43427         Ensure O(n) worst-case complexity of strcasestr substitute.
43428         * lib/strcasestr.c: Include stdbool.h.
43429         (knuth_morris_pratt): New function.
43430         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43431         bookkeeping indicates that it's worth it.
43432         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43433
43434         * modules/strcasestr-tests: New file.
43435         * tests/test-strcasestr.c: New file.
43436
43437 2007-02-11  Bruno Haible  <bruno@clisp.org>
43438
43439         Ensure O(n) worst-case complexity of c_strcasestr.
43440         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43441         (knuth_morris_pratt): New function.
43442         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43443         the bookkeeping indicates that it's worth it.
43444         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43445
43446         * modules/c-strcasestr-tests: New file.
43447         * tests/test-c-strcasestr.c: New file.
43448
43449 2007-02-11  Bruno Haible  <bruno@clisp.org>
43450
43451         Ensure O(n) worst-case complexity of c_strstr.
43452         * lib/c-strstr.c: Include stdbool.h, string.h.
43453         (knuth_morris_pratt): New function.
43454         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43455         bookkeeping indicates that it's worth it.
43456         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43457
43458         * lib/c-strstr.c: Complete rewrite for maintainability.
43459
43460         * modules/c-strstr-tests: New file.
43461         * tests/test-c-strstr.c: New file.
43462
43463 2007-02-11  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43466         5.2.1 and earlier, whereby \055 was treated just like the range
43467         delimiter '-'.
43468         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43469
43470 2007-02-08  Bruno Haible  <bruno@clisp.org>
43471
43472         * modules/regex (Depends-on): Add stdbool.
43473         Reported by Dalibor Topic <robilad@kaffe.org>.
43474
43475 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43476
43477         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43478         Prefer returning from main to exiting from it.
43479         Remove unnecessary parens after sizeof.
43480
43481 2007-02-05  Bruno Haible  <bruno@clisp.org>
43482
43483         New module mbssep.
43484         * modules/mbssep: New file.
43485         * lib/mbssep.c: New file.
43486         * lib/string_.h (strsep): Add a conditional link warning.
43487         (mbssep): New declaration.
43488         * m4/mbssep.m4: New file.
43489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43490         GNULIB_MBSSEP.
43491         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43492         * MODULES.html.sh (Internationalization functions): Add mbssep.
43493
43494 2007-02-05  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43497         Optimize search in case of 1 delimiter.
43498
43499 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43500
43501         * lib/acl.h: Include sys/types.h before sys/acl.h.
43502
43503 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43504
43505         Merge upstream fix for glibc bugzilla #3957:
43506
43507         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43508
43509         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43510         bit for RE_HAT_LISTS_NOT_NEWLINE.
43511         (build_charclass_op): Remove bogus comment.
43512
43513 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43514
43515         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43516
43517 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43518
43519         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43520         * lib/memmem.c [!defined _LIBC]: Include config.h.
43521
43522 2007-02-04  Bruno Haible  <bruno@clisp.org>
43523
43524         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43525         warning message.
43526
43527 2007-02-04  Bruno Haible  <bruno@clisp.org>
43528
43529         New module mbstok_r.
43530         * modules/mbstok_r: New file.
43531         * lib/mbstok_r.c: New file.
43532         * lib/string_.h (strtok_r): Change argument names to match the
43533         comments. Add a conditional link warning.
43534         (mbstok_r): New declaration.
43535         * m4/mbstok_r.m4: New file.
43536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43537         GNULIB_MBSTOK_R.
43538         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43539         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43540
43541 2007-02-04  Bruno Haible  <bruno@clisp.org>
43542
43543         New module mbsspn.
43544         * modules/mbsspn: New file.
43545         * lib/mbsspn.c: New file.
43546         * lib/string_.h (strspn): Add a conditional link warning.
43547         (mbsspn): New declaration.
43548         * m4/mbsspn.m4: New file.
43549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43550         GNULIB_MBSSPN.
43551         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43552         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43553
43554 2007-02-04  Bruno Haible  <bruno@clisp.org>
43555
43556         New module mbspbrk.
43557         * modules/mbspbrk: New file.
43558         * lib/mbspbrk.c: New file.
43559         * lib/string_.h (strpbrk): Add a conditional link warning.
43560         (mbspbrk): New declaration.
43561         * m4/mbspbrk.m4: New file.
43562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43563         GNULIB_MBSPBRK.
43564         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43565         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43566
43567 2007-02-04  Bruno Haible  <bruno@clisp.org>
43568
43569         New module mbscspn.
43570         * modules/mbscspn: New file.
43571         * lib/mbscspn.c: New file.
43572         * lib/string_.h (strcspn): Add a conditional link warning.
43573         (mbscspn): New declaration.
43574         * m4/mbscspn.m4: New file.
43575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43576         GNULIB_MBSCSPN.
43577         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43578         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43579
43580 2007-02-04  Bruno Haible  <bruno@clisp.org>
43581
43582         New module mbscasestr, reduced goal of strcasestr.
43583         * modules/mbscasestr: New file.
43584         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43585         (mbscasestr): Renamed from strcasestr.
43586         * lib/strcasestr.c: Don't include mbuiter.h.
43587         (strcasestr): Remove support for multibyte locales.
43588         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43589         Change the conditional link warning.
43590         (mbscasestr): New declaration.
43591         * m4/mbscasestr.m4: New file.
43592         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43593         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43594         REPLACE_STRCASESTR.
43595         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43597         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43598         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43599         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43600         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43601         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43602         (Depends-on): Remove mbuiter.
43603         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43604
43605 2007-02-04  Bruno Haible  <bruno@clisp.org>
43606
43607         Simplify handling of strncasecmp.
43608         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43609         the conditional link warning.
43610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43611         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43612         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43613         * modules/strcase (configure.ac): Don't invoke
43614         gl_STRING_MODULE_INDICATOR.
43615         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43616
43617 2007-02-04  Bruno Haible  <bruno@clisp.org>
43618
43619         New module mbscasecmp, reduced goal of strcasecmp.
43620         * modules/mbscasecmp: New file.
43621         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43622         (mbscasecmp): Renamed from strcasecmp.
43623         * lib/strcasecmp.c: Don't include mbuiter.h.
43624         (strcasecmp): Remove support for multibyte locales.
43625         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43626         Change the conditional link warning.
43627         (mbscasecmp): New declaration.
43628         * m4/mbscasecmp.m4: New file.
43629         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43630         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43631         REPLACE_STRCASECMP.
43632         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43634         GNULIB_MBSCASECMP.
43635         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43636         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43637         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43638         (Depends-on): Remove mbuiter.
43639         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43640
43641 2007-02-04  Bruno Haible  <bruno@clisp.org>
43642
43643         New module mbsstr. Remove module strstr.
43644         * modules/mbsstr: New file.
43645         * modules/strstr: Remove file.
43646         * lib/mbsstr.c: Renamed from lib/strstr.c.
43647         (mbsstr): Renamed from strstr.
43648         * lib/string_.h (strstr): Remove declaration. Change the conditional
43649         link warning.
43650         (mbsstr): New declaration.
43651         * m4/mbsstr.m4: New file.
43652         * m4/strstr.m4: Remove file.
43653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43654         REPLACE_STRSTR.
43655         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43656         Don't initialize GNULIB_STRSTR.
43657         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43658         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43659         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43660         (Support for systems lacking ANSI C 89): Remove strstr.
43661
43662 2007-02-04  Bruno Haible  <bruno@clisp.org>
43663
43664         New module mbsrchr.
43665         * modules/mbsrchr: New file.
43666         * lib/mbsrchr.c: New file.
43667         * lib/string_.h (strrchr): Add a conditional link warning.
43668         (mbsrchr): New declaration.
43669         * m4/mbsrchr.m4: New file.
43670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43671         GNULIB_MBSRCHR.
43672         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43673         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43674
43675 2007-02-04  Bruno Haible  <bruno@clisp.org>
43676
43677         New module mbschr.
43678         * modules/mbschr: New file.
43679         * lib/mbschr.c: New file.
43680         * lib/string_.h (strchr): Add a conditional link warning.
43681         (mbschr): New declaration.
43682         * m4/mbschr.m4: New file.
43683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43684         GNULIB_MBSCHR.
43685         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43686         * MODULES.html.sh (Internationalization functions): Add mbschr.
43687
43688 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43691
43692         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43693
43694 2007-02-04  Bruno Haible  <bruno@clisp.org>
43695
43696         New module description section 'configure.ac-early'.
43697         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43698         (func_get_autoconf_early_snippet): New function.
43699         (func_import, func_create_testdir): Use it. Remove special cases for
43700         modules 'extensions' and 'lock'.
43701         * modules/extensions (configure.ac-early): Require
43702         gl_USE_SYSTEM_EXTENSIONS.
43703         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43704
43705 2007-02-04  Bruno Haible  <bruno@clisp.org>
43706
43707         Make use of gcj-4.3's -fsource and -ftarget option.
43708         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43709         and if so try the options -fsource and -ftarget.
43710         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43711         source_version, ftarget_option, target_version arguments.
43712         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43713         (is_envjavac_oldgcj_14_14_usable): Renamed from
43714         is_envjavac_gcj_14_14_usable.
43715         (is_envjavac_oldgcj_14_13_usable): Renamed from
43716         is_envjavac_gcj_14_13_usable.
43717         (is_gcj_present): Update.
43718         (is_gcj_43, is_gcj43_usable): New functions.
43719         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43720         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43721         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43722         try the options -fsource and -ftarget.
43723
43724 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43725
43726         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43727         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43728         larger value.
43729
43730 2007-02-03  Jim Meyering  <jim@meyering.net>
43731
43732         Give tools a better chance to allocate space for very large buffers.
43733         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43734
43735         Make pwd and readlink work also when run with an unreadable parent dir
43736         on systems with openat support.
43737         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43738         provided getcwd function, even when we have openat support.
43739         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43740
43741 2007-02-02  Bruno Haible  <bruno@clisp.org>
43742
43743         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43744         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43745         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43746         portability problems if one of these functions is only used on specific
43747         platforms.
43748         Reported by Paul Eggert.
43749
43750 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43751
43752         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43753         is causing more trouble than it's curing.
43754         * lib/regex_internal.h (__mempcpy): Remove.
43755         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43756         (and make the code a tad smaller to boot).
43757         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43758
43759 2007-02-02  Jim Meyering  <jim@meyering.net>
43760
43761         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43762         section, not in the Makefile.am: one.
43763
43764 2007-02-02  Eric Blake  <ebb9@byu.net>
43765
43766         * lib/strchrnul.c: Always include config.h first.
43767
43768         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43769         gnulib strstr is not necessary here.
43770
43771 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43772
43773         * m4/socklen.m4: Fix typo.
43774
43775 2007-02-02  Eric Blake  <ebb9@byu.net>
43776
43777         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43778         * modules/netinet_in (Makefile.am): Likewise.
43779
43780 2007-02-01  Bruno Haible  <bruno@clisp.org>
43781
43782         * lib/string_.h (GL_LINK_WARNING): New macro.
43783         (strcasecmp, strstr, strcasestr): If provided by the system,
43784         conditionally define as a macro that leads to a warning instead of to
43785         an error.
43786         (strncasecmp): Conditionally define as a macro that leads to a warning.
43787
43788 2007-02-01  Karl Berry  <karl@gnu.org>
43789
43790         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43791
43792 2007-02-01  Bruno Haible  <bruno@clisp.org>
43793
43794         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43795         renamings.
43796
43797 2007-02-01  Eric Blake  <ebb9@byu.net>
43798
43799         * modules/regex (Depends-on): Revert dependence on mempcpy.
43800         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43801         module's definition of mempcpy.
43802         Reported by Paul Eggert.
43803
43804 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43805
43806         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43807         the symbol XYZ before redefining it.  This fixes a problem with
43808         programs that don't use XYZ, when compiled on systems that define
43809         XYZ to something else.
43810
43811 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43812
43813         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43814         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43815         writeable to group or other and (2) is intended to have a special
43816         mode bit that is set or cleared.  In such a case, the directory
43817         should be neither group- nor other-writeable until the special
43818         mode bits are right.
43819
43820 2007-01-31  Eric Blake  <ebb9@byu.net>
43821
43822         * modules/mountlist (Depends-on): Add strstr.
43823
43824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43825         bug.
43826         * modules/string (Makefile.am): Remove redundant replacement.
43827         * modules/regex (Depends-on): Add mempcpy.
43828
43829 2007-01-31  Bruno Haible  <bruno@clisp.org>
43830
43831         New module description field 'Link'.
43832         * gnulib-tool (func_usage): Document --extract-link-directive.
43833         (sed_extract_prog): Recognize 'Link' directive.
43834         (func_get_link_directive): New function.
43835         (func_import): Show summary of link directives.
43836         Handle --extract-link-directive option.
43837         * modules/acl (Link): New section.
43838         * modules/clock-time (Link): New section.
43839         * modules/euidaccess (Link): New section.
43840         * modules/gettext (Link): New section.
43841         * modules/iconv (Link): New section.
43842         * modules/lock (Link): New section.
43843         * modules/nanosleep (Link): New section.
43844         * modules/readline (Link): New section.
43845
43846 2007-01-27  Bruno Haible  <bruno@clisp.org>
43847
43848         Enforce the use of gnulib modules for unportable <string.h> functions.
43849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43850         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43851         (gl_HEADER_STRING_H_BODY): Require it.
43852         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43853         the symbol XYZ to one that gives a link error.
43854         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43855         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43856         * modules/mempcpy (configure.ac): Likewise.
43857         * modules/memrchr (configure.ac): Likewise.
43858         * modules/stpcpy (configure.ac): Likewise.
43859         * modules/stpncpy (configure.ac): Likewise.
43860         * modules/strcase (configure.ac): Likewise.
43861         * modules/strcasestr (configure.ac): Likewise.
43862         * modules/strchrnul (configure.ac): Likewise.
43863         * modules/strdup (configure.ac): Likewise.
43864         * modules/strndup (configure.ac): Likewise.
43865         * modules/strnlen (configure.ac): Likewise.
43866         * modules/strpbrk (configure.ac): Likewise.
43867         * modules/strsep (configure.ac): Likewise.
43868         * modules/strstr (configure.ac): Likewise.
43869         * modules/strtok_r (configure.ac): Likewise.
43870
43871 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43872
43873         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43874
43875 2007-01-30  Jim Meyering  <jim@meyering.net>
43876
43877         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43878
43879 2007-01-29  Bruno Haible  <bruno@clisp.org>
43880
43881         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43882         * lib/execute.c: Likewise.
43883         * lib/pipe.c: Likewise.
43884         * lib/printf-args.h: Likewise.
43885         * lib/printf-args.c: Likewise.
43886         * lib/printf-parse.c: Likewise.
43887         * lib/vasnprintf.c: Likewise.
43888
43889 2007-01-29  Eric Blake  <ebb9@byu.net>
43890
43891         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43892         declaration.
43893
43894 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43895
43896         * lib/strptime.h (strptime): Use 'restrict' for args where
43897         POSIX requires this.
43898         * lib/strptime.c (strptime): Likewise.
43899         Change license notice from LGPL to GPL, since gnulib-tool will
43900         change this as needed.
43901         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43902         defined.
43903         Include "strptime.h" first, to check interface.
43904         Do not #undef _LIBC and _NL_CURRENT.
43905         Do not include <stdlib.h>; no longer needed.
43906         Include "time_r.h" and declare ptime_locale_status
43907         only if _LIBC is not defined.
43908         (__P): Remove unused macro.
43909         (match_string): Bring back glibc version, but use it only if _LIBC
43910         is defined.
43911         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43912         Remove unnecessary assertion and abort() call.
43913         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43914         * m4/strptime.m4: Fix serial number comment.
43915         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43916         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43917         (Depends-on): Add time_r.
43918
43919 2007-01-29  Bruno Haible  <bruno@clisp.org>
43920
43921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43922         strptime.
43923         * modules/strptime (Depends-on): Add stdbool.
43924         * lib/strptime.h: Include <time.h> always. Add comments.
43925
43926 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43927
43928         * modules/strptime: New file.
43929         * lib/strptime.h: New file.
43930         * lib/strptime.c: New file.
43931         * m4/strptime.m4: New file.
43932
43933 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43934
43935         * MODULES.html.sh: New module mpsort.
43936         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
43937
43938         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
43939         a circularity problem with HP-UX ia64 reported by Bob Proulx in
43940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
43941         All uses changed.
43942         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
43943         All uses changed.
43944         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
43945         to _Restrict_.
43946         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
43947         the parameter matches the prototype.
43948
43949 2007-01-28  Jim Meyering  <jim@meyering.net>
43950
43951         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
43952         sys/time.h here, reverting that part of the previous patch:
43953         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
43954
43955 2007-01-28  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
43958         value of $(SYS_TIME_H).
43959         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
43960         remove it conditionally, too. [added by Jim Meyering]
43961         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
43962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43963         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
43964         GETTIMEOFDAY_REPLACEMENT to 1.
43965
43966 2007-01-28  Bruno Haible  <bruno@clisp.org>
43967
43968         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
43969         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
43970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
43971         Set UNISTD_H instead of UNISTD_H2.
43972         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
43973
43974 2007-01-28  Bruno Haible  <bruno@clisp.org>
43975
43976         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
43977         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
43978
43979 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43980
43981         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
43982         (func_create_testdir): Ensure C locale for `grep' and `tr'
43983         character ranges.
43984         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
43985         ACLOCAL_AMFLAGS parsing state machine.
43986
43987 2007-01-27  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/unistr/base: Update.
43990
43991 2007-01-27  Bruno Haible  <bruno@clisp.org>
43992
43993         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
43994         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
43995         * modules/unistr/u32-mbtouc-unsafe: Renamed from
43996         modules/unistr/u32-mbtouc.
43997         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
43998         * lib/unistr.h: Update.
43999         * lib/linebreak.c: Update.
44000         * modules/unistr/u32-mbtouc: Renamed from
44001         modules/unistr/u32-mbtouc-safe.
44002         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44003         * lib/unistr.h: Update.
44004         * lib/unistr/u32-to-u8.c: Update.
44005         * lib/unistr/u32-to-u16.c: Update.
44006
44007 2007-01-27  Bruno Haible  <bruno@clisp.org>
44008
44009         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44010         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44011         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44012         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44013         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44014         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44015         modules/unistr/u16-mbtouc.
44016         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44017         * lib/unistr.h: Update.
44018         * lib/linebreak.c: Update.
44019         * modules/linebreak: Update.
44020         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44021         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44022         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44023         * modules/unistr/u16-mbtouc: Renamed from
44024         modules/unistr/u16-mbtouc-safe.
44025         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44026         * lib/unistr.h: Update.
44027         * lib/unistr/u16-to-u8.c: Update.
44028         * modules/unistr/u16-to-u8: Update.
44029         * lib/unistr/u16-to-u32.c: Update.
44030         * modules/unistr/u16-to-u32: Update.
44031
44032 2007-01-27  Bruno Haible  <bruno@clisp.org>
44033
44034         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44035         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44036         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44037         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44038         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44039         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44040         modules/unistr/u8-mbtouc.
44041         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44042         * lib/unistr.h: Update.
44043         * lib/striconveh.c: Update.
44044         * modules/striconveh: Update.
44045         * lib/linebreak.c: Update.
44046         * modules/linebreak: Update.
44047         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44048         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44049         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44050         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44051         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44052         * lib/unistr.h: Update.
44053         * lib/striconveh.c: Update.
44054         * modules/striconveh: Update.
44055         * lib/unistr/u8-to-u16.c: Update.
44056         * modules/unistr/u8-to-u16: Update.
44057         * lib/unistr/u8-to-u32.c: Update.
44058         * modules/unistr/u8-to-u32: Update.
44059
44060 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44061
44062         Sync from Libtool.
44063         * lib/argz.c: Do not include strings.h nor memory.h, include
44064         string.h unconditionally.  Patch by Simon Josefsson.
44065
44066 2007-01-27  Bruno Haible  <bruno@clisp.org>
44067
44068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44069         from gl_HEADER_STRING_H_BODY.
44070         (gl_HEADER_STRING_H_BODY): Require it.
44071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44072         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44073         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44074         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44076         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44077         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44078         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44079         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44080         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44081         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44082         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44083         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44084         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44086
44087 2007-01-27  Bruno Haible  <bruno@clisp.org>
44088
44089         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44090         check_PROGRAMS into noinst_PROGRAMS.
44091         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44092         check_PROGRAMS in this case.
44093         (func_import): Set for_test to false.
44094         (func_create_testdir): Set for_test to true.
44095
44096 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44097             Bruno Haible  <bruno@clisp.org>
44098
44099         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44100         (Depends-on): Add string.
44101         (Includes): Use <string.h> instead of strcasestr.h.
44102         * modules/string (Makefile.am): Also substitute the value of
44103         REPLACE_STRCASESTR.
44104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44105         assume strcasestr is declared in <string.h> not <strings.h>. Also
44106         set REPLACE_STRCASESTR.
44107         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44108         REPLACE_STRCASESTR.
44109         * lib/strcasestr.h: Remove file.
44110         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44111         * lib/string_.h (strcasestr): New declaration.
44112
44113 2007-01-27  Bruno Haible  <bruno@clisp.org>
44114
44115         * lib/string_.h: Use 'extern'.
44116
44117 2007-01-27  Jim Meyering  <jim@meyering.net>
44118
44119         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44120         of set-but-not-used local, "q".
44121
44122         * lib/mempcpy.c: Include <config.h> before <string.h>.
44123         This fixes a compilation error on HP-UX, due to the system's
44124         "restrict"-using mempcpy prototype.
44125
44126 2007-01-26  Bruno Haible  <bruno@clisp.org>
44127
44128         Small optimization.
44129         * lib/javacomp.c: Include c-strstr.h.
44130          (is_envjavac_gcj): Use c_strstr instead of strstr.
44131         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44132
44133 2007-01-26  Bruno Haible  <bruno@clisp.org>
44134
44135         * MODULES.html.sh (Unicode string functions): Add the new modules.
44136
44137         * modules/uniconv/u32-strconv-to-locale: New file.
44138         * lib/uniconv/u32-strconv-to-locale.c: New file.
44139
44140         * modules/uniconv/u16-strconv-to-locale: New file.
44141         * lib/uniconv/u16-strconv-to-locale.c: New file.
44142
44143         * modules/uniconv/u8-strconv-to-locale: New file.
44144         * lib/uniconv/u8-strconv-to-locale.c: New file.
44145
44146         * modules/uniconv/u32-strconv-from-locale: New file.
44147         * lib/uniconv/u32-strconv-from-locale.c: New file.
44148
44149         * modules/uniconv/u16-strconv-from-locale: New file.
44150         * lib/uniconv/u16-strconv-from-locale.c: New file.
44151
44152         * modules/uniconv/u8-strconv-from-locale: New file.
44153         * lib/uniconv/u8-strconv-from-locale.c: New file.
44154
44155         * modules/uniconv/u32-strconv-to-enc: New file.
44156         * lib/uniconv/u32-strconv-to-enc.c: New file.
44157         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44158         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44159
44160         * modules/uniconv/u16-strconv-to-enc: New file.
44161         * lib/uniconv/u16-strconv-to-enc.c: New file.
44162         * lib/uniconv/u-strconv-to-enc.h: New file.
44163         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44164         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44165
44166         * modules/uniconv/u8-strconv-to-enc: New file.
44167         * lib/uniconv/u8-strconv-to-enc.c: New file.
44168         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44169         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44170
44171         * modules/uniconv/u32-strconv-from-enc: New file.
44172         * lib/uniconv/u32-strconv-from-enc.c: New file.
44173         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44174         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44175
44176         * modules/uniconv/u16-strconv-from-enc: New file.
44177         * lib/uniconv/u16-strconv-from-enc.c: New file.
44178         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44179         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44180
44181         * modules/uniconv/u8-strconv-from-enc: New file.
44182         * lib/uniconv/u8-strconv-from-enc.c: New file.
44183         * lib/uniconv/u-strconv-from-enc.h: New file.
44184         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44185         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44186
44187         * modules/uniconv/u32-conv-from-enc: New file.
44188         * lib/uniconv/u32-conv-from-enc.c: New file.
44189         * modules/uniconv/u32-conv-from-enc-tests: New file.
44190         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44191
44192         * modules/uniconv/u16-conv-from-enc: New file.
44193         * lib/uniconv/u16-conv-from-enc.c: New file.
44194         * lib/uniconv/u-conv-from-enc.h: New file.
44195         * modules/uniconv/u16-conv-from-enc-tests: New file.
44196         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44197
44198         * modules/uniconv/u8-conv-from-enc: New file.
44199         * lib/uniconv/u8-conv-from-enc.c: New file.
44200         * modules/uniconv/u8-conv-from-enc-tests: New file.
44201         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44202
44203         * modules/uniconv/base: New file.
44204         * lib/uniconv.h: New file.
44205
44206 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44207
44208         * doc/gnulib-tool.texi (Initial import): Update to match current
44209         behavior with strdup module.
44210         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44211         * lib/memmem.h: Remove; all uses removed.  This is now done
44212         by <string.h>.
44213         * lib/mempcpy.h: Likewise.
44214         * lib/memrchr.h: Likewise.
44215         * lib/stpcpy.h: Likewise.
44216         * lib/stpncpy.h: Likewise.
44217         * lib/strcase.h: Likewise.
44218         * lib/strchrnul.h: Likewise.
44219         * lib/strdup.h: Likewise.
44220         * lib/strndup.h: Likewise.
44221         * lib/strnlen.h: Likewise.
44222         * lib/strpbrk.h: Likewise.
44223         * lib/strsep.h: Likewise.
44224         * lib/strstr.h: Likewise.
44225         * lib/strtok_r.h: Likewise.
44226         * lib/string_.h: New file.
44227         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44228         Rely on <string.h> instead.
44229         * lib/canon-host.c: Likewise.
44230         * lib/chdir-long.c: Likewise.
44231         * lib/concatpath.c: Likewise.
44232         * lib/exclude.c: Likewise.
44233         * lib/fchdir.c: Likewise.
44234         * lib/getaddrinfo.c: Likewise.
44235         * lib/getcwd.c: Likewise.
44236         * lib/getsubopt.c: Likewise.
44237         * lib/glob.c: Likewise.
44238         * lib/hard-locale.c: Likewise.
44239         * lib/iconvme.c: Likewise.
44240         * lib/javacomp.c: Likewise.
44241         * lib/mempcpy.c: Likewise.
44242         * lib/memrchr.c: Likewise.
44243         * lib/regex_internal.h: Likewise.
44244         * lib/stpncpy.c: Likewise.
44245         * lib/strcasecmp.c: Likewise.
44246         * lib/strchrnul.c: Likewise.
44247         * lib/strdup.c: Likewise.
44248         * lib/striconv.c: Likewise.
44249         * lib/striconveh.c: Likewise.
44250         * lib/striconveha.c: Likewise.
44251         * lib/strncasecmp.c: Likewise.
44252         * lib/strndup.c: Likewise.
44253         * lib/strnlen.c: Likewise.
44254         * lib/strsep.c: Likewise.
44255         * lib/strstr.c: Likewise.
44256         * lib/strtok_r.c: Likewise.
44257         * lib/userspec.c: Likewise.
44258         * lib/w32spawn.h: Likewise.
44259         * lib/xstrndup.c: Likewise.
44260         * lib/mountlist.c (strstr): Remove decl.
44261         * m4/string_h.m4: New file.
44262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44263         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44264         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44265         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44266         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44267         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44268         Set REPLACE_STRCASECMP if necessary.
44269         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44270         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44271         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44272         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44273         HAVE_DECL_STRDUP if necessary.
44274         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44275         since gl_FUNC_STRNDUP does that now.
44276         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44277         Check for decl here...
44278         (gl_PREREQ_STRNLEN): ... not here.
44279         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44280         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44281         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44282         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44283         necessary.
44284         * modules/string: New file.
44285         * modules/memmem (Files): Remove special-purpose include file.
44286         (Depends-on): Add string.
44287         (Include): Include <string.h>, not the removed file.
44288         * modules/mempcpy: Likewise.
44289         * modules/memrchr: Likewise.
44290         * modules/stpcpy: Likewise.
44291         * modules/stpncpy: Likewise.
44292         * modules/strcase: Likewise.
44293         * modules/strchrnul: Likewise.
44294         * modules/strdup: Likewise.
44295         * modules/strndup: Likewise.
44296         * modules/strnlen: Likewise.
44297         * modules/strpbrk: Likewise.
44298         * modules/strsep: Likewise.
44299         * modules/strstr: Likewise.
44300         * modules/strtok_r: Likewise.
44301         * tests/test-dirname.c: Don't include "strdup.h", since
44302         <string.h> now suffices.
44303         * tests/test-memmem.c: Don't include "memmem.h", since
44304         <string.h> now suffices.
44305
44306 2007-01-25  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44309         *resultp is 0.
44310
44311         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44312         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44313         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44314         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44315
44316         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44317         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44318         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44319         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44320         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44321         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44322
44323 2007-01-24  Bruno Haible  <bruno@clisp.org>
44324
44325         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44327         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44328         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44329         gl_FUNC_FTS_CORE.
44330         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44331         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44332         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44333         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44334         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44335         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44336         gl_FUNC_FCHOWNAT.
44337         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44338         gl_FUNC_STRFTIME.
44339         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44340         Reported by Ralf Wildenhues.
44341
44342 2007-01-24  Bruno Haible  <bruno@clisp.org>
44343
44344         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44345         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44346         gl_GETADDRINFO.
44347         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44348         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44349         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44350
44351 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44352
44353         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44354         Don't use 'exit'; just return from 'main'.
44355         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44356
44357         * lib/fnmatch_.h: Readjust white space and comments to match
44358         glibc, to avoid spurious diffs.
44359
44360 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44363         2004-12-01 change by Jakub Jelinek, since this code won't compile
44364         if !LIBC.  Problem reported by Bob Proulx.
44365
44366 2007-01-23  Bruno Haible  <bruno@clisp.org>
44367
44368         * lib/striconveh.c: Include c-strcaseeq.h.
44369         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44370         * modules/striconveh (Depends-on): Add c-strcaseeq.
44371
44372 2007-01-23  Bruno Haible  <bruno@clisp.org>
44373
44374         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44375
44376         * modules/c-strcaseeq: New file.
44377         * lib/c-strcaseeq.h: New file.
44378
44379         * modules/streq: New file.
44380         * lib/streq.h: New file.
44381
44382 2007-01-23  Bruno Haible  <bruno@clisp.org>
44383
44384         * modules/striconveha-tests: New file.
44385         * tests/test-striconveha.c: New file.
44386
44387         * lib/striconveha.h: Include <stdbool.h>.
44388         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44389         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44390         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44391         (mem_iconveha): New function.
44392         (str_iconveha_notranslit): Renamed from str_iconveha.
44393         (str_iconveha): New function.
44394         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44395         c-strcase.
44396
44397 2007-01-23  Bruno Haible  <bruno@clisp.org>
44398
44399         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44400         encodings without forgiving before trying any encoding with handler.
44401         (str_iconveha): Try all encodings without forgiving before trying any
44402         encoding with handler.
44403
44404 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         Import the following changes from libc.
44407
44408         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44409
44410         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44411
44412         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44413
44414         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44415         normal_bracket label.
44416
44417         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44418
44419         [BZ #361]
44420         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44421         to normal_bracket after fetching the next character.
44422
44423 2007-01-22  Bruno Haible  <bruno@clisp.org>
44424
44425         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44426         argument.
44427         * lib/striconveh.c (iconv_carefully_1): New function.
44428         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44429         argument.
44430         (str_cd_iconveh): Update.
44431         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44432         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44433         * tests/test-striconveh.c (MAGIC): New macro.
44434         (new_offsets): New function.
44435         (main): Test call with and without offsets.
44436
44437 2007-01-22  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44440         * modules/sys_select (Makefile.am): Likewise.
44441         * modules/sys_socket (Makefile.am): Likewise.
44442         * modules/sys_time (Makefile.am): Likewise.
44443
44444 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * modules/gettimeofday (License): Change from GPL to LGPL, since
44447         gettimeofday is a library function.
44448
44449 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44450
44451         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44452
44453 2007-01-21  Bruno Haible  <bruno@clisp.org>
44454
44455         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44456
44457 2007-01-21  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/striconveha: New file.
44460         * lib/striconveha.h: New file.
44461         * lib/striconveha.c: New file.
44462         * MODULES.html.sh (Internationalization functions): Add striconveha.
44463         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44464         string.
44465         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44466
44467 2007-01-21  Bruno Haible  <bruno@clisp.org>
44468
44469         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44470         * lib/striconveh.c (str_iconveh): Likewise.
44471
44472 2007-01-21  Bruno Haible  <bruno@clisp.org>
44473
44474         * lib/striconveh.h (mem_iconveh): New declaration.
44475         * lib/striconveh.c (mem_iconveh): New function.
44476         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44477
44478 2007-01-21  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44481
44482         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44483         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44484         original result buffer.
44485         (str_cd_iconveh): Update.
44486         * tests/test-striconveh.c (main): Update.
44487
44488         * lib/striconv.h (mem_cd_iconv): Change specification.
44489         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44490         result buffer.
44491         (str_cd_iconv): Update.
44492         * tests/test-striconv.c (main): Update.
44493
44494 2007-01-21  Bruno Haible  <bruno@clisp.org>
44495
44496         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44497
44498 2007-01-20  Jim Meyering  <jim@meyering.net>
44499
44500         * lib/userspec.c (parse_with_separator): If a user or group string
44501         starts with "+", skip the corresponding name-to-ID look-up, since
44502         such a look-up must fail: user and group names may not include "+".
44503
44504 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44505
44506         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44507         since we now assume the sys_time module.
44508         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44509         check for sys/time.h; no longer needed.
44510         * modules/poll (Depends-on): Depend on sys_time.
44511
44512 2007-01-18  Bruno Haible  <bruno@clisp.org>
44513
44514         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44515         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44516
44517         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44518         gettimeofday.
44519
44520         * tests/test-gettimeofday.c: Include <time.h>.
44521         (dummy): Remove variable.
44522
44523         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44524         gl_HEADER_SYS_TIME_H.
44525         (gl_HEADER_SYS_TIME_H): New macro.
44526
44527         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44528         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44530         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44531         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44532         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44533         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44534         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44535         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44536         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44537         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44538
44539         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44540         last change; it caused a compilation error when cross-compiling to
44541         Cygwin.
44542
44543 2007-01-18  Jim Meyering  <jim@meyering.net>
44544
44545         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44546         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44547         than the race-prone "test -d sys || mkdir sys".
44548         (configure.ac): Use AC_PROG_MKDIR_P.
44549         * modules/sys_select: Likewise.
44550         * modules/sys_socket: Likewise.
44551         * modules/sys_time: Likewise.
44552
44553 2007-01-18  Eric Blake  <ebb9@byu.net>
44554
44555         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44556         replace gettimeofday.
44557         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44558         name, to avoid infinite recursion.
44559
44560 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44561
44562         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44563         module sys_time.
44564         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44565         assume timespec.h defines struct timeval.
44566         * lib/settime.c: Likewise.
44567         * lib/utimens.c: Likewise.
44568         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44569         since we now assume the gettimeofday module.
44570         * lib/tempname.c (__gen_tempname): Likewise.
44571         * lib/gettimeofday.h: Remove.
44572         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44573         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44574         Include <time.h>, for 'time()'.
44575         (localtime_buffer_addr): Also use this workaround if
44576         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44577         to simplify the uses.  All uses changed.
44578         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44579         that #undef is inside {}, and 'const' follows type name consistently.
44580         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44581         (gettimeofday): Do not use the maximum possible value for
44582         tv->tv_usec, since that might break usages other than ls.c.
44583         Instead, we'll leave ls.c alone.  This undoes today's patch
44584         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44585         we've never observed the problem but might as well keep the
44586         canary.
44587         * lib/nanosleep.c: Include timespec.h first, for interface check.
44588         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44589         now assume the sys_time module.
44590         * lib/tempname.c: Likewise.
44591         * lib/timespec.h: Likewise.
44592         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44593         needed.
44594         * lib/strftime.c: Likewise.
44595         * lib/timespec.h: Likewise.
44596         * lib/posixtm.c: Include posixtm.h first, for interface check.
44597         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44598         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44599         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44600         * lib/sys_time_.h: New file.
44601         * lib/timespec.h (struct timespec): Use long int, not long.
44602         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44603         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44604         Remove obsolescent call to AC_HEADER_TIME.
44605         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44607         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44608         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44609         Likewise.
44610         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44611         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44613         into the sys_time module.  Check for gettimeofday just once.
44614         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44615         for gettimeofday signature to just check the signature.  Merely
44616         compile it, since linking doesn't test signature.  Improve test for
44617         whether gettimeofday.o is actually needed.
44618         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44619         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44620         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44621         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44622         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44623         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44624         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44625         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44626         than worrying about sys/time.h.
44627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44628         Don't bother worrying about TIME_WITH_SYS_TIME.
44629         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44630         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44631         * m4/sys_time_h.m4: New file.
44632         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44633         Don't include sys/time.h.  Return from main rather than exiting.
44634         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44635         all uses changed.
44636         * modules/gethrxtime (Depends-on): Add sys_time.
44637         * modules/gettime (Depends-on): Likewise.
44638         * modules/gettimeofday (Depends-on): Likewise.
44639         * modules/nanosleep (Depends-on): Likewise.
44640         * modules/settime (Depends-on): Likewise.
44641         * modules/tempname (Depends-on): Likewise.
44642         * modules/utimens (Depends-on): Likewise.
44643         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44644         (Include:) Change back to <sys/time.h>.
44645         (Maintainer:) Add self.
44646         * modules/sys_time: New file.
44647         * modules/tempname (Depends-on): Add gettimeofday.
44648         * tests/test-gettimeofday.c: Include <sys/time.h>
44649         rather than gettimeofday.h.
44650
44651 2007-01-17  Bruno Haible  <bruno@clisp.org>
44652
44653         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44654         the license default to GPL.
44655         (func_create_testdir): Don't complain if a module is LGPL and its
44656         tests module depends on GPLed modules.
44657
44658 2007-01-17  Bruno Haible  <bruno@clisp.org>
44659
44660         * lib/gettimeofday.c (gettimeofday): Add code for the case
44661         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44662         maximum possible value for tv->tv_usec, rather than the minimum one.
44663
44664 2005-10-08  Martin Lambers  <marlam@marlam.de>
44665 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44666 2007-01-16  Bruno Haible  <bruno@clisp.org>
44667
44668         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44669         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44670         gl_FUNC_GETTIMEOFDAY.
44671         (Include): Add gettimeofday.h.
44672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44673         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44674         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44675         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44676         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44677         * lib/gettimeofday.h: New file.
44678         * lib/gettimeofday.c: Include <sys/timeb.h>.
44679         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44680         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44681         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44682         fall back on time().
44683
44684         * tests/test-gettimeofday.c: New file.
44685         * modules/gettimeofday-tests: New file.
44686
44687 2007-01-16  Eric Blake  <ebb9@byu.net>
44688
44689         * modules/fnmatch (Depends-on): Depend on wchar.
44690         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44691         * m4/fnmatch.m4: Likewise.
44692         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44693         * m4/mbchar.m4: Likewise.
44694         * modules/mbswidth (Depends-on): Depend on wchar.
44695         * lib/mbswidth.c: Assume <wchar.h>.
44696         * m4/mbswidth.m4: Likewise.
44697         * modules/quotearg (Depends-on): Depend on wchar.
44698         * lib/quotearg.c: Assume <wchar.h>.
44699         * m4/quotearg.m4: Likewise.
44700         * modules/regex (Depends-on): Depend on wchar.
44701         * lib/regex_internal.h: Assume <wchar.h>.
44702         * m4/regex.m4: Likewise.
44703         * modules/stdint (Depends-on): Depend on wchar.
44704         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44705         * m4/stdint.m4: Likewise.
44706         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44707         * modules/strftime (Depends-on): Depend on wchar.
44708         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44709         * modules/strtol (Depends-on): Depend on wchar.
44710         * lib/strtol.c: Assume <wchar.h>.
44711         * modules/wcwidth (Depends-on): Depend on wchar.
44712         * lib/wcwidth.h: Assume <wchar.h>.
44713         * m4/wcwidth.m4: Likewise.
44714
44715 2007-01-16  Bruno Haible  <bruno@clisp.org>
44716
44717         * modules/csharpexec-script: New, created from...
44718         * modules/csharpexec: ... this.
44719
44720 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44721
44722         * modules/javaexec-script: New, created from...
44723         * modules/javaexec: ... this.
44724
44725 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44726
44727         * modules/poll (Dependencies): Add sys_select.
44728
44729 2007-01-15  Jim Meyering  <jim@meyering.net>
44730
44731         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44732         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44733         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44734         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44735
44736 2007-01-15  Bruno Haible  <bruno@clisp.org>
44737
44738         * modules/striconveh: New file.
44739         * lib/striconveh.h: New file.
44740         * lib/striconveh.c: New file.
44741         * MODULES.html.sh (Internationalization functions): Add striconveh.
44742
44743         * modules/striconveh-tests: New file.
44744         * tests/test-striconveh.c: New file.
44745
44746 2007-01-15  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44749         not from GNU libiconv or GNU libc.
44750
44751 2007-01-15  Bruno Haible  <bruno@clisp.org>
44752
44753         * doc/gnulib-intro.texi (Copyright): Explain the different license
44754         terms for module descriptions, autoconf macros, tests, documentation.
44755
44756 2007-01-14  Bruno Haible  <bruno@clisp.org>
44757
44758         * modules/striconv-tests: New file.
44759         * tests/test-striconv.c: New file.
44760
44761 2007-01-14  Bruno Haible  <bruno@clisp.org>
44762
44763         * modules/iconv-tests: New file.
44764         * tests/test-iconv.c: New file.
44765
44766 2007-01-14  Bruno Haible  <bruno@clisp.org>
44767
44768         * gnulib-tool (func_get_license): For test modules, use the license of
44769         the main module.
44770
44771 2007-01-14  Bruno Haible  <bruno@clisp.org>
44772
44773         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44774         if iconv is found to exist.
44775
44776 2007-01-14  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/c-ctype-tests: New file.
44779         * tests/test-c-ctype.c: New file.
44780
44781 2007-01-14  Bruno Haible  <bruno@clisp.org>
44782
44783         * modules/binary-io-tests: New file.
44784         * tests/test-binary-io.sh: New file.
44785         * tests/test-binary-io.c: New file.
44786
44787 2007-01-14  Bruno Haible  <bruno@clisp.org>
44788
44789         * modules/array-oset-tests: New file.
44790         * tests/test-array_oset.c: New file.
44791
44792 2007-01-14  Bruno Haible  <bruno@clisp.org>
44793
44794         * modules/array-list-tests: New file.
44795         * tests/test-array_list.c: New file.
44796
44797 2007-01-14  Bruno Haible  <bruno@clisp.org>
44798
44799         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44800         and make.
44801         Reported by Simon Josefsson in
44802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44803
44804 2007-01-14  Bruno Haible  <bruno@clisp.org>
44805
44806         * modules/allocsa-tests: New file.
44807         * tests/test-allocsa.c: New file.
44808
44809 2007-01-14  Bruno Haible  <bruno@clisp.org>
44810
44811         * modules/fchdir (Depends-on): Add absolute-header.
44812         * modules/unistd (Depends-on): Likewise.
44813
44814 2006-12-30  Bruno Haible  <bruno@clisp.org>
44815
44816         * modules/fchdir: New file.
44817         * modules/unistd (Files): Add lib/unistd_.h.
44818         (Makefile.am): Generate unistd.h from unistd_.h.
44819         * lib/fchdir.c: New file.
44820         * lib/dirent_.h: New file.
44821         * lib/unistd_.h: New file.
44822         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44823         * m4/fchdir.m4: New file.
44824         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44825         (gl_HEADER_UNISTD): Invoke it.
44826         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44827         function.
44828         * lib/backupfile.c (opendir, closedir): Undefine.
44829         * lib/chown.c (open, close): Undefine.
44830         * lib/clean-temp.c (open, close): Undefine.
44831         * lib/copy-file.c (open, close): Undefine.
44832         * lib/execute.c (open, close): Undefine.
44833         * lib/fsusage.c (open, close): Undefine.
44834         * lib/gc-gnulib.c (open, close): Undefine.
44835         * lib/getcwd.c (opendir, closedir): Undefine.
44836         * lib/glob.c (opendir, closedir): Undefine.
44837         * lib/javacomp.c (open, close): Undefine.
44838         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44839         * lib/openat-proc.c (open, close): Undefine.
44840         * lib/pagealign_alloc.c (open, close): Undefine.
44841         * lib/pipe.c (open, close): Undefine.
44842         * lib/progreloc.c (open, close): Undefine.
44843         * lib/savedir.c (opendir, closedir): Undefine.
44844         * lib/utime.c (open, close): Undefine.
44845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44846
44847 2007-01-10  Bruno Haible  <bruno@clisp.org>
44848
44849         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44850
44851 2007-01-12  Eric Blake  <ebb9@byu.net>
44852
44853         Provide a robust <wchar.h>.  Further simplifications are now
44854         possible in other modules, but not included here.
44855         * modules/wchar: New module.
44856         * m4/wchar.m4: New file.
44857         * lib/wchar_.h: Likewise.
44858         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44859         of the new module.
44860         * MODULES.html.sh (Extended multibyte and wide character utilities):
44861         New section.
44862
44863 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44864
44865         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44866         to a reasonable default for memory allocation.
44867         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44868         file system that reports garbage st_size values for symlinks.
44869         Problem reported by Liyang Hu.
44870
44871 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44872
44873         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44874         Emacs .#* auto-save files).
44875
44876 2007-01-11  Bruno Haible  <bruno@clisp.org>
44877
44878         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44879         directory.
44880
44881 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44882
44883         Use @...@ consistently in lib/wctype_.h.
44884         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44885         on it being set to 1 or 0.
44886         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44887         go back to AC_SUBSTing it.
44888         * modules/wctype (Makefile.am): Undo previous change.
44889
44890 2007-01-10  Eric Blake  <ebb9@byu.net>
44891
44892         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44893         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44894         * modules/wctype (Makefile.am): Likewise.
44895         Reported by Chris McGuire.
44896
44897 2007-01-10  Jim Meyering  <jim@meyering.net>
44898
44899         fts.c: a small readability/maintainability improvement
44900         * lib/fts.c (fts_read): Make this code slightly more readable and
44901         maintainable by hoisting the "sp->fts_cur = p" assignments to
44902         immediately follow the statements that set P.  Derived from
44903         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44904
44905 2007-01-10  Eric Blake  <ebb9@byu.net>
44906
44907         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44908         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44910         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44911         Reported by Chris McGuire.
44912
44913 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44914
44915         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44916         in sed script.
44917
44918 2007-01-09  Bruno Haible  <bruno@clisp.org>
44919
44920         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
44921         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
44922         variables.
44923         (func_module): Use them.
44924
44925 2007-01-09  Bruno Haible  <bruno@clisp.org>
44926
44927         * modules/unistr/base: New file.
44928         * lib/unistr.h: New file.
44929
44930         * modules/unistr/u8-to-u16: New file.
44931         * lib/unistr/u8-to-u16.c: New file.
44932
44933         * modules/unistr/u8-to-u32: New file.
44934         * lib/unistr/u8-to-u32.c: New file.
44935
44936         * modules/unistr/u16-to-u8: New file.
44937         * lib/unistr/u16-to-u8.c: New file.
44938
44939         * modules/unistr/u16-to-u32: New file.
44940         * lib/unistr/u16-to-u32.c: New file.
44941
44942         * modules/unistr/u32-to-u8: New file.
44943         * lib/unistr/u32-to-u8.c: New file.
44944
44945         * modules/unistr/u32-to-u16: New file.
44946         * lib/unistr/u32-to-u16.c: New file.
44947
44948         * modules/unistr/u8-check: New file.
44949         * modules/unistr/u16-check: New file.
44950         * modules/unistr/u32-check: New file.
44951         * lib/unistr/u8-check.c: New file.
44952         * lib/unistr/u16-check.c: New file.
44953         * lib/unistr/u32-check.c: New file.
44954
44955         * modules/unistr/u8-chr: New file.
44956         * modules/unistr/u16-chr: New file.
44957         * modules/unistr/u32-chr: New file.
44958         * lib/unistr/u8-chr.c: New file.
44959         * lib/unistr/u16-chr.c: New file.
44960         * lib/unistr/u32-chr.c: New file.
44961
44962         * modules/unistr/u8-cmp: New file.
44963         * modules/unistr/u16-cmp: New file.
44964         * modules/unistr/u32-cmp: New file.
44965         * lib/unistr/u8-cmp.c: New file.
44966         * lib/unistr/u16-cmp.c: New file.
44967         * lib/unistr/u32-cmp.c: New file.
44968
44969         * modules/unistr/u8-cpy: New file.
44970         * modules/unistr/u16-cpy: New file.
44971         * modules/unistr/u32-cpy: New file.
44972         * lib/unistr/u8-cpy.c: New file.
44973         * lib/unistr/u16-cpy.c: New file.
44974         * lib/unistr/u32-cpy.c: New file.
44975         * lib/unistr/u-cpy.h: New file.
44976
44977         * modules/unistr/u8-cpy-alloc: New file.
44978         * modules/unistr/u16-cpy-alloc: New file.
44979         * modules/unistr/u32-cpy-alloc: New file.
44980         * lib/unistr/u8-cpy-alloc.c: New file.
44981         * lib/unistr/u16-cpy-alloc.c: New file.
44982         * lib/unistr/u32-cpy-alloc.c: New file.
44983         * lib/unistr/u-cpy-alloc.h: New file.
44984
44985         * modules/unistr/u8-endswith: New file.
44986         * modules/unistr/u16-endswith: New file.
44987         * modules/unistr/u32-endswith: New file.
44988         * lib/unistr/u8-endswith.c: New file.
44989         * lib/unistr/u16-endswith.c: New file.
44990         * lib/unistr/u32-endswith.c: New file.
44991         * lib/unistr/u-endswith.h: New file.
44992
44993         * modules/unistr/u8-mblen: New file.
44994         * modules/unistr/u16-mblen: New file.
44995         * modules/unistr/u32-mblen: New file.
44996         * lib/unistr/u8-mblen.c: New file.
44997         * lib/unistr/u16-mblen.c: New file.
44998         * lib/unistr/u32-mblen.c: New file.
44999
45000         * modules/unistr/u8-mbtouc: New file.
45001         * modules/unistr/u16-mbtouc: New file.
45002         * modules/unistr/u32-mbtouc: New file.
45003         * lib/unistr/u8-mbtouc.c: New file.
45004         * lib/unistr/u16-mbtouc.c: New file.
45005         * lib/unistr/u32-mbtouc.c: New file.
45006
45007         * modules/unistr/u8-mbtouc-safe: New file.
45008         * modules/unistr/u16-mbtouc-safe: New file.
45009         * modules/unistr/u32-mbtouc-safe: New file.
45010         * lib/unistr/u8-mbtouc-safe.c: New file.
45011         * lib/unistr/u16-mbtouc-safe.c: New file.
45012         * lib/unistr/u32-mbtouc-safe.c: New file.
45013
45014         * modules/unistr/u8-move: New file.
45015         * modules/unistr/u16-move: New file.
45016         * modules/unistr/u32-move: New file.
45017         * lib/unistr/u8-move.c: New file.
45018         * lib/unistr/u16-move.c: New file.
45019         * lib/unistr/u32-move.c: New file.
45020         * lib/unistr/u-move.h: New file.
45021
45022         * modules/unistr/u8-next: New file.
45023         * modules/unistr/u16-next: New file.
45024         * modules/unistr/u32-next: New file.
45025         * lib/unistr/u8-next.c: New file.
45026         * lib/unistr/u16-next.c: New file.
45027         * lib/unistr/u32-next.c: New file.
45028
45029         * modules/unistr/u8-prev: New file.
45030         * modules/unistr/u16-prev: New file.
45031         * modules/unistr/u32-prev: New file.
45032         * lib/unistr/u8-prev.c: New file.
45033         * lib/unistr/u16-prev.c: New file.
45034         * lib/unistr/u32-prev.c: New file.
45035
45036         * modules/unistr/u8-set: New file.
45037         * modules/unistr/u16-set: New file.
45038         * modules/unistr/u32-set: New file.
45039         * lib/unistr/u8-set.c: New file.
45040         * lib/unistr/u16-set.c: New file.
45041         * lib/unistr/u32-set.c: New file.
45042         * lib/unistr/u-set.h: New file.
45043
45044         * modules/unistr/u8-startswith: New file.
45045         * modules/unistr/u16-startswith: New file.
45046         * modules/unistr/u32-startswith: New file.
45047         * lib/unistr/u8-startswith.c: New file.
45048         * lib/unistr/u16-startswith.c: New file.
45049         * lib/unistr/u32-startswith.c: New file.
45050         * lib/unistr/u-startswith.h: New file.
45051
45052         * modules/unistr/u8-stpcpy: New file.
45053         * modules/unistr/u16-stpcpy: New file.
45054         * modules/unistr/u32-stpcpy: New file.
45055         * lib/unistr/u8-stpcpy.c: New file.
45056         * lib/unistr/u16-stpcpy.c: New file.
45057         * lib/unistr/u32-stpcpy.c: New file.
45058         * lib/unistr/u-stpcpy.h: New file.
45059
45060         * modules/unistr/u8-stpncpy: New file.
45061         * modules/unistr/u16-stpncpy: New file.
45062         * modules/unistr/u32-stpncpy: New file.
45063         * lib/unistr/u8-stpncpy.c: New file.
45064         * lib/unistr/u16-stpncpy.c: New file.
45065         * lib/unistr/u32-stpncpy.c: New file.
45066         * lib/unistr/u-stpncpy.h: New file.
45067
45068         * modules/unistr/u8-strcat: New file.
45069         * modules/unistr/u16-strcat: New file.
45070         * modules/unistr/u32-strcat: New file.
45071         * lib/unistr/u8-strcat.c: New file.
45072         * lib/unistr/u16-strcat.c: New file.
45073         * lib/unistr/u32-strcat.c: New file.
45074         * lib/unistr/u-strcat.h: New file.
45075
45076         * modules/unistr/u8-strchr: New file.
45077         * modules/unistr/u16-strchr: New file.
45078         * modules/unistr/u32-strchr: New file.
45079         * lib/unistr/u8-strchr.c: New file.
45080         * lib/unistr/u16-strchr.c: New file.
45081         * lib/unistr/u32-strchr.c: New file.
45082
45083         * modules/unistr/u8-strcmp: New file.
45084         * modules/unistr/u16-strcmp: New file.
45085         * modules/unistr/u32-strcmp: New file.
45086         * lib/unistr/u8-strcmp.c: New file.
45087         * lib/unistr/u16-strcmp.c: New file.
45088         * lib/unistr/u32-strcmp.c: New file.
45089
45090         * modules/unistr/u8-strcpy: New file.
45091         * modules/unistr/u16-strcpy: New file.
45092         * modules/unistr/u32-strcpy: New file.
45093         * lib/unistr/u8-strcpy.c: New file.
45094         * lib/unistr/u16-strcpy.c: New file.
45095         * lib/unistr/u32-strcpy.c: New file.
45096         * lib/unistr/u-strcpy.h: New file.
45097
45098         * modules/unistr/u8-strcspn: New file.
45099         * modules/unistr/u16-strcspn: New file.
45100         * modules/unistr/u32-strcspn: New file.
45101         * lib/unistr/u8-strcspn.c: New file.
45102         * lib/unistr/u16-strcspn.c: New file.
45103         * lib/unistr/u32-strcspn.c: New file.
45104         * lib/unistr/u-strcspn.h: New file.
45105
45106         * modules/unistr/u8-strdup: New file.
45107         * modules/unistr/u16-strdup: New file.
45108         * modules/unistr/u32-strdup: New file.
45109         * lib/unistr/u8-strdup.c: New file.
45110         * lib/unistr/u16-strdup.c: New file.
45111         * lib/unistr/u32-strdup.c: New file.
45112         * lib/unistr/u-strdup.h: New file.
45113
45114         * modules/unistr/u8-strlen: New file.
45115         * modules/unistr/u16-strlen: New file.
45116         * modules/unistr/u32-strlen: New file.
45117         * lib/unistr/u8-strlen.c: New file.
45118         * lib/unistr/u16-strlen.c: New file.
45119         * lib/unistr/u32-strlen.c: New file.
45120         * lib/unistr/u-strlen.h: New file.
45121
45122         * modules/unistr/u8-strmblen: New file.
45123         * modules/unistr/u16-strmblen: New file.
45124         * modules/unistr/u32-strmblen: New file.
45125         * lib/unistr/u8-strmblen.c: New file.
45126         * lib/unistr/u16-strmblen.c: New file.
45127         * lib/unistr/u32-strmblen.c: New file.
45128
45129         * modules/unistr/u8-strmbtouc: New file.
45130         * modules/unistr/u16-strmbtouc: New file.
45131         * modules/unistr/u32-strmbtouc: New file.
45132         * lib/unistr/u8-strmbtouc.c: New file.
45133         * lib/unistr/u16-strmbtouc.c: New file.
45134         * lib/unistr/u32-strmbtouc.c: New file.
45135
45136         * modules/unistr/u8-strncat: New file.
45137         * modules/unistr/u16-strncat: New file.
45138         * modules/unistr/u32-strncat: New file.
45139         * lib/unistr/u8-strncat.c: New file.
45140         * lib/unistr/u16-strncat.c: New file.
45141         * lib/unistr/u32-strncat.c: New file.
45142         * lib/unistr/u-strncat.h: New file.
45143
45144         * modules/unistr/u8-strncmp: New file.
45145         * modules/unistr/u16-strncmp: New file.
45146         * modules/unistr/u32-strncmp: New file.
45147         * lib/unistr/u8-strncmp.c: New file.
45148         * lib/unistr/u16-strncmp.c: New file.
45149         * lib/unistr/u32-strncmp.c: New file.
45150
45151         * modules/unistr/u8-strncpy: New file.
45152         * modules/unistr/u16-strncpy: New file.
45153         * modules/unistr/u32-strncpy: New file.
45154         * lib/unistr/u8-strncpy.c: New file.
45155         * lib/unistr/u16-strncpy.c: New file.
45156         * lib/unistr/u32-strncpy.c: New file.
45157         * lib/unistr/u-strncpy.h: New file.
45158
45159         * modules/unistr/u8-strnlen: New file.
45160         * modules/unistr/u16-strnlen: New file.
45161         * modules/unistr/u32-strnlen: New file.
45162         * lib/unistr/u8-strnlen.c: New file.
45163         * lib/unistr/u16-strnlen.c: New file.
45164         * lib/unistr/u32-strnlen.c: New file.
45165         * lib/unistr/u-strnlen.h: New file.
45166
45167         * modules/unistr/u8-strpbrk: New file.
45168         * modules/unistr/u16-strpbrk: New file.
45169         * modules/unistr/u32-strpbrk: New file.
45170         * lib/unistr/u8-strpbrk.c: New file.
45171         * lib/unistr/u16-strpbrk.c: New file.
45172         * lib/unistr/u32-strpbrk.c: New file.
45173         * lib/unistr/u-strpbrk.h: New file.
45174
45175         * modules/unistr/u8-strrchr: New file.
45176         * modules/unistr/u16-strrchr: New file.
45177         * modules/unistr/u32-strrchr: New file.
45178         * lib/unistr/u8-strrchr.c: New file.
45179         * lib/unistr/u16-strrchr.c: New file.
45180         * lib/unistr/u32-strrchr.c: New file.
45181
45182         * modules/unistr/u8-strspn: New file.
45183         * modules/unistr/u16-strspn: New file.
45184         * modules/unistr/u32-strspn: New file.
45185         * lib/unistr/u8-strspn.c: New file.
45186         * lib/unistr/u16-strspn.c: New file.
45187         * lib/unistr/u32-strspn.c: New file.
45188         * lib/unistr/u-strspn.h: New file.
45189
45190         * modules/unistr/u8-strstr: New file.
45191         * modules/unistr/u16-strstr: New file.
45192         * modules/unistr/u32-strstr: New file.
45193         * lib/unistr/u8-strstr.c: New file.
45194         * lib/unistr/u16-strstr.c: New file.
45195         * lib/unistr/u32-strstr.c: New file.
45196         * lib/unistr/u-strstr.h: New file.
45197
45198         * modules/unistr/u8-strtok: New file.
45199         * modules/unistr/u16-strtok: New file.
45200         * modules/unistr/u32-strtok: New file.
45201         * lib/unistr/u8-strtok.c: New file.
45202         * lib/unistr/u16-strtok.c: New file.
45203         * lib/unistr/u32-strtok.c: New file.
45204         * lib/unistr/u-strtok.h: New file.
45205
45206         * modules/unistr/u8-uctomb: New file.
45207         * modules/unistr/u16-uctomb: New file.
45208         * modules/unistr/u32-uctomb: New file.
45209         * lib/unistr/u8-uctomb.c: New file.
45210         * lib/unistr/u16-uctomb.c: New file.
45211         * lib/unistr/u32-uctomb.c: New file.
45212
45213         * MODULES.html.sh (Unicode string functions): Add the new modules.
45214
45215 2007-01-08  Bruno Haible  <bruno@clisp.org>
45216
45217         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45218         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45219         subdirectories.
45220
45221 2007-01-08  Karl Berry  <karl@gnu.org>
45222
45223         * doc/error.texi: mention that main() fns must set program_name
45224         when progname is used.
45225
45226 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45227
45228         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45229         WCTYPE_H is empty, for the benefit of builds from non-distclean
45230         directories.  Problem reported by Eric Blake in
45231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45232
45233 2007-01-08  Bruno Haible  <bruno@clisp.org>
45234
45235         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45236         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45237         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45238         PROVIDE_CANONICALIZE_FILENAME_MODE.
45239         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45240
45241 2007-01-08  Bruno Haible  <bruno@clisp.org>
45242
45243         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45244         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45245         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45246         * lib/fts.c: Likewise.
45247         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45248
45249 2006-12-25  Bruno Haible  <bruno@clisp.org>
45250
45251         * modules/utf8-ucs4-safe: New file.
45252         * lib/utf8-ucs4-safe.h: New file.
45253         * lib/unistr/utf8-ucs4-safe.c: New file.
45254
45255         * modules/utf16-ucs4-safe: New file.
45256         * lib/utf16-ucs4-safe.h: New file.
45257         * lib/unistr/utf16-ucs4-safe.c: New file.
45258
45259         * MODULES.html.sh (Unicode string functions): Add the new modules.
45260
45261 2007-01-08  Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45264         (Depends-on): Add unitypes.
45265         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45266         (u8_mbtouc_aux): Move out to separate file.
45267         (u8_mbtouc): Use ucs4_t, uint8_t types.
45268         * lib/unistr/utf8-ucs4.c: New file.
45269
45270         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45271         (Depends-on): Add unitypes.
45272         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45273         (u16_mbtouc_aux): Move out to separate file.
45274         (u16_mbtouc): Use ucs4_t, uint16_t types.
45275         * lib/unistr/utf16-ucs4.c: New file.
45276
45277         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45278         (Depends-on): Add unitypes.
45279         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45280         (u8_uctomb_aux): Move out to separate file.
45281         (u8_uctomb): Use ucs4_t, uint8_t types.
45282         * lib/unistr/ucs4-utf8.c: New file.
45283
45284         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45285         (Depends-on): Add unitypes.
45286         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45287         (u16_uctomb_aux): Move out to separate file.
45288         (u16_uctomb): Use ucs4_t, uint16_t types.
45289         * lib/unistr/ucs4-utf16.c: New file.
45290
45291 2006-12-25  Bruno Haible  <bruno@clisp.org>
45292
45293         * modules/unitypes: New file.
45294         * lib/unitypes.h: New file.
45295         * MODULES.html.sh (func_all_modules): New section "Unicode string
45296         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45297         this section. Add unitypes.
45298
45299 2007-01-08  Bruno Haible  <bruno@clisp.org>
45300
45301         Avoid variable names that conflict with those from libtool.
45302         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45303         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45304         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45305         library_names_spec to acl_library_names_spec, hardcode_* to
45306         acl_hardcode_*.
45307         Reported by Ralf Wildenhues.
45308
45309 2007-01-08  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45312         definition.
45313         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45314         definition.
45315         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45316         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45317         definition.
45318         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45319         definition.
45320         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45321         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45322         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45323         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45324         definition.
45325         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45326         definition.
45327         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45328         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45329         GC_USE_<algorithm>.
45330         * lib/gc-libgcrypt.c: Likewise.
45331         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45332         * modules/gc-arctwo (configure.ac): Likewise.
45333         * modules/gc-des (configure.ac): Likewise.
45334         * modules/gc-hmac-md5 (configure.ac): Likewise.
45335         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45336         * modules/gc-md2 (configure.ac): Likewise.
45337         * modules/gc-md4 (configure.ac): Likewise.
45338         * modules/gc-md5 (configure.ac): Likewise.
45339         * modules/gc-random (configure.ac): Likewise.
45340         * modules/gc-rijndael (configure.ac): Likewise.
45341         * modules/gc-sha1 (configure.ac): Likewise.
45342
45343 2007-01-08  Bruno Haible  <bruno@clisp.org>
45344
45345         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45346         macro definition.
45347         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45348         definition.
45349         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45350         definition.
45351         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45352         * modules/fcntl-safer (configure.ac): Likewise.
45353         * modules/fopen-safer (configure.ac): Likewise.
45354         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45355         GNULIB_FWRITEERROR macro definition.
45356
45357 2007-01-08  Bruno Haible  <bruno@clisp.org>
45358
45359         * m4/gnulib-common.m4: New file.
45360         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45361         (func_get_filelist): Add m4/gnulib-common.m4.
45362
45363 2007-01-08  Bruno Haible  <bruno@clisp.org>
45364
45365         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45366         command.
45367
45368 2007-01-08  Jim Meyering  <jim@meyering.net>
45369
45370         Use a more robust test for a "can't happen" condition.
45371         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45372         narrowed the st_size value.  Presuming the "can't happen" condition
45373         is true, that narrowing could conceivably convert an invalid st_size
45374         value into a valid one.  Instead, use a change based on Matthew
45375         Woehlke's original patch.
45376
45377         Slight readability improvement: use an assert-like macro
45378         in place of literal "abort ()" uses.
45379         * lib/fts.c (fts_assert): Define.
45380         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45381         Use this macro instead of a bare 'abort'.
45382
45383 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45384
45385         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45386         simply work around them.
45387         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45388         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45389         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45390         declaring.
45391         Don't bother to define as macros, since the standard doesn't require it.
45392         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45393         longer worry about IRIX 5.3.
45394         (HAVE_WCTYPE_CTMP_BUG): Remove.
45395
45396 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45397
45398         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45399         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45400         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45401         Problems reported by Georg Schwarz for IRIX 5.3.
45402
45403         * gnulib-tool (autoconf_minversion): Take the maximum version number
45404         found, not the minimum.  Problem reported by James Youngman.
45405
45406 2007-01-03  Karl Berry  <karl@gnu.org>
45407
45408         * doc/error.texi: new file, explaining interaction with progname.
45409         * doc/gnulib.texi: include it.  Update copyright.
45410
45411 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45412
45413         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45414         AC_CANONICAL_HOST, to improve autobuild outputs.
45415
45416 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45417             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45418
45419         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45420         sockets, server sockets, and other file descriptors.  Count errors
45421         to compute the return value.  Reorder the code a bit to be easier
45422         to follow.  Don't set event bits that were not requested (except
45423         POLLERR and POLLHUP).
45424
45425 2007-01-01  Bruno Haible  <bruno@clisp.org>
45426
45427         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45428
45429 2007-01-03  Jim Meyering  <jim@meyering.net>
45430
45431         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45432
45433 2007-01-02  Bruno Haible  <bruno@clisp.org>
45434
45435         * modules/settime (Include): Require timespec.h.
45436         * modules/nanosleep (Include): Likewise.
45437
45438 2007-01-01  Bruno Haible  <bruno@clisp.org>
45439
45440         * gnulib-tool (func_emit_copyright_notice): Bump year.
45441         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45442
45443 2007-01-01  Bruno Haible  <bruno@clisp.org>
45444
45445         Improve support for OpenBSD.
45446         * build-aux/config.rpath (libname_spec): Export.
45447         (library_names_spec): New variable. Export.
45448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45449         library_names_spec from the config.rpath output. Locate shared library
45450         through the name pattern in library_names_spec.
45451
45452 2007-01-01  Eric Blake  <ebb9@byu.net>
45453
45454         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45455
45456 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45457
45458         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45459         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45460         assume the C locale, and avoid an "eval" that could cause trouble.
45461         Problem with SORT reported by Bob Proulx.
45462
45463         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45464         Define.  Trivial patch from Henning Nielsen Lund, originally
45465         sent to bug-grep@gnu.org today.
45466
45467 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45468
45469         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45470         struct stat.  Problem reported by Henning Nielsen Lund.
45471         * lib/acl.c: Include acl.h first, to check interface.  Don't
45472         bother to include sys/types.h and sys/stat.h again.
45473
45474 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45475
45476         Import the following change from libc; problem reported by
45477         Sven Verdoolaege.
45478
45479         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45480
45481         [BZ #1373]
45482         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45483
45484 2006-12-28  Jim Meyering  <jim@meyering.net>
45485
45486         * build-aux/announce-gen: Do not assume that the package
45487         builds any of tar.gz, tar.bz2, and .xdelta files.
45488         Suggestion from Simon Josefsson.
45489
45490 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45491
45492         * modules/announce-gen: New file.
45493
45494 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45495
45496         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45497         handles its gotchas now.
45498         * lib/mbswidth.c: Likewise.
45499         * lib/wcwidth.h: Likewise.
45500         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45501         and iswcntrl; the wctype module does this stuff now.
45502         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45504         * modules/mbchar (Depends-on): Add wctype.
45505         * modules/mbswidth (Depends-on): Likewise.
45506         * modules/wcwidth (Depends-on): Likewise.
45507
45508 2006-12-27  Eric Blake  <ebb9@byu.net>
45509
45510         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45511         module uses more than what <wctype.h> is required to provide.
45512
45513 2006-12-26  Eric Blake  <ebb9@byu.net>
45514
45515         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45516
45517 2006-12-26  Eric Blake  <ebb9@byu.net>
45518
45519         * modules/absolute-header: New module.
45520         * modules/fcntl (Depends-on): Depend on it.
45521         * modules/inttypes (Depends-on): Likewise.
45522         * modules/stdint (Depends-on): Likewise.
45523         * modules/sys_stat (Depends-on): Likewise.
45524         * modules/wctype (Depends-on): Likewise.
45525         * MODULES.html.sh (Support for building libraries and
45526         executables): Document it.
45527
45528 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45529
45530         * gnulib-tool (SED): Remove, undoing previous change.
45531         The problem was that it broke coreutils on Solaris, because
45532         "sed --posix" leaked into a makefile.
45533         (sed): New alias, if 'alias' and GNU sed.
45534
45535 2006-12-24  Jim Meyering  <jim@meyering.net>
45536
45537         Work around an fchownat bug in glibc-2.4:
45538         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45539         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45540         in spite of the -P option.
45541         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45542         New macros.
45543         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45544         * modules/openat (Files): Add lib/fchownat.c.
45545         * lib/openat.c (fchownat): Don't define here.  Move to...
45546         * lib/fchownat.c: ...this new file.
45547
45548 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45549
45550         Fix bug reported by Bruno Haible in
45551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45552         where quotearg.c didn't compile on Mac OS X 10.2 because it
45553         lacks <wchar.h> and wint_t.
45554         * lib/wctype_.h (__wctype_wint_t): New type.
45555         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45556         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45557         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45558         Arg is now of type __wctype_wint_t, not wint_t.
45559         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45560         substitute HAVE_WINT_T.
45561         * modules/wctype (Files): Add m4/wint_t.m4.
45562         (wctype.h): Substitute HAVE_WINT_T.
45563
45564 2006-12-23  Bruno Haible  <bruno@clisp.org>
45565
45566         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45567
45568 2006-12-23  Bruno Haible  <bruno@clisp.org>
45569
45570         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45571         S_ISLNK.
45572         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45573         mingw.
45574
45575 2006-12-22  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/copy-file.c: Include acl.h.
45578         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45579         Close the file descriptors only after being done with copy_acl.
45580         * modules/copy-file (Depends-on): Add acl.
45581
45582 2006-12-22  Bruno Haible  <bruno@clisp.org>
45583
45584         * gnulib-tool (SED): New variable.
45585         Use $SED instead of sed everywhere.
45586
45587 2006-12-22  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/no-c++: New file.
45590         * m4/no-c++.m4: New file.
45591         * MODULES.html.sh (Support for building libraries and executables):
45592         Add no-c++.
45593
45594 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45595
45596         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45597         Include <limits.h>, and use its INT_MAX to rewrite the
45598         j loop so that it does not overflow 'int'.  Problem reported by
45599         Ralf Wildenhues in
45600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45601         Play it safe by shifting left by 1 rather than multiplying by 2,
45602         as GCC is less likely to optimize this away when the value
45603         is signed (when it assumes overflow leads to undefined behavior).
45604         Also, don't assume time_t uses two's complement.
45605
45606 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45607
45608         * MODULES.html.sh: New module wctype.
45609         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45610         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45611         <wctype.h>, since the new wctype module should fix this.
45612         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45613         the wctype module should arrange for it.
45614         * lib/regex_internal.h: Likewise.
45615         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45616         since the wctype module should handle this now.
45617         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45618         * modules/fnmatch (Depends-on): Add wctype.
45619         * modules/quotearg (Depends-on): Likewise.
45620         * modules/regex (Depends-on): Likewise.
45621
45622 2006-12-19  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45625         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45626
45627 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45628
45629         * modules/savewd (Depends-on): Fix dependency on fcntl.
45630
45631 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45634         conforms to C99, rather than relying on the user's environment
45635         setting of STDINT_H.
45636
45637 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45638         and Eric Blake  <ebb9@byu.net>
45639
45640         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45641         This is more consistent with the other defines here.
45642         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45643         Port to z/OS.  Problem reported by Paul Gilmartin.
45644         Change local vars to use gl_ prefix rather than ac_.
45645         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45646         with other defines.
45647         * modules/double-slash-root: New module.
45648         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45649         (Depends-on): Add double-slash-root.
45650         * MODULES.html.sh (File system functions): Mention new module.
45651
45652 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45653
45654         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45655         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45656         This is for the benefit of gzip, which doesn't do i18n.
45657
45658 2006-12-12  Jim Meyering  <jim@meyering.net>
45659
45660         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45661         Reported by Andreas Schwab <schwab@suse.de>.
45662
45663 2006-12-12  Bruno Haible  <bruno@clisp.org>
45664
45665         Merge these changes.
45666         2006-09-05  Bruno Haible  <bruno@clisp.org>
45667         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45668         iconv_alloc succeeded.
45669         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45670         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45671         test for " && dest " at the end - dest is always != NULL there. Call
45672         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45673         with 2xNULL arguments, also to flush the state storage. Handle the
45674         IRIX iconv behaviour. Realloc the final result, to throw away unused
45675         memory.
45676
45677 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45678
45679         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45680         and fchmodat unconditionally, since glibc 2.4 has them.
45681         Problem reported by Arkadiusz Miskiewicz.
45682
45683 2006-12-10  Bruno Haible  <bruno@clisp.org>
45684
45685         * gnulib-tool (func_import): Show the include files only for those
45686         modules that are copied and specified.
45687         Reported by Karl Berry.
45688
45689 2006-12-08  Jim Meyering  <jim@meyering.net>
45690
45691         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45692         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45693
45694         * build-aux/announce-gen: Add two new options, both optional:
45695         --bootstrap-tools=TOOL_LIST
45696               a comma-separated list of tools, e.g.,
45697               autoconf,automake,bison,gnulib
45698         --gnulib-snapshot-date=DATE
45699               if gnulib is in the bootstrap tool list,
45700               then report this as the snapshot date.
45701               If not specified, use the current date/time.
45702               If you specify a date here, be sure it's UTC.
45703
45704 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45705
45706         * tests/test-argp-2.sh: Fix test to match actual output.
45707         (func_compare): Fix sed script to be portable.
45708
45709 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45710
45711         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45712         workaround for this case.  It is not autoconfigured now; offhand
45713         it's hard to see how to autoconfigure it.
45714
45715 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45716
45717         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45718         a directory that is about to be chowned.  Such a directory's
45719         initial file permissions should permit the owner only and this
45720         should not be changed until after the chown, since the group and
45721         other bits would be incorrect if they granted permission before
45722         the chown.
45723
45724         Fix porting problem for iswctype reported by Georg Schwarz in:
45725         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45726         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45727         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45729         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45730
45731 2006-12-03  Jim Meyering  <jim@meyering.net>
45732
45733         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45734         p->fts_statp may not yet be defined.
45735         (fts_read): Instead, set it in the caller, once p->fts_statp is
45736         sure to be defined, and corresponds to a top-level directory.
45737         This bug made du -x fail.  Here's the coreutils test case:
45738         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45739         Reported by Mike Frysinger.
45740
45741 2006-12-01  Jim Meyering  <jim@meyering.net>
45742
45743         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45744         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45745         Reported by Simon Josefsson.
45746
45747 2006-11-30  Jim Meyering  <jim@meyering.net>
45748
45749         * m4/warning.m4: Use the all-permissive copyright notice
45750         recommended by RMS (rather than LGPL).
45751         * m4/vararrays.m4: Likewise.
45752         * m4/flexmember.m4: Likewise.
45753
45754 2006-11-29  Bruno Haible  <bruno@clisp.org>
45755
45756         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45757         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45758         using +=.
45759         Reported by Simon Josefsson <simon@josefsson.org>.
45760
45761 2006-11-28  James Youngman <jay@gnu.org>
45762
45763         * README: Advise users that they might find the bug-gnulib@gnu.org
45764         and autotools-announce@gnu.org mailing lists useful.
45765
45766 2006-11-28  Bruno Haible  <bruno@clisp.org>
45767
45768         * m4/ptrdiff_max.m4: Remove file.
45769
45770 2006-11-21  Bruno Haible  <bruno@clisp.org>
45771
45772         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45773         _AC_COMPUTE_INT.
45774         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45775         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45776         _AC_COMPUTE_INT.
45777         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45778         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45779         _AC_COMPUTE_INT.
45780         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45781
45782 2006-11-28  Jim Meyering  <jim@meyering.net>
45783
45784         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45785         warning from "gcc -Wshadow" about shadowing the builtin.
45786
45787 2006-11-27  Bruno Haible  <bruno@clisp.org>
45788
45789         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45790         _AC_COMPUTE_INT.
45791         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45792
45793 2006-11-27  Bruno Haible  <bruno@clisp.org>
45794             Paul Eggert  <eggert@cs.ucla.edu>
45795
45796         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45797
45798 2006-11-26  Bruno Haible  <bruno@clisp.org>
45799
45800         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45801         noinst_LTLIBRARIES.
45802
45803 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45804             Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45807         if compiling with "gcc -ansi".
45808
45809 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45810
45811         Fix some incompatibilities with gcc -ansi -pedantic.
45812         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45813         if compiling pedantically with GCC, unless it's C99 or later.
45814         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45815         it mishandles gcc -ansi -pedantic as well.
45816         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45817         if gcc -pedantic.
45818         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45819         initializers for struct if -pedantic, unless it's C99 or later.
45820
45821 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45822
45823         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45824         Don't close an fd more than once. Identical atimes indicate
45825         success, not failure.
45826
45827 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45828
45829         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45830
45831 2006-11-23  Jim Meyering  <jim@meyering.net>
45832
45833         * build-aux/announce-gen: New file.  From coreutils.
45834
45835 2006-11-22  Jim Meyering  <jim@meyering.net>
45836
45837         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45838         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45839         (fts_read): Use a temporary to narrow the overused st_size member
45840         before using it in a switch statement.  Reported by Matthew Woehlke.
45841
45842         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45843         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45844
45845 2006-11-20  Bruno Haible  <bruno@clisp.org>
45846
45847         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45848         changequote instead of pairs of brackets.
45849         Reported by Andreas Schwab <schwab@suse.de>.
45850
45851 2006-11-21  Jim Meyering  <jim@meyering.net>
45852
45853         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45854         so as to remain compatible with older compilers.
45855         Patch from Michael Deutschmann.
45856
45857 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45858
45859         * MODULES.html.sh (File system functions): Add openat.
45860
45861         * lib/openat.h (rpl_fstatat): New macro, if
45862         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45863         (fstatat): Define to rpl_fstatat under the same conditions,
45864         unless COMPILING_FSTATAT.
45865         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45866         seems to have the bug.
45867         * lib/fstatat.c: New file.
45868         * modules/openat (Files): Add it.
45869
45870 2006-11-20  Bruno Haible  <bruno@clisp.org>
45871
45872         * Makefile: New file.
45873
45874 2006-11-20  Jim Meyering  <jim@meyering.net>
45875
45876         The beginnings of syntax-related checks for gnulib.
45877         * lib/Makefile: New file.
45878         * lib/t-idcache: New script.  Ensure that the two halves of
45879         idcache.c stay in sync.
45880
45881         * lib/idcache.c: Adjust comments in user- and group- portions to
45882         be more accurate, and to be consistent with one another.
45883
45884 2006-11-20  Jim Meyering  <jim@meyering.net>
45885
45886         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45887         continue using the flexible array member (thus, this module performs
45888         half as many malloc calls), with the addition that...
45889         (getgroup, getuser): Consistently record a non-match via an empty
45890         "name" string, and map an empty string match to a NULL return value.
45891         * modules/idcache (Depends-on): Re-add flexmember.
45892
45893         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45894         (getuidbyname, getgroup, getgidbyname): Likewise.
45895
45896         Use cleaner syntax: NULL rather than 0.
45897         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45898
45899 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45900
45901         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45902         It mishandled the case where the group was missing.
45903         Problem reported by Greg Schafer.
45904         * modules/idcache: Likewise.
45905
45906 2006-11-18  Jim Meyering  <jim@meyering.net>
45907
45908         * check-module (%exempt_header): Add exception for some
45909         conditionally-included headers.
45910
45911         * modules/i-ring (Depends-on): Add verify.
45912         (License): Change to LGPL.
45913
45914 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45915
45916         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45917         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45918         and inttostr.h.  Use snprintf rather than uinttostr, so that
45919         LGPLed code doesn't depend on GPLed.
45920
45921 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45922
45923         * modules/inline (License): Change from GPL to LGPL.
45924
45925 2006-11-17  Jim Meyering  <jim@meyering.net>
45926
45927         * modules/d-type (License): Switch to LGPL.
45928
45929 2006-11-15  Bruno Haible  <bruno@clisp.org>
45930
45931         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
45932
45933 2006-11-15  Eric Blake  <ebb9@byu.net>
45934
45935         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
45936         the module dependency.
45937
45938 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45939             Bruno Haible  <bruno@clisp.org>
45940
45941         * gnulib-tool (func_create_testdir): Add license consistency check.
45942
45943 2006-11-15  Eric Blake  <ebb9@byu.net>
45944
45945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
45946         random "(cached)" in configure output.
45947
45948 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45949
45950         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
45951         test for conforming inttypes.h is both announced and cached.
45952
45953         * MODULES.html.sh (seen_modules, seen_files): New variables.
45954         (func_module): Rewrite to use a few less gnulib-tool and sed
45955         invocations.  Avoid a couple of quadratic algorithms for ...
45956         (missed_modules, missed_files): ... these, with ...
45957         (func_append, func_tmpdir): ... these new functions, from
45958         gnulib-tool.  Analogously, install traps for cleanup.
45959
45960         * tests/test-gc.c (main): Remove unused variables.
45961         * tests/test-read-file.c: Include stdlib.h, for 'free'.
45962
45963 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
45964
45965         * modules/inttostr (License): Change to LGPL.
45966
45967 2006-11-14  Eric Blake  <ebb9@byu.net>
45968
45969         * modules/tempname (License): Change to LGPL.
45970
45971 2006-11-14  Eric Blake  <ebb9@byu.net>
45972
45973         * doc/functions.texi (Function Portability): *printf functions on
45974         Cygwin now understand all POSIX size specifiers.
45975
45976 2006-11-14  Bruno Haible  <bruno@clisp.org>
45977
45978         * modules/c-ctype (License): Change to LGPL.
45979
45980 2006-11-12  Bruno Haible  <bruno@clisp.org>
45981
45982         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45983         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
45984         for GNOME libraries, for which the include files are installed in
45985         subdirectories of $prefix/include.
45986
45987 2006-11-12  Bruno Haible  <bruno@clisp.org>
45988
45989         * m4/lib-link.m4: Require at least autoconf-2.54.
45990         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
45991         name to underscores for the --with option.
45992
45993 2006-11-13  Bruno Haible  <bruno@clisp.org>
45994
45995         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
45996         the tests directory.
45997         Reported by Ralf Wildenhues.
45998
45999 2006-11-13  Bruno Haible  <bruno@clisp.org>
46000
46001         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46002         (func_emit_initmacro_end): Undo the override here.
46003         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46004         Works around the famous automake error in coreutils.
46005
46006 2006-11-13  Eric Blake  <ebb9@byu.net>
46007
46008         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46009         element, not its node.
46010
46011 2006-11-12  Bruno Haible  <bruno@clisp.org>
46012
46013         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46014         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46015
46016 2006-11-12  Bruno Haible  <bruno@clisp.org>
46017
46018         * gnulib-tool: New option --local-symlink.
46019         (func_usage): Document it.
46020         (lsymbolic): New variable.
46021         (func_import, func_create_testdir): If --symlink was not specified,
46022         test whether --local-symlink was specified and the file comes from
46023         the local_gnulib_dir.
46024
46025 2006-11-12  Bruno Haible  <bruno@clisp.org>
46026
46027         * gnulib-tool (func_ln): New function.
46028         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46029
46030 2006-11-12  Bruno Haible  <bruno@clisp.org>
46031
46032         Finish support for source files in subdirectories.
46033         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46034         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46035         AUTOMAKE_OPTIONS.
46036         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46037
46038 2006-11-12  Bruno Haible  <bruno@clisp.org>
46039
46040         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46041         EXTRA_lib_SOURCES augmentation.
46042         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46043
46044 2006-11-12  Jim Meyering  <jim@meyering.net>
46045
46046         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46047         file descriptors.  This also averts a failure on systems with
46048         native openat support when a traversed directory lacks "x" access.
46049         * lib/fts_.h: Include "i-ring.h"
46050         (struct FTS) [fts_fd_ring]: New member.
46051         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46052         (FCHDIR): Add parentheses.
46053         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46054         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46055         When descending, rather than simply closing the previous
46056         fts_cwd_fd value, push that file descriptor onto the ring.
46057         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46058         (fts_open): Initialize the new fd_ring member.
46059         (fts_close): Clear the ring.
46060         (fts_safe_changedir): When possible, use our new fd_ring to skip
46061         the diropen and fstat and dev/ino comparison that would normally
46062         accompany a virtual `chdir ("..")'.
46063
46064         * modules/fts (Depends-on): Add i-ring.
46065         * modules/i-ring: New module.
46066         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46067         * m4/i-ring.m4: New file.
46068
46069 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46070
46071         * gnulib-tool (func_create_testdir): Fix replacement of
46072         `build-aux' in configure.ac.  Run autotools in gltests
46073         subdirectory.
46074         (func_create_testdir, func_create_megatestdir, test): There is
46075         no need for '--force' in most autotool invocations in a new
46076         tree.  Actually fail the whole test if any of the tools, or the
46077         configure or make stages fail.
46078
46079         Sync from Automake.
46080         * build-aux/gnupload: Revert last change.  Add pointer to upload
46081         instructions of the GNU Maintenance Instructions.
46082         Suggestion by Karl Berry.
46083
46084 2006-11-10  Jim Meyering  <jim@meyering.net>
46085
46086         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46087
46088 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46089
46090         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46091         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46092         (bind_textdomain_codeset) [! ENABLE_NLS]:
46093         Evaluate all the arguments.  That way, callers get compatible behavior
46094         if the arguments have side effects.  Also, it avoids some GCC
46095         diagnostics in some cases; Joel E. Denny reported problems when Bison
46096         was configured with --enable-gcc-warnigs.
46097
46098 2006-11-10  Jim Meyering  <jim@meyering.net>
46099
46100         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46101         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46102         account.
46103
46104 2006-11-10  Jim Meyering  <jim@meyering.net>
46105
46106         * modules/inline: New file/module.
46107         * modules/xalloc (Files): Remove m4/inline.m4.
46108         (Depends-on): Add inline, instead.
46109         * modules/oset: Likewise.
46110         * modules/list: Likewise.
46111
46112 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46113
46114         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46115         Problem reported by Matthew Woehlke.
46116
46117 2006-11-09  Bruno Haible  <bruno@clisp.org>
46118
46119         * lib/tempname.c (gen_tempname): Remove variant that invokes
46120         __gen_tempname.
46121         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46122         __gen_tempname.
46123
46124 2006-11-08  Bruno Haible  <bruno@clisp.org>
46125
46126         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46127         to 'yes' instead of 'cross-compiling'.
46128
46129 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46130
46131         * lib/quotearg.h (quotearg_free): New decl.
46132         * lib/quotearg.c (quotearg_free): New function.
46133         (slot0, nslots, slotvec0, slotvec):
46134         Now file-scope so that quotearg_free can get at them.
46135
46136 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46137
46138         Sync from Automake.
46139         * build-aux/gnupload: Add missing 'gnu' to example URL.
46140         Report by Karl Berry.
46141
46142 2006-11-08  Bruno Haible  <bruno@clisp.org>
46143
46144         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46145         Suggested by Paul Eggert.
46146
46147 2006-11-08  Jim Meyering  <jim@meyering.net>
46148
46149         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46150         It's already included if !_LIBC.
46151         (fts_safe_changedir): Add a comment.
46152
46153 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46154
46155         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46156         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46157         Matthew Woehlke.
46158
46159         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46160         definitions up, to avoid colliding with change below.
46161         (static_inline) [HAVE_INLINE]: New macro.
46162         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46163         Provide extern decls when !HAVE_INLINE.  Do not define unless
46164         static_inline is defined, either by us or by xmalloc.c.  Use
46165         static_inline rather than static inline.
46166         (XCALLOC): Optimize sizeof(T) = 1 case.
46167         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46168
46169 2006-11-07  Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46172         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46173         AC_C_INLINE.
46174         * modules/xalloc (Files): Add m4/inline.m4.
46175
46176 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46177
46178         * README: Fix typo.
46179         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46180         (Miscellanous Notes): ...from this.
46181
46182 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46183
46184         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46185         Mention that offsetof should be used instead of sizeof.
46186         From Bruno Haible.
46187
46188 2006-11-07  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46191
46192 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46193
46194         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46195         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46196         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46197         (gl_tree_add_before, gl_tree_add_after):
46198         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46199         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46200         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46201         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46202         (gl_linked_add_after, gl_linked_add_at): Likewise.
46203         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46204         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46205         (gl_tree_add_before, gl_tree_add_after): Likewise.
46206         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46207         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46208         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46209
46210 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46211
46212         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46213
46214 2006-11-06  Bruno Haible  <bruno@clisp.org>
46215
46216         * m4/inline.m4: New file.
46217         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46218         * modules/list (Files): Add m4/inline.m4.
46219         * modules/oset (Files): Likewise.
46220
46221 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46222
46223         * lib/idcache.c: Include <stddef.h>, for offsetof.
46224         (struct userid.name): Change from char * to a flexible array member.
46225         All uses changed.
46226         * modules/idcache (Depends-on): Add flexmember.
46227
46228         * MODULES.html.sh (Core language properties): New module flexmember.
46229         * modules/flexmember, m4/flexmember.m4: New files.
46230
46231         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46232         inline functions that are identical with the old xnmalloc_inline,
46233         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46234         that we can avoid some unnecessary integer multiplications and
46235         divisions in the common case where the element size is known at
46236         compile time.
46237         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46238         needed.
46239         (xnboundedmalloc): Remove.
46240         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46241         arguments, for consistency with rest of this header.
46242         (xcharalloc): Rewrite using XNMALLOC.
46243         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46244         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46245         versions have been moved to lib/xalloc.h and renamed to be the
46246         non-*_inline versions.
46247         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46248         and xnrealloc functions, since those functions are now inline and
46249         now call us.
46250         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46251         renaming described above.
46252         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46253         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46254         captures the dependency in AC_C_INLINE.
46255
46256         New module canonicalize-lgpl, proposed by Charles Wilson in
46257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46258         with a few small changes afterwards.
46259         * MODULES.html.sh (File system functions): New module
46260         canonicalize-lgpl.
46261         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46262         and canonicalize_file_name.
46263         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46264         * modules/canonicalize-lgpl: New files.
46265
46266 2006-11-05  Bruno Haible  <bruno@clisp.org>
46267
46268         * gnulib-tool (func_import, func_create_testdir): Create directories
46269         also for files in subdirectories of lib/.
46270
46271 2006-11-05  Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46274         ANSI C compliant.
46275
46276 2006-11-03  Bruno Haible  <bruno@clisp.org>
46277
46278         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46279         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46280         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46281         (xnboundedmalloc): New inline function.
46282         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46283         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46284         xmalloc.
46285         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46286         xmalloc.
46287         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46288         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46289         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46290         xmalloc.
46291         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46292         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46293         xmalloc.
46294         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46295         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46296         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46297         xmalloc.
46298         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46299         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46300         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46301         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46302         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46303         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46304         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46305
46306 2006-11-03  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/c-ctype.h [C++]: Define functions without name mangling.
46309         * lib/fwriteerror.h [C++]: Likewise.
46310         * lib/gcd.h [C++]: Likewise.
46311         * lib/linebreak.h [C++]: Likewise.
46312
46313 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46314
46315         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46316         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46317         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46319         Check for functions and headers just once.
46320         Check for declaration of canonicalize_file_name.
46321         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46322
46323 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46324
46325         * gnulib-tool (func_import): Fix typo in actioncmd.
46326
46327 2006-11-02  Bruno Haible  <bruno@clisp.org>
46328
46329         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46330         newline sequence in the Makefile.am snippet as a space, like "make"
46331         does.
46332         Reported by Roger Persson <perrog@gmail.com>.
46333
46334 2006-11-01  Bruno Haible  <bruno@clisp.org>
46335
46336         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46337         already declared in <string.h>.
46338         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46339
46340 2006-11-01  Bruno Haible  <bruno@clisp.org>
46341
46342         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46343         * lib/strcase.h: Include <string.h>.
46344         (strcasecmp): Define to rpl_strcasecmp here.
46345
46346 2006-11-01  Bruno Haible  <bruno@clisp.org>
46347
46348         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46349
46350 2006-11-01  Eric Blake  <ebb9@byu.net>
46351
46352         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46353
46354         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46355
46356 2006-10-29  Bruno Haible  <bruno@clisp.org>
46357
46358         Make it compile in C++ mode.
46359         * lib/full-write.c (full_rw): Add a cast.
46360
46361 2006-11-01  Bruno Haible  <bruno@clisp.org>
46362
46363         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46364         be POSIX compliant.
46365         Reported by Roger Persson <perrog@gmail.com>.
46366
46367 2006-11-01  Eric Blake  <ebb9@byu.net>
46368
46369         * lib/getopt_.h: Fix comments.
46370
46371 2006-10-31  Eric Blake  <ebb9@byu.net>
46372
46373         * modules/tmpdir (Depends-on): Add sys_stat.
46374         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46375         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46376         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46377         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46378         tempname.
46379
46380 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         Avoid some C++ diagnostics reported by Bruno Haible.
46383         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46384         xmalloc.
46385         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46386         (struct slotvec): Move to top level.
46387         (quotearg_n_options): Rewrite to avoid xmalloc.
46388         * lib/xalloc.h (xcharalloc): New function.
46389         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46390         [defined __cplusplus]: Add function template that provides result
46391         type propagation.  This part of the change is from Bruno Haible.
46392
46393 2006-10-29  Bruno Haible  <bruno@clisp.org>
46394
46395         Make it compile in C++ mode.
46396         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46397         * lib/strnlen1.c (strnlen1): Cast memchr result.
46398         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46399         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46400         (create_temp_dir): Rename local variable 'template'.
46401         (compile_csharp_using_sscli): Add cast.
46402         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46403         * lib/findprog.c (find_in_path): Likewise.
46404         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46405         * lib/wait-process.c (register_slave_subprocess): Likewise.
46406
46407 2006-10-22  Bruno Haible  <bruno@clisp.org>
46408
46409         * modules/tsearch: New file.
46410         * lib/tsearch.h: New file.
46411         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46412         * m4/tsearch.m4: New file.
46413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46414
46415 2006-10-29  Eric Blake  <ebb9@byu.net>
46416
46417         * lib/arcfour.c: Assume config.h.
46418         * lib/arctwo.c: Likewise.
46419         * lib/base64.c: Likewise.
46420         * lib/check-version.c: Likewise.
46421         * lib/crc.c: Likewise.
46422         * lib/des.c: Likewise.
46423         * lib/gc-gnulib.c: Likewise.
46424         * lib/gc-libgcrypt.c: Likewise.
46425         * lib/gc-pbkdf2-sha1.c: Likewise.
46426         * lib/getaddrinfo.c: Likewise.
46427         * lib/getdelim.c: Likewise.
46428         * lib/getline.c: Likewise.
46429         * lib/hmac-md5.c: Likewise.
46430         * lib/hmac-sha1.c: Likewise.
46431         * lib/iconvme.c: Likewise.
46432         * lib/md2.c: Likewise.
46433         * lib/md4.c: Likewise.
46434         * lib/memxor.c: Likewise.
46435         * lib/read-file.c: Likewise.
46436         * lib/readline.c: Likewise.
46437         * lib/rijndael-alg-fst.c: Likewise.
46438         * lib/rijndael-api-fst.c: Likewise.
46439         * lib/xgetdomainname.c: Likewise.
46440
46441 2006-10-28  Eric Blake  <ebb9@byu.net>
46442
46443         * lib/xstrndup.c: Assume config.h.
46444
46445 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46446
46447         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46448         stat-macros.h is now for our own macros, whereas stat_h is for
46449         macros in the <sys/stat.h> name space.
46450         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46451         (STAT_MACROS_H): Remove.
46452         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46453         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46454         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46455         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46456         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46457         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46458         Move these macros to ...
46459         * lib/stat_.h: here.  Don't include stat-macros.h.
46460         * lib/canonicalize.c: Don't include stat-macros.h.
46461         * lib/chown.c: Likewise.
46462         * lib/euidaccess.c: Likewise.
46463         * lib/file-type.c: Likewise.
46464         * lib/filemode.c: Likewise.
46465         * lib/glob.c: Likewise.
46466         * lib/isapipe.c: Likewise.
46467         * lib/lchown.c: Likewise.
46468         * lib/lstat.c: Likewise.
46469         * lib/mkdir-p.c: Likewise.
46470         * lib/rmdir.c: Likewise.
46471         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46473         unless mkdir isn't declared, to speed up 'configure'.
46474         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46475         would define all the S_* symbols.
46476         * modules/canonicalize (Depends-on):
46477         Depend on sys_stat, not stat-macros.
46478         * modules/chown: Likewise.
46479         * modules/euidaccess: Likewise.
46480         * modules/filemode: Likewise.
46481         * modules/file-type: Likewise.
46482         * modules/glob: Likewise.
46483         * modules/isapipe: Likewise.
46484         * modules/lchown: Likewise.
46485         * modules/lstat: Likewise.
46486         * modules/mkancesdirs: Likewise.
46487         * modules/rmdir: Likewise.
46488         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46489         * modules/modechange: Likewise.
46490         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46491         (configure.ac): Remove gl_STAT_MACROS.
46492         * modules/sys_stat (Depends-on): Remove stat-macros.
46493
46494 2006-10-27  Bruno Haible  <bruno@clisp.org>
46495
46496         * m4/signed.m4: Remove file.
46497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46498         invocation.
46499         * modules/vasnprintf (Files): Remove m4/signed.m4.
46500
46501 2006-10-27  Bruno Haible  <bruno@clisp.org>
46502
46503         Update to GNU gettext 0.16.
46504         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46505         m4/inttypes-h.m4, m4/signed.m4.
46506         * m4/gettext.m4: Update to GNU gettext 0.16.
46507         * m4/intl.m4: New file, from GNU gettext.
46508         * m4/intldir.m4: New file, from GNU gettext.
46509         * config/srclist.txt: Update
46510
46511 2006-10-27  Eric Blake  <ebb9@byu.net>
46512
46513         * MODULES.html.sh: Document tempname.
46514         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46515         dependencies.
46516         (Files): Move lib/tempname.c...
46517         * modules/tempname: ...to this new module.
46518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46519         (gl_PREREQ_TEMPNAME): Move...
46520         * m4/tempname.m4: ...to this new file.
46521         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46522         * modules/sys_stat (Depends-on): Add stat-macros.
46523         * lib/stat_.h (includes): Pick up stat macros.
46524         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46525         if stat macros are broken.
46526         * lib/tempname.c (includes): No need to include "stat-macros.h".
46527         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46528         (direxists, __path_search) [!_LIBC]: Don't compile these in
46529         gnulib; the tmpdir module covers that.
46530         * lib/tempname.h: New file.
46531
46532 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46533
46534         * COPYING: Explain how gnulib-tool converts licence headers.
46535         Almost all wording by Eric Blake.
46536
46537 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46538
46539         * lib/mbchar.h (is_basic_table): Make read-only.
46540         * lib/mbchar.c (is_basic_table): Likewise.
46541         Reported by John Darrington.
46542
46543 2006-10-25  Bruno Haible  <bruno@clisp.org>
46544
46545         * lib/progname.h (set_program_name): Undefine before defining.
46546
46547 2006-10-25  Bruno Haible  <bruno@clisp.org>
46548
46549         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46550         false for non-gcc C++ compilers.
46551         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46552
46553 2006-10-24  Bruno Haible  <bruno@clisp.org>
46554
46555         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46556         iconv implementations like Irix iconv.
46557
46558 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46559
46560         * modules/vararrays: New file.
46561         * m4/vararrays.m4: New file, taken from diffutils.
46562         * MODULES.html.sh: New module vararrays.
46563
46564 2006-10-24  Karl Berry  <karl@gnu.org>
46565
46566         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46567         Don't call GNU Unix.
46568
46569 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46570
46571         * users.txt: Add Libtool.
46572
46573         Sync from Libtool:
46574
46575         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46576
46577         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46578         to gnulib's policy of including config.h unconditionally.
46579
46580 2006-10-24  Bruno Haible  <bruno@clisp.org>
46581
46582         * modules/wcwidth (Files): Add m4/wint_t.m4.
46583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46584         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46585
46586 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46587
46588         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46589         to pacify GCC with some -W flags enabled.  Problem reported by
46590         Bruno Haible.
46591
46592 2006-10-24  Jim Meyering  <jim@meyering.net>
46593
46594         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46595         Reported by Karl Berry.
46596
46597 2006-10-23  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46600
46601 2006-10-24  Bruno Haible  <bruno@clisp.org>
46602
46603         * lib/gl_list.h: Use C comment style, not C++ comment style.
46604
46605 2006-10-23  Eric Blake  <ebb9@byu.net>
46606
46607         * lib/getaddrinfo.c (includes): Add missing include.
46608
46609 2006-10-23  Bruno Haible  <bruno@clisp.org>
46610             Paul Eggert  <eggert@cs.ucla.edu>
46611
46612         Ability to rename obstack_free.
46613         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46614         obstack_free.
46615         (obstack_free): Invoke the __obstack_free macro.
46616         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46617
46618 2006-10-23  Bruno Haible  <bruno@clisp.org>
46619             Paul Eggert  <eggert@cs.ucla.edu>
46620
46621         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46622         __argc, __argv from the declaration. (They are defined as macros on
46623         mingw.)
46624
46625 2006-10-22  Bruno Haible  <bruno@clisp.org>
46626
46627         * doc/gnulib-intro.texi: New file.
46628         * doc/gnulib.texi: Include it.
46629
46630 2006-10-21  Bruno Haible  <bruno@clisp.org>
46631
46632         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46633         "Introduction", "Miscellanous Notes", "Particular Modules".
46634
46635 2006-10-21  Bruno Haible  <bruno@clisp.org>
46636
46637         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46638         Change mostlyclean-local rule to avoid sh syntax error from bash
46639         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46640
46641 2006-10-23  Jim Meyering  <jim@meyering.net>
46642
46643         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46644         in place of snprintf.
46645
46646         * modules/inttostr (Files): Add lib/uinttostr.c.
46647         * lib/uinttostr.c (inttostr): New file/function.
46648         * lib/inttostr.h (uinttostr): Declare.
46649         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46650         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46651         Add uinttostr.
46652         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46653
46654 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46655
46656         * lib/canonicalize.c (ELOOP): Define if not already defined.
46657         Problem reported by Bruno Haible in
46658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46659
46660 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46661
46662         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46663         Problem reported by Perry Smith and Ville Laurikari.
46664
46665         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46666         uses.
46667
46668 2006-10-19  Bruno Haible  <bruno@clisp.org>
46669
46670         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46671         for mingw.
46672
46673 2006-10-19  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46676         Needed for mingw.
46677
46678 2006-10-19  Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46681
46682 2006-10-19  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46685         it.
46686
46687 2006-10-19  Bruno Haible  <bruno@clisp.org>
46688
46689         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46690         invocation.
46691
46692 2006-10-19  Bruno Haible  <bruno@clisp.org>
46693
46694         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46695         mountlist by default.
46696
46697 2006-10-16  Bruno Haible  <bruno@clisp.org>
46698
46699         * lib/c-strstr.c: Include c-strstr.h.
46700
46701 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46702
46703         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46704         in a slash.
46705
46706 2006-10-18  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/lock.h [C++]: Wrap definitions in extern "C".
46709
46710 2006-10-18  Bruno Haible  <bruno@clisp.org>
46711
46712         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46713         gl_LIBOBJS list.
46714
46715 2006-10-18  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46718
46719 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46720
46721         * lib/xstrtol.h: Include gettext.h.
46722         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46723         Problem reported by Eric Blake.
46724         * modules/xstrtol (Depends-on): Add gettext-h.
46725
46726 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46727
46728         * lib/strftime.c (advance): New macro.
46729         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46730         incomplete type, so you can't add 0 to it.  Problem and patch
46731         reported by Eelco Dolstra for dietlibc.
46732
46733 2006-10-18  Jim Meyering  <jim@meyering.net>
46734
46735         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46736         type for a local, and rename it: s/up/user_proc/.
46737
46738 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46739
46740         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46741         READ_UTMP_USER_PROCESS.
46742         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46743
46744 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46745
46746         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46747         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46748
46749 2006-10-17  Eric Blake  <ebb9@byu.net>
46750
46751         * lib/sigprocmask.c (sigprocmask): Fix typo.
46752
46753         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46754
46755         * modules/clean-temp (Makefile.am): Don't add to make output...
46756         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46757         config.h.
46758
46759 2006-10-17  Bruno Haible  <bruno@clisp.org>
46760
46761         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46762         differently if DEFAULT_TEXT_DOMAIN is set.
46763
46764 2006-10-16  Bruno Haible  <bruno@clisp.org>
46765
46766         * lib/clean-temp.c: Include fwriteerror.h.
46767
46768 2006-10-16  Bruno Haible  <bruno@clisp.org>
46769
46770         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46771
46772 2006-10-16  Bruno Haible  <bruno@clisp.org>
46773
46774         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46775         * lib/sigprocmask.h: Include <sys/types.h>.
46776         (sigset_t): Use the system's definition if present.
46777
46778 2006-10-17  Eric Blake  <ebb9@byu.net>
46779
46780         * lib/xvasprintf.c (includes): Assume config.h.
46781         * lib/xasprintf.c (includes): Likewise.
46782
46783 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46786         at least as wide as intmax_t.
46787
46788 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46789
46790         (Imported from Automake.)
46791         * build-aux/gnupload: Update to version 1.1 of directive file.
46792
46793 2006-10-16  Eric Blake  <ebb9@byu.net>
46794
46795         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46796         match Automake 1.10a.
46797
46798 2006-10-14  Bruno Haible  <bruno@clisp.org>
46799
46800         * modules/sigprocmask: New file.
46801         * lib/sigprocmask.h: New file.
46802         * lib/sigprocmask.c: New file.
46803         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46804         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46805         request sigprocmask.o.
46806         (gl_PREREQ_SIGPROCMASK): New macro.
46807         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46808         (Depends-on): Add sigprocmask.
46809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46810         gt_SIGNALBLOCKING. Test for 'raise' only once.
46811         * lib/fatal-signal.c: Include sigprocmask.h.
46812         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46813         unblock_fatal_signals): Define always.
46814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46815         sigprocmask.
46816
46817 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46818
46819         Sync from Automake.
46820         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46821         which incorrectly sets the mode of an existing destination
46822         directory.  In some cases the unpatched install-sh could do the
46823         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46824         system.  We hope this is rare in practice, but it's clearly worth
46825         fixing.  Problem reported by Alex Unleashed in
46826         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46827         Also, don't bother to check for -m bugs unless we're using -m;
46828         suggested by Stepan Kasal.
46829
46830 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46831
46832         Sync from Automake.
46833         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46834         `-c' flag, so they appear at the same position as in %FASTDEP%
46835         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46836         which ignores unknown options only after the first non-option.
46837         Bug report against M4 by Nelson H. F. Beebe.
46838
46839 2006-10-13  Jim Meyering  <jim@meyering.net>
46840
46841         Fix a bug in yesterday's change.
46842         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46843         p->fts_statp->st_dev would be used uninitialized.
46844         Ensures that we always call fts_stat on the very first entry.
46845         Miklos Szeredi reported that find -xdev stopped working.
46846
46847 2006-10-12  Bruno Haible  <bruno@clisp.org>
46848
46849         * gnulib-tool (func_get_automake_snippet): Append an automatically
46850         computed EXTRA_DIST augmentation.
46851         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46852         * modules/alloca-opt (Makefile.am): Likewise.
46853         * modules/allocsa (Makefile.am): Likewise.
46854         * modules/arcfour (Makefile.am): Likewise.
46855         * modules/arctwo (Makefile.am): Likewise.
46856         * modules/argmatch (Makefile.am): Likewise.
46857         * modules/argz (Makefile.am): Likewise.
46858         * modules/atexit (Makefile.am): Likewise.
46859         * modules/backupfile (Makefile.am): Likewise.
46860         * modules/byteswap (Makefile.am): Likewise.
46861         * modules/c-strtod (Makefile.am): Likewise.
46862         * modules/c-strtold (Makefile.am): Likewise.
46863         * modules/calloc (Makefile.am): Likewise.
46864         * modules/canon-host (Makefile.am): Likewise.
46865         * modules/canonicalize (Makefile.am): Likewise.
46866         * modules/chdir-long (Makefile.am): Likewise.
46867         * modules/chdir-safer (Makefile.am): Likewise.
46868         * modules/check-version (Makefile.am): Likewise.
46869         * modules/chown (Makefile.am): Likewise.
46870         * modules/cloexec (Makefile.am): Likewise.
46871         * modules/close-stream (Makefile.am): Likewise.
46872         * modules/closeout (Makefile.am): Likewise.
46873         * modules/crc (Makefile.am): Likewise.
46874         * modules/csharpexec (Makefile.am): Likewise.
46875         * modules/cycle-check (Makefile.am): Likewise.
46876         * modules/des (Makefile.am): Likewise.
46877         * modules/dev-ino (Makefile.am): Likewise.
46878         * modules/dirfd (Makefile.am): Likewise.
46879         * modules/dirname (Makefile.am): Likewise.
46880         * modules/dup2 (Makefile.am): Likewise.
46881         * modules/eealloc (Makefile.am): Likewise.
46882         * modules/error (Makefile.am): Likewise.
46883         * modules/euidaccess (Makefile.am): Likewise.
46884         * modules/exclude (Makefile.am): Likewise.
46885         * modules/exitfail (Makefile.am): Likewise.
46886         * modules/fcntl-safer (Makefile.am): Likewise.
46887         * modules/fcntl (Makefile.am): Likewise.
46888         * modules/file-type (Makefile.am): Likewise.
46889         * modules/fileblocks (Makefile.am): Likewise.
46890         * modules/filemode (Makefile.am): Likewise.
46891         * modules/filenamecat (Makefile.am): Likewise.
46892         * modules/fnmatch (Makefile.am): Likewise.
46893         * modules/fopen-safer (Makefile.am): Likewise.
46894         * modules/fpending (Makefile.am): Likewise.
46895         * modules/fprintftime (Makefile.am): Likewise.
46896         * modules/free (Makefile.am): Likewise.
46897         * modules/fsusage (Makefile.am): Likewise.
46898         * modules/ftruncate (Makefile.am): Likewise.
46899         * modules/fts (Makefile.am): Likewise.
46900         * modules/gc-arcfour (Makefile.am): Likewise.
46901         * modules/gc-des (Makefile.am): Likewise.
46902         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46903         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46904         * modules/gc-md4 (Makefile.am): Likewise.
46905         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46906         * modules/gc-sha1 (Makefile.am): Likewise.
46907         * modules/gc (Makefile.am): Likewise.
46908         * modules/getaddrinfo (Makefile.am): Likewise.
46909         * modules/getcwd (Makefile.am): Likewise.
46910         * modules/getdelim (Makefile.am): Likewise.
46911         * modules/getdomainname (Makefile.am): Likewise.
46912         * modules/getgroups (Makefile.am): Likewise.
46913         * modules/gethostname (Makefile.am): Likewise.
46914         * modules/gethrxtime (Makefile.am): Likewise.
46915         * modules/getline (Makefile.am): Likewise.
46916         * modules/getloadavg (Makefile.am): Likewise.
46917         * modules/getlogin_r (Makefile.am): Likewise.
46918         * modules/getndelim2 (Makefile.am): Likewise.
46919         * modules/getopt (Makefile.am): Likewise.
46920         * modules/getpagesize (Makefile.am): Likewise.
46921         * modules/getpass-gnu (Makefile.am): Likewise.
46922         * modules/getpass (Makefile.am): Likewise.
46923         * modules/getsubopt (Makefile.am): Likewise.
46924         * modules/gettime (Makefile.am): Likewise.
46925         * modules/gettimeofday (Makefile.am): Likewise.
46926         * modules/getugroups (Makefile.am): Likewise.
46927         * modules/getusershell (Makefile.am): Likewise.
46928         * modules/glob (Makefile.am): Likewise.
46929         * modules/group-member (Makefile.am): Likewise.
46930         * modules/hard-locale (Makefile.am): Likewise.
46931         * modules/hash (Makefile.am): Likewise.
46932         * modules/hmac-md5 (Makefile.am): Likewise.
46933         * modules/hmac-sha1 (Makefile.am): Likewise.
46934         * modules/human (Makefile.am): Likewise.
46935         * modules/idcache (Makefile.am): Likewise.
46936         * modules/imaxabs (Makefile.am): Likewise.
46937         * modules/imaxdiv (Makefile.am): Likewise.
46938         * modules/inet_ntop (Makefile.am): Likewise.
46939         * modules/inet_pton (Makefile.am): Likewise.
46940         * modules/intprops (Makefile.am): Likewise.
46941         * modules/inttostr (Makefile.am): Likewise.
46942         * modules/inttypes (Makefile.am): Likewise.
46943         * modules/isapipe (Makefile.am): Likewise.
46944         * modules/javaversion (Makefile.am): Likewise.
46945         * modules/lchmod (Makefile.am): Likewise.
46946         * modules/lchown (Makefile.am): Likewise.
46947         * modules/localcharset (Makefile.am): Likewise.
46948         * modules/long-options (Makefile.am): Likewise.
46949         * modules/lstat (Makefile.am): Likewise.
46950         * modules/malloc (Makefile.am): Likewise.
46951         * modules/mathl (Makefile.am): Likewise.
46952         * modules/mbchar (Makefile.am): Likewise.
46953         * modules/md2 (Makefile.am): Likewise.
46954         * modules/md4 (Makefile.am): Likewise.
46955         * modules/md5 (Makefile.am): Likewise.
46956         * modules/memcasecmp (Makefile.am): Likewise.
46957         * modules/memchr (Makefile.am): Likewise.
46958         * modules/memcmp (Makefile.am): Likewise.
46959         * modules/memcoll (Makefile.am): Likewise.
46960         * modules/memcpy (Makefile.am): Likewise.
46961         * modules/memmem (Makefile.am): Likewise.
46962         * modules/memmove (Makefile.am): Likewise.
46963         * modules/mempcpy (Makefile.am): Likewise.
46964         * modules/memrchr (Makefile.am): Likewise.
46965         * modules/memset (Makefile.am): Likewise.
46966         * modules/memxor (Makefile.am): Likewise.
46967         * modules/mkancesdirs (Makefile.am): Likewise.
46968         * modules/mkdir-p (Makefile.am): Likewise.
46969         * modules/mkdir (Makefile.am): Likewise.
46970         * modules/mkdtemp (Makefile.am): Likewise.
46971         * modules/mkstemp (Makefile.am): Likewise.
46972         * modules/mktime (Makefile.am): Likewise.
46973         * modules/modechange (Makefile.am): Likewise.
46974         * modules/mountlist (Makefile.am): Likewise.
46975         * modules/nanosleep (Makefile.am): Likewise.
46976         * modules/obstack (Makefile.am): Likewise.
46977         * modules/openat (Makefile.am): Likewise.
46978         * modules/pagealign_alloc (Makefile.am): Likewise.
46979         * modules/pathmax (Makefile.am): Likewise.
46980         * modules/physmem (Makefile.am): Likewise.
46981         * modules/poll (Makefile.am): Likewise.
46982         * modules/posixtm (Makefile.am): Likewise.
46983         * modules/posixver (Makefile.am): Likewise.
46984         * modules/putenv (Makefile.am): Likewise.
46985         * modules/quote (Makefile.am): Likewise.
46986         * modules/quotearg (Makefile.am): Likewise.
46987         * modules/raise (Makefile.am): Likewise.
46988         * modules/read-file (Makefile.am): Likewise.
46989         * modules/readline (Makefile.am): Likewise.
46990         * modules/readlink (Makefile.am): Likewise.
46991         * modules/readtokens (Makefile.am): Likewise.
46992         * modules/readutmp (Makefile.am): Likewise.
46993         * modules/realloc (Makefile.am): Likewise.
46994         * modules/regex (Makefile.am): Likewise.
46995         * modules/rename-dest-slash (Makefile.am): Likewise.
46996         * modules/rename (Makefile.am): Likewise.
46997         * modules/rijndael (Makefile.am): Likewise.
46998         * modules/rmdir (Makefile.am): Likewise.
46999         * modules/rpmatch (Makefile.am): Likewise.
47000         * modules/safe-read (Makefile.am): Likewise.
47001         * modules/safe-write (Makefile.am): Likewise.
47002         * modules/same-inode (Makefile.am): Likewise.
47003         * modules/same (Makefile.am): Likewise.
47004         * modules/save-cwd (Makefile.am): Likewise.
47005         * modules/savedir (Makefile.am): Likewise.
47006         * modules/setenv (Makefile.am): Likewise.
47007         * modules/settime (Makefile.am): Likewise.
47008         * modules/sha1 (Makefile.am): Likewise.
47009         * modules/sig2str (Makefile.am): Likewise.
47010         * modules/snprintf (Makefile.am): Likewise.
47011         * modules/stat-macros (Makefile.am): Likewise.
47012         * modules/stat-time (Makefile.am): Likewise.
47013         * modules/stdbool (Makefile.am): Likewise.
47014         * modules/stdint (Makefile.am): Likewise.
47015         * modules/stdlib-safer (Makefile.am): Likewise.
47016         * modules/stpcpy (Makefile.am): Likewise.
47017         * modules/stpncpy (Makefile.am): Likewise.
47018         * modules/strcase (Makefile.am): Likewise.
47019         * modules/strcasestr (Makefile.am): Likewise.
47020         * modules/strchrnul (Makefile.am): Likewise.
47021         * modules/strcspn (Makefile.am): Likewise.
47022         * modules/strdup (Makefile.am): Likewise.
47023         * modules/strerror (Makefile.am): Likewise.
47024         * modules/strftime (Makefile.am): Likewise.
47025         * modules/strndup (Makefile.am): Likewise.
47026         * modules/strnlen (Makefile.am): Likewise.
47027         * modules/strpbrk (Makefile.am): Likewise.
47028         * modules/strsep (Makefile.am): Likewise.
47029         * modules/strstr (Makefile.am): Likewise.
47030         * modules/strtod (Makefile.am): Likewise.
47031         * modules/strtoimax (Makefile.am): Likewise.
47032         * modules/strtok_r (Makefile.am): Likewise.
47033         * modules/strtol (Makefile.am): Likewise.
47034         * modules/strtoll (Makefile.am): Likewise.
47035         * modules/strtoul (Makefile.am): Likewise.
47036         * modules/strtoull (Makefile.am): Likewise.
47037         * modules/strtoumax (Makefile.am): Likewise.
47038         * modules/strverscmp (Makefile.am): Likewise.
47039         * modules/sys_socket (Makefile.am): Likewise.
47040         * modules/sys_stat (Makefile.am): Likewise.
47041         * modules/sysexits (Makefile.am): Likewise.
47042         * modules/time_r (Makefile.am): Likewise.
47043         * modules/timegm (Makefile.am): Likewise.
47044         * modules/timespec (Makefile.am): Likewise.
47045         * modules/tmpfile-safer (Makefile.am): Likewise.
47046         * modules/trim (Makefile.am): Likewise.
47047         * modules/unistd-safer (Makefile.am): Likewise.
47048         * modules/unlinkdir (Makefile.am): Likewise.
47049         * modules/unlocked-io (Makefile.am): Likewise.
47050         * modules/userspec (Makefile.am): Likewise.
47051         * modules/utime (Makefile.am): Likewise.
47052         * modules/utimecmp (Makefile.am): Likewise.
47053         * modules/utimens (Makefile.am): Likewise.
47054         * modules/vasnprintf (Makefile.am): Likewise.
47055         * modules/vasprintf (Makefile.am): Likewise.
47056         * modules/vsnprintf (Makefile.am): Likewise.
47057         * modules/xalloc (Makefile.am): Likewise.
47058         * modules/xgetcwd (Makefile.am): Likewise.
47059         * modules/xnanosleep (Makefile.am): Likewise.
47060         * modules/xreadlink (Makefile.am): Likewise.
47061         * modules/xstrtod (Makefile.am): Likewise.
47062         * modules/xstrtol (Makefile.am): Likewise.
47063         * modules/xstrtold (Makefile.am): Likewise.
47064         * modules/yesno (Makefile.am): Likewise.
47065         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47066
47067 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47068
47069         * modules/error (Makefile.am): Distribute files through
47070         EXTRA_DIST, not lib_SOURCES.
47071
47072 2006-10-12  Eric Blake  <ebb9@byu.net>
47073
47074         * modules/error (Makefile.am): Distribute files in /lib.
47075         * modules/obstack (Makefile.am): Likewise.
47076
47077 2006-10-12  Bruno Haible  <bruno@clisp.org>
47078
47079         * modules/acl (Makefile.am): Distribute all files in lib/ through
47080         EXTRA_DIST.
47081         * modules/arcfour (Makefile.am): Likewise.
47082         * modules/arctwo (Makefile.am): Likewise.
47083         * modules/argmatch (Makefile.am): Likewise.
47084         * modules/argz (Makefile.am): Likewise.
47085         * modules/atexit (Makefile.am): Likewise.
47086         * modules/backupfile (Makefile.am): Likewise.
47087         * modules/c-strtod (Makefile.am): Likewise.
47088         * modules/c-strtold (Makefile.am): Likewise.
47089         * modules/calloc (Makefile.am): Likewise.
47090         * modules/canon-host (Makefile.am): Likewise.
47091         * modules/canonicalize (Makefile.am): Likewise.
47092         * modules/chdir-long (Makefile.am): Likewise.
47093         * modules/chdir-safer (Makefile.am): Likewise.
47094         * modules/check-version (Makefile.am): Likewise.
47095         * modules/chown (Makefile.am): Likewise.
47096         * modules/cloexec (Makefile.am): Likewise.
47097         * modules/close-stream (Makefile.am): Likewise.
47098         * modules/closeout (Makefile.am): Likewise.
47099         * modules/crc (Makefile.am): Likewise.
47100         * modules/cycle-check (Makefile.am): Likewise.
47101         * modules/des (Makefile.am): Likewise.
47102         * modules/dirfd (Makefile.am): Likewise.
47103         * modules/dirname (Makefile.am): Likewise.
47104         * modules/dup2 (Makefile.am): Likewise.
47105         * modules/euidaccess (Makefile.am): Likewise.
47106         * modules/exclude (Makefile.am): Likewise.
47107         * modules/exitfail (Makefile.am): Likewise.
47108         * modules/fcntl-safer (Makefile.am): Likewise.
47109         * modules/file-type (Makefile.am): Likewise.
47110         * modules/fileblocks (Makefile.am): Likewise.
47111         * modules/filemode (Makefile.am): Likewise.
47112         * modules/filenamecat (Makefile.am): Likewise.
47113         * modules/fnmatch (Makefile.am): Likewise.
47114         * modules/fopen-safer (Makefile.am): Likewise.
47115         * modules/fpending (Makefile.am): Likewise.
47116         * modules/fprintftime (Makefile.am): Likewise.
47117         * modules/free (Makefile.am): Likewise.
47118         * modules/fsusage (Makefile.am): Likewise.
47119         * modules/ftruncate (Makefile.am): Likewise.
47120         * modules/fts (Makefile.am): Likewise.
47121         * modules/gc (Makefile.am): Likewise.
47122         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47123         * modules/getaddrinfo (Makefile.am): Likewise.
47124         * modules/getcwd (Makefile.am): Likewise.
47125         * modules/getdelim (Makefile.am): Likewise.
47126         * modules/getdomainname (Makefile.am): Likewise.
47127         * modules/getgroups (Makefile.am): Likewise.
47128         * modules/gethostname (Makefile.am): Likewise.
47129         * modules/gethrxtime (Makefile.am): Likewise.
47130         * modules/getline (Makefile.am): Likewise.
47131         * modules/getloadavg (Makefile.am): Likewise.
47132         * modules/getlogin_r (Makefile.am): Likewise.
47133         * modules/getopt (Makefile.am): Likewise.
47134         * modules/getpass (Makefile.am): Likewise.
47135         * modules/getpass-gnu (Makefile.am): Likewise.
47136         * modules/getsubopt (Makefile.am): Likewise.
47137         * modules/gettime (Makefile.am): Likewise.
47138         * modules/gettimeofday (Makefile.am): Likewise.
47139         * modules/getugroups (Makefile.am): Likewise.
47140         * modules/getusershell (Makefile.am): Likewise.
47141         * modules/glob (Makefile.am): Likewise.
47142         * modules/group-member (Makefile.am): Likewise.
47143         * modules/hard-locale (Makefile.am): Likewise.
47144         * modules/hash (Makefile.am): Likewise.
47145         * modules/hmac-md5 (Makefile.am): Likewise.
47146         * modules/hmac-sha1 (Makefile.am): Likewise.
47147         * modules/human (Makefile.am): Likewise.
47148         * modules/idcache (Makefile.am): Likewise.
47149         * modules/imaxabs (Makefile.am): Likewise.
47150         * modules/imaxdiv (Makefile.am): Likewise.
47151         * modules/inet_ntop (Makefile.am): Likewise.
47152         * modules/inet_pton (Makefile.am): Likewise.
47153         * modules/inttostr (Makefile.am): Likewise.
47154         * modules/isapipe (Makefile.am): Likewise.
47155         * modules/lchown (Makefile.am): Likewise.
47156         * modules/long-options (Makefile.am): Likewise.
47157         * modules/lstat (Makefile.am): Likewise.
47158         * modules/malloc (Makefile.am): Likewise.
47159         * modules/mathl (Makefile.am): Likewise.
47160         * modules/mbchar (Makefile.am): Likewise.
47161         * modules/md2 (Makefile.am): Likewise.
47162         * modules/md4 (Makefile.am): Likewise.
47163         * modules/md5 (Makefile.am): Likewise.
47164         * modules/memcasecmp (Makefile.am): Likewise.
47165         * modules/memchr (Makefile.am): Likewise.
47166         * modules/memcmp (Makefile.am): Likewise.
47167         * modules/memcoll (Makefile.am): Likewise.
47168         * modules/memcpy (Makefile.am): Likewise.
47169         * modules/memmem (Makefile.am): Likewise.
47170         * modules/memmove (Makefile.am): Likewise.
47171         * modules/mempcpy (Makefile.am): Likewise.
47172         * modules/memrchr (Makefile.am): Likewise.
47173         * modules/memset (Makefile.am): Likewise.
47174         * modules/memxor (Makefile.am): Likewise.
47175         * modules/mkancesdirs (Makefile.am): Likewise.
47176         * modules/mkdir (Makefile.am): Likewise.
47177         * modules/mkdir-p (Makefile.am): Likewise.
47178         * modules/mkdtemp (Makefile.am): Likewise.
47179         * modules/mkstemp (Makefile.am): Likewise.
47180         * modules/mktime (Makefile.am): Likewise.
47181         * modules/modechange (Makefile.am): Likewise.
47182         * modules/mountlist (Makefile.am): Likewise.
47183         * modules/nanosleep (Makefile.am): Likewise.
47184         * modules/openat (Makefile.am): Likewise.
47185         * modules/pagealign_alloc (Makefile.am): Likewise.
47186         * modules/physmem (Makefile.am): Likewise.
47187         * modules/poll (Makefile.am): Likewise.
47188         * modules/posixtm (Makefile.am): Likewise.
47189         * modules/posixver (Makefile.am): Likewise.
47190         * modules/putenv (Makefile.am): Likewise.
47191         * modules/quote (Makefile.am): Likewise.
47192         * modules/quotearg (Makefile.am): Likewise.
47193         * modules/raise (Makefile.am): Likewise.
47194         * modules/read-file (Makefile.am): Likewise.
47195         * modules/readline (Makefile.am): Likewise.
47196         * modules/readlink (Makefile.am): Likewise.
47197         * modules/readtokens (Makefile.am): Likewise.
47198         * modules/readutmp (Makefile.am): Likewise.
47199         * modules/realloc (Makefile.am): Likewise.
47200         * modules/regex (Makefile.am): Likewise.
47201         * modules/rename (Makefile.am): Likewise.
47202         * modules/rename-dest-slash (Makefile.am): Likewise.
47203         * modules/rijndael (Makefile.am): Likewise.
47204         * modules/rmdir (Makefile.am): Likewise.
47205         * modules/rpmatch (Makefile.am): Likewise.
47206         * modules/safe-read (Makefile.am): Likewise.
47207         * modules/safe-write (Makefile.am): Likewise.
47208         * modules/same (Makefile.am): Likewise.
47209         * modules/save-cwd (Makefile.am): Likewise.
47210         * modules/savedir (Makefile.am): Likewise.
47211         * modules/setenv (Makefile.am): Likewise.
47212         * modules/settime (Makefile.am): Likewise.
47213         * modules/sha1 (Makefile.am): Likewise.
47214         * modules/sig2str (Makefile.am): Likewise.
47215         * modules/snprintf (Makefile.am): Likewise.
47216         * modules/stdlib-safer (Makefile.am): Likewise.
47217         * modules/stpcpy (Makefile.am): Likewise.
47218         * modules/stpncpy (Makefile.am): Likewise.
47219         * modules/strcase (Makefile.am): Likewise.
47220         * modules/strcasestr (Makefile.am): Likewise.
47221         * modules/strchrnul (Makefile.am): Likewise.
47222         * modules/strcspn (Makefile.am): Likewise.
47223         * modules/strdup (Makefile.am): Likewise.
47224         * modules/strerror (Makefile.am): Likewise.
47225         * modules/strftime (Makefile.am): Likewise.
47226         * modules/strndup (Makefile.am): Likewise.
47227         * modules/strnlen (Makefile.am): Likewise.
47228         * modules/strpbrk (Makefile.am): Likewise.
47229         * modules/strsep (Makefile.am): Likewise.
47230         * modules/strstr (Makefile.am): Likewise.
47231         * modules/strtod (Makefile.am): Likewise.
47232         * modules/strtoimax (Makefile.am): Likewise.
47233         * modules/strtok_r (Makefile.am): Likewise.
47234         * modules/strtol (Makefile.am): Likewise.
47235         * modules/strtoll (Makefile.am): Likewise.
47236         * modules/strtoul (Makefile.am): Likewise.
47237         * modules/strtoull (Makefile.am): Likewise.
47238         * modules/strtoumax (Makefile.am): Likewise.
47239         * modules/strverscmp (Makefile.am): Likewise.
47240         * modules/time_r (Makefile.am): Likewise.
47241         * modules/timegm (Makefile.am): Likewise.
47242         * modules/tmpfile-safer (Makefile.am): Likewise.
47243         * modules/unistd-safer (Makefile.am): Likewise.
47244         * modules/unlinkdir (Makefile.am): Likewise.
47245         * modules/userspec (Makefile.am): Likewise.
47246         * modules/utime (Makefile.am): Likewise.
47247         * modules/utimecmp (Makefile.am): Likewise.
47248         * modules/utimens (Makefile.am): Likewise.
47249         * modules/vasnprintf (Makefile.am): Likewise.
47250         * modules/vasprintf (Makefile.am): Likewise.
47251         * modules/vsnprintf (Makefile.am): Likewise.
47252         * modules/xalloc (Makefile.am): Likewise.
47253         * modules/xgetcwd (Makefile.am): Likewise.
47254         * modules/xnanosleep (Makefile.am): Likewise.
47255         * modules/xreadlink (Makefile.am): Likewise.
47256         * modules/xstrtod (Makefile.am): Likewise.
47257         * modules/xstrtol (Makefile.am): Likewise.
47258         * modules/xstrtold (Makefile.am): Likewise.
47259         * modules/yesno (Makefile.am): Likewise.
47260
47261 2006-10-12  Jim Meyering  <jim@meyering.net>
47262
47263         * m4/getloadavg.m4: Revert the change below.
47264
47265         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47266         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47267         fail with a symlink, which is what coreutils' ./bootstrap now
47268         creates by default.
47269
47270 2006-10-12  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47273         mingw.
47274         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47275         MSVC and mingw explicitly.
47276
47277 2006-10-11  Simon Josefsson  <jas@extundo.com>
47278             Bruno Haible  <bruno@clisp.org>
47279
47280         Add support for multiple gnulib-tool invocations in the scope of a
47281         single configure.ac file.
47282         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47283         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47284         with the same contents as the _LIBADD variable.
47285         (func_emit_initmacro_start, func_emit_initmacro_end,
47286         func_emit_initmacro_done): New functions.
47287         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47288         gl_LIBOBJS and gl_LTLIBOBJS.
47289
47290 2006-10-11  Bruno Haible  <bruno@clisp.org>
47291
47292         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47293         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47294         autoreconf. Instead, invoke autopoint explicitly but move back the
47295         *.m4 files from gnulib.
47296
47297 2006-10-11  Bruno Haible  <bruno@clisp.org>
47298
47299         * gnulib-tool (func_usage): Make module names after --create-testdir
47300         optional.
47301         (func_create_testdir): If no module was specified, use nearly all
47302         modules.
47303
47304 2006-10-12  Jim Meyering  <jim@meyering.net>
47305
47306         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47307         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47308         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47309         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47310         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47311         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47312         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47313         (fts_set_stat_required): New function.
47314         (fts_open): Defer the calls to fts_stat, if possible or requested.
47315         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47316         into fts_stat itself.
47317         (fts_read): Perform any required (deferred) fts_stat call.
47318         (fts_build): Likewise, for the directory we're about to open and read.
47319         In the readdir loop, carefully decide whether each entry will require
47320         an eventual call to fts_stat, using dirent.d_type info if available.
47321         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47322         a command line argument into this function.  Update all callers.
47323         Map a return value of FTS_DOT to FTS_D for a command line argument.
47324         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47325         Thanks to Miklos Szeredi for his tenacity and for the initial
47326         bug report about "find" failing on a FUSE-based file system.
47327
47328         * lib/fts.c (fts_open): Use consistent indentation.
47329
47330 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47333         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47334         reported by Jim Meyering.  All uses of cache variables renamed
47335         to match Autoconf's.
47336         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47337         the other one.
47338
47339         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47340         Fix misspelling in diagnostic.
47341
47342 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47343
47344         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47345         defined.  Problem reported by Matthew Woehlke.
47346
47347         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47348         Add support for Tandem NonStop R series.
47349         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47350         Use new macro.
47351
47352         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47353         (has_trailing_slash): Omit size arg; all callers changed.
47354         Omit 'inline', since it doesn't help performance and we'd
47355         need to configure it.
47356         Don't count //, ///, etc. as having a trailing slash.
47357         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47358         (rpl_rename_dest_slash): On failure, use rename's errno rather
47359         than (in some cases) an incorrect or junk errno.
47360         Simplify code by removing need to compute length; this does
47361         cause it to make two passes instead of one over the file name,
47362         but it's worth it.
47363
47364         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47365         change, since Autoconf's version may no longer be appropriate now
47366         that we are using CVS Autoconf's version.  Add support for Tandem.
47367
47368 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47369             Bruno Haible  <bruno@clisp.org>
47370
47371         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47372         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47373         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47374         gl_AC_TYPE_LONG_LONG.
47375
47376         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47377         instead of HAVE_LONG_LONG.
47378         * lib/printf-args.c (printf_fetchargs): Likewise.
47379         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47380         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47381         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47382         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47383         gl_AC_TYPE_LONG_LONG.
47384
47385 2006-10-11  Bruno Haible  <bruno@clisp.org>
47386
47387         * m4/longlong.m4: Add comments.
47388         * m4/ulonglong.m4: Likewise.
47389
47390 2006-10-10  Bruno Haible  <bruno@clisp.org>
47391
47392         Make it possible to #define stpcpy, strdup to aliases.
47393         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47394         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47395
47396 2006-10-10  Bruno Haible  <bruno@clisp.org>
47397
47398         Make it possible to #define gcd to an alias.
47399         * lib/gcd.c: Include config.h.
47400
47401 2006-10-10  Bruno Haible  <bruno@clisp.org>
47402
47403         Make it possible to #define c_isascii to an alias.
47404         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47405         defined. Undefine the macros before defining them, to avoid gcc
47406         warnings.
47407         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47408         define NO_C_CTYPE_MACROS early.
47409
47410 2006-10-10  Bruno Haible  <bruno@clisp.org>
47411
47412         Make it possible to #define set_program_name to an alias.
47413         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47414         ENABLE_RELOCATABLE early.
47415
47416 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47417
47418         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47419         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47420         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47421         More generally, don't assume that 64-bit signed int is available
47422         if unsigned int is, and vice versa.
47423         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47424         unsigned symbols, not on their signed counterparts.
47425         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47426         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47427         (UINT64_C, UINTMAX_C):
47428         Likewise.
47429         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47430         unsigned counterparts.
47431         (Have_long_long, Unsigned): New macros.
47432         (Int): Renamed from INT.
47433         (strtoimax): Use the new macros.
47434         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47435         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47436         * modules/inttypes (inttypes.h): Substitute
47437         HAVE_UNSIGNED_LONG_LONG_INT.
47438         * modules/stdint (stdint.h): Likewise.
47439         (Files): Add m4/ulonglong.m4.
47440
47441 2006-10-10  Bruno Haible  <bruno@clisp.org>
47442
47443         Fix a gcc -Wshadow warning.
47444         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47445         to 'bucket'.
47446         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47447         gl_linked_indexof_from_to): Likewise.
47448         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47449         Likewise.
47450         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47451         Likewise.
47452         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47453         Reported by Eric Blake.
47454
47455 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47456
47457         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47458         for NetBSD.  Problem reported by Bruno Haible.
47459
47460 2006-10-09  Jim Meyering  <jim@meyering.net>
47461
47462         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47463         Patch from Bruno Haible.
47464
47465 2006-10-09  Jim Meyering  <jim@meyering.net>
47466
47467         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47468         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47469         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47470
47471 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47472
47473         Don't include <config.h> twice; this doesn't work in some cases,
47474         e.g., when config.h has "#define intmax_t long long int" and
47475         we include <config.h>, <inttypes.h>, <config.h> in that order.
47476         Problem reported by Matthew Woehlke in:
47477         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47478         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47479         * lib/fts-cycle.c: Don't include config.h.
47480         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47481         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47482         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47483         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47484         inttypes.h.
47485         * lib/xstrtoumax.c: Likewise.
47486         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47487         __strtol and the like, so that this module is more like its siblings.
47488         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47489         Remove; no longer needed now that we assume gnulib inttypes.h.
47490
47491 2006-10-08  Bruno Haible  <bruno@clisp.org>
47492
47493         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47494         option.
47495
47496 2006-10-07  Jim Meyering  <jim@meyering.net>
47497
47498         * modules/inttypes (inttypes.h): Revert what seems to have been
47499         an inadvertent part of today's change: use "|", not "/" in the
47500         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47501
47502 2006-10-07  Bruno Haible  <bruno@clisp.org>
47503
47504         * modules/sublist: New file.
47505
47506 2006-10-07  Bruno Haible  <bruno@clisp.org>
47507
47508         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47509         * modules/argz (argz.h): Likewise.
47510         * modules/arpa_inet (arpa/inet.h): Likewise.
47511         * modules/byteswap (byteswap.h): Likewise.
47512         * modules/configmake (configmake.h): Likewise.
47513         * modules/fcntl (fcntl.h): Likewise.
47514         * modules/fnmatch (fnmatch.h): Likewise.
47515         * modules/getopt (getopt.h): Likewise.
47516         * modules/glob (glob.h): Likewise.
47517         * modules/inttypes (inttypes.h): Likewise.
47518         * modules/netinet_in (netinet/in.h): Likewise.
47519         * modules/poll (poll.h): Likewise.
47520         * modules/stdbool (stdbool.h): Likewise.
47521         * modules/stdint (stdint.h): Likewise.
47522         * modules/sys_select (sys/select.h): Likewise.
47523         * modules/sys_socket (sys/socket.h): Likewise.
47524         * modules/sys_stat (sys/stat.h): Likewise.
47525         * modules/sysexits (sysexits.h): Likewise.
47526         * modules/unistd (unistd.h): Likewise.
47527         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47528         Add a "DO NOT EDIT" comment to the generated file.
47529         (func_import): Likewise for gnulib-comp.m4.
47530
47531 2006-10-07  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/gl_sublist.h: New file.
47534         * lib/gl_sublist.c: New file.
47535
47536 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47539         name (relative to the original working directory) and the file
47540         name component (relative to the temporary working directory).  All
47541         callers changed.
47542         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47543         * lib/mkdir-p.c (make_dir_parents): Likewise.
47544         * lib/mkdir-p.h (make_dir_parents): Likewise.
47545
47546 2006-10-06  Eric Blake  <ebb9@byu.net>
47547
47548         Define several macros for use by the clean-temp module.
47549         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47550         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47551         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47552
47553         * lib/clean-temp.h (close_stream_temp): New declaration.
47554         * lib/clean-temp.c (includes): Pull in headers according to what
47555         other modules are in use.
47556         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47557
47558 2006-10-06  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47561         instead of fopen, fwriteerror.
47562
47563 2006-10-06  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47566         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47567         int.
47568         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47569         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47570         Return an error indicator.
47571         Suggested by Eric Blake.
47572
47573 2006-10-06  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47576         Reported by Eric Blake.
47577
47578 2006-10-06  Bruno Haible  <bruno@clisp.org>
47579
47580         * modules/closeout (Description): Mention stderr too.
47581
47582 2006-10-06  Bruno Haible  <bruno@clisp.org>
47583         and Paul Eggert  <eggert@cs.ucla.edu>
47584
47585         * lib/closeout.c (close_stdout): Also close stderr.
47586         * lib/closeout.h: Update comment.
47587
47588 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47591         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47592         * lib/dirchownmod.c: Include lchown.h.
47593         * lib/lchown.c: Don't include files that lchown.h now includes.
47594         Don't declare chown, since lchown.h now does that.
47595         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47596         (lchown): Define to rpl_chown if lchown is declared but
47597         does not exist.  Declare using a prototype if lchown is not
47598         declared.  Add a copyright notice.
47599         * lib/mkstemp.h: Include <unistd.h>.
47600         * lib/openat.c: Include lchown.h.
47601
47602         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47603         we now test for that separately.
47604         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47605         rather than O_NOFOLLOW, when testing whether it's possible to
47606         avoid a race condition reliably.
47607         * lib/savewd.c (savewd_chdir): Likewise.
47608
47609         Remove macros that are no longer needed now that stdint.h is
47610         reliable.
47611         * lib/fsusage.c (UINTMAX_MAX): Remove.
47612         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47613         * lib/utimecmp.c (SIZE_MAX): Remove.
47614
47615         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47616
47617         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47618         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47619         O_NOATIME works.
47620
47621 2006-10-05  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/gl_list.h (gl_sortedlist_search_from_to,
47624         gl_sortedlist_indexof_from_to): New declarations.
47625         (gl_list_implementation): New fields sortedlist_search_from_to,
47626         sortedlist_indexof_from_to.
47627         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47628         inline functions.
47629         * lib/gl_list.c (gl_sortedlist_search_from_to,
47630         gl_sortedlist_indexof_from_to): New functions.
47631         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47632         function.
47633         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47634         (gl_array_sortedlist_search_from_to): New function.
47635         (gl_array_list_implementation): Update.
47636         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47637         function.
47638         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47639         (gl_carray_sortedlist_search_from_to): New function.
47640         (gl_carray_list_implementation): Update.
47641         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47642         gl_linked_sortedlist_indexof_from_to): New functions.
47643         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47644         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47645         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47646         gl_tree_sortedlist_indexof_from_to): New functions.
47647         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47648         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47649         Update.
47650         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47651         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47652         Update.
47653
47654 2006-10-05  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47657         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47658         (struct gl_list_implementation): Add fields search_from_to,
47659         indexof_from_to. Remove fields search, indexof.
47660         (gl_list_search): Use the search_from_to method.
47661         (gl_list_search_from, gl_list_search_from_to): New functions.
47662         (gl_list_indexof): Use the indexof_from_to method.
47663         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47664         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47665         (gl_list_search_from, gl_list_search_from_to): New functions.
47666         (gl_list_indexof): Use the indexof_from_to method.
47667         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47668         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47669         gl_array_indexof. Add start_index, end_index arguments.
47670         (gl_array_search_from_to): Renamed from gl_array_search. Add
47671         start_index, end_index arguments.
47672         (gl_array_remove, gl_array_list_implementation): Update.
47673         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47674         gl_carray_indexof. Add start_index, end_index arguments.
47675         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47676         start_index, end_index arguments.
47677         (gl_carray_remove, gl_carray_list_implementation): Update.
47678         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47679         gl_linked_search. Add start_index, end_index arguments.
47680         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47681         start_index, end_index arguments.
47682         (gl_linked_remove): Update.
47683         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47684         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47685         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47686         field to 'size_t'.
47687         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47688         gl_tree_search. Add start_index, end_index arguments.
47689         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47690         start_index, end_index arguments.
47691         (gl_tree_remove): Update.
47692         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47693         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47694         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47695         function.
47696         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47697         gl_tree_search. Add start_index, end_index arguments.
47698         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47699         start_index, end_index arguments.
47700         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47701         Update.
47702         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47703
47704 2006-10-05  Bruno Haible  <bruno@clisp.org>
47705
47706         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47707
47708         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47709         fwriteerror_temp): New declarations.
47710         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47711         (descriptors): New variable.
47712         (cleanup): First, close the descriptors.
47713         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47714         fclose_temp, fwriteerror_temp): New functions.
47715
47716 2006-10-04  Jim Meyering  <jim@meyering.net>
47717
47718         * lib/fts.c (fts_open): Tiny comment change.
47719
47720 2006-10-04  Bruno Haible  <bruno@clisp.org>
47721
47722         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47723         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47724         gl_LOCK_BODY.
47725         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47726         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47727         gl_LOCK_EARLY_BODY.
47728         (gl_LOCK): Require gl_LOCK_BODY.
47729
47730 2006-10-04  Bruno Haible  <bruno@clisp.org>
47731
47732         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47733         (gl_oset_search_atleast): New declaration.
47734         (struct gl_oset_implementation): Add field 'search_atleast'.
47735         (gl_oset_search_atleast): New inline function.
47736         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47737         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47738         (gl_array_oset_implementation): Update.
47739         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47740         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47741         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47742
47743 2006-10-04  Bruno Haible  <bruno@clisp.org>
47744
47745         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47746
47747 2006-10-03  Bruno Haible  <bruno@clisp.org>
47748
47749         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47750         from gl_avltreehash_list_implementation.
47751
47752 2006-10-03  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/gl_oset.c (gl_oset_add): Fix return type.
47755
47756 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47757
47758         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47759
47760 2006-10-02  Eric Blake  <ebb9@byu.net>
47761
47762         * modules/strnlen (Depends-on): Add extensions.
47763
47764 2006-10-02  Eric Blake  <ebb9@byu.net>
47765
47766         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47767         definition in 2.60+.
47768
47769 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47770
47771         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47772         checks.
47773
47774 2006-10-02  Bruno Haible  <bruno@clisp.org>
47775
47776         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47777         to the AUTOMAKE_OPTIONS.
47778         Reported by Jim Meyering.
47779
47780 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         Work around bug in Solaris 10 /proc file system:
47783         /proc/self/fd/NNN/.. isn't the parent directory of
47784         the directory whose file descriptor is NNN.  This needs to
47785         be worked around at run time, not compile time, since a
47786         program might be built on Solaris 8, where things work, and
47787         run on Solaris 10.
47788         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47789         to use the following interface instead:
47790         (OPENAT_BUFFER_SIZE): New macro.
47791         (openat_proc_name): New function.
47792         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47793         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47794         Likewise.
47795         * lib/openat-proc.c: New file.
47796         * modules/openat (Files): Add lib/openat-proc.c.
47797         (Depends-on): Add same-inode, stdbool.
47798         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47799
47800 2006-09-29  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47803         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47804         argument. Set stdout_closed before testing for ferror, not after.
47805         (fwriteerror, fwriteerror_no_ebadf): New functions.
47806
47807 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47808
47809         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47810
47811 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47812
47813         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47814         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47815
47816 2006-09-28  Jim Meyering  <jim@meyering.net>
47817
47818         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47819         Include <unistd.h>.
47820
47821 2006-09-28  Bruno Haible  <bruno@clisp.org>
47822
47823         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47824         * modules/linkedhash-list (Depends-on): Likewise.
47825         * modules/rbtreehash-list (Depends-on): Likewise.
47826
47827 2006-09-28  Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/strndup.h: Simplify the redefinition of strndup.
47830         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47831         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47832
47833 2006-09-28  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47836         * lib/gl_linkedhash_list.c: Likewise.
47837         * lib/gl_rbtreehash_list.c: Likewise.
47838
47839 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47840
47841         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47842         getaddrinfo.
47843
47844         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47845         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47846         it causes <stdio_ext.h> to cause a compile-time error.
47847         Problem reported by Nelson H. F. Beebe.
47848         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47849         of HAVE_DECL___PENDING.
47850
47851         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47852         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47853         declaration.
47854
47855 2006-09-27  Jim Meyering  <jim@meyering.net>
47856
47857         This file could end up with a definition for a function
47858         named __strndup, rather than rpl_strndup on a system with
47859         incomplete weak_alias support.
47860         * lib/strndup.c (strndup): Rename from __strndup.
47861         Remove #defines that used to map __strndup to strndup.
47862         Don't use K&R prototypes.
47863         Remove LIBC-related code, since this file is not sync'd with glibc.
47864         * lib/strndup.h: Revamp, accordingly.
47865         * m4/strndup.m4: Modernize.
47866
47867 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * modules/savewd (Depends-on): Add 'raise'.
47870         * lib/savewd.c: Include <signal.h>, for 'raise'.
47871
47872 2006-09-26  Jim Meyering  <jim@meyering.net>
47873
47874         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47875         when we detect Darwin 8.7.0's acl_get_file bug.
47876         Rearrange to perform the new (below) run-test while $LIBS
47877         contains any acl-related library.  Set USE_ACL at the end.
47878         (gl_ACL_GET_FILE): New function.
47879
47880 2006-09-26  Eric Blake  <ebb9@byu.net>
47881
47882         * lib/verror.c: Include <config.h> unconditionally.
47883
47884 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47885
47886         * modules/clock-time (Maintainer): Add self.
47887         * modules/getlogin_r (Depends-on): Add extensions.
47888
47889 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47890
47891         * modules/clock-time: New module.
47892         * modules/nanosleep (Depends-on): Add clock-time.
47893         * modules/gethrxtime (Depends-on): Likewise.
47894         * modules/gettime (Depends-on): Likewise.
47895         * modules/settime (Depends-on): Likewise.
47896
47897         * modules/fts-lgpl: Depend on openat.
47898         * modules/mkancesdirs: Depend on savewd.
47899         * modules/mkdir-p: Likewise.
47900
47901 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47902
47903         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47904
47905         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47906         `gl_have_arbitrary_file_name_length_limit' to
47907         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47908         actually works between configure runs.
47909
47910 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47911             Bruno Haible  <bruno@clisp.org>
47912
47913         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47914
47915 2006-09-25  Jim Meyering  <jim@meyering.net>
47916
47917         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47918         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47919
47920 2006-09-25  Eric Blake  <ebb9@byu.net>
47921
47922         * gnulib-tool (func_import, func_create_testdir): Fix typos in
47923         exec's in 2006-09-18 patch when shuffling fds.
47924
47925 2006-09-25  Bruno Haible  <bruno@clisp.org>
47926
47927         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
47928         Reported by Jim Meyering.
47929
47930 2006-09-24  Jim Meyering  <jim@meyering.net>
47931
47932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
47933         compare a pointer against a literal "0".  That caused failures with
47934         at least HP-UX's hpcc.
47935
47936 2006-09-22  Simon Josefsson  <jas@extundo.com>
47937
47938         * modules/gc-sha1:
47939         * modules/gc-md4:
47940         * modules/gc-hmac-sha1:
47941         * modules/gc-hmac-md5:
47942         * modules/gc-des:
47943         * modules/gc-arcfour: Distribute more files.
47944
47945 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47946
47947         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
47948         (gl_linked_iterator_from_to): Initialize struct completely.
47949         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
47950         (gl_tree_iterator_from_to): Likewise
47951         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
47952         * lib/gl_array_list.c [lint] (gl_array_iterator)
47953         (gl_array_iterator_from_to): Likewise.
47954         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
47955         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
47956         (gl_carray_iterator_from_to): Likewise.
47957
47958         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
47959         * lib/md4.c (md4_process_block): Remove unused variable.
47960         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
47961         parentheses for clarity.
47962
47963 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47964
47965         * modules/bison-i18n (Depends-on): Add gettext.
47966
47967 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47968
47969         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
47970         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
47971         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
47972         also add missing comma that caused broken test.
47973         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
47974         stdlib.h, for `abort'.
47975         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
47976         variables.
47977         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
47978         include unistd.h if present, for `rmdir'.
47979         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
47980         variables.
47981         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
47982         in the process include standard headers for prototypes.
47983         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
47984         gets declared on GNU/Linux.
47985         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
47986         unistd.h, for `rmdir'.
47987         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
47988
47989         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
47990         always true.
47991         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
47992
47993         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
47994
47995 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47996
47997         * gnulib-tool (func_version): Create output all at once.  This
47998         may help avoid triggering unnecessary SIGPIPEs, and at any
47999         rate it doesn't hurt.
48000
48001 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48002             Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48005         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48006         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48007
48008         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48009         (gl_FUNC_VASPRINTF): Invoke it.
48010
48011 2006-09-22  Bruno Haible  <bruno@clisp.org>
48012
48013         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48014         getloadavg.c as first argument.
48015
48016 2006-09-22  Bruno Haible  <bruno@clisp.org>
48017
48018         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48019         at the beginning of the gl_INIT macro.
48020         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48021         gl_GETLOADAVG.
48022
48023 2006-09-22  Bruno Haible  <bruno@clisp.org>
48024
48025         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48026         module.
48027         Suggested by Ralf Wildenhues.
48028
48029 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48030
48031         Import this patch from libc:
48032
48033         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48034
48035         * lib/regex_internal.c (re_string_reconstruct): Handle
48036         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48037         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48038         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48039         re_string_context_at.
48040
48041         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48042         now requires it.
48043         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48044         gl_REGEX now does it for us.
48045         (gl_REGEX): Add test taken from
48046         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48047
48048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48049         Check that large offsets work.  Modernize Autoconf usages.
48050         Prefer "yes" to mean a good thing rather than a bad.
48051         Don't put "#define mkstemp" in config.h, as this might interfere
48052         with standard system headers that "#define mkstemp mkstemp64".
48053
48054         * modules/mkstemp (Depends-on): Add extensions, so that
48055         mkstemp is visible on some platforms.
48056         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48057         (Include): Change to "mkstemp.h" from <stdlib.h>.
48058         (Files): Add mkstemp.h.
48059
48060         * lib/mkstemp.h: New file, since some standard headers
48061         #define mkstemp.
48062         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48063         Include "mkstemp.h".
48064         Make the _LIBC code resemble glibc original more,
48065         e.g., use K&R style.
48066         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48067         (mkstemp): Remove, since mkstemp.h does this for us.
48068         * lib/stdlib--.h: Include mkstemp.h.
48069
48070         Import this patch from libc:
48071
48072         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48073
48074         * lib/tempname.c (__gen_tempname): Change attempts_min
48075         into a macro.  Use preprocessor to decide how to initialize
48076         attempts [Coverity CID 67].
48077
48078 2006-09-20  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/mkdtemp.c: Import from libc.
48081         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48082                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48083                 attempts_min into a macro.  Use preprocessor to decide how to
48084                 initialize attempts [Coverity CID 67].
48085         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48086                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48087                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48088
48089 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48090
48091         * gnulib-tool (func_exit): New function, to allow to pass the
48092         exit status portably through the trap.  Use everywhere.
48093         (--help, --version): Signal a write error.
48094         (trap): catch SIGPIPE, for write errors.
48095         Exit at the end of the trap, with the correct exit status.
48096
48097 2006-09-19  Karl Berry  <karl@gnu.org>
48098
48099         * doc/gnulib.texi: note about the license texinfo files.
48100
48101 2006-09-19  Eric Blake  <ebb9@byu.net>
48102
48103         * gnulib-tool: Avoid space-tab.
48104
48105 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48106
48107         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48108         that prevented coreutils 6.1 from building.  Problem reported
48109         by Petter Reinholdtsen.
48110
48111 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48112
48113         * gnulib-tool (avoidlist): Fix typo that broke options like
48114         --avoid=lock that are used by coreutils bootstrap.
48115
48116 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48117
48118         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48119         more systematically.
48120
48121 2006-09-18  Jim Meyering  <jim@meyering.net>
48122
48123         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48124
48125 2006-09-18  Bruno Haible  <bruno@clisp.org>
48126
48127         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48128
48129 2006-09-18  Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48132         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48133         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48134         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48135         * m4/gettext.m4: Require autoconf >= 2.52.
48136         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48137         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48138         of gl_cv_header_inttypes_h.
48139
48140 2006-09-18  Bruno Haible  <bruno@clisp.org>
48141
48142         * lib/javaversion.c: Include configmake.h.
48143
48144 2006-09-18  Bruno Haible  <bruno@clisp.org>
48145
48146         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48147         avoid that the while loops be executed in a subshell.
48148
48149 2006-09-18  Bruno Haible  <bruno@clisp.org>
48150
48151         * MODULES.html.sh (func_module): Break long lines.
48152         Suggested by Bruce Korb <bkorb@gnu.org>.
48153
48154 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48155
48156         Speed up by a factor of 1.12.
48157         * gnulib-tool (nl): New variable.
48158         (func_import): Rewrite include directive extraction to only read each
48159         directive once.
48160
48161 2006-09-17  Bruno Haible  <bruno@clisp.org>
48162
48163         * modules/javaversion (Makefile.am): Remove DEFS setting.
48164         (Depends-on): Add configmake, for PKGDATADIR definition.
48165
48166 2006-09-17  Bruno Haible  <bruno@clisp.org>
48167
48168         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48169
48170 2006-09-17  Bruno Haible  <bruno@clisp.org>
48171
48172         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48173         (func_modules_transitive_closure, func_modules_add_dummy,
48174         func_modules_to_filelist, func_import, func_create_testdir,
48175         func_create_megatestdir, ...): Use it wherever possible.
48176         Suggested by Ralf Wildenhues.
48177
48178 2006-09-16  Karl Berry  <karl@gnu.org>
48179
48180         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48181         to avoid sectioning errors.
48182         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48183         [ifinfo]: blank line after @center-ed titles.
48184         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48185         Spell FSF address consistently with others.
48186         (These changes approved by rms.)
48187
48188 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48189
48190         Speed up by a factor of 1.61.
48191         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48192         already checked module names again.
48193
48194 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48195
48196         Speed up by a factor of 1.13.
48197         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48198         for new_files, and the input to func_add_or_update.
48199
48200 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48201
48202         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48203         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48204
48205 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         * modules/mkancesdirs (Depends-on): Add fcntl.
48208         * modules/savewd: New file.
48209         * MODULES.html.sh (File system functions): Add savewd.
48210
48211         * modules/configmake (Makefile.am): Add support for the
48212         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48213
48214 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48215
48216         * m4/savewd.m4: New file.
48217
48218 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48221         (dirchownmod): New arg FD.  All callers changed.
48222         Use FD rather than opening the directory ourself, as opening is
48223         now the caller's responsibility.
48224         * lib/dirchownmod.h: Likewise.
48225         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48226         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48227         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48228         (test_dir): Remove.
48229         (mkancesdirs): Return length of prefix of FILE that has already
48230         been made, or -2 if there is a child doing the work.  Redo
48231         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48232         ".", and treat ".." specially since it might stray back into
48233         already-created areas.  Use a subprocess if necessary.  New arg
48234         WD; all users changed.  MAKE_DIR function should now return 1
48235         if it creates a directory that is not readable.  Return -2 if
48236         a child process is spun off.
48237         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48238         Adjust signature to match code.
48239         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48240         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48241         all users changed.
48242         * lib/savewd.c, lib/savewd.h: New files.
48243
48244 2006-09-15  Jim Meyering  <jim@meyering.net>
48245
48246         * modules/rename-dest-slash: New module.
48247         * MODULES.html.sh (posix_compat): Add it here.
48248
48249         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48250
48251 2006-09-15  Jim Meyering  <jim@meyering.net>
48252
48253         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48254         file.
48255
48256         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48257
48258 2006-09-15  Jim Meyering  <jim@meyering.net>
48259
48260         * lib/rename-dest-slash.c (has_trailing_slash): Use
48261         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48262         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48263         test before testing whether SRC is a directory.
48264         Suggestions from Bruno Haible.
48265
48266         Avoid a warning about an unused variable.
48267         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48268         into the #ifdef block where it's used.
48269
48270         * lib/rename-dest-slash.c: New file.
48271
48272 2006-09-14  Bruno Haible  <bruno@clisp.org>
48273
48274         * lib/allocsa.c: Include <config.h> unconditionally.
48275         * lib/asnprintf.c: Likewise.
48276         * lib/asprintf.c: Likewise.
48277         * lib/c-strcasecmp.c: Likewise.
48278         * lib/c-strcasestr.c: Likewise.
48279         * lib/c-strncasecmp.c: Likewise.
48280         * lib/c-strstr.c: Likewise.
48281         * lib/classpath.c: Likewise.
48282         * lib/clean-temp.c: Likewise.
48283         * lib/concatpath.c: Likewise.
48284         * lib/copy-file.c: Likewise.
48285         * lib/csharpcomp.c: Likewise.
48286         * lib/csharpexec.c: Likewise.
48287         * lib/execute.c: Likewise.
48288         * lib/fatal-signal.c: Likewise.
48289         * lib/findprog.c: Likewise.
48290         * lib/fwriteerror.c: Likewise.
48291         * lib/gl_array_list.c: Likewise.
48292         * lib/gl_array_oset.c: Likewise.
48293         * lib/gl_avltree_list.c: Likewise.
48294         * lib/gl_avltree_oset.c: Likewise.
48295         * lib/gl_avltreehash_list.c: Likewise.
48296         * lib/gl_carray_list.c: Likewise.
48297         * lib/gl_linked_list.c: Likewise.
48298         * lib/gl_linkedhash_list.c: Likewise.
48299         * lib/gl_list.c: Likewise.
48300         * lib/gl_oset.c: Likewise.
48301         * lib/gl_rbtree_list.c: Likewise.
48302         * lib/gl_rbtree_oset.c: Likewise.
48303         * lib/gl_rbtreehash_list.c: Likewise.
48304         * lib/imaxabs.c: Likewise.
48305         * lib/imaxdiv.c: Likewise.
48306         * lib/javacomp.c: Likewise.
48307         * lib/javaexec.c: Likewise.
48308         * lib/javaversion.c: Likewise.
48309         * lib/linebreak.c: Likewise.
48310         * lib/localcharset.c: Likewise.
48311         * lib/lock.c: Likewise.
48312         * lib/mbchar.c: Likewise.
48313         * lib/mbswidth.c: Likewise.
48314         * lib/mkdtemp.c: Likewise.
48315         * lib/pipe.c: Likewise.
48316         * lib/printf-args.c: Likewise.
48317         * lib/printf-parse.c: Likewise.
48318         * lib/progname.c: Likewise.
48319         * lib/progreloc.c: Likewise.
48320         * lib/readlink.c: Likewise.
48321         * lib/sh-quote.c: Likewise.
48322         * lib/stpcpy.c: Likewise.
48323         * lib/stpncpy.c: Likewise.
48324         * lib/strcasecmp.c: Likewise.
48325         * lib/strcasestr.c: Likewise.
48326         * lib/strcspn.c: Likewise.
48327         * lib/striconv.c: Likewise.
48328         * lib/strncasecmp.c: Likewise.
48329         * lib/strnlen1.c: Likewise.
48330         * lib/strstr.c: Likewise.
48331         * lib/strtok_r.c: Likewise.
48332         * lib/tls.c: Likewise.
48333         * lib/tmpdir.c: Likewise.
48334         * lib/unicodeio.c: Likewise.
48335         * lib/unsetenv.c: Likewise.
48336         * lib/vasnprintf.c: Likewise.
48337         * lib/vasprintf.c: Likewise.
48338         * lib/wait-process.c: Likewise.
48339         * lib/xallocsa.c: Likewise.
48340         * lib/xsetenv.c: Likewise.
48341         * lib/xstriconv.c: Likewise.
48342
48343 2006-09-13  Simon Josefsson  <jas@extundo.com>
48344
48345         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48346         that internally, suggested by Ralf Wildenhues
48347         <Ralf.Wildenhues@gmx.de>.
48348
48349 2006-09-13  Simon Josefsson  <jas@extundo.com>
48350
48351         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48352         @LIBOBJS@.
48353         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48354
48355 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48356
48357         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48358         longer worry about uses that don't define HAVE_CONFIG_H.
48359         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48360         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48361         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48362         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48363         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48364         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48365         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48366         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48367         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48368         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48369         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48370         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48371         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48372         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48373         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48374         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48375         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48376         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48377         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48378         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48379         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48380         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48381         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48382         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48383         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48384         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48385         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48386         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48387         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48388         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48389         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48390         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48391         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48392         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48393         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48394         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48395         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48396         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48397         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48398         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48399         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48400         Likewise.
48401
48402 2006-09-13  Eric Blake  <ebb9@byu.net>
48403
48404         * lib/getopt.c: Fix typo in last commit.
48405
48406 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48407
48408         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48409         dgettext.
48410
48411 2006-09-12  Jim Meyering  <jim@meyering.net>
48412
48413         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48414         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48415         Reported by Nelson H. F. Beebe.
48416
48417 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48418
48419         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48420         program_invocation_name and program_invocation_short_name are
48421         initialized.
48422         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48423         and program_invocation_short_name to argp.h, so they are visible
48424         to user programs.
48425         * lib/argp.h: Likewise
48426
48427 2006-09-10  Bruno Haible  <bruno@clisp.org>
48428
48429         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48430         m4/inttypes_h.m4, m4/uintmax_t.m4.
48431
48432 2006-09-10  Bruno Haible  <bruno@clisp.org>
48433
48434         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48435         gl_AC_TYPE_UINTMAX_T.
48436
48437 2006-09-10  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48440
48441 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48442
48443         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48444         convention.  Text proposed by Bruno Haible.
48445         (struct argp_option): Document the use of N_() wrappers.
48446
48447         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48448         '\v', and translate the two parts separately, instead of feeding
48449         the whole string to gettext.  This allows to exclude
48450         '\v' from the strings visible to the translator by writing doc
48451         strings as N_("..") "\v" N_("..").
48452
48453 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48454
48455         * config/srclist.txt: Undo latest change; the bug was fixed.
48456
48457 2006-09-09  Bruno Haible  <bruno@clisp.org>
48458
48459         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48460         assignments if building a library without libtool.
48461         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48462         in func_emit_lib_Makefile_am.
48463         (func_import): When building a static library libfoo.a, arrange to
48464         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48465         (func_create_testdir): Likewise.
48466         * modules/gc (configure.ac, Makefile.am): If building statically,
48467         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48468         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48469         * modules/striconv (configure.ac, Makefile.am): Likewise.
48470         Based on a suggestion by Ralf Wildenhues.
48471
48472 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48473
48474         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48475         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48476         Also:
48477
48478         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48479         Add year_2050_test to catch glibc bug 2821
48480         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48481
48482         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48483         Prefer #ifdef to #if.
48484
48485         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48486         Return from 'main' instead of calling 'exit'.
48487
48488 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48489
48490         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48491         returned the maximum time_t value rather than (time_t) -1.
48492         Problem originally reported by William Bardwell
48493         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48494
48495         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48496         Moved to here ...
48497         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48498         ... from here.
48499
48500 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48501
48502         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48503         2821 is fixed.
48504
48505 2006-09-08  Jim Meyering  <jim@meyering.net>
48506
48507         Don't make generated files read-only.  That would bother too many
48508         people.  However, do retain the ability to work when targets are
48509         read-only: remove the destination and temporary files before writing
48510         them (when generated via sed or echo), or by using the -f option for
48511         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48512         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48513         * modules/byteswap, modules/configmake, modules/fcntl:
48514         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48515         * modules/localcharset, modules/netinet_in, modules/poll:
48516         * modules/stdbool, modules/stdint, modules/sys_select:
48517         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48518
48519 2006-09-08  Jim Meyering  <jim@meyering.net>
48520
48521         Avoid new build failure on FreeBSD 6.0.
48522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48523         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48524         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48525
48526 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48527
48528         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48529
48530 2006-09-07  Jim Meyering  <jim@meyering.net>
48531
48532         Fix global typo in last change: use chmod u-w, not chmod u-x.
48533         Spotted by Paul Eggert and Bruce Korb.
48534         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48535         * modules/byteswap, modules/configmake, modules/fcntl:
48536         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48537         * modules/localcharset, modules/netinet_in, modules/poll:
48538         * modules/stdbool, modules/stdint, modules/sys_select:
48539         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48540
48541 2006-09-06  Jim Meyering  <jim@meyering.net>
48542
48543         Make generated files be read-only.
48544         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48545         Ensure that each generated file is now read-only.
48546         * modules/argz: Likewise.
48547         * modules/arpa_inet: Likewise.
48548         * modules/byteswap: Likewise.
48549         * modules/configmake: Likewise.
48550         * modules/fcntl: Likewise.
48551         * modules/fnmatch: Likewise.
48552         * modules/getopt: Likewise.
48553         * modules/glob: Likewise.
48554         * modules/inttypes: Likewise.
48555         * modules/netinet_in: Likewise.
48556         * modules/poll: Likewise.
48557         * modules/stdbool: Likewise.
48558         * modules/stdint: Likewise.
48559         * modules/sys_select: Likewise.
48560         * modules/sys_socket: Likewise.
48561         * modules/sys_stat: Likewise.
48562         * modules/sysexits: Likewise.
48563         * modules/localcharset: Same as above, but continue using temporary
48564         file named "t-$@" (why different?) rather than the "$@-t" used
48565         everywhere else.
48566
48567         * modules/sysexits (Makefile.am): Replace literal occurrences
48568         of "sysexit.h" more readable, and more consistent, "$@".
48569
48570 2006-09-06  Bruno Haible  <bruno@clisp.org>
48571
48572         * modules/striconv: New file.
48573         * modules/xstriconv: New file.
48574         * MODULES.html.sh (Internationalization functions): Add striconv,
48575         xstriconv.
48576
48577 2006-09-06  Bruno Haible  <bruno@clisp.org>
48578
48579         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48580         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48581         not using libtool correctly.
48582
48583 2006-09-06  Bruno Haible  <bruno@clisp.org>
48584
48585         * lib/striconv.h: New file.
48586         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48587         iconvstring.c.
48588         * lib/xstriconv.h: New file.
48589         * lib/xstriconv.c: New file.
48590
48591 2006-09-06  Bruno Haible  <bruno@clisp.org>
48592
48593         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48594         lib_..._LDFLAGS.
48595
48596 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48597
48598         * lib/argz_.h: Sync from Libtool.
48599
48600         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48601                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48602
48603         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48604
48605 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48606
48607         * modules/trim: New file.
48608
48609 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48610
48611         * lib/trim.h: New file.
48612         * lib/trim.c: New file.
48613
48614 2006-09-05  Bruno Haible  <bruno@clisp.org>
48615
48616         * MODULES.html.sh (String handling): Add trim.
48617
48618 2006-09-04  Karl Berry  <karl@gnu.org>
48619
48620         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48621         until next release.
48622
48623 2006-09-03  Bruno Haible  <bruno@clisp.org>
48624
48625         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48626         correctly.
48627
48628 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48629
48630         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48631         not gl_GETLOADAVG.  Omit unneeded semicolons.
48632         Problems reported by Ralf Wildenhues in
48633         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48634         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48635         at the end, which is the usual gnulib style.
48636
48637         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48638         of doing all the work ourselves.
48639         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48640         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48641
48642 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48643
48644         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48645         Problem reported by Ralf Wildenhues in
48646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48647
48648         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48649         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48650
48651 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48652
48653         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48654         yesterday's patch by changing test -n to test -z.
48655
48656 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48657
48658         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48659         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48660         the former is now obsolescent.
48661
48662         * modules/chdir-long (Depends-on): Add fcntl.
48663
48664 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48665
48666         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48667         obsolescent, and programs should use gnulib instead.
48668         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48669         but with prefixes changed.
48670
48671 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48674         or stdbool.h, because they might not exist while configuring.
48675
48676         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48677         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48678         does that for us.
48679         (O_DIRECTORY): Remove.
48680
48681 2006-08-31  Eric Blake  <ebb9@byu.net>
48682
48683         * gnulib-tool: Don't let emacs change spaces to TAB.
48684
48685 2006-08-31  Bruno Haible  <bruno@clisp.org>
48686
48687         * gnulib-tool: When calling func_import more than once, do it in a
48688         subshell.
48689         Reported by Eric Blake <ebb9@byu.net>.
48690
48691 2006-08-31  Bruno Haible  <bruno@clisp.org>
48692
48693         * gnulib-tool (nl): Remove variable.
48694         (sed_transform_lib_file): Use more robust test for config-h module.
48695         (func_import): Fix typo in 2006-08-25 patch.
48696
48697 2006-08-31  Bruno Haible  <bruno@clisp.org>
48698
48699         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48700         specified, augment Makefile.am variables instead of assigning them.
48701
48702 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48703
48704         Work around a bug in both the Linux and SunOS 64-bit kernels:
48705         nanosleep mishandles sleeps for longer than 2**31 seconds.
48706         Problem reported by Frank v Waveren in
48707         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48709         Check for nanosleep bug.
48710         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48711
48712 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48713
48714         Work around a bug in both the Linux and SunOS 64-bit kernels:
48715         nanosleep mishandles sleeps for longer than 2**31 seconds.
48716         Problem reported by Frank v Waveren in
48717         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48718         * lib/nanosleep.c (BILLION): New constant.
48719         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48720         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48721         implementation.
48722
48723 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48724
48725         * modules/nanosleep (Depends-on): Add gettime.
48726
48727 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48728         and Simon Josefsson  <jas@extundo.com>
48729         and Oskar Liljeblad  <oskar@osk.mine.nu>
48730
48731         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48732         * gnulib-tool (func_import): New license type 'unmodifiable license
48733         text'.
48734         * modules/fdl: Use it.  Longer description.
48735         * module/gpl, module/lgpl: New files.
48736
48737 2006-08-30  Jim Meyering  <jim@meyering.net>
48738
48739         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48740         shadowing the parameter.
48741
48742 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48743
48744         Sync from Libtool:
48745
48746         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48747
48748         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48749         sharing with gnulib.  Report by Eric Blake.
48750
48751 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         * modules/isapipe: New file.
48754         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48755
48756 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48757
48758         * modules/configmake (Makefile.am): Add a comment, and omit
48759         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48760         by Bruno Haible.
48761
48762 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         * m4/isapipe.m4: New file.
48765
48766 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48767
48768         * lib/isapipe.c, lib/isapipe.h: New files.
48769
48770 2006-08-29  Jim Meyering  <jim@meyering.net>
48771
48772         * modules/configmake (Makefile.am): Make configmake.h depend on
48773         Makefile.  Otherwise, a stale configmake.h could hang around.
48774
48775 2006-08-29  Eric Blake  <ebb9@byu.net>
48776
48777         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48778         resolution of upstream bug 3044.
48779
48780 2006-08-29  Bruno Haible  <bruno@clisp.org>
48781
48782         * modules/localcharset (Depends-on): Add configmake.
48783         (Makefile.am): Remove setting of LIBDIR through DEFS.
48784
48785 2006-08-29  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48788         defined.
48789
48790 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48791
48792         * modules/fcntl: New file.
48793         * modules/chdir-safer (Depends-on): Add fcntl.
48794         * modules/fts: Likewise.
48795         * modules/mkdir-p: Likewise.
48796
48797         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48798         This undoes the most recent change, since we're now addressing the
48799         problem in a different way.
48800
48801         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48802         into output, since the output might be called Makefile.am even
48803         if $makefile_name is something different.
48804         (func_import): Use $makefile_am rather than
48805         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48806         empty.
48807
48808         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48809
48810 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48811
48812         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48813         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48814         recent change to stdint.m4, since we're now addressing the problem in a
48815         different way.
48816
48817 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48818
48819         * m4/fcntl_h.m4: New file.
48820
48821 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48822
48823         * lib/fcntl_.h: New file.
48824         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48825         the fcntl module.
48826         * lib/dirchownmod.c: Likewise.
48827         * lib/fts.c: Likewise.
48828
48829         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48830         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48831         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48832         just before including <inttypes.h>, to avoid circular inclusion.
48833
48834 2006-08-28  Jim Meyering  <jim@meyering.net>
48835
48836         * doc/visibility.texi: Actually read and correct the grammar of the
48837         sentence affected by yesterday's change.
48838
48839 2006-08-28  Eric Blake  <ebb9@byu.net>
48840
48841         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48842         needs wrapper.
48843
48844 2006-08-28  Eric Blake  <ebb9@byu.net>
48845
48846         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48847
48848 2006-08-28  Eric Blake  <ebb9@byu.net>
48849
48850         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48851
48852 2006-08-28  Bruno Haible  <bruno@clisp.org>
48853
48854         * modules/c-strstr: New file, from GNU gettext.
48855         * MODULES.html.sh (String handling): Add c-strstr.
48856
48857 2006-08-28  Bruno Haible  <bruno@clisp.org>
48858
48859         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48860         macros.
48861         Reported by Eric Blake.
48862
48863 2006-08-28  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48866         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48867         * lib/vasprintf.c: Include errno.h, limits.h.
48868         (EOVERFLOW): New fallback definition.
48869         (vasprintf): Test here whether the string length is > INT_MAX.
48870         * lib/vsnprintf.c: Include errno.h, limits.h.
48871         (EOVERFLOW): New fallback definition.
48872         (vsnprintf): Fix bug when generated string was too long for the buffer.
48873         Test here whether the string length is > INT_MAX.
48874
48875 2006-08-28  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/inttypes_.h (SCNX*): Remove definitions.
48878         Reported by Eric Blake.
48879
48880 2006-08-28  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/c-strstr.h: New file, from GNU gettext.
48883         * lib/c-strstr.c: New file, from GNU gettext.
48884
48885 2006-08-28  Bruno Haible  <bruno@clisp.org>
48886
48887         * gnulib-tool: Reorder some statements.
48888
48889 2006-08-28  Bruno Haible  <bruno@clisp.org>
48890
48891         * gnulib-tool: New option --makefile-name.
48892         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48893         $makefile_name.
48894         (func_import): Write $makefile_name to the cache file, and read it from
48895         there unless explicitly specified. Use $makefile_name as file name
48896         instead of Makefile.am. Adjust the recommendations accordingly.
48897
48898 2006-08-28  Bruno Haible  <bruno@clisp.org>
48899
48900         * gnulib-tool (func_verify_module): Check against misapplying patch.
48901
48902 2006-08-28  Bruno Haible  <bruno@clisp.org>
48903
48904         * gnulib-tool (func_relativize, func_relconcat): New functions.
48905         Give an error if --local-dir is given with --update.
48906         Remove trailing slashes from $local_gnulib_dir.
48907         (func_import): Store the relativized $local_gnulib_dir in
48908         gnulib-cache.m4, and read it from there if not specified explicitly.
48909
48910 2006-08-28  Bruno Haible  <bruno@clisp.org>
48911
48912         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48913         is the current directory. Respect also $local_gnulib_dir.
48914
48915 2006-08-28  Bruno Haible  <bruno@clisp.org>
48916             Simon Josefsson  <jas@extundo.com>
48917
48918         BeOS portability.
48919         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
48920
48921 2006-08-27  Jim Meyering  <jim@meyering.net>
48922
48923         * doc/visibility.texi: Remove duplicate word: "pointer".
48924
48925 2006-08-26  Bruno Haible  <bruno@clisp.org>
48926
48927         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
48928         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
48929         (Makefile.am): Create inttypes.h from inttypes_.h.
48930         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
48931
48932         * modules/imaxabs: New file.
48933
48934         * modules/imaxdiv: New file.
48935
48936 2006-08-26  Bruno Haible  <bruno@clisp.org>
48937
48938         * m4/inttypes.m4: New file.
48939         * m4/_inttypes_h.m4: Remove file.
48940         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
48941         PRI_MACROS_BROKEN.
48942         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
48943
48944         * m4/imaxabs.m4: New file.
48945
48946         * m4/imaxdiv.m4: New file.
48947
48948 2006-08-26  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/inttypes_.h: New file.
48951         * lib/inttypes.h: Remove file.
48952         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
48953
48954         * lib/imaxabs.c: New file.
48955
48956         * lib/imaxdiv.c: New file.
48957
48958 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48959
48960         New config-h module, so that "make" output needn't be cluttered
48961         by -DHAVE_CONFIG_H.
48962         * MODULES.html.sh (Support for building libraries and executables):
48963         Add config-h.
48964         * modules/config-h: New file.
48965         * gnulib-tool (nl, sed_transform_lib_file): New vars.
48966         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
48967         the config-h module is used.
48968
48969         New configmake module, so that "make" output needn't be cluttered
48970         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
48971         * MODULES.html.sh (Support for building libraries and executables):
48972         Add configmake.
48973         * modules/configmake: New file.
48974
48975 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48976
48977         * m4/config-h.m4: New file.
48978
48979 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48980
48981         * config/srclist.txt: Add elisp-comp.
48982
48983 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48984
48985         * MODULES.html.sh (Support for building libraries and executables):
48986         Add elisp-comp.
48987         * build-aux/elisp-comp: New file.
48988         * modules/elisp-comp: New file.
48989
48990 2006-08-24  Bruno Haible  <bruno@clisp.org>
48991
48992         * gnulib-tool (func_create_testdir): Use non-default values of
48993         sourcebase and m4base.
48994
48995 2006-08-24  Bruno Haible  <bruno@clisp.org>
48996
48997         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
48998         HTML structure.
48999
49000 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49001
49002         * modules/openat (Depends-on): Add lchown.
49003
49004 2006-08-23  Bruno Haible  <bruno@clisp.org>
49005
49006         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49007         of gl_LOCK_EARLY instead of gl_LOCK.
49008
49009 2006-08-23  Bruno Haible  <bruno@clisp.org>
49010
49011         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49012         on OSF/1 to no.
49013         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49014
49015 2006-08-23  Bruno Haible  <bruno@clisp.org>
49016
49017         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49018         as unusable.
49019
49020         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49021         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49022         (gl_LOCK): New macro.
49023
49024 2006-08-22  Simon Josefsson  <jas@extundo.com>
49025
49026         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49027         to md5 module.
49028
49029 2006-08-22  Simon Josefsson  <jas@extundo.com>
49030
49031         * MODULES.html.sh: Add "Support for maintaining and release
49032         projects".
49033
49034         * build-aux/gnupload: New file, from coreutils.
49035
49036 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49037
49038         Avoid the need for AC_LIBSOURCES in m4 macros.
49039         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49040         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49041         * modules/check-version (EXTRA_DIST): Add check-version.h.
49042         * modules/crc (EXTRA_DIST): Add crc.h.
49043         * modules/des (EXTRA_DIST): Add des.h.
49044         * modules/gc (EXTRA_DIST): Add gc.h.
49045         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49046         * modules/getline (EXTRA_DIST): Add getline.h.
49047         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49048         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49049         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49050         * modules/md2 (EXTRA_DIST): Add md2.h.
49051         * modules/md4 (EXTRA_DIST): Add md4.h.
49052         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49053         * modules/read-file (EXTRA_DIST): Add read-file.h.
49054         * modules/readline (EXTRA_DIST): Add readline.h.
49055         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49056         rijndael-api-fst.h.
49057
49058 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49059
49060         * m4/rijndael.m4 (gl_ARCFOUR):
49061         * m4/arctwo.m4 (gl_ARCTWO):
49062         * m4/check-version.m4 (gl_CHECK_VERSION):
49063         * m4/crc.m4 (gl_CRC):
49064         * m4/des.m4 (gl_DES):
49065         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49066         * m4/gc.m4 (gl_GC):
49067         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49068         * m4/getline.m4 (gl_FUNC_GETLINE):
49069         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49070         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49071         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49072         * m4/md2.m4 (gl_MD2):
49073         * m4/md4.m4 (gl_MD4):
49074         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49075         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49076         * m4/readline.m4 (gl_FUNC_READLINE):
49077         * m4/rijndael.m4 (gl_RIJNDAEL):
49078         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49079         to get the necessary .h files and whatnot.
49080
49081 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49082
49083         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49084         gnulib rather than the other way around.
49085         * config/srclistvars.sh (COREUTILS): Remove.
49086
49087 2006-08-22  Jim Meyering  <jim@meyering.net>
49088
49089         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49090
49091         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49092
49093 2006-08-22  Eric Blake  <ebb9@byu.net>
49094
49095         * modules/regexprops-generic: New file.
49096         * MODULES.html.sh (Support for building documentation): List it.
49097
49098 2006-08-22  Eric Blake  <ebb9@byu.net>
49099
49100         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49101         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49102         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49103         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49104
49105 2006-08-22  Bruno Haible  <bruno@clisp.org>
49106
49107         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49108         and lib_LTLIBRARIES like the other lib_* variables.
49109
49110 2006-08-22  Bruno Haible  <bruno@clisp.org>
49111
49112         * build-aux/x-to-1.in: New file, from GNU gettext.
49113
49114 2006-08-22  Bruno Haible  <bruno@clisp.org>
49115
49116         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49117         <utmpx.h> exists.
49118
49119 2006-08-22  Bruno Haible  <bruno@clisp.org>
49120
49121         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49122         <utmpx.h> exists.
49123
49124 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49125
49126         BeOS portability.
49127         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49128         exist.
49129         Problem reported by Bruno Haible.
49130
49131 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49132
49133         Avoid the need for AC_LIBSOURCES in m4 macros.
49134         * modules/acl (EXTRA_DIST): Add acl.h.
49135         * modules/argmatch (Files): Add m4/argmatch.m4.
49136         (configure.ac): Add gl_ARGMATCH.
49137         (EXTRA_DIST): Renamed from lib_SOURCES, for
49138         consistency with the other modules.  Remove argmatch.c.
49139         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49140         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49141         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49142         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49143         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49144         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49145         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49146         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49147         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49148         * modules/closeout (EXTRA_DIST): Add closeout.h.
49149         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49150         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49151         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49152         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49153         dirname.h; remove basename.c and stripslash.c.
49154         * modules/exclude (EXTRA_DIST): Add exclude.h.
49155         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49156         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49157         * modules/file-type (EXTRA_DIST): Add file-type.h.
49158         * modules/filemode (EXTRA_DIST): Add filemode.h.
49159         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49160         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49161         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49162         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49163         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49164         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49165         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49166         * modules/getdate (EXTRA_DIST): Add getdate.c.
49167         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49168         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49169         * modules/getpass (EXTRA_DIST): Add getpass.h.
49170         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49171         * modules/group-member (EXTRA_DIST): Add group-member.h.
49172         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49173         * modules/hash (EXTRA_DIST): Add hash.h.
49174         * modules/human (EXTRA_DIST): Add human.h.
49175         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49176         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49177         * modules/lchown (EXTRA_DIST): Add lchown.h.
49178         * modules/long-options (EXTRA_DIST): Add long-options.h.
49179         * modules/lstat (EXTRA_DIST): Add lstat.h.
49180         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49181         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49182         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49183         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49184         * modules/memxor (EXTRA_DIST): Add memxor.h.
49185         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49186         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49187         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49188         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49189         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49190         * modules/physmem (EXTRA_DIST): Add physmem.h.
49191         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49192         * modules/posixver (EXTRA_DIST): Add posixver.h.
49193         * modules/quote (EXTRA_DIST): Add quote.h.
49194         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49195         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49196         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49197         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49198         regex_internal.h regexec.c.
49199         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49200         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49201         * modules/same (EXTRA_DIST): Add same.h.
49202         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49203         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49204         * modules/savedir (EXTRA_DIST): Add savedir.h.
49205         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49206         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49207         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49208         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49209         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49210         * modules/strdup (EXTRA_DIST): Add strdup.h.
49211         * modules/strftime (EXTRA_DIST): Add strftime.h.
49212         * modules/strndup (EXTRA_DIST): Add strndup.h.
49213         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49214         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49215         * modules/time_r (EXTRA_DIST): Add time_r.h.
49216         * modules/timespec (EXTRA_DIST): Add timespec.h.
49217         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49218         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49219         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49220         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49221         * modules/userspec (EXTRA_DIST): Add userspec.h.
49222         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49223         * modules/utimens (EXTRA_DIST): Add utimens.h.
49224         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49225         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49226         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49227         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49228         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49229         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49230         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49231         * modules/yesno (EXTRA_DIST): Add yesno.h.
49232
49233 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49234
49235         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49236
49237         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49238         * m4/dev-ino.m4, same-inode.m4: Remove.
49239
49240         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49241         * m4/acl.m4 (AC_FUNC_ACL):
49242         * m4/backupfile.m4 (gl_BACKUPFILE):
49243         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49244         * m4/canon-host.m4 (gl_CANON_HOST):
49245         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49246         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49247         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49248         * m4/cloexec.m4 (gl_CLOEXEC):
49249         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49250         * m4/closeout.m4 (gl_CLOSEOUT):
49251         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49252         * m4/dirname.m4 (gl_DIRNAME):
49253         * m4/exclude.m4 (gl_EXCLUDE):
49254         * m4/exitfail.m4 (gl_EXITFAIL):
49255         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49256         * m4/file-type.m4 (gl_FILE_TYPE):
49257         * m4/filemode.m4 (gl_FILEMODE):
49258         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49259         * m4/fpending.m4 (gl_FUNC_FPENDING):
49260         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49261         * m4/fts.m4 (gl_FUNC_FTS):
49262         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49263         * m4/getdate.m4 (gl_GETDATE):
49264         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49265         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49266         * m4/getpass.m4 (gl_FUNC_GETPASS):
49267         * m4/gettime.m4 (gl_GETTIME):
49268         * m4/getugroups.m4 (gl_GETUGROUPS):
49269         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49270         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49271         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49272         * m4/hash.m4 (gl_HASH):
49273         * m4/idcache.m4 (gl_IDCACHE):
49274         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49275         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49276         * m4/long-options.m4 (gl_LONG_OPTIONS):
49277         * m4/lstat.m4 (gl_FUNC_LSTAT):
49278         * m4/md5.m4 (gl_MD5):
49279         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49280         * m4/memcoll.m4 (gl_MEMCOLL):
49281         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49282         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49283         * m4/memxor.m4 (gl_MEMXOR):
49284         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49285         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49286         * m4/modechange.m4 (gl_MODECHANGE):
49287         * m4/mountlist.m4 (gl_MOUNTLIST):
49288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49289         * m4/openat.m4 (gl_FUNC_OPENAT):
49290         * m4/pathmax.m4 (gl_PATHMAX):
49291         * m4/physmem.m4 (gl_PHYSMEM):
49292         * m4/posixtm.m4 (gl_POSIXTM):
49293         * m4/posixver.m4 (gl_POSIXVER):
49294         * m4/quote.m4 (gl_QUOTE):
49295         * m4/quotearg.m4 (gl_QUOTEARG):
49296         * m4/readtokens.m4 (gl_READTOKENS):
49297         * m4/readutmp.m4 (gl_READUTMP):
49298         * m4/regex.m4 (gl_REGEX):
49299         * m4/safe-read.m4 (gl_SAFE_READ):
49300         * m4/safe-write.m4 (gl_SAFE_WRITE):
49301         * m4/same.m4 (gl_SAME):
49302         * m4/save-cwd.m4 (gl_SAVE_CWD):
49303         * m4/savedir.m4 (gl_SAVEDIR):
49304         * m4/settime.m4 (gl_SETTIME):
49305         * m4/sha1.m4 (gl_SHA1):
49306         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49307         * m4/stat-macros.m4 (gl_STAT_MACROS):
49308         * m4/stat-time.m4 (gl_STAT_TIME):
49309         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49310         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49311         * m4/strdup.m4 (gl_FUNC_STRDUP):
49312         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49313         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49314         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49315         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49316         * m4/time_r.m4 (gl_TIME_R):
49317         * m4/timespec.m4 (gl_TIMESPEC):
49318         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49319         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49320         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49321         * m4/userspec.m4 (gl_USERSPEC):
49322         * m4/utimecmp.m4 (gl_UTIMECMP):
49323         * m4/utimens.m4 (gl_UTIMENS):
49324         * m4/xalloc.m4 (gl_XALLOC):
49325         * m4/xgetcwd.m4 (gl_XGETCWD):
49326         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49327         * m4/xreadlink.m4 (gl_XREADLINK):
49328         * m4/xstrtod.m4 (gl_XSTRTOD):
49329         * m4/yesno.m4 (gl_YESNO):
49330         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49331         to get the necessary .h files and whatnot.
49332
49333 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49334             Bruno Haible  <bruno@clisp.org>
49335
49336         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49337         /bin/sh understanding of '!' conditional negation.
49338
49339 2006-08-21  Jim Meyering  <jim@meyering.net>
49340
49341         * modules/openat (Depends-on): Really alphabetize.
49342
49343         * modules/acl (Depends-on): Add error and quote.
49344
49345         * check-module (find_included_lib_files): Add at-func.c to the
49346         ok-to-include-more-than-once white list.
49347
49348         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49349
49350 2006-08-21  Bruno Haible  <bruno@clisp.org>
49351
49352         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49353         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49354         Reported by Martin Lambers <marlam@marlam.de>.
49355
49356 2006-08-21  Bruno Haible  <bruno@clisp.org>
49357
49358         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49359         specify an installation location, don't emit a noinst_LIBRARIES or
49360         noinst_LTLIBRARIES assignment.
49361
49362 2006-08-21  Bruno Haible  <bruno@clisp.org>
49363
49364         BeOS portability.
49365         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49366         BeOS has mbrtowc() but no <wctype.h>.
49367
49368 2006-08-21  Bruno Haible  <bruno@clisp.org>
49369
49370         BeOS portability.
49371         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49372         exist.
49373
49374 2006-08-21  Bruno Haible  <bruno@clisp.org>
49375
49376         BeOS portability.
49377         * lib/mbchar.h: Include <wctype.h> only if it exists.
49378
49379 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         Remove files that are no longer needed by their respective modules.
49382         * m4/obstack.m4: Remove.
49383         * m4/strerror_r.m4: Remove.
49384         * m4/uint32_t.m4: Remove.
49385         * m4/uintptr_t.m4: Remove.
49386         * m4/ullong_max.m4: Remove.
49387         * m4/xstrtoimax.m4: Remove.
49388         * m4/xstrtoumax.m4: Remove.
49389
49390         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49391         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49392         dependencies now capture this.
49393
49394         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49395         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49396         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49397         * m4/human.m4 (gl_HUMAN): Likewise.
49398         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49399         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49400
49401         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49402
49403         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49404         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49405         stdint.
49406         * m4/human.m4 (gl_HUMAN): Likewise.
49407         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49408         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49409         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49410         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49411         * m4/xstrtol (gl_XSTRTOL): Likewise.
49412
49413         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49414         AC_TYPE_LONG_LONG_INT.
49415         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49416         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49417         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49418         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49419
49420         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49421         on stdbool.
49422
49423         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49424         (gl_PREREQ_XSTRTOUL): Remove.
49425
49426         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49427
49428         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49429         mode.
49430
49431 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49432
49433         Add and change modules to make it easier for coreutils to use
49434         gnulib-tool.
49435         * modules/backupfile (Files): Remove m4/d-ino.m4.
49436         (Depends-on): Add d-ino.
49437         * modules/cycle-check (Depends-on): Add stdint.
49438         (lib_SOURCES): Add cycle-check.h.
49439         * modules/d-ino: New module.
49440         * modules/d-type: New module.
49441         * modules/error (Files): Remove m4/strerror_r.m4.
49442         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49443         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49444         m4/inttypes_h.m4, m4/uintmax_t.m4.
49445         (Depends-on): Add stdint.
49446         (lib_SOURCES): Add fsusage.h.
49447         * modules/getcwd (Files): Remove d-ino.m4.
49448         (Depends-on): Add d-ino.
49449         * modules/getndelim2 (Depends-on): Add stdint.
49450         * modules/glob (Files): Remove m4/d-type.m4.
49451         (Depends-on): Add d-type.
49452         * modules/host-os: New module.
49453         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49454         m4/inttypes_h.m4, m4/uintmax_t.m4.
49455         * Depends-on: Add stdint.
49456         (lib_SOURCES): Add human.h.
49457         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49458         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49459         m4/uintmax_t.m4, m4/ulonglong.m4.
49460         (Depends-on): Add stdint.
49461         (EXTRA_DIST): Add inttostr.h.
49462         * modules/lchmod: New module.
49463         * modules/link-follow: New module.
49464         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49465         (Depends-on): Add lchmod.
49466         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49467         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49468         (Depends-on): Add stdint.
49469         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49470         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49471         (Depends-on): Add stdint.
49472         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49473         * modules/perl: New module.
49474         * modules/regex (Depends-on): Add stdint.
49475         * modules/rmdir-errno: New module.
49476         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49477         m4/intmax_t.m4.
49478         (Depends-on): Add stdint.
49479         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49480         m4/uintmax_t.m4.
49481         (Depends-on): Add stdint.
49482         * modules/unlink-busy: New module.
49483         * modules/utimecmp (Depends-on): Add stdint.
49484         * modules/uptime: New module.
49485         * modules/winsz-ioctl: New module.
49486         * modules/winsz-termios: New module.
49487         * modules/xnanosleep (Depends-on): Add nanosleep.
49488         * modules/ullong_max: Remove.
49489         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49490         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49491         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49492         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49493         (Depends-on): Add inttypes.
49494         (lib_SOURCES): Add xstrtol.h.
49495         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49496         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49497         * MODULES.html.sh: Move 'assert' into the assert section.
49498         Move 'dummy' into the linking section.
49499         Remove ullong_max.
49500         Add section for compatibility checks for POSIX:2001 functions,
49501         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49502         winsz-ioctl, and winsz-termios into it.
49503         Add lchmod.
49504         Add top-level Misc section and put host-os, perl, and uptime
49505         into it.
49506
49507 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49508
49509         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49510         now assume the stdint module.  Do not include inttypes.h.
49511         * lib/fsusage.h: Likewise.
49512         * lib/getndelim2.c: Likewise.
49513         * lib/human.h: Likewise.
49514         * lib/inttostr.h: Likewise.
49515         * lib/obstack.c: Likewise.
49516         * lib/regex_internal.h: Likewise.
49517         * lib/tempname.c: Likewise.
49518         * lib/utimecmp.c: Likewise.
49519         * lib/xstrtol.h: Likewise.
49520
49521         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49522
49523         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49524         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49525         * lib/xtime.h: Likewise.
49526
49527 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49528
49529         * modules/openat (Files): Add lib/fchmodat.c.
49530         Fixes problem reported by Jay Youngman.
49531
49532 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49533
49534         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49535         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49536
49537 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49538             Bruno Haible  <bruno@clisp.org>
49539
49540         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49541         and is a script that invokes bison. Tighten the code. Add comments.
49542
49543 2006-08-18  Jim Meyering  <jim@meyering.net>
49544
49545         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49546         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49547         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49548         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49549
49550 2006-08-18  Bruno Haible  <bruno@clisp.org>
49551
49552         * modules/bison-i18n: New file.
49553         * MODULES.html.sh (Internationalization functions): Add it.
49554
49555 2006-08-18  Bruno Haible  <bruno@clisp.org>
49556
49557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49558         sys/statvfs.h. When getmntinfo was found, check its declaration and
49559         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49560
49561 2006-08-18  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/bison-i18n.m4: New file, from bison.
49564
49565 2006-08-18  Bruno Haible  <bruno@clisp.org>
49566
49567         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49568         (ME_DUMMY): Treat "kernfs" as a dummy.
49569         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49570
49571 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49572
49573         Update from coreutils.
49574
49575         2006-08-15  Jim Meyering  <jim@meyering.net>
49576
49577         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49578
49579         2006-01-17  Jim Meyering  <jim@meyering.net>
49580
49581         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49582
49583         2006-01-11  Jim Meyering  <jim@meyering.net>
49584
49585         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49586         Check for the lchmod function.
49587
49588 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49589
49590         Update from coreutils.
49591
49592         * lib/__fpending.h: Add copyright notice.
49593         * lib/fprintftime.h: Likewise.
49594         * lib/savedir.c: Use (C) in copyright notice.
49595         * lib/savedir.h: Likewise.
49596
49597         2006-08-15  Jim Meyering  <jim@meyering.net>
49598
49599         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49600         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49601         in support of the EXPECTED_ERRNO macro.
49602         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49603         definitions.  Instead, define the appropriate symbols and include
49604         "at-func.c".
49605         * lib/mkdirat.c (mkdirat): Likewise.
49606         * lib/fchmodat.c (fchmodat): Likewise.
49607         (ENOSYS): Remove definition.
49608         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49609         it.  Don't include "unistd--.h" -- it wasn't ever used.
49610
49611         2006-01-17  Jim Meyering  <jim@meyering.net>
49612
49613         Rewrite fts.c not to change the current working directory,
49614         by using openat, fstatat, fdopendir, etc..
49615
49616         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49617         (HAVE_OPENAT_SUPPORT): Define.
49618         [_LIBC] (fchdir): Don't undef or define; no longer used.
49619         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49620         Now, this `function' always succeeds, and consumes its file descriptor
49621         parameter -- so callers must not close such FDs.  Update callers.
49622         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49623         (diropen): Add parameter, SP.  Adjust all callers.
49624         Implement using diropen_fd, rather than open.
49625         (fts_open): Initialize new member, fts_cwd_fd.
49626         Remove fts_rft-setting code.
49627         (fts_close): Close fts_cwd_fd, if necessary.
49628         (__opendir2): Define in terms of opendir or opendirat,
49629         depending on whether the FST_NOCHDIR flag is set.
49630         (fts_build): Since fts_safe_changedir consumes its FD, and since
49631         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49632         and close the dup'd file descriptor upon failure.
49633         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49634         (fts_safe_changedir): Tweak semantics to reflect that this function
49635         now calls cwd_advance_fd and hence consumes its FD argument.
49636         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49637         [struct FTS] (fts_rft): Remove now-unused member.
49638         [struct FTS] (fts_cycle.state): Improve comment.
49639
49640         * lib/openat.c (openat_needs_fchdir): New function.
49641         * lib/openat.h (openat_needs_fchdir): Declare it.
49642
49643 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49644
49645         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49646         Problem and fix reported by Pádraig Brady in
49647         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49648
49649 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49650
49651         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49652
49653 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49654
49655         * lib/memcoll.c (memcoll): Optimize for the common case where the
49656         arguments are bytewise equal.
49657
49658 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         * doc/regexprops-generic.texi: Add a copyright notice.
49661
49662 2006-08-15  Bruno Haible  <bruno@clisp.org>
49663
49664         * modules/tmpdir (License): Change to LGPL.
49665
49666 2006-08-15  Bruno Haible  <bruno@clisp.org>
49667
49668         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49669         module.
49670
49671 2006-08-14  Simon Josefsson  <jas@extundo.com>
49672
49673         * config/srclist.txt: Add gnupload.
49674
49675 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49676
49677         Change copyright notice from LGPL 2 to GPL 2, since that's the
49678         standard form used in the gnulib repository.
49679         * tests/test-lock.c: Likewise.
49680         * tests/test-stdint.c: Likewise.
49681         * tests/test-tls.c: Likewise.
49682
49683         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49684         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49685         Add copyright notice.
49686
49687         * check-module: Add copyright notice.  Output a copyright
49688         notice if "--version" is specified.
49689         * modules/COPYING: New file.
49690         * tests/test-getaddrinfo.c: Add copyright notice.
49691         * tests/test-verify.c: Likewise.
49692
49693 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49694
49695         Change copyright notice from LGPL 2 to GPL 2, since that's the
49696         standard form used in the gnulib repository.
49697         * lib/lock.c: LGPL -> GPL.
49698         * lib/lock.h: Likewise.
49699         * lib/strnlen1.c: Likewise.
49700         * lib/strnlen1.h: Likewise.
49701         * lib/tls.c: Likewise.
49702         * lib/tls.h: Likewise.
49703         * lib/tmpdir.c: Likewise.
49704
49705         * lib/TODO: Remove; this belongs only in coreutils.
49706
49707 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49708
49709         Add copyright notices to long-enough files that lack them, since
49710         otherwise the files aren't clearly free.  Use the same notice that
49711         getdate.texi already uses.
49712         * doc/alloca-opt.texi: Add copyright notice.
49713         * doc/alloca.texi: Likewise.
49714         * doc/ctime.texi: Likewise.
49715         * doc/functions.texi: Likewise.
49716         * doc/gcd.texi: Likewise.
49717         * doc/gnulib-tool.texi: Likewise.
49718         * doc/inet_ntoa.texi: Likewise.
49719         * doc/visibility.texi: Likewise.
49720
49721         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49722         * doc/quote.texi: Add copyright notice.
49723
49724         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49725         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49726         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49727         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49728         is now obsolete, and give a pointer to the Sun list.
49729         Add copyright notice.
49730
49731 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * config/srclistvars.sh: Add copyright notice.
49734
49735 2006-08-14  Eric Blake  <ebb9@byu.net>
49736
49737         Import the following change from libc:
49738
49739         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49740
49741         Upstream bug 2997.
49742         * lib/misc/error.c: Add space between program name and message if file
49743         name is missing.
49744
49745 2006-08-12  Karl Berry  <karl@gnu.org>
49746
49747         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49748         remove, these originate in gnulib now.
49749
49750 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49751
49752         * doc/Makefile (standards.info standards.html standards.dvi):
49753         Also depend on make-stds.texi.
49754
49755 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49758         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49759
49760         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49761         in wchar_t.  Problem reported by Eric Blake.
49762
49763         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49764         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49765         Also, help the compiler to keep LEN in a register.
49766
49767 2006-08-11  Eric Blake  <ebb9@byu.net>
49768
49769         * users.txt: Sort.  Add tar.
49770
49771 2006-08-11  Bruno Haible  <bruno@clisp.org>
49772
49773         * users.txt: New file.
49774
49775 2006-08-11  Bruno Haible  <bruno@clisp.org>
49776
49777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49778         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49779
49780 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49781
49782         * modules/snprintf (Depends-on): Remove minmax.
49783         (Maintainer): Add self and Bruno.
49784
49785 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49786
49787         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49788         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49789         (EOVERFLOW): Define if the system does not.
49790         Do not include "minmax.h"; it wasn't used.
49791         (snprintf): Don't assume size_t promotes to an unsigned type.
49792         Fix bug when generated string was too long for the buffer: the
49793         buffer's contents are supposed to be the initial prefix of the
49794         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49795         exceeds INT_MAX; do the check ourselves.
49796
49797         Import the following changes from libc:
49798
49799         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49800
49801         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49802         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49803         set wc to the byte which couldn't be converted.
49804         (re_string_reconstruct): Don't clear valid_raw_len before calling
49805         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49806         tip_context using re_string_context_at.
49807
49808         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49809
49810         * lib/posix/regex.h: g++ still cannot handled [restrict].
49811
49812         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49813
49814         * lib/posix/regex.h: Remove special handling for VMS.
49815
49816 2006-08-10  Jim Meyering  <jim@meyering.net>
49817
49818         * modules/same-inode: New module.
49819         * modules/dev-ino: New module.
49820         * modules/cycle-check: Depend on these modules, rather than simply
49821         including their .h files.
49822         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49823         required via m4/cycle-check.m4.
49824         * modules/same: Depend on new same-inode module, rather than
49825         including same-inode.h.
49826         * modules/chdir-safer: New file.
49827
49828         * modules/chown (Depends-on): Add stat-macros.
49829
49830 2006-08-10  Jim Meyering  <jim@meyering.net>
49831
49832         * m4/cycle-check.m4: New file.
49833         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49834         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49835
49836 2006-08-10  Eric Blake  <ebb9@byu.net>
49837
49838         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49839         in from original proposal.
49840
49841 2006-08-10  Eric Blake  <ebb9@byu.net>
49842         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49843
49844         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49845         namespace.
49846
49847 2006-08-10  Bruno Haible  <bruno@clisp.org>
49848
49849         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49850         as well.
49851
49852 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49853
49854         Sync from coreutils.
49855
49856         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49857
49858         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49859         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49860
49861 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49862
49863         * modules/restrict: Remove; no longer needed now that we assume
49864         Autoconf 2.59 or later.
49865         * MODULES.html.sh: Remove 'restrict'.
49866         * modules/argp (Depends-on): Remove 'restrict'.
49867         * modules/base64 (Depends-on): Likewise.
49868         * modules/gc (Depends-on): Likewise.
49869         * modules/getaddrinfo (Depends-on): Likewise.
49870         * modules/glob (Depends-on): Likewise.
49871         * modules/inet_ntop (Depends-on): Likewise.
49872         * modules/inet_pton (Depends-on): Likewise.
49873         * modules/memxor (Depends-on): Likewise.
49874         * modules/regex (Depends-on): Likewise.
49875         * modules/strtok_r (Depends-on): Likewise.
49876         * modules/time_r (Depends-on): Likewise.
49877
49878 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49879
49880         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49881         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49882         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49883         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49884         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49885         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49886         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49887         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49888
49889         Merge from coreutils.
49890         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49891         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49892         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49893         * m4/time_r.m4 (gl_TIME_R): Likewise.
49894
49895 2006-08-09  Karl Berry  <karl@gnu.org>
49896
49897         * config/srclist.txt: no more gettext-tools, per Bruno.
49898
49899 2006-08-08  Eric Blake  <ebb9@byu.net>
49900
49901         * modules/verror: New module.
49902         * MODULES.html.sh: Document it.
49903
49904 2006-08-08  Eric Blake  <ebb9@byu.net>
49905
49906         * lib/verror.h, lib/verror.c: New files.
49907
49908 2006-08-08  Eric Blake  <ebb9@byu.net>
49909
49910         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49911         verror_at_line output complies with GNU Coding Standards even when
49912         file is NULL.
49913
49914 2006-08-07  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49917         versions of AIX.
49918         Reported by Ralf Wildenhues.
49919
49920 2006-08-07  Bruno Haible  <bruno@clisp.org>
49921
49922         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
49923         in an AC_DEFUN. Needed so that the autoconf snippets can use
49924         AC_REQUIRE.
49925
49926 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49927
49928         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49929         Initialize pkgdata_DATA.
49930         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
49931         overriding it.
49932
49933 2006-08-06  Eric Blake  <ebb9@byu.net>
49934
49935         * lib/error.h: Fold in some upstream changes from glibc.
49936         * lib/error.c: Likewise.
49937
49938 2006-08-04  Bruno Haible  <bruno@clisp.org>
49939
49940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49941         Make the mostlyclean-local rule depend on mostlyclean-generic.
49942         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
49943
49944 2006-07-31  Bruno Haible  <bruno@clisp.org>
49945
49946         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
49947         <stdlib.h>, <string.h>.
49948
49949 2006-07-30  Bruno Haible  <bruno@clisp.org>
49950
49951         * modules/readlink (License): Change to LGPL.
49952
49953 2006-07-30  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/javaversion (Makefile.am): Distribute javaversion.java and
49956         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
49957         set PKGDATADIR to point to it.
49958
49959 2006-07-30  Bruno Haible  <bruno@clisp.org>
49960
49961         * modules/csharpexec (configure.ac): Comment out macro invocation.
49962         * modules/javaexec (configure.ac): Likewise.
49963         * modules/javacomp-script (configure.ac): Likewise.
49964
49965         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
49966
49967 2006-07-30  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
49970         linked-list.
49971
49972 2006-07-30  Bruno Haible  <bruno@clisp.org>
49973
49974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
49975
49976 2006-07-30  Bruno Haible  <bruno@clisp.org>
49977
49978         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49979         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
49980         get removed.
49981
49982 2006-07-29  Bruno Haible  <bruno@clisp.org>
49983
49984         Make it possible for gnulib-tool to work with locally modified or
49985         augmented gnulib repositories.
49986         * gnulib-tool (func_usage): Document --local-dir option.
49987         (local_gnulib_dir): New variable.
49988         Handle --local-dir option.
49989         (func_lookup_file): New function.
49990         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
49991         (func_get_description, func_get_filelist, func_get_description,
49992         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
49993         func_get_automake_snippet, func_get_include_directive,
49994         func_get_license, func_get_maintainer): Use func_lookup_file.
49995         (func_import, func_create_testdir): Use func_lookup_file.
49996
49997 2006-07-29  Bruno Haible  <bruno@clisp.org>
49998
49999         * modules/setenv (Depends-on): Add unistd.
50000
50001 2006-07-29  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50004
50005 2006-07-29  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50008
50009 2006-07-29  Bruno Haible  <bruno@clisp.org>
50010
50011         * gnulib-tool (import, update): If there is no Makefile.am, look at
50012         aclocal.m4, instead of bailing out.
50013
50014 2006-07-29  Bruno Haible  <bruno@clisp.org>
50015
50016         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50017         Categorize the options by when they are useful.
50018
50019 2006-07-29  Bruno Haible  <bruno@clisp.org>
50020
50021         * gnulib-tool (func_usage): Document option --no-libtool.
50022         Handle option --no-libtool.
50023         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50024         for changed semantics of $libtool variable.
50025         (func_import): Likewise. If libtool is not used, show this through
50026         an option --no-libtool.
50027         (func_create_testdir): Update.
50028
50029 2006-07-29  Bruno Haible  <bruno@clisp.org>
50030
50031         * gnulib-tool (func_import): Extend error message about missing
50032         --doc-base.
50033
50034 2006-07-29  Bruno Haible  <bruno@clisp.org>
50035
50036         * gnulib-tool (func_import): Don't create the $docbase directory if
50037         there is no file to store there.
50038
50039 2006-07-29  Bruno Haible  <bruno@clisp.org>
50040
50041         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50042         relevant, look for configure.ac there, not in the current directory.
50043         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50044
50045 2006-07-29  Bruno Haible  <bruno@clisp.org>
50046
50047         * gnulib-tool (SORT): New variable.
50048         (func_usage): Undocument --assume-autoconf option.
50049         Remove --assume-autoconf option handling.
50050         (autoconf_minversion): Determine from the contents of configure.ac.
50051         (func_import): Remove autoconf_minversion handling.
50052         Suggested by Eric Blake.
50053
50054 2006-07-29  Bruno Haible  <bruno@clisp.org>
50055
50056         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50057
50058 2006-07-29  Bruno Haible  <bruno@clisp.org>
50059
50060         * config/srclist.txt (*setenv.[ch]): Remove rules.
50061
50062 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50063
50064         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50065
50066 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50067
50068         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50069         arpa/inet.h.
50070
50071 2006-07-28  Simon Josefsson  <jas@extundo.com>
50072
50073         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50074         * modules/inet_pton (Depends-on): Likewise.
50075
50076 2006-07-28  Simon Josefsson  <jas@extundo.com>
50077
50078         * m4/netinet_in_h.m4: New file.
50079
50080 2006-07-28  Simon Josefsson  <jas@extundo.com>
50081
50082         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50083         #include's.
50084
50085 2006-07-28  Simon Josefsson  <jas@extundo.com>
50086
50087         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50088         #include's.
50089
50090 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50091
50092         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50093         setgid on directories only if they set these bits.
50094         * lib/modechange.h: Remove obsolete comment about masks.
50095
50096 2006-07-28  Eric Blake  <ebb9@byu.net>
50097
50098         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50099         macro expansion.
50100
50101 2006-07-28  Bruno Haible  <bruno@clisp.org>
50102
50103         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50104
50105 2006-07-28  Bruno Haible  <bruno@clisp.org>
50106
50107         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50108
50109 2006-07-28  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50112         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50113         Define fallbacks.
50114         Avoids link error on FreeBSD 4.x.
50115         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50116
50117         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50118         encoding.
50119         * lib/mbswidth.c (iswcntrl): Likewise.
50120
50121 2006-07-27  Bruno Haible  <bruno@clisp.org>
50122
50123         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50124         test.
50125
50126 2006-07-27  Bruno Haible  <bruno@clisp.org>
50127
50128         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50129         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50130         defined.
50131
50132 2006-07-26  Eric Blake  <ebb9@byu.net>
50133
50134         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50135
50136 2006-07-26  Eric Blake  <ebb9@byu.net>
50137
50138         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50139         like mingw that lack mkstemp.
50140         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50141         avoid compilation warning on mingw.
50142
50143 2006-07-26  Bruno Haible  <bruno@clisp.org>
50144
50145         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50146         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50147         INT_FAST*_MIN, INTPTR_MIN.
50148
50149 2006-07-25  Bruno Haible  <bruno@clisp.org>
50150
50151         * modules/version-etc (Depends-on): Add stdarg.
50152
50153 2006-07-25  Bruno Haible  <bruno@clisp.org>
50154
50155         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50156         complex commands.
50157
50158 2006-07-25  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50161         defined in <stdarg.h> or config.h.
50162
50163 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50164
50165         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50166         (gl_STDIO_SAFER): Remove.
50167
50168 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50169
50170         * MODULES.html.sh (File stream based Input/Output):
50171         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50172         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50173         * modules/fopen-safer, modules/tmpfile-safer: New files.
50174         * modules/stdio-safer: Remove.
50175
50176 2006-07-24  Bruno Haible  <bruno@clisp.org>
50177
50178         * modules/tmpdir: New file.
50179         * MODULES.html.sh (File system functions): Add it.
50180
50181 2006-07-24  Bruno Haible  <bruno@clisp.org>
50182
50183         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50184         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50185
50186 2006-07-24  Bruno Haible  <bruno@clisp.org>
50187
50188         * modules/clean-temp: New file.
50189
50190 2006-07-24  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/tmpdir.m4: New file, from GNU gettext.
50193
50194 2006-07-24  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/tmpdir.h: New file, from GNU gettext.
50197         * lib/tmpdir.c: New file, from GNU gettext.
50198
50199 2006-07-24  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/clean-temp.h: New file, from GNU gettext.
50202         * lib/clean-temp.c: New file, from GNU gettext.
50203
50204 2006-07-23  Eric Blake  <ebb9@byu.net>
50205
50206         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50207         (Depends-on): Add binary-io.
50208
50209 2006-07-23  Eric Blake  <ebb9@byu.net>
50210
50211         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50212
50213 2006-07-23  Eric Blake  <ebb9@byu.net>
50214
50215         * lib/tmpfile-safer.c: New file.
50216         * lib/stdio-safer.h (fopen_safer): Add prototype.
50217         * lib/stdio--.h (tmpfile): Make safer.
50218
50219 2006-07-23  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50222         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50223         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50224         gl_linked_remove_at): Use it.
50225
50226 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50227         and Simon Josefsson <jas@extundo.com>
50228
50229         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50230
50231         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50232
50233 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         * modules/close-stream: New file.
50236         * modules/closeout (Description): Make it clear that it exits
50237         with a diagnostic on error.
50238         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50239         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50240
50241 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50242
50243         * m4/close-stream.m4: New file.
50244
50245 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         * lib/close-stream.c, lib/close-stream.h: New files.
50248
50249 2006-07-22  Bruno Haible  <bruno@clisp.org>
50250
50251         Merge from GNU gettext 0.15.
50252
50253         2006-05-01  Bruno Haible  <bruno@clisp.org>
50254
50255                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50256
50257         2006-07-22  Bruno Haible  <bruno@clisp.org>
50258
50259                 * modules/javaversion: New file.
50260                 * MODULES.html.sh (Java): Add javaversion.
50261
50262         2006-03-12  Bruno Haible  <bruno@clisp.org>
50263
50264                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50265
50266         2005-12-04  Bruno Haible  <bruno@clisp.org>
50267
50268                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50269                 (untested).
50270
50271         2006-06-21  Bruno Haible  <bruno@clisp.org>
50272
50273                 Avoid warnings from recent versions of mcs.
50274                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50275                 -o, -L, -r any more. Use options documented since mcs-1.0
50276                 instead. Similarly for -g.
50277
50278         2005-12-04  Bruno Haible  <bruno@clisp.org>
50279
50280                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50281                 .resources, not .resource.
50282
50283         2005-07-09  Bruno Haible  <bruno@clisp.org>
50284
50285                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50286                 add a .dll suffix.
50287                 Reported by Mark Junker <mjscod@gmx.de>.
50288
50289         2006-07-22  Bruno Haible  <bruno@clisp.org>
50290
50291                 * modules/gettext: Upgrade to gettext-0.15.
50292                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50293                 m4/visibility.m4.
50294                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50295
50296 2006-07-22  Bruno Haible  <bruno@clisp.org>
50297
50298         Merge from GNU gettext 0.15.
50299
50300         2006-03-25  Bruno Haible  <bruno@clisp.org>
50301
50302                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50303
50304         2006-07-21  Bruno Haible  <bruno@clisp.org>
50305
50306                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50307                 "1.1".
50308
50309         2006-05-09  Bruno Haible  <bruno@clisp.org>
50310
50311                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50312                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50313                 for the conftestver execution.
50314
50315         2006-05-01  Bruno Haible  <bruno@clisp.org>
50316
50317                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50318                 optional target-version argument. Verify that the compiler
50319                 groks source of the specified source-version, or add -source
50320                 option as necessary. Verify that the compiler produces
50321                 bytecode in the specified target-version, or add -target and
50322                 -source options as necessary. Make the result of the test
50323                 available as variable CONF_JAVAC. Also log error output in
50324                 config.log.
50325
50326         2006-03-11  Bruno Haible  <bruno@clisp.org>
50327
50328                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50329
50330         2006-05-09  Bruno Haible  <bruno@clisp.org>
50331
50332                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50333                 CLASSPATH_SEPARATOR to a semicolon.
50334
50335         2006-03-12  Bruno Haible  <bruno@clisp.org>
50336
50337                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50338                 available as variable CONF_JAVA, for subsequent autoconf
50339                 tests. Also log error output in config.log.
50340
50341         2006-07-19  Bruno Haible  <bruno@clisp.org>
50342
50343                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50344                 that getline works on glibc2 systems. Needed to avoid trouble
50345                 in relocatable.c.
50346                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50347
50348         2005-12-04  Bruno Haible  <bruno@clisp.org>
50349
50350                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50351                 launcher (untested).
50352
50353         2005-12-04  Bruno Haible  <bruno@clisp.org>
50354
50355                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50356
50357         2006-07-22  Bruno Haible  <bruno@clisp.org>
50358
50359                 * gettext.m4: Update from GNU gettext-0.15.
50360                 * nls.m4: Likewise.
50361                 * po.m4: Likewise.
50362                 * inttypes-pri.m4: Likewise.
50363                 * inttypes-h.m4: Renamed from inttypes.m4.
50364                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50365
50366 2006-07-22  Bruno Haible  <bruno@clisp.org>
50367
50368         Merge from GNU gettext 0.15.
50369
50370         2005-07-05  Bruno Haible  <bruno@clisp.org>
50371
50372                 * printf-args.c (printf_fetchargs): Work around broken
50373                 definition of wint_t on mingw.
50374
50375         2005-02-12  Bruno Haible  <bruno@clisp.org>
50376
50377                 * xallocsa.h: Add extern "C" for C++.
50378
50379         2006-05-17  Bruno Haible  <bruno@clisp.org>
50380
50381                 Cygwin portability.
50382                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50383
50384         2006-04-30  Bruno Haible  <bruno@clisp.org>
50385
50386                 * progreloc.c: Include <mach-o/dyld.h> if available.
50387                 (find_executable): Use _NSGetExecutablePath when possible.
50388
50389         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50390
50391                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50392                 function.
50393
50394         2005-12-29  Bruno Haible  <bruno@clisp.org>
50395
50396                 * progreloc.c (set_program_name_and_installdir): Fix
50397                 compilation error.
50398
50399         2005-12-04  Bruno Haible  <bruno@clisp.org>
50400
50401                 Cygwin portability.
50402                 * progreloc.c: Include <windows.h> also on Cygwin.
50403                 (find_executable): Add support for Cygwin.
50404                 (set_program_name_and_installdir): Handle also platforms with
50405                 nonempty EXEEXT.
50406
50407         2006-07-11  Bruno Haible  <bruno@clisp.org>
50408
50409                 * javacomp.c: Fix a comment.
50410                 Reported by Jim Meyering.
50411
50412         2006-04-30  Bruno Haible  <bruno@clisp.org>
50413
50414                 * javacomp.h (compile_java_class): Add source_version,
50415                 target_version arguments.
50416                 * javacomp.c: Rewritten to choose only a compiler that
50417                 respects the specified source_version and target_version.
50418
50419         2006-06-27  Bruno Haible  <bruno@clisp.org>
50420
50421                 Assume correct S_ISDIR macro.
50422                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50423
50424         2006-07-22  Bruno Haible  <bruno@clisp.org>
50425
50426                 * javaversion.h: New file, from GNU gettext.
50427                 * javaversion.c: New file, from GNU gettext.
50428                 * javaversion.java: New file, from GNU gettext.
50429                 * javaversion.class: New file, from GNU gettext.
50430
50431         2006-05-17  Bruno Haible  <bruno@clisp.org>
50432
50433                 Cygwin portability.
50434                 * javaexec.c (execute_java_class): Test for jview program
50435                 also on Cygwin.
50436
50437         2006-04-09  Bruno Haible  <bruno@clisp.org>
50438
50439                 * fatal-signal.c: Don't include string.h.
50440                 (at_fatal_signal): Use a copying loop instead of memcpy.
50441
50442         2005-12-04  Bruno Haible  <bruno@clisp.org>
50443
50444                 * csharpexec.c: Add support for 'clix' launcher (untested).
50445                 (execute_csharp_using_sscli): New function.
50446                 (execute_csharp_program): Call it.
50447
50448         2006-06-21  Bruno Haible  <bruno@clisp.org>
50449
50450                 Avoid warnings from recent versions of mcs.
50451                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50452                 -o, -L, -r any more. Use options documented since mcs-1.0
50453                 instead. Similarly for -g.
50454
50455         2005-07-09  Bruno Haible  <bruno@clisp.org>
50456
50457                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50458                 add a .dll suffix.
50459                 Reported by Mark Junker <mjscod@gmx.de>.
50460
50461         2006-06-17  Bruno Haible  <bruno@clisp.org>
50462
50463                 * config.charset: Update for NetBSD 3.0.
50464
50465         2006-05-17  Bruno Haible  <bruno@clisp.org>
50466
50467                 Cygwin portability.
50468                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50469
50470         2006-05-16  Bruno Haible  <bruno@clisp.org>
50471
50472                 * localcharset.c [CYGWIN]: Include <windows.h>.
50473                 (get_charset_aliases): For Cygwin, return the same CPxxx
50474                 aliases list as under WIN32.
50475                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50476                 the environment variables. Fall back to GetACP().
50477
50478         2006-04-05  Bruno Haible  <bruno@clisp.org>
50479
50480                 * config.charset: Update Juan Manuel Guerrero's address.
50481
50482         2005-02-12  Bruno Haible  <bruno@clisp.org>
50483
50484                 * allocsa.h: Add extern "C" for C++.
50485
50486         2005-02-10  Bruno Haible  <bruno@clisp.org>
50487
50488                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50489                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50490
50491         2006-07-22  Bruno Haible  <bruno@clisp.org>
50492
50493                 * gettext.h: Update to GNU gettext-0.15.
50494
50495 2006-07-22  Bruno Haible  <bruno@clisp.org>
50496
50497         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50498         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50499         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50500
50501 2006-07-21  Eric Blake  <ebb9@byu.net>
50502
50503         * modules/stdlib-safer: New file.
50504         * MODULES.html.sh (File stream based Input/Output): Add
50505         stdlib-safer.
50506
50507 2006-07-21  Eric Blake  <ebb9@byu.net>
50508
50509         * lib/stdlib-safer.h: New file from coreutils, required by
50510         stdlib--.h.
50511
50512 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50515
50516 2006-07-20  Bruno Haible  <bruno@clisp.org>
50517
50518         * gnulib-tool: Recognize new option --assume-autoconf.
50519         (autoconf_minversion): New variable.
50520         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50521
50522 2006-07-20  Bruno Haible  <bruno@clisp.org>
50523
50524         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50525
50526 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50527
50528         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50529         Reindent and repaginate.
50530
50531 2006-07-19  Derek Price  <derek@ximbiot.com>
50532
50533         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50534         Correct grammar.
50535
50536 2006-07-17  Bruno Haible  <bruno@clisp.org>
50537
50538         * modules/list: New file.
50539         * modules/array-list: New file.
50540         * modules/carray-list, modules/carray-list-tests: New files.
50541         * modules/linked-list, modules/linked-list-tests: New files.
50542         * modules/avltree-list, modules/avltree-list-tests: New files.
50543         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50544         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50545         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50546         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50547         * modules/oset: New file.
50548         * modules/array-oset: New file.
50549         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50550         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50551         * tests/test-carray_list.c: New file.
50552         * tests/test-linked_list.c: New file.
50553         * tests/test-avltree_list.c: New file.
50554         * tests/test-rbtree_list.c: New file.
50555         * tests/test-linkedhash_list.c: New file.
50556         * tests/test-avltreehash_list.c: New file.
50557         * tests/test-rbtreehash_list.c: New file.
50558         * tests/test-avltree_oset.c: New file.
50559         * tests/test-rbtree_oset.c: New file.
50560         * MODULES.html.sh (Container data structures): New section.
50561
50562 2006-07-17  Bruno Haible  <bruno@clisp.org>
50563
50564         * m4/gl_list.m4: New file.
50565
50566 2006-07-17  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/gl_list.h: New file.
50569         * lib/gl_list.c: New file.
50570         * lib/gl_array_list.h: New file.
50571         * lib/gl_array_list.c: New file.
50572         * lib/gl_carray_list.h: New file.
50573         * lib/gl_carray_list.c: New file.
50574         * lib/gl_linked_list.h: New file.
50575         * lib/gl_linked_list.c: New file.
50576         * lib/gl_anylinked_list1.h: New file.
50577         * lib/gl_anylinked_list2.h: New file.
50578         * lib/gl_avltree_list.h: New file.
50579         * lib/gl_avltree_list.c: New file.
50580         * lib/gl_anyavltree_list1.h: New file.
50581         * lib/gl_anyavltree_list2.h: New file.
50582         * lib/gl_rbtree_list.h: New file.
50583         * lib/gl_rbtree_list.c: New file.
50584         * lib/gl_anyrbtree_list1.h: New file.
50585         * lib/gl_anyrbtree_list2.h: New file.
50586         * lib/gl_anytree_list1.h: New file.
50587         * lib/gl_anytree_list2.h: New file.
50588         * lib/gl_linkedhash_list.h: New file.
50589         * lib/gl_linkedhash_list.c: New file.
50590         * lib/gl_anyhash_list1.h: New file.
50591         * lib/gl_anyhash_list2.h: New file.
50592         * lib/gl_avltreehash_list.h: New file.
50593         * lib/gl_avltreehash_list.c: New file.
50594         * lib/gl_rbtreehash_list.h: New file.
50595         * lib/gl_rbtreehash_list.c: New file.
50596         * lib/gl_anytreehash_list1.h: New file.
50597         * lib/gl_anytreehash_list2.h: New file.
50598
50599         * lib/gl_oset.h: New file.
50600         * lib/gl_oset.c: New file.
50601         * lib/gl_array_oset.h: New file.
50602         * lib/gl_array_oset.c: New file.
50603         * lib/gl_avltree_oset.h: New file.
50604         * lib/gl_avltree_oset.c: New file.
50605         * lib/gl_rbtree_oset.h: New file.
50606         * lib/gl_rbtree_oset.c: New file.
50607         * lib/gl_anytree_oset.h: New file.
50608
50609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         * m4/mkancesdirs.m4: New file.
50612         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50613         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50614         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50615         it.
50616
50617 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50618
50619         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50620         * lib/mkancesdirs.h: New files.
50621         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50622         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50623         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50624         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50625         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50626         callers changed.  Revamp internals significantly, by not
50627         attempting to create directories that are temporarily more
50628         permissive than the final results.  Do not attempt to use
50629         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50630         This removes some race conditions, fixes some bugs, and simplifies
50631         things.  Use new dirchownmod function to do owner and mode changes.
50632         * lib/mkdir-p.h: Likewise.
50633         * lib/modechange.c (octal_to_mode): New function.
50634         (struct mode_change): New member mentioned.
50635         (make_node_op_equals): New arg mentioned.  All callers changed.
50636         (mode_compile): Keep track of which mode bits the user has explicitly
50637         mentioned.
50638         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50639         New arg PMODE_BITS, to keep track of which mode bits the user
50640         mentioned; it treats S_ISUID and S_ISGID speciall.
50641         All callers changed.
50642         * lib/modechange.h: Likewise.
50643
50644 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         * MODULES.html.sh: Add mkancestors.
50647         * modules/mkancesdirs: New module.
50648         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50649         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50650         The chdir-safer and afs files are now orphans; I'll remove them
50651         unless someone speaks up.
50652         Add lib/dirchownmod.c, lib/dirchownmod.h.
50653         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50654         Add lchown, mkancesdirs.
50655         (Maintainer): Add self.
50656
50657 2006-07-15  Karl Berry  <karl@gnu.org>
50658
50659         * gnulib-tool: help message wording/arrangement.
50660
50661 2006-07-14  Simon Josefsson  <jas@extundo.com>
50662
50663         * doc/gnulib.texi (Libtool and Windows): New section.
50664
50665 2006-07-12  Simon Josefsson  <jas@extundo.com>
50666
50667         * modules/gendocs (License): Fix license, approved by Karl.
50668
50669 2006-07-12  Eric Blake  <ebb9@byu.net>
50670
50671         * MODULES.html.sh: Add gendocs.
50672
50673 2006-07-11  Eric Blake  <ebb9@byu.net>
50674
50675         * modules/fdl: New module, to install doc/fdl.texi.
50676         * MODULES.html.sh: Add new section for documentation modules.
50677         * gnulib-tool: Avoid space-tab.
50678         (--doc-base): New option, to manage files from doc.
50679
50680 2006-07-11  Eric Blake  <ebb9@byu.net>
50681
50682         * m4/absolute-header.m4: Fix comments to match recent change.
50683
50684 2006-07-11  Eric Blake  <ebb9@byu.net>
50685
50686         * gnulib-tool: List --doc-base before --tests-base.
50687
50688 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50689
50690         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50691
50692 2006-07-11  Bruno Haible  <bruno@clisp.org>
50693
50694         * README: Mention where to put documentation.
50695
50696 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50697
50698         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50699
50700 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50701
50702         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50703         to stdint.m4.
50704
50705 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50708         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50709         "no/such/file/stdint.h" when there is no such file, so that
50710         the resulting C code can be parsed by dodgy compilers.
50711         Problems reported by Bob Proulx.
50712
50713 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50714
50715         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50716         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50717         macros into the GNU _D_EXACT_NAMLEN.
50718         * lib/savedir.c:  Likewise.
50719         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50720
50721 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50722         and Paul Eggert  <eggert@cs.ucla.edu>
50723
50724         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50725         * m4/savedir.m4:
50726         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50727         macros into the GNU _D_EXACT_NAMLEN.
50728
50729 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50732         around the absolute name, to work around a problem with the HP-UX
50733         11.23 native C compiler, reported by Bob Proulx.
50734
50735 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50736
50737         * doc/maintain.texi, make-stds.texi: Sync from
50738         <http://savannah.gnu.org/projects/gnustandards>.
50739
50740 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50743
50744 2006-07-09  Jim Meyering  <jim@meyering.net>
50745
50746         * m4/glob.m4: Remove a doubled word in a comment.
50747
50748 2006-07-09  Jim Meyering  <jim@meyering.net>
50749
50750         * lib/argp-pv.c: Remove a doubled word in a comment.
50751         * lib/check-version.c (check_version): Likewise.
50752         * lib/javacomp.c (compile_java_class): Likewise.
50753
50754 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50755
50756         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50757         for the benefit of people using Autoconf 2.60.  If you want to
50758         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50759         (or m4/onceonly.m4, if pre-2.57) manually.
50760
50761 2006-07-08  Jim Meyering  <jim@meyering.net>
50762
50763         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50764         comment.
50765         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50766         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50767         comment.
50768
50769 2006-07-08  Jim Meyering  <jim@meyering.net>
50770
50771         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50772
50773 2006-07-07  Simon Josefsson  <jas@extundo.com>
50774
50775         * tests/test-crc.c: Change expected crc value, the test vector
50776         were probably computed using the old broken crc.c?
50777
50778 2006-07-06  Simon Josefsson  <jas@extundo.com>
50779
50780         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50781         now the canonical place for the M4 file).
50782
50783         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50784         from the sys_socket dependency now.
50785
50786         * modules/inet_pton (Files): Ditto.
50787
50788         * modules/inet_ntop (Files): Ditto.
50789
50790 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50791
50792         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50793         not gl_PREREQ_GETUSERSHELL.
50794
50795 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50796
50797         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50798         with only one argument, for Autoconf 2.60.
50799         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50800         expand to nothing, so add a shell command to avoid syntax error.
50801         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50802
50803 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50804
50805         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50806
50807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50810         no longer needed.  Check for isblank decl.
50811         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50812         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50813         of existence.
50814
50815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50816
50817         * lib/getloadavg.c: Use __VMS, not VMS.
50818         * lib/getopt.c: Likewise.
50819         * lib/getpagesize.h: Likewise.
50820         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50821         and probably does not work.
50822
50823 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50824
50825         * lib/.cppi-disable: Add wcwidth.
50826         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50827         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50828         (ISGRAPH): Remove.  All uses changed to isgraph.
50829         (FOLD) [!defined _LIBC]: Remove special case.
50830         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50831         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50832         HAVE_ISBLANK.
50833         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50834         case.
50835
50836 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50837
50838         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50839         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50840         brackets.  Other minor changes to suppress some compiler
50841         warnings.
50842
50843 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50844         and Paul Eggert  <eggert@cs.ucla.edu>
50845
50846         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50847         of invoking obsolescent AC_HEADER_DIRENT macro.
50848         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50849         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50852         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50853         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50854         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50855         * m4/readdir.m4: Remove; no longer needed.
50856
50857 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50858         and Paul Eggert  <eggert@cs.ucla.edu>
50859
50860         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50861         Don't worry about this obsolete case any more.
50862         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50863         directories.
50864         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50865         worry about this obsolete case any more.
50866         * lib/fts.c: Likewise.
50867         * lib/getcwd.c: Likewise.
50868         * lib/glob.h: Likewise.
50869         * lib/savedir.c: Likewise.
50870
50871 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50872
50873         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50874         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50876         needed.
50877         All uses removed.
50878         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50879         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50880         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50881         needed.
50882         * m4/getdate.m4 (gl_GETDATE): Likewise.
50883         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50884         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50885         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50886         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50887         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50888         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50889         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50890         needed.
50891
50892 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50893
50894         * lib/memcasecmp.c: Include <limits.h>.
50895         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50896         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50897         Don't assume isdigit succeeds only on '0' through '9'.
50898
50899 2006-07-05  Eric Blake  <ebb9@byu.net>
50900
50901         * modules/getaddrinfo (Depends-on): Add snprintf.
50902
50903 2006-07-05  Eric Blake  <ebb9@byu.net>
50904
50905         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50906         to avoid 'header present but could not be compiled' on cygwin.
50907
50908 2006-07-05  Eric Blake  <ebb9@byu.net>
50909
50910         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50911         missing from netdb.h.
50912         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50913
50914 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50915
50916         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50917         no longer needed.
50918         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
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/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50925
50926 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50927
50928         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
50929         All uses of is_space replaced by isspace.
50930         * lib/exit.h: Don't talk about STDC_HEADERS.
50931         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
50932         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
50933         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
50934         replaced by isprint etc.
50935         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
50936         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50937         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
50938         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
50939         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
50940         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50941
50942 2006-07-05  Bruno Haible  <bruno@clisp.org>
50943
50944         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
50945         the function exists, before testing against AIX.
50946         Reported by Martin Lambers <marlam@marlam.de>.
50947
50948 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50949
50950         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
50951         From Mark D. Baushke.
50952
50953 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50954
50955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
50956         to the absolute name, not just one, to bypass Sun C 5.8's
50957         "warning: #include of /usr/include/... may be non-portable".
50958
50959 2006-07-04  Eric Blake  <ebb9@byu.net>
50960
50961         * modules/dirname-tests: New test module.
50962         * tests/test-dirname.c: New file, replacing dirname.c
50963         TEST_DIRNAME section that was recently deleted.
50964
50965 2006-07-04  Bruno Haible  <bruno@clisp.org>
50966
50967         Assume ANSI C header files and <ctype.h> functions.
50968         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
50969         (mbsnwidth): Use isprint, iscntrl instead.
50970
50971 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50972
50973         Merge from coreutils.
50974         * MODULES.html.sh: Add xstrtold.
50975         * modules/xstrtold: New file.
50976         * modules/cycle-check (Files): Add lib/same-inode.h.
50977         * modules/dirname (Files): Add m4/double-slash-root.m4.
50978         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
50979         * modules/mkdir-p (Files): Add lib/same-inode.h.
50980         * modules/same (Files): Add lib/same-inode.h.
50981
50982 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * m4/absolute-header.m4: Renamed from full-header-path.m4.
50985         This is to keep the terminology clean; POSIX talks about
50986         "absolute pathnames", not "full pathnames", but the GNU
50987         Coding Standards say to use "path" for something else;
50988         so use "absolute" to keep both sides happy.
50989         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
50990         Set gl_absolute_header, not gl_full_header_path.
50991         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
50992         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
50993         All uses changed.
50994
50995         Merge from coreutils.
50996
50997         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50998
50999         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51000         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51001         want to require the building of c-strtod.o.
51002         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51003         needs -lm directly.
51004         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51005
51006         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51007
51008         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51009         --as-needed option if available.  Problem reported by Albert Chin in
51010         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51011         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51012         cc merely issues a bunch of annoying warnings for --as-needed
51013         (this problem was reported by Bob Proulx).  Also, try linking with
51014         -lm to detect a bug in binutils 2.16 (this problem was reported
51015         by Ralf Wildenhues).
51016
51017         2006-06-18  Jim Meyering  <jim@meyering.net>
51018
51019         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51020         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51021         macro.
51022         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51023         also check for glibc-2.4's abort-inducing bug.
51024
51025         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51026         Low-probability clean-up should be to use rmdir to get rid of
51027         the just-created directory, not unlink.
51028
51029         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51030         configure fail, and request a bug report to inform us about it.
51031         Add a comment that, barring reports to the contrary, in 2007 we'll
51032         assume ftruncate is universally available.
51033
51034         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51035
51036         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51037
51038         2006-03-12  Jim Meyering  <jim@meyering.net>
51039
51040         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51041         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51042         * m4/same.m4 (gl_SAME): Likewise.
51043         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51044
51045         2006-03-11  Eric Blake  <ebb9@byu.net>
51046
51047         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51048         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51049         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51050         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51051
51052 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51053
51054         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51055         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51056         reported by Mark D. Baushke, one in
51057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51058
51059         Merge from coreutils.
51060
51061         * lib/.cppi-disable: Add stdint_.h.
51062         * lib/.cvsignore: Add stdint.h.
51063
51064         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51065
51066         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51067         both double and long double versions.
51068         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51069         * lib/xstrtold.c: New file.
51070         * lib/xstrtod.h (xstrtold): New decl.
51071
51072         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * lib/filemode.c (setst): Remove.
51075         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51076         (arguably) clearer, and the generated code is a bit smaller on my
51077         Debian GNU/Linux stable x86 host.
51078
51079         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51080
51081         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51082         Assume that filemode.h includes sys/types.h and sys/stat.h.
51083         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51084         (ftypelet): Reorder to put common cases first, for efficiency.
51085         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51086         to do 'M'.
51087         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51088         of 10, for compatibility with FreeBSD.  All callers changed.
51089         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51090         types that can't be deduced solely from st_mode.  First arg is now a
51091         const pointer.
51092         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51093         (strmode): Renamed from mode_string.
51094         (filemodestring): New decl.
51095         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51096         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51097         needed.
51098         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51099
51100         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51101
51102         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51103         fsusage.h now does that.  Include fsusage.h first, to test interface.
51104         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51105         at most one method (the old code could have generated decls that
51106         didn't conform to C89, not that this was ever exercised).
51107         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51108
51109         2006-03-19  Jim Meyering  <jim@meyering.net>
51110
51111         Work even in a chroot where d_ino values for entries in "/"
51112         don't match the stat.st_ino values for the same names.
51113         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51114         number, iterate through all entries again, using lstat instead.
51115         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51116         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51117
51118         * lib/getcwd.c (__getcwd): Clarify a comment.
51119         Use memcpy in place of a call to strcpy.
51120
51121         2006-03-12  Jim Meyering  <jim@meyering.net>
51122
51123         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51124         matches that of the current directory (which we're about to chdir ".."
51125         out of), then save the dev-ino of the parent, instead.
51126
51127         * lib/same-inode.h (SAME_INODE): New file/macro.
51128         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51129         Include "same-inode.h", instead.
51130         * lib/same.c: Likewise.
51131         * lib/cycle-check.h: Include "same-inode.h".
51132         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51133         * lib/cycle-check.c (SAME_INODE): Remove definition.
51134         * lib/root-dev-ino.h: Include "same-inode.h".
51135
51136         2006-03-11  Eric Blake  <ebb9@byu.net>
51137
51138         * lib/same.c (same_name): s/base_name/last_component/
51139         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51140         * lib/filenamecat.c (file_name_concat): Likewise.
51141
51142         2006-03-11  Eric Blake  <ebb9@byu.net>,
51143                     Paul Eggert  <eggert@cs.ucla.edu>
51144
51145         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51146         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51147         drive prefix.
51148         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51149         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51150         (last_component): New method.
51151         * lib/dirname.c (dir_len): Determine when drive letters need a
51152         subsequent slash.  Preserve // when it is special.
51153         (dir_name): Don't append dot when drive letter is absolute.
51154         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51155         * lib/basename.c (base_name): New semantics - malloc the result.
51156         Preserve // when it is special.  Preserve relative files that look
51157         like drive letters.
51158         (base_len): Preserve // when it is special.
51159         (last_component): New method, similar to old base_name semantics.
51160         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51161         base_name.  Strip redundant slashes from ///.
51162
51163 2006-07-03  Jim Meyering  <jim@meyering.net>
51164
51165         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51166         macro is used before the first cycle_check call.
51167
51168 2006-07-03  Eric Blake  <ebb9@byu.net>
51169
51170         * modules/dirname (Depends-on): Add xstrndup.
51171
51172 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51175         test cases, so that config.log is a bit easier to follow.
51176
51177 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51178
51179         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51180         both are 64 bits, since this seems to be the tradition, and this
51181         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51182         we ever run into a host that prefers long long to long in this
51183         case, we'll need another configure-time test.  Problem reported by
51184         Jim Meyering.
51185
51186 2006-07-02  Eric Blake  <ebb9@byu.net>
51187
51188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51189
51190 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51191
51192         * modules/inttypes (Depends-on): No longer depends on stdint.
51193         * modules/stdint (Description): Say more about assumptions.
51194         Say that the fast types might differ.  Say macros are used.
51195         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51196         (Makefile.am): Revise list of substituted symbols to match
51197         new stdint.m4.
51198         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51199         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51200         * tests/test-stdint.c (verify_same_types)
51201         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51202         the code conforms to C99/C89.
51203         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51204         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51205
51206 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51207
51208         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51209         but fix a bug, by requiring at least 64 bits.
51210         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51211         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51212         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51213         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51214
51215         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51216         changes.  Make 2.59 a prerequisite.  Check and substitute for
51217         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51218         inttypes.h.  Do not use special include files; just use the
51219         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51220         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51221         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51222         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51223         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51224         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51225         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51226         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51227         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51228         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51229         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51230         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51231         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51232         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51233         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51234         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51235         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51236         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51237         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51238         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51239         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51240         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51241         not check for things that C99 does not require, e.g., int8_t.  If
51242         a test isn't needed unless <stdint.h> isn't working, and is
51243         unlikely to be needed for any other reason, then don't do it
51244         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51245         size_t, since we assume C89 freestanding at least.  Do not check
51246         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51247         the right thing even if the types are not defined.  Instead use:
51248         (gl_STDINT_TYPE_PROPERTIES): New macro.
51249         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51250         testing whether <sys/types.h> clashes, as Autoconf does this for
51251         us now.  All uses removed.
51252         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51253         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51254         (gl_CHECK_TYPE_SAME):
51255         Remove; no longer needed.
51256         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51257         exists, since we'll return 0 anyway in that case.
51258         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51259
51260 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51261
51262         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51263         possible collision with system files.
51264         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51265         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51266         WCHAR_MIN and WCHAR_MAX in this case.
51267         (<stddef.h>): Do not include; no longer needed.
51268         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51269         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51270         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51271         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51272         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51273         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51274         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51275         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51276         !defined(__c99))]: Include in this case too, since it's harmless
51277         now.
51278         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51279         dangerous to do so.
51280         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51281         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51282         (_STDINT_MIN, _STDINT_MAX): New macros.
51283         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51284         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51285         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51286         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51287         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51288         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51289         macros, not typedefs; this simplifies things quite a bit.
51290         Use long int for all types narrower than int64_t.
51291         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51292         Define in terms of long long int or int64_t or long int,
51293         not int64_t or int32_t.  This saves some compile-time testing.
51294         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51295         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51296         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51297         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51298         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51299         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51300         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51301         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51302         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51303         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51304         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51305         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51306         undef any previous version and define our own version, for
51307         simplicity and consistency with the new macros for types.
51308         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51309         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51310         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51311         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51312         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51313         @WINT_T_SUFFIX@ to keep things simple here.
51314         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51315         Simplify by assuming typical 8/16/32/64 host, since we're
51316         already doing that elsewhere anyway.
51317         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51318         and assume long long int is 64 bits if available.  This
51319         speeds up 'configure'.
51320
51321 2006-07-01  Eric Blake  <ebb9@byu.net>
51322
51323         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51324         Reported by Andreas Buening.
51325
51326 2006-07-01  Eric Blake  <ebb9@byu.net>
51327
51328         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51329
51330 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51331
51332         * lib/getaddrinfo.c: fixed typo
51333
51334 2006-06-29  Jim Meyering  <jim@meyering.net>
51335
51336         * modules/strftime (Maintainer): Add my name, since with the
51337         FPRINTFTIME changes strftime.c has forked from glibc.
51338
51339 2006-06-29  Eric Blake  <ebb9@byu.net>
51340
51341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51342
51343 2006-06-29  Eric Blake  <ebb9@byu.net>
51344
51345         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51346
51347 2006-06-29  Eric Blake  <ebb9@byu.net>
51348
51349         * lib/stat_.h: New file.
51350
51351 2006-06-29  Eric Blake  <ebb9@byu.net>
51352
51353         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51354         unused static function.
51355
51356 2006-06-29  Eric Blake  <ebb9@byu.net>
51357
51358         * doc/functions.texi (Function Portability): Document missing lstat
51359         on mingw.
51360
51361 2006-06-29  Eric Blake  <ebb9@byu.net>
51362
51363         * MODULES.html.sh: Add sys_stat.
51364         * modules/sys_stat: New module.
51365         * modules/mkstemp (Depends-on): Add sys_stat.
51366
51367 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51368
51369         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51370
51371 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51372
51373         * m4/c-bs-a.m4: Removed.
51374
51375 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51376
51377         * lib/strftime.c: Assume strftime() exists.
51378
51379 2006-06-29  Derek Price  <derek@ximbiot.com>
51380
51381         * modules/c-bs-a: Removed - \a is C89.
51382         * MODULES.html.sh: Remove c-bs-a.
51383
51384 2006-06-29  Bruno Haible  <bruno@clisp.org>
51385
51386         * modules/wcwidth (License): Change to LGPL.
51387
51388 2006-06-28  Simon Josefsson  <jas@extundo.com>
51389
51390         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51391         on _WIN32.
51392
51393         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51394         getnameinfo.
51395
51396 2006-06-28  Simon Josefsson  <jas@extundo.com>
51397
51398         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51399
51400 2006-06-28  Simon Josefsson  <jas@extundo.com>
51401
51402         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51403         functions there.  It will succeed on Windows XP, but on Windows
51404         2000 and (presumably) earlier, it will fail, and use the internal
51405         re-implementation.
51406         (use_win32_p): New function.
51407         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51408         Support AI_NUMERICSERV to disable getservbyname.
51409         (getnameinfo): New function, only supports
51410         NI_NUMERICHOST|NI_NUMERICSERV for now.
51411
51412         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51413         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51414         getnameinfo.
51415
51416 2006-06-28  Eric Blake  <ebb9@byu.net>
51417
51418         * modules/wcwidth: New file.
51419         * modules/mbchar (Depends-on): Add wcwidth.
51420         * modules/mbswidth (Depends-on): Add wcwidth.
51421         * MODULES.html.sh: Add wcwidth.
51422
51423 2006-06-28  Eric Blake  <ebb9@byu.net>
51424
51425         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51427
51428 2006-06-28  Eric Blake  <ebb9@byu.net>
51429
51430         * lib/xvasprintf.h: Fix comments.
51431
51432 2006-06-28  Eric Blake  <ebb9@byu.net>
51433
51434         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51435         * lib/mbswidth.c (wcwidth): Move from here...
51436         * lib/wcwidth.h: ...to this new file.
51437
51438 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51439
51440         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51441
51442         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51443         it's obsolete.
51444         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51445
51446 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51447
51448         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51449         Autoconf 2.60 says this stuff was obsolete.
51450
51451 2006-06-28  Bruno Haible  <bruno@clisp.org>
51452
51453         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51454
51455 2006-06-28  Bruno Haible  <bruno@clisp.org>
51456
51457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51458         gt_TYPE_WCHAR_T.
51459
51460 2006-06-28  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51463         declaration for wcwidth.
51464         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51465
51466 2006-06-28  Bruno Haible  <bruno@clisp.org>
51467
51468         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51469         (mkdir): Define using _mkdir.
51470
51471 2006-06-28  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/getaddrinfo.h: Fix POSIX URL.
51474         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51475         _WIN32.
51476         (use_win32_p): Make static.
51477         (getaddrinfo): Reject service name if it is empty or does not consist
51478         solely of decimal digits, or if its value is > 65535.
51479         (getnameinfo): Remove useless casts.
51480
51481 2006-06-27  Simon Josefsson  <jas@extundo.com>
51482
51483         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51484         Eggert and Martin Lambers.
51485
51486 2006-06-27  Simon Josefsson  <jas@extundo.com>
51487
51488         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51489         Eggert and Martin Lambers.
51490
51491 2006-06-27  Bruno Haible  <bruno@clisp.org>
51492
51493         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51494         result to 0, not to empty.
51495         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51496
51497 2006-06-27  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51500
51501 2006-06-26  Simon Josefsson  <jas@extundo.com>
51502
51503         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51504         present.
51505
51506 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51507
51508         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51509         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51510         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51511
51512 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51513
51514         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51515
51516 2006-06-26  Bruno Haible  <bruno@clisp.org>
51517
51518         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51519
51520 2006-06-26  Bruno Haible  <bruno@clisp.org>
51521
51522         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51523
51524 2006-06-26  Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51527         SGI C compiler in pre-C99 mode.
51528         Suggested by Mark D. Baushke and Larry Jones.
51529
51530 2006-06-26  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51533         WCHAR_MAX.
51534         Reported by Mark D. Baushke and Larry Jones.
51535
51536 2006-06-26  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51539         in pre-C99 mode.
51540         Suggested by Mark D. Baushke and Larry Jones.
51541
51542 2006-06-23  Simon Josefsson  <jas@extundo.com>
51543             Bruno Haible  <bruno@clisp.org>
51544
51545         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51546         Emit mostlyclean-local rule.
51547         (func_emit_tests_Makefile_am): Likewise.
51548         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51549
51550 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51551
51552         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51553
51554 2006-06-23  Bruno Haible  <bruno@clisp.org>
51555
51556         * tests/test-stdint.c: Update to match ISO C 99 Technical
51557         Corrigendum 1.
51558
51559 2006-06-23  Bruno Haible  <bruno@clisp.org>
51560
51561         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51562
51563 2006-06-23  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/stdint_.h: Treat IRIX like OpenBSD.
51566
51567 2006-06-23  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51570         ISO C 99 Technical Corrigendum 1.
51571
51572 2006-06-22  Simon Josefsson  <jas@extundo.com>
51573
51574         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51575         MinGW.
51576
51577 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51578
51579         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51580         needed.  Some compiler complained about some of them.  Problem reported
51581         by Larry Jones in
51582         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51583
51584 2006-06-21  Simon Josefsson  <jas@extundo.com>
51585
51586         * tests/test-getaddrinfo.c: New file.
51587
51588         * modules/getaddrinfo-tests: New file.
51589
51590         * MODULES.html.sh: Add inet_pton.
51591
51592         * modules/inet_pton: New file.
51593
51594 2006-06-21  Simon Josefsson  <jas@extundo.com>
51595
51596         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51597         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51598         of using the (limited) gnulib implementation on Windows XP.
51599
51600         * m4/inet_pton.m4: New file.
51601
51602 2006-06-21  Simon Josefsson  <jas@extundo.com>
51603
51604         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51605         variable.
51606
51607         * lib/socket_.h: Don't define WINVER.
51608
51609         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51610         slightly modified to work in gnulib.
51611
51612 2006-06-21  Simon Josefsson  <jas@extundo.com>
51613
51614         * doc/gnulib.texi (Windows sockets): Add.
51615
51616 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51617
51618         * lib/read-file.c (fread_file): Start with buffer allocation of
51619         0 bytes rather than 1 byte; this simplifies the code.
51620         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51621         code to free buffer and save/restore errno.
51622         (internal_read_file): Remove unused local.
51623
51624 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51625
51626         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51627         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51628         Problem reported by Denis Excoffier in
51629         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51630
51631 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51632
51633         * modules/sys_socket, modules/socklen: Include sys/types since
51634         FreeBSD 4.x's sys/socket.h needs it.
51635
51636 2006-06-19  Simon Josefsson  <jas@extundo.com>
51637
51638         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51639
51640 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51641
51642         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51643
51644 2006-06-19  Bruno Haible  <bruno@clisp.org>
51645
51646         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51647         and FULL_PATH_INTTYPES_H in angle brackets.
51648         Reported by Mark D. Baushke <mdb@gnu.org>.
51649
51650 2006-06-17  Eric Blake  <ebb9@byu.net>
51651
51652         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51653         errno.
51654
51655 2006-06-17  Bruno Haible  <bruno@clisp.org>
51656
51657         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51658         <sys/inttypes.h>.
51659
51660 2006-06-17  Bruno Haible  <bruno@clisp.org>
51661
51662         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51663         whether errno is declared. Assume <errno.h> declares errno.
51664
51665 2006-06-17  Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51668
51669 2006-06-17  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51672         problem on Solaris 2.5.1.
51673
51674 2006-06-16  Eric Blake  <ebb9@byu.net>
51675
51676         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51677         * lib/unicodeio.c [!defined errno]: Likewise.
51678         * lib/strtol.c [!defined errno]: Likewise.
51679         * lib/strtod.c [!defined errno]: Likewise.
51680
51681 2006-06-15  Eric Blake  <ebb9@byu.net>
51682
51683         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51684
51685 2006-06-15  Eric Blake  <ebb9@byu.net>
51686
51687         * config/srclist.txt (ssize_t.m4): Lose sync.
51688
51689 2006-06-15  Bruno Haible  <bruno@clisp.org>
51690
51691         * modules/stdint (Files): Include m4/full-header-path.m4,
51692         m4/size_max.m4, m4/wchar_t.m4.
51693         (Makefile.am): Many more substitutions.
51694         * modules/stdint-tests: New file.
51695         * tests/test-stdint.c: New file.
51696
51697 2006-06-15  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51700         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51701         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51702         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51703         gl_CHECK_TYPE_SAME): New macros.
51704
51705 2006-06-15  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51708
51709 2006-06-15  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/stdint_.h: Rewritten to be fully auto-configured.
51712         Fixes bug on HP-UX/IA64.
51713
51714 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51715
51716         * lib/getdate.y (__attribute__): Don't define if already defined.
51717         Problem reported by Larry Jones.
51718         * lib/utimens.c (__attribute__): Likewise.
51719
51720 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51723         reported by Andreas Schwab.
51724
51725 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51726             Bruno Haible  <bruno@clisp.org>
51727
51728         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51729         check for the declaration of strnlen and a run test that exposes the
51730         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51731         rpl_strndup.
51732
51733 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51734             Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51737
51738 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51739
51740         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51741         compile test, for Tru64 4.0D.
51742
51743 2006-05-28  Karl Berry  <karl@gnu.org>
51744
51745         * config/srclist.txt (printf-args.c): lose sync.
51746
51747 2006-05-26  Martin Lambers  <marlam@marlam.de>
51748
51749         * lib/getpass.c: Updates the test for the native W32 API, and adds
51750         missing includes, thus fixing compilation warnings.
51751
51752 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51753
51754         * lib/exclude.c (exclude_fnmatch): New function.
51755         (excluded_file_name): Call exclude_fnmatch.
51756         * lib/exclude.h (excluded_file_name): New prototype
51757
51758 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51759
51760         * lib/tempname.c (small_open, large_open): New macros.
51761         (__open, __open64) [!_LIBC]: Remove.
51762         (__gen_tempname): Use small_open and large_open instead of __open
51763         and __open64.  This fixes a portability bug on HP-UX 11.11i
51764         reported by Simon Wing-Tang in
51765         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51766
51767 2006-05-24  Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51770         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51771         Reported by Thorsten Maerz <torte@netztorte.de> via
51772         Aaron Stone <aaron@serendipity.cx>.
51773
51774 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51777         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51778         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51779         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51780         not really conditional on the cache.
51781         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51782
51783 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51784
51785         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51786         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51787         (my_usleep): Don't mishandle maximum value.
51788
51789 2006-05-19  Jim Meyering  <jim@meyering.net>
51790
51791         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51792
51793 2006-05-17  Bruno Haible  <bruno@clisp.org>
51794
51795         Cygwin portability.
51796         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51797
51798 2006-05-17  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/stdint_.h: Fix recognition of Cygwin.
51801
51802 2006-05-15  Bruno Haible  <bruno@clisp.org>
51803
51804         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51805         on libtool patch by Ralf Wildenhues.
51806
51807 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51808
51809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51810         test for C99 conformance; (bool) 0.5 is an integer constant
51811         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51812         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51813
51814 2006-05-11  Simon Josefsson  <jas@extundo.com>
51815
51816         * m4/xvasprintf.m4: Fix obvious typo.
51817
51818 2006-05-11  Jim Meyering  <jim@meyering.net>
51819
51820         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51821         James Lemley.
51822
51823 2006-05-10  Simon Josefsson  <jas@extundo.com>
51824
51825         * lib/md4.c: Typo fix, update copyright years.
51826         (K1, K2): Don't use L because it turn computations into 64-bit on
51827         64-bit platforms.
51828
51829 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51832         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51833         unwanted sign propagation, e.g., on hosts with 64-bit int.
51834         There still are some problems with reeelly weird theoretical hosts
51835         (e.g., 33-bit int) but it's not worth worrying about now.
51836         * lib/sha1.c (rol): Likewise.
51837         (K1, K2, K3, K4): Remove unnecessary L suffix.
51838
51839 2006-05-10  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/des.c: Cast to avoid warnings.
51842
51843 2006-05-09  Bruno Haible  <bruno@clisp.org>
51844
51845         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51846         (Depends-on): Depend also on xsize, stdarg.
51847         (configure.ac): Add gl_XVASPRINTF.
51848
51849 2006-05-09  Bruno Haible  <bruno@clisp.org>
51850
51851         * m4/xvasprintf.m4: New file.
51852
51853 2006-05-09  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51856         (EOVERFLOW): Define fallback value.
51857         (xstrcat): New function.
51858         (xvasprintf): Recognize the special case of a string concatenation.
51859
51860 2006-05-08  Eric Blake  <ebb9@byu.net>
51861
51862         * gnulib-tool (func_version): Base copyright year on CVS date.
51863         (func_emit_copyright_notice): New function.
51864         (func_emit_lib_Makefile_am): Use it.
51865         (func_emit_tests_Makefile_am): Likewise.
51866         (func_import): Likewise.
51867
51868 2006-05-08  Bruno Haible  <bruno@clisp.org>
51869
51870         * modules/stdarg: New file.
51871         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51872
51873 2006-05-08  Bruno Haible  <bruno@clisp.org>
51874
51875         * m4/stdarg.m4: New file, from GNU gettext.
51876
51877 2006-05-08  Bruno Haible  <bruno@clisp.org>
51878
51879         * config/srclist.txt (build-aux/config.rpath): different from latest
51880         release.
51881
51882 2006-05-08  Bruno Haible  <bruno@clisp.org>
51883
51884         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51885
51886 2006-05-05  Jim Meyering  <jim@meyering.net>
51887
51888         * m4/warning.m4: New file, derived from bison's file by the same name.
51889
51890 2006-05-03  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/stdint_.h: Shorter URL.
51893         * lib/inttypes.h: Likewise.
51894
51895 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51898
51899 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51900
51901         * lib/verify.h: Document the internals better.  Most of this change
51902         was written by Bruno Haible.
51903
51904 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * doc/verify.texi: New file, partly based on a proposal by
51907         Bruno Haible.
51908
51909 2006-05-02  Bruno Haible  <bruno@clisp.org>
51910
51911         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51912         test from here...
51913         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51914
51915 2006-04-29  Bruno Haible  <bruno@clisp.org>
51916
51917         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51918         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51919
51920 2006-04-29  Bruno Haible  <bruno@clisp.org>
51921
51922         * gnulib-tool: Make --update option actually work.
51923
51924 2006-04-29  Bruno Haible  <bruno@clisp.org>
51925
51926         * doc/gcd.texi: New file.
51927         * doc/gnulib.texi: Include it.
51928
51929 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
51930
51931         * lib/getdate.y (get_date): When adding relative date, start with the
51932         initial time, not with the result of the first mktime call.
51933
51934 2006-04-25  Bruno Haible  <bruno@clisp.org>
51935
51936         * gnulib-tool (func_import): Output the include directives in three
51937         blocks, sorted separately.
51938         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51939
51940 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51941
51942         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
51943         to define main with arguments, for C++.  Reported by Eric Blake.
51944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51945         Prefer 'int main ()' to 'int main (void)', for C++.
51946         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
51948         for 'main', for C99 and C++.
51949
51950 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
51953         Don't assume that exit status -1 is valid.
51954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51955         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51956         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
51957         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
51958         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
51959         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
51960         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
51961         functions can be used without declaring them, or that you can
51962         exit with status -1.
51963         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
51964
51965 2006-04-24  Karl Berry  <karl@gnu.org>
51966
51967         * config/srclist.txt (longdouble.m4): sync lost.
51968
51969 2006-04-24  Eric Blake  <ebb9@byu.net>
51970
51971         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
51972
51973 2006-04-24  Bruno Haible  <bruno@clisp.org>
51974
51975         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
51976         poll() implementation in AIX.
51977         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51978
51979 2006-04-24  Bruno Haible  <bruno@clisp.org>
51980
51981         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
51982         assigned exactly once.
51983
51984 2006-04-23  Claudio Fontana  <claudio@gnu.org>
51985             Bruno Haible  <bruno@clisp.org>
51986
51987         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
51988         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
51989         for AM_CPPFLAGS.
51990
51991 2006-04-23  Bruno Haible  <bruno@clisp.org>
51992
51993         * modules/copy-file: Depend on unistd.
51994         * modules/execute: Likewise.
51995         * modules/fatal-signal: Likewise.
51996         * modules/findprog: Likewise.
51997         * modules/mkdtemp : Likewise.
51998         * modules/pipe: Likewise.
51999         * modules/wait-process: Likewise.
52000
52001 2006-04-23  Bruno Haible  <bruno@clisp.org>
52002
52003         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52004         condition was already detected.
52005         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52006
52007 2006-04-23  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/copy-file.c: Include <unistd.h> unconditionally.
52010         * lib/execute.c: Likewise.
52011         * lib/fatal-signal.c: Likewise.
52012         * lib/findprog.c: Likewise.
52013         * lib/mkdtemp.c: Likewise.
52014         * lib/pipe.h: Likewise.
52015         * lib/pipe.c: Likewise.
52016         * lib/wait-process.h: Likewise.
52017
52018 2006-04-23  Bruno Haible  <bruno@clisp.org>
52019
52020         * gnulib-tool (func_usage): Fix --import description. Document
52021         --update.
52022         (func_import): Create temporary file in a temporary directory, if
52023         --dry-run is specified. Silence errors from 'grep' when there are no
52024         m4 files in $m4dir.
52025         (func_create_testdir): Silence errors from 'grep' when there are no
52026         m4 files in $m4dir.
52027         Reported by Karl Berry <karl@freefriends.org>.
52028
52029 2006-04-20  Bruno Haible  <bruno@clisp.org>
52030
52031         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52032         one argument, so that the code will be portable to Autoconf 2.60.
52033         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52034         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52035         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52036
52037 2006-04-19  Derek Price  <derek@ximbiot.com>
52038             Eric Blake  <ebb9@byu.net>
52039
52040         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52041         rather than "/full/path.h".  Update comment to match.  Shorten &
52042         generalize m4_translit call via AS_TR_CPP.
52043
52044 2006-04-19  Derek Price  <derek@ximbiot.com>
52045             Eric Blake  <ebb9@byu.net>
52046
52047         * lib/inttypes.h: Correct grammar in comment.
52048
52049 2006-04-18  Derek Price  <derek@ximbiot.com>
52050             Paul Eggert  <eggert@cs.ucla.edu>
52051
52052         * modules/inttypes: New file.
52053         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52054
52055 2006-04-18  Derek Price  <derek@ximbiot.com>
52056             Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52059         New files.
52060
52061 2006-04-18  Derek Price  <derek@ximbiot.com>
52062             Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         * lib/inttypes.h: New file.
52065         * lib/strtoimax.c: Assume <inttypes.h>.
52066
52067 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52068
52069         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52070         isn't mounted.  Problem reported by Kir Kolyshkin.
52071
52072 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52073
52074         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52075         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52076         Derek R. Price.
52077         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52078         implementation.
52079
52080 2006-04-12  Eric Blake  <ebb9@byu.net>
52081
52082         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52083         is now done automatically by the corresponding Autoconf macro.
52084
52085 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52088         time_r.h.
52089
52090 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52091
52092         Merge regex changes from libc, removing some of our
52093         POSIX-conformance changes that were rejected and redoing them in a
52094         less-intrusive way.
52095
52096         * lib/regcomp.c (re_compile_internal, init_dfa):
52097         Length arg is now size_t, not Idx.  All uses changed.
52098         (peek_token): Forward decl now says internal_function.
52099         (__re_error_msgid, __re_error_msgid_idx):
52100         Now static rather than extern with attribute_hidden.
52101         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52102         For some reason libc prefers K&R style defns for external functions.
52103         (regerror) [!defined _LIBC]: Likewise.
52104         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52105         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52106         (build_range_exp, build_collating_symbol):
52107         Use K&R-style defn.
52108         (re_compile_fastmap): Use '\0' to memset, not 0.
52109         (utf8_sb_map): Make the calculations more obvious.
52110         (init_dfa, parse_bracket_exp, build_charclass_op):
52111         Call calloc and cast result, as glibc does.
52112         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52113         (build_range_exp, build_collating_symbol):
52114         Now internal functions.
52115
52116         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52117
52118         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52119         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52120         Don't depend on VMS; depend on __VMS instead, for POSIX
52121         namespace cleanness.
52122         (regoff_t): Define to ssize_t, not long int.
52123
52124         Remove the REG_ macros named below.  Instead, make the old names
52125         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52126         __USE_GNU_REGEX.
52127         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52128         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52129         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52130         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52131         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52132         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52133         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52134         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52135         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52136         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52137         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52138         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52139         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52140         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52141         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52142         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52143         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52144         (REG_NREGS):
52145         Remove.  All uses replaced by the old RE_* names.
52146         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52147         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52148         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52149         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52150         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52151         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52152         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52153         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52154         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52155         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52156         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52157         Don't bother having these macros be independent of each others'
52158         values, since they no longer exist in the POSIX name space.
52159
52160         Rename the following member names back to their old names,
52161         unless !__USE_GNU_REGEX.  All uses changed back.
52162         (buffer): Renamed from re_buffer.
52163         (allocated): Renamed from re_allocated.
52164         (used): Renamed from re_used.
52165         (syntax): Renamed from re_syntax.
52166         (fastmap): Renamed from re_fastmap.
52167         (translate): Renamed from re_translate.
52168         (can_be_null): Renamed from re_can_be_null.
52169         (regs_allocated): Renamed from re_regs_allocated.
52170         (fastmap_accurate): Renamed from re_fastmap_accurate.
52171         (no_sub): Renamed from re_no_sub.
52172         (not_bol): Renamed from re_not_bol.
52173         (not_eol): Renamed from re_not_eol.
52174         (newline_anchor): Renamed from re_newline_anchor.
52175         (num_regs): Renamed from rm_num_regs.
52176         (start): Renamed from rm_start.
52177         (end): Renamed from rm_end.
52178
52179         (free_state): Move up a bit.
52180
52181         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52182         #define to be empty.
52183         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52184         when that is what is intended.
52185         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52186         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52187         (MAX): New macro.
52188         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52189         All uses changed back to re_malloc, etc.  It's now the caller's
52190         responsibility to check for overflow; all callers changed.
52191         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52192         (re_x2nrealloc): Remove.
52193         (free_state): Remove decl.
52194
52195         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52196         (re_set_registers, re_exec):
52197         Use K&R-style defn.
52198
52199         2006-01-31  Roland McGrath  <roland@redhat.com>
52200
52201         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52202         Reported by Mike Frysinger <vapier@gentoo.org>.
52203
52204         2006-01-15  Andreas Jaeger  <aj@suse.de>
52205
52206         [BZ #1950]
52207         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52208         build_wcs_upper_buffer change.
52209         (build_wcs_upper_buffer): Change return type.
52210
52211         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52212
52213         * lib/regex_internal.h: Include <stdint.h> if available.
52214
52215         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52216
52217         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52218
52219         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52220
52221         * lib/regcomp.c: Adjust for changed secondary hash function.
52222
52223         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52224
52225         * lib/regex.h: Pretty printing.
52226         Clean up namespace a bit.
52227
52228         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52229
52230         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52231         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52232
52233         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52234                     Ulrich Drepper  <drepper@redhat.com>
52235
52236         [BZ #1302]
52237         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52238         changed.
52239         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52240
52241         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52242
52243         [BZ #281]
52244         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52245         * lib/regcomp.c: Remove unnecessary uses of
52246         unsigned RE_TRANSLATE_TYPE.
52247         * lib/regex_internal.h: Likewise.
52248         * lib/regex_internal.c: Likewise.
52249         * lib/regexec.c: Likewise.
52250         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52251
52252         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52253
52254         * lib/regexec.c (find_recover_state): Remove unnecessary
52255         initialization.
52256         (transit_state_bkref): Make DFA a const pointer.
52257         (get_subexp): Likewise.
52258         (check_arrival): Likewise.
52259         (update_cur_sifted_state): Likewise.
52260         (re_search_internal): Likewise.
52261         (prune_impossible_nodes): Likewise.
52262         (acquire_init_state_context): Likewise.
52263         (proceed_next_node): Likewise.
52264         (set_regs): Likewise.
52265         (free_fail_stack_return): Likewise.
52266         (check_arrival_expand_ecl): Mark DFA parameter as const.
52267         (check_arrival_expand_ecl_sub): Likewise.
52268         (check_subexp_limits): Likewise.
52269         (sub_epsilon_src_nodes):  Likewise.
52270         (add_epsilon_src_nodes):  Likewise.
52271         (merge_state_array): Likewise.
52272         (update_regs): Likewise.
52273         (build_trtable): Likewise.
52274         (sift_states_backward): Mark MCTX parameter as const.
52275         (build_sifted_states): Likewise.
52276         (update_cur_sifted_state): Likewise.
52277         (sift_states_mkref): Likewise.
52278         (check_arrival_expand_ecl): Mark eclosure as const.
52279         (check_dst_limits_calc_pos_1): Likewise.
52280         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52281         pointer.
52282
52283         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52284
52285         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52286         (transit_state_sb): Likewise.
52287         (transit_state_mb): Likewise.
52288         (sift_states_iter_mb): Likewise.
52289         (check_arrival_add_next_nodes): Likewise.
52290         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52291         [_LIBC] (re_search_2_stub): Use mempcpy.
52292
52293         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52294         mbrtowc for very simple UTF-8 case.
52295
52296         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52297         a pointer-to-const.
52298         (re_acquire_state_context): Likewise.
52299         * lib/regex_internal.h: Adjust prototypes.
52300
52301         * lib/regex.c: Prevent using C++ compilers.
52302
52303         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52304         (re_acquire_state_context): Likewise.
52305
52306 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         * modules/regex (Depends-on): Add ssize_t.
52309
52310 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52311
52312         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52313         translation table.
52314
52315 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52316
52317         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52318
52319 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52320             Bruno Haible  <bruno@clisp.org>
52321
52322         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52323         <sys/types.h> and <inttypes.h>.
52324
52325 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52326
52327         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52328         `__error_t_defined', so argp.h will not typedef the former.
52329
52330 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52331
52332         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52333         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52334         glibc names.  Even if glibc is changed to conform to POSIX, the
52335         traditional names will be available anyway, since regex depends on
52336         the extensions module.  Also, fix a longstanding typo in the
52337         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52338         reported by Emanuele Giaquinta.  Also, change sense of cached
52339         variable, so that the message makes sense.
52340
52341 2006-03-24  Simon Josefsson  <jas@extundo.com>
52342
52343         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52344         including some doc fixes.
52345         (base64_encode_alloc): Fix +1 bug on allocation failures.
52346
52347 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52348
52349         * lib/base64.c (base64_encode): Do not read past end of array with
52350         unsanitized input on systems with CHAR_BIT > 8.
52351
52352 2006-03-24  Eric Blake  <ebb9@byu.net>
52353
52354         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52355
52356 2006-03-22  Karl Berry  <karl@gnu.org>
52357
52358         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52359         * config/srclistvars.sh (COREUTILS): new var.
52360
52361 2006-03-17  Jim Meyering  <jim@meyering.net>
52362
52363         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52364         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52365
52366 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52367
52368         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52369         no longer needs it.  Instead, check that regoff_t is as least
52370         as wide as ptrdiff_t.
52371
52372         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52373         so that our regex.h stays compatible with the installed regex.
52374         This is helpful for installers who configure --without-included-regex.
52375         Problem reported by Emanuele Giaquinta.
52376
52377 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52378
52379         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52380         Typedef to long int, not to off_, as POSIX will likely change
52381         in that direction.
52382
52383 2006-03-15  Eric Blake  <ebb9@byu.net>
52384
52385         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52386
52387 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52388
52389         * lib/argp-help.c (validate_uparams): Fix typo
52390         * lib/argp-parse.c (argp_default_options): Consistently begin help
52391         messages with a lowercase letter.
52392
52393 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52394
52395         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52396         overrun buffers and shouldn't be used (much as gets shouldn't be
52397         used).
52398         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52399
52400 2006-03-08  Simon Josefsson  <jas@extundo.com>
52401
52402         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52403         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52404
52405 2006-03-08  Simon Josefsson  <jas@extundo.com>
52406
52407         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52408         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52409
52410 2006-03-08  Simon Josefsson  <jas@extundo.com>
52411
52412         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52413         signal that configure disabled the device.
52414
52415 2006-03-08  Simon Josefsson  <jas@extundo.com>
52416
52417         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52418         languages.
52419
52420 2006-03-07  Simon Josefsson  <jas@extundo.com>
52421
52422         * modules/getopt (Depends-on): Add unistd.
52423
52424         * modules/unistd: New file.
52425
52426 2006-03-07  Simon Josefsson  <jas@extundo.com>
52427
52428         * modules/gc-random: New file.
52429
52430 2006-03-07  Simon Josefsson  <jas@extundo.com>
52431
52432         * m4/unistd_h.m4: New file.
52433
52434 2006-03-07  Simon Josefsson  <jas@extundo.com>
52435
52436         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52437         test to be side-effect free by storing the result in the cache
52438         variable gl_cv_lib_readline, and moving the assignment of
52439         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52440         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52441
52442 2006-03-07  Simon Josefsson  <jas@extundo.com>
52443
52444         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52445         error on missing devices (the functions will return an error).
52446
52447         * m4/gc.m4: Move random stuff to gc-random.m4
52448
52449 2006-03-07  Simon Josefsson  <jas@extundo.com>
52450
52451         * lib/unistd_.h: New file.
52452
52453 2006-03-07  Simon Josefsson  <jas@extundo.com>
52454
52455         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52456
52457 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52458
52459         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52460         Problem reported by Juan Manuel Guerrero.
52461
52462 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52465         the unistd module.
52466         * lib/getlogin_r.c: Likewise.
52467         * lib/getlogin_r.h: Likewise.
52468         * lib/glob.c: Likewise.
52469         * lib/pagealign_alloc.c: Likewise.
52470         * lib/unistd_.h: Remove; no longer needed.
52471
52472 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52475         Add unistd.
52476         * modules/c-stack (Depends-on): Add unistd.
52477         * modules/getlogin_r: Likewise.
52478         * modules/glob: Likewise.
52479         * modules/pagealign_alloc: Likewise.
52480         * modules/unistd (Files): Remove lib/unistd_.h.
52481         (EXTRA_DIST): Remove.
52482         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52483         need unistd_.h.
52484         (MOSTLYCLEANFILES): Remove unistd.h-t.
52485
52486 2006-03-03  Simon Josefsson  <jas@extundo.com>
52487
52488         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52489
52490 2006-03-03  Simon Josefsson  <jas@extundo.com>
52491
52492         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52493         libidn and bison.
52494
52495 2006-03-03  Simon Josefsson  <jas@extundo.com>
52496
52497         * build-aux/maint.mk: Add indent target.
52498
52499 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52500
52501         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52502         our replacement poll.h in any case, to avoid a differing
52503         declaration from a system header.  Seen on AIX.
52504
52505 2006-03-01  Simon Josefsson  <jas@extundo.com>
52506
52507         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52508         <kasal@ucw.cz>.
52509
52510 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52511
52512         * modules/gettime (Depends-on): Add extensions module.
52513         * modules/nanosleep (Depends-on): Likewise.
52514         * modules/settime (Depends-on): Likewise.
52515
52516 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52517
52518         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52519         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52520         pedantically.
52521         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52522         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52523
52524         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52525         not "==".  Reported by Ralf Wildenhues.
52526
52527 2006-03-01  Karl Berry  <karl@gnu.org>
52528
52529         * doc/Copyright/request-*: new files, synced from gnuorg.
52530
52531 2006-03-01  Karl Berry  <karl@gnu.org>
52532
52533         * config/srclist.txt (Copyright/*): new entries.
52534
52535 2006-02-28  Simon Josefsson  <jas@extundo.com>
52536
52537         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52538
52539 2006-02-27  Simon Josefsson  <jas@extundo.com>
52540
52541         * lib/base64.h: Indent #define's.  From Jim Meyering
52542         <jim@meyering.net>.
52543
52544 2006-02-27  Jim Meyering  <jim@meyering.net>
52545
52546         Revert the change of 2006-02-24, so these files can continue
52547         to be sync'd from gettext.
52548         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52549         of `config.h'.
52550
52551 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52552
52553         * modules/intprops: New file.
52554         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52555         Add intprops.
52556         * modules/getloadavg (Files): Remove lib/intprops.h.
52557         (Depends-on): Add intprops.
52558         * modules/human: Likewise.
52559         * modules/inttostr: Likewise.
52560         * modules/openat: Likewise.
52561         * modules/sig2str: Likewise.
52562         * modules/userspec: Likewise.
52563         * modules/utimecmp: Likewise.
52564         * modules/xnanosleep: Likewise.
52565         * modules/xstrtol: Likewise.
52566
52567 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52568
52569         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52570         * modules/lock-tests (TESTS): Use $(EXEEXT).
52571         * modules/tls-tests: Likewise.
52572         * modules/argp-tests: Likewise.
52573         (check_PROGRAMS): New var, replacing...
52574         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52575
52576 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52577
52578         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52579         `config.h'.
52580
52581 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52582
52583         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52584
52585 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52586
52587         Sync from coreutils.
52588         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52589         gl_CHDIR_SAFER.
52590
52591 2006-02-22  Jim Meyering  <jim@meyering.net>
52592
52593         Sync from coreutils.
52594         * m4/chdir-safer.m4: New file.
52595
52596 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52597
52598         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52599         AT_FDCWD exceeds INT_MAX.
52600         * lib/openat.h (AT_FDCWD): Likewise.
52601
52602 2006-02-17  Eric Blake  <address@hidden>
52603
52604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52605
52606 2006-02-16  Simon Josefsson  <jas@extundo.com>
52607
52608         * modules/getaddrinfo (Depends-on): Add sys_socket.
52609
52610 2006-02-15  Simon Josefsson  <jas@extundo.com>
52611
52612         * build-aux/maint.mk: Add dsyntax-check rule.
52613
52614 2006-02-15  Eric Blake  <ebb9@byu.net>
52615
52616         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52617         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52618         'present but cannot compile' warnings on cygwin.
52619         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52620         use ws2tcpip.h if sys/socket.h works.
52621         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52622         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52623
52624 2006-02-14  Simon Josefsson  <jas@extundo.com>
52625
52626         * modules/maintainer-makefile (Files): Rename.
52627
52628         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52629         and (the local) Makefile.cfg to maint-cfg.mk.
52630
52631         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52632         to the latter.
52633
52634         * modules/maintainer-makefile: New module.
52635
52636         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52637         severaly stripped to make it possible to build it up from scratch
52638         with reliable tests.
52639
52640         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52641         fixes to permit overriding the default actions when configure and
52642         makefile are not available.
52643
52644 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         Sync from coreutils.
52647         * modules/lstat (Depends-on): Don't depend on xalloc.
52648         (License): Change from GPL to LGPL, since this is now simply a
52649         replacement for a libc function.
52650
52651 2006-02-14  Jim Meyering  <jim@meyering.net>
52652
52653         Sync from coreutils.
52654
52655         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52656         failure on deficient systems, and simplify gnulib lgpl dependencies.
52657         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52658         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52659
52660         * lib/xalloc-die.c: Remove unused definition of N_.
52661
52662 2006-02-14  Jim Meyering  <jim@meyering.net>
52663
52664         Sync from coreutils.
52665         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52666         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52667         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52668         double-quote uses of that variable, to accommodate the rare case in
52669         which getmntent is available in none of the libraries checked.  This
52670         happens at least on FreeBSD 5.0.
52671
52672 2006-02-13  Simon Josefsson  <jas@extundo.com>
52673
52674         * gnulib-tool (Usage): Fix --import, from
52675         karl@freefriends.org (Karl Berry).
52676
52677 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52678
52679         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52680
52681 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52682
52683         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52684         "autoupdate" on 2005-12-12.
52685
52686 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52687
52688         * modules/closeout (Depends-on): Remove atexit.
52689
52690 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52693         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52694
52695 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52696
52697         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52698         __EXTENSIONS__ if this causes compilation to fail.  Problem
52699         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52700         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52701
52702 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52703
52704         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52705         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52707         All uses changed.
52708
52709 2006-01-26  Simon Josefsson  <jas@extundo.com>
52710
52711         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52712         prototype is visible on mingw32.
52713
52714         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52715         for mingw32.
52716
52717         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52718         mingw32).
52719
52720 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52723         attempt to open for write; this always fails, at least on POSIX
52724         hosts.  This reinstates the 2006-01-09 change, which was
52725         inadvertently removed.
52726
52727 2006-01-26  Bruno Haible  <bruno@clisp.org>
52728
52729         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52730         Reported by Paul Eggert.
52731
52732 2006-01-26  Bruno Haible  <bruno@clisp.org>
52733             Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * lib/stdbool_.h (_Bool)
52736         [(! (defined __cplusplus || defined __BEOS__)
52737           && !defined __GNUC__
52738           && !(defined __HP_cc || defined __xlc__
52739                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52740                || defined __sgi))]:
52741         #define to signed char in these cases too; this simplifies
52742         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52743         etc., separately) and makes it more conservative.
52744
52745 2006-01-25  Simon Josefsson  <jas@extundo.com>
52746
52747         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52748         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52749         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52750
52751 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52752
52753         * lib/argp-namefrob.h: Bugfix. Remove stray #
52754
52755 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52758         so that we test the test.
52759         Check for yet another HP-UX cc bug involving *bool |= bool.
52760
52761 2006-01-25  Karl Berry  <karl@gnu.org>
52762
52763         * config/srclist.txt (vasnprintf.c): sync lost.
52764
52765 2006-01-25  Jim Meyering  <jim@meyering.net>
52766
52767         Sync from the stable (b5) branch of coreutils:
52768
52769         * lib/fts.c (fts_children): Don't let close() clobber errno from
52770         failed fchdir().
52771
52772         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52773         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52774         a dangling symlink.  That can also happen at least for ELOOP.
52775         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52776         FYI, this bug predates the inclusion of fts.c in coreutils.
52777
52778         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52779         in their own block, so pre-c99 compilers don't object.
52780
52781         Avoid the double-free (first in fts_read, second in fts_close) that
52782         would occur when an `active' directory is made inaccessible (e.g.,
52783         via chmod a-x) during a traversal.
52784         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52785         before returning.  Reproduce this failure by
52786         mkdir -p a/b; cd a; chmod a-x . b
52787         Reported by Stavros Passas.
52788
52789 2006-01-25  Jim Meyering  <jim@meyering.net>
52790
52791         * lib/fileblocks.c: Remove more useless parentheses.
52792         * lib/readutmp.h: Likewise.
52793
52794 2006-01-25  Bruno Haible  <bruno@clisp.org>
52795
52796         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52797         warnings.
52798         Reported by Paul Eggert.
52799
52800 2006-01-25  Bruno Haible  <bruno@clisp.org>
52801
52802         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52803         rid of a trap command. For Solaris sh.
52804         Reported by Mark D. Baushke <mdb@gnu.org>.
52805
52806 2006-01-24  Simon Josefsson  <jas@extundo.com>
52807
52808         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52809         Bruno.
52810
52811 2006-01-24  Karl Berry  <karl@gnu.org>
52812
52813         * config/srclist.txt (argp-namefrob.h): sync lost.
52814
52815 2006-01-24  Jim Meyering  <jim@meyering.net>
52816
52817         * modules/openat (Files): Add lib/intprops.h.
52818         From Mark D. Baushke.
52819
52820 2006-01-24  Jim Meyering  <jim@meyering.net>
52821
52822         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52823         Reported by Mark D. Baushke.
52824
52825 2006-01-24  Jim Meyering  <jim@meyering.net>
52826
52827         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52828
52829 2006-01-24  Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/strnlen (Maintainer): Change from glibc to all.
52832
52833 2006-01-24  Bruno Haible  <bruno@clisp.org>
52834
52835         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52836         Patch by Paul Eggert.
52837
52838 2006-01-24  Bruno Haible  <bruno@clisp.org>
52839
52840         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52841         already has it.
52842         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52843         2005-11-26.
52844
52845         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52846         'signed char' to avoid problems with the built-in _Bool type.
52847         Reported by Paul Eggert on 2005-11-26.
52848
52849 2006-01-24  Bruno Haible  <bruno@clisp.org>
52850
52851         * gnulib-tool (func_import): Avoid constructing complicated sed
52852         expressions inside backquote.
52853         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52854
52855 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52856
52857         These changes imported from libc.
52858         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52859         test and two separate function calls.
52860         * lib/strndup.c (__strndup): Add libc_hidden_def.
52861
52862 2006-01-23  Simon Josefsson  <jas@extundo.com>
52863
52864         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52865         Remove the test_*_SOURCES variable: automake infers it by default.
52866         * modules/tls-tests: Likewise.
52867
52868 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         Work around porting bugs reported by Dieter in
52871         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52872         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52873         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52874         Include "getopt.h" first, to check interface.
52875         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52876         !HAVE_DECL_GETENV.
52877         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52878         (__strndup): Revert to K&R-style function dfns, the glibc style.
52879         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52880         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52881         Include strnlen.h first, to get prototype properly.
52882         (strnlen): Renamed from __strnlen.
52883         Remove weak alias.
52884
52885 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52888
52889 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * config/srclist.txt: Adjust to reflect glibc reorganization.
52892         This affects only comments.
52893
52894 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52895
52896          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52897          Reported by Bruce Korb <bkorb@gnu.org>.
52898
52899 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52900
52901         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52902         to pacify gcc -Wswitch-default.
52903
52904 2006-01-22  Bruno Haible  <bruno@clisp.org>
52905
52906         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52907         temporary buffer for sprintf, take into account the precision also
52908         for 'd', 'i', 'u', 'o', 'x', 'X'.
52909
52910 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52911
52912         * modules/argp-tests: New module
52913         * tests/test-argp.c: New file
52914         * tests/test-argp-2.sh: New file
52915
52916 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52917
52918         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52919         (__argp_base_name): Removed
52920         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
52921         typo.
52922         (__argp_base_name): Provide macro definition or extern declaration
52923         depending on the configuration
52924
52925 2006-01-20  Simon Josefsson  <jas@extundo.com>
52926
52927         * modules/inet_ntop (Depends-on): Depend on sys_socket.
52928
52929 2006-01-20  Simon Josefsson  <jas@extundo.com>
52930
52931         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
52932
52933 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
52936         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
52937         Suggested by Bruno Haible.
52938
52939 2006-01-20  Karl Berry  <karl@gnu.org>
52940
52941         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
52942         until changes propagate, I guess.
52943
52944 2006-01-19  Simon Josefsson  <jas@extundo.com>
52945
52946         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
52947
52948 2006-01-19  Simon Josefsson  <jas@extundo.com>
52949
52950         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
52951
52952 2006-01-19  Simon Josefsson  <jas@extundo.com>
52953
52954         * gnulib-tool: Set check_PROGRAMS.
52955
52956         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52957         modules/des-tests, modules/gc-arcfour-tests,
52958         modules/gc-arctwo-tests, modules/gc-des-tests,
52959         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52960         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52961         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52962         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52963         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52964         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
52965         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
52966         test_*_SOURCES.
52967
52968 2006-01-18  Simon Josefsson  <jas@extundo.com>
52969
52970         * modules/socklen (Depends-on): Depend on sys_socket.
52971
52972 2006-01-18  Simon Josefsson  <jas@extundo.com>
52973
52974         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52975         modules/des-tests, modules/gc-arcfour-tests,
52976         modules/gc-arctwo-tests, modules/gc-des-tests,
52977         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52978         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52979         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52980         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52981         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52982         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
52983         $(EXEEXT) to automake TESTS variable, for mingw32.
52984
52985 2006-01-17  Simon Josefsson  <jas@extundo.com>
52986
52987         * modules/socklen (Include): Need sys/socket.h.
52988
52989 2006-01-17  Bruno Haible  <bruno@clisp.org>
52990
52991         * modules/ssize_t (Include): Add <sys/types.h>.
52992
52993 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
52994
52995         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
52996         it's not portable and it doesn't work with cross-compiles.
52997         Problem reported by Bruno Haible.  Fix missing-$ typo in
52998         'test "gl_cv_ignore_unused_libraries" ...' that prevented
52999         -zignore from being used with Sun's C compiler.
53000
53001 2006-01-12  Simon Josefsson  <jas@extundo.com>
53002
53003         * lib/base64.c: Fix warning, reported by Bruno Haible
53004         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53005
53006 2006-01-12  Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/ldd: New file.
53009         * build-aux/ldd.sh.in: New file.
53010         * MODULES.html.sh (Support for building libraries and executables): Add
53011         ldd.
53012
53013 2006-01-12  Bruno Haible  <bruno@clisp.org>
53014
53015         * m4/ldd.m4: New file.
53016
53017 2006-01-12  Bruno Haible  <bruno@clisp.org>
53018
53019         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53020         endless loop while replacing $auxdir with build-aux.
53021
53022 2006-01-11  Simon Josefsson  <jas@extundo.com>
53023
53024         * lib/stdint_.h (SIZE_MAX): Add missing (.
53025
53026 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53027
53028         Sync from coreutils.
53029         * lib/md5.c: Fix commentary typos.
53030         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53031         * lib/md5.h (__attribute__): Remove; unused.
53032         * lib/sha1.c: Fix commentary to match md5 better.
53033         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53034         so that we don't need to worry about alignment.  All uses changed.
53035         This merges the 2005-10-28 md5 change into sha1.
53036
53037 2006-01-11  Jim Meyering  <jim@meyering.net>
53038
53039         Sync from coreutils.
53040         * lib/md5.c (OP): Fix spacing.
53041
53042 2006-01-11  Bruno Haible  <bruno@clisp.org>
53043
53044         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53045         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53046         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53047
53048 2006-01-11  Bruno Haible  <bruno@clisp.org>
53049
53050         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53051         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53052         the "early" section as well.
53053
53054 2006-01-11  Bruno Haible  <bruno@clisp.org>
53055
53056         Avoid "ar: no archive members specified" error on MacOS X.
53057         * gnulib-tool (func_modules_add_dummy): New function.
53058         (func_import, func_create_testdir): Invoke it.
53059
53060 2006-01-11  Bruno Haible  <bruno@clisp.org>
53061
53062         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53063         with $auxdir in AC_CONFIG_FILES statements.
53064
53065 2006-01-11  Bruno Haible  <bruno@clisp.org>
53066
53067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53068         Initialize also noinst_HEADERS to empty.
53069
53070 2006-01-11  Bruno Haible  <bruno@clisp.org>
53071
53072         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53073         variables.
53074         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53075         autoreconf.
53076
53077 2006-01-11  Bruno Haible  <bruno@clisp.org>
53078
53079         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53080         overridable by the user.
53081         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53082
53083 2006-01-10  Simon Josefsson  <jas@extundo.com>
53084
53085         * modules/sys_socket: New file.
53086
53087 2006-01-10  Simon Josefsson  <jas@extundo.com>
53088
53089         * m4/sys_socket_h.m4: New file.
53090
53091 2006-01-10  Simon Josefsson  <jas@extundo.com>
53092
53093         * lib/socket_.h: New file.
53094
53095 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         * modules/readutmp (Maintainer): Add myself.
53098
53099 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53100
53101         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53102         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53103         People who are still concerned with buggy memcmp implementations
53104         can invoke gl_FUNC_MEMCMP themselves.
53105
53106 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         * lib/regex_internal.h (BITSET_WORD_BITS):
53109         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53110         preprocessor mishandles large unsigned values as if they were signed.
53111         Problem reported by Claudio Fontana in
53112         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53113
53114 2006-01-10  Jim Meyering  <jim@meyering.net>
53115
53116         Avoid the double-free (first in fts_read, second in fts_close) that
53117         would occur when an `active' directory is made inaccessible (e.g.,
53118         via chmod a-x) during a traversal.
53119         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53120         before returning.  Reproduce this failure by
53121         mkdir -p a/b; cd a; chmod a-x . b
53122         Reported by Stavros Passas.
53123
53124         Sync from coreutils.
53125         * lib/sha1.c: Tweak grammar in a comment.
53126
53127 2006-01-10  Jim Meyering  <jim@meyering.net>
53128
53129         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53130         Patch by Joerg Sonnenberger.
53131
53132 2006-01-10  Bruno Haible  <bruno@clisp.org>
53133
53134         * modules/readutmp: Depend on module free.
53135         * modules/strtok_r: Depend on module restrict.
53136
53137 2006-01-10  Bruno Haible  <bruno@clisp.org>
53138
53139         * modules/gettext (configure.ac): Add an invocation of
53140         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53141
53142 2006-01-10  Bruno Haible  <bruno@clisp.org>
53143
53144         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53145         Reported by Werner Lemberg <wl@gnu.org>.
53146
53147 2006-01-10  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/localcharset.c: Update from GNU gettext.
53150
53151 2006-01-10  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/argp.h (__const): Remove macro. Use const instead.
53154         * lib/argp-fmtstream.h (__const): Likewise.
53155         * lib/glob_.h (__const): Remove macro.
53156         * lib/glob-libc.h: Use const instead of __const.
53157
53158 2006-01-10  Bruno Haible  <bruno@clisp.org>
53159
53160         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53161         variable.
53162         Needed to avoid an automake error regarding the 'gettext' module.
53163
53164 2006-01-09  Simon Josefsson  <jas@extundo.com>
53165
53166         * modules/inet_ntop (Depends-on): Add restrict.
53167
53168 2006-01-09  Simon Josefsson  <jas@extundo.com>
53169
53170         * modules/gc-rijndael-tests (License): Put under LGPL.
53171
53172         * modules/gc-des-tests (License): Likewise.
53173
53174         * modules/gc-arcfour-tests (License): Likewise.
53175
53176         * modules/gc-arctwo-tests (License): Likewise.
53177
53178         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53179
53180         * modules/gc-hmac-sha1-tests (Files): Likewise.
53181
53182         * modules/gc-hmac-md5-tests (License): Likewise.
53183
53184         * modules/gc-sha1-tests (License): Likewise.
53185
53186         * modules/gc-md5-tests (License): Likewise.
53187
53188         * modules/gc-md4-tests (License): Likewise.
53189
53190         * modules/gc-md2-tests (License): Likewise.
53191
53192         * modules/gc-tests (License): Likewise.
53193
53194         * modules/des-tests (License): Likewise.
53195
53196         * modules/md4-tests (License): Likewise.
53197
53198         * modules/md2-tests (License): Likewise.
53199
53200 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53201
53202         Sync from coreutils:
53203
53204         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53205         * modules/lib-ignore: New file.
53206         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53207         chdir-safer.m4, lchmod.m4.
53208         * modules/openat: Add mkdirat.c, openat-priv.h.
53209
53210 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53211
53212         Sync from coreutils.
53213         * m4/lib-ignore.m4: New file.
53214         * m4/lchmod.m4: New file.
53215
53216 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53217
53218         Sync from coreutils.
53219         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53220         for write access: POSIX says that must fail.
53221         * lib/fts.c (diropen): Likewise.
53222         * lib/save-cwd.c (save_cwd): Likewise.
53223         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53224         well, for minor improvements on hosts that lack O_DIRECTORY.
53225         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53226         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53227         Fall back on chown if open failed with EACCES.
53228
53229         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53230         Report an error at compile-time if only a 1-second nominal clock
53231         resolution is found.
53232
53233         * lib/lchmod.h: New file.
53234         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53235         (make_dir_parents): Use lchown rather than chown, and
53236         lchmod rather than chmod.
53237
53238         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53239         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53240         "proc" reported by n0dalus.
53241
53242         * lib/mountlist.c: Include <limits.h>.
53243         (dev_from_mount_options)
53244         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53245         New function.  It no longer assumes "dev=" has the System V meaning
53246         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53247         (read_file_system_list)
53248         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53249         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53250         dev= in that case.
53251
53252         * lib/posixtm.h (PDS_PRE_2000): New macro.
53253         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53254         allow_century.  All usages changed.  Reject dates outside the range
53255         1969-1999 if PDS_PRE_2000 is used.
53256
53257 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53258
53259         Sync from coreutils.
53260         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53261         (Time of day items): Mention the possibility of leap seconds.
53262         Problem reported by Dr. David Alan Gilbert.
53263
53264 2006-01-09  Jim Meyering  <jim@meyering.net>
53265
53266         Sync from coreutils.
53267
53268         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53269
53270         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53271
53272         * lib/modechange.c (mode_compile): Reject an invalid mode string
53273         that starts with an octal digit.  From Andreas Gruenbacher.
53274
53275         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53276         and dup to open_safer and dup_safer, respectively.
53277         (openat_permissive): Fix typo in comment.
53278
53279         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53280         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53281         (_): Remove; no longer needed.
53282         (openat): Renamed from rpl_openat; no need for rpl_openat
53283         since openat.h renames openat for us.
53284         Replace most of the body with a call to openat_permissive,
53285         to avoid duplicate code.
53286         Port to (probably hypothetical) environments were mode_t is
53287         wider than int.
53288         (openat_permissive): Require mode arg, so that we can check
53289         types better.  Put it just after flags.  Change cwd failure
53290         indicator from pointer-to-bool to pointer-to-errno-value.
53291         All callers changed.
53292         Invoke openat_save_fail and/or openat_restore_fail if
53293         cwd_errno is null, so that openat can call us.
53294         (openat_permissive, fdopendir, fstatat, unlinkat):
53295         Simplify errno handling to avoid some duplicate code,
53296         as it's OK to set errno on success.
53297         * lib/openat.h: Revamp code so that function macros depend on
53298         __OPENAT_PREFIX only, not also on AT_FDCWD.
53299         (openat_ro): Remove.  Caller changed to use openat_permissive.
53300         (openat_permissive): Now a macro, if not a function.
53301         (openat_restore_fail, openat_save_fail): Now always functions,
53302         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53303
53304         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53305         and openat.c.
53306         * lib/mkdirat.c: Include openat-priv.h.
53307         Remove definitions of macros defined therein.
53308         * lib/openat.c: Likewise.
53309
53310         * lib/mkdirat.c (mkdirat): New file and function.
53311         * lib/openat.h (mkdirat): Declare.
53312
53313         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53314
53315         * lib/openat.h (openat_permissive): Declare.
53316         (openat_ro): Define.
53317
53318         * lib/openat.c (EXPECTED_ERRNO): New macro.
53319         (openat_permissive): New function -- used in remove.c rewrite.
53320         (all functions): Set errno just before returning, only if there
53321         was an actual failure.
53322         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53323
53324         Emulate openat-family functions using Linux's procfs, if possible.
53325         Idea and some code based on Ulrich Drepper's glibc changes.
53326
53327         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53328         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53329         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53330         before falling back on save_cwd and restore_cwd.
53331         (fdopendir, fstatat, unlinkat): Likewise.
53332
53333         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53334         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53335
53336         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53337         as second argument to va_arg.  Otherwise, some versions of gcc
53338         warn that `if this code is reached, the program will abort'.
53339
53340 2006-01-09  Jim Meyering  <jim@meyering.net>
53341
53342         Sync from coreutils.
53343         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53344         Require openat-priv.h.
53345
53346 2006-01-09  Bruno Haible  <bruno@clisp.org>
53347
53348         * modules/strnlen (Include): Use strnlen.h.
53349
53350 2006-01-09  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53353
53354 2006-01-09  Bruno Haible  <bruno@clisp.org>
53355
53356         * lib/sysexit_.h (EX_OK): New macro.
53357         Suggested by Martin Lambers <marlam@marlam.de>.
53358
53359 2006-01-09  Bruno Haible  <bruno@clisp.org>
53360
53361         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53362         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53363
53364 2006-01-09  Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53367         numbers.
53368
53369 2006-01-09  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53372         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53373         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53374         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53375
53376 2006-01-09  Bruno Haible  <bruno@clisp.org>
53377
53378         * build-aux/javacomp.sh.in: New file, moved from lib/.
53379         * modules/javacomp-script (Files): Update.
53380         (configure.ac): Add AC_CONFIG_FILES invocation.
53381         (EXTRA_DIST): Remove variable.
53382
53383         * build-aux/javaexec.sh.in: New file, moved from lib/.
53384         * modules/javaexec (Files): Update.
53385         (configure.ac): Add AC_CONFIG_FILES invocation.
53386         (EXTRA_DIST): Remove javaexec.sh.in.
53387
53388         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53389         * modules/csharpcomp-script (Files): Update.
53390         (configure.ac): Add AC_CONFIG_FILES invocation.
53391         (EXTRA_DIST): Remove variable.
53392
53393         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53394         * modules/csharpexec (Files): Update.
53395         (configure.ac): Add AC_CONFIG_FILES invocation.
53396         (EXTRA_DIST): Remove csharpexec.sh.in.
53397
53398 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53399
53400         Sync from coreutils.
53401
53402         Add POSIX ACL support
53403         * lib/acl.h (copy_acl, set_acl): Add declarations.
53404         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53405         systems other than Linux.
53406         (chmod_or_fchmod): New function: use fchmod when possible,
53407         and chmod otherwise.
53408         (file_has_acl): Add a POSIX ACL implementation, with a
53409         Linux-specific subcase.
53410         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53411         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53412         acls are unsupported.
53413         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53414         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53415         are unsupported.
53416
53417 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53418
53419         Sync from coreutils.
53420         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53421
53422 2006-01-07  Bruno Haible  <bruno@clisp.org>
53423
53424         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53425         gl_EARLY.
53426
53427 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53428
53429         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53430         Problem reported for Mingw by Mark Junker.
53431
53432 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53433
53434         * README: Gnulib normally doesn't generate a tarball.
53435
53436 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53439         long int, not int, for nanosecond counts, so that people who are
53440         used to POSIX struct timespec won't be surprised.  Reported by Jim
53441         Meyering.
53442
53443 2005-12-28  Bruno Haible  <bruno@clisp.org>
53444
53445         * build-aux/config.rpath: Update from GNU gettext.
53446
53447 2005-12-16  Jim Meyering  <jim@meyering.net>
53448
53449         * modules/fprintftime: New module.
53450         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53451
53452 2005-12-16  Jim Meyering  <jim@meyering.net>
53453
53454         * m4/fprintftime.m4: New file.
53455
53456 2005-12-16  Jim Meyering  <jim@meyering.net>
53457
53458         * lib/fprintftime.c, lib/fprintftime.h: New files.
53459
53460 2005-12-15  Simon Josefsson  <jas@extundo.com>
53461
53462         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53463         new m4/socklen.m4.
53464
53465 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53466
53467         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53468         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53469
53470 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53471
53472         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53473         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53474         struct uparams is valid. Fall back to the default values if it is
53475         not.
53476
53477 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53478
53479         * modules/argp (Files): Add argp-pin.c
53480         (Depends-on): dirname
53481         (lib_SOURCES): Add argp-pin.c
53482
53483 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53484
53485         * m4/argp.m4:  Check if program_invocation_name and
53486         program_invocation_short_name are declared and define appropriate
53487         macros if they are not.
53488
53489 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53490
53491         * lib/argp-help.c (__argp_base_name): New function
53492         (__argp_short_program_name): Rewrite using __argp_base_name
53493         * lib/argp-namefrob.h: Define program_invocation_name and
53494         program_invocation_short_name if requested
53495         (__argp_base_name): Add prototype
53496         * lib/argp-parse.c (argp_def): Use gettext wrappers
53497         (argp_default_parser): Use __argp_base_name
53498         * lib/argp-pin.c: New file. Defines program_invocation_name and
53499         program_invocation_short_name on systems that lack them.
53500
53501 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53502
53503         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53504         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53505         porting problem reported by Georg Schwarz in
53506         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53507
53508 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53509
53510         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53511         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53512         porting problem reported by Georg Schwarz in
53513         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53514
53515 2005-12-05  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53518         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53519         Reported by Mark Junker <mjscod@gmx.de>.
53520
53521 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53524         Use implementation from Albert Chin, with some
53525         comments/corrections by Stepan Kasal and myself.
53526
53527 2005-12-02  Bruno Haible  <bruno@clisp.org>
53528
53529         * gnulib-tool (func_import): Accept GPLed build tool modules when
53530         --lgpl is given.
53531         * modules/csharpcomp-script: New file.
53532         * modules/csharpcomp: Depend on it.
53533         * modules/javacomp-script: New file.
53534         * modules/javacomp: Depend on it.
53535         Suggested by Simon Josefsson.
53536
53537 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53540         statement, to work around an HP-UX 10.20 compiler bug reported by
53541         Peter O'Gorman.
53542
53543 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53544
53545         * modules/savedir (Depends-on): Add openat.
53546
53547 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53550         (uintmax_t) [defined uintmax_t]: Do not declare.
53551         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53552         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53553         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53554         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53555         sake of portability to weird hosts that C allows (though we don't
53556         know of any practical examples).
53557
53558         * lib/savedir.h (fdsavedir): New decl.
53559         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53560         contains most of the former guts of savedir.
53561         (savedir): Use savedirstream.
53562         Include "openat.h".
53563
53564 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         * modules/obstack (Files): Add m4/ulonglong.m4.
53567         Problem reported by Davide Angelocola.
53568
53569 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53570
53571         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53572         coreutils no longer futzes with rounding modes.
53573
53574 2005-11-14  Jim Meyering  <jim@meyering.net>
53575
53576         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53577         replacement of mkstemp.
53578
53579 2005-11-10  Simon Josefsson  <jas@extundo.com>
53580
53581         * lib/readline.c: Remove EOL.
53582
53583 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53584
53585         * modules/gethrxtime (Depends-on): Add gettime.
53586
53587 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53590         or gettimeofday; no longer needed.
53591
53592 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53593
53594         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53595         time business.
53596         (gethrxtime) [! (HAVE_NANOUPTIME
53597         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53598         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53599         our own approximation.
53600
53601 2005-11-08  Eric Blake  <ebb9@byu.net>
53602
53603         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53604
53605 2005-11-08  Eric Blake  <ebb9@byu.net>
53606
53607         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53608
53609 2005-11-04  Bruno Haible  <bruno@clisp.org>
53610
53611         * gnulib-tool: Implement --update mode.
53612
53613 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53614
53615         Fix porting problem reported by Theodoros V. Kalamatianos.
53616         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53617         Don't assume that futimes failing means we must fail.
53618
53619 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53620
53621         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53622         variables to suggest the intended function of the PATH_MAX check.
53623
53624 2005-10-30  Kean Johnston  <jkj@sco.com>
53625
53626         Trivial changes to support SCO systems.
53627         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53628         as PATH_MAX.
53629         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53630         where __ptr is null when no I/O is pending.
53631
53632 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53635         leave errno alone.  Problem reported by Dmitry V. Levin.
53636
53637 2005-10-28  Simon Josefsson  <jas@extundo.com>
53638
53639         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53640         Test more.
53641
53642         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53643
53644         * modules/md2, modules/md2-tests: New files.
53645
53646 2005-10-28  Simon Josefsson  <jas@extundo.com>
53647
53648         * m4/inet_ntop.m4: More tests.
53649
53650         * m4/gc-md2.m4, md2.m4: New file.
53651
53652 2005-10-28  Simon Josefsson  <jas@extundo.com>
53653
53654         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53655         "restrict" keywords, as per POSIX.  Protect the function
53656         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53657         Don't use K&R prototypes.  Check the sprintf return values.
53658         Re-define EAFNOSUPPORT if not present.  Indent.
53659
53660         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53661         suggested by Bruno Haible <bruno@clisp.org>.
53662
53663         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53664
53665         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53666
53667         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53668         libgcrypt).
53669
53670         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53671
53672         * lib/md2.h, lib/md2.c: New files.
53673
53674 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53677         errno alone.  Problem reported by Frederic Jolliton.
53678
53679 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * modules/verify (License): Change from GPL to LGPL.  This is a
53682         tiny module and there are apparently near-equivalents that are
53683         under the BSD license.
53684
53685 2005-10-24  Simon Josefsson  <jas@extundo.com>
53686
53687         * modules/sha1: Relicense to LGPL.
53688
53689 2005-10-24  Simon Josefsson  <jas@extundo.com>
53690
53691         * lib/md4.h: Shrink buffer size, now that we changed the type.
53692
53693 2005-10-23  Simon Josefsson  <jas@extundo.com>
53694
53695         * gnulib-tool (func_import): Fix --tests-base.
53696
53697 2005-10-22  Simon Josefsson  <jas@extundo.com>
53698
53699         * modules/arcfour (Depends-on): Need stdint.
53700
53701 2005-10-22  Simon Josefsson  <jas@extundo.com>
53702
53703         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53704         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53705
53706 2005-10-22  Simon Josefsson  <jas@extundo.com>
53707
53708         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53709         suggested by Bruno Haible <bruno@clisp.org>.
53710
53711 2005-10-22  Simon Josefsson  <jas@extundo.com>
53712
53713         * lib/crc.h: Include stddef.h, for size_t.
53714
53715 2005-10-22  Simon Josefsson  <jas@extundo.com>
53716
53717         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53718         arcfour_context struct (simplify test vector testing in GNU
53719         Shishi).
53720
53721 2005-10-21  Simon Josefsson  <jas@extundo.com>
53722
53723         * modules/des, modules/des-tests: New files.
53724
53725         * modules/gc-des, modules/gc-des-tests: New files.
53726
53727         * tests/test-des.c, tests/test-gc-des.c: New file.
53728
53729 2005-10-21  Simon Josefsson  <jas@extundo.com>
53730
53731         * modules/arctwo, modules/arctwo-tests: New files.
53732
53733         * tests/test-arctwo.c: New file.
53734
53735         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53736
53737         * tests/test-gc-arctwo.c: New file.
53738
53739 2005-10-21  Simon Josefsson  <jas@extundo.com>
53740
53741         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53742         Bruno Haible <bruno@clisp.org>.
53743
53744         * m4/gc-des.m4: New file.
53745
53746 2005-10-21  Simon Josefsson  <jas@extundo.com>
53747
53748         * m4/arctwo.m4: New file.
53749
53750         * m4/gc-arctwo.m4: New file.
53751
53752 2005-10-21  Simon Josefsson  <jas@extundo.com>
53753
53754         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53755         block.
53756
53757 2005-10-21  Simon Josefsson  <jas@extundo.com>
53758
53759         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53760         <bruno@clisp.org>.
53761
53762         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53763
53764         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53765         Bruno Haible <bruno@clisp.org>.
53766
53767         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53768         <bruno@clisp.org>.
53769
53770 2005-10-21  Simon Josefsson  <jas@extundo.com>
53771
53772         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53773
53774 2005-10-21  Simon Josefsson  <jas@extundo.com>
53775
53776         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53777
53778 2005-10-21  Simon Josefsson  <jas@extundo.com>
53779
53780         * lib/des.h, lib/des.c: New files.
53781
53782         * lib/gc-gnulib.c: Support DES.c
53783
53784 2005-10-21  Simon Josefsson  <jas@extundo.com>
53785
53786         * lib/arctwo.h, lib/arctwo.c: New files.
53787
53788         * lib/gc-gnulib.c: Support ARCTWO.
53789
53790 2005-10-21  Simon Josefsson  <jas@extundo.com>
53791
53792         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53793         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53794
53795 2005-10-21  Simon Josefsson  <jas@extundo.com>
53796
53797         * gnulib-tool (func_import, func_create_testdir): Define automake
53798         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53799         Makefile.am snippet),
53800         suggested by Bruno Haible <bruno@clisp.org>.
53801
53802         * modules/gc (Makefile.am): Use it.
53803
53804 2005-10-21  Bruno Haible  <bruno@clisp.org>
53805
53806         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53807         patch.
53808
53809 2005-10-19  Simon Josefsson  <jas@extundo.com>
53810
53811         * tests/test-gc-rijndael.c: New file.
53812
53813         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53814
53815 2005-10-19  Simon Josefsson  <jas@extundo.com>
53816
53817         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53818         interface too.
53819
53820 2005-10-19  Simon Josefsson  <jas@extundo.com>
53821
53822         * tests/test-gc-arcfour.c: New file.
53823
53824         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53825
53826 2005-10-19  Simon Josefsson  <jas@extundo.com>
53827
53828         * modules/gc-md4, modules/gc-md4-tests: New file.
53829
53830         * tests/test-gc-md4.c: New file.
53831
53832 2005-10-19  Simon Josefsson  <jas@extundo.com>
53833
53834         * m4/gc-md4.m4: New file.
53835
53836 2005-10-19  Simon Josefsson  <jas@extundo.com>
53837
53838         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53839         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53840         <kasal@ucw.cz>.
53841
53842 2005-10-19  Simon Josefsson  <jas@extundo.com>
53843
53844         * m4/gc-arcfour.m4: New file.
53845
53846         * m4/gc-rijndael.m4: New file.
53847
53848 2005-10-19  Simon Josefsson  <jas@extundo.com>
53849
53850         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53851
53852 2005-10-19  Simon Josefsson  <jas@extundo.com>
53853
53854         * lib/gc-gnulib.c: Support ARCFOUR.
53855
53856 2005-10-19  Simon Josefsson  <jas@extundo.com>
53857
53858         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53859         support.
53860
53861         * lib/gc.h: Add ECB enum type.
53862
53863         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53864
53865 2005-10-18  Simon Josefsson  <jas@extundo.com>
53866
53867         * tests/test-md5.c: New file.
53868
53869         * modules/md5-tests: New file.
53870
53871 2005-10-18  Simon Josefsson  <jas@extundo.com>
53872
53873         * tests/test-md4.c: New file.
53874
53875         * modules/md4, modules/md4-tests: New files.
53876
53877 2005-10-18  Simon Josefsson  <jas@extundo.com>
53878
53879         * m4/md4.m4: New file.
53880
53881 2005-10-18  Simon Josefsson  <jas@extundo.com>
53882
53883         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53884
53885 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53886
53887         * gnulib-tool (func_create_testdir): Omit the second check whether
53888         BUILT_SOURCES in nonempty.
53889
53890 2005-10-17  Simon Josefsson  <jas@extundo.com>
53891
53892         * tests/test-rijndael.c: New file.
53893
53894 2005-10-17  Simon Josefsson  <jas@extundo.com>
53895
53896         * modules/sha1: Depend on stdint instead of md5.
53897
53898         * modules/md5: Depend on stdint, remove uint32_t.
53899
53900 2005-10-17  Simon Josefsson  <jas@extundo.com>
53901
53902         * modules/gc-sha1-tests: New file.
53903
53904         * tests/test-gc-sha1.c: New file.
53905
53906 2005-10-17  Simon Josefsson  <jas@extundo.com>
53907
53908         * m4/md5.m4: Remove call to uint32_t.m4.
53909
53910 2005-10-17  Simon Josefsson  <jas@extundo.com>
53911
53912         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53913
53914         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53915         md5.h.
53916
53917         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53918
53919         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
53920
53921 2005-10-17  Simon Josefsson  <jas@extundo.com>
53922
53923         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
53924
53925 2005-10-17  Simon Josefsson  <jas@extundo.com>
53926
53927         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
53928
53929 2005-10-17  Simon Josefsson  <jas@extundo.com>
53930
53931         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
53932
53933         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
53934
53935 2005-10-17  Bruno Haible  <bruno@clisp.org>
53936
53937         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
53938         that it can also be used in a test.
53939
53940 2005-10-16  Bruno Haible  <bruno@clisp.org>
53941
53942         * gnulib-tool (func_emit_tests_Makefile_am): Also define
53943         TESTS_ENVIRONMENT, so that individual tests can augment it.
53944
53945         * gnulib-tool (func_create_testdir): Use an intermediate target for
53946         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
53947         macros, like $(ALLOCA_H), which cannot be passed through the command
53948         line.
53949
53950 2005-10-15  Simon Josefsson  <jas@extundo.com>
53951
53952         * modules/rijndael-tests: New file.
53953
53954         * modules/rijndael: New file.
53955
53956 2005-10-15  Simon Josefsson  <jas@extundo.com>
53957
53958         * m4/rijndael.m4: New file.
53959
53960 2005-10-15  Simon Josefsson  <jas@extundo.com>
53961
53962         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
53963
53964         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
53965
53966 2005-10-14  Simon Josefsson  <jas@extundo.com>
53967
53968         * tests/test-arcfour.c: New file.
53969
53970         * modules/arcfour, modules/arcfour-tests: New files.
53971
53972 2005-10-14  Simon Josefsson  <jas@extundo.com>
53973
53974         * m4/arcfour.m4: New file.
53975
53976 2005-10-14  Simon Josefsson  <jas@extundo.com>
53977
53978         * lib/arcfour.h, lib/arcfour.c: New files.
53979
53980 2005-10-14  Roland McGrath  <roland@redhat.com>
53981
53982         Import from libc.  [BZ #1331]
53983         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
53984         macro argument.
53985         Reported by Matej Vela <vela@debian.org>.
53986
53987 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53988
53989         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
53990         include <wchar.h>; no longer needed.
53991
53992 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53993
53994         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
53995
53996 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
53997         and  Ulrich Drepper  <drepper@redhat.com>
53998
53999         Import from libc.
54000         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54001         instead of inline stream orientation test and two separate
54002         function calls.  Pay no attention to USE_IN_LIBIO.
54003
54004 2005-10-13  Simon Josefsson  <jas@extundo.com>
54005
54006         * modules/gc-hmac-md5-tests: New file.
54007
54008         * tests/test-gc-hmac-sha1.c: New file.
54009
54010         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54011
54012         * modules/gc-hmac-md5-tests: New file.
54013
54014         * tests/test-gc-md5.c: New file.
54015
54016         * modules/gc-md5-tests: New file.
54017
54018 2005-10-13  Simon Josefsson  <jas@extundo.com>
54019
54020         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54021         Move memory allocation outside of loop.
54022
54023 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54024
54025         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54026         intermediate directory is in a read-only file system.  Problem
54027         reported by Eric Blake.
54028
54029 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54030
54031         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54032
54033 2005-10-12  Simon Josefsson  <jas@extundo.com>
54034
54035         * tests/test-hmac-sha1.c: New file.
54036
54037         * modules/hmac-sha1-tests: New file.
54038
54039         * modules/hmac-sha1: New file.
54040
54041 2005-10-12  Simon Josefsson  <jas@extundo.com>
54042
54043         * modules/gc-sha1: New file.
54044
54045 2005-10-12  Simon Josefsson  <jas@extundo.com>
54046
54047         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54048
54049         * tests/test-gc-pbkdf2-sha1.c: New file.
54050
54051 2005-10-12  Simon Josefsson  <jas@extundo.com>
54052
54053         * modules/gc-md5, modules/gc-hmac-md5: New files.
54054
54055         * modules/gc (Files): Remove md5, memxor and hmac files.
54056
54057 2005-10-12  Simon Josefsson  <jas@extundo.com>
54058
54059         * m4/gc-pbkdf2-sha1.m4: New file.
54060
54061         * m4/gc-hmac-sha1.m4: New file.
54062
54063         * m4/gc-sha1: New file.
54064
54065         * m4/hmac-sha1.m4: New file.
54066
54067 2005-10-12  Simon Josefsson  <jas@extundo.com>
54068
54069         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54070
54071         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54072
54073 2005-10-12  Simon Josefsson  <jas@extundo.com>
54074
54075         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54076         suggested by Bruno Haible <bruno@clisp.org>.
54077
54078 2005-10-12  Simon Josefsson  <jas@extundo.com>
54079
54080         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54081
54082 2005-10-12  Simon Josefsson  <jas@extundo.com>
54083
54084         * lib/gc-pbkdf2-sha1.c: New file.
54085
54086         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54087
54088 2005-10-12  Simon Josefsson  <jas@extundo.com>
54089
54090         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54091
54092         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54093
54094 2005-10-12  Simon Josefsson  <jas@extundo.com>
54095
54096         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54097         GC_USE_HMAC_MD5, respectively.
54098
54099         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54100         (gc_md5): Fix typo.
54101
54102         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54103
54104         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54105
54106         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54107
54108 2005-10-12  Bruno Haible  <bruno@clisp.org>
54109
54110         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54111         Reported by Stepan Kasal <kasal@ucw.cz>.
54112
54113 2005-10-11  Simon Josefsson  <jas@extundo.com>
54114
54115         * tests/test-crc.c: New file.
54116
54117         * modules/crc, modules/crc-tests: New files.
54118
54119 2005-10-11  Simon Josefsson  <jas@extundo.com>
54120
54121         * m4/crc.m4: New file.
54122
54123 2005-10-11  Simon Josefsson  <jas@extundo.com>
54124
54125         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54126
54127         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54128
54129         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54130
54131 2005-10-11  Simon Josefsson  <jas@extundo.com>
54132
54133         * lib/crc.h, lib/crc.c: New files.
54134
54135         * lib/gc.h (gc_hash_buffer): Add doc.
54136
54137 2005-10-11  Bruno Haible  <bruno@clisp.org>
54138
54139         * modules/c-strcasestr: New file.
54140         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54141
54142 2005-10-11  Bruno Haible  <bruno@clisp.org>
54143
54144         * modules/c-strcase: New file.
54145         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54146
54147 2005-10-11  Bruno Haible  <bruno@clisp.org>
54148
54149         * lib/strcasecmp.c: Include limits.h.
54150         (strcasecmp): Avoid integer overflow on exotic platforms.
54151         * lib/strncasecmp.c: Include limits.h.
54152         (strncasecmp): Avoid integer overflow on exotic platforms.
54153         Reported by Paul Eggert.
54154
54155 2005-10-11  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/c-strcasestr.h: New file, from GNU gettext.
54158         * lib/c-strcasestr.c: New file, from GNU gettext.
54159
54160 2005-10-11  Bruno Haible  <bruno@clisp.org>
54161
54162         * lib/c-strcase.h: New file, from GNU gettext.
54163         * lib/c-strcasecmp.c: New file, from GNU gettext.
54164         * lib/c-strncasecmp.c: New file, from GNU gettext.
54165
54166 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         * modules/mempcpy (License): GPL -> LGPL.
54169         * modules/strchrnul (License): Likewise.
54170         * modules/sysexits (License): Likewise.
54171
54172 2005-10-08  Simon Josefsson  <jas@extundo.com>
54173
54174         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54175
54176 2005-10-07  Simon Josefsson  <jas@extundo.com>
54177
54178         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54179
54180 2005-10-06  Simon Josefsson  <jas@extundo.com>
54181
54182         * tests/test-hmac-md5.c: New file.
54183
54184         * modules/hmac-md5-tests: New file.
54185
54186         * modules/hmac-md5: New file.
54187
54188 2005-10-06  Simon Josefsson  <jas@extundo.com>
54189
54190         * m4/hmac-md5.m4: New file.
54191
54192         * m4/memxor.m4: Require gl_C_RESTRICT.
54193
54194 2005-10-06  Simon Josefsson  <jas@extundo.com>
54195
54196         * lib/memxor.c (memxor): Avoid casts and warnings.
54197
54198 2005-10-06  Simon Josefsson  <jas@extundo.com>
54199
54200         * lib/hmac-md5.c: New file.
54201
54202         * lib/hmac.h: New file.
54203
54204 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54207         promotes to int, not unsigned int, to catch the AIX 5.3
54208         compiler bug.
54209
54210 2005-10-05  Simon Josefsson  <jas@extundo.com>
54211
54212         * modules/memxor: New file.
54213
54214         * modules/iconv (Files): Move config.rpath to havelib, it is used
54215         there.
54216
54217         * modules/havelib (Files): Add config.rpath.
54218
54219 2005-10-05  Simon Josefsson  <jas@extundo.com>
54220
54221         * m4/memxor.m4: New file.
54222
54223 2005-10-05  Simon Josefsson  <jas@extundo.com>
54224
54225         * lib/memxor.c (memxor): Fix compiler error.
54226
54227         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54228         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54229
54230         * lib/memxor.h, lib/memxor.c: New files.
54231
54232         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54233         we assume all systems have it, suggested by Jim Meyering
54234         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54235         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54236         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54237         same reasons.
54238
54239 2005-10-05  Simon Josefsson  <jas@extundo.com>
54240
54241         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54242
54243 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54246         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54247         needed, since the source code now assumes these .h files.
54248
54249 2005-10-05  Derek Price  <derek@ximbiot.com>
54250
54251         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54252
54253 2005-10-05  Bruno Haible  <bruno@clisp.org>
54254
54255         * modules/stdint (License): Change to LGPL.
54256
54257 2005-10-04  Simon Josefsson  <jas@extundo.com>
54258
54259         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54260         D. Baushke" <mdb@gnu.org>.
54261
54262 2005-10-04  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/verify.h (verify_true): Provide alternative definition for C++.
54265
54266 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54267
54268         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54269         (SSIZE_MAX): New macro, if not already defined.
54270         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54271         than 2 GiB.
54272
54273 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         Sync from coreutils.
54276         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54277         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54278         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54279         ULLONG_MAX doesn't work with 2.7.2.1.
54280
54281 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54282
54283         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54284         From Ben Pfaff.
54285
54286         * modules/exclude (Depends-on): Depend on verify.
54287         * modules/strtoimax (Depends-on): Likewise.
54288         * modules/utimecmp (Depends-on): Likewise.
54289
54290 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * lib/exclude.c: Include verify.h.
54293         (verify): Remove.  All callers changed to use verify.h's version.
54294         * lib/strtoimax.c: Likewise.
54295         * lib/utimecmp.c: Likewis.e
54296
54297         Sync from coreutils.
54298         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54299         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54300         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54301         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54302         bother returning ENOSYS if settimeofday or stime fails; just let
54303         them return whatever errno they want to return.
54304         * lib/utimens.c: Include unistd.h, for dup2.
54305         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54306         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54307
54308 2005-10-02  Jim Meyering  <jim@meyering.net>
54309
54310         Sync from coreutils.
54311         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54312         from glibc-2.2.5 that fails for read-only files.
54313
54314 2005-10-02  Jim Meyering  <jim@meyering.net>
54315
54316         Sync from coreutils.
54317         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54318         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54319         `#if HAVE_CONFIG_H'.
54320         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54321         Remove AT_FDCWD test.
54322         Do not consume the fd unless successful.
54323         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54324         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54325         block, so that we don't even try to compile it if settimeofday is
54326         available.  This works around a compilation failure on OSF1 V5.1,
54327         due to stime requiring a `long int*' while tv_sec is `int'.
54328
54329 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54330
54331         Sync from coreutils.
54332         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54333         against `yes', rather than just testing for nonempty.
54334
54335 2005-10-01  Simon Josefsson  <jas@extundo.com>
54336
54337         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54338         and Darwin.
54339
54340         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54341         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54342         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54343         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54344         Check if struct addrinfo is declared.
54345
54346 2005-10-01  Simon Josefsson  <jas@extundo.com>
54347
54348         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54349         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54350         AI_* and EAI_* definitions.  Protect function declarations.
54351
54352 2005-10-01  Jim Meyering  <jim@meyering.net>
54353
54354         Sync from coreutils.
54355
54356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54357         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54358         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54360         in the inet and nsl libraries.  Required on Solaris 5.7.
54361
54362 2005-10-01  Jim Meyering  <jim@meyering.net>
54363
54364         Sync from coreutils.
54365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54366         in the inet and nsl libraries.  Required on Solaris 5.7.
54367
54368 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54369
54370         * lib/getdelim.c (getdelim): Remove unused variables.
54371
54372 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54373
54374         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54375         so that the code works even with ancient cpp.  Portability problem
54376         with GCC 2.7.2.1 reported by Thomas M.Ott.
54377
54378 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * modules/regex (Depends-on): Add strcase.
54381
54382         * modules/gethostname (Licence): Change from GPL to LGPL, since
54383         gethostname.c is a trivial implementation of a standard library
54384         function.
54385         * modules/poll (License): Change from GPL to LGPL, since it's
54386         derived from LGPL code.
54387
54388 2005-09-27  Jim Meyering  <jim@meyering.net>
54389
54390         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54391         HAVE_CONFIG_H.
54392
54393         * lib/intprops.h (signed_type_or_expr__): Define.
54394         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54395         for unsigned types.
54396
54397 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * lib/verify.h (verify_expr): Remove, replacing with:
54400         (verify_true): New macro that returns true instead of void.
54401         (verify_type__): Remove.
54402         (verify): Use verify_true rather than verify_type__.
54403
54404 2005-09-26  Bruno Haible  <bruno@clisp.org>
54405
54406         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54407         is necessary.
54408         (lib_SOURCES): Remove mbchar.c.
54409         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54410         (Files): Add m4/mbrtowc.m4.
54411         * modules/mbiter: Likewise.
54412         * modules/mbuiter: Likewise.
54413
54414 2005-09-26  Bruno Haible  <bruno@clisp.org>
54415
54416         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54417         compile mbchar.c if they are not both present.
54418         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54419         * m4/mbiter.m4 (gl_MBITER): Likewise.
54420         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54421         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54422         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54423
54424 2005-09-25  Jim Meyering  <jim@meyering.net>
54425
54426         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54427         also uses socklen_t.
54428
54429 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * lib/utimens.c (ENOSYS): Define if not already defined.
54432         (futimens): Support having a null PATH if the file descriptor
54433         is nonnegative.
54434
54435         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54436         Remove.
54437         (__attribute): Define to empty unless GCC 3.1 or later.
54438         This works around a core dump on OpenBSD 3.4, which has GCC
54439         2.95.3, which dumps core when given __attribute__(()).  It also
54440         simplifies other tests, since we really don't want to bother with
54441         worrying about which ancient version of GCC supported what.
54442         Original problem reported by Yoann Vandoorselaere, with part of
54443         the fix suggested by Derek Price.
54444
54445 2005-09-24  Jim Meyering  <jim@meyering.net>
54446
54447         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54448         so we can once again use a positive bitfield width of 1 -- now we
54449         don't have to explain why we were using a bitfield width of 2.
54450
54451 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54452
54453         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54454         and similarly for the other external symbols.  Problem reported
54455         by James Gallager.
54456
54457         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54458         bug reported by Jim Meyering.
54459
54460         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54462         not needed, since socklen is a prerequisite module.
54463
54464 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54467         Problem reported by Eric Blake.
54468         (getaddrinfo): Initialize se so that it's not garbage.
54469         Redo internal storage allocation so that it doesn't make unportable
54470         assumptions about alignment.
54471         Fix a memory leak.
54472
54473         * lib/utimens.c (futimens): Use futimesat if available.
54474         Prefer it to futimes since it doesn't have the futimes bug.
54475
54476         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54477         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54478         Instead, declare a function that returns a pointer to an array,
54479         and use verify_type__ to declare the size of the array.
54480         Problem and germ of a solution reported by Bruno Haible.
54481         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54482         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54483
54484 2005-09-23  Jim Meyering  <jim@meyering.net>
54485
54486         Sync from coreutils.
54487         Correct build failure (socklen_t not defined) on at least
54488         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54490
54491 2005-09-23  Jim Meyering  <jim@meyering.net>
54492
54493         * modules/getaddrinfo (Depends-on): Add socklen.
54494
54495 2005-09-23  Bruno Haible  <bruno@clisp.org>
54496
54497         * tests/test-verify.c: New file.
54498
54499 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54500
54501         Sync from coreutils.
54502
54503         * modules/argmatch (Depends-on): Add verify.
54504         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54505         unistd-safer.
54506         * modules/save-cwd (Depends-on): Likewise.
54507
54508         * modules/openat (Files): Add lib/openat-die.c.
54509         (Depends-on): Remove error, exitfail.
54510         Add dirname.
54511
54512         * modules/verify: New file.
54513         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54514         with "verify" module.
54515
54516 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54517
54518         Sync from coreutils.
54519
54520         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54521         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54522         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54523         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54524         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54525         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54526         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54527         Don't bother checking for string.h, stdlib.h, unistd.h.
54528         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54529         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54530         module's job.
54531         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54532         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54533
54534         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54535         (gl_GETDATE): Use it.
54536
54537         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54538
54539 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54540
54541         Sync from coreutils.
54542
54543         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54544         stat-time.h.
54545         * lib/argmatch.h: Include verify.h
54546         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54547         (ARGMATCH_ASSERT): Remove; unused.
54548         * lib/canonicalize.c: Assume STDC_HEADERS.
54549         * lib/exclude.c: Include "strcase.h".
54550         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54551         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54552         and stdio-safer.h.
54553         (getusershell): Call fopen, not fopen_safer.
54554         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54555         Do not include unistd-safer.h.
54556         (save_cwd): Don't call fd_safer; no longer needed
54557         now that we include fcntl--.h.
54558
54559         * lib/getdate.y (relative_time): New type.
54560         (RELATIVE_TIME_0): New constant.
54561         (parser_control): Use relative_time instead of doing it ourselves.
54562         (%union): Add new relative_time rel member.
54563         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54564         Now typeless.
54565         (relunit, relunit_snumber): Now of type rel.
54566         (zone, rel, relunit, get_date): Adjust to above changes.
54567
54568         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54569         Do not include unistd-safer.h.
54570         (getloadavg): Don't call fd_safer; no longer needed
54571         now that we include fcntl--.h.
54572
54573         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54574         (make_dir_parents): Treat ENOSYS like EEXIST.
54575
54576         Improve quality of diagnostics on restore_cwd failure.
54577         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54578         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54579         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54580         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54581         each time through the loop.  Do not diagnose restore_cwd failure;
54582         that is the caller's job (and perhaps the caller does not care).
54583
54584         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54585         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54586         If the file already exists but is not a directory, don't bother
54587         to try to make its parents.
54588         Close potential file descriptor leak if we can't chdir("/") (!).
54589         Don't always return true if chdir($PWD) fails; return true only
54590         if the requested action was done successfully (except for the
54591         chdir($PWD)).
54592         Don't log final directory unless we actually made it.
54593         Refactor to avoid duplicate code to fix up permissions.
54594         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54595
54596         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54597         to make it a bit faster and (I hope) clearer.
54598         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54599         Fix bug in formats like %2N.
54600
54601         * lib/verify.h: New file.
54602
54603 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         Sync from coreutils.
54606         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54607
54608 2005-09-22  Jim Meyering  <jim@meyering.net>
54609
54610         Sync from coreutils.
54611
54612         * m4/lstat.m4 (gl_FUNC_LSTAT):
54613         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54614         Remove obsolete comment.
54615         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54616         * m4/xstrtod.m4: Likewise.
54617
54618         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54619
54620 2005-09-22  Jim Meyering  <jim@meyering.net>
54621
54622         Sync from coreutils.
54623
54624         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54625
54626         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54627         the .tm_year member, since otherwise gcc-4.0 would now warn about
54628         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54629
54630         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54631         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54632
54633         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54634         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54635         when run in a time zone for which daylight savings time is in effect
54636         for the starting date.
54637
54638         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54639         stop us from restricting permissions of just-created absolute-named
54640         directories.
54641         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54642         to restore initial working directory.
54643         * lib/mkdir-p.c (make_dir_parents): New parameter:
54644         different_working_dir, to tell caller if/when we change the working
54645         directory and are unable to return to the initial one.
54646         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54647         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54648         `return false'.  This fixes a bug introduced on 2004-07-30.
54649
54650         * lib/openat.c (fdopendir): Be sure to close the supplied
54651         file descriptor before returning.  This makes our replacement
54652         implementation a little closer to Solaris's, where fdopendir
54653         ties the file descriptor to the returned DIR* pointer.
54654         * lib/openat.c (unlinkat): New function.
54655         * lib/openat.h (unlinkat): Add prototype.
54656         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54657         (openat_restore_fail): Rename from openat_restore_die.
54658         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54659
54660         Provide an alternative to exiting immediately upon save_cwd or
54661         restore_cwd failure.  Now, an application can arrange e.g.,
54662         to perform a longjump in that case.
54663         * lib/openat.c: Include dirname.h.
54664         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54665         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54666         and openat_restore_die rather than calling error directly.
54667         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54668
54669         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54670         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54671         define.
54672
54673         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54674         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54675                             int utc, int nanoseconds);
54676         Background:
54677         date should not have to allocate a megabyte of virtual memory to
54678         handle a format argument like +%1048575T.  When implemented with
54679         strftime, it must allocate such a buffer, use strftime to fill it
54680         in, print it, then free it.
54681         With fprintftime, it simply prints everything and exits.
54682         With no need for memory allocation, that's one fewer way to fail.
54683         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54684         optional field width, not before, so we accept %9:z, not %:9z.
54685         (my_strftime): Be sure to use L_('x') for literals.
54686
54687         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54688         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54689         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54690         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54691         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54692         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54693         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54694         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54695         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54696         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54697         * lib/xgethostname.c, lib/xreadlink.c:
54698         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54699
54700         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54701         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54702         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54703         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54704         and don't include <sys/file.h>).
54705
54706 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54707
54708         Sync from coreutils.
54709
54710         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54711         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54712         [!LDAV_DONE]: Avoid unused variable warning.
54713
54714 2005-09-21  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/unicodeio.h (unicode_to_mb): New declaration.
54717
54718 2005-09-20  Derek Price  <derek@ximbiot.com>
54719
54720         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54721         getaddrinfo.h.
54722
54723 2005-09-20  Bruno Haible  <bruno@clisp.org>
54724
54725         * gnulib-tool: Remove trailing slashes from the values specified for
54726         --source-base, --m4-base, --tests-base, --aux-dir.
54727         Suggested by Simon Josefsson <jas@extundo.com>.
54728
54729 2005-09-20  Bruno Haible  <bruno@clisp.org>
54730
54731         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54732         func_modules_to_filelist, func_import, func_create_testdir): Make all
54733         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54734         change when gnulib-tool is invoked in a different locale.
54735
54736 2005-09-19  Simon Josefsson  <jas@extundo.com>
54737
54738         * m4/socklen.m4: Fix typo.
54739
54740 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54741
54742         Use a consistent style for including <config.h>.
54743         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54744         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54745         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54746         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54747         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54748         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54749         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54750         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54751         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54752         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54753         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54754         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54755         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54756         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54757         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54758         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54759         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54760         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54761         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54762         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54763         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54764         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54765         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54766         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54767         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54768         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54769         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54770         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54771         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54772         lib/xstrtoumax.c, lib/yesno.c:
54773         Standardize inclusion of config.h.
54774         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54775         lib/inttostr.h:  Removed inclusion of config.h from header files.
54776         * lib/inttostr.c:  Adjusted in-tree users.
54777         * lib/timespec.h: Remove superfluous warning to include config.h.
54778         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54779         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54780         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54781         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54782         config.h with HAVE_CONFIG_H.
54783
54784 2005-09-19  Jim Meyering  <jim@meyering.net>
54785
54786         * modules/pathmax (License): Change to LGPL.
54787
54788 2005-09-19  Derek Price  <derek@ximbiot.com>
54789
54790         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54791
54792 2005-09-19  Bruno Haible  <bruno@clisp.org>
54793
54794         * gnulib-tool (import): Provide default for --tests-base.
54795
54796 2005-09-19  Bruno Haible  <bruno@clisp.org>
54797
54798         * doc/quote.texi: New file, extracted from gnulib.texi.
54799         * doc/ctime.texi: New file, extracted from gnulib.texi.
54800         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54801         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54802         * doc/gnulib.texi: Include them.
54803
54804 2005-09-18  Bruno Haible  <bruno@clisp.org>
54805
54806         Portability fix.
54807         * gnulib-tool (func_readlink): New function.
54808         (func_ln_if_changed): Use it.
54809
54810 2005-09-18  Bruno Haible  <bruno@clisp.org>
54811
54812         * gnulib-tool: Support --with-tests also with --import.
54813         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54814         (func_import): Use variables $testsbase and $inctests. Emit a
54815         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54816         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54817         SUBDIRS += $testsdir.
54818         (func_create_testdir): Update.
54819
54820 2005-09-18  Bruno Haible  <bruno@clisp.org>
54821
54822         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54823         instead of $dry_run.
54824         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54825         (func_ln_if_changed): Don't handle dry-run here.
54826         (func_import): In dry-run mode, detect more precisely which actions
54827         would be performed, and don't use "...ing" verbs.
54828
54829 2005-09-18  Bruno Haible  <bruno@clisp.org>
54830
54831         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54832         (func_import): Use join on two temporary files instead of three nested
54833         loops, in order to determine which files are new or old.
54834
54835 2005-09-18  Bruno Haible  <bruno@clisp.org>
54836
54837         * gnulib-tool (func_import): Comment out code that spits out the
54838         new files with --dry-run.
54839
54840 2005-09-18  Bruno Haible  <bruno@clisp.org>
54841
54842         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54843
54844 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         * lib/stat-time.h: New file.
54847         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54848         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54849         in a different way.
54850         (timespec_cmp): New function.
54851         * lib/utimecmp.c: Include stat-time.h.
54852         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54853         members exist, not on the obsolescent ST_MTIM_NSEC.
54854         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54855
54856 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54859
54860 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * MODULES.html.sh (File system functions): Add stat-time.
54863         * modules/stat-time: New file.
54864         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54865         is now done in a different way, by the stat-time module.
54866         * modules/utimecmp (Depends-on): Add stat-time.
54867
54868 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * m4/st_mtim.m4: Remove.  Superseded by...
54871         * m4/stat-time.m4: New file.
54872         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54873         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54874
54875 2005-09-15  Derek Price  <derek@ximbiot.com>
54876
54877         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54878
54879 2005-09-15  Derek Price  <derek@ximbiot.com>
54880
54881         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54882         * lib/regex_internal.c: Ditto, using this...
54883         (__GNUC_PREREQ): ...new macro.
54884         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54885         using...
54886         (__GNUC_PREREQ): ...this new macro.
54887
54888         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54889
54890 2005-09-15  Derek Price  <derek@ximbiot.com>
54891             Paul Eggert  <eggert@cs.ucla.edu>
54892
54893         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54894         changes, consolidating in...
54895         * lib/regex_internal.h: ...this file.
54896
54897 2005-09-13  Jim Meyering  <jim@meyering.net>
54898
54899         * lib/canon-host.c: Filter through gnu indent and reword comments
54900         slightly.
54901         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54902
54903 2005-09-13  Derek Price  <derek@ximbiot.com>
54904
54905         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54906         failure.
54907         Reported by Jim Meyering  <jim@meyering.net>.
54908
54909 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54910
54911         * lib/base64.c: Typo.
54912         (base64_encode): Put b64str in initialized data section.
54913
54914 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         Merge glibc and coreutils changes into gnulib, plus a few
54917         extra fixes.
54918         * lib/md5.c: Use #error rather than a string.
54919         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
54920         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
54921         (__attribute__): Define to empty for non recent-GCC.
54922         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
54923         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
54924         Renamed from their non-__ counterparts, with new macros replacing
54925         them if not _LIBC.  Add __THROW attribute.
54926         (rol): Remove.
54927         (struct md5_ctx): Align buffer if using GCC.
54928         * lib/sha1.h (struct sha1_ctx): Likewise.
54929         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
54930         The old name was backwards.
54931         (NOTSWAP): Remove; not used.
54932         (rol): New macro, moved here from md5.h.
54933         (sha1_process_block): Remove a FIXME that doesn't make sense.
54934
54935 2005-09-12  Derek Price  <derek@ximbiot.com>
54936
54937         Return usable errors from canon-host.
54938         * lib/canon-host.h: New file.
54939         * lib/canon-host.c (canon_host): Wrap...
54940         (canon_host_r): ...this new function, which now relies exclusively on
54941         getaddrinfo.
54942         (ch_strerror): New function.
54943         (last_cherror): New global.
54944         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
54945         interface.
54946         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
54947         void *.
54948         (freeaddrinfo): Free ai->ai_canonname when set.
54949
54950 2005-09-12  Derek Price  <derek@ximbiot.com>
54951
54952         Make canon-host require getaddrinfo.
54953         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
54954         AC_LIBSOURCE canon-host.h.  Call...
54955         (gl_PREREQ_CANON_HOST): ...this new function, which requires
54956         gl_GETADDRINFO.
54957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
54958
54959 2005-09-12  Derek Price  <derek@ximbiot.com>
54960
54961         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
54962         LGPL.
54963         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
54964
54965 2005-09-12  Derek Price  <derek@ximbiot.com>
54966
54967         * lib/gai_strerror.c: Include config.h when available.  Include
54968         getaddrinfo.h before other headers to test interface.
54969         Reported by Larry Jones <lawrence.jones@ugs.com>.
54970
54971 2005-09-12  Derek Price  <derek@ximbiot.com>
54972             Paul Eggert  <eggert@cs.ucla.edu>
54973
54974         * modules/glob (Files): Add glob-libc.h.
54975
54976 2005-09-12  Derek Price  <derek@ximbiot.com>
54977             Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
54980         glob_.h, glob-libc.h.
54981         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
54982
54983 2005-09-12  Derek Price  <derek@ximbiot.com>
54984             Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
54987         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
54988         protecting things that should be done only in gnulib contexts.
54989         * lib/glob_.h: New file, containing only the glob things needed for
54990         gnulib.
54991         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
54992         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
54993         (glob, globfree, glob_pattern_p): Now defined simply in terms of
54994         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
54995         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
54996         and to respect the namespace rules better.
54997
54998 2005-09-08  Simon Josefsson  <jas@extundo.com>
54999
55000         * modules/socklen: New file.
55001
55002 2005-09-08  Simon Josefsson  <jas@extundo.com>
55003
55004         * m4/socklen.m4: New file.
55005
55006 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * modules/utimens (Files): Add m4/utimbuf.m4, since
55009         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55010         Reported by Sergey Poznyakoff.
55011
55012 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55013
55014         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55015         definitions, since that's the preferred style in glibc.
55016         Fix a minor spacing issue, and update copyright notice to match
55017         glibc's.
55018
55019 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55020
55021         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55022
55023 2005-09-06  Simon Josefsson  <jas@extundo.com>
55024
55025         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55026         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55027
55028 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55029
55030         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55031         warning.
55032
55033 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55034
55035         * config/srclist.txt: Add glibc bug 1302.
55036
55037 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55038
55039         Change bitset word type from unsigned int to unsigned long int,
55040         as this has better performance on typical 64-bit hosts.
55041         Port bitset code to hosts with unusual word sizes.
55042         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55043         (build_collating_symbol):
55044         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55045         argument is a bitset.  This is merely a style issue, but it makes
55046         it clearer that an entire array is expected.
55047         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55048         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55049         Port to the case where bitset_word is not the same as unsigned int.
55050         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55051         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55052         Likewise.
55053         * lib/regexec.c (check_dst_limits_calc_pos_1,
55054         check_subexp_matching_top):
55055         (build_trtable, group_nodes_into_DFAstates):
55056         Likewise.
55057         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55058         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55059         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55060         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55061         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55062         * lib/regcomp.c (optimize_subexps, lower_subexp):
55063         Work even if bitset_word has holes in its bitwise representation.
55064         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55065         * lib/regexec.c (check_dst_limits_calc_pos_1,
55066         check_subexp_matching_top):
55067         Likewise.
55068         * lib/regex_internal.c (re_string_reconstruct):
55069         Don't assume UCHAR_MAX == 255.
55070         * lib/regex_internal.h (bitset_set_all): Likewise.
55071         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55072         All uses changed.
55073         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55074         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55075         All uses changed.
55076         (BITSET_WORD_MAX): New macro.
55077         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55078         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55079         (bitset_empty, bitset_copy):
55080         Prefer sizeof (bitset) to multiplying it out ourselves.
55081         (bitset_not_merge): Remove; unused.
55082         (bitset_contain): Return bool, not unsigned int with one bit on.
55083         All callers changed.
55084         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55085         alignment than re_node_set; do this by defining a new internal
55086         type struct dests_alloc and using it to allocate memory.
55087
55088 2005-09-05  Bruno Haible  <bruno@clisp.org>
55089
55090         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55091         links.
55092
55093 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55094
55095         * modules/size_max (Makefile.am): Add size_max.h
55096
55097 2005-09-04  Derek Price  <derek@ximbiot.com>
55098
55099         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55100
55101 2005-09-03  Simon Josefsson  <jas@extundo.com>
55102
55103         * gnulib-tool: Fix typo.
55104
55105 2005-09-03  Simon Josefsson  <jas@extundo.com>
55106
55107         * config/srclist.txt: Add glibc bug 1293.
55108
55109 2005-09-03  Derek Price  <derek@ximbiot.com>
55110
55111         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55112         From Larry Jones <lawrence.jones@ugs.com>.
55113
55114 2005-09-02  Simon Josefsson  <jas@extundo.com>
55115
55116         * modules/socklen: New file.
55117
55118 2005-09-02  Simon Josefsson  <jas@extundo.com>
55119
55120         * modules/havelib: New module.
55121
55122         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55123         Use havelib.
55124
55125 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         Check for arithmetic overflow when calculating sizes, to prevent
55128         some buffer-overflow issues.  These patches are conservative, in the
55129         sense that when I couldn't determine whether an overflow was possible,
55130         I inserted a run-time check.
55131         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55132         macros.
55133         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55134         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55135         (re_xnrealloc, re_x2nrealloc): New inline functions.
55136         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55137         parse_bracket_exp):
55138         (build_equiv_class, build_charclass): Check for arithmetic overflow
55139         in size expression calculations.
55140         * lib/regex_internal.c (re_string_realloc_buffers):
55141         (build_wcs_upper_buffer, re_node_set_add_intersect):
55142         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55143         (re_dfa_add_node, register_state): Likewise.
55144         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55145         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55146         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55147         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55148
55149 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55150
55151         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55152         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55153
55154 2005-09-02  Bruno Haible  <bruno@clisp.org>
55155
55156         Support for lib vs. lib64 distinction on biarch platforms.
55157         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55158         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55159         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55160
55161 2005-09-02  Bruno Haible  <bruno@clisp.org>
55162
55163         * gnulib-tool (import): In the other first-use case, provide defaults
55164         as well.
55165
55166 2005-09-02  Bruno Haible  <bruno@clisp.org>
55167
55168         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55169         patches not yet found in the latest gettext release.
55170
55171 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55174         to avoid a collision with bits/local_lim.h in glibc.
55175         All uses changed.  Problem reported by Dmitry V. Levin in
55176         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55177
55178         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55179         bugs in int versus size_t comparisons.
55180         (re_string_context_at): Fix bug where the code assumed that
55181         Idx is signed.
55182
55183         Use bool where appropriate.
55184         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55185         All callers changed.
55186         (calc_eclosure_iter): Likewise, for ROOT arg.
55187         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55188         (build_charclass_op): Likewise, for NON_MATCH arg.
55189         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55190         (re_string_construct_common): Likewise, for ICASE arg.
55191         * lib/regexec.c (re_search_2_stub, re_search_stub):
55192         Likewise, for RET_LEN arg.
55193         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55194         (set_regs): Likewise, for FL_BACKTRACK arg.
55195         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55196         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55197         (calc_eclosure_iter, parse_bracket_exp):
55198         Use bool for internal variables that are booleans.
55199         * lib/regexec.c (re_search_internal, check_matching,
55200         proceed_next_node):
55201         (set_regs, build_sifted_states, sift_states_bkref):
55202         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55203         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55204         (find_collation_sequence_value):
55205         Likewise.
55206         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55207         (re_node_set_compare):
55208         Return bool, not int. All callers changed.
55209         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55210         (build_trtable, check_node_accept): Likewise.
55211         * lib/regex_internal.h: Include stdbool.h.
55212
55213         Fix bugs uncovered when converting to bool.
55214         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55215         failure instead of charging ahead blindly.
55216         * lib/regex_internal.c (register_state): Likewise.
55217         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55218         for freeing internal storage.
55219         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55220         bitset pieces used as boolean, to avoid undefined behavior
55221         on hosts that do int overflow checking.
55222
55223 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55224
55225         * config/srclist.txt: Add glibc bugs 1285-1287.
55226
55227 2005-09-01  Jim Meyering  <jim@meyering.net>
55228
55229         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55230         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55231         Require gl_STAT_MACROS, too.
55232
55233 2005-09-01  Bruno Haible  <bruno@clisp.org>
55234
55235         * gnulib-tool (import): In the first-use case, provide defaults.
55236
55237 2005-09-01  Bruno Haible  <bruno@clisp.org>
55238
55239         * gnulib-tool (func_import): Remove the .tmp files.
55240
55241 2005-09-01  Bruno Haible  <bruno@clisp.org>
55242
55243         * gnulib-tool (func_import): Fix handling of symbolic links.
55244
55245 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55246
55247         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55248         old glibc regex code mishandles strings longer than 2**31 bytes.
55249         This patch fixes this when the regex code is used in gnulib
55250         (i.e., outside glibc).
55251
55252         This patch should not affect the use of the regex code inside
55253         glibc.  No doubt this problem also needs to be handled for glibc
55254         as well, but the result will be an incompatible change to the
55255         glibc ABI, and the old ABI will have to be supported too.  That
55256         can be the the subject for another patch.
55257
55258         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55259         governing whether the rest of this patch is active.  By default,
55260         the macro is disabled and the patch has no effect.
55261         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55262         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55263         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55264         (re_match_2, re_set_registers): Use the new types.
55265         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55266         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55267         New macros.
55268         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55269         (re_string_context_at, bin_tree_t, re_dfastate_t):
55270         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55271         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55272         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55273         (re_string_char_size_at, re_string_wchar_at):
55274         (re_string_elem_size_at):
55275         Use the new types and macros to port to 64-bit hosts.
55276         Use unsigned types for internal values, so that the code
55277         mostly works even for arrays larger than SSIZE_MAX.
55278         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55279         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55280         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55281         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55282         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55283         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55284         (calc_inveclosure, parse_dup_op, build_range_exp):
55285         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55286         (fetch_number, create_token_tree, mark_opt_subexp):
55287         Likewise.
55288         * lib/regex_internal.c (re_string_construct_common,
55289         create_ci_newstate):
55290         (create_cd_newstate, re_string_allocate, re_string_construct):
55291         (re_string_realloc_buffers, build_wcs_upper_buffer):
55292         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55293         (re_string_reconstruct, re_string_peek_byte_case):
55294         (re_string_fetch_byte_case, re_string_context_at):
55295         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55296         (re_node_set_init_copy, re_node_set_add_intersect):
55297         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55298         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55299         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55300         (re_acquire_state, re_acquire_state_context, register_state):
55301         Likewise.
55302         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55303         search_cur_bkref_entry):
55304         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55305         (re_search_internal, re_search_2_stub, re_search_stub)
55306         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55307         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55308         (update_cur_sifted_state, check_dst_limits):
55309         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55310         (check_subexp_limits, sift_states_bkref, merge_state_array):
55311         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55312         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55313         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55314         (expand_bkref_cache, check_node_accept_bytes):
55315         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55316         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55317         (acquire_init_state_context, check_halt_node_context):
55318         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55319         (sift_states_backward, clean_state_log_if_needed):
55320         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55321         (find_recover_state, transit_state_sb, transit_state_mb):
55322         (transit_state_bkref, build_trtable, match_ctx_clean):
55323         Likewise.
55324         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55325         to work around an assumption that REG_MISSING is negative.
55326
55327         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55328         (seek_collating_symbol_entry) [defined _LIBC]:
55329         (lookup_collation_sequence_value) [defined _LIBC]:
55330         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55331         Use prototypes rather than old-style function definitions.
55332         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55333         (transit_state_sb) [0]:
55334         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55335
55336         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55337         rm_eo.
55338
55339         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55340         (optimize_subexps, lower_subexp):
55341         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55342         since the signed shift might overflow.  Use 1u<<31 instead.
55343         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55344         Likewise.
55345         * lib/regexec.c (check_dst_limits_calc_pos_1,
55346         check_subexp_matching_top): Likewise.
55347
55348         * lib/regcomp.c (optimize_subexps, lower_subexp):
55349         Use CHAR_BIT rather than 8, for clarity.
55350         * lib/regexec.c (check_dst_limits_calc_pos_1):
55351         (check_subexp_matching_top): Likewise.
55352         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55353         have to worry about portability issues when shifting it left.
55354         Remove no-longer-needed test for table_size > 0.
55355         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55356         in a word, as the resulting behavior is undefined.
55357         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55358         in one case, a <= should have been an <, and in another case the
55359         whole test was missing.
55360         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55361         the standard name CHAR_BIT.
55362         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55363         this is not true on one's complement and signed-magnitude hosts.
55364
55365         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55366         next_last_offset.
55367         (struct re_dfa_t): Remove unused member states_alloc.
55368         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55369
55370 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55371
55372         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55373         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55374         and large-file glibc and in 32-bit large-file Solaris.
55375
55376 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55377
55378         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55379         lengths fit in regoff_t; this isn't true if regoff_t is the same
55380         width as size_t.
55381         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55382         (= START + RANGE) instead of RANGE.  This avoids overflow
55383         problems when regoff_t is the same width as size_t.
55384         All callers changed.
55385         (re_search_2_stub): Check for overflow when adding the
55386         sizes of the two strings.
55387         (re_search_stub): Check for overflow when adding START
55388         to RANGE; if it occurs, substitute the extreme value.
55389
55390 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55393
55394 2005-08-31  Jim Meyering  <jim@meyering.net>
55395
55396         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55397         a pointer-to-const.
55398         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55399         (register_state): Likewise.
55400         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55401         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55402         (group_nodes_into_DFAstates): Likewise.
55403
55404 2005-08-31  Jim Meyering  <jim@meyering.net>
55405
55406         * check-module: Add a FIXME comment.
55407
55408 2005-08-31  Eric Blake  <ebb9@byu.net>
55409
55410         * modules/unistd-safer (Files): Add unistd--.h.
55411         * modules/stdio-safer (Files): Add stdio--.h.
55412
55413 2005-08-31  Derek Price  <derek@ximbiot.com>
55414
55415         * lib/getdelim.c (getdelim): Return EOF on EOF.
55416         Reported by Larry Jones <lawrence.jones@ugs.com>.
55417
55418 2005-08-31  Bruno Haible  <bruno@clisp.org>
55419
55420         Avoid unnecessary diffs in the generated lib/Makefile.am.
55421         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55422         the generated files.
55423         (func_import): Don't set cmd.
55424
55425 2005-08-31  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/strstr.c: Include <stddef.h>, for NULL.
55428         * lib/strcasestr.c: Likewise.
55429         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55430
55431 2005-08-31  Bruno Haible  <bruno@clisp.org>
55432
55433         * gnulib-tool: New option --macro-prefix.
55434         (func_import): Use macro_prefix.
55435         (import): Handle option --macro-prefix.
55436
55437 2005-08-31  Bruno Haible  <bruno@clisp.org>
55438
55439         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55440         Also use new variables cached_lgpl, cached_libtool.
55441
55442 2005-08-31  Bruno Haible  <bruno@clisp.org>
55443
55444         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55445         always instantiating them.
55446
55447 2005-08-31  Bruno Haible  <bruno@clisp.org>
55448
55449         * gnulib-tool (func_import): Read the previous cached settings
55450         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55451         earlier added by gnulib but are now dropped. Warn when a gnulib file
55452         overwrites a non-gnulib file.
55453
55454 2005-08-31  Bruno Haible  <bruno@clisp.org>
55455
55456         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55457         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55458         projects that don't keep autogenerated files in CVS. Put into
55459         actioncmd only the specified modules, not the transitive closure.
55460
55461 2005-08-31  Bruno Haible  <bruno@clisp.org>
55462
55463         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55464         Create directories that shall be filled.
55465         (import): Don't look for gl_* macros in configure.ac. Recurse across
55466         all directories containing a gnulib-cache.m4 files, if meaningful.
55467
55468 2005-08-31  Bruno Haible  <bruno@clisp.org>
55469
55470         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55471         (import): Set seen_libtool when we see gl_LIBTOOL.
55472
55473 2005-08-31  Bruno Haible  <bruno@clisp.org>
55474
55475         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55476         declaration macro definitions from generated gnulib.m4.
55477
55478 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55479
55480         * lib/iconvme.h: Add prototype for iconv_alloc.
55481
55482 2005-08-29  Simon Josefsson  <jas@extundo.com>
55483
55484         * lib/iconvme.c: Fix errno.
55485
55486 2005-08-29  Bruno Haible  <bruno@clisp.org>
55487
55488         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55489         that it works when the directory contains spaces.
55490
55491 2005-08-29  Bruno Haible  <bruno@clisp.org>
55492
55493         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55494
55495 2005-08-29  Bruno Haible  <bruno@clisp.org>
55496
55497         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55498         Emit more advice.
55499
55500 2005-08-29  Bruno Haible  <bruno@clisp.org>
55501         and Stepan Kasal  <kasal@ucw.cz>
55502
55503         * check-module: If more parameters are given, check each of them
55504         separately; add more exceptions, as noted by Jim Meyering.
55505         (check_module): New procedure.
55506         (%exempt_header): Now contains all exceptions.
55507
55508 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55509
55510         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55511
55512 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55513
55514         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55515
55516 2005-08-28  Bruno Haible  <bruno@clisp.org>
55517
55518         * m4/gnulib-tool.m4: New file.
55519
55520 2005-08-27  Jim Meyering  <jim@meyering.net>
55521
55522         * modules/unistd-safer (Files): Add pipe-safer.c.
55523         * modules/fcntl-safer (Files): Add creat-safer.c.
55524
55525 2005-08-27  Jim Meyering  <jim@meyering.net>
55526
55527         * m4/stdlib-safer.m4: New file.  From coreutils.
55528         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55529         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55530         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55531         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55532         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55533
55534 2005-08-27  Jim Meyering  <jim@meyering.net>
55535
55536         * lib/fopen-safer.c: Merge minor changes from coreutils.
55537         * lib/dup-safer.c: Likewise.
55538         * lib/fd-safer.c: Likewise.
55539
55540         Merge from coreutils.
55541         * lib/stdio--.h: New file.
55542         * lib/stdlib--.h: New file.
55543         * lib/mkstemp-safer.c: New file.
55544
55545         GNU tar needs these.
55546         * lib/pipe-safer.c: New file.
55547         * lib/creat-safer.c: New file.
55548         * lib/fcntl--.h (creat): Define to creat_safer.
55549         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55550         * lib/unistd--.h (pipe): Define to pipe_safer.
55551         * lib/unistd-safer.h: Declare pipe_safer.
55552
55553 2005-08-26  Simon Josefsson  <jas@extundo.com>
55554
55555         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55556         Haible <bruno@clisp.org>.
55557
55558 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55559
55560         * lib/regex_internal.h: Remove all references to
55561         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55562         or better.
55563         (bitset_not, bitset_merge, bitset_not_merge):
55564         (bitset_mask, re_string_allocate, re_string_construct):
55565         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55566         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55567         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55568         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55569         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55570         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55571         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55572         (re_acquire_state_context):
55573         Remove unnecessary forward decls.
55574         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55575         Put __attribute at function definition,
55576         now that the function decl has been removed.
55577         * lib/regex_internal.c (re_string_peek_byte_case):
55578         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55579         Likewise.
55580
55581 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55582
55583         * m4/regex.m4: Add AC_PREREQ(2.50).
55584         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55585
55586 2005-08-25  Simon Josefsson  <jas@extundo.com>
55587
55588         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55589         __fsetlocking.
55590
55591 2005-08-25  Simon Josefsson  <jas@extundo.com>
55592
55593         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55594         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55595         GLIBC specific code.
55596
55597 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55598
55599         Make regex safe for g++.  This fixes one real bug (an "err"
55600         that should have been "*err").  g++ problem reported by
55601         Sam Steingold.
55602         * lib/regex_internal.h (re_calloc): New macro, consistent with
55603         re_malloc etc.  All callers of calloc changed to use re_calloc.
55604         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55605         not int.  All callers changed.
55606         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55607         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55608         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55609         (find_recover_state): Change "err" to "*err"; this fixes what
55610         appears to be a real bug.
55611         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55612         versus int.
55613
55614 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55615
55616         * modules/regex (Depends-on): Add malloc, since the code
55617         assumes that !malloc(0) means failure.
55618
55619 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55620
55621         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55622
55623         alloca modernization/simplification for regex.
55624         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55625         needs to be at the start of the file, and can be moved into
55626         regex_internal.h and simplified.
55627         * lib/regex_internal.h: Include <alloca.h>.
55628         (__libc_use_alloca) [!defined _LIBC]: New macro.
55629         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55630         now works outside glibc.
55631
55632 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55633
55634         * config/srclist.txt: Add glibc bugs 1241, 1245.
55635
55636 2005-08-25  Jim Meyering  <jim@meyering.net>
55637
55638         * lib/open-safer.c: Include <config.h>.
55639         Otherwise, we'd lose LARGEFILE support in any file using
55640         e.g. "fcntl--.h"
55641
55642 2005-08-25  Bruno Haible  <bruno@clisp.org>
55643
55644         * m4/minmax.m4: Require autoconf 2.52.
55645         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55646         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55647         alternatives of translit over the alphabet.
55648         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55649
55650 2005-08-24  Simon Josefsson  <jas@extundo.com>
55651
55652         * tests/test-getpass.c: New file.
55653
55654 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55657         for GNU regex features.
55658
55659 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55662         * lib/regex.h (regerror): Likewise.
55663
55664         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55665         requires this.  (The code never needed it.)
55666
55667         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55668         All uses of recently-renamed identifiers changed to use the new,
55669         POSIX-compliant names.  The code will build and run just fine
55670         without these changes, but it's better to eat our own dog food
55671         and use the standard-conforming names.
55672
55673         * lib/regex.h: Fix a multitude of POSIX name space violations.
55674         These changes have an effect only for programs that define
55675         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55676         do not change anything for programs compiled in the normal way.
55677         Also, there is no effect on the ABI.
55678
55679         (_REGEX_SOURCE): New macro.
55680         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55681         defined and _GNU_SOURCE is not; this fixes a name space violation.
55682
55683         Rename the following macros to obey POSIX requirements.
55684         The old names are still visible as macros if _REGEX_SOURCE is defined.
55685         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55686         RE_BACKSLASH_ESCAPE_IN_LISTS.
55687         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55688         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55689         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55690         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55691         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55692         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55693         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55694         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55695         (REG_INTERVALS): renamed from RE_INTERVALS.
55696         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55697         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55698         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55699         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55700         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55701         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55702         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55703         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55704         RE_UNMATCHED_RIGHT_PAREN_ORD.
55705         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55706         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55707         (REG_DEBUG): renamed from RE_DEBUG.
55708         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55709         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55710         unusual, since we can't clash with the POSIX REG_ICASE.
55711         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55712         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55713         (REG_NO_SUB): renamed from RE_NO_SUB.
55714         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55715         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55716         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55717         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55718         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55719         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55720         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55721         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55722         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55723         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55724         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55725         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55726         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55727         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55728         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55729         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55730         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55731         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55732         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55733         (REG_FIXED): Renamed from REGS_FIXED.
55734         (REG_NREGS): Renamed from RE_NREGS.
55735
55736         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55737         of other REG_* macros, since POSIX says the user is allowed to
55738         #undef these macros selectively.
55739
55740         (reg_errcode_t): Update comment stating what other tables need
55741         to be consistent.
55742
55743         Rename the following enum values to obey POSIX requirements.
55744         The old names are still visible as macros.
55745         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55746         is not defined, since GNU is supposed to be a superset of POSIX as
55747         much as possible, and since we want reg_errcode_t to be a signed
55748         type for implementation consistency.
55749         (_REG_NOERROR): Renamed from REG_NOERROR.
55750         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55751         (_REG_BADPAT): Renamed from REG_BADPAT.
55752         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55753         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55754         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55755         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55756         (_REG_EBRACK): Renamed from REG_EBRACK.
55757         (_REG_EPAREN): Renamed from REG_EPAREN.
55758         (_REG_EBRACE): Renamed from REG_EBRACE.
55759         (_REG_BADBR): Renamed from REG_BADBR.
55760         (_REG_ERANGE): Renamed from REG_ERANGE.
55761         (_REG_ESPACE): Renamed from REG_ESPACE.
55762         (_REG_BADRPT): Renamed from REG_BADRPT.
55763         (_REG_EEND): Renamed from REG_EEND.
55764         (_REG_ESIZE): Renamed from REG_ESIZE.
55765         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55766         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55767         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55768         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55769         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55770
55771         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55772         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55773         changed.  But support the old name if the new one is not defined
55774         and if _REGEX_SOURCE.
55775
55776         Change the following member names in struct re_pattern_buffer.
55777         The old names are still supported if !_REGEX_SOURCE.
55778         The new names are always supported, regardless of _REGEX_SOURCE.
55779         (re_buffer): Renamed from buffer.
55780         (re_allocated): Renamed from allocated.
55781         (re_used): Renamed from used.
55782         (re_syntax): Renamed from syntax.
55783         (re_fastmap): Renamed from fastmap.
55784         (re_translate): Renamed from translate.
55785         (re_can_be_null): Renamed from can_be_null.
55786         (re_regs_allocated): Renamed from regs_allocated.
55787         (re_fastmap_accurate): Renamed from fastmap_accurate.
55788         (re_no_sub): Renamed from no_sub.
55789         (re_not_bol): Renamed from not_bol.
55790         (re_not_eol): Renamed from not_eol.
55791         (re_newline_anchor): Renamed from newline_anchor.
55792
55793         Change the following member names in struct re_registers.
55794         The old names are still supported if !_REGEX_SOURCE.
55795         The new names are always supported, regardless of _REGEX_SOURCE.
55796         (rm_num_regs): Renamed from num_regs.
55797         (rm_start): Renamed from start.
55798         (rm_end): Renamed from end.
55799
55800         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55801         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55802         Prepend __ to parameter names.
55803
55804         Undo yesterday's changes.
55805
55806 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55807
55808         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55809         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55810         lib/regex.c.
55811
55812 2005-08-24  Jim Meyering  <jim@meyering.net>
55813
55814         Sync from coreutils.
55815         * m4/fcntl-safer.m4: New file.
55816
55817         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55818         and object files for this module.
55819
55820 2005-08-24  Jim Meyering  <jim@meyering.net>
55821
55822         Sync from coreutils.
55823         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55824
55825 2005-08-24  Jim Meyering  <jim@meyering.net>
55826
55827         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55828         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55829
55830 2005-08-24  Jim Meyering  <jim@meyering.net>
55831
55832         * modules/fcntl-safer: New module.
55833         * modules/fts (Depends-on): Add fcntl-safer.
55834         * MODULES.html.sh (File descriptor based Input/Output):
55835         Add fcntl-safer.
55836
55837 2005-08-24  Bruno Haible  <bruno@clisp.org>
55838
55839         Support for unit test modules.
55840         * modules/README: Mention tests modules.
55841         * modules/TEMPLATE-TESTS: New file.
55842         * gnulib-tool: New options --extract-tests-module, --with-tests and
55843         --tests-base (unused for the moment).
55844         (testsbase, inctests): New variables.
55845         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55846         (func_verify_module): Exclude TEMPLATE-TESTS.
55847         (func_verify_nontests_module, func_verify_tests_module): New functions.
55848         (func_get_dependencies): Add implicit dependency for tests modules.
55849         (func_get_tests_module): New function.
55850         (func_modules_transitive_closure): When --with-tests was specified,
55851         include the unit tests as well, unless explicitly avoided.
55852         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55853         (func_emit_tests_Makefile_am): New function.
55854         (func_create_testdir): When --with-tests was specified, emit a
55855         tests/ directory.
55856         * MODULES.html.sh (Future developments): Update.
55857
55858 2005-08-24  Bruno Haible  <bruno@clisp.org>
55859
55860         * modules/tls-tests: New file.
55861         * tests/test-tls.c: New file, from GNU gettext.
55862
55863 2005-08-24  Bruno Haible  <bruno@clisp.org>
55864
55865         * modules/lock-tests: New file.
55866         * tests/test-lock.c: New file, from GNU gettext.
55867
55868 2005-08-24  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/lock.h: Add multiple inclusion guard.
55871         * lib/tls.h: Add multiple inclusion guard.
55872
55873 2005-08-24  Bruno Haible  <bruno@clisp.org>
55874
55875         * gnulib-tool: Add support for the --aux-dir option to
55876         --create-testdir, --create-megatestdir, --test, --megatest.
55877         (func_create_testdir, func_create_megatestdir): Optionally emit a
55878         AC_CONFIG_AUX_DIR directive.
55879         (create-testdir, create-megatestdir, test, megatest): Provide a
55880         default value for $auxdir.
55881
55882 2005-08-24  Bruno Haible  <bruno@clisp.org>
55883
55884         * gnulib-tool (import): Use compound statement instead of subshell
55885         where possible.
55886
55887 2005-08-24  Bruno Haible  <bruno@clisp.org>
55888
55889         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55890
55891 2005-08-24  Bruno Haible  <bruno@clisp.org>
55892
55893         * gnulib-tool (func_version): Update.
55894
55895 2005-08-24  Bruno Haible  <bruno@clisp.org>
55896
55897         * gnulib-tool (func_import, func_create_testdir,
55898         func_create_megatestdir): Quote all autoconf macro arguments.
55899
55900 2005-08-24  Bruno Haible  <bruno@clisp.org>
55901
55902         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55903         option --force, because --force causes the aclocal.m4 of each
55904         subdirectory to be newer than the corresponding config.h.in.
55905
55906 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55907
55908         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55909         All contents moved to gl_REGEX.
55910         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55911         assume that it does.
55912
55913 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55914
55915         * lib/regex.h (REG_NOSYS)
55916         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55917         Define, since POSIX requires it as of 2001.
55918         (_REG_ENOSYS)
55919         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
55920         New private symbol, used to keep the enum signed in all cases.
55921         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
55922         Youngman in
55923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
55924
55925         * lib/regex_internal.c (re_string_skip_chars, register_state):
55926         (calc_state_hash):
55927         Remove forward decls; no longer needed now that we use prototypes.
55928         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
55929         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
55930         (clean_state_log_if_needed): Likewise.
55931
55932 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         * config/srclist.txt: Add glibc bugs 1231-1233.
55935
55936 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55937
55938         Fix problems reported by Sam Steingold in
55939         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
55940         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
55941         assumed that reg_errcode_t is a signed type, which is not
55942         necessarily true if _XOPEN_SOURCE is not defined.
55943         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
55944         since some compilers warn about it otherwise.
55945
55946 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
55949         (init_word_char, create_initial_state, duplicate_node_closure):
55950         (fetch_token, peek_token_bracket, build_range_exp):
55951         (build_collating_symbol): Remove forward decls; no longer needed
55952         now that we use prototypes.
55953
55954         * lib/regcomp.c:
55955         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
55956         (re_compile_fastmap_iter, regcomp, regerror, regfree):
55957         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
55958         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
55959         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
55960         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
55961         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
55962         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
55963         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
55964         (build_range_exp, build_collating_symbol, parse_bracket_exp):
55965         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
55966         (build_charclass, build_charclass_op, fetch_number, create_tree):
55967         (create_token_tree, mark_opt_subexp, duplicate_tree):
55968         Use prototypes rather than old-style definitions.
55969
55970         * lib/regex_internal.c:
55971         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
55972         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
55973         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55974         (re_string_reconstruct, re_string_peek_byte_case):
55975         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
55976         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55977         (re_node_set_init_copy, re_node_set_add_intersect):
55978         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55979         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55980         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55981         (re_acquire_state, re_acquire_state_context, register_state):
55982         (create_ci_newstate, create_cd_newstate, free_state):
55983         Likewise.
55984         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
55985         re_search_2):
55986         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
55987         (re_search_internal, prune_impossible_nodes):
55988         (acquire_init_state_context, check_matching, static):
55989         (check_halt_node_context, check_halt_state_context, proceed_next_node):
55990         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
55991         (update_regs, sift_states_backward, build_sifted_states):
55992         (clean_state_log_if_needed, merge_state_array):
55993         (update_cur_sifted_state, add_epsilon_src_nodes):
55994         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
55995         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
55996         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
55997         (find_recover_state, check_subexp_matching_top, transit_state_mb):
55998         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
55999         (check_arrival, check_arrival_add_next_nodes):
56000         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56001         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56002         (check_node_accept_bytes, check_node_accept, extend_buffers):
56003         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56004         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56005         (sift_ctx_init):
56006         Likewise.
56007
56008         * lib/regex_internal.h:
56009         (re_string_allocate, re_string_construct, re_string_reconstruct):
56010         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56011         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56012         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56013         (re_string_context_at, re_string_peek_byte_case):
56014         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56015         is defined, since we now use prototypes always.
56016
56017         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56018         C89 or better.  All uses removed.
56019
56020 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56021
56022         * config/srclist.txt: Add glibc bugs 1220-1227.
56023
56024 2005-08-20  Jim Meyering  <jim@meyering.net>
56025
56026         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56027         of unused local, dfa.
56028
56029 2005-08-20  Bruno Haible  <bruno@clisp.org>
56030
56031         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56032
56033 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56034
56035         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56036         (re_node_set_insert_last, re_dfa_add_node):
56037         Rename local variables to avoid GCC shadowing warnings.
56038
56039 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56040
56041         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56042         [defined lint]: Suppress bogus uninitialized-variable warnings.
56043
56044         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56045         and let the caller return REG_ESPACE if out of space.  This
56046         removes an uninitialied-variable warning with GCC 4.0.1, and also
56047         avoids taking the address of a local variable.  All callers
56048         changed.
56049
56050 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56051
56052         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56053         $LIBCSRC/posix/regexec.c.
56054         Add glibc bug 1217 for regcomp.c.
56055
56056 2005-08-19  Jim Meyering  <jim@meyering.net>
56057
56058         * lib/regexec.c (proceed_next_node): Redo local variables to
56059         avoid GCC shadowing warnings.
56060
56061 2005-08-18  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/strstr.c (strstr): Fix return value in multibyte case.
56064         * lib/strcasestr.c (strcasestr): Likewise.
56065
56066 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56067
56068         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56069
56070 2005-08-17  Jim Meyering  <jim@meyering.net>
56071
56072         Make the %s format (seconds since the epoch) work for a negative
56073         number and when used with a zero-padded field width, e.g. %015s.
56074
56075         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56076         label so that it precedes the code to set `digits'.  Otherwise,
56077         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56078         print `00-22'.  Now, it prints `-0022', as it should.
56079
56080 2005-08-17  Bruno Haible  <bruno@clisp.org>
56081
56082         * modules/strstr (Files): Add m4/mbrtowc.m4.
56083         (Depends-on): Add mbuiter.
56084
56085 2005-08-17  Bruno Haible  <bruno@clisp.org>
56086
56087         * modules/strcasestr: New file.
56088         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56089         strcasestr.
56090
56091 2005-08-17  Bruno Haible  <bruno@clisp.org>
56092
56093         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56094
56095 2005-08-17  Bruno Haible  <bruno@clisp.org>
56096
56097         * modules/mbuiter: New file.
56098         * MODULES.html.sh (Extended multibyte and wide character utilities):
56099         Add mbuiter.
56100
56101 2005-08-17  Bruno Haible  <bruno@clisp.org>
56102
56103         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56104         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56105
56106 2005-08-17  Bruno Haible  <bruno@clisp.org>
56107
56108         * m4/strcasestr.m4: New file.
56109
56110 2005-08-17  Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56113         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56114
56115 2005-08-17  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/strcasestr.h: New file.
56118         * lib/strcasestr.c: New file.
56119
56120 2005-08-17  Bruno Haible  <bruno@clisp.org>
56121
56122         * lib/strcasecmp.c: Use mbuiter.h.
56123
56124 2005-08-17  Bruno Haible  <bruno@clisp.org>
56125
56126         * lib/mbuiter.h: New file.
56127
56128 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56129
56130         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56131         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56132         and gl_GETOPT are both invoked via different paths (as happens
56133         with GNU tar CVS because it uses both argp and getopt), the former
56134         wins.
56135
56136 2005-08-16  Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/tls: New file.
56139         * MODULES.html.sh (Multithreading): Add tls.
56140
56141 2005-08-16  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/strnlen1: New file.
56144         * MODULES.html.sh (String handling): Add strnlen1.
56145
56146 2005-08-16  Bruno Haible  <bruno@clisp.org>
56147
56148         * modules/strcase (Files): Add m4/mbrtowc.m4.
56149         (Depends-on): Add strnlen1, mbchar.
56150
56151 2005-08-16  Bruno Haible  <bruno@clisp.org>
56152
56153         * modules/mbiter: New file.
56154         * MODULES.html.sh (Extended multibyte and wide character utilities):
56155         Add mbiter.
56156
56157 2005-08-16  Bruno Haible  <bruno@clisp.org>
56158
56159         * modules/mbfile: New file.
56160         * MODULES.html.sh (Extended multibyte and wide character utilities):
56161         Add mbfile.
56162
56163 2005-08-16  Bruno Haible  <bruno@clisp.org>
56164
56165         * modules/mbchar: New file.
56166         * MODULES.html.sh (Extended multibyte and wide character utilities):
56167         New section.
56168
56169 2005-08-16  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/tls.m4: New file, from GNU gettext.
56172
56173 2005-08-16  Bruno Haible  <bruno@clisp.org>
56174
56175         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56176         always.
56177         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56178
56179 2005-08-16  Bruno Haible  <bruno@clisp.org>
56180
56181         * m4/mbiter.m4: New file.
56182
56183 2005-08-16  Bruno Haible  <bruno@clisp.org>
56184
56185         * m4/mbfile.m4: New file.
56186
56187 2005-08-16  Bruno Haible  <bruno@clisp.org>
56188
56189         * m4/mbchar.m4: New file.
56190
56191 2005-08-16  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/tls.h: New file, from GNU gettext.
56194         * lib/tls.c: New file, from GNU gettext.
56195
56196 2005-08-16  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/strnlen1.h: New file.
56199         * lib/strnlen1.c: New file.
56200
56201 2005-08-16  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56204         (mbi_init): Update.
56205         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56206         NUL byte, not after it.
56207
56208 2005-08-16  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/strcase.h (strcasecmp): Add note in comments.
56211         * lib/strncasecmp.c: Use code from strcasecmp.c.
56212         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56213         (strcasecmp): Work correctly in multibyte locales.
56214
56215 2005-08-16  Bruno Haible  <bruno@clisp.org>
56216
56217         * lib/mbiter.h: New file.
56218
56219 2005-08-16  Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/mbfile.h: New file.
56222
56223 2005-08-16  Bruno Haible  <bruno@clisp.org>
56224
56225         * lib/mbchar.h: New file.
56226         * lib/mbchar.c: New file.
56227
56228 2005-08-16  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56231         the valid ones. Makes the comparison operations transitive:
56232         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56233         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56234
56235 2005-08-15  Simon Josefsson  <jas@extundo.com>
56236
56237         * modules/ssize_t (License): Change to 'unlimited'.
56238
56239         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56240
56241 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56242
56243         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56244         Add comments for each pending glibc patch.
56245
56246 2005-08-15  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56249         __cplusplus is defined.
56250
56251 2005-08-14  Jim Meyering  <jim@meyering.net>
56252
56253         Sync from coreutils.
56254
56255         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56256         Use the hash-table-based cycle-detection code not just when
56257         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56258         Reported by James Youngman in
56259         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56260         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56261         FTS_TIGHT_CYCLE_CHECK.
56262         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56263         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56264         once again.
56265         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56266         * lib/fts.c (fd_safer): Remove decl.
56267         Include fcntl--.h rather than unistd-safer.h
56268         (fts_safe_changedir): Don't call fd_safer; no longer needed
56269         now that we include fcntl--.h.
56270
56271 2005-08-12  Simon Josefsson  <jas@extundo.com>
56272
56273         * modules/getndelim2: Use ssize_t module.
56274         * modules/getnline: Likewise.
56275         * modules/safe-read: Likewise.
56276         * modules/xreadlink: Likewise.
56277
56278         * modules/ssize_t: New file.
56279
56280 2005-08-12  Simon Josefsson  <jas@extundo.com>
56281
56282         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56283
56284 2005-08-12  Simon Josefsson  <jas@extundo.com>
56285
56286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56287         ssize_t.
56288
56289 2005-08-12  Simon Josefsson  <jas@extundo.com>
56290
56291         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56292         readline, getdelim and check_version.
56293         (Support for systems lacking ISO C 99: Sizes of integer types):
56294         Add size_max.
56295
56296 2005-08-12  Bruno Haible  <bruno@clisp.org>
56297
56298         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56299
56300 2005-08-11  Simon Josefsson  <jas@extundo.com>
56301
56302         * modules/readline: New file.
56303
56304         * modules/strnlen (Files): Add strnlen.h.
56305
56306 2005-08-11  Simon Josefsson  <jas@extundo.com>
56307
56308         * m4/readline.m4: New file.
56309
56310 2005-08-11  Simon Josefsson  <jas@extundo.com>
56311
56312         * lib/readline.h, readline.c: New file.
56313
56314 2005-08-11  Simon Josefsson  <jas@extundo.com>
56315
56316         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56317         gl_AVOID.
56318
56319 2005-08-11  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56322
56323 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56324
56325         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56326
56327 2005-08-10  Simon Josefsson  <jas@extundo.com>
56328
56329         * tests/test-iconvme.c: New file.
56330
56331 2005-08-10  Simon Josefsson  <jas@extundo.com>
56332
56333         * m4/strnlen.m4: New file.
56334
56335         * m4/strndup.m4: Don't check for strnlen declaration, done in
56336         strnlen.m4.
56337
56338 2005-08-10  Simon Josefsson  <jas@extundo.com>
56339
56340         * lib/strndup.c: Use strnlen.h.
56341
56342         * lib/strnlen.h: New file.
56343
56344 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56345
56346         * README: Typos.
56347
56348 2005-08-02  Simon Josefsson  <jas@extundo.com>
56349
56350         * modules/readline: New file.
56351
56352 2005-08-02  Simon Josefsson  <jas@extundo.com>
56353
56354         * modules/getdelim: New file.
56355
56356         * modules/getline: Rewrite, don't use getndelim2.
56357
56358 2005-08-02  Simon Josefsson  <jas@extundo.com>
56359
56360         * m4/getline.m4: Separate out getdelim stuff into separate module.
56361
56362         * m4/getdelim.m4: New file.
56363
56364 2005-08-02  Simon Josefsson  <jas@extundo.com>
56365
56366         * lib/getline.h, getline.c: Rewrite.
56367
56368         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56369
56370 2005-07-31  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/lock.h (gl_lock_initializer): New macro.
56373         (gl_lock_define_initialized): Use it.
56374         (gl_rwlock_initializer): New macro.
56375         (gl_rwlock_define_initialized): Use it.
56376         (gl_recursive_lock_initializer): New macro.
56377         (gl_recursive_lock_define_initialized): Use it.
56378
56379 2005-07-30  Karl Berry  <karl@gnu.org>
56380
56381         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56382         Report from Ben Pfaff, regarding getopt.
56383
56384 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56385
56386         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56387         normal way.
56388         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56389         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56390         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56391         (gl_GETOPT): Use the new macros.  Most of the implementation
56392         is moved to the new macros.  This is for programs like Emacs
56393         that don't want all the functionality of gl_GETOPT.
56394
56395 2005-07-26  Bruno Haible  <bruno@clisp.org>
56396
56397         * m4/lock.m4: Update from GNU gettext.
56398
56399 2005-07-26  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/lock.h: Update from GNU gettext.
56402         * lib/lock.c: Update from GNU gettext.
56403
56404 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56405
56406         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56407         obsolescent AC_TRY_RUN.  Include the default includes files, for
56408         'exit'.
56409
56410 2005-07-24  Bruno Haible  <bruno@clisp.org>
56411
56412         * modules/visibility: New file.
56413         * MODULES.html.sh (Misc): Add visibility.
56414
56415 2005-07-24  Bruno Haible  <bruno@clisp.org>
56416
56417         * m4/visibility.m4: New file.
56418
56419 2005-07-24  Bruno Haible  <bruno@clisp.org>
56420
56421         * doc/visibility.texi: New file.
56422
56423 2005-07-22  Bruno Haible  <bruno@clisp.org>
56424
56425         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56426         $(ALLOCA_H), redundant through BUILT_SOURCES.
56427         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56428         redundant through BUILT_SOURCES.
56429         * modules/byteswap (Makefile.am): Remove explicit dependency on
56430         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56431         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56432         $(FNMATCH_H), redundant through BUILT_SOURCES.
56433         * modules/getopt (Makefile.am): Remove explicit dependency on
56434         $(GETOPT_H), redundant through BUILT_SOURCES.
56435         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56436         redundant through BUILT_SOURCES.
56437         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56438         redundant through BUILT_SOURCES.
56439         * modules/stdbool (Makefile.am): Remove explicit dependency on
56440         $(STDBOOL_H), redundant through BUILT_SOURCES.
56441         * modules/stdint (Makefile.am): Remove explicit dependency on
56442         $(STDINT_H), redundant through BUILT_SOURCES.
56443         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56444         Remove explicit dependency on $(SYSEXITS_H).
56445         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56446
56447 2005-07-18  Simon Josefsson  <jas@extundo.com>
56448
56449         * lib/check-version.c (check_version): Accept identical versions too.
56450
56451 2005-07-18  Bruno Haible  <bruno@clisp.org>
56452
56453         * modules/lock: New file.
56454         * MODULES.html.sh (Multithreading): New section.
56455
56456 2005-07-18  Bruno Haible  <bruno@clisp.org>
56457
56458         * m4/lock.m4: New file, from GNU gettext.
56459
56460 2005-07-18  Bruno Haible  <bruno@clisp.org>
56461
56462         * lib/lock.h: New file, from GNU gettext.
56463         * lib/lock.c: New file, from GNU gettext.
56464
56465 2005-07-18  Bruno Haible  <bruno@clisp.org>
56466
56467         * lib/lock.h (gl_once_t): New type.
56468         (gl_once_define, gl_once): New macros.
56469         * lib/lock.c (fresh_once): New variable.
56470         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56471         functions.
56472
56473 2005-07-16  Simon Josefsson  <jas@extundo.com>
56474
56475         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56476         workaround, suggested by Bruno.
56477
56478 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56479
56480         * modules/xalloc (Depends-on): Add xalloc-die.
56481         * modules/xvasprintf (Depends-on): Add xalloc-die.
56482
56483 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56484
56485         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56486         with a minor change.
56487
56488 2005-07-15  Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56491         When using lib/poll.c, define poll as rpl_poll.
56492
56493 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56494
56495         * modules/argp (Depends-on): Remove unlocked-io.
56496
56497 2005-07-14  Derek Price  <derek@ximbiot.com>
56498
56499         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56500         for glob symlink bug.
56501
56502 2005-07-14  Bruno Haible  <bruno@clisp.org>
56503
56504         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56505         Instead, test for *_unlocked function declarations directly.
56506
56507 2005-07-11  Simon Josefsson  <jas@extundo.com>
56508
56509         * modules/size_max: New file.
56510
56511         * modules/xsize: Depend on size_max module for size_max.m4.
56512
56513 2005-07-11  Simon Josefsson  <jas@extundo.com>
56514
56515         * lib/size_max.h: New file.
56516
56517 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56520         copyright symbol and the year.
56521         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56522         (version_etc_va): Use parameterized copyright notice.
56523         Reword to conform to the current GNU coding standards.
56524
56525 2005-07-11  Karl Berry  <karl@gnu.org>
56526
56527         * doc/gnulib.texi (Quoting): new node.
56528         (Initial import): more info, from Patrice.
56529
56530 2005-07-11  Bruno Haible  <bruno@clisp.org>
56531
56532         * gnulib-tool (func_usage): Document option --avoid.
56533         (Command line options): Handle --avoid.
56534         (func_acceptable): New function.
56535         (func_modules_transitive_closure): Use it.
56536
56537 2005-07-11  Bruno Haible  <bruno@clisp.org>
56538
56539         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56540         Reported by Jim Meyering.
56541
56542 2005-07-10  Bruno Haible  <bruno@clisp.org>
56543
56544         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56545         Needed when size_t is smaller than 'unsigned int'.
56546         Reported by Paul Eggert.
56547
56548 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56549
56550         * modules/argp (Depends-on): Add unlocked-io
56551
56552 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56553
56554         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56555         block of defines.
56556
56557 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56558
56559         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56560         fix now.
56561
56562 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56563         and Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56566         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56567
56568 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         * modules/regex (Files): Add lib/regex_internal.c,
56571         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56572         (Depends-on): Add extensions.
56573         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56574
56575 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56576
56577         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56578         pathconf.
56579         * m4/same.m4 (gl_SAME): Likewise.
56580         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56581
56582         * m4/regex.m4: Adjust to new libc regex implementation.
56583         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56584         all the .c and .h parts of (the new) regex.
56585         Quote the m4 stuff better.
56586         Check for RE_ICASE bug of old gnulib.
56587         Check for REG_STARTEND of recent libc.
56588         Rename local variables from jm_* to gl_*.
56589         Quote operand of "test -f".
56590         Say "recent enough" version of libc, not "version 2".
56591         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56592         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56593         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56594         Remove check for btowc, isascii.
56595         Require AM_LANGINFO_CODESET.
56596
56597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56598
56599         * lib/regex.c, regex.h: Sync from libc.
56600         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56601         * lib/regexec.c:
56602         New files, synced from libc, except that regex_internal.h
56603         currently has a small porting fix.
56604
56605 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56606
56607         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56608         regex_internal.c, regexec.c.
56609         Add regex_internal.h too, but as a comment, since the libc version
56610         is currently broken in gnulib mode.
56611
56612 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56613
56614         Support programs like Emacs that use gnulib but not gettext.
56615         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56616         * modules/gettext-h: New file.
56617         * modules/gettext (Files): Remove lib/gettext.h.
56618         (Depends-on): Add gettext-h.
56619         (Makefile.am): Remove lib_SOURCES.
56620         * modules/argmatch, modules/c-stack, modules/closeout:
56621         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56622         * modules/execute, modules/file-type, modules/getaddrinfo:
56623         * modules/getopt, modules/human, modules/javacomp:
56624         * modules/javaexec, modules/mkdir-p, modules/obstack:
56625         * modules/openat, modules/pagealign_alloc, modules/pipe:
56626         * modules/quotearg, modules/regex, modules/rpmatch:
56627         * modules/unicodeio, modules/userspec, modules/version-etc:
56628         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56629         * modules/xsetenv:
56630         Depend on gettext-h, not gettext.
56631
56632 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56633
56634         * gnulib-tool (func_import): Add support for 'public domain' license.
56635         * modules/alloca, modules/atexit, modules/memmove:
56636         Now public domain, not GPL.
56637         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56638         * modules/realloc, modules/strerror, modules/strtod:
56639         Now LGPL, not GPL.
56640
56641 2005-07-05  Bruno Haible  <bruno@clisp.org>
56642
56643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56644         autoconf CVS. Needed for mingw.
56645
56646 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56647
56648         Remove the dependency of the strftime module on the tzset module.
56649         * modules/strftime (Depends-on): Remove dependency on tzset.
56650
56651 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56652
56653         Remove the dependency of the strftime module on the tzset module.
56654         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56655         gl_FUNC_TZSET_CLOBBER.
56656
56657 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56658
56659         Remove the dependency of the strftime module on the tzset module.
56660         * lib/strftime.c (my_strftime)
56661         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56662         Copy the input structure, to work around some of the bug with
56663         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56664         Solaris releases, you should also use the tzset module, but we won't
56665         require it as a dependency any more since we don't want LGPLed code
56666         to depend on GPLed code.
56667
56668 2005-07-02  Jim Meyering  <jim@meyering.net>
56669
56670         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56671         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56672         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56673         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56674
56675 2005-07-02  Jim Meyering  <jim@meyering.net>
56676
56677         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56678
56679 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56680
56681         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56682         declares only 'struct timespec;' (!).
56683
56684 2005-07-01  Jim Meyering  <jim@meyering.net>
56685
56686         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56687         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56688         * lib/save-cwd.c, tempname.c:
56689         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56690         and don't include <sys/file.h>).
56691
56692 2005-06-29  Jim Meyering  <jim@meyering.net>
56693
56694         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56695         type name.  Use the variable name instead.
56696         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56697         Likewise.
56698
56699 2005-06-28  Simon Josefsson  <jas@extundo.com>
56700
56701         * modules/check-version (Files): Add check-version.m4.
56702
56703 2005-06-28  Simon Josefsson  <jas@extundo.com>
56704
56705         * m4/check-version.m4: New file, suggested by Jim Meyering
56706         <jim@meyering.net>.
56707
56708 2005-06-28  Simon Josefsson  <jas@extundo.com>
56709
56710         * lib/check-version.h, lib/check-version.c: New files.
56711
56712 2005-06-28  Simon Josefsson  <jas@extundo.com>
56713
56714         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56715         collision with global variable.  Better indentation.  Don't
56716         increment buffer pointer beyond buffer end.  Based on comments
56717         from Paul Eggert <eggert@cs.ucla.edu>.
56718
56719         * lib/base64.h: Indent.
56720
56721 2005-06-28  Simon Josefsson  <jas@extundo.com>
56722
56723         * doc/gnulib.texi (Library version handling): New section.
56724
56725 2005-06-28  Jim Meyering  <jim@meyering.net>
56726
56727         * check-module (find_included_lib_files): Hard-code another
56728         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56729         but modules/fts-lgpl (correctly) does not list those files.
56730
56731         * modules/canonicalize (Files): Add lib/pathmax.h.
56732
56733 2005-06-25  Simon Josefsson  <jas@extundo.com>
56734
56735         * modules/check-version: New file.
56736
56737 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56740         initializer of struct addrinfo, as an indication that we don't
56741         care how many members the structure has.
56742
56743 2005-06-24  Derek Price  <derek@ximbiot.com>
56744         and Bruno Haible  <bruno@clisp.org>
56745
56746         Remove stat module & update lstat.
56747         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56748         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56749         * m4/stat.m4: Remove this file.
56750
56751 2005-06-24  Derek Price  <derek@ximbiot.com>
56752         and Bruno Haible  <bruno@clisp.org>
56753
56754         Remove stat module & update lstat.
56755         * lib/stat.c: Remove this file...
56756         (slash_aware_lstat): ...moving this content and its support...
56757         * lib/lstat.c (rpl_lstat): ...into here.
56758         * lib/lstat.h: New file.
56759
56760 2005-06-24  Derek Price  <derek@ximbiot.com>
56761         and Bruno Haible  <bruno@clisp.org>
56762
56763         Remove stat module & update lstat.
56764         * config/srclist.txt (libc sources): Remove stat.
56765
56766 2005-06-24  Derek Price  <derek@ximbiot.com>
56767         and Bruno Haible  <bruno@clisp.org>
56768
56769         Remove stat module & update lstat.
56770         * MODULES.html.sh (stat): Remove.
56771         * MODULES.html: Regenerated.
56772         * modules/lstat (Description): Correct function name.
56773         (Files): Add "lstat.h".
56774         (Depends-on): Remove stat, add xalloc, stat-macros.
56775         * modules/stat: Remove this file.
56776         (Include): Add "lstat.h", remove <sys/stat.h>.
56777
56778 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56779
56780         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56781         (ranged_convert): Don't save conversion in a temporary struct.
56782         This causes a warning with GCC 4.0.0, and anyway in the typical
56783         case it's not worth the extra 100 bytes or so of code.
56784         (ranged_convert, __mktime_internal): When calling a function via a
56785         pointer P, use P () rather than (*P) (), as we now assume C89 or
56786         better.
56787
56788 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56789
56790         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56791         "who -r" failed to give output.  Problem reported by Tim Waugh.
56792
56793         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56794         (xcalloc): Use it to avoid needless tests.
56795         Problem reported by Jim Meyering.
56796
56797 2005-06-20  Derek Price  <derek@ximbiot.com>
56798
56799         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56800         unnecessary for Autoconfs > 2.59c.
56801
56802 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56803
56804         * lib/argp.h (__option_is_short): Check upper limit of
56805         __key. Isprint() requires its argument to have the value
56806         of an unsigned char or EOF.
56807
56808 2005-06-16  Jim Meyering  <jim@meyering.net>
56809
56810         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56811         when either N or S is zero.
56812
56813 2005-06-16  Derek Price  <derek@ximbiot.com>
56814
56815         * m4/bison.m4: Declare YACC & YFLAGS precious.
56816
56817 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56820         multibyte string or pattern, fall back on unibyte matching.
56821         Problem reported by James Youngman.
56822
56823 2005-06-08  Bruno Haible  <bruno@clisp.org>
56824
56825         * modules/csharpcomp: New file.
56826         * MODULES.html.sh (C#): Add csharpcomp.
56827
56828 2005-06-08  Bruno Haible  <bruno@clisp.org>
56829
56830         * m4/csharpcomp.m4: New file, from GNU gettext.
56831
56832 2005-06-08  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/csharpcomp.h: New file, from GNU gettext.
56835         * lib/csharpcomp.c: New file, from GNU gettext.
56836         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56837
56838 2005-06-08  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56841         warning on mingw.
56842
56843 2005-06-07  Derek Price  <derek@ximbiot.com>
56844
56845         Sync from CVS.
56846         * lib/glob_.h: Indent nested #ifdef.
56847
56848 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         Sync from coreutils.
56851         Use "file name" when talking about file names, instead of "filename"
56852         or "path", as per the GNU coding standards.
56853         * lib/mkdir-p.c: Renamed from makepath.c.
56854         (make_dir_parents): Renamed from make_path.  All callers changed.
56855         * lib/mkdir-p.h: Likewise.  All includers changed.
56856         * lib/filenamecat.c: Renamed from path-concat.c.
56857         (file_name_concat): Renamed from path_concat.  All callers changed.
56858         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56859         * lib/filenamecat.h: Likewise.  All includers changed.
56860         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56861         in comments or local variable names.
56862         * lib/basename.c: Likewise.
56863         * lib/canonicalize.c, canonicalize.h: Likewise.
56864         * lib/dirname.c, dirname.h: Likewise.
56865         * lib/euidaccess.c: Likewise.
56866         * lib/exclude.c: Likewise
56867         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56868         * lib/fsusage.c, fsuage.h: Likewise.
56869         * lib/fts.c, fts_.h: Likewise.
56870         * lib/getcwd.c: Likewise.
56871         * lib/getloadavg.c: Likewise.
56872         * lib/mkstemp.c: Likewise.
56873         * lib/mountlist.c, mountlist.h: Likewise.
56874         * lib/openat.c, openat.h: Likewise.
56875         * lib/readlink-stub.c: Likewise.
56876         * lib/readutmp.c, readutmp.h: Likewise.
56877         * lib/rename.c: Likewise.
56878         * lib/rmdir.c: Likewise.
56879         * lib/same.c: Likewise.
56880         * lib/savedir.c: Likewise.
56881         * lib/stripslash.c: Likewise.
56882         * lib/tempname.c: Likewise.
56883         * lib/xreadlink.c: Likewise.
56884         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56885         All uses changed.
56886         * lib/exclude.h: Likewise.
56887
56888         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56889         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56890         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56891         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56892         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56893         files have been getting away with it for years (MORE/BSD 4.3
56894         is extinct now).
56895         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56896         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56897
56898         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56899         Define to 256, not 255, as per modern POSIX.
56900
56901 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         Sync from coreutils.
56904         Use "file name" when talking about file names, instead of "filename"
56905         or "path", as per the GNU coding standards.
56906         * MODULES.html.sh: mkdir-p renamed from makepath.
56907         filenamecat renamed from path-concat.
56908         * modules/filenamecat: Renamed from modules/path-concat.
56909         (Files): filenamecat.h and filenamecat.c renamed from
56910         path-concat.h and path-concat.c.
56911         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56912         (Include): filenamecat.h, not path-concat.h.
56913         * modules/mkdir-p: Renamed from modules/makepath.
56914         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56915         makepath.c.
56916         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56917         (Include): mkdir-p.h, not makepath.h.
56918
56919 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56920
56921         Sync from coreutils.
56922         * m4/mkdir-p.m4: Renamed from makepath.m4.
56923         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
56924         Rename files from makepath.c to mkdir-p.c, and from
56925         makepath.h to mkdir-p.h.
56926         * m4/filenamecat.m4: Renamed from path-concat.m4.
56927         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
56928         Rename files from path-concat.c to filenamecat.c,
56929         and from path-concat.h to filenamecat.h.
56930         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
56931         "file name" in local variables or comments.
56932         * m4/rename.m4: Likewise.
56933
56934 2005-06-01  Bruno Haible  <bruno@clisp.org>
56935
56936         * modules/csharpexec: New file.
56937         * MODULES.html.sh (C#): New section.
56938
56939 2005-06-01  Bruno Haible  <bruno@clisp.org>
56940
56941         * m4/csharp.m4: New file, from GNU gettext.
56942         * m4/csharpexec.m4: New file, from GNU gettext.
56943
56944 2005-06-01  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/csharpexec.h: New file, from GNU gettext.
56947         * lib/csharpexec.c: New file, from GNU gettext.
56948         * lib/csharpexec.sh.in: New file, from GNU gettext.
56949
56950 2005-05-31  Derek Price  <derek@ximbiot.com>
56951             Paul Eggert  <eggert@cs.ucla.edu>
56952
56953         Sync from cvs.
56954         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56955
56956 2005-05-31  Derek Price  <derek@ximbiot.com>
56957             Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         Sync from cvs.
56960         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56961
56962 2005-05-29  Derek Price  <derek@ximbiot.com>
56963
56964         * config/srclist.txt (glob_.h, glob.c): Add these files.
56965
56966 2005-05-29  Derek Price  <derek@ximbiot.com>
56967
56968         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
56969         * modules/glob: New file.
56970         * modules/getlogin_r: Add link to POSIX spec in description.
56971
56972 2005-05-29  Derek Price  <derek@ximbiot.com>
56973             Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * m4/glob.m4: New file.
56976
56977 2005-05-29  Derek Price  <derek@ximbiot.com>
56978             Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         * lib/glob_.h, lib/glob.c: New files.
56981
56982 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56983
56984         * modules/fts (Files): Remove m4/inttypes-pri.m4.
56985         * modules/fts-lgpl (Depends-on): Remove gettext.
56986
56987 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
56990         and don't require gt_INTTYPES_PRI.
56991
56992 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56993
56994         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
56995
56996         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
56997         the configuration hassle isn't worth it.
56998         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
56999         (LONGEST_MODIFIER, PRIuMAX): Remove.
57000
57001 2005-05-27  Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57004
57005 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57006
57007         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57008         _POSIX_PTHREAD_SEMANTICS for Solaris.
57009
57010 2005-05-25  Derek Price  <derek@ximbiot.com>
57011
57012         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57013
57014 2005-05-25  Derek Price  <derek@ximbiot.com>
57015             Paul Eggert  <eggert@cs.ucla.edu>
57016
57017         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57018         * lib/getlogin_r.c, getlogin_r.h: New files.
57019
57020 2005-05-25  Bruno Haible  <bruno@clisp.org>
57021             Derek Price  <derek@ximbiot.com>
57022
57023         * lib/getlogin_r.h: Simplify API documentation.
57024
57025 2005-05-23  Derek Price  <derek@ximbiot.com>
57026
57027         * modules/minmax (Files): Add m4/minmax.m4.
57028         (configure.ac): Add gl_MINMAX.
57029
57030 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57031
57032         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57033         so that unistd-safer.h (GPL'ed code) need not be included.
57034
57035 2005-05-22  Bruno Haible  <bruno@clisp.org>
57036
57037         * m4/minmax.m4: New file.
57038         Based on a patch by Derek Price <derek@ximbiot.com>.
57039
57040 2005-05-22  Bruno Haible  <bruno@clisp.org>
57041
57042         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57043         (INT64_MIN): Fix definition.
57044         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57045
57046         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57047         NEED_SIGNED_INT_TYPES.
57048
57049         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57050         HAVE_SYSTEM_INTTYPES.
57051
57052 2005-05-22  Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57055         Also include <sys/param.h> if it defines MIN, MAX.
57056         Based on a patch by Derek Price <derek@ximbiot.com>.
57057
57058 2005-05-21  Jim Meyering  <jim@meyering.net>
57059
57060         * modules/fts (Files): Add m4/inttypes-pri.m4.
57061         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57062
57063 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57064
57065         New fts module.
57066         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57067         (setup_dir, free_dir): New functions.
57068         (enter_dir, leave_dir): Define trivial
57069         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57070         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57071         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57072         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57073         Move to fts-cycle.c.
57074         (fts_open): Use setup_dir.
57075         (fts_close): Use free_dir.
57076         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57077         This adds a label and some gotos, but the alternatives were messier.
57078         Check for memory allocation failure when entering a dir.
57079         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57080         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57081         (FTS): New member fts_cycle, that is a union that contains the
57082         old active_dir_ht and cycle_state.  All uses changed to mention
57083         fts_cycle.ht and fts_cycle.state.
57084         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57085         fts.c, with the following changes:
57086         (setup_dir, free_dir): New functions.
57087         (enter_dir): Now returns bool.  Return true if successful, false
57088         if memory exhausted.  All callers changed.
57089         Do not bother partly cleaning up on
57090         memory allocation failure; that is free_dir's job.
57091         However, free ad if hash_insert fails, to avoid memory leak.
57092         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57093         fts->fts_options to see which union member to use.
57094
57095 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57098         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57099
57100 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57103
57104 2005-05-20  Jim Meyering  <jim@meyering.net>
57105
57106         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57107         Now a macro, to pacify GCC.
57108
57109 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57110
57111         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57112         of -1.
57113
57114 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57115
57116         * lib/chown.c (rpl_chown): Return -1 on failure.
57117
57118 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57119
57120         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57121         Don't check for stddef.h.
57122         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57123         don't use its results.
57124         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57125         since we include them unconditionally.  Don't require
57126         AM_STDBOOL_H, since stdbool is a prerequisite.
57127         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57128         since we assume C89 or better.
57129         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57130         as we don't use their results.
57131         Don't check for fchdir, memmove, memset, strrchr, as we use
57132         them unconditionally.
57133         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57134         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57135
57136 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57139         Include <stddef.h> unconditionally, since we assume C89 now.
57140         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57141         * lib/fts.c: Include fts_.h first, to check interface.
57142         Do not include intprops.h; no longer needed.
57143         Include cycle-check.h and hash.h, since fts_.h no longer does.
57144         Remove unnecessary casts of closedir to void.
57145         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57146         decide whether to decrement nlinks.
57147         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57148         (FTS): Use struct hash_table * instead of Hash_table, so that
57149         we no longer need to include hash.h here.
57150
57151 2005-05-18  Jim Meyering  <jim@meyering.net>
57152
57153         * modules/dirfd (License): Change to LGPL.  Most of the code
57154         is already in the public domain.
57155
57156 2005-05-18  Jim Meyering  <jim@meyering.net>
57157
57158         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57159         Reported by Yoann Vandoorselaere.
57160
57161 2005-05-17  Jim Meyering  <jim@meyering.net>
57162
57163         * m4/fts.m4: New file, from coreutils.
57164
57165 2005-05-17  Jim Meyering  <jim@meyering.net>
57166
57167         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57168
57169 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         Sync from coreutils.
57172         * m4/unlinkdir.m4: New file.
57173
57174 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         Sync from coreutils.
57177         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57178         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57179         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57180         White space changes only.
57181         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57182         special.
57183         * lib/yesno.c: Include getline.h, not ctype.h.
57184         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57185         Use getline to remove arbitrary restriction on response length.
57186
57187 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57188
57189         * config/srclist-update: Spell out "Street" in FSF postal
57190         mail address; this is the style the FSF seems to prefer.
57191
57192         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57193         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57194         this updates FSF postal mail address.
57195
57196         Sync from coreutils.
57197         * modules/unlinkdir: New file.
57198         * modules/yesno (Depends-on): Add getline.
57199         * MODULES.html.sh (File system functions): Add unlinkdir.
57200
57201 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57204         lib/strsep.h:
57205         Change the initial comment to refer to GPL, not LGPL.
57206         gnulib-tool will change it to LGPL as needed.
57207
57208         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57209         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57210         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57211         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57212         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57213         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57214         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57215         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57216         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57217         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57218         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57219         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57220         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57221         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57222         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57223         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57224         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57225         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57226         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57227         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57228         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57229         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57230         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57231         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57232         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57233         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57234         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57235         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57236         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57237         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57238         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57239         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57240         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57241         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57242         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57243         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57244         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57245         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57246         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57247         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57248         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57249         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57250         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57251         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57252         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57253         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57254         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57255         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57256         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57257         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57258         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57259         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57260         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57261         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57262         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57263         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57264         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57265         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57266         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57267         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57268         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57269         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57270         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57271         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57272         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57273         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57274         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57275         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57276         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57277         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57278         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57279         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57280         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57281         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57282         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57283         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57284         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57285         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57286         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57287         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57288         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57289         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57290         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57291         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57292         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57293         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57294         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57295         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57296         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57297         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57298         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57299         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57300         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57301         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57302         lib/yesno.c, lib/yesno.h:
57303         Update FSF postal mail address.
57304
57305 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57306
57307         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57308         tests/test-memmem.c, tests/test-stpncpy.c:
57309         Update FSF postal mail address.
57310
57311 2005-05-13  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57314         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57315         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57316         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57317         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57318         Add support for 64-bit integers in the MSVC compiler.
57319
57320 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57321
57322         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57323
57324 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57325
57326         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57327
57328 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57329
57330         * doc/getdate.texi (General date syntax): Don't say that date
57331         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57332         Problem reported by Nic Ferrier.
57333
57334 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57335
57336         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57337         specified in ai_socktype. Fix invalid ai_protocol
57338         check. ai_protocol is usually set to 0 or depending on
57339         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57340         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57341         ai_socktype / ai_protocol in the returned addrinfo structure.
57342
57343 2005-05-10  Simon Josefsson  <jas@extundo.com>
57344
57345         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57346         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57347
57348 2005-05-10  Karl Berry  <karl@gnu.org>
57349
57350         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57351         (from http://www.gnu.org/licenses).
57352         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57353         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57354         fdl.texi suffices.
57355
57356 2005-05-10  Karl Berry  <karl@gnu.org>
57357
57358         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57359         (COPYING.DOC): remove.
57360
57361         * config/srclist-update: new FSF address.
57362
57363 2005-05-10  Derek Price  <derek@ximbiot.com>
57364
57365         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57366         possible.
57367
57368 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57369             Bruno Haible  <bruno@clisp.org>
57370
57371         * modules/inet_ntop: New file.
57372         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57373         inet_ntop.
57374
57375 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57376             Bruno Haible  <bruno@clisp.org>
57377
57378         * m4/inet_ntop.m4: New file.
57379
57380 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57381             Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/inet_ntop.h: New file.
57384         * lib/inet_ntop.c: New file, from glibc with modifications.
57385
57386 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         * modules/time_r (License): Change to LGPL.
57389         * modules/extensions (License): Change to LGPL.  Actually,
57390         the license is more permissive than that, but currently gnulib-tool
57391         doesn't know how to handle more-permissive licenses.
57392
57393         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57394         Problem reported by Dave Love.
57395
57396 2005-05-08  Jim Meyering  <jim@meyering.net>
57397
57398         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57399         blank.
57400
57401 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57402
57403         * modules/argmatch (Depends-on): Add stdbool.
57404         * modules/backupfile (Depends-on): Likewise.
57405         * modules/chdir-long (Depends-on): Likewise.
57406         * modules/closeout (Depends-on): Likewise.
57407         * modules/cycle-check (Depends-on): Likewise.
57408         * modules/dirname (Depends-on): Likewise.
57409         * modules/fnmatch (Depends-on): Likewise.
57410         * modules/fsusage (Depends-on): Likewise.
57411         * modules/fwriteerror (Depends-on): Likewise.
57412         * modules/getcwd (Depends-on): Likewise.
57413         * modules/getloadavg (Depends-on): Likewise.
57414         * modules/hard-locale (Depends-on): Likewise.
57415         * modules/makepath (Depends-on): Likewise.
57416         * modules/mountlist (Depends-on): Likewise.
57417         * modules/nanosleep (Depends-on): Likewise.
57418         * modules/posixtm (Depends-on): Likewise.
57419         * modules/quotearg (Depends-on): Likewise.
57420         * modules/readtokens (Depends-on): Likewise.
57421         * modules/readtokens0 (Depends-on): Likewise.
57422         * modules/readutmp (Depends-on): Likewise.
57423         * modules/save-cwd (Depends-on): Likewise.
57424         * modules/strftime (Depends-on): Likewise.
57425         * modules/userspec (Depends-on): Likewise.
57426         * modules/utimecmp (Depends-on): Likewise.
57427         * modules/xgetcwd (Depends-on): Likewise.
57428         * modules/xnanosleep (Depends-on): Likewise.
57429         * modules/xstrtod (Depends-on): Likewise.
57430         * modules/yesno (Depends-on): Likewise.
57431
57432 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57433
57434         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57435         needless checks.
57436
57437 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         Merge from coreutils.  Among other things,
57440         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57441         * lib/fd-safer.c: New file.
57442         * lib/fcntl-safer.h, open-safer.c: Remove.
57443         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57444         * lib/dup-safer.c: Include unistd-safer.h first.
57445         Don't include errno.h.
57446         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57447         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57448         * lib/file-type.c: Rely on file-type.h change.
57449         * lib/getloadavg.c: Include unistd-safer.h.
57450         (getloadavg): Use safer open.
57451         * lib/getusershell.c: Include "stdio-safer.h".
57452         (getusershell): Use safer fopen.
57453         * lib/long-options.c (long_options): Use NULL rather than 0.
57454         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57455         'free'.
57456         * lib/modechange.c: Likewise.
57457         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57458         (MODE_DONE): New constant.
57459         (struct mode_change): Remove 'next' member.
57460         (make_node_op_equals): New function; like the old one of the
57461         same name, except it allocates an array.
57462         (mode_compile, mode_create_from_ref): Use it.
57463         (mode_compile): Allocate result as an array, not a linked list.
57464         Parse octal string ourself, so that we catch mistakes like "+0".
57465         (mode_adjust): Arg is an array, not a linked list.
57466         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57467         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57468         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57469         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57470         Remove.  This is now stat-macros.h's job.
57471         (talloc): Remove.  All callers replaced by xalloc, so that
57472         our invokers don't have to worry about reporting memory failures.
57473         (make_node_op_equals): Remove.
57474         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57475         New constants.
57476         (struct mode_change): Moved here from modechange.h.
57477         (mode_append_entry): Remove.
57478         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57479         apps to have incorrect behavior.  Use simpler algorithm for head
57480         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57481         Detect more invalid usages rather than having somewhat-random behavior.
57482         Don't insert an "a=" action, as that leads to incorrect behavior.
57483         (mode_compile, mode_create_from_ref): Return NULL on error instead
57484         of an enum, since now there's only one way to have an error.  All
57485         callers changed.
57486         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57487         at the correct time.  Simplify calculation of "+u" and its ilk.
57488         Don't mishandle "+X".
57489         (mode_free): Remove "register" and localize decls.
57490         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57491         (struct mode_change): Move to modechange.c; callers don't
57492         need to see this stuff.
57493         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57494         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57495         (mode_change, mode_adjust): Reflect the new signatures noted above.
57496         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57497         that might redefine system include files.
57498         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57499         (my_usleep): Use NULL rather than (void *) 0.
57500         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57501         Use siginterrupt to specify that system calls should be interrupted.
57502         (rpl_nanosleep): Move initialization of suspended closer to call of
57503         my_usleep.
57504         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57505         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57506         (desirable_utmp_entry): New function.
57507         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57508         using x2nrealloc, to simplify logic.
57509         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57510         size calculation.  Do not assume utmp file is a regular file.
57511         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57512         (READ_UTMP_CHECK_PIDS): New constant.
57513         * lib/save-cwd.c: Include unistd-safer.h.
57514         (save_cwd): Use fd_safer.
57515         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57516         [!_LIBC] Include "stat-macros.h" instead.
57517         * lib/unistd-safer.h (fd_safer): New decl.
57518
57519 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57520
57521         * modules/getloadavg (Depends-on): Add unistd-safer.
57522         * modules/getusershell (Depends-on): Add stdio-safer.
57523         * modules/lstat (Depends-on): Remove xalloc.
57524         * modules/mkstemp (Depends-on): Add stat-macros.
57525         * modules/modechange (Depends-on): Remove xstrtol.
57526         Add stat-macros, xalloc.
57527         * modules/save-cwd (Depends-on): Add unistd-safer.
57528         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57529         * modules/unistd-safer (Files): Add lib/fd-safer.c
57530         (Makefile.am): Remove lib_SOURCES.
57531
57532         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57533         Remove fcntl-safer; unistd-safer supersedes it.
57534
57535 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57538         AC_HEADER_STAT.
57539         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57540         (gl_PREREQ_CHOWN): Remove.
57541         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57542         it.  Don't require AC_HEADER_STAT.
57543         (gl_PREREQ_LSTAT): Remove.
57544         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57545         Don't require AC_HEADER_STAT.
57546         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57547         (gl_PREREQ_RMDIR): Remove.
57548         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57549         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57550         the stat-macros module a prerequisite.
57551         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57552         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57553         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57554         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57555         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57556         variable names.
57557         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57558         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57559         variable prefixes.
57560         * m4/fcntl-safer.m4: Remove.
57561         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57562         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57563         Invoke gl_PREREQ_FD_SAFER.
57564         (gl_PREREQ_FD_SAFER): New macro.
57565         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57566         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57567         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57568         Remove duplicate call to AC_LIBOBJ(readutmp).
57569         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57570
57571         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57572         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57573
57574 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57575
57576         * MODULES.html.sh (Misc): Add byteswap.
57577
57578 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57579
57580         * modules/getcwd (Depends-on): Add extensions.
57581         * modules/openat (Depends-on): Likewise.
57582
57583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57584
57585         * modules/byteswap: New file.
57586
57587 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57588
57589         * m4/byteswap.m4: New file.
57590
57591 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57592
57593         * lib/byteswap_.h: New file.
57594
57595 2005-04-25  Karl Berry  <karl@gnu.org>
57596
57597         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57598
57599 2005-04-25  Albert Chin  <china@thewrittenword.com>
57600
57601         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57602         Toolkit C bug.
57603
57604 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57605
57606         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57607         (func_ln_if_changed) Remove forcibly for no error message
57608         in case file does not exist.
57609
57610 2005-04-19  Simon Josefsson  <jas@extundo.com>
57611
57612         * gnulib-tool (Options): Make --symlink mean --symbolic.
57613
57614 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57615
57616         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57617
57618 2005-04-16  Simon Josefsson  <jas@extundo.com>
57619
57620         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57621
57622 2005-04-15  Simon Josefsson  <jas@extundo.com>
57623
57624         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57625
57626 2005-04-15  Simon Josefsson  <jas@extundo.com>
57627
57628         * gnulib-tool: Rename --symlink to --symbolic.
57629
57630 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57631
57632         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57633         symbolic links to files instead of copying/moving.  Add --aux-dir,
57634         specifying directory relative --dir where auxiliary build tools
57635         are placed.
57636
57637 2005-04-14  Bruno Haible  <bruno@clisp.org>
57638
57639         * modules/allocsa (License): Change to LGPL.
57640         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57641
57642 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57645         that "UTC +1 second" continues to work.  Problem reported
57646         by Dmitry V. Levin.
57647         (relunit_snumber): New rule.
57648         (relunit): Use it.
57649
57650 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57651
57652         * lib/getdate.y (universal_time_zone_table): New constant.
57653         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57654         universal_time_zone_table.
57655         (lookup_zone): Prefer universal_time_zone_table to
57656         local_time_zone_table, so that "GMT" time stamps are allowed in
57657         London during the summer.  Problem reported by Ian Abbott.
57658
57659 2005-04-12  Jim Meyering  <jim@meyering.net>
57660
57661         * lib/human.c (humblock): Set *options even when returning due to
57662         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57663         warning from gcc-4.
57664
57665 2005-04-09  Jim Meyering  <jim@meyering.net>
57666
57667         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57668         -Wuninitialized: initialize tm0.tm_year.
57669
57670 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57671
57672         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57673         count, since there's no maximum.  All uses changed.
57674         Add member dsts_seen.
57675         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57676         not being INT_MAX.
57677         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57678         Use pc_rels_seen to decide whther a date is absolute.
57679
57680         * lib/getdate.y (number): Don't overwrite year.
57681         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57682         check.
57683
57684 2005-04-02  Simon Josefsson  <jas@extundo.com>
57685
57686         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57687         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57688
57689 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57690
57691         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57692         where no absolute path name can be longer than PATH_MAX.
57693
57694 2005-03-27  Jim Meyering  <jim@meyering.net>
57695
57696         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57697
57698 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57699
57700         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57701         "one's complement" -> "ones' complement" in comment, as per Knuth.
57702         "value of type" -> "type or expression" in comment.
57703         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57704
57705 2005-03-26  Jim Meyering  <jim@meyering.net>
57706
57707         Comment nits.
57708         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57709         Correct typos: s/or/of/.
57710
57711 2005-03-26  Jim Meyering  <jim@meyering.net>
57712
57713         * modules/check-include-files: Move to ../ and rename to...
57714         * check-module: ...this.
57715
57716 2005-03-25  Jim Meyering  <jim@meyering.net>
57717
57718         * modules/xvasprintf (Files): Add xalloc.h.
57719
57720 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57721
57722         * modules/gettext (Files): config/config.rpath ->
57723         build-aux/config.rpath
57724         * modules/iconv (Files): Likewise.
57725         Problem reported by Oskar Liljeblad.
57726
57727 2005-03-23  Jim Meyering  <jim@meyering.net>
57728
57729         * modules/check-include-files: New script to check for
57730         missing dependencies, multiple includes, etc.
57731
57732         * modules/c-strtold (Depends-on): Add xalloc.
57733         * modules/c-strtod (Depends-on): Add xalloc.
57734         * modules/hash (Depends-on): Add xalloc.
57735         (Files): Remove lib/xalloc.h.
57736
57737         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57738         * modules/userspec (Files): Add lib/inttostr.h.
57739
57740 2005-03-23  Jim Meyering  <jim@meyering.net>
57741
57742         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57743
57744 2005-03-22  Jim Meyering  <jim@meyering.net>
57745
57746         * modules/stat-macros: New module.
57747         * modules/canonicalize, modules/euidaccess, modules/file-type,
57748         * modules/filemode, modules/lchown, modules/makepath,
57749         * modules/rmdir, modules/stat: Depend on new stat-macros module
57750         rather than listing lib/stat-macros.h manually.
57751         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57752
57753 2005-03-22  Jim Meyering  <jim@meyering.net>
57754
57755         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57756
57757 2005-03-22  Bruno Haible  <bruno@clisp.org>
57758
57759         * config/srclist.txt: Replace target directory 'config' with
57760         'build-aux'.
57761         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57762         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57763         ../build-aux/.
57764
57765 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         * modules/chdir-long (Depends-on): Add mempcpy.
57768
57769         * modules/acl, modules/backupfile, modules/c-strtod,
57770         modules/c-strtold, modules/canon-host, modules/canonicalize,
57771         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57772         modules/exclude, modules/exitfail, modules/file-type,
57773         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57774         modules/getdate, modules/getline, modules/getpagesize,
57775         modules/getpass, modules/getugroups, modules/group-member,
57776         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57777         modules/inttostr, modules/long-options, modules/makepath,
57778         modules/md5, modules/memcasecmp, modules/memcoll,
57779         modules/modechange, modules/mountlist, modules/path-concat,
57780         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57781         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57782         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57783         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57784         modules/strftime, modules/strndup, modules/strverscmp,
57785         modules/timespec, modules/unlocked-io, modules/userspec,
57786         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57787         modules/yesno:
57788         Remove lib_SOURCES line from Makefile.am section, as this is now
57789         done automatically by the corresponding Autoconf macro.
57790
57791 2005-03-21  Jim Meyering  <jim@meyering.net>
57792
57793         Changes imported from coreutils.
57794
57795         * lib/cycle-check.c: Don't include xalloc.h.
57796
57797         * lib/path-concat.c: Don't include assert.h.
57798         (path_concat): Remove assertion that would have triggered
57799         for ABASE starting with more than one slash.
57800         Reported by Andreas Schwab.
57801
57802         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57803         properly when ABASE is an absolute file name.
57804         Correct the description of this function.
57805         Include <assert.h>.
57806         Add an assertion and a test driver.
57807         This fixes a bug introduced on 2004-07-02.
57808         Andreas Schwab reported the resulting failure of cp --parents:
57809         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57810
57811 2005-03-21  Jim Meyering  <jim@meyering.net>
57812
57813         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57814         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57815
57816 2005-03-21  Jim Meyering  <jim@meyering.net>
57817         and  Paul Eggert  <eggert@cs.ucla.edu>
57818
57819         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57820         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57821         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57822         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57823         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57824         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57825         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57826         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57827         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57828         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57829         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57830         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57831         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57832         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57833         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57834         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57835         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57836         for these modules.
57837
57838 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57841         (which shouldn't happen), generate nothing instead of returning 0
57842         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57843
57844 2005-03-16  Bruno Haible  <bruno@clisp.org>
57845
57846         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57847         HAVE_LONGLONG_64BIT.
57848
57849 2005-03-16  Bruno Haible  <bruno@clisp.org>
57850
57851         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57852         HAVE_LONGLONG_64BIT.
57853
57854 2005-03-16  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57857         HAVE_LONGLONG_64BIT.
57858
57859 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57860
57861         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57862         reliably distinguish strftime failure from empty output on POSIX
57863         hosts.
57864
57865 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57868         (iconv_string): Don't guess a size-zero buffer, as that might cause
57869         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57870         result would be 'too large', where 'too large' is (heuristically)
57871         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57872         overflow concerns.  This will prevent some unwanted malloc failures
57873         when the inputs are very large.
57874
57875 2005-03-15  Karl Berry  <karl@gnu.org>
57876
57877         * config/srclist.txt (config.rpath): from gettext.
57878         * config/config.rpath: update.
57879
57880 2005-03-15  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57883         to 'negate'.
57884
57885         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57886         variable.
57887
57888         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57889         results.
57890
57891 2005-03-14  Simon Josefsson  <jas@extundo.com>
57892
57893         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57894         <fx@gnu.org>.
57895
57896 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57899         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57900         intprops.h.
57901         * lib/strtol.c: Likewise.
57902
57903 2005-03-14  Jim Meyering  <jim@meyering.net>
57904
57905         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57906         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57907         to be nonzero so that we (and caller) can detect the difference
57908         between a valid zero-length expansion and an error return, even
57909         when the underlying strftime fails before writing anything into
57910         that location.
57911
57912 2005-03-14  Bruno Haible  <bruno@clisp.org>
57913
57914         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57915         Update from GNU gettext 0.14.3.
57916
57917 2005-03-10  Jim Meyering  <jim@meyering.net>
57918
57919         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
57920
57921 2005-03-10  Jim Meyering  <jim@meyering.net>
57922
57923         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
57924         so that this module works on systems without fchdir.
57925
57926 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
57927
57928         Factor int-properties macros into a single file, except for
57929         glibc-related files.
57930         * lib/intprops.h: New file.
57931         * lib/getloadavg.c: Include it instead of limits.h.
57932         (INT_STRLEN_BOUND): Remove.
57933         * lib/human.c: Include intprops.h.
57934         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
57935         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
57936         302/1000.
57937         * lib/inttostr.h: Include intprops.h instead of limits.h.
57938         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
57939         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
57940         for consistency with intprops.h.
57941         (time_t_is_integer, twos_complement_arithmetic): Use them.
57942         * lib/sig2str.h: Include <signal.h>, intprops.h.
57943         (INT_STRLEN_BOUND): Remove.
57944         * lib/strftime.c (TYPE_SIGNED): Remove.
57945         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
57946         * lib/strtol.c: Adjust comments to match intprops.h.
57947         * lib/userspec.c: Include intprops.h.
57948         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
57949         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
57950         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
57951         instead of rolling our own expressions.
57952         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
57953
57954         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
57955         instead of int.
57956         (my_strftime): Do not mishandle years close to INT_MAX, by doing
57957         the right thing even if adding 1900 would overflow.  Similarly
57958         for tm_mon + 1 and tm_yday + 1.
57959         Make %Y always equivalent to %C%y, and similarly for %G and %g.
57960         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
57961         (DO_SIGNED_NUMBER): New macro.
57962         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
57963
57964 2005-03-07  Bruno Haible  <bruno@clisp.org>
57965
57966         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
57967
57968 2005-03-07  Bruno Haible  <bruno@clisp.org>
57969
57970         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
57971
57972 2005-03-04  Derek R. Price  <derek@ximbiot.com>
57973
57974         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
57975         (func_import): Only replace files via --import when they have actually
57976         changed.
57977
57978 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57979
57980         * m4/mmap-anon.m4: New file.
57981         * m4/pagealign_alloc.m4: New file.
57982
57983 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57984             Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/pagealign_alloc: New file.
57987         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
57988
57989 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57990             Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/pagealign_alloc.h: New file.
57993         * lib/pagealign_alloc.c: New file.
57994
57995 2005-03-03  Bruno Haible  <bruno@clisp.org>
57996
57997         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
57998         Use an all-permissive copyright notice, recommended by RMS.
57999
58000 2005-03-02  Bruno Haible  <bruno@clisp.org>
58001
58002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58003         of AIX, the replacement has to be done only after <string.h> is
58004         included, therefore not in config.h. stpncpy.h does the replacement,
58005         and stpncpy.c uses it.
58006
58007 2005-03-02  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58010         stpncpy.c uses it.
58011
58012 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58015         The workaround isn't strictly needed for POSIX conformance, and
58016         it's too much of a pain to configure and maintain.  We'll ask
58017         people to fix their kernels instead.
58018         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58019         (NANOSLEEP_BUG_WORKAROUND): Remove.
58020         (xnanosleep): Remove the workaround.
58021
58022 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58023
58024         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58025         Reported by Derek Price.
58026         (Include): Add "timespec.h".
58027
58028         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58029
58030 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58033         to detect nanosleep bug.
58034
58035 2005-03-01  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58038
58039 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         * modules/gethrxtime: New file.
58042         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58043         (Depends-on): Add gethrxtime.
58044         (configure.ac): Add gl_XNANOSLEEP.
58045         (Makefile.am): Remove lib_SOURCES line.
58046
58047 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58048
58049         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58050         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58051
58052 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58053
58054         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58055         * lib/timespec.h (gettime): Return void, since it always
58056         succeeds now.  All uses changed.
58057         * lib/gettime.c (gettime) Likewise.
58058         [HAVE_NANOTIME]: Prefer nanotime.
58059         Assume gettimeofday succeeds, as POSIX requires.
58060         Assime time () succeeds, since other code already does.
58061         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58062         (timespec_subtract): Remove.
58063         (NANOSLEEP_BUG_WORKAROUND): New constant.
58064         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58065         things considerably.  Use it only on GNU/Linux hosts, since the
58066         workaround shouldn't be needed elsewhere.
58067
58068 2005-02-24  Bruno Haible  <bruno@clisp.org>
58069
58070         * modules/gettext (Files): Add m4/glibc2.m4.
58071
58072 2005-02-24  Bruno Haible  <bruno@clisp.org>
58073
58074         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58075         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58076         * m4/progtest.m4:
58077         Update from GNU gettext 0.14.2.
58078         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58079
58080 2005-02-24  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58083         * lib/config.charset: Update from GNU gettext 0.14.2.
58084
58085 2005-02-24  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/gettext.h: Update from GNU gettext 0.14.2.
58088
58089 2005-02-23  Simon Josefsson  <jas@extundo.com>
58090
58091         * m4/iconvme.m4: New file.
58092
58093 2005-02-23  Jim Meyering  <jim@meyering.net>
58094
58095         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58096         change.
58097         Thanks to Bruno Haible for catching it.
58098
58099 2005-02-22  Simon Josefsson  <jas@extundo.com>
58100
58101         * modules/iconvme: New file.
58102
58103         * MODULES.html.sh: Add iconvme.
58104
58105 2005-02-22  Simon Josefsson  <jas@extundo.com>
58106
58107         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58108
58109 2005-02-22  Simon Josefsson  <jas@extundo.com>
58110
58111         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58112
58113 2005-02-22  Jim Meyering  <jim@meyering.net>
58114
58115         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58116         s/ifndef/ifdef/.
58117
58118 2005-02-20  Neil Conway  <neilc@samurai.com>
58119
58120         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58121         returned by OSX/Darwin if the specified buffer is not large
58122         enough for the hostname.
58123
58124 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58125
58126         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58127         pass it to _help, otherwise the latter coredumps trying to
58128         dereference state.root_argp.
58129
58130 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * modules/chdir-long (Depends-on): Add memrchr.
58133         * modules/memrchr (Files): Add lib/memrchr.h.
58134         (Include): "memrchr.h".
58135
58136 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58139
58140 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58141
58142         * lib/memrchr.h: New file.
58143         * lib/chdir-long.c: Include it.
58144         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58145         Don't bother including stddef.h.
58146
58147 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58148
58149         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58150         inclusion.
58151         Include <sys/types.h>, for dev_t.
58152         (ME_DUMMY, ME_REMOTE): Move from here....
58153         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58154         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58155         Dmitry V. Levin.
58156         Include mountlist.h first, to test the interface.
58157
58158 2005-01-29  Bruno Haible  <bruno@clisp.org>
58159
58160         * lib/progname.c (program_name): Initialize.
58161         Needed when linking statically on MacOS X.
58162
58163 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58164
58165         Sync from coreutils.
58166         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58167         (Depends-on): Add c-strtod.
58168         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58169
58170 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58171
58172         Sync from coreutils.
58173         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58174
58175         Remove files that are specific to coreutils.
58176         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58177
58178 2005-01-28  Bruno Haible  <bruno@clisp.org>
58179
58180         * modules/javacomp: New file.
58181         * MODULES.html.sh (Java): Add javacomp.
58182
58183 2005-01-28  Bruno Haible  <bruno@clisp.org>
58184
58185         * m4/javacomp.m4: New file, from GNU gettext.
58186
58187 2005-01-28  Bruno Haible  <bruno@clisp.org>
58188
58189         * lib/javacomp.sh.in: New file, from GNU gettext.
58190         * lib/javacomp.h: New file, from GNU gettext.
58191         * lib/javacomp.c: New file, from GNU gettext.
58192
58193 2005-01-26  Simon Josefsson  <jas@extundo.com>
58194
58195         * lib/gai_strerror.c: Use GPL in header.
58196
58197 2005-01-26  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/javaexec: New file.
58200         * MODULES.html.sh (Java): Add javaexec.
58201
58202 2005-01-26  Bruno Haible  <bruno@clisp.org>
58203
58204         * m4/javaexec.m4: New file, from GNU gettext.
58205
58206 2005-01-26  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/javaexec.sh.in: New file, from GNU gettext.
58209         * lib/javaexec.h: New file, from GNU gettext.
58210         * lib/javaexec.c: New file, from GNU gettext.
58211
58212 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58213
58214         * modules/lchown (Depends-on): Remove lchown.h
58215
58216 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58217
58218         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58219         must be defined if the header file was not found, in order
58220         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58221
58222 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58223
58224         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58225         initializers for struct pentry_state.
58226         (__argp_error): Check return value of __asprintf
58227         (__argp_failure): Translate error message
58228
58229         * lib/argp-parse.c: Removed braces around the expansion of N_()
58230
58231 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58234         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58235         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58236         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58237         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58238         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58239         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58240         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58241         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58242         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58243         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58244         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58245         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58246         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58247         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58248         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58249         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58250         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58251         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58252         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58253         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58254         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58255         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58256         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58257         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58258         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58259         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58260         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58261         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58262         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58263         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58264         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58265         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58266         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58267         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58268         Use an all-permissive copyright notice, recommended by RMS.
58269
58270 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58271
58272         * modules/chdir-long (Depends-on): Remove mempcpy.
58273
58274 2005-01-21  Jim Meyering  <jim@meyering.net>
58275
58276         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58277         same value as for Solaris 9.
58278
58279         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58280         component length.  This included changing the parameter to be
58281         of type `char *' rather than `char const *'.
58282         * lib/chdir-long.h (chdir_long): Update prototype.
58283
58284         * lib/openat.c (fdopendir, fstatat): New functions.
58285         * lib/openat.h: Include headers required for use of DIR and struct
58286         stat.
58287         [AT_SYMLINK_NOFOLLOW]: Define.
58288         (fdopendir, fstatat): Add prototypes.
58289
58290 2005-01-21  Bruno Haible  <bruno@clisp.org>
58291
58292         * modules/classpath: New file.
58293         * MODULES.html.sh (Java): Add classpath.
58294
58295 2005-01-21  Bruno Haible  <bruno@clisp.org>
58296
58297         * lib/classpath.h: New file, from GNU gettext.
58298         * lib/classpath.c: New file, from GNU gettext.
58299
58300 2005-01-20  Simon Josefsson  <jas@extundo.com>
58301
58302         * modules/version-etc-fsf: New file.
58303
58304 2005-01-20  Simon Josefsson  <jas@extundo.com>
58305
58306         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58307         * lib/version-etc.c: Remove version_etc_copyright.
58308         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58309         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58310
58311 2005-01-20  Simon Josefsson  <jas@extundo.com>
58312
58313         * lib/base64.h (isbase64): Add.
58314
58315         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58316         using a unsigned prototype, don't inline.
58317         (base64_decode): Use it.
58318
58319 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58320
58321         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58322         it.
58323
58324 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58325
58326         * lib/save-cwd.c (save_cwd): Remove code to support the case
58327         where fchdir is missing or flaky.
58328
58329 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58332
58333 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58336         AC_LIBSOURCES now does this.
58337         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58338         with new ullong_max module.
58339
58340 2005-01-19  Bruno Haible  <bruno@clisp.org>
58341
58342         * modules/sh-quote: New file.
58343         * MODULES.html.sh (Executing programs): Add sh-quote.
58344
58345 2005-01-19  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/sh-quote.h: New file, from GNU gettext.
58348         * lib/sh-quote.c: New file, from GNU gettext.
58349
58350 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         Merge from coreutils.
58353         * m4/ullong_max.m4: New file.
58354         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58355         (gl_MACROS): Assume localeconv exists.
58356
58357 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58358
58359         Merge changes from coreutils, as described below in several
58360         changelogs dated today.
58361
58362         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58363         (O_DIRECTORY): Remove; not needed here, since "." must be
58364         a directory.  All uses removed.
58365         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58366         universal on Suns, and we also need to test for IRIX.
58367         Revamp code to use 'if' rather than '#if'.
58368         Avoid unnecessary comparison of cwd->desc to 0.
58369
58370         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58371         for known valid error numbers rather than observed invalid ones.
58372
58373 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         * modules/ullong_max: New file.
58376
58377         * modules/chdir-long, modules/openat: New files.
58378         * modules/save-cwd (Depends-on): Depend on chdir-long.
58379         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58380
58381 2005-01-18  Jim Meyering  <jim@meyering.net>
58382
58383         Merge from coreutils.
58384         * m4/chdir-long.m4, m4/openat.m4: New files.
58385         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58386         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58387         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58388         is sane and DOES follow symlinks.  Besides, testing 20 different
58389         systems found no broken chown implementations.
58390         Prompted by a change in rsync's copy of this macro.
58391         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58392
58393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58394
58395         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58396         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58397         NULL-means-set-to-current-time semantics.
58398         Remove temporary file immediately, rather than waiting
58399         for configure's at-exit trap code to do it.
58400
58401 2005-01-18  Jim Meyering  <jim@meyering.net>
58402
58403         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58404
58405         * lib/utimens.c (futimens): Account for the fact that futimes
58406         can also fail with errno == ENOSYS or errno == ENOENT.
58407         Patch from Dmitry V. Levin.
58408
58409         Change the name of the robust chdir function from chdir to chdir_long.
58410         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58411         (restore_cwd): Use chdir_long, not chdir.
58412         * lib/chdir-long.c: Renamed from chdir.c.
58413         * lib/chdir-long.h: Renamed from chdir.h.
58414         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58415         Hurd.
58416
58417 2005-01-18  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58420         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58421         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58422         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58423         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58424         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58425         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58426         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58427         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58428         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58429         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58430         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58431         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58432         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58433         Use an all-permissive copyright notice, recommended by RMS.
58434
58435 2005-01-18  Bob Proulx  <bob@proulx.com>
58436
58437         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58438         simplify offsetof() macro construct to avoid compile failure with
58439         native HP-UX 11.0 ANSI C compiler.
58440
58441 2005-01-17  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58444         redundant because stpncpy.m4 takes care of it.
58445
58446 2005-01-17  Bruno Haible  <bruno@clisp.org>
58447
58448         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58449
58450 2005-01-17  Bruno Haible  <bruno@clisp.org>
58451
58452         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58453         used.
58454
58455 2005-01-17  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/fwriteerror.h (fwriteerror): Change specification to include
58458         fclose.
58459         * lib/fwriteerror.c: Include <stdbool.h>.
58460         (fwriteerror): At the end, close the file stream. Record whether
58461         stdout was already closed.
58462
58463 2005-01-17  Bruno Haible  <bruno@clisp.org>
58464
58465         * lib/execute.c (environ): Declare if needed.
58466         * lib/pipe.c (environ): Likewise.
58467         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58468
58469 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58470
58471         * modules/argp: Depend on vsnprintf
58472
58473 2005-01-10  Jim Meyering  <jim@meyering.net>
58474
58475         * modules/closeout (Depends-on): Add atexit.
58476
58477 2005-01-06  Bruno Haible  <bruno@clisp.org>
58478
58479         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58480
58481 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58484         definitions to be after all include files, to avoid collisions.
58485         Problem reported by Bob Proulx.
58486
58487 2005-01-04  Jim Meyering  <jim@meyering.net>
58488
58489         Changes imported from coreutils.
58490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58491         as the mkstemp template, use a temporary directory and an
58492         8.3-friendly template to avoid trouble on systems like DJGPP.
58493         Reported by Juan M. Guerrero via Stepan Kasal.
58494         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58495         close. Remove the temporary directory right away, rather than waiting
58496         for configure's at-exit trap code to do it.
58497         Suggestion from Stepan Kasal.
58498
58499 2005-01-01  Simon Josefsson  <jas@extundo.com>
58500
58501         * gnulib-tool: Print #include directives when --import'ing.
58502
58503 2004-12-28  Simon Josefsson  <jas@extundo.com>
58504
58505         * tests/test-base64.c: Include required header files.  Remove
58506         unused variables.
58507
58508 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * modules/error (Depends-on): Remove gettext.
58511
58512 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58515         not needed.  This removes a dependency on the gettext module.
58516         [defined _LIBC]: Do not include <libintl.h>; not needed.
58517
58518 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58519
58520         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58521         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58522
58523 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58526         HAVE_DECL_STRTOLD.
58527
58528 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58529
58530         * modules/getdate (Depends-on): Remove alloca-opt.
58531
58532 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58535
58536 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * lib/argp-parse.c: Include <stddef.h>.
58539         (alignof, alignto): New macros.
58540         (parser_init): Don't assume that void * is aligned sufficiently
58541         for struct option.
58542
58543         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58544         need to extend the stack.
58545         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58546         large.
58547
58548 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58549
58550         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58551
58552 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58555         (2004-10-24) change.  Apparently this was a false alarm.
58556
58557         * modules/getdate: Depend on alloca-opt, not alloca.
58558
58559 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58562         Remove now-obsolete comment about AIX.
58563         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58564         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58565         (YYMAXDEPTH): New macro.
58566
58567 2004-12-18  Simon Josefsson  <jas@extundo.com>
58568
58569         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58570
58571 2004-12-18  Bruno Haible  <bruno@clisp.org>
58572
58573         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58574
58575 2004-12-18  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/fatal-signal.c (fatal_signals): Make non-const.
58578         (init_fatal_signals): New function.
58579         (uninstall_handlers, install_handlers): Ignore signals that were set to
58580         SIG_IGN.
58581         (at_fatal_signal): Call init_fatal_signals.
58582         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58583         SIG_IGN.
58584         Reported by Paul Eggert.
58585
58586 2004-12-18  Bruno Haible  <bruno@clisp.org>
58587
58588         * doc/alloca.texi: New file.
58589         * doc/alloca-opt.texi: New file.
58590
58591 2004-12-17  Jim Meyering  <jim@meyering.net>
58592
58593         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58594         Otherwise, install-sh could exit with improper exit status when
58595         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58596
58597 2004-12-16  Simon Josefsson  <jas@extundo.com>
58598
58599         * tests/test-base64.c: Add license.
58600
58601 2004-12-15  Stepan Kasal  <address@hidden>
58602
58603         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58604
58605 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * modules/getcwd (Files): Add m4/d-ino.m4.
58608         Suggested by Mark D. Baushke.
58609
58610 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * lib/getdate.y (textint): New member "negative".
58613         (time_zone_hhmm): New function.
58614         Expect 14 shift-reduce conflicts, not 13.
58615         (o_colon_minutes): New rule.
58616         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58617         (yylex): Set the "negative" member of signed numbers.
58618
58619 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58620
58621         * doc/getdate.texi (Time of day items, Time zone items):
58622         Describe new formats +00:00, UTC+00:00.
58623
58624 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58627         spurious "-l"s.  Problem reported by Stepan Kasal.
58628
58629 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58632         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58633
58634 2004-12-04  Simon Josefsson  <jas@extundo.com>
58635
58636         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58637         Vandoorselaere <yoann@prelude-ids.org>.
58638
58639 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         Changes imported from coreutils.
58642         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58643         exist.
58644         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58645
58646 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58647
58648         Changes imported from coreutils.
58649         * lib/hard-locale.c: Assume <locale.h> exists.
58650         Include "strdup.h".
58651         (GLIBC_VERSION): New macro.
58652         (hard_locale): Assume setlocale exists.
58653         Rewrite to avoid #ifdef.
58654         Use strdup rather than malloc + strcpy.
58655         * lib/human.c: Assume <locale.h> exists.
58656         (human_readable): Assume localeconv exists.
58657
58658 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         * modules/hard-locale (Depends-on): Add strdup.
58661
58662 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58663
58664         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58665         convert T2, not T.  (Imported from libc.)
58666
58667 2004-11-30  Simon Josefsson  <jas@extundo.com>
58668
58669         * modules/restrict (License): Change to LGPL.
58670
58671 2004-11-30  Simon Josefsson  <jas@extundo.com>
58672
58673         * m4/restrict.m4: Add copyright and copying conditions.
58674
58675 2004-11-30  Simon Josefsson  <jas@extundo.com>
58676
58677         * m4/base64.m4: New file.
58678
58679 2004-11-30  Simon Josefsson  <jas@extundo.com>
58680
58681         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58682         base64.
58683
58684         * tests/test-base64.c: New file.
58685
58686         * modules/base64: New file.
58687
58688 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58689
58690         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58691         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58692
58693         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58694
58695 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58698         (__getcwd.c): Don't restore errno; glibc doesn't.
58699         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58700         first, falling back to our code only if its results look suspicious.
58701         Ensure that the resulting buffer is only as large as necessary.
58702
58703         * lib/readutmp.c: Include readutmp.h first.
58704         Include <errno.h>, since readutmp.h no longer does that.
58705         * lib/readutmp.h: Don't include <errno.h>,
58706         <sys/param.h>, <time.h>; not needed to establish interface.
58707         (errno): Remove decl.
58708         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58709         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58710         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58711
58712 2004-11-28  Simon Josefsson  <jas@extundo.com>
58713
58714         * lib/base64.h, base64.c: New file.
58715
58716 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58719
58720 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58721
58722         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58723         (Depends-on): Remove pathmax, same.  Add mempcpy.
58724         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58725         (Makefile.am): Append getcwd.h to lib_SOURCES.
58726         (Include): Add getcwd.h.
58727         (Maintainer): Change from Jim Meyering to "all, glibc",
58728         since getdate now uses intended-for-glibc code.
58729         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58730         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58731
58732 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58735         HP's ANSI C compiler.
58736         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58737         Declaring int functions causes warnings on some modern systems and
58738         shouldn't be needed to compile on ancient ones.
58739         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58740         defined.
58741
58742         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58743         with the following changes.
58744         (__set_errno): Parenthesize properly.
58745         Include <stdbool.h>.
58746         (MIN, MAX, MATCHING_INO): New macros.
58747         (__getcwd): Define with prototype, not K&R form.
58748         Use heuristics to allocate default buffer on stack if possible.
58749         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58750         behavior, and to avoid the PATH_MAX limit when computing
58751         ../../../../...
58752         Use MATCHING_INO to compare inode number to file.
58753         Check for arithmetic overflow in size calculations.
58754         Fix bug in reallocation of dot array that caused getcwd to fail
58755         on directories nested deeper than 75.
58756         Be more careful about saving errno on error.
58757         Do not use realloc; use only free+malloc, as this is a bit
58758         more flexible and avoids a needless copy operation.
58759         Do not inspect st_dev and st_ino for symbolic links; POSIX
58760         doesn't specify the latter.
58761         Check for closedir errors.
58762         Avoid needless casts.
58763         Use "#ifdef weak_alias" around weak_alias, to be like other
58764         glibc code.
58765         The following changes to getcwd.c have effect only when used in
58766         gnulib; they have no effect inside glibc proper.
58767         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58768         as alloca isn't used.
58769         (alloca, __alloca): Likewise.
58770         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58771         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58772         unconditionally, as gnulib assumes C89 or better.
58773         Do not include <sys/param.h>.
58774         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58775         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58776         better.
58777         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58778         Include <dirent.h> in a way that is compatible with modern Autoconf.
58779         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58780         New macros, if not already defined.
58781         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58782         Use "_LIBC", not "defined _LIBC", for consistency.
58783         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58784         a mempcpy module.
58785         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58786         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58787         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58788         credit only to Jim Meyering and adjust the copyright dates.
58789         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58790         <stdlib.h>, <unistd.h>, "pathmax.h".
58791         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58792         (INITIAL_BUFFER_SIZE): Remove.
58793         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58794
58795 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58798         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58799         Use the _ONCE methods, for efficiency.
58800         Check for fcntl.h.  In test program, include <errno.h>
58801         and <fcntl.h> if available.  Remove old K&R cruft from
58802         test program.  Check for common errors in GNU/Linux,
58803         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58804         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58805         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58806         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58807         name accordingly.
58808         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58809         accommodate new getcwd.c.
58810         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58811         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58812         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58813         that's all we need now.
58814
58815 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58816
58817         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58818         argp-parse.c depends on getopt internals, that means we should
58819         always use our getopt, to be on the safe side.
58820         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58821         order not to spoil the result of an eventual previous invocation
58822         of gl_GETOPT_SUBSTITUTE.
58823
58824 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58825
58826         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58827         redefinition warnings. To avoid them, include the defines
58828         in `#if !defined __need_getopt ... #endif'. The only place
58829         where __getopt_argv_const is used is in definitions
58830         of getopt_long and getopt_long_only below, which are as well
58831         protected by `#ifndef __need_getopt'.
58832         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58833         __need_getopt after including <stdio.h> and <unistd.h> These
58834         headers might have defined it.
58835
58836 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58839
58840 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58843         (futimens): New function, which uses futimes if available.
58844         (futimens, utimens): Support timespec==NULL, with same semantics
58845         as utime and utimens.
58846         * lib/utimens.h (futimens): New decl.
58847
58848 2004-11-23  Jim Meyering  <jim@meyering.net>
58849
58850         * lib/getopt_.h: Remove trailing blanks.
58851
58852 2004-11-23  Jim Meyering  <jim@meyering.net>
58853
58854         * lib/__fpending.c: Add comment.
58855
58856 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * modules/canonicalize (Depends-on): Add xreadlink.
58859         Problem reported by James Youngman.
58860
58861 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58864         New macros.
58865         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58866         optopt): Use them instead of invoking ## directly; otherwise, the
58867         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58868
58869 2004-11-19  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/strtok_r.c: Move comments from here...
58872         * lib/strtok_r.h: ... to here.
58873
58874 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58875
58876         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58877         implementations that mishandle size_t overflow.
58878
58879 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58882         might fail.  Problem reported by Yoann Vandoorselaere.
58883         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58884         implementations that mishandle size_t overflow.
58885
58886 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         * modules/canon-host (Depends-on): Add strdup.
58889
58890 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58893
58894 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         * lib/canon-host.c: Include "strdup.h".
58897         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58898         Use strdup instead of malloc/strcpy to duplicate strings.
58899
58900         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58901         (human_space_before_unit): New constant.
58902         * lib/human.c (human_readable): Support it.
58903
58904         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58905         (xgetcwd): Set errno correctly when failing.
58906         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58907         the failure is actually due to a PATH_MAX problem.
58908
58909         Further getopt changes to make it more likely that glibc will
58910         buy the changes back.
58911         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58912         (getopt): Use it, so to preserve glibc semantic
58913         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58914         when compiling for libc.
58915         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58916         (getopt_long, getopt_long_only): Use it.
58917
58918         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58919         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
58920         (getopt): Argv is now char * const *, as per standard.
58921         (_getopt_internal_r, _getopt_internal): Argv is now char **,
58922         not char *__getopt_argv_const *.
58923         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58924         _getopt_long_only_r): Likewise.
58925         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
58926         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58927         _getopt_long_r, _getopt_long_only_r): Likewise.
58928         * lib/getopt_.h (__getopt_argv_const): Remove.
58929         (getopt): Argv is now char * const *, as per standard.
58930
58931         * lib/getdate.y (tORDINAL): New token.
58932         (day, relunit): Allow it for relative times.
58933         (relative_time_table): Use tORDINAL for ordinals.
58934
58935 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58936
58937         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
58938         Document that "second" isn't allowed as an ordinal number.
58939
58940 2004-11-16  Jim Meyering  <jim@meyering.net>
58941
58942         * modules/closeout (Depends-on): Add fpending.
58943
58944 2004-11-15  Jim Meyering  <jim@meyering.net>
58945
58946         * lib/closeout.c: Include "__fpending.h" once again.
58947         Include <stdbool.h>.
58948         (close_stdout): Don't fail just because stdout was closed initially,
58949         since some programs don't write to stdout in the normal course of
58950         operation (other than --version and --help), and we don't want this
58951         function to make e.g. `touch file >&-' fail.
58952         But do fail if it was closed and someone has tried to write to it.
58953         E.g., `printf foo >&-' must fail.
58954
58955 2004-11-13  Jim Meyering  <jim@meyering.net>
58956
58957         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
58958
58959 2004-11-12  Simon Josefsson  <jas@extundo.com>
58960
58961         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
58962         small doc fix is still pending.
58963
58964 2004-11-11  Simon Josefsson  <jas@extundo.com>
58965
58966         * modules/strtok_r: New file.
58967
58968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58969         strtok_r.
58970
58971 2004-11-11  Simon Josefsson  <jas@extundo.com>
58972
58973         * m4/strtok_r.m4: New file.
58974
58975         * m4/getopt.m4: Replace opterr.
58976
58977 2004-11-11  Simon Josefsson  <jas@extundo.com>
58978
58979         * lib/strtok_r.h, strtok_r.c: New file.
58980
58981 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58982
58983         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
58984         of replacing opterr, getopt, etc.  This should handle the
58985         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
58986
58987 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
58990         we can stop lying to compilers about the constness of argv when we
58991         are compiled outside glibc.
58992         (getopt, getopt_long, getopt_long_only): Use it.
58993         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58994         _getopt_internal, getopt): Likewise.
58995         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58996         _getopt_long_only_r): Likewise.
58997         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58998         _getopt_long_r, _getopt_long_only_r): Likewise.
58999
59000         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59001         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59002         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59003         the other external symbols.
59004         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59005         declaration, since the above renaming now works around collisions.
59006
59007 2004-11-11  Jim Meyering  <jim@meyering.net>
59008
59009         * lib/linebreak.c: Remove trailing blanks.
59010         * lib/alloca_.h: Likewise.
59011         * lib/acosl.c: Likewise.
59012         * lib/euidaccess.c: Likewise.
59013         * lib/allocsa.h: Likewise.
59014
59015 2004-11-10  Simon Josefsson  <jas@extundo.com>
59016
59017         * m4/getaddrinfo.m4: New file.
59018
59019 2004-11-10  Simon Josefsson  <jas@extundo.com>
59020
59021         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59022
59023 2004-11-10  Simon Josefsson  <jas@extundo.com>
59024
59025         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59026         getaddrinfo.
59027
59028         * modules/getaddrinfo: New file.
59029
59030 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59031
59032         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59033
59034 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * lib/mktime.c (SHR): New macro, which is a portable
59037         substitute for >> that should work even on Crays.
59038         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59039         Problem reported by Mark D. Baushke in
59040         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59041         * lib/getdate.y (SHR): Likewise.
59042         (tm_diff): Use it.
59043         * lib/strftime.c (SHR): Likewise.
59044         (tm_diff): Use it.
59045         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59046         quote_these_too, so that right shifts are well defined.  All uses
59047         changed.
59048
59049 2004-11-10  Jim Meyering  <jim@meyering.net>
59050
59051         Ensure that no close failure goes unreported.
59052         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59053         return early when it seems there's nothing to flush.
59054         Don't include __fpending.h.
59055
59056 2004-11-10  Jim Meyering  <jim@meyering.net>
59057
59058         * modules/closeout (Depends-on): Remove fpending.
59059
59060 2004-11-10  Jim Meyering  <jim@meyering.net>
59061
59062         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59063
59064 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59067         gl_FUNC_STRFTIME.
59068         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59069         and AC_REQUIRE when possible, to avoid duplicate checks.
59070         Check for <wchar.h>.
59071
59072 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59075
59076 2004-11-09  Bruno Haible  <bruno@clisp.org>
59077
59078         * m4/sockpfaf.m4: New file.
59079
59080 2004-11-05  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59083         Reported by Mark D. Baushke <mdb@cvshome.org>.
59084
59085 2004-11-04  Bruno Haible  <bruno@clisp.org>
59086
59087         2004-09-11  Bruno Haible  <bruno@clisp.org>
59088                 * allocsa.valgrind: New file.
59089         2004-02-06  Bruno Haible  <bruno@clisp.org>
59090                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59091                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59092                 Reported by Christopher Seip <chris.seip@hp.com>.
59093
59094 2004-11-04  Bruno Haible  <bruno@clisp.org>
59095
59096         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59097         (Makefile.am): Distribute it.
59098
59099 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59100
59101         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59102         with errno == ERANGE if the buffer is too small.
59103         Problem reported by Mark D. Baushke.
59104
59105 2004-11-03  Albert Chin  <china@thewrittenword.com>
59106             Paul Eggert  <eggert@cs.ucla.edu>
59107
59108         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59109         equivalent, substitute $ac_type for equivalent type rather than
59110         blindly using uint32_t *always* which won't work if uint32_t is not
59111         available.  Define _UINT32_T to work around typedef of uint32_t if
59112         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59113         2.5.1.
59114
59115 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59116
59117         * m4/jm-macros.m4: Sync from coreutils.
59118         (gl_MACROS): Check for mbrlen, for pathchk.
59119         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59120
59121 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         * lib/xreadlink.c (MAXSIZE): New macro.
59124         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59125         size does not exceed MAXSIZE.  Avoid cast.
59126         As suggested by Mark D. Baushke in
59127         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59128         if readlink fails with buffer size just under MAXSIZE, try again
59129         with MAXSIZE.
59130
59131 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59132
59133         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59134
59135 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59136         and  Paul Eggert  <eggert@cs.ucla.edu>
59137
59138         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59139         (get_date): Overparenthesize to avoid GCC warning.
59140
59141 2004-11-02  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59144         returns void.
59145
59146 2004-11-02  Bruno Haible  <bruno@clisp.org>
59147
59148         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59149         function returns void.
59150
59151 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59152
59153         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59154         fflush_unlocked, flockfile, funlockfile, funlockfile,
59155         fputs_unlocked, putc_unlocked.
59156
59157 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59158
59159         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59160         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59161         already declared.
59162
59163 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59164
59165         * modules/getdate (Files): Add doc/getdate.texi.
59166         (Depends-on): Add setenv, xalloc.
59167
59168 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59169
59170         * lib/getdate.y: Add support for TZ="foo" within a date string.
59171         Fix some bugs near time_t boundaries.  Reject dates with
59172         out-of-range components, e.g., "Sept 31".
59173         Include <stdlib.h>, "setenv.h", "xalloc.h".
59174         (ISDIGIT_LOCALE): Remove; unused.
59175         Note that the TZ and time functions used here are not reentrant.
59176         (mktime_ok, get_tz): New functions.
59177         (TZBUFSIZE): New constant.
59178         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59179         This requires that we sometimes generate our own TZ="XXX..." setting.
59180
59181 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * doc/getdate.texi: New file, from coreutils with modifications for
59184         the new TZ parsing.
59185
59186 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59187
59188         * lib/mktime.c (not_equal_tm): Remove redundant check.
59189
59190 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         * modules/regex (lib_SOURCES): Add regex.c.
59193         Reported by James Youngman in
59194         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59195
59196 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59197
59198         * lib/getdate.y: Use Bison 1.875 features, and some minor
59199         code cleanups.  This change does not affect semantics.
59200         Don't include <stdlib.h>; no longer needed.
59201         Don't include unlocked-io.h; only the "#if TEST" code uses
59202         stdio, and performance isn't crucial there.
59203         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59204         Bison 1.875 features as described below.
59205         All uses of "PC." replaced by "pc->".
59206         (YYSTYPE): Add a forward declaration.
59207         (yylex, yyerror): Use full prototypes in forward decls.
59208         Use "%pure-parser" rather than obsolescent "%pure_parser".
59209         Use %parse-param and %lex-param instead of obsolescent
59210         YYPARSE_PARAM and YYLEX_PARAM.
59211         (meridian_table, month_and_day_table, time_units_table,
59212         relative_time_table, time_zone_table, military_table,
59213         lookup_zone, lookup_word, get_date):
59214         Use NULL instead of 0 where appropriate.
59215         (to_hour): Avoid abort (), to avoid a dependency on
59216         stdlib.h.
59217         (yyerror, yylex): Now accepts parser_control * arg.
59218         (main) [TEST]: Use '\0' rather than 0 for char.
59219
59220 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59221
59222         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59223
59224 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59225
59226         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59227         It's now the caller's responsibility to handle the case where
59228         !HAVE_GETPAGESIZE && !defined getpagesize.
59229
59230         * lib/mktime.c (leapyear): Arg is long int, not int.
59231
59232 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59233
59234         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59235
59236 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59237
59238         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59239         missing.  Problem reported by James Youngman.
59240
59241 2004-10-16  Simon Josefsson  <jas@extundo.com>
59242
59243         * gnulib-tool: Fix comments.  Fix parse problem.
59244         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59245
59246 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59247
59248         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59249         implementation of getopt_long.  Problem reported by Alexander Taler in:
59250         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59251
59252 2004-10-15  Bruno Haible  <bruno@clisp.org>
59253
59254         * gnulib-tool: Untabify. Initialize supplied_libname.
59255         (func_usage): More homogenous output.
59256         (func_modules_transitive_closure, func_modules_to_filelist,
59257         func_emit_lib_Makefile_am): New functions.
59258         (func_import): New function, extracted from big case statement. Use
59259         func_get_license, func_modules_transitive_closure,
59260         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59261         opt_lgpl. Don't use test -a, as it's not portable.
59262         (func_create_testdir): Use func_modules_transitive_closure,
59263         func_modules_to_filelist, func_emit_lib_Makefile_am.
59264
59265 2004-10-15  Bruno Haible  <bruno@clisp.org>
59266
59267         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59268
59269 2004-10-15  Bruno Haible  <bruno@clisp.org>
59270
59271         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59272         the portions belonging to each module.
59273         Suggested by Derek Robert Price <derek@ximbiot.com>.
59274
59275 2004-10-12  Simon Josefsson  <jas@extundo.com>
59276
59277         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59278         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59279         to real functions.
59280
59281 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59282
59283         * modules/vsnprintf: New file.
59284
59285 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59286
59287         * m4/vsnprintf.m4: New file.
59288
59289 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59290
59291         * lib/vsnprintf.h: New file.
59292         * lib/vsnprintf.c: New file.
59293
59294 2004-10-11  Bruno Haible  <bruno@clisp.org>
59295
59296         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59297         vsnprintf.
59298
59299 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59302
59303 2004-10-07  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59306         fits into the provided buffer.
59307
59308 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59309
59310         * lib/diacrit.c, diacrit.h: Add GPL notice.
59311
59312         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59313         notice.
59314         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59315         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59316         This avoids a potential constant-folding bug.
59317
59318 2004-10-05  Bruno Haible  <bruno@clisp.org>
59319
59320         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59321         for the declaration of strsep.
59322
59323 2004-10-05  Bruno Haible  <bruno@clisp.org>
59324
59325         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59326
59327 2004-10-04  Simon Josefsson  <jas@extundo.com>
59328
59329         * modules/memmem: New file.
59330         * tests/test-memmem.c: New file.
59331         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59332
59333 2004-10-04  Simon Josefsson  <jas@extundo.com>
59334
59335         * m4/memmem.m4: New file.
59336
59337 2004-10-04  Simon Josefsson  <jas@extundo.com>
59338
59339         * lib/memmem.h: New file.
59340         * lib/memmem.c: New file, taken from glibc.
59341
59342 2004-10-04  Simon Josefsson  <jas@extundo.com>
59343
59344         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59345         '#ifdef USE_UNLOCKED_IO'.
59346
59347 2004-10-04  Simon Josefsson  <jas@extundo.com>
59348
59349         * config/srclist.txt: Add memmem from glibc.
59350
59351 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59354
59355         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59356         modules/exclude, modules/getdate, modules/getline,
59357         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59358         modules/getusershell, modules/linebuffer, modules/md5,
59359         modules/mountlist, modules/posixtm, modules/readtokens,
59360         modules/readutmp, modules/regex, modules/sha1,
59361         modules/version-etc, modules/yesno:
59362         Remove dependency on unlocked-io.
59363
59364 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59367
59368         * m4/unlocked-io.m4: Add copyright notice.
59369         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59370
59371 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59372
59373         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59374         * lib/xmalloc.c (xmemdup): Likewise.
59375         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59376         XFREE): Remove these long-obsolescent macros.
59377         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59378         * lib/xstrdup.c: Remove.
59379
59380         * lib/regex.c (re_comp): Cast gettext return value to char *,
59381         Problem reported by Martin Neitzel via Mark D. Baushke.
59382
59383 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59386         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59387         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59388         regex.c, sha1.c, version-etc.c, yesno.c:
59389         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59390         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59391         the includer's responsibility.
59392
59393         Sync from coreutils.
59394
59395         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59396         points to the start of a string, as the C Standard says the
59397         resulting behavior is undefined.
59398
59399         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59400         simple -> simple_backups, numbered_existing ->
59401         numbered_existing_backups, numbered -> numbered_backups
59402         to avoid shadowing problems.  All uses changed.
59403         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59404         * lib/backupfile.c (check_extension, numbered_backup):
59405         Rename locals to avoid shadowing 'basename'.
59406         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59407         once.
59408
59409         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59410         * lib/.cvsignore: Add getopt.h.
59411
59412 2004-10-04  Bruno Haible  <bruno@clisp.org>
59413
59414         * modules/README: New file.
59415         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59416         not a module.
59417
59418 2004-10-02  Jim Meyering  <jim@meyering.net>
59419
59420         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59421
59422 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59423
59424         * modules/strsep: New file.
59425
59426 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59427
59428         * m4/strsep.m4: New file.
59429
59430 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59431
59432         * lib/strsep.h: New file.
59433         * lib/strsep.c: New file.
59434
59435 2004-10-01  Simon Josefsson  <jas@extundo.com>
59436
59437         * lib/snprintf.c (snprintf): Handle size==0.
59438
59439 2004-10-01  Simon Josefsson  <jas@extundo.com>
59440             Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59443         (snprintf): Declare 'args'.
59444
59445 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59446
59447         * lib/snprintf.c: Remove comments as to why each header is needed.
59448
59449 2004-10-01  Bruno Haible  <bruno@clisp.org>
59450
59451         * MODULES.html.sh: Add strsep.
59452
59453 2004-09-30  Simon Josefsson  <jas@extundo.com>
59454
59455         * modules/snprintf: New file.
59456
59457 2004-09-30  Simon Josefsson  <jas@extundo.com>
59458
59459         * m4/snprintf.m4: New file.
59460
59461 2004-09-30  Simon Josefsson  <jas@extundo.com>
59462
59463         * lib/snprintf.h, lib/snprintf.c: New files.
59464
59465 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59466
59467         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59468         (hol_entry_help): Never translate an empty string.
59469         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59470         * lib/argp.h (OPTION_NO_TRANS): New option.
59471
59472 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59473
59474         * modules/argp (Maintainer): Replace Simon Josefsson
59475         by Sergey Poznyakoff.
59476
59477 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59478
59479         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59480         changes merged back into glibc.
59481
59482 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59483
59484         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59485
59486 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59487
59488         * lib/xvasprintf.c: Include xalloc.h.
59489         (xvasprintf): Use xalloc_die, not xmalloc_die.
59490
59491 2004-09-29  Bruno Haible  <bruno@clisp.org>
59492
59493         * modules/alloca-opt: New file, derived from modules/alloca.
59494         * modules/allocsa: Depend on alloca-opt instead of alloca.
59495         * modules/setenv: Likewise.
59496         * modules/vasnprintf: Likewise.
59497         * MODULES.html.sh: Add alloca-opt.
59498
59499 2004-09-28  Simon Josefsson  <jas@extundo.com>
59500
59501         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59502         LGPL, and to replace license template from GPL to LGPL.
59503
59504 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59505
59506         * modules/dummy: Change license to LGPL.
59507
59508 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59511
59512 2004-09-24  Simon Josefsson  <jas@extundo.com>
59513
59514         * modules/minmax (License): Change from GPL to LGPL.
59515
59516 2004-09-23  Simon Josefsson  <jas@extundo.com>
59517
59518         * gnulib-tool (--import): Typo.
59519
59520 2004-09-23  Simon Josefsson  <jas@extundo.com>
59521
59522         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59523
59524 2004-09-22  Bruno Haible  <bruno@clisp.org>
59525
59526         * modules/*: Add 'License' field.
59527         * gnulib-tool: Accept --extract-license option.
59528         (func_get_license): New function.
59529
59530 2004-09-21  Bruno Haible  <bruno@clisp.org>
59531
59532         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59533         Reported by Simon Josefsson.
59534
59535 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59538         gl_AC_TYPE_LONG_LONG.
59539
59540 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59543
59544 2004-09-18  Simon Josefsson  <jas@extundo.com>
59545         and  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59548         calls with autoreconf.  Define GL_LIB.
59549
59550 2004-09-14  Karl Berry  <karl@gnu.org>
59551
59552         * config/srclist.txt: unsync setenv.c, sigh.
59553
59554 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59555
59556         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59557         Problem reported by Bruno Haible in:
59558         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59559
59560 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59561
59562         * config/srclist.txt: Comment out argp-pvh.c.
59563
59564 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59567         in case some system header has #define'd it.  Problem reported by
59568         Soeren D. Schulze in
59569         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59570
59571 2004-09-09  Karl Berry  <karl@gnu.org>
59572
59573         * regex.[ch]: delete from the root.  These were supposed to be
59574                 synced with emacs cvs, but this has not happened for about
59575                 a year, and anyway nothing else uses emacs regex.[ch].
59576                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59577                 lib/regex[.ch] is untouched.
59578
59579 2004-09-09  Bruno Haible  <bruno@clisp.org>
59580
59581         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59582
59583 2004-09-09  Bruno Haible  <bruno@clisp.org>
59584
59585         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59586         modifications.
59587         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59588
59589 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59590
59591         * modules/xvasprintf: New file.
59592         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59593
59594 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59595
59596         * lib/xvasprintf.h: New file.
59597         * lib/xvasprintf.c: New file.
59598         * lib/xasprintf.c: New file.
59599
59600 2004-09-08  Bruno Haible  <bruno@clisp.org>
59601
59602         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59603
59604 2004-09-08  Bruno Haible  <bruno@clisp.org>
59605
59606         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59607         length is > INT_MAX.
59608         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59609         more.
59610
59611 2004-09-08  Bruno Haible  <bruno@clisp.org>
59612
59613         * lib/stdint_.h: New file, taken from GNU clisp.
59614
59615 2004-09-08  Bruno Haible  <bruno@clisp.org>
59616             Oskar Liljeblad  <oskar@osk.mine.nu>
59617
59618         * modules/stdint: New file.
59619         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59620
59621 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         Import from coreutils.
59624         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59625         strings on unbounded length.  alloca's performance benefits aren't
59626         that important here.
59627         (V_STRDUP): Remove.
59628         (parse_with_separator): New function, with most of the internals
59629         of the old parse_user_spec.  Allow user to omit both user and group,
59630         for compatibility with FreeBSD.
59631         Clone only the user name, not the entire spec.
59632         Do not set *uid, *gid unless entirely successful.
59633         Avoid memory leak in some failing cases.
59634         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59635         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59636         (parse_user_spec): Rewrite to use parse_with_separator.
59637
59638 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59639
59640         * modules/userspec: Don't depend on alloca.
59641
59642 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59645
59646 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59649         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59650         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59651
59652 2004-08-16  Simon Josefsson  <jas@extundo.com>
59653
59654         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59655         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59656         Add --dry-run for --import.
59657         Let user provided command line parameters override configure.ac
59658         settings.
59659
59660 2004-08-12  Simon Josefsson  <jas@extundo.com>
59661
59662         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59663         as discussed with Paul Eggert in threads rooted at
59664         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59665         and
59666         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59667         Before, the test was empty, and relied on ELIDE_CODE in source
59668         code.)
59669         (gl_PREREQ_GETOPT): New macro.
59670         (gl_GETOPT): Use them.
59671
59672 2004-08-12  Simon Josefsson  <jas@extundo.com>
59673
59674         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59675         * lib/getopt_.h: Renamed from getopt.h.
59676
59677 2004-08-12  Simon Josefsson  <jas@extundo.com>
59678
59679         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59680         Change default library name from libfoo to libgnu.
59681         Now, if you have a configure.ac that says:
59682                 gl_SOURCE_BASE(gl)
59683                 gl_M4_BASE(gl/m4)
59684                 gl_MODULES(error getopt etcetera)
59685                 gl_INIT
59686         you can import all you need by running:
59687                 ../gnulib/gnulib-tool --import
59688
59689         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59690         (Makefile.am): Rewrite, use logic from argz.
59691         (Include): Use <getopt.h> instead of "getopt.h".
59692
59693 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59694
59695         * modules/argp (Files): Add m4/unlocked-io.m4.
59696         (Depends-on): Add extensions.
59697
59698 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59699
59700         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59701         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59702         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59703         Check for program_invocation_name, program_invocation_short_name,
59704         flockfile, funlockfile, features.h, _getopt_long_only_r.
59705
59706 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59709         its complicated substitute.
59710         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59711         and program_invocation_name.
59712         (__argp_basename) [!_LIBC]: Remove; the only use was
59713         replaced by its body.
59714         (__argp_short_program_name): Change condition from
59715         !defined __argp_short_program_name to
59716         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59717         to match argp-namefrob.h.
59718         (__argp_failure): Don't assume strerror_r returns char *.
59719         * lib/argp-parse.c (N_): Define unconditionally.
59720         (argp_default_options): Fill out initializers with 0 to avoid
59721         gcc warnings.
59722
59723 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59726         getopt1.c.
59727
59728 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         Merge from coreutils.
59731
59732         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59733
59734         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59735         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59736
59737 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         Merge from coreutils.
59740
59741         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59742         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59743         for Reliant Unix 5.43.
59744
59745         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59746         (union fooround): Use uintmax_t, not long int.
59747         The rest is a merge from libc:
59748         [defined _LIBC]: Include <shlib-compat.h>.
59749         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59750
59751         * lib/settime.c (settime): Recode to avoid warning with
59752         Sun Forte C 6U2.
59753
59754         * lib/strverscmp.c: Convert to UTF-8.
59755
59756 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59757
59758         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59759         m4/uintmax_t.m4.
59760
59761 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59762
59763         * modules/xalloc-die: New file.
59764         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59765
59766         * modules/md5 (Files): Add m4/uint32_t.m4.
59767         * modules/sha1: Renamed from modules/sha.
59768         (Files):
59769         Rename lib/sha.h to lib/sha1.h.
59770         Rename lib/sha.c to lib/sha1.c.
59771         Rename m4/sha.m4 to m4/sha1.m4.
59772         (lib_SOURCES): Likewise.
59773         (configure.ac): Rename gl_SHA to gl_SHA1.
59774         (Include): sha.h -> sha1.h.
59775
59776 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59777
59778         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59779         * m4/sha1.m4: Renamed from sha.m4.
59780         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59781
59782 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * lib/obstack.h (obstack_empty_p):
59785         Don't assume that chunk->contents is suitably aligned.
59786         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59787         Likewise. Problem reported by Benno in
59788         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59789
59790         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59791         readable.  This could be improved further but it'd take some work.
59792
59793 2004-08-08  Simon Josefsson  <jas@extundo.com>
59794
59795         * modules/xgethostname (Depends-on): Remove exit and error (not
59796         used).
59797
59798         * modules/getpass-gnu: Add getpass.h.
59799         (Depends-on): Add stdbool.
59800         * modules/getpass: Add getpass.h.
59801
59802 2004-08-08  Simon Josefsson  <jas@extundo.com>
59803
59804         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59805         Check getpass declaration.
59806
59807 2004-08-08  Simon Josefsson  <jas@extundo.com>
59808
59809         * lib/xgethostname.c: Don't include error.h (not used).
59810
59811         * lib/getpass.h: Add.
59812         * lib/getpass.c: Include getpass.h first.
59813
59814 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         * lib/xalloc-die.c: New file.
59817         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59818         All uses removed.
59819         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59820         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59821         xalloc-die.c.
59822         (_, N_, xalloc_die): Move to xalloc-die.c.
59823         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59824         so that we needn't mess with xalloc_msg_memory_exhausted.
59825
59826         * lib/sha1.h: Renamed from sha.h.
59827         (SHA1_H): Renamed from _SHA_H.
59828         (sha1_ctx): Renamed from sha_ctx.
59829         (sha1_init_ctx): Renamed from sha_init_ctx.
59830         (sha1_process_block): Renamed from sha_process_block.
59831         (sha1_process_bytes): Renamed from sha_process_bytes.
59832         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59833         (sha1_read_ctx): Renamed from sha_read_ctx.
59834         (sha1_stream): Renamed from sha_stream.
59835         (sha1_buffer): Renamed from sha_buffer.
59836         * lib/sha1.c: Likewise; renamed from sha.c.
59837         Do not include <sys/types.h>.
59838         Include <stddef.h> rather than <stdlib.h>.
59839
59840 2004-08-08  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59843         FILESYSTEM_PREFIX_LEN.
59844         * lib/progreloc.c: Likewise.
59845         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59846
59847 2004-08-06  Simon Josefsson  <jas@extundo.com>
59848
59849         * modules/progname (Depends-on): Don't depend on stdbool.
59850
59851 2004-08-06  Simon Josefsson  <jas@extundo.com>
59852
59853         * modules/getsubopt: New file.
59854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59855         getsubopt.
59856
59857 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59858
59859         More merge from coreutils.
59860
59861         * m4/utimens.m4, m4/utimecmp.m4: New files.
59862         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59863         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59864         prereq.m4, sha.m4: Import changes from coreutils.
59865
59866 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59867
59868         More merge from coreutils.
59869         * modules/raise, modules/readtokens0, modules/utimens:
59870         * modules/utimecmp, module/xnanosleep: New files.
59871         * modules/strftime: Add lib/strftime.h.
59872         Change include from <time.h> to "strftime.h".
59873         * modules/yesno: Add lib/yesno.h.
59874         * modules/backupfile: Remove lib/addext.c.
59875         * modules/euidaccess: Add stat-macros.h.
59876         * modules/canonicalize, modules/euidaccess,
59877         modules/filemode, modules/lchown, modules/makepath,
59878         modules/rmdir, modules/stat: Likewise.
59879
59880 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         Merge from tar.
59883         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59884         SIZE_MAX is a valid preprocessor constant.
59885         (__argp_basename): Change from "#ifndef _LIBC"
59886         to "#ifndef __argp_short_program_name", so that
59887         we don't compile these functions for tar.
59888
59889         More merges from coreutils.
59890         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59891         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59892         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59893         * lib/addext.c: Remove; no longer needed.
59894         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59895         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59896         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59897         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59898         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59899         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59900         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59901         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59902         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59903         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59904         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59905         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59906         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59907         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59908         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59909         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59910         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59911         Import changes from coreutils.
59912
59913 2004-08-05  Simon Josefsson  <jas@extundo.com>
59914
59915         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59916
59917 2004-08-05  Simon Josefsson  <jas@extundo.com>
59918
59919         * m4/getsubopt.m4: New file.
59920
59921 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         Merge from coreutils.
59924
59925         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
59926         * m4/getcwd-path-max.m4: New files.
59927
59928         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
59929         FILESYSTEM_PREFIX_LEN ->
59930         FILE_SYSTEM_PREFIX_LEN.
59931         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
59932         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
59933         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
59934         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
59935
59936         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
59937         prerequisite modules now handle the DOS stuff.
59938         Don't check for unistd.h.
59939
59940 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         Merge from coreutils.
59943
59944         * lib/.gdb-history: Remove; this doesn't belong here.
59945
59946         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
59947         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
59948         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
59949         * lib/getcwd.c: New files.
59950
59951         * lib/dirname.h: Include <stdbool.h>.
59952         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
59953         for consistency with POSIX terminology.  All uses changed.
59954         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
59955         (strip_trailing_slashes): Use bool for booleans.
59956         * lib/stripslash.c (strip_trailing_slashes): Likewise.
59957
59958         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
59959         sometimes returns a positive errno value even when it succeeds.
59960         (print_errno_message) [!LIBC]: Fall back on strerror if
59961         __strerror_r fails.
59962
59963         * lib/path-concat.c (mempcpy): Don't define if a system header defines
59964         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
59965         (longest_relative_suffix): New function.
59966         (path_concat): Use it.  Assume first argument is not NULL.
59967         Port to DOS.  Omit redundant separators.
59968         Report an error instead of returning NULL.
59969         Use mempcpy instead of memcpy.
59970         (xpath_concat): Remove: not declared or used.
59971
59972         * lib/same.h: Include <stdbool.h>
59973         (same_name): Return bool, not int.
59974         * lib/same.c (same_name): Likewise.
59975         (errno): Don't declare; we assume C89 or better now.
59976
59977         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
59978         if not already defined.
59979
59980         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
59981         * lib/dup-safer.c (errno): Likewise.
59982
59983 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         Merge from coreutils.
59986         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
59987         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
59988         * modules/path-concat: Don't depend on strdup.
59989
59990 2004-08-03  Simon Josefsson  <jas@extundo.com>
59991
59992         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
59993         * lib/progname.h: Don't include stdbool.h.
59994
59995 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59996
59997         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
59998         * MODULES.html.sh (func_all_modules): Remove fatal.
59999
60000 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60003
60004 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60007         working.
60008
60009 2004-08-02  Simon Josefsson  <jas@extundo.com>
60010
60011         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60012         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60013         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60014
60015 2004-08-01  Simon Josefsson  <jas@extundo.com>
60016
60017         * lib/xgetdomainname.c: Include stdlib.h, for free().
60018
60019 2004-07-19  Bruno Haible  <bruno@clisp.org>
60020
60021         * MODULES.html.sh (func_all_modules): Add dummy.
60022
60023 2004-07-16  Simon Josefsson  <jas@extundo.com>
60024
60025         * modules/dummy: New file.
60026
60027 2004-07-16  Simon Josefsson  <jas@extundo.com>
60028
60029         * lib/dummy.c: New file.
60030
60031 2004-07-16  Bruno Haible  <bruno@clisp.org>
60032
60033         * lib/backupfile.h: Add extern "C" for C++.
60034         * lib/closeout.h: Likewise.
60035         * lib/copy-file.h: Likewise.
60036         * lib/findprog.h: Likewise.
60037         * lib/full-write.h: Likewise.
60038         * lib/pathname.h: Likewise.
60039         * lib/progname.h: Likewise.
60040         * lib/stpcpy.h: Likewise.
60041         * lib/stpncpy.h: Likewise.
60042         * lib/strcase.h: Likewise.
60043         * lib/strstr.h: Likewise.
60044         * lib/xalloc.h: Likewise.
60045
60046         * lib/mbswidth.h: Add extern "C" for C++.
60047         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60048
60049 2004-07-13  Robert Millan  <robertmh@gnu.org>
60050
60051         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60052
60053 2004-07-09  Simon Josefsson  <jas@extundo.com>
60054
60055         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60056         failed without this.)
60057
60058 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60059
60060         * modules/chown (Files): Add lib/fchown-stub.c, since
60061         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60062
60063 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         * lib/fchown-stub.c: New file.
60066
60067 2004-06-24  Jim Meyering  <jim@meyering.net>
60068
60069         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60070
60071 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * modules/argz: Omit "#include".
60074
60075         * MODULES.html.sh (func_all_modules): Add calloc, to match
60076         2004-06-01 addition of calloc module.
60077
60078 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60079
60080         * m4/argz.m4: New file, which is autoupdated from libtool.
60081
60082 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60085         libtool.
60086
60087 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * config/srclist-update: Don't insist on "USA." before the
60090         close-comment, as libtool omits the period and puts the */ on a
60091         separate line.
60092         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60093         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60094
60095 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60096
60097         * modules/argz: New file.
60098         * MODULES.html.sh (func_all_modules): Add argz.
60099
60100 2004-06-12  Jim Meyering  <jim@meyering.net>
60101         and  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         * modules/hash (Files): Add lib/xalloc.h.
60104         * modules/pipe (Depends-on): Add wait-process.
60105         * modules/stat (Depends-on): Add xalloc.
60106         * modules/userspec (Files): Add lib/userspec.h.
60107         * modules/xstrto
60108
60109         Upgrade from gettext-0.13.
60110         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60111         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60112         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60113
60114 2004-06-10  Jim Meyering  <jim@meyering.net>
60115
60116         * lib/calloc.c: New file.
60117
60118 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60119
60120         * lib/getdate.y (yylex): Allow space between sign and number.
60121         Problem reported by Dan Jacobson.
60122
60123 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60124
60125         Merge from coreutils CVS.
60126
60127         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60128         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60129         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60130         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60131         xstrtol.m4: Fix copyright date and/or serial number.
60132
60133         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60134         See if we need an fchown replacement.
60135         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60136         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60137         and use the replacement function if we detect either defect.
60138
60139         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60140         gl_UTIMECMP.
60141
60142 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60143         and  Jim Meyering  <jim@meyering.net>
60144
60145         Merge from coreutils CVS.
60146
60147         * lib/stat-macros.h: New file, with contents from file-type.h
60148         and coreutils' system.h.
60149         * lib/file-type.c: Include "stat-macros.h".
60150         * lib/file-type.h (file_type): Move all macro definitions to new file,
60151         stat-macros.h.
60152
60153         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60154         Wrap old code with this conditional.
60155         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60156         function that does not dereference symlinks.
60157         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60158
60159         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60160         dependency problems.
60161         (xreadlink): Accept new arg SIZE, for efficiency.
60162         All decls and uses changed.
60163         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60164
60165         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60166         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60167
60168         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60169         sysexits.h.
60170
60171 2004-06-01  Jim Meyering  <jim@meyering.net>
60172
60173         * m4/calloc.m4: New file.
60174
60175 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60178         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60179         Also, fix a typo in a diagnostic.
60180
60181 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60182
60183         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60184         or AC_FUNC_REALLOC.
60185
60186 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60187
60188         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60189         macros to be defined.
60190         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60191         the allocator returns NULL because the requested size is zero.
60192
60193 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60196         var.  Add comment explaining why libc still defines it.  This
60197         merges the following patch from glibc:
60198         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60199
60200 2004-05-20  Andreas Schwab  <schwab@suse.de>
60201
60202         * m4/free.m4: Replace free if it not known to work, not the other
60203         way round.
60204
60205 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60206
60207         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60208         present in glibc since revision 1.1 of this file.
60209         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60210         obstack_alignment_mask, obstack_alloc, obstack_base,
60211         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60212         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60213         obstack_grow0, obstack_init, obstack_int_grow,
60214         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60215         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60216         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60217         nonexistent functions.
60218
60219 2004-05-18  Karl Berry  <karl@gnu.org>
60220
60221         * config/srclist.txt: break link for vasnprintf.c.
60222
60223 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60224
60225         Port obstack to the AS/400, where pointers are 16 bytes wide and
60226         you cannot cast an integer to a valid pointer.  This patch is
60227         currently waiting to be integrated into glibc; see
60228         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60229
60230         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60231         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60232         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60233         (struct obstack): temp member is now a union of a pointer and
60234         an integer, instead of an integer.  All integer uses changed.
60235         This does not affect the physical layout of struct obstack,
60236         except on hosts (like the AS/400) where the size or alignment of
60237         void * is greater than that of ptrdiff_t.
60238         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60239         __STDC__)]: Store temporary in pointer member of union, not
60240         integer member.
60241         * lib/obstack.c: Include <stddef.h>, for offsetof.
60242         (struct fooalign): Remove; it doesn't need a name.
60243         (union fooround): Change double to long double, and add void *.
60244         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60245         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60246         not a macro.  Hence the values are always int; so remove all
60247         casts-to-int in uses.
60248
60249 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60252         we can get this patch merged into glibc.
60253
60254 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60255             Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * m4/argp: Depend on alloca.
60258
60259 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60260             Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60263         freecoding.
60264
60265 2004-05-17  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60268         precision that consists of a '.' followed by an empty digit string.
60269         Patch by Tor Lillqvist <tml@iki.fi>.
60270
60271 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60272
60273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60274         for backward compatibility with older code.  We need our own
60275         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60276         it under some other name, and our alloca.h will define it.
60277
60278 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60279             Derek Price  <derek@ximbiot.com>
60280
60281         * lib/alloca.c: Include <alloca.h>, to get our interface.
60282         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60283         include <alloca.h> first.  Use C89 prototype for alloca; this
60284         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60285         Use #elif for simplicity, since we can assume C89 now.
60286         Don't try to source the system alloca.h since it will not be found
60287         and to prevent recursively including its replacement.
60288         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60289         * lib/regex.c: Likewise.
60290
60291 2004-05-16  Derek Price  <derek@ximbiot.com>
60292             Paul Eggert  <eggert@cs.ucla.edu>
60293
60294         getline cleanup.  This changes the getndelim2 API: both order of
60295         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60296         no delimiter).
60297
60298         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60299         interface does that.
60300         (getline): Always use getdelim, so that we don't have two
60301         copies of this code.
60302         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60303         if available.
60304         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60305         (GETNDELIM2_MAXIMUM): New macro.
60306         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60307         instead of the old practice of delim2==0.  All callers changed.
60308         Return -1 on overflow, instead of returning junk.
60309         Do not set *linesize unless allocation succeeds.
60310         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60311         that we include sys/types.h.
60312         * lib/getnline.h: Likewise.
60313         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60314         (getndelim2): Reorder arguments.
60315         * lib/getnline.c (getnline, getndelim):
60316         Don't discard the NMAX argument.
60317         (getnline): Invoke getndelim, to avoid code duplication.
60318         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60319         of (size_t) -1 by callers of the getnline family.
60320
60321 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60324         Check for gettimeofday.
60325         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60326         Check for settimeofday, stime.
60327
60328 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * lib/nanosleep.c (suspended): Change its type from int to
60331         sig_atomic_t volatile.
60332         (first_call): Make it private to rpl_nanosleep, and have it
60333         be zero initially as that's a bit faster.
60334         (my_usleep): Round up fractional times instead of truncating them,
60335         as this is the usual meaning for 'sleep'.
60336
60337         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60338         doesn't work.
60339         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60340         (ENOSYS): Define if not defined.
60341         (settime): Fall back on stime if it exists and settimeofday fails.
60342         But don't bother with fallbacks if a method fails with errno == EPERM.
60343
60344 2004-05-11  Jim Meyering  <jim@meyering.net>
60345
60346         Prior to this change, the save_cwd caller required read access to the
60347         current directory on most systems (ones with the fchdir function).
60348
60349         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60350         fails, try write-only, and finally, resort to using xgetcwd.
60351
60352 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * lib/obstack.c, obstack.h: Import changes from libc.
60355
60356 2004-04-28  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60359         also implicitly appends .exe to executables.
60360         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60361         accepts Windows pathnames.
60362         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60363         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60364         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60365         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60366         Reported by Derek Robert Price <derek@ximbiot.com>.
60367
60368 2004-04-21  Karl Berry  <karl@gnu.org>
60369
60370         * config/srclist.txt (localcharset.c): break sync.
60371
60372 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60373
60374         * m4/host-os.m4: Add a copyright notice.
60375
60376 2004-04-20  Jim Meyering  <jim@meyering.net>
60377
60378         Change UTILS_ to gl_ in AC_DEFINE'd names.
60379         Change utils_- and jm_-prefixed variables, too.
60380         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60381         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60383
60384         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60385         Don't emit trailing blanks.
60386         Also rename jm_-prefixed variables to have gl_ prefix.
60387
60388         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60389         Also rename jm_-prefixed variables to have gl_ prefix.
60390
60391         * m4/jm-macros.m4: Reflect the renamings.
60392         * m4/prereq.m4: Likewise.
60393
60394 2004-04-20  Jim Meyering  <jim@meyering.net>
60395
60396         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60397         memory.
60398
60399 2004-04-20  Jim Meyering  <jim@meyering.net>
60400             Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60403         memory when realloc fails.
60404
60405 2004-04-19  Jim Meyering  <jim@meyering.net>
60406
60407         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60408         now that readutmp.c may call `free (0)'.
60409
60410 2004-04-19  Bruno Haible  <bruno@clisp.org>
60411
60412         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60413         * m4/inttypes_h.m4: Likewise.
60414         * m4/stdint_h.m4: Likewise.
60415         * m4/intmax_t.m4: Likewise.
60416         * m4/uintmax_t.m4: Likewise.
60417
60418 2004-04-18  Jim Meyering  <jim@meyering.net>
60419
60420         * m4/prereq.m4: Don't forbid jm_ prefix.
60421
60422         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60423         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60424         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60425         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60426         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60427         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60428         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60429         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60430         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60431         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60432         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60433         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60434         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60435         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60436         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60437         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60438         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60439         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60440         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60441
60442 2004-04-18  Jim Meyering  <jim@meyering.net>
60443
60444         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60445         failure, don't leak memory and do call END_UTMP_ENT.
60446
60447 2004-04-16  Jim Meyering  <jim@meyering.net>
60448
60449         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60450         coreutils' stat program.
60451         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60452
60453 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60454
60455         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60456         C89.
60457         (CHAR_BIT): Remove, since we assume C89.
60458         Include <stdint.h> if available, as per current Autoconf CVS advice.
60459
60460 2004-03-31  Jim Meyering  <jim@meyering.net>
60461
60462         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60463         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60464         * m4/xalloc.m4: Likewise.
60465
60466 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60467
60468         Merge from coreutils.
60469
60470         * m4/inttostr.m4: New file.
60471         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60472         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60473         Require gl_CLOCK_TIME.
60474         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60475
60476 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60477
60478         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60479         not bool, to be more consistent with Unix conventions.
60480         Suggested by Bruno Haible.
60481
60482         Merge from coreutils.
60483
60484         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60485         * lib/umaxtostr.c: New files.
60486
60487         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60488         the usual <time.h> dance.
60489         (get_date): Change signature to support fractional time stamps.
60490         All callers changed.
60491         * lib/getdate.y: Include "getdate.h" first, as we can now
60492         assume C89 and don't need to worry about 'const'.
60493         Similarly, include "unlocked-io.h" near start, not in middle.
60494         Include <limits.h>.
60495         (textint.value): Use long int rather than int.
60496         (textint.digits): Use size_t rather than int.
60497         (BILLION, LOG10_BILLION): New constants.
60498         (parser_control): New member rel_ns.  Members day_ordinal,
60499         time_zone, month, day, hour, minutes, rel_year, rel_month,
60500         rel_day, rel_hour, rel_minutes, rel_seconds
60501         are now long int, not int.  Member seconds is now struct timespec,
60502         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60503         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60504         not int.
60505         (%union.intval): Now long int, not int.
60506         New member timespec.
60507         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60508         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60509         (spec): Now is a timespec or an item list.
60510         (timespec, items): New nonterminals.
60511         (time, rel, relunit, number, get_date):
60512         Add support for fractional seconds.
60513         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60514         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60515         (to_hour): First arg is now long int, not int.
60516         (to_year): Returns long int, not int.
60517         Don't treat year -70 like 70.
60518         (tm_diff): Returns long int, not int.
60519         (lookup_word): Use bool instead of int when appropriate.
60520         (yylex): Use size_t for count, not int.
60521         Detect overflow when parsing large integer constants.
60522         Add support for fractions.
60523         (get_date): Make pointers 'const' if possible.
60524         Use more-portable code to detect integer overflow.
60525         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60526         Don't use ctime; it's not reliable if the year has >4 digits.
60527
60528         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60529         This is for compatibility with BSD.
60530
60531         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60532         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60533         From coreutils' system.h.
60534
60535         * lib/userspec.c: Don't include "posixver.h".
60536         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60537         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60538         compatible extension.  Simplify code by removing a boolean int
60539         that was always nonzero if a string was nonnull.
60540
60541 2004-03-30  Jim Meyering  <jim@meyering.net>
60542
60543         Merge from coreutils.
60544
60545         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60546         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60547         on some systems one must include <grp.h> before it.
60548         Reported by Christian Krackowizer.
60549
60550 2004-03-30  Jim Meyering  <jim@meyering.net>
60551
60552         Merge from coreutils.
60553
60554         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60555
60556         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60557         an empty input stream.
60558
60559         * lib/readtokens.c: Include <stdbool.h>.
60560         (readtoken): Use `size_t' rather than int/long.
60561         All callers adjusted.
60562         Use `bool' rather than `int' where appropriate.
60563         Use memset rather than an explicit loop.
60564         Use x2nrealloc rather than xrealloc.
60565         Allow the use of `\0' as a delimiter.
60566         (readtokens): Likewise.
60567         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60568
60569 2004-03-30  Jim Meyering  <jim@meyering.net>
60570
60571         * m4/realloc.m4: Remove file, since now it does no more than
60572         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60573         the `configure.ac' section of module/realloc.
60574         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60575
60576 2004-03-30  Bruno Haible  <bruno@clisp.org>
60577
60578         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60579         nonnull.
60580
60581 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60582
60583         Merge changes to getloadavg.c from coreutils and Emacs.
60584
60585         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60586         Define to an expression, not to the empty string.
60587         Include cloexec.h and xalloc.h.
60588         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60589         Use set_cloexec_flag rather than rolling our own.
60590         * lib/cloexec.c, lib/cloexec.h: New files.
60591
60592 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60593
60594         * m4/cloexec.m4: New file.
60595
60596 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60597
60598         * lib/getopt.h: Sync with libc CVS.
60599
60600 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60601             Bruno Haible  <bruno@clisp.org>
60602
60603         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60604         mbswidth.
60605
60606 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60607             Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/mbswidth.h: Include <wchar.h> only if
60610         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60611         <wchar.h>.
60612         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60613
60614 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60615
60616         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60617         Sync with libc CVS.
60618         * lib/getopt_int.h: New file, also synced from libc.
60619
60620 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60621
60622         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60623         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60624         Bring back getopt.c, getopt.h, getopt1.c.
60625
60626 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60627
60628         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60629         All uses changed.  Check for sa_sigaction member; this fixes
60630         a bug first reported by Jason Andrade in
60631         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60632
60633 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60634
60635         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60636         '#if' expressions.  Unlike the code it replaces, it does not
60637         depend on (defined _SC_PAGESIZE).  However, it does depend on
60638         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60639         first reported by Jason Andrade in
60640         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60641
60642 2004-02-25  Simon Josefsson  <jas@extundo.com>
60643
60644         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60645
60646 2004-02-25  Simon Josefsson  <jas@extundo.com>
60647
60648         * lib/strdup.h: New file.
60649         * lib/strdup.c: Include it.
60650         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60651         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60652
60653 2004-02-23  Karl Berry  <karl@gnu.org>
60654
60655         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60656         (from fencepost.gnu.org:/gd/gnuorg).
60657
60658 2004-02-23  Karl Berry  <karl@gnu.org>
60659
60660         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60661         * config/srclist.txt: add maintain/standards documents.
60662
60663 2004-02-18  Bruno Haible  <bruno@clisp.org>
60664
60665         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60666         Reported by Derek Robert Price <derek@ximbiot.com>.
60667
60668 2004-02-16  Karl Berry  <karl@gnu.org>
60669
60670         * config/mkinstalldirs, install-sh: update from automake.
60671
60672 2004-02-06  Karl Berry  <karl@gnu.org>
60673
60674         * m4/po.m4: update from gettext 0.14.1.
60675
60676 2004-02-06  Karl Berry  <karl@gnu.org>
60677
60678         * lib/config.charset: update from gettext 0.14.1.
60679
60680 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60681
60682         Add comments and code, prompted by suggestions from Bruno Haible
60683         for sh-quote.
60684         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60685         describing the enum quoting_style values.
60686         * lib/quotearg.c (quotearg_alloc): New function.
60687         (quotearg_buffer_restyled): Treat lone { and } as special.
60688         Treat = as special.  Work around bug with older shells
60689         that "see" a '\' that is really the 2nd byte of a multibyte char.
60690         Quote empty string with shell_quoting_style.
60691
60692 2004-02-03  Bruno Haible  <bruno@clisp.org>
60693
60694         * m4/pipe.m4: New file, from GNU gettext.
60695
60696 2004-02-03  Bruno Haible  <bruno@clisp.org>
60697
60698         * lib/pipe.h: New file, from GNU gettext.
60699         * lib/pipe.c: New file, from GNU gettext.
60700
60701 2004-01-27  Bruno Haible  <bruno@clisp.org>
60702
60703         * m4/execute.m4: New file, from GNU gettext.
60704
60705 2004-01-27  Bruno Haible  <bruno@clisp.org>
60706
60707         * lib/execute.h: New file, from GNU gettext.
60708         * lib/execute.c: New file, from GNU gettext.
60709         * lib/w32spawn.h: New file, from GNU gettext.
60710
60711 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60712
60713         Merge from diffutils.
60714
60715         * lib/file-type.c (file_type): Add typed memory objects.
60716         * lib/file-type.h (S_TYPEISTMO): New macro.
60717
60718         * lib/c-stack.h (c_stack_action): Remove argv argument.
60719         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60720         (die): Don't calculate message unless segv_action returns.
60721         (get_stack_location, min_address_from_argv, max_address_from_argv,
60722         volatile stack_base, volatile_stack_size): Remove.
60723         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60724         that every segmentation violation is a stack overflow.  (Ouch!)
60725         See Debian bug 136249 (still outstanding) for more info about why
60726         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60727
60728 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60729
60730         Exit-status fix from coreutils.
60731
60732         Use exit_failure consistently in place of EXIT_FAILURE,
60733         so that program exit statuses are consistent on failure.
60734
60735         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60736         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60737         * lib/argmatch.h: Comment fix to match the above.
60738         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60739         Now a macro referring to exit_failure, instead of a separate
60740         variable.  Include "exitfail.h" to get it.
60741         * lib/xstrtol.h: Include "exitfail.h".
60742         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60743
60744         * lib/long-options.c (parse_long_options): Use prototype
60745         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60746         for clarity.
60747
60748 2004-01-21  Jim Meyering  <jim@meyering.net>
60749
60750         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60751         so as not to conflict with a different-sized __mktime_internal
60752         function in GNU libc.
60753         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60754         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60755
60756 2004-01-20  Karl Berry  <karl@gnu.org>
60757
60758         * config/config.guess: update from config.
60759
60760         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60761
60762 2004-01-20  Bruno Haible  <bruno@clisp.org>
60763
60764         Safer stack allocation.
60765         * lib/setenv.c: Include allocsa.h.
60766         (alloca): Remove fallback definition.
60767         (freea): Remove macro.
60768         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60769         instead of freea.
60770
60771 2004-01-20  Bruno Haible  <bruno@clisp.org>
60772
60773         * m4/eealloc.m4: New file, from GNU gettext.
60774
60775 2004-01-20  Bruno Haible  <bruno@clisp.org>
60776
60777         * m4/allocsa.m4: New file, from GNU gettext.
60778
60779 2004-01-20  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/xallocsa.h: New file, from GNU gettext.
60782         * lib/xallocsa.c: New file, from GNU gettext.
60783
60784 2004-01-20  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60787
60788 2004-01-20  Bruno Haible  <bruno@clisp.org>
60789
60790         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60791         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60792         specially.
60793
60794 2004-01-20  Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60797         patch.
60798
60799 2004-01-20  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60802
60803 2004-01-20  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/eealloc.h: New file.
60806
60807 2004-01-20  Bruno Haible  <bruno@clisp.org>
60808
60809         * lib/binary-io.h: Avoid warnings on Cygwin.
60810
60811 2004-01-20  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/allocsa.h: New file, from GNU gettext.
60814         * lib/allocsa.c: New file, from GNU gettext.
60815
60816 2004-01-18  Karl Berry  <karl@gnu.org>
60817
60818         * doc/gpl.texi, doc/lgpl.texi: new files.
60819
60820 2004-01-18  Karl Berry  <karl@gnu.org>
60821
60822         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60823         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60824
60825 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60826
60827         Merge from coreutils.
60828
60829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60830         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60831         (gl_DEFAULT_POSIX2_VERSION): Move
60832         the documentation from 'configure' into 'config.hin',
60833         so that 'configure --help' isn't burdened by it and
60834         we don't have to worry about its formatting there.
60835         Reword the documentation so that it's more succinct
60836         and can be run together into a single paragraph.
60837         * m4/same.m4 (gl_SAME): Check for pathconf.
60838
60839 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60840
60841         Merge from coreutils.
60842
60843         * lib/posixver.c: Include posixver.h.
60844
60845         * lib/same.c: Include <stdbool.h>, <limits.h>.
60846         (_POSIX_NAME_MAX): Define if not defined.
60847         (MIN): New macro.
60848         (same_name): If file names are silently truncated, report
60849         that the file names are the same if they are the same after
60850         the silent truncation.
60851
60852         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60853         conversion function.
60854         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60855         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60856         longer needed.
60857
60858 2004-01-15  Jim Meyering  <jim@meyering.net>
60859
60860         Merge from coreutils.
60861
60862         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60863         if no library is required.
60864         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60865         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60866         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60867         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60868         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60869         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60870         value, $ac_cv_search_crypt, if it's "none required".
60871         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60872         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60873         not gl_FUNC_GETLOADAVG.
60874         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60875         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60876
60877 2004-01-15  Jim Meyering  <jim@meyering.net>
60878
60879         Merge from coreutils.
60880
60881         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60882         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60883         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60884
60885         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60886         optional configure-time default.
60887
60888         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60889
60890         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60891
60892 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60893
60894         Merge from coreutils.
60895
60896         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60897         value, $ac_cv_search_nanosleep, if it's "none required".
60898
60899 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60900
60901         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60902         with like-named macro in fnmatch.c.
60903         (EXT): Use an internal constant instead.
60904
60905         Merge fnmatch patches from glibc.
60906         * lib/fnmatch.c (mbsinit): Remove define.
60907         Add libc_hidden_ver (__fnmatch, fnmatch).
60908         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60909         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60910
60911 2004-01-14  Karl Berry  <karl@gnu.org>
60912
60913         * config/install-sh: update from automake.
60914
60915 2004-01-13  Karl Berry  <karl@gnu.org>
60916
60917         * config/install-sh: update from automake.
60918
60919 2004-01-09  Karl Berry  <karl@gnu.org>
60920
60921         * config/install-sh: update from automake.
60922
60923 2004-01-05  Karl Berry  <karl@gnu.org>
60924
60925         * config/config.{sub,guess}: update from config.
60926
60927 2003-12-31  Karl Berry  <karl@gnu.org>
60928
60929         * config/depcomp: update from automake.
60930
60931 2003-12-14  Karl Berry  <karl@gnu.org>
60932
60933         * lib/config.charset: update from gettext-runtime.
60934
60935 2003-12-03  Paul Eggert  <eggert@twinsun.com>
60936
60937         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
60938         Bug reported by Alfred M. Szmidt.
60939
60940 2003-12-03  Bruno Haible  <bruno@clisp.org>
60941
60942         * m4/gettext.m4: Upgrade from gettext-0.13.
60943         * m4/po.m4: Upgrade from gettext-0.13.
60944         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
60945         * m4/intmax.m4: New file, from gettext-0.13.
60946         * m4/printf-posix.m4: New file, from gettext-0.13.
60947
60948 2003-11-29  Karl Berry  <karl@gnu.org>
60949
60950         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
60951
60952 2003-11-25  Paul Eggert  <eggert@twinsun.com>
60953             Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/printf-parse.h: Don't include sys/types.h.
60956         (ARG_NONE): New macro.
60957         (char_directive): Change type of *arg_index fields to size_t.
60958         * lib/printf-parse.c: Don't include sys/types.h.
60959         (SSIZE_MAX): Remove macro.
60960         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
60961         Remove unnecessary overflow check.
60962         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
60963         fields.
60964
60965 2003-11-25  Bruno Haible  <bruno@clisp.org>
60966
60967         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
60968
60969 2003-11-25  Bruno Haible  <bruno@clisp.org>
60970
60971         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
60972         gt_TYPE_SSIZE_T.
60973
60974 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60975
60976         * modules/alloca: Remove dependency on xalloc.
60977
60978 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60979
60980         * lib/alloca.c: Remove dependency on xalloc module.
60981         (xalloc_die): Remove.
60982         (memory_full) [!defined emacs]: New macro.
60983         [!defined emacs]: Don't include xalloc.h.
60984         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
60985         address arithmetic overflows.  Change datatypes a bit to avoid
60986         unnecessary casts.
60987
60988 2003-11-22  Jim Meyering  <jim@meyering.net>
60989
60990         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
60991         s/size/size_t/.
60992
60993 2003-11-21  Karl Berry  <karl@gnu.org>
60994
60995         * config/config.{sub,guess}: update from config.
60996
60997 2003-11-18  Karl Berry  <karl@gnu.org>
60998
60999         * config/config.{sub,guess}: update from config.
61000
61001         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61002
61003 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61004
61005         * README: Mention that S+T cannot overflow if S is the size of
61006         an existing object and T is sufficiently small.
61007
61008 2003-11-17  Jim Meyering  <jim@meyering.net>
61009
61010         On systems without utime and without a utimes function capable of
61011         dealing with a NULL struct utimbuf* argument, this utime replacement
61012         could -- in unusual circumstances -- leak a file descriptor.
61013         * lib/utime.c: Include <unistd.h> and <errno.h>.
61014         (utime_null): Be sure to close `fd' and to preserve errno.
61015         Reported by Geoff Collyer via Arnold Robbins.
61016
61017 2003-11-17  Bruno Haible  <bruno@clisp.org>
61018
61019         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61020         (Depends-on): Add xsize.
61021
61022 2003-11-17  Bruno Haible  <bruno@clisp.org>
61023
61024         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61025
61026 2003-11-17  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/vasnprintf.c (alloca): Remove fallback definition.
61029         (freea): Remove definition.
61030         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61031         Reported by Paul Eggert.
61032
61033 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61034             Bruno Haible  <bruno@clisp.org>
61035
61036         Protect against address arithmetic overflow.
61037         * lib/printf-args.h: Include stddef.h.
61038         (arguments): Change type of field 'count' to size_t.
61039         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61040         'unsigned int' where appropriate.
61041         * lib/printf-parse.h: Include sys/types.h.
61042         (char_directive): Change type of *arg_index fields to ssize_t.
61043         (char_directives): Change type of fields 'count', max_*_length to
61044         size_t.
61045         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61046         (SSIZE_MAX): Define fallback value.
61047         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61048         instead of 'int' where appropriate. Check a_allocated, d_allocated
61049         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61050         * lib/vasnprintf.c: Include xsize.h.
61051         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61052         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61053         overflow. Avoid wraparound when converting a width or precision from
61054         decimal to binary.
61055
61056 2003-11-16  Bruno Haible  <bruno@clisp.org>
61057
61058         Update from GNU gettext.
61059         * lib/printf-parse.c: Generalize to it can be compiled for wide
61060         strings.
61061         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61062         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61063         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61064         SNPRINTF): New macros.
61065         Don't include <alloca.h> if the file is used inside libintl.
61066         (local_wcslen): New function, for Solaris 2.5.1.
61067         (VASNPRINTF): Use it instead of wcslen.
61068
61069 2003-11-16  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/xsize.h (xmax): New function.
61072         (xsum, xsum3, xsum4): Declare as "pure" functions.
61073
61074 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61075
61076         * modules/xalloc (Files): Undo latest change, since xalloc.h
61077         no longer needs SIZE_MAX or PTRDIFF_MAX.
61078
61079 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61080
61081         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61082         gl_PTRDIFF_MAX.
61083
61084 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61085
61086         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61087         "return", to pacify some unknown compiler.  Problem reported
61088         by Joerg Schilling.
61089
61090 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61091
61092         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61093         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61094         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61095         heuristic is just as accurate as far as we know, and it removes a
61096         dependency on size_max.m4 and ptrdiff_max.m4.
61097
61098 2003-11-11  Bruno Haible  <bruno@clisp.org>
61099
61100         * modules/xsize (Files): Add m4/size_max.m4.
61101         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61102
61103 2003-11-11  Bruno Haible  <bruno@clisp.org>
61104
61105         * m4/size_max.m4: New file.
61106         * m4/ptrdiff_max.m4: New file.
61107         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61108         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61109         (gl_XALLOC): Invoke it.
61110
61111 2003-11-11  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61114         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61115         defined.
61116
61117 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61118
61119         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61120         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61121         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61122         From Bruno Haible.
61123         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61124         not (size_t) -1, since it's defined here.
61125
61126 2003-11-09  Karl Berry  <karl@gnu.org>
61127
61128         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61129
61130 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61131
61132         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61133         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61134         Reject sizes of exactly SIZE_MAX bytes.
61135         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61136         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61137
61138 2003-11-05  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61141         SIZE_MAX defined in <limits.h> on Solaris.
61142
61143 2003-11-04  Jim Meyering  <jim@meyering.net>
61144
61145         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61146         variable names, rather than @VAR@.
61147         * modules/poll: Likewise.
61148
61149 2003-11-04  Bruno Haible  <bruno@clisp.org>
61150
61151         * modules/xsize: New file.
61152         * modules/linebreak: Depend on xsize.
61153         * MODULES.html.sh (func_all_modules): Add xsize.
61154
61155 2003-11-04  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/xsize.m4: New file.
61158
61159 2003-11-04  Bruno Haible  <bruno@clisp.org>
61160
61161         * lib/xsize.h: New file.
61162         * lib/linebreak.c: Include xsize.h.
61163         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61164         argument for overflow.
61165         Suggested by Paul Eggert.
61166
61167 2003-11-03  Karl Berry  <karl@gnu.org>
61168
61169         * config/config.{guess,sub}: update from config.
61170
61171 2003-11-03  Jim Meyering  <jim@meyering.net>
61172
61173         * modules/userspec (lib_SOURCES): Add userspec.h.
61174         (Include): Add "userspec.h".
61175         Improve description.
61176
61177 2003-11-03  Jim Meyering  <jim@meyering.net>
61178
61179         * lib/userspec.c: Include "userspec.h".
61180         * lib/userspec.h: New file.
61181
61182 2003-11-03  Bruno Haible  <bruno@clisp.org>
61183
61184         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61185
61186 2003-11-03  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61189         available, to avoid (extremely rare) race condition.
61190         Suggested by Paul Eggert.
61191
61192 2003-11-02  Karl Berry  <karl@gnu.org>
61193
61194         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61195
61196 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61197
61198         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61199         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61200         (read_filesystem_list): Set and use me_type_malloced.
61201         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61202         whatever the type happens to be), for brevity and consistency.
61203         Check for size calculation overflow on Alphas running OSF/1.
61204
61205 2003-10-31  Jim Meyering  <jim@meyering.net>
61206
61207         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61208
61209         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61210
61211 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61212             Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61215         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61216
61217 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61218
61219         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61220         netbsd*-gnu*.  Suggested by Robert Millan.
61221
61222 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61223
61224         * modules/group-member: Depend on stdbool.
61225
61226 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61227
61228         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61229
61230 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61231
61232         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61233         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61234         after the 'gnu' in these cases.  This fixes some bugs in the
61235         previous change, and is based on suggestions by Robert Millan.
61236
61237 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61238
61239         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61240         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61241         no longer needed.
61242         * lib/quotearg.c (quotearg_n_options): Use it.
61243         * lib/group-member.c: Include <stdbool.h>.
61244         (free_group_info): Arg is now const *; don't free arg.
61245         (get_group_info): Now returns bool and accepts struct group_info *,
61246         rather than returning a malloc'ed struct group_info *.
61247         All uses changed.  Check for overflow in internal size calculation.
61248
61249         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61250         rather than xmalloc/xrealloc.
61251         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61252         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61253         conformance bug: the old code used a pointer after freeing the
61254         storage that it addressed.
61255         * lib/hash.c (hash_initialize): Simplify the code by using
61256         xalloc_oversized rather than doing it by hand.
61257         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61258         the buffer preserved.  Use free and xmalloc instead.
61259         * lib/quotearg.c (quotearg_n_options): Likewise.
61260         Use a simpler test for size overflow.  Don't use xalloc_oversized
61261         because unsigned int might be wider than size_t (!); this suggests
61262         that we should switch from unsigned int to size_t for slot numbers.
61263
61264 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61265
61266         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61267         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61268         NetBSD kernels.  Requested by Richard Stallman.
61269
61270 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61271
61272         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61273         to allocate the returned structure.  Do not allocate a subarray,
61274         as x2nrealloc will do that.
61275         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61276         instead of xnrealloc.
61277         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61278
61279 2003-10-27  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/stdbool_.h: Better support for BeOS.
61282
61283 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61284
61285         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61286         now uses inline.
61287
61288 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61289
61290         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61291         callers that want to do their own size-overflow checking.  Include
61292         <stdbool.h>, since xalloc_oversized returns bool.
61293         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61294         to use xalloc_oversized.
61295
61296         Add two functions x2realloc, x2nrealloc, for programs that grow
61297         arrays dynamically by doubling their sizes.
61298         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61299         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61300         New functions.
61301
61302         Port to C99 semantics for 'inline' of external functions.
61303         Bug reported by Bruno Haible.
61304         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61305         with the old contents of xnmalloc.
61306         (xnmalloc, xmalloc): Use it.
61307         (xnrealloc_inline): New static inline function,
61308         with the old contents of xnrealloc.
61309         (xnrealloc, xrealloc): Use it.
61310
61311         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61312         that.
61313
61314 2003-10-26  Karl Berry  <karl@gnu.org>
61315
61316         * config/srclist.txt (COPYING.DOC): no longer available from
61317         /gd/gnuorg; don't know where the ultimate source is.
61318
61319 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61320
61321         Fix several address-calculation bugs in the hash modules,
61322         plus some minor code cleanup.
61323
61324         * lib/hash.h: Include <stdbool.h>, for bool.
61325         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61326         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61327         hash_get_n_entries, hash_get_max_bucket_length,
61328         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61329         hash_rehash): Use size_t rather than unsigned.
61330         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61331         hash_get_n_buckets_used, hash_get_n_entries,
61332         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61333         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61334         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61335         Likewise.
61336         (SIZE_MAX): Define if not defined.
61337         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61338         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61339         hash_print):
61340         Use const * when possible.
61341         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61342         (check_tuning): Fix bug: if tuning parameters were very close to
61343         0 or 1, rounding errors could have caused subscript violations.
61344         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61345         (hash_initialize): Add 'fail:' label
61346         to free table and return NULL, and use it to simplify code.
61347         Use calloc rather than clearing the storage ourself.
61348         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61349         buffer size calculations.
61350         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61351         Include <stddef.h>, for size_t.
61352         * lib/hash-pjw.c (hash_pjw): Likewise.
61353         Switch to method described by Bruno Haible.
61354         Include <limits.h>, for CHAR_BIT.
61355         (SIZE_BITS): New macro.
61356
61357 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61358
61359         * m4/getline.m4 (AM_FUNC_GETLINE):
61360         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61361         hosts.  Problem reported by Derek Robert Price in
61362         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61363         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61364         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61365
61366 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61367
61368         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61369         ceiling the allocation at NMAX bytes rather than silently
61370         discarding input bytes before NMAX is reached.  This makes
61371         a difference only if NMAX exceeds SIZE_MAX / 2.
61372
61373         * lib/obstack.c: Merge from glibc.
61374         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61375         Add libc_hidden_def (_obstack_newchunk).
61376         (_obstack_free) [! defined _LIBC]: Remove.
61377         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61378         a clone of the function body.
61379         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61380         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61381
61382         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61383         glibc.
61384         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61385         arg to memcpy.
61386
61387         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61388         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61389         Don't use lvalue casts, as GCC plans to remove support for them
61390         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61391         was also present in the non-GCC version, indicating that this
61392         code had always been buggy and had never been widely used.
61393         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61394         Use the fast variant of each macro, rather than copying the
61395         definiens of the fast variant; that way, we'll be more likely to
61396         catch future bugs in the fast variants.
61397
61398 2003-10-20  Bruno Haible  <bruno@clisp.org>
61399
61400         * modules/wait-process: New file.
61401         * MODULES.html.sh (func_all_modules): Add wait-process.
61402
61403 2003-10-20  Bruno Haible  <bruno@clisp.org>
61404
61405         * m4/wait-process.m4: New file.
61406
61407 2003-10-20  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/wait-process.h: New file, from GNU gettext.
61410         * lib/wait-process.c: New file, from GNU gettext.
61411
61412 2003-10-19  Jim Meyering  <jim@meyering.net>
61413
61414         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61415         HPUX 10.20.
61416
61417 2003-10-18  Karl Berry  <karl@gnu.org>
61418
61419         * config/config.guess: update from config.
61420
61421 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61422
61423         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61424         (getgroups): First arg is int, not size_t.
61425         Don't let 'free' mangle errno.
61426
61427 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61428
61429         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61430
61431 2003-10-16  Karl Berry  <karl@gnu.org>
61432
61433         * config/config.{guess,sub}: update from config.
61434
61435 2003-10-16  Jim Meyering  <jim@meyering.net>
61436
61437         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61438         memcpy.
61439
61440 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61441
61442         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61443         (SIZE_MAX): Remove.
61444         (new_exclude, add_exclude_file): Initial size no longer needs to
61445         be a power of 2.
61446         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61447         our own address arithmetic overflow checking.
61448
61449         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61450         (fnmatch): Do not alloca more than 2000 wide characters;
61451         instead, use malloc for large buffers.
61452         Check for address arithmetic overflow, and return -1
61453         with errno set to ENOMEM in that case.
61454         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61455         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61456         instead, return -1.  Check for address arithmetic overflow.
61457
61458 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61459
61460         Handle invalid suffixes and overflow independently, so that
61461         callers can treat them independently as needed.  Fix some bugs in
61462         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61463         suffix for a human-readable blocksize.  The major caller-visible
61464         change is the addition of a new
61465         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61466         that both overflow and suffix chars were found.
61467
61468         * lib/human.c (humblock): Don't check separately for invalid suffix
61469         char; that is xstrtoumax's job (now that its bug is fixed).
61470         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61471         INTMAX_MAX]: New macros.
61472         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61473         TYPE_MAXIMUM): New macros.
61474         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61475         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61476         if overflow occurs, as it's what __strtol does and it's more useful
61477         in practice.
61478         (__xstrtol): If __strtol reports some error other than ERANGE,
61479         reflect it to the caller as LONGINT_INVALID.  If it reports
61480         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61481         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61482         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61483         value.
61484         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61485         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61486         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61487         [defined UINTMAX_MAX]: New macros.
61488
61489 2003-10-14  Bruno Haible  <bruno@clisp.org>
61490
61491         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61492
61493 2003-10-14  Bruno Haible  <bruno@clisp.org>
61494
61495         * m4/sig_atomic_t: New file, from GNU gettext.
61496         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61497
61498 2003-10-14  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61501         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61502         Also use volatile where needed.
61503
61504 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61505
61506         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61507         Change maintainer from Bruno Haible to 'all'.
61508
61509 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61510
61511         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61512
61513 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61514
61515         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61516         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61517         and define in terms of the other primitives.
61518         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61519         (SIZE_MAX): Define if not already defined.
61520         (array_size_overflow): New function.
61521         (xalloc_die): Abort instead of exiting if 'error' returns.
61522         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61523         (xmalloc, xrealloc): Use them.
61524         (xcalloc): Check for address arithmetic overflow.
61525         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61526         a bit faster than strcpy.
61527
61528 2003-10-10  Simon Josefsson  <jas@extundo.com>
61529
61530         * modules/argp (Depends-on): Add restrict and strcase.
61531
61532 2003-10-10  Simon Josefsson  <jas@extundo.com>
61533
61534         * m4/argp.m4: Add AC_C_INLINE.
61535
61536 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61537
61538         Merge getpass from libc, plus a few fixes.
61539
61540         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61541         Include <stdbool.h>.
61542         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61543         __fsetlocking to empty.
61544         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61545         do include <bits/libc-lock.h>.
61546         Do not include <fcntl.h>; not needed.
61547         [_LIBC]: Include <wchar.h>.
61548         (NOTCANCEL_MODE): New macro.
61549         (flockfile, funlockfile) [_LIBC]: New macros.
61550         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61551         [!_LIBC]: New macros.
61552         (call_fclose): New function.
61553         (getpass): Use it.  Save tty stream separately; this simplifies the
61554         code and makes it more reliable if stdin happens to equal stdout.
61555         Invoke __fsetlocking on tty.
61556         Handle thread cancellation if needed.
61557         Namespace cleanup (use __tcgetattr, __getline).
61558         Use bool for Booleans.
61559         [USE_IN_LIBIO]: Handle wide streams.
61560         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61561         stream might go where.
61562
61563         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61564         doesn't have to include <stdio.h> before us.
61565         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61566         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61567         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61568         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61569         if not declared, so that we can use getpass.c code from libc without
61570         rewriting it.
61571         (flockfile, ftrylockfile, funlockfile): New macros.
61572
61573 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61574
61575         * modules/getpass: Depend on stdbool.
61576
61577 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61578
61579         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61580
61581 2003-10-07  Karl Berry  <karl@gnu.org>
61582
61583         * config/config.{guess,sub}: update from config.
61584
61585 2003-10-06  Jim Meyering  <jim@meyering.net>
61586             Bruno Haible  <bruno@clisp.org>
61587
61588         This lets translators provide better translations for the
61589         "Written by ..." part of --version output.
61590         * lib/version-etc.h: Include stdarg.h.
61591         (version_etc_copyright): Declare as readonly.
61592         (version_etc): Make this function variadic with a NULL-terminated list
61593         of author name strings.
61594         (version_etc_va): New declaration.
61595         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61596         (version_etc_copyright): Declare as readonly.
61597         (version_etc_va): New function. Provide a different translatable string
61598         for each possible number of authors < 10. Abbreviate when there are 10
61599         authors or more.
61600         (version_etc): Make this function variadic. Call version_etc_va.
61601         Suggestion from Gary V. Vaughan.
61602
61603         * lib/long-options.h (parse_long_options): Change prototype: the
61604         authors string is moved to the end and becomes variadic.
61605         * lib/long-options.c: Include stdarg.h.
61606         (parse_long_options): Make this function variadic, too.
61607         Call version_etc_va, not version_etc.
61608
61609 2003-10-06  Bruno Haible  <bruno@clisp.org>
61610
61611         * modules/version-etc-2: Remove file.
61612         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61613
61614 2003-10-06  Bruno Haible  <bruno@clisp.org>
61615
61616         * modules/fatal-signal: New file.
61617         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61618
61619 2003-10-06  Bruno Haible  <bruno@clisp.org>
61620
61621         * m4/fatal-signal.m4: New file.
61622         * m4/signalblocking.m4: New file, from GNU gettext.
61623
61624 2003-10-06  Bruno Haible  <bruno@clisp.org>
61625
61626         * lib/version-etc-2.h: Remove file.
61627         * lib/version-etc-2.c: Remove file.
61628
61629 2003-10-06  Bruno Haible  <bruno@clisp.org>
61630
61631         * lib/fatal-signal.h: New file, from GNU gettext.
61632         * lib/fatal-signal.c: New file, from GNU gettext.
61633
61634 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61635
61636         * README: Rework advice for preventing empty .o files.
61637         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61638         not <sys/types.h>.
61639
61640 2003-10-04  Karl Berry  <karl@gnu.org>
61641
61642         * lib/argp*: update from libc.
61643
61644 2003-10-04  Karl Berry  <karl@gnu.org>
61645
61646         * config/config.{guess,sub}: update from config.
61647
61648 2003-10-02  Bruno Haible  <bruno@clisp.org>
61649
61650         * modules/lchown (Include): Add lchown.h.
61651         * modules/time_r (Include): Use "..." syntax.
61652         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61653
61654 2003-10-01  Simon Josefsson  <jas@extundo.com>
61655
61656         * MODULES.html.sh (func_all_modules): Move gethostname from section
61657         'based on' to section 'lacking' POSIX:2001.
61658
61659 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61660
61661         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61662         to output mode on the same stream.
61663
61664 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61665
61666         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61667         Fix arg typo in previous patch.
61668
61669 2003-09-28  Jim Meyering  <jim@meyering.net>
61670
61671         * lib/error.c: Correct cpp indentation.
61672
61673 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61674
61675         * modules/free: New file.
61676
61677 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61678
61679         * m4/free.m4: New file.
61680
61681 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61682
61683         * lib/minmax.h (MIN, MAX)
61684         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61685         Omit the special code that used __typeof__, since we worry that
61686         it could be more trouble than it's worth.  See:
61687         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61688         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61689
61690         * lib/free.c: New file.
61691
61692 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61693
61694         Trivial fixes to Makefile.am parts of module listings.
61695         * modules/strstr: Append strstr.h to lib_SOURCES.
61696         * modules/strcase: Likewise, for strcase.h.
61697
61698 2003-09-27  Karl Berry  <karl@gnu.org>
61699
61700         * config/mkinstalldirs: update from automake.
61701
61702 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61703
61704         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61705         (error_tail): Do not loop, reallocating temporary buffer, since
61706         the output cannot contain more wide characters than the input
61707         contains bytes, the size must be big enough already.  This avoids
61708         one potential size overflow calculation.  Check for size overflow
61709         when calculating temporary buffer size.  Free temporary buffer
61710         when done, if it was allocated with malloc; this plugs a memory
61711         leak.  Remove casts from void * to pointers, that are no longer
61712         needed now that we're assuming C89 or better.
61713
61714         Merge error changes from glibc.
61715
61716         * lib/error.c, error.h: Update copyright notice header to match glibc.
61717         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61718         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61719         Disable cancellation while printing error.
61720         * lib/error.h: Prepend __ to parameter names.
61721
61722 2003-09-26  Jim Meyering  <jim@meyering.net>
61723
61724         * lib/error.c (error_tail): Move some declarations
61725         into inner scope where the local variables are used.
61726
61727 2003-09-26  Bruno Haible  <bruno@clisp.org>
61728
61729         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61730         stpncpy().
61731         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61732
61733 2003-09-26  Bruno Haible  <bruno@clisp.org>
61734
61735         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61736         (stpncpy): Define as alias for gnu_stpncpy.
61737         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61738
61739 2003-09-25  Simon Josefsson  <jas@extundo.com>
61740
61741         * lib/xgetdomainname.h: New file.
61742         * lib/xgetdomainname.c: New file.
61743
61744 2003-09-25  Simon Josefsson  <jas@extundo.com>
61745             Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/getdomainname: New file.
61748         * modules/xgetdomainname: New file.
61749         * MODULES.html.sh (func_all_modules): Add getdomainname,
61750         xgetdomainname.
61751
61752 2003-09-25  Simon Josefsson  <jas@extundo.com>
61753             Bruno Haible  <bruno@clisp.org>
61754
61755         * m4/getdomainname.m4: New file.
61756
61757 2003-09-25  Simon Josefsson  <jas@extundo.com>
61758             Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/getdomainname.h: New file.
61761         * lib/getdomainname.c: New file.
61762
61763 2003-09-25  Karl Berry  <karl@gnu.org>
61764
61765         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61766
61767 2003-09-25  Karl Berry  <karl@gnu.org>
61768
61769         * config/install-sh: update from automake.
61770
61771 2003-09-25  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/version-etc-2: New file, from modules/version-etc with
61774         modifications.
61775         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61776
61777 2003-09-25  Bruno Haible  <bruno@clisp.org>
61778
61779         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61780         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61781
61782 2003-09-24  Simon Josefsson  <jas@extundo.com>
61783
61784         * modules/xgethostname: Add xgethostname.h.
61785
61786 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61787
61788         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61789         the buffer associated with the argument.  Bug reported by
61790         Simon Josefsson.
61791
61792 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61793
61794         * README: Document assumptions that 'int' is at least 32 bits
61795         wide, that integer arithmetic is 2's complement without overflow,
61796         that there are no holes in integer values, that adding sizes of
61797         two nonoverlapping objects can't overflow, and that all-bits-zero
61798         yields scalar zero.  Fix spelling and capitalization typos.
61799
61800 2003-09-19  Karl Berry  <karl@gnu.org>
61801
61802         * lib/argp.h: update from libc.
61803
61804 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61805
61806         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61807         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61808         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61809
61810 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61811
61812         * gnulib-tool: Use "test -h", not "test -L", for portability
61813         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61814         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61815         (sed_extract_prog): Issue s commands one-by-one, rather than
61816         using \| in one s command.
61817
61818 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61819
61820         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61821         input error, instead of returning NULL the next time we are called
61822         (and therefore losing track of errno).
61823
61824 2003-09-16  Bruno Haible  <bruno@clisp.org>
61825
61826         * gnulib-tool (func_create_testdir): Warn about duplicated
61827         dependencies.
61828
61829 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61830
61831         * modules/argmatch, modules/fatal, modules/obstack,
61832         modules/xalloc, modules/xgethostname: Sort dependencies by
61833         importance, not alphabetically.
61834
61835 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61836
61837         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61838         fails, so that the caller gets the proper errno.
61839
61840         * lib/readutmp.c (read_utmp): Likewise.
61841         Check for fstat error.  Close stream and free storage
61842         when failing.
61843
61844 2003-09-14  Karl Berry  <karl@gnu.org>
61845
61846         * config/srclist.txt (strdup.c): disable for c89 changes.
61847
61848 2003-09-14  Jim Meyering  <jim@meyering.net>
61849
61850         * lib/getloadavg.c: Correct cpp indentation.
61851         * lib/strdup.c: Likewise.
61852         * lib/vasnprintf.c: Likewise.
61853
61854 2003-09-14  Bruno Haible  <bruno@clisp.org>
61855
61856         * modules/fwriteerror: New file.
61857         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61858
61859 2003-09-14  Bruno Haible  <bruno@clisp.org>
61860
61861         * lib/fwriteerror.h: New file.
61862         * lib/fwriteerror.c: New file.
61863
61864 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61865
61866         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61867         modules/xgethostname, modules/xalloc: Depend on exit.
61868
61869 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61870
61871         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61872
61873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61874         and AC_MINIX, too, so that their extensions are available.
61875
61876         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61877         This macro has been superseded by gl_BACKUPFILE.
61878
61879         More patches to assume C89 or better.
61880
61881         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61882
61883         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61884         unconditionally.
61885         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61886         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61887         Include <string.h>, <stdlib.h> unconditionally.
61888         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61889         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61890         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61891         headers or for string.h.
61892         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61893         or strtoul.
61894
61895         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61896         headers.
61897         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61898         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61899         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61900         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61901         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61902         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61903         memcpy, memset.
61904         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61905         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61906         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61907         strtol.
61908         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61909         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61911         strtoul.
61912
61913 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61914
61915         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61916         * lib/obstack.c [!defined _LIBC]: Likewise.
61917         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61918         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61919         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
61920
61921         More changes to assume C89 or better.
61922
61923         * lib/error.c (error_tail): Assume vprintf.
61924
61925         * lib/argmatch.c (getenv): Remove decl.
61926         * lib/progreloc.c (get_full_program_name): Define via prototype.
61927         * lib/setenv.c (clearenv): Likewise.
61928         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
61929         needed.
61930         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
61931         (malloc, memcpy): Remove decls.
61932         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
61933         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
61934         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61935         (memcpy): Remove macro.
61936         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
61937         (__P): Remove.  All uses removed.
61938         (PTR): Remove.  All uses changed to void *.
61939         (CHAR_BIT, NULL): Remove.
61940         (spaces, zeros, memset_space, memset_zero)
61941         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
61942         Remove.
61943         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
61944         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
61945         Define with prototype.
61946         Remove now-unnecessary prototype decl.
61947         (extra_args_spec): Assume ANSI C.  All uses changed.
61948         (extra_args_spec_iso): Remove.
61949         (my_strftime, emacs_strftimeu): Define via prototype.
61950         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
61951         unconditionally.
61952         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
61953         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
61954         (strtoul, strtol): Remove decls.
61955         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
61956         LONG_MAX): Remove.
61957         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61958         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
61959         (LOCALE_PARAM_PROTO): New macro.
61960         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
61961         (INTERNAL (strtol), strtol): Define with a prototype.
61962         (PARAMS): Remove.  All uses removed.
61963         * lib/tempname.c: Include <string.h> unconditionally.
61964         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
61965         * lib/xgethostname.c (main): Define with a prototype.
61966         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
61967         Include <stdlib.h> unconditionally.
61968         (calloc, malloc, realloc, free): Remove decls.
61969         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
61970         Include <stdlib.h> unconditionally.  Sort include file names.
61971         (strtod): Remove.
61972         (xstrtod): Define with a prototype.
61973         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
61974         (strtol, strtoul): Remove decls.
61975
61976 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61977
61978         More patches to assume C89 or better.
61979         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
61980         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
61981         string.h, memchr, STDC_HEADERS.
61982
61983 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61984
61985         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
61986         Include <stdlib.h>, <string.h> unconditionally.
61987         Remove now-unnecessary cast to char *.
61988         * lib/strnlen.c: Include <string.h> unconditionally.
61989         * lib/yesno.c (yesno): Define with a prototype.
61990
61991 2003-09-11  Bruno Haible  <bruno@clisp.org>
61992
61993         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
61994
61995 2003-09-10  Jim Meyering  <jim@meyering.net>
61996
61997         * lib/error.c: Correct indentation of cpp directives.
61998
61999 2003-09-10  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62002         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62003         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62004         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62005         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62006         <stdlib.h> and <string.h> checks.
62007         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62008         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62009
62010 2003-09-10  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/strcspn.c: Include <string.h> unconditionally.
62013         * lib/strpbrk.c: Include <string.h> unconditionally.
62014         * lib/strstr.c: Include <string.h> unconditionally.
62015         * lib/unicodeio.c: Include <string.h> unconditionally.
62016         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62017         * lib/unsetenv.c: Likewise.
62018         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62019         * lib/yesno.c: Include <stdlib.h> unconditionally.
62020         (rpmatch): Add prototype.
62021
62022 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62023
62024         More patches to assume C89 or better.
62025         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62026         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62027         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62028         or for string.h.
62029         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62030         stdlib.h.
62031         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62032         C headers.
62033         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62034         string.h.
62035         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62036         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62037         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62038         or for string.h.
62039         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62040         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62041         C headers.
62042         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62043         memcpy.
62044         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62045         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62046         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62047         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62048         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62049         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62050         string.h, free.
62051         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62052         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62053         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62054         C headers, or for string.h.
62055         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62056         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62057         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62058         headers, memory.h, stdlib.h, string.h, strings.h.
62059         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62060         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62061         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62062         strchr.
62063         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62064         headers, memory.h, string.h.
62065         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62066         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62067         free.
62068         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62069         headers.
62070         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62071         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62072         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62073         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62074         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62075
62076 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62077
62078         More K&R removal.
62079
62080         * lib/acosl.c (main): Use a prototype.
62081         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62082         tanl.c: Likewise.
62083
62084         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62085
62086         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62087         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62088         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62089         with a prototype.
62090         * lib/getopt.c (const): Remove macro.
62091         Include <string.h> unconditionally.
62092         (my_index): Remove; all uses changed to strchr.
62093         (strlen): Remove decl.
62094         (exchange): Remove forward decl; no longer needed.
62095         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62096         Define with prototype.
62097         * lib/getopt1.c (const): Remove macro.
62098         (getopt_long, getopt_long_only, main): Define with prototype.
62099
62100         * lib/getugroups.c: Include <string.h> unconditionally.
62101
62102         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62103         (getusershell, setusershell, endusershell, readname, main):
62104         Define with prototypes.
62105
62106         * lib/group-member.c: Include group-member.h first.
62107         Include <stdlib.h> unconditionally.
62108
62109         * lib/hard-locale.c: Include hard-locale.h first.
62110         Include <stdlib.h>, <string.h> unconditionally.
62111
62112         * lib/hash.c (free, malloc): Remove decls.
62113         Include <stdlib.h> unconditionally.
62114
62115         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62116         (getenv): Do not declare.
62117
62118         * lib/idcache.c: Include <string.h> unconditionally.
62119
62120         * lib/long-options.c: Include long-options.h first, to test interface.
62121         Include <stdlib.h> unconditionally.
62122
62123         * lib/makepath.c: Include makepath.h first, to test interface.
62124         Include <stdlib.h> and <string.h> unconditionally.
62125
62126         * lib/linebuffer.c: Include <stdlib.h>.
62127         (free): Remove decl.
62128
62129         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62130         stddef.h. rpl_malloc returns void *, not char *.
62131         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62132         prototype.
62133
62134         * lib/md5.h: Include <limits.h> unconditionally.
62135         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62136         (__P): Remove; all uses removed.
62137         * lib/md5.c: Include "md5.h" first.
62138         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62139         md5_buffer, md5_process_bytes, md5_process_block):
62140         Define with prototypes.
62141         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62142         * lib/sha.c: Include "sha.h" first.
62143         Include <stdlib.h>, <string.h> unconditionally.
62144
62145         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62146         * lib/memcmp.c (__ptr_t): Likewise.
62147         * lib/memrchr.c (__ptr_t): Likewise.
62148         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62149         Include <string.h> unconditionally.
62150         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62151         * lib/memchr.c: Include <stdlib.h> unconditionally.
62152         * lib/memchr.c (LONG_MAX): Remove.
62153         * lib/memrchr.c (LONG_MAX): Likewise.
62154         * lib/memchr.c (__memchr): Define via a prototype.
62155         * lib/memrchr.c (__memrchr): Likewise.
62156         * lib/memcmp.c (__P): Remove, and remove all uses.
62157         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62158         Remove forward decls; no longer needed.
62159         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62160         Use types required by C89 in prototype.
62161
62162         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62163         * lib/savedir.c: Likewise.
62164         * lib/mkdir.c (free): Remove decl.
62165         * lib/rmdir.c (rmdir): Define with a prototype.
62166         * lib/savedir.c: Include savedir.h first, to test interface.
62167
62168         * lib/mktime.c (STDC_HEADERS): Remove.
62169         Include <stdlib.h>, <string.h> unconditionally.
62170
62171         * lib/modechange.c: Include <stdlib.h> unconditionally.
62172         (malloc): Remove decl.
62173
62174         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62175         (free): Remove decl.
62176
62177         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62178         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62179         (This type really should be intptr_t, but that's a C99ism.)
62180         (_obstack_memcpy): Remove: all uses changed to memcpy.
62181         Include <string.h> unconditionally.
62182         (struct obstack): Assume __STDC__ for types of members
62183         chunkfun, freefun, extra_arg.
62184         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62185         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62186         obstack_begin, obstack_specify_allocation,
62187         obstack_specify_allocation_with_arg, obstack_chunkfun,
62188         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62189         Remove unprototyped decls and the macros that use them.
62190         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62191         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62192         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62193         (defined __STDC__ && __STDC__)]:
62194         Remove nonprototyped code.
62195         Include <stdlib.h> unconditionally.
62196         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62197         _obstack_allocated_p, _obstack_free, obstack_free,
62198         _obstack_memory_used, print_and_abort):
62199         Define using prototypes.
62200         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62201         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62202         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62203         obstack_next_free, obstack_object_size, obstack_room) [0]:
62204         Remove unused, unprototyped code.
62205
62206         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62207
62208         * lib/physmem.c (physmem_total, physmem_available, main): Define
62209         with prototypes.
62210
62211         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62212         (main): Define with a prototype.
62213
62214         * lib/posixver.c (getenv): Remove decl.
62215
62216         * lib/putenv.c (malloc): Returns void *, not char *.
62217         Include <string.h> unconditionally.
62218         (strchr, memcpy, NULL): Do not define.
62219
62220         * lib/readtokens.c: Include readtokens.h first, to test interface.
62221         Include <stdlib.h>, <string.h> unconditionally.
62222         (init_tokenbuffer): Define with a prototype.
62223
62224         * lib/regex.c (PARAMS): Remove.  All uses removed.
62225         All uses of _RE_ARGS removed, too.
62226         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62227         unconditionally.
62228         (bzero): Assume memset exists.
62229         (memcmp, memcpy, NULL): Remove.
62230         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62231         char, or assignments to local vars of type signed char.
62232         (init_syntax_once, PREFIX(extract_number_and_incr),
62233         PREFIX(print_partial_compiled_pattern),
62234         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62235         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62236         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62237         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62238         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62239         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62240         wcs_compile_range, byte_compile_range, truncate_wchar,
62241         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62242         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62243         count_mbs_length, wcs_re_match_2_internal,
62244         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62245         PREFIX(alt_match_null_string_p),
62246         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62247         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62248         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62249         now-unnecessary declaration, if any.
62250         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62251         regcomp, regexec):
62252         Remove now-unnecessary casts among pointer types.
62253         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62254
62255         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62256         (free): Remove decl.
62257
62258         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62259
62260         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62261         (free): Remove decl.
62262
62263         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62264         * lib/xgetcwd.c: Likewise.
62265
62266         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62267         (free): Remove decl.
62268
62269         * lib/strchrnul.c (strchrnul): Define with a prototype.
62270         Fix bug: c_in was not converted to char before searching.
62271
62272         The following changes are not K&R related:
62273
62274         * lib/group-member.h: Include <sys/types.h>, so that this file is
62275         self-contained.
62276         * lib/makepath.h: Likewise.
62277
62278         * lib/getusershell.c (readname, default_index, line_size, readname):
62279         Use size_t, not int, for sizes.
62280         (readname): If the size overflows, report an error instead of
62281         looping forever.
62282
62283 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62284
62285         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62286         libc.
62287
62288 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62289
62290         * README: New section: portability guidelines.
62291
62292 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62293
62294         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62295         C89 spec.
62296
62297 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62298
62299         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62300
62301 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62302
62303         Assume C89 or better; remove K&R cruft.
62304         A few of these changes were first proposed by Derek Robert Price
62305         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62306
62307         * lib/addext.c: Include <string.h> unconditionally.
62308         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62309         Don't declare getenv or malloc.
62310
62311         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62312         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62313         (NULL): Remove.
62314         (find_stack_direction, alloca): Use prototypes.
62315
62316         * lib/atexit.c (atexit): Define using a prototype.
62317
62318         * lib/basename.c, dirname.c, stripslash.c:
62319         Include <string.h> unconditionally.
62320
62321         * lib/bcopy.c: Include <stddef.h>.
62322         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62323
62324         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62325
62326         * lib/error.h (error, error_at_line, error_print_progname)
62327         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62328         * lib/error.c: Include error.h first, to check interface.
62329         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62330         (VA_START): Remove; all uses changeed to va_start.
62331         (exit, strerror): Remove decls.
62332         (error_print_progname): Prototype uncondionally.
62333         Don't include <errno.h>; no longer needed.
62334         (private_strerror): Remove.
62335         (error_tail): Always define.
62336         (error, error_at_line): Assume C89 or better; always use prototypes.
62337         * lib/fatal.c: Include "fatal.h" first, to test interface.
62338         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62339         (VA_START): Remove; all uses changed to va_start.
62340         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62341         this case.
62342         (exit): Remove decl.
62343         (fatal): Prototype unconditionally.  Assume va_start works.
62344         Abort at end, to pacify gcc.
62345
62346         * lib/euidaccess.c (main): Define with a prototype.
62347
62348         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62349
62350         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62351
62352         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62353         prototypes.
62354         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62355         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62356         (getenv): Remove decl.
62357         (fnmatch): Define using a prototype.
62358         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62359         (FCT): Define using a prototype.
62360
62361         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62362
62363         * lib/gethostname.c: Include <stddef.h>.
62364         (gethostname): Define with prototype.  Length is size_t, not int.
62365
62366 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62367
62368         Assume C89 or better; remove K&R cruft.
62369         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62370         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62371         string.h, getenv, malloc.
62372         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62373         headers.
62374         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62375         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62376         do not check for strerror.
62377         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62378         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62379         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62380         do not check for doprnt or vprintf.
62381         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62382         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62383
62384 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62385
62386         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62387         getversion.c should have been removed then, but was accidentally
62388         preserved.
62389
62390         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62391         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62392
62393 2003-09-08  Karl Berry  <karl@gnu.org>
62394
62395         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62396                 config, forget about prep.
62397
62398         * config/depcomp, missing: update from automake.
62399
62400 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62401
62402         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62403         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62404
62405 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62406
62407         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62408         copy_tm_result.  Bug reported by Simon Josefsson in
62409         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62410
62411 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62412
62413         * m4/time_r.m4: New file.
62414         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62415         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62416         is. Check for timegm declaration.
62417         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62418         Do not check for gmtime_r.
62419         Replace mktime if __mktime_internal does not exist and if mktime
62420         hasn't been replaced already.
62421
62422 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62423
62424         * lib/time_r.c, lib/time_r.h: New files.
62425
62426         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62427         __localtime_r.
62428         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62429         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62430
62431         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62432         __gmtime_r.
62433         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62434         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62435         Include <time_r.h>.
62436
62437         * lib/timegm.c: Switch to glibc implementation, with the following
62438         changes:
62439         [defined HAVE_CONFIG_H]: Include <config.h>.
62440         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62441         (__mktime_internal) [!defined _LIBC]: New decl.
62442         (__gmtime_r) [!defined _LIBC]: New macro and function.
62443         (timegm): Use a prototype, since gnulib assumes C89.
62444         Do not bother declaring tmp to be const, as it's not really usefu.
62445         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62446         (timegm): Declare only if HAVE_DECL_TIMEGM.
62447
62448 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62449
62450         * MODULES.html.sh (func_all_modules): Add time_r.
62451         * modules/time_r: New file.
62452         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62453         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62454
62455 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62456
62457         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62458         Bug reported by Lute Kamstra in
62459         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62460
62461         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62462         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62463         course with correspondingly smaller numbers for tomorrow and
62464         yesterday.  From Tadayoshi Funaba.  Originally installed into
62465         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62466         coreutils merge?).
62467
62468 2003-08-31  Simon Josefsson  <jas@extundo.com>
62469
62470         * modules/timegm: New file.
62471         * MODULES.html.sh (func_all_modules): Add timegm.
62472
62473 2003-08-31  Simon Josefsson  <jas@extundo.com>
62474
62475         * m4/timegm.m4: New file.
62476
62477 2003-08-31  Simon Josefsson  <jas@extundo.com>
62478
62479         * lib/timegm.h: New file.
62480         * lib/timegm.c: New file.  Based on
62481         wget-1.8.2/src/http.c:mktime_from_utc.
62482
62483 2003-08-31  Karl Berry  <karl@gnu.org>
62484
62485         * lib/argp.h: update from libc.
62486
62487 2003-08-28  Bruno Haible  <bruno@clisp.org>
62488
62489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62490         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62491         followed by '#define fnmatch fnmatch_posix' gives an error.
62492
62493 2003-08-28  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62496         warning on QNX, which defines O_BINARY to 000000.
62497
62498 2003-08-27  Jim Meyering  <jim@meyering.net>
62499
62500         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62501         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62502         would fail after 32.  Reported by Danny Levinson.  Details here:
62503         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62504
62505 2003-08-24  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62508         MSVC7 <stdio.h> is included later.
62509
62510 2003-08-22  Simon Josefsson  <jas@extundo.com>
62511
62512         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62513
62514 2003-08-20  Karl Berry  <karl@gnu.org>
62515
62516         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62517
62518 2003-08-20  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/progname: New file.
62521         * MODULES.html.sh (func_all_modules): Add progname.
62522
62523 2003-08-20  Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/progname.h: New file, from GNU gettext.
62526         * lib/progname.c: New file, from GNU gettext.
62527         * lib/progreloc.c: New file, from GNU gettext.
62528
62529 2003-08-19  Jim Meyering  <jim@meyering.net>
62530
62531         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62532         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62533
62534 2003-08-19  Bruno Haible  <bruno@clisp.org>
62535
62536         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62537         more.
62538
62539 2003-08-19  Bruno Haible  <bruno@clisp.org>
62540
62541         * lib/xstrdup.c: Assume <string.h> exists.
62542
62543 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62544
62545         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62546         in makefile rules.
62547
62548 2003-08-18  Jim Meyering  <jim@meyering.net>
62549
62550         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62551         * m4/lib-ld.m4: Likewise.
62552
62553 2003-08-18  Jim Meyering  <jim@meyering.net>
62554
62555         * lib/setenv.h: Indent nested cpp directive.
62556         * lib/vasnprintf.c: Remove trailing blanks.
62557
62558 2003-08-17  Simon Josefsson  <jas@extundo.com>
62559
62560         * modules/xstrndup: New file.
62561         * MODULES.html.sh (func_all_modules): Add xstrndup.
62562
62563 2003-08-17  Simon Josefsson  <jas@extundo.com>
62564
62565         * modules/argp: Fix autoconf macro name. Add more dependencies.
62566
62567 2003-08-17  Simon Josefsson  <jas@extundo.com>
62568
62569         * m4/xstrndup.m4: New file.
62570
62571 2003-08-17  Simon Josefsson  <jas@extundo.com>
62572
62573         * m4/argp.m4: New file.
62574
62575 2003-08-17  Simon Josefsson  <jas@extundo.com>
62576             Bruno Haible  <bruno@clisp.org>
62577
62578         * lib/xstrndup.h: New file.
62579         * lib/xstrndup.c: New file.
62580
62581 2003-08-17  Bruno Haible  <bruno@clisp.org>
62582
62583         * modules/strndup (Files, Include): Add lib/strndup.h.
62584
62585 2003-08-17  Bruno Haible  <bruno@clisp.org>
62586
62587         * modules/euidaccess (Files): Add lib/euidaccess.h.
62588
62589 2003-08-17  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/strndup.h: New file.
62592
62593 2003-08-17  Bruno Haible  <bruno@clisp.org>
62594
62595         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62596         like AC_GNU_SOURCE.
62597         * modules/extensions (configure.ac): Comment out the invocation of
62598         gl_USE_SYSTEM_EXTENSIONS.
62599
62600 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62601
62602         Merges from coreutils, etc.
62603         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62604         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62605         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62606         fixing a typo.
62607         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62608         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62609
62610 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62611
62612         Document merge from coreutils.
62613         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62614         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62615         * modules/utime: Add m4/utimes-null.m4.
62616
62617 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62618
62619         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62620         space, undoing this 2003-08-12 change:
62621         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62622
62623 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62624
62625         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62626         strtoul.c from libc, undoing this 2003-08-12 change:
62627         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62628
62629 2003-08-16  Jim Meyering  <jim@meyering.net>
62630
62631         Merges from coreutils.
62632         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62633         prefix.  Adjust cache variables similarly.  Create 500 rather than
62634         just 300 files, to exercise bug on Darwin6.5, too.
62635         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62636         $missing_dir.
62637         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62638         AM_SYS_POSIX_TERMIOS.
62639         Reported by mkc@mathdogs.com.
62640         Also change use of $am_cv_sys_posix_termios
62641         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62642         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62643         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62644         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62645         in /proc/mounts until it finds one with matching device number.  This
62646         is unnecessary when the FILE argument *is* a mount point.  No stat call
62647         is necessary in that case.  So, disable the statvfs-testing code on
62648         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62649         as RedHat bug# 84846.
62650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62651         to 1MB, so as not to render systems with no stack size limit (e.g.,
62652         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62653         Include <unistd.h>.  On some systems,
62654         it is required for the definition of _SC_PAGESIZE.
62655
62656 2003-08-16  Jim Meyering  <jim@meyering.net>
62657
62658         Merge from coreutils.
62659         * lib/xstrtoimax.c: #else #if -> #elif.
62660         * lib/xstrtoumax.c: Likewise.
62661
62662 2003-08-16  Jim Meyering  <jim@meyering.net>
62663
62664         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62665         * m4/utimes.m4: Removed.
62666         * m4/utimes-null.m4: Renamed from utimes.m4.
62667
62668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62669         to 1MB, so as not to render systems with no stack size limit (e.g.,
62670         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62671         Include <unistd.h>.  On some systems,
62672         it is required for the definition of _SC_PAGESIZE.
62673
62674 2003-08-16  Jim Meyering  <jim@meyering.net>
62675         and Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         Merges from coreutils, etc.
62678
62679         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62680         using the latest version from cvs.  This avoids problems with #line
62681         directives using a vendor (Sun) compiler.
62682         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62683         Don't set GETGROUPS_LIB here; now it's
62684         done via getgroups.m4's wrapper function.
62685         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62686         rather than just in sh-util/configure.in, so that the
62687         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62688         same.
62689         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62690         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62691         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62692         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62693         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62694         Remove code that is now done by the newly-required macros.
62695         Append $(EXEEXT) to DF_PROG.
62696         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62697         Do not invoke or require the following here,
62698         since prereq.m4 or some gnulib .m4 now does this for us:
62699         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62700         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62701         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62702         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62703         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62704         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62705         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62706         AC_FUNC_OBSTACK.
62707         Do not replace the following functions, as this is now the job
62708         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62709         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62710         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62711         atexit getpass, strdup, getpagesize.
62712         Replace 'raise'.
62713         Do not check for the following functions, as this is now the job
62714         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62715         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62716         setregid.
62717         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62718         Check for sys/sysctl.h.
62719         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62720         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62721         of checking for ssize_t ourselves.
62722
62723         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62724         Require every macro that gnulib/modules/* suggests for us.
62725         (jm_PREREQ_ADDEXT): New macro.
62726         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62727         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62728
62729         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62730         (gl_PHYSMEM): Use it.
62731         Also check for `table' function.
62732         Check for new headers and functions.
62733         Add check for sys/sysmp.h.
62734         With suggestions from Kaveh Ghazi.
62735         Ignore headers that are present but cannot be compiled.  This
62736         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62737         C 5.4.
62738
62739 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62740
62741         Document merge from coreutils.
62742         * modules/userspec: Depend on posixver.
62743         * modules/strftime: Depend on tzset.
62744
62745 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62746
62747         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62748         rather than tab, after '#' in shell-script copyright notices.
62749         Suggested by Bruno Haible.
62750
62751 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62752
62753         * config/srclist-update: Use three spaces, rather than tab, after '#'
62754         in shell-script copyright notices.  Suggested by Bruno Haible.
62755         Remove unnecessary parenthesization in regular expression.
62756
62757 2003-08-15  Jim Meyering  <jim@meyering.net>
62758
62759         Merge from coreutils.
62760         * lib/xgethostname.c: Include <stdlib.h>.
62761         (xghostname): Don't exit for anything other than memory-related
62762         failure; just return NULL.
62763         * lib/userspec.c: Include "posixver.h".
62764         (parse_user_spec): Accept `.' as a separator only
62765         in pre-POSIX-200112 mode.
62766         * lib/strtoimax.c: Use #elif rather than #else #if.
62767         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62768         Remove function, now that we can rely on a working tzset function.
62769         [!_LIBC]: Ensure that the required autoconf test has been run.
62770         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62771         Use underlying_strftime for %r.
62772         * lib/sha.c: Merge in some clean-up and optimization changes from
62773         glibc.
62774         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62775         Ensure that it is a multiple of 64.
62776         Rearrange loop exit tests so as to avoid performing an
62777         additional fread after encountering an error or EOF.
62778         * lib/realloc.c: Update copyright date.
62779
62780 2003-08-15  Jim Meyering  <jim@meyering.net>
62781         and Paul Eggert  <eggert@twinsun.com>
62782
62783         Merge from coreutils.
62784         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62785         member but strut utmpx does not.  Needed for AIX 4.3.3.
62786         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62787
62788 2003-08-15  Jim Meyering  <jim@meyering.net>
62789         and Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         Merges from coreutils, etc.
62792         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62793         Require gl_FUNC_TZSET_CLOBBER.
62794         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62795         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62796         members.
62797
62798 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62799
62800         Help the merge from coreutils.
62801         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62802         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62803         * m4/tzset.m4: Use it too.
62804
62805 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62806
62807         * modules/tzset: New file.
62808
62809 2003-08-14  Jim Meyering  <jim@meyering.net>
62810
62811         Merges from coreutils.
62812         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62813         variable names, rather than @FNMATCH_H@.
62814         * modules/alloca: Likewise for $(ALLOCA_H).
62815
62816         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62817         the three copies of the literal target, `fnmatch.h'.
62818         * modules/alloca (alloca.h): Likewise.
62819
62820 2003-08-14  Jim Meyering  <jim@meyering.net>
62821
62822         Merge from coreutils.
62823         * m4/tzset.m4: New file.
62824         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62825         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62826         otherwise, AIX 5.1 systems would end up using the latter.
62827         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62828         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62829         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62830         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62831
62832 2003-08-14  Jim Meyering  <jim@meyering.net>
62833
62834         Merge from coreutils.
62835         * lib/obstack.h: Whitespace changes.
62836         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62837         and xcalloc return values.
62838         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62839         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62840         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62841         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62842         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62843         error from mntctl.
62844         Use mntctl's return value to drive the entry-processing loop, since
62845         we can't rely on the value of the vmt_length member in the last
62846         entry.  On some systems doing so could result in exhausting
62847         virtual memory.  Based in part on a patch from Mike Jetzer.
62848
62849 2003-08-14  Jim Meyering  <jim@meyering.net>
62850         and Paul Eggert  <eggert@twinsun.com>
62851
62852         Merges from coreutils, plus other fixes.
62853         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62854         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62855         for credits and details.  Thanks to Kaveh Ghazi for helping
62856         to keep these files in sync.
62857         (ARRAY_SIZE): Define it.
62858         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62859         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62860         (memcasecmp): Don't assume size_t fits in unsigned int.
62861         Remove casts and duplicate code.
62862         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62863         (memcpy): Remove definition.
62864         Merge in some clean-up and optimization changes from glibc.
62865         [BLOCKSIZE]: Move definition to top of file.
62866         Ensure that it is a multiple of 64.
62867         Rearrange loop exit tests so as to avoid performing an
62868         additional fread after encountering an error or EOF.
62869         * lib/md5.h (md5_uintptr): Define.
62870         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62871         return to the initial working directory.  Preserve errno
62872         for caller.
62873         * lib/idcache.c: Include "xalloc.h".
62874         (xmalloc, xrealloc): Remove decls.
62875         (getuser): Remove casts no longer required in C89.
62876         * lib/human.c: Include stdio.h, for sprintf.
62877         * lib/group-member.c: Include "xalloc.h".
62878         (xmalloc, xrealloc): Remove decls.
62879         (get_group_info): Remove casts no longer required in C89.
62880         * lib/getusershell.c (readname): Remove casts no longer required in
62881         C89.
62882         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62883         * lib/getline.c: Whitespace fix, from coreutils.
62884
62885 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62886
62887         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62888         Check for isascii.
62889
62890         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62891         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62892         Undo previous (whitespace-only) change.
62893
62894 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62895
62896         * lib/exclude.c: Include <ctype.h>
62897         (IN_CTYPE_DOMAIN): New macro.
62898         (is_space): New fn.
62899         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62900         and empty lines.
62901
62902         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62903         Undo previous (whitespace-only) change.
62904
62905 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62906
62907         * config/srclist-update: Change update back to the old behavior,
62908         leaving whitespace alone.  Use one 'sed' command rather than a
62909         pipeline.
62910         (fixlicense): Now a variable, not a function.
62911         (remove_trailing_blanks): Remove.
62912         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62913         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62914         Undo previous (whitespace-only) change.
62915
62916 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62917
62918         Merge from coreutils.
62919         * modules/euidaccess: Add lib_SOURCES, include for new
62920         file euidaccess.h
62921
62922 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62923
62924         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62925         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62926         Normalize leading white space and remove trailing white space.
62927
62928         Merge from coreutils
62929         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
62930
62931         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
62932         0.12.1.  These files are now being upgraded automatically by
62933         ../config/srclist-update.
62934
62935 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62936
62937         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62938         Normalize leading white space and remove trailing white space.
62939         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
62940         notice, as per ../config/srclist-update.
62941
62942         Merge from coreutils.
62943         * lib/euidaccess.h: New file.
62944         * lib/euidaccess.c: Include it.
62945         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
62946         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
62947         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
62948
62949 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62950
62951         * config/srclist-update: Add copyright notice.
62952         (remove_id_lines, remove_trailing_blanks): New constants.
62953         (fixfile): Use them to normalize spacing a bit in copied files.
62954         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62955         Normalize leading white space and remove trailing white space.
62956
62957         * config/texinfo.tex: Sync with texinfo.
62958
62959         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
62960         strtoul.c from libc, to merge coreutils whitespace changes.
62961
62962         * config/srclist.txt: Get the following m4 files from gettext:
62963         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
62964         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
62965         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
62966         wint_t.m4.
62967
62968 2003-08-12  Karl Berry  <karl@gnu.org>
62969
62970         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
62971         been made.
62972
62973 2003-08-11  Paul Eggert  <eggert@twinsun.com>
62974
62975         * modules/gnu-source, m4/gnu-source.m4:
62976         Remove; we're assuming Autoconf 2.54 or later now.
62977         Suggested by Bruno Haible.
62978         * MODULES.html.sh (func_all_modules): Remove gnu-source.
62979
62980 2003-08-11  Bruno Haible  <bruno@clisp.org>
62981
62982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
62983
62984 2003-08-11  Bruno Haible  <bruno@clisp.org>
62985
62986         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
62987         (vasnprintf): Use it instead of wcslen.
62988
62989 2003-08-11  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
62992         value to ensure that _Bool promotes to int. Use #define for _Bool when
62993         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
62994
62995 2003-08-10  Karl Berry  <karl@gnu.org>
62996
62997         * lib/regex.h: update from libc (whitespace fix).
62998
62999 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63000
63001         Merge some files from coreutils.  These changes were
63002         originally made by Jim Meyering.
63003         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63004         many older Unixes require this.
63005         * lib/alloca.c (alloca): Remove cast to argument of free;
63006         no longer needed in C89.
63007         * lib/alloca_.h, regex.h: Fix white space to match
63008         what GNU indent does.
63009
63010 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63011
63012         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63013         apparently Emacs's Unicode mode got confused before my 2003-08-05
63014         checkin.
63015
63016 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63017
63018         * m4/extensions.m4: New file.
63019         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63020         Require gl_USE_SYSTEM_EXTENSIONS.
63021         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63022         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63023
63024 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63025
63026         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63027         * modules/extensions, modules/gnu-source: New files.
63028         * modules/timespec, modules/unlocked-io: Depend on extensions.
63029
63030 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63031
63032         * modules/restrict: New file.
63033         * MODULES.html.sh (func_all_modules): Add restrict.
63034         * modules/regex: Depend on restrict.
63035
63036 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63037
63038         * m4/restrict.m4: New file.
63039         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63040
63041 2003-08-07  Bruno Haible  <bruno@clisp.org>
63042
63043         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63044         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63045
63046 2003-08-07  Bruno Haible  <bruno@clisp.org>
63047
63048         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63049         makes the module 'getndelim2' compatible with the module 'getline'.
63050
63051 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63052
63053         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63054         byte with "\201" to avoid glitches when editing that source file
63055         with multi-gnome-terminal.
63056
63057 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63058
63059         * lib/bumpalloc.h: Remove.
63060
63061 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63062
63063         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63064         * modules/bumpalloc: Remove.
63065
63066 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63067
63068         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63069         GNU coding style.
63070
63071         Merge from coreutils.
63072         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63073         1. From glibc.
63074         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63075         from Karl Berry, implemented by Jim Meyering.
63076         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63077         from Dmitry V. Levin.
63078         Remove anachronistic cast of xrealloc.
63079         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63080         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63081         type. Otherwise, it wouldn't compile with at least /bin/cc on
63082         ymp-cray-unicos9.0.2.X.
63083         Combine two mostly-identical uses of alloca into one.
63084         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63085
63086 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63087
63088         [From Emacs.]
63089
63090         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63091         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63092         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63093         obsolete NLIST_NAME_UNION.
63094         [__GNU__]: Undef BSD and FSCALE.
63095         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63096
63097 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63098
63099         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63100         an enum type, so that it's guaranteed to promote to int.  See:
63101         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63102
63103 2003-08-03  Karl Berry  <karl@gnu.org>
63104
63105         * config/depcomp: update from automake.
63106
63107 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63108
63109         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63110         (strerror): Don't assume that a printable int fits in 14 bytes.
63111
63112 2003-07-31  Bruno Haible  <bruno@clisp.org>
63113
63114         * modules/getpass-gnu: New file.
63115         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63116
63117 2003-07-31  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63120
63121 2003-07-24  Karl Berry  <karl@gnu.org>
63122
63123         * config/missing: update from automake.
63124
63125 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63126             Bruno Haible  <bruno@clisp.org>
63127
63128         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63129         * lib/getline.c (getline, getdelim): Likewise.
63130         Remove _GNU_SOURCE define; now it's defined in config.h through
63131         m4/getline.m4.
63132
63133 2003-07-23  Karl Berry  <karl@gnu.org>
63134
63135         * config/config.sub: update from prep.
63136
63137 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63138
63139         * modules/xalloc (Depends-on): Add exitfail.
63140         * modules/xmemcoll: Likewise.
63141
63142 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63143
63144         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63145         over-parenthesization in macros.
63146
63147         Sync with coreutils.
63148
63149         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63150         required by C99.
63151
63152         Use `exit_failure' for xalloc and xmemcoll instead of their own
63153         private exit-failure variables.
63154         * lib/xalloc.h (xalloc_exit_failure): Remove.
63155         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63156         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63157         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63158         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63159         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63160
63161 2003-07-20  Jim Meyering  <jim@meyering.net>
63162
63163         * modules/closeout (Depends-on): Add exitfail.
63164         Suggestion from Bruno Haible.
63165
63166 2003-07-19  Karl Berry  <karl@gnu.org>
63167
63168         * config/config.sub: update from prep.
63169
63170 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63171
63172         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63173         Remove.
63174         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63175         to test that it can stand by itself.  Include "exitfail.h".
63176         Clients should set exit_failure instead.
63177         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63178
63179 2003-07-18  Bruno Haible  <bruno@clisp.org>
63180
63181         * modules/getndelim2: New file.
63182         * modules/getline: Share files with module getndelim2.
63183         * modules/getnline: Depend on getndelim2 instead of sharing files with
63184         it. Add getnline.c to lib_SOURCES.
63185         * MODULES.html.sh (func_all_modules): Add getndelim2.
63186
63187 2003-07-18  Bruno Haible  <bruno@clisp.org>
63188
63189         * m4/getndelim2.m4: New file.
63190         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63191         invoke gl_PREREQ_GETNDELIM2.
63192         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63193         gl_PREREQ_GETNDELIM2.
63194         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63195         gl_GETNDELIM2.
63196
63197 2003-07-18  Bruno Haible  <bruno@clisp.org>
63198
63199         * lib/getndelim2.h: New file.
63200         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63201         getndelim2.h.
63202         (getndelim2): Make non-static. Change return type to ssize_t.
63203         * lib/getline.h: Change argument names.
63204         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63205         * lib/getnline.c: Include getndelim2.h.
63206
63207 2003-07-18  Andreas Schwab  <schwab@suse.de>
63208
63209         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63210
63211 2003-07-17  Karl Berry  <karl@gnu.org>
63212
63213         * config/config.sub: update from prep.
63214
63215 2003-07-17  Bruno Haible  <bruno@clisp.org>
63216
63217         * modules/getnline: New file.
63218         * modules/getline: Add lib/getndelim2.c to source file list.
63219         * MODULES.html.sh (func_all_modules): Add getnline.
63220
63221 2003-07-17  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/getnline.m4: New file.
63224
63225 2003-07-17  Bruno Haible  <bruno@clisp.org>
63226
63227         * m4/Makefile.am.in: Remove file.
63228         * m4/Makefile.am: Remove file.
63229         * m4/Makefile.in: Remove file.
63230
63231 2003-07-17  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/getnline.h: New file.
63234         * lib/getnline.c: New file.
63235         * lib/getndelim2.c: New file, extracted from getline.c.
63236         (getndelim2): Renamed from getdelim2, with added nmax argument.
63237         * lib/getline.c: Include getndelim2.c.
63238         (getdelim2): Moved out to getndelim2.c.
63239         (getline, getdelim): Update.
63240
63241 2003-07-17  Bruno Haible  <bruno@clisp.org>
63242
63243         * lib/Makefile.am: Remove file.
63244         * lib/Makefile.in: Remove file.
63245
63246 2003-07-17  Bruno Haible  <bruno@clisp.org>
63247
63248         * configure.in: Remove file.
63249         * Makefile.in: Remove file.
63250
63251 2003-07-17  Bruno Haible  <bruno@clisp.org>
63252
63253         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63254
63255 2003-07-16  Karl Berry  <karl@gnu.org>
63256
63257         * config/srclist-update: was running fixlicense twice, which caused
63258                 texinfo.tex to be nullified for some reason.  Simplify,
63259                 $gplsrc is no longer needed as far as I can see?
63260
63261 2003-07-16  Jim Meyering  <jim@meyering.net>
63262
63263         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63264
63265 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63266
63267         * config/srclist.txt: Get the following files from gettext-runtime/intl
63268         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63269         ref-del.sin.  From Bruno Haible.
63270         * config/srclist-update (fixfile): Change grep pattern again, since the
63271         previous fix didn't work (there was another trailing $).  Use
63272         '[$]' to escape the $s.
63273
63274 2003-07-15  Karl Berry  <karl@gnu.org>
63275
63276         * lib/vasnprintf.c: update from gettext.
63277
63278 2003-07-15  Karl Berry  <karl@gnu.org>
63279
63280         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63281         gets expanded when surrounded by '$'.
63282
63283 2003-07-15  Jim Meyering  <jim@meyering.net>
63284
63285         * modules/save-cwd: Don't depend on error.  From Derek Price.
63286
63287 2003-07-15  Jim Meyering  <jim@meyering.net>
63288
63289         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63290
63291 2003-07-14  Simon Josefsson  <jas@extundo.com>
63292
63293         * modules/mempcpy: New file.
63294         * MODULES.html.sh (func_all_modules): Add mempcpy.
63295
63296 2003-07-14  Simon Josefsson  <jas@extundo.com>
63297
63298         * m4/mempcpy.m4: New file.
63299
63300 2003-07-14  Simon Josefsson  <jas@extundo.com>
63301
63302         * lib/mempcpy.h: New file.
63303         * lib/mempcpy.c: New file.
63304
63305 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63306
63307         * modules/getdate, modules/posixtm: Depend on mktime.
63308
63309 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63310
63311         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63312         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63313         unicodeio.c, unicodeio.h, unlocked-io.h:
63314         Switch from LGPL to GPL.
63315
63316 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63317
63318         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63319         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63320         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63321         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63322         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63323         updated automatically by ../config/srclist-update.  This changes
63324         their license from LPGL to GPL.
63325
63326 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63327
63328         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63329         assumed to refer to the root of the most recent stable gettext version.
63330         * config/srclistvars.sh: Add defaults for eggert.
63331         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63332         Match "This program" as well as "The program".  This is needed
63333         for gettext.
63334
63335 2003-07-14  Jim Meyering  <jim@meyering.net>
63336
63337         Don't emit diagnostics.  Let callers do that.
63338         * lib/save-cwd.c: Don't include "error.h".
63339         (save_cwd): Don't call error.  Ensure that errno is valid
63340         when returning nonzero.
63341
63342         * lib/save-cwd.h (restore_cwd): Update prototype.
63343         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63344         Simplify.  Don't call error upon failure.  Let callers do that.
63345         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63346         when auditing is enabled.  But don't bother updating the #if.
63347
63348 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63349
63350         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63351         it breaks C++ compilation.
63352         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63353
63354 2003-07-10  Simon Josefsson  <jas@extundo.com>
63355
63356         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63357
63358 2003-07-10  Jim Meyering  <jim@meyering.net>
63359
63360         * m4/clock_time.m4: Remove trailing blank.
63361         * m4/intmax_t.m4: Likewise.
63362
63363 2003-07-10  Jim Meyering  <jim@meyering.net>
63364
63365         * lib/vasnprintf.c: Remove trailing blanks.
63366         Make cpp indentation consistent.
63367
63368 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63369
63370         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63371         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63372         Switch from LGPL to GPL.
63373
63374 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63375
63376         * config/srclist.txt: Sort sublists.  Add
63377         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63378         that differ from gnulib for one reason or another; we'd like this list
63379         to be smaller but for now let's document what we have.
63380
63381 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63382
63383         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63384         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63385         and sweeter "eval x=$x".
63386         * config/srclist.txt: Get lib/argp* from glibc.
63387
63388 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63389
63390         * lib/mktime.c: Fix some boundary cases and remove need for floating
63391         point.
63392
63393         Issue a compile-time diagnostic if time_t is floating point, or if
63394         two's complement arithmetic is not in effect, or if arithmetic
63395         right shift does not propagate the sign.  These assumptions were
63396         all in the original code but they weren't checked.
63397
63398         (TIME_T_MIDPOINT, verify): New macros.
63399         (__isleap): Remove; it has integer overflow problems.
63400         (leapyear): New function, without those problems.
63401         (ydhms_tm_diff): Remove; splitting into two parts.
63402         (ydhms_diff): New function, containing the arithmetic part of
63403         the old ydhms_tm_diff function.  Issue a compile-time
63404         diagnostic if we are not using C99 integer division.
63405         Avoid casts when possible.
63406         (guess_time_tm): New function, containing the checking part of
63407         the old ydhms_tm_diff function.  Return the new value, rather than
63408         the difference between it and the old.  Accept a new argument T
63409         so that *T specifies the old value.  Check for overflow in the result.
63410
63411         (__mktime_internal): Use a time_t offset, not a long int offset.
63412         This undoes the 2003-06-04 change, which is no longer needed now
63413         that we have better overflow checking.
63414         (localtime_offset): Likewise.
63415
63416         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63417         and long are 64-bit but int is only 32-bit.
63418         (ydhms_diff): Use long int to store year1 and yday1.
63419         Issue a compile-time diagnostic if long int is not wide enough.
63420
63421         (__mktime_internal): Use long int to store adjusted year and yday.
63422         Use plain C rather than preprocessor commands, if that doesn't
63423         affect efficiency.
63424         Check for overflow (and try to repair) after each probe
63425         rather than checking only at the very end.  This avoids some bugs
63426         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63427         does not equal GMT offset at maximum time).
63428         Use integer to check for overflow rather than floating point; this
63429         is more portable to non-IEEE hosts, and is a tad faster.
63430         When we detect that we are oscillating between two values,
63431         don't check whether tm_isdst has the requested value, since
63432         we already know the answer.  When tm_isdst has the wrong value,
63433         use a different heuristic to find the right one, based on the
63434         extreme values actually observed in practice in tz2003a,
63435         rather than the (overly optimistic) "previous 3 calendar quarters".
63436
63437         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63438         "T const" to accommodate glibc style.
63439         (check_result): Use less-confusing report format.  "long" -> "long int.
63440         (main): Likewise.
63441         Don't loop if the iteration overflows time_t.
63442         Allow a negative step in the iteration.
63443
63444 2003-07-06  Karl Berry  <karl@gnu.org>
63445
63446         * config/depcomp: update from automake.
63447         * config/config.sub: update from prep.
63448
63449 2003-07-03  Karl Berry  <karl@gnu.org>
63450
63451         * config/config.guess: update from prep.
63452
63453 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63454
63455         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63456         xreadlink.c now includes it unconditionally.
63457
63458 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63459
63460         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63461         having it depend on HAVE_SYS_TYPES_H.
63462
63463 2003-07-01  Bruno Haible  <bruno@clisp.org>
63464
63465         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63466         <sys/types.h> should be sufficient.
63467         Reported by Paul Eggert.
63468
63469 2003-06-26  Karl Berry  <karl@gnu.org>
63470
63471         * config/depcomp: update from automake.
63472
63473 2003-06-26  Bruno Haible  <bruno@clisp.org>
63474
63475         * modules/human: Depend on module stdbool.
63476
63477 2003-06-25  Bruno Haible  <bruno@clisp.org>
63478
63479         * modules/readlink: New file.
63480         * modules/xreadlink: Depend on it.
63481         * MODULES.html.sh (func_all_modules): Add readlink.
63482
63483 2003-06-25  Bruno Haible  <bruno@clisp.org>
63484
63485         * m4/readlink.m4: New file.
63486
63487 2003-06-25  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/readlink.c: New file.
63490
63491 2003-06-22  Karl Berry  <karl@gnu.org>
63492
63493         * config/srclist.txt: update mkinstalldirs from automake.
63494         * config/mkinstalldirs: update.
63495
63496 2003-06-22  Bruno Haible  <bruno@clisp.org>
63497
63498         Portability to mingw32.
63499         * m4/ssize_t.m4: New file, from GNU gettext.
63500         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63501         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63502
63503 2003-06-22  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/safe-read: Add m4/ssize_t.m4.
63506         * modules/xreadlink: Add m4/ssize_t.m4.
63507
63508 2003-06-20  Bruno Haible  <bruno@clisp.org>
63509
63510         Assume C89, so PARAMS isn't needed.
63511         * lib/unicodeio.h (PARAMS): Remove.
63512         * lib/unicodeio.c: Don't use PARAMS.
63513
63514 2003-06-18  Karl Berry  <karl@gnu.org>
63515
63516         * config/config.{guess,sub}: update from prep.
63517
63518 2003-06-18  Jim Meyering  <jim@meyering.net>
63519
63520         Merge changes from coreutils.
63521         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63522         Remove explicit declarations of xmalloc and realloc.
63523         Include xalloc.h.
63524         (read_utmp): Remove anachronistic cast of xmalloc.
63525
63526 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63527
63528         Assume C89, so PARAMS isn't needed.
63529         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63530         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63531         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63532         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63533         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63534         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63535         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63536         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63537         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63538         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63539         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63540         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63541         no longer needed. Anyway, config.h should always be included before any
63542         other file.
63543
63544 2003-06-11  Simon Josefsson  <jas@extundo.com>
63545
63546         * modules/sysexits: New file.
63547         * MODULES.html.sh (func_all_modules): Add sysexits.
63548
63549 2003-06-11  Simon Josefsson  <jas@extundo.com>
63550
63551         * lib/sysexit_.h: New file.
63552
63553 2003-06-11  Derek Price  <derek@ximbiot.com>
63554
63555         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63556         necessary.
63557
63558 2003-06-11  Bruno Haible  <bruno@clisp.org>
63559
63560         * m4/sysexits.m4: New file.
63561
63562 2003-06-10  Simon Josefsson  <jas@extundo.com>
63563
63564         * lib/argp.h: New file, from glibc.
63565         * lib/argp-ba.c: New file, from glibc.
63566         * lib/argp-eexst.c: New file, from glibc.
63567         * lib/argp-fmtstream.c: New file, from glibc.
63568         * lib/argp-fmtstream.h: New file, from glibc.
63569         * lib/argp-fs-xinl.c: New file, from glibc.
63570         * lib/argp-help.c: New file, from glibc.
63571         * lib/argp-namefrob.h: New file, from glibc.
63572         * lib/argp-parse.c: New file, from glibc.
63573         * lib/argp-pv.c: New file, from glibc.
63574         * lib/argp-pvh.c: New file, from glibc.
63575         * lib/argp-xinl.c: New file, from glibc.
63576
63577 2003-06-10  Simon Josefsson  <jas@extundo.com>
63578
63579         * modules/strchrnul: New file.
63580
63581 2003-06-10  Simon Josefsson  <jas@extundo.com>
63582
63583         * modules/argp: New file.
63584
63585 2003-06-10  Simon Josefsson  <jas@extundo.com>
63586
63587         * m4/strchrnul.m4: New file.
63588
63589 2003-06-10  Simon Josefsson  <jas@extundo.com>
63590
63591         * lib/strchrnul.h: New file.
63592         * lib/strchrnul.c: New file.
63593
63594 2003-06-10  Bruno Haible  <bruno@clisp.org>
63595
63596         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63597
63598 2003-06-07  Karl Berry  <karl@gnu.org>
63599
63600         * config/config.{guess,sub}: update from prep.
63601
63602 2003-06-07  Jim Meyering  <jim@meyering.net>
63603
63604         * modules/strtod: Use $(...) notation, not @...@ for
63605         AC_REPLACE'd variables.
63606         * modules/localcharset: Likewise.
63607
63608 2003-06-07  Jim Meyering  <jim@meyering.net>
63609
63610         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63611         in place of my name in the copyright comment.
63612         Remove definition and uses of __P.
63613
63614         From coreutils.
63615         * lib/stat.c: Don't declare xmalloc explicitly.
63616         Instead, include "xalloc.h".
63617         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63618         xrealloc, and xcalloc return values.
63619         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63620         Improve comment.
63621         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63622
63623 2003-06-07  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63626         avoid AC_CONFIG_LINKS.
63627         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63628         fnmatch.h, to avoid AC_CONFIG_LINKS.
63629         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63630
63631 2003-06-07  Bruno Haible  <bruno@clisp.org>
63632
63633         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63634         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63635         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63636         directory.
63637         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63638         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63639         directory.
63640
63641 2003-06-06  Jim Meyering  <jim@meyering.net>
63642
63643         Merge from coreutils.
63644         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63645         Consolidate declarations and initializations of *_base* locals.
63646
63647         Merge from coreutils.
63648         This avoids a core dump on systems without GNU putenv,
63649         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63650         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63651         (unsetenv): New static function, from GNU libc.
63652         (rpl_putenv): Use it.
63653
63654         * lib/modechange.c: Remove trailing blanks.
63655
63656         Merge from coreutils.
63657         * lib/fsusage.c: Remove declaration of statfs.
63658         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63659
63660         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63661
63662 2003-06-06  Jim Meyering  <jim@meyering.net>
63663
63664         * lib/stdbool_.h: Renamed from stdbool.h.in.
63665
63666 2003-06-06  Jim Meyering  <jim@meyering.net>
63667             Bruno Haible  <bruno@clisp.org>
63668
63669         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63670         Adjust Makefile.am snippet not to redirect directly to target.
63671         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63672
63673 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63674
63675         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63676         mismatch, look in future quarters as well as past.  This fixes a
63677         bug when processing fall-backwards gaps immediately after a long
63678         period of daylight-saving time.
63679
63680         * lib/mktime.c: Assume freestanding C89 or better.
63681         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63682         (__P): Remove; not used.
63683         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63684         (mktime, not_equal_tm, print_tm, check_result,
63685         main): Use prototypes.  Use const * where appropriate.
63686         (main): Fix typo in testing code that uncovered by above changes.
63687         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63688
63689 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63690
63691         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63692         locale.h, localeconv.  This merges changes from coreutils.
63693
63694         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63695         It can be removed after the next Autoconf is released.
63696         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63697         needed.
63698
63699 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63700
63701         * lib/mktime.c: Fix Debian bug 177940
63702         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63703         (localtime_offset): Now long int, not time_t, because we want it
63704         to be guaranteed to be signed.  All uses changed.
63705         (__mktime_internal): If overflow would occur when adding offset,
63706         don't add it.
63707
63708         Merge 'human' changes from coreutils.  Rewrite to support
63709         locale-specific notations like thousands separators.
63710         * lib/human.c: Simplify authorship notice.
63711         Include human.h immediately after config.h.
63712         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63713         <limits.h>: Do not include, since human.h does.
63714         (SIZE_MAX, UINTMAX_MAX): New macros.
63715         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63716         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63717         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63718         (power_letter): Renamed from suffixes.
63719         (generate_suffix_backwards): Remove.
63720         (adjust_value): Now takes int style (because of human.h changes)
63721         and long double value (for greater precision on some platforms).
63722         (group_number): New function.
63723         (human_readable): Use it.  Use integer options, not enum.
63724         Put the options before the sizes in the arg list.
63725         Support all the new options.
63726         The old human_readable function has been removed;
63727         use inttostr.h instead.
63728         (human_readable, default_block_size, humblock):
63729         Use uintmax_t, not int, for block sizes.
63730         (human_readable_inexact, block_size_types): Remove.
63731         (block_size_opts): New constant.
63732         (human_options): Renamed from human_block_size, with new signature
63733         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63734         * lib/human.h: Add copyright and authorship notice.
63735         Include <limits.h> and <stdbool.h> unconditionally.
63736         (PARAMS): Remove.  All uses removed.
63737         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63738         (enum human_inexact_style): Remove tag; now a nameless enum.
63739         (human_floor, human_ceiling, human_round_to_even): Now have
63740         values 2, 0, 1 rather than -1, 1, 0.
63741         (human_group_digits, human_suppress_point_zero, human_autoscale,
63742         human_base_1024, human_SI, human_B): New constants.
63743         (human_readable_inexact, human_block_size): Remove.
63744         (human_readable): Size args are now uintmax_t, not int.
63745         (human_options): New decl.
63746
63747         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63748         unnecessary now that we assume C89 or better.  This change
63749         imported from coreutils.
63750
63751         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63752         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63753         in the 2003-05-30 sync from glibc.
63754
63755         .h files should stand alone, but we shouldn't include <sys/types.h>
63756         if we can get away with just <stddef.h>.
63757
63758         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63759         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63760         rather than <sys/types.h>, as we merely need size_t.
63761         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63762         to get size_t.
63763         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63764         Include <stdio.h>, to get FILE.
63765         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63766         memcasecmp.h has included <stddef.h> and all we need is size_t.
63767         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63768         our interface, instead of including <sys/types.h>
63769
63770 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63771
63772         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63773         now, as glibc mktime is buggy on non-glibc systems.
63774
63775 2003-06-03  Karl Berry  <karl@gnu.org>
63776
63777         * config/config.sub: update from prep.
63778
63779 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63780
63781         [from coreutils]
63782         Fix some minor time-related bugs with POSIX time arguments.
63783         Some valid time stamps were being rejected (notably -1, and
63784         time stamps before 1900 on 64-bit hosts).  And some invalid
63785         time stamps were being accepted, e.g. September 31.
63786
63787         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63788         that we can return (time_t) -1 successfully.
63789         * lib/posixtm.c: Likewise.
63790         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63791         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63792         (t): Remove static var.
63793         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63794         of static var.  All uses changed.
63795         (year): Do not reject years before 1900; they can occur with
63796         64-bit time_t.
63797         (posix_time_parse): Do not check for out-of-range components;
63798         that is now the caller's responsibility, since our checks were
63799         only approximations.
63800         (posixtime): Use mktime to check for out-of-range components,
63801         since it knows them exactly.
63802         If mktime returns (time_t) -1, check whether an error actually occurred
63803         by invoking localtime on -1.
63804         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63805         posixtime failures better.
63806         Improve the test data (in comments only).
63807
63808 2003-06-02  Karl Berry  <karl@gnu.org>
63809
63810         * config/mkinstalldirs (version): new variable.
63811         (--version): new option.
63812         (usage): improve message.
63813
63814 2003-05-30  Karl Berry  <karl@gnu.org>
63815
63816         * lib/mktime.c: update from libc.
63817
63818 2003-05-30  Bruno Haible  <bruno@clisp.org>
63819
63820         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63821         * config/config.rpath: Upgrade to gettext-0.12.1.
63822
63823 2003-05-30  Bruno Haible  <bruno@clisp.org>
63824
63825         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63826         * m4/nls.m4: New file, from gettext-0.12.1.
63827         * m4/po.m4: New file, from gettext-0.12.1.
63828         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63829
63830 2003-05-30  Bruno Haible  <bruno@clisp.org>
63831
63832         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63833         * lib/localcharset.h: Likewise.
63834         * lib/localcharset.c: Likewise.
63835
63836 2003-05-29  Karl Berry  <karl@gnu.org>
63837
63838         * config/config.rpath: update from gettext.
63839
63840 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63841
63842         Assume the headers required for C89 freestanding compilers.
63843         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63844         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63845         * m4/human.m4 (gl_HUMAN): Likewise.
63846         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63847         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63848         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63849         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63851         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63852
63853 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63854
63855         Assume the headers required for C89 freestanding compilers.
63856         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63857         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63858         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63859         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63860         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63861         define, since <limits.h> is guaranteed to do that.
63862         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63863         * lib/exclude.c: Include <stdbool.h> unconditionally.
63864         * lib/tempname.c: Include <stddef.h> unconditionally.
63865         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63866         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63867         <stddef.h> does that.
63868         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63869         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63870         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63871         needed.
63872         * lib/xstrtol.c: Likewise.
63873         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63874         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63875
63876         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63877         warnings on some platforms.
63878
63879         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63880         arbitrarily.
63881
63882 2003-05-26  Jim Meyering  <jim@meyering.net>
63883
63884         Merge in a change from coreutils:
63885         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63886         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63887         that condition, rather than `-1' which is slightly misleading.
63888         Change the name of the cache variable to have the gl_ prefix.
63889         Prompted by a patch from Richard Dawe for DJGPP.
63890
63891 2003-05-24  Karl Berry  <karl@gnu.org>
63892
63893         * config/config.guess: update from prep.
63894
63895 2003-05-22  Karl Berry  <karl@gnu.org>
63896
63897         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63898
63899 2003-05-20  Karl Berry  <karl@gnu.org>
63900
63901         * config/config.guess: update from prep.
63902
63903 2003-05-18  Karl Berry  <karl@gnu.org>
63904
63905         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63906         might actually be set by the user.
63907
63908         * config/depcomp, install-sh, mdate-sh: update from automake.
63909
63910 2003-05-17  Bruno Haible  <bruno@clisp.org>
63911
63912         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63913         invalid expansion for AC_EGREP_CPP.
63914         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63915         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63916         Suggested by Akim Demaille <akim@epita.fr> in
63917         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63918
63919 2003-05-12  Jim Meyering  <jim@meyering.net>
63920
63921         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
63922         the space-padded-by-default conversion specifiers, %e, %k, %l.
63923
63924 2003-05-12  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
63927         the string is longer than 4 KB.
63928
63929 2003-05-11  Karl Berry  <karl@gnu.org>
63930
63931         * config/config.{guess,sub}: update from prep.
63932
63933 2003-05-09  Bruno Haible  <bruno@clisp.org>
63934
63935         * modules/error: Add m4/strerror_r.m4 to file list.
63936
63937 2003-05-03  Bruno Haible  <bruno@clisp.org>
63938
63939         Upgrade to Unicode-4.0.
63940         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
63941         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
63942         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
63943         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
63944         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
63945         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
63946         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
63947         Change width of U+E0100..U+E01EF from 1 to 0.
63948
63949 2003-04-25  Jim Meyering  <jim@meyering.net>
63950
63951         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
63952         of type size_t, not int.
63953
63954 2003-04-25  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/copy-file.c: Include <stddef.h>, for size_t.
63957
63958 2003-04-21  Paul Eggert  <eggert@twinsun.com>
63959
63960         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
63961         code which expansion is under static control.  Patch imported from
63962         Akim Demaille's patch to Bison; see
63963         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
63964
63965 2003-04-14  Bruno Haible  <bruno@clisp.org>
63966
63967         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
63968
63969 2003-04-11  Jim Meyering  <jim@meyering.net>
63970
63971         Merge changes from Coreutils.
63972
63973         2003-03-22  Jim Meyering  <jim@meyering.net>
63974
63975         * lib/strftime.c (widen): Cast alloca return value to proper type.
63976
63977         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
63978
63979         From GNU libc.
63980         * lib/strftime.c (my_strftime): Handle very large width
63981         specifications for numeric values correctly.  Improve checks for
63982         overflow.
63983
63984         2003-01-19  Jim Meyering  <jim@meyering.net>
63985
63986         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
63987         definitions.
63988         (nl_get_alt_digit) [! defined my_strftime]: Define.
63989         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
63990         _nl_get_alt_digit and _nl_get_walt_digit.
63991
63992         * lib/strftime.c (my_strftime): Merge in locale-related changes from
63993         libc. These changes have no effect outside of _LIBC.
63994
63995 2003-04-10  Bruno Haible  <bruno@clisp.org>
63996
63997         * modules/findprog: New file.
63998         * MODULES.html.sh (func_all_modules): Add it.
63999
64000 2003-04-10  Bruno Haible  <bruno@clisp.org>
64001
64002         * m4/findprog.m4: New file.
64003         * m4/eaccess.m4: New file.
64004
64005 2003-04-10  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/findprog.h: New file, from GNU gettext.
64008         * lib/findprog.c: New file, from GNU gettext.
64009
64010 2003-04-05  Jim Meyering  <jim@meyering.net>
64011
64012         Merge changes from Coreutils.
64013
64014         * lib/exclude.h (PARAMS): Remove definition and uses.
64015         * lib/exclude.c: Remove uses of `PARAMS'.
64016
64017         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64018         Add test-cases for DOS filenames. Declare program_name.
64019         (main): Set up program_name.  Patch by Rich Dawe.
64020
64021         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64022         error from mntctl.
64023         Use mntctl's return value to drive the entry-processing loop, since
64024         we can't rely on the value of the vmt_length member in the last
64025         entry.  On some systems doing so could result in exhausting
64026         virtual memory.  Based in part on a patch from Mike Jetzer.
64027
64028 2003-04-04  Bruno Haible  <bruno@clisp.org>
64029
64030         * modules/linebreak: New file.
64031         * MODULES.html.sh (func_all_modules): Add it.
64032
64033 2003-04-04  Bruno Haible  <bruno@clisp.org>
64034
64035         * m4/linebreak.m4: New file.
64036
64037 2003-04-04  Bruno Haible  <bruno@clisp.org>
64038
64039         * lib/linebreak.h: New file, from GNU gettext.
64040         * lib/linebreak.c: New file, from GNU gettext with slight
64041         modifications.
64042         * lib/lbrkprop.h: New file, from GNU gettext.
64043
64044 2003-04-03  Bruno Haible  <bruno@clisp.org>
64045
64046         * modules/utf8-ucs4: New file.
64047         * modules/utf16-ucs4: New file.
64048         * modules/ucs4-utf8: New file.
64049         * modules/ucs4-utf16: New file.
64050         * MODULES.html.sh (func_all_modules): Add them.
64051
64052 2003-04-03  Bruno Haible  <bruno@clisp.org>
64053
64054         * m4/utf-ucs4.m4: New file.
64055         * m4/ucs4-utf.m4: New file.
64056
64057 2003-04-03  Bruno Haible  <bruno@clisp.org>
64058
64059         * lib/utf8-ucs4.h: New file, from GNU gettext.
64060         * lib/utf16-ucs4.h: New file, from GNU gettext.
64061         * lib/ucs4-utf8.h: New file, from GNU gettext.
64062         * lib/ucs4-utf16.h: New file, from GNU gettext.
64063
64064 2003-04-02  Bruno Haible  <bruno@clisp.org>
64065
64066         * modules/binary-io: New file.
64067         * MODULES.html.sh (func_all_modules): Add it.
64068
64069 2003-04-02  Bruno Haible  <bruno@clisp.org>
64070
64071         * lib/binary-io.h: New file, from GNU gettext.
64072
64073 2003-04-01  Bruno Haible  <bruno@clisp.org>
64074
64075         * modules/pathname: New file.
64076         * MODULES.html.sh (func_all_modules): Add it.
64077
64078 2003-04-01  Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/pathname.h: New file, from GNU gettext.
64081         * lib/concatpath.c: New file, from GNU gettext.
64082
64083 2003-03-30  Bruno Haible  <bruno@clisp.org>
64084
64085         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64086
64087 2003-03-30  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64090         function chown() doesn't exist.
64091
64092 2003-03-28  Bruno Haible  <bruno@clisp.org>
64093
64094         * modules/copy-file: New file.
64095         * MODULES.html.sh (func_all_modules): Add it.
64096
64097 2003-03-28  Bruno Haible  <bruno@clisp.org>
64098
64099         * m4/copy-file.m4: New file.
64100
64101 2003-03-28  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/copy-file.h: New file, from GNU gettext.
64104         * lib/copy-file.c: New file, from GNU gettext.
64105
64106 2003-03-18  Jim Meyering  <jim@meyering.net>
64107
64108         * lib/quote.c (quote_n): Fix typo in comment.
64109
64110 2003-03-18  Bruno Haible  <bruno@clisp.org>
64111
64112         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64113         checking.
64114         * m4/onceonly_2_57.m4: Likewise.
64115
64116 2003-03-17  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64119         (m4_quote): Remove macro.
64120         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64121
64122 2003-03-14  Jim Meyering  <jim@meyering.net>
64123
64124         Merge changes from Coreutils.
64125         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64126         to be const, in order to avoid warnings.
64127         (obstack_room): Likewise.
64128         (obstack_empty_p): Likewise.
64129
64130 2003-03-14  Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64133         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64134
64135 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64136
64137         Merge changes from Bison.
64138         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64139         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64140         when compiling Bison 1.875's `bitset bset = obstack_alloc
64141         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64142         * lib/hash.c: Include <stdbool.h> unconditionally.
64143
64144 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64145
64146         * m4/onceonly.m4 (m4_quote): New macro.
64147         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64148         Quote AC_FOREACH variable-expansions properly.
64149
64150 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64151
64152         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64153
64154 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64155
64156         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64157         Reported by Bruce Becker; see:
64158         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64159
64160 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64161             Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64164         Reported by John Hughes, see
64165         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64166
64167 2003-02-20  Bruno Haible  <bruno@clisp.org>
64168
64169         * MODULES.html.sh (func_all_modules): Add poll.
64170
64171 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64172
64173         * modules/poll: New file.
64174
64175 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64176
64177         * lib/poll_.h: New file.
64178         * lib/poll.c: New file.
64179
64180 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64181
64182         * m4/poll.m4: New file.
64183
64184 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64185
64186         * modules/mathl: New file.
64187
64188 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64189
64190         * lib/mathl.h: New file.
64191         * lib/acosl.c: New file.
64192         * lib/asinl.c: New file.
64193         * lib/atanl.c: New file.
64194         * lib/ceill.c: New file.
64195         * lib/cosl.c: New file.
64196         * lib/expl.c: New file.
64197         * lib/floorl.c: New file.
64198         * lib/frexpl.c: New file.
64199         * lib/ldexpl.c: New file.
64200         * lib/logl.c: New file.
64201         * lib/sincosl.c: New file.
64202         * lib/sinl.c: New file.
64203         * lib/sqrtl.c: New file.
64204         * lib/tanl.c: New file.
64205         * lib/trigl.c: New file.
64206         * lib/trigl.h: New file.
64207
64208 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64209
64210         * m4/mathl.m4: New file.
64211
64212 2003-02-18  Bruno Haible  <bruno@clisp.org>
64213
64214         * MODULES.html.sh (func_all_modules): Add mathl.
64215
64216 2003-02-17  Bruno Haible  <bruno@clisp.org>
64217
64218         * modules/mkdtemp: New module.
64219         * MODULES.html.sh (func_all_modules): Add it.
64220
64221 2003-02-17  Bruno Haible  <bruno@clisp.org>
64222
64223         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64224
64225 2003-02-17  Bruno Haible  <bruno@clisp.org>
64226
64227         * lib/mkdtemp.h: New file, from GNU gettext.
64228         * lib/mkdtemp.c: New file, from GNU gettext.
64229
64230 2003-02-02  Jim Meyering  <jim@meyering.net>
64231
64232         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64233         e.g. glibc-2.2.93.
64234
64235 2003-01-31  Bruno Haible  <bruno@clisp.org>
64236
64237         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64238         'rpl_rename'.
64239         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64240         'rpl_strnlen'.
64241         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64242         'rpl_strtod'.
64243         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64244         'rpl_utime'.
64245
64246 2003-01-31  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/rename.c: #undef rename before defining rpl_rename.
64249         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64250
64251 2003-01-30  Bruno Haible  <bruno@clisp.org>
64252
64253         * modules/vasnprintf, modules/vasprintf: New modules.
64254         * MODULES.html.sh (func_all_modules): Add them.
64255
64256 2003-01-30  Bruno Haible  <bruno@clisp.org>
64257
64258         * m4/signed.m4: New file, from GNU gettext.
64259         * m4/longdouble.m4: New file, from GNU gettext.
64260         * m4/wchar_t.m4: New file, from GNU gettext.
64261         * m4/wint_t.m4: New file, from GNU gettext.
64262         * m4/vasnprintf.m4: New file.
64263         * m4/vasprintf.m4: New file.
64264
64265 2003-01-30  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/printf-args.h: New file, from GNU gettext.
64268         * lib/printf-args.c: New file, from GNU gettext.
64269         * lib/printf-parse.h: New file, from GNU gettext.
64270         * lib/printf-parse.c: New file, from GNU gettext.
64271         * lib/vasnprintf.h: New file, from GNU gettext.
64272         * lib/vasnprintf.c: New file, from GNU gettext.
64273         * lib/asnprintf.c: New file, from GNU gettext.
64274         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64275         * lib/vasprintf.c: New file, from GNU gettext.
64276         * lib/asprintf.c: New file, from GNU gettext.
64277
64278 2003-01-29  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/stpncpy: New module.
64281         * MODULES.html.sh (func_all_modules): Add it.
64282
64283 2003-01-29  Bruno Haible  <bruno@clisp.org>
64284
64285         * m4/stpncpy.m4: New file.
64286
64287 2003-01-29  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64290         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64291
64292 2003-01-28  Bruno Haible  <bruno@clisp.org>
64293
64294         * modules/c-ctype: New module.
64295         * MODULES.html.sh (func_all_modules): Add it.
64296
64297 2003-01-28  Bruno Haible  <bruno@clisp.org>
64298
64299         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64300         Paul Eggert.
64301         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64302         Paul Eggert.
64303
64304 2003-01-27  Bruno Haible  <bruno@clisp.org>
64305
64306         * modules/xsetenv: New module.
64307         * MODULES.html.sh (func_all_modules): Add it.
64308
64309 2003-01-27  Bruno Haible  <bruno@clisp.org>
64310
64311         * lib/xsetenv.h: New file, from GNU gettext.
64312         * lib/xsetenv.c: New file, from GNU gettext.
64313
64314 2003-01-23  Jim Meyering  <jim@meyering.net>
64315
64316         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64317         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64318
64319 2003-01-23  Bruno Haible  <bruno@clisp.org>
64320
64321         * modules/minmax: New module.
64322         * MODULES.html.sh (func_all_modules): Add it.
64323
64324 2003-01-23  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64327         Eggert.
64328
64329 2003-01-22  Bruno Haible  <bruno@clisp.org>
64330
64331         * modules/exit: New module.
64332         * MODULES.html.sh (func_all_modules): Add it.
64333
64334 2003-01-22  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/exit.h: New file, from GNU gettext.
64337
64338 2003-01-19  Bruno Haible  <bruno@clisp.org>
64339
64340         * gnulib-tool: Recognize option --extract-maintainer.
64341         (func_get_maintainer): New function.
64342         * modules/*: Add Maintainer entry.
64343
64344 2003-01-16  Jim Meyering  <jim@meyering.net>
64345
64346         * m4/regex.m4: The `regex' struct is both input and output.
64347         Initialize it before each use.  Patch by Tim Waugh.
64348
64349 2003-01-16  Bruno Haible  <bruno@clisp.org>
64350
64351         * MODULES.html.sh: Add a table of contents. Add the module name as
64352         leftmost column. Add hyperlinks.
64353
64354 2003-01-15  Bruno Haible  <bruno@clisp.org>
64355
64356         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64357
64358 2003-01-15  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64361         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64362         suffix.
64363
64364 2003-01-15  Bruno Haible  <bruno@clisp.org>
64365
64366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64367
64368 2003-01-15  Bruno Haible  <bruno@clisp.org>
64369
64370         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64371         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64372
64373 2003-01-14  Jim Meyering  <jim@meyering.net>
64374
64375         * lib/same.c (same_name): Tweak a comment.
64376
64377 2003-01-14  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64380         when a string comparison is sufficient.
64381
64382 2003-01-14  Bruno Haible  <bruno@clisp.org>
64383
64384         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64385         'unsigned int'.
64386
64387 2003-01-14  Bruno Haible  <bruno@clisp.org>
64388
64389         * lib/hash-pjw.c: Add comment about low quality of this function.
64390
64391 2003-01-13  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/stpcpy: Distribute lib/stpcpy.h.
64394         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64395
64396 2003-01-13  Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/*: Add a description.
64399         * modules/strpbrk: Fix Makefile.am snippet.
64400         * modules/strtoimax: Fix dependencies.
64401         * modules/strtoumax: Likewise.
64402
64403 2003-01-13  Bruno Haible  <bruno@clisp.org>
64404
64405         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64406         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64407         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64408
64409 2003-01-13  Bruno Haible  <bruno@clisp.org>
64410
64411         * gnulib-tool (func_create_testdir): Store config/* files in the main
64412         directory.
64413         * config.rpath: Move to ...
64414         * config/config.rpath: ... here.
64415         * modules/gettext: Contains config/config.rpath, not config.rpath.
64416         * modules/iconv: Likewise.
64417
64418 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64419
64420         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64421         to avoid collisions with libcurses and libreadline.
64422
64423         * m4/getstr.m4: Remove.
64424         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64425
64426 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64427
64428         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64429         to avoid collisions with libcurses and libreadline.
64430
64431         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64432         * lib/getstr.h, getstr.c: Remove.
64433         * lib/getline.c: Include "getline.h", to check interface.
64434         Move body of old getstr.c here: this defines MIN_CHUNK and
64435         declares getdelim2, which is renamed from getstr.
64436         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64437
64438         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64439         All uses changed.
64440         * lib/linebuffer.h: Likewise.
64441         (readline): Remove backward-compatibility macro.
64442
64443 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64444
64445         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64446         to avoid collisions with libcurses and libreadline.
64447         * getstr: Remove.
64448         * MODULES.html.sh: Remove getstr.
64449         * modules/getline: Depend on unlocked-io, not getstr.
64450
64451 2003-01-12  Jim Meyering  <jim@meyering.net>
64452
64453         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64454
64455 2003-01-10  Bruno Haible  <bruno@clisp.org>
64456
64457         * modules/alloca: Change Makefile.am requirements. Simplify Include
64458         requirements. Add lib/alloca_.h to file list.
64459
64460 2003-01-10  Bruno Haible  <bruno@clisp.org>
64461
64462         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64463
64464 2003-01-10  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/alloca_.h: New file.
64467         * lib/getdate.y: Unconditionally include alloca.h.
64468         * lib/makepath.c: Likewise.
64469         * lib/setenv.c: Likewise.
64470         * lib/userspec.c: Likewise.
64471
64472 2003-01-09  Karl Berry  <karl@gnu.org>
64473
64474         * MODULES.html.sh: include `dirname $0` in PATH, to find
64475         gnulib-tool.
64476
64477 2003-01-09  Bruno Haible  <bruno@clisp.org>
64478
64479         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64480         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64481
64482 2003-01-09  Bruno Haible  <bruno@clisp.org>
64483
64484         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64485
64486 2003-01-09  Bruno Haible  <bruno@clisp.org>
64487
64488         * lib/stdbool.h.in: New file.
64489
64490 2003-01-09  Bruno Haible  <bruno@clisp.org>
64491
64492         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64493         * MODULES.html.sh: Likewise.
64494
64495 2003-01-08  Jim Meyering  <jim@meyering.net>
64496
64497         * lib/full-write.c: Undefine and define-away `const' after inclusion
64498         of errno.h, not before.  Suggestion from Bruno Haible.
64499
64500 2003-01-08  Bruno Haible  <bruno@clisp.org>
64501
64502         * modules/full-read: Depend on full-write.
64503
64504 2003-01-08  Bruno Haible  <bruno@clisp.org>
64505
64506         * lib/safe-read.c: Include specification header first, to ensure its
64507         selfcontainedness.
64508         * lib/full-write.c: Likewise.
64509
64510 2003-01-07  Jim Meyering  <jim@meyering.net>
64511
64512         * lib/full-write.c: Rework so that it may serve to define full_read,
64513         too.
64514         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64515
64516 2003-01-07  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64519         <inttypes.h>.
64520         * lib/xstrtol.h: Likewise.
64521         * lib/xstrtoimax.c: Likewise.
64522         * lib/xstrtoumax.c: Likewise.
64523         * lib/human.h: Likewise.
64524
64525         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64526         on systems that have <inttypes.h> but not <stdint.h>.
64527
64528 2003-01-07  Bruno Haible  <bruno@clisp.org>
64529
64530         * MODULES.html.sh: Add copyright notice.
64531         (missed_files): Omit CVS directory entries.
64532         (func_module): Make it work with sed-3.02.
64533         * MODULES.txt: Remove file.
64534
64535 2003-01-06  Jim Meyering  <jim@meyering.net>
64536
64537         * lib/version-etc.c: Update year in translatable copyright string.
64538
64539 2003-01-03  Karl Berry  <karl@gnu.org>
64540
64541         * config/config.{guess,sub}: update from prep.
64542
64543 2003-01-02  Karl Berry  <karl@gnu.org>
64544
64545         * doc/COPYING.DOC: belatedly updated to 1.2.
64546
64547 2003-01-01  Karl Berry  <karl@gnu.org>
64548
64549         * gnulib-tool (func_verify_module): report module name $module in
64550         error message, not $1.
64551         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64552         be created, only if it doesn't exist.
64553         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64554
64555 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64556
64557         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64558
64559 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64560
64561         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64562         memcmp if strcoll doesn't work.
64563
64564 2002-12-31  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64567         nonempty.
64568
64569 2002-12-31  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/memcoll.c (STRCOLL): New macro.
64572         (memcoll): Use it.
64573
64574 2002-12-31  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/localcharset.h: New file.
64577         * lib/localcharset.c: Include it.
64578         * lib/unicodeio.c: Likewise.
64579
64580 2002-12-31  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64583         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64584
64585 2002-12-31  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/getline.h: Include <stddef.h>, for size_t.
64588
64589         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64590         * lib/unicodeio.c: Don't include <stddef.h>.
64591
64592 2002-12-31  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64595         HAVE_TM_ZONE.
64596
64597 2002-12-24  Karl Berry  <karl@gnu.org>
64598
64599         * config/config.guess: update from prep.
64600
64601 2002-12-24  Bruno Haible  <bruno@clisp.org>
64602
64603         General infrasructure.
64604         * m4/README: Rewritten.
64605         * m4/onceonly.m4: New file.
64606         * m4/onceonly_2_57.m4: New file.
64607
64608         Module atexit.
64609         * m4/atexit.m4: New file.
64610
64611         Module strtod.
64612         * m4/strtod.m4: New file.
64613
64614         Module strtol.
64615         * m4/strtol.m4: New file.
64616
64617         Module strtoul.
64618         * m4/strtoul.m4: New file.
64619
64620         Module memchr.
64621         * m4/memchr.m4: New file.
64622
64623         Module memcmp.
64624         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64625         (jm_FUNC_MEMCMP): Invoke it.
64626
64627         Module memcpy.
64628         * m4/memcpy.m4: New file.
64629
64630         Module memmove.
64631         * m4/memmove.m4: New file.
64632
64633         Module memset.
64634         * m4/memset.m4: New file.
64635
64636         Module strcspn.
64637         * m4/strcspn.m4: New file.
64638
64639         Module strpbrk.
64640         * m4/strpbrk.m4: New file.
64641
64642         Module strstr.
64643         * m4/strstr.m4: New file.
64644
64645         Module strerror.
64646         * m4/strerror.m4: New file.
64647
64648         Module mktime.
64649         * m4/mktime.m4: Renamed from jm-mktime.m4.
64650         (gl_PREREQ_MKTIME): New macro.
64651         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64652
64653         Module malloc.
64654         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64655         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64656         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64657
64658         Module realloc.
64659         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64660         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64661         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64662
64663         Module strftime.
64664         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64665         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64666         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64667         gl_TM_GMTOFF.
64668         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64669
64670         Module xalloc.
64671         * m4/xalloc.m4: New file.
64672
64673         Module alloca.
64674         * m4/alloca.m4: New file.
64675
64676         Module putenv.
64677         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64678         (jm_FUNC_PUTENV): Invoke it.
64679
64680         Module setenv.
64681         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64682         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64683         when invoked twice.
64684         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64685         gt_FUNC_SETENV.
64686
64687         Module memrchr.
64688         * m4/memrchr.m4: New file.
64689
64690         Module stpcpy.
64691         * m4/stpcpy.m4: New file.
64692
64693         Module strcase.
64694         * m4/strcase.m4: New file.
64695
64696         Module strdup.
64697         * m4/strdup.m4: New file.
64698
64699         Module strnlen.
64700         * m4/strnlen.m4: New file.
64701
64702         Module strndup.
64703         * m4/strndup.m4: New file.
64704
64705         Module xstrtod.
64706         * m4/xstrtod.m4: New file.
64707
64708         Module xstrtol.
64709         * m4/xstrtol.m4: New file.
64710
64711         Module getdate.
64712         * m4/getdate.m4: New file.
64713
64714         Module unlocked-io.
64715         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64716         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64717         * m4/jm-glibc-io.m4n: Remove file.
64718
64719         Module long-options.
64720         * m4/long-options.m4: New file.
64721
64722         Module md5.
64723         * m4/md5.m4: New file.
64724
64725         Module sha.
64726         * m4/sha.m4: New file.
64727
64728         Module getstr.
64729         * m4/getstr.m4: New file.
64730
64731         Module getline.
64732         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64733         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64734         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64735         simply getline. Infoke gl_PREREQ_GETLINE.
64736
64737         Module obstack.
64738         * m4/obstack.m4: New file.
64739
64740         Module hash.
64741         * m4/hash.m4: New file.
64742
64743         Module readtokens.
64744         * m4/readtokens.m4: New file.
64745
64746         Module strverscmp.
64747         * m4/strverscmp.m4: New file.
64748
64749         Module stdbool.
64750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64751         OSF/1.
64752
64753         Module strtoll.
64754         * m4/strtoll.m4: New file.
64755
64756         Module strtoull.
64757         * m4/strtoull.m4: New file.
64758
64759         Module strtoimax.
64760         * m4/strtoimax.m4: New file.
64761
64762         Module strtoumax.
64763         * m4/strtoumax.m4: New file.
64764
64765         Module xstrtoimax.
64766         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64767         jm_AC_PREREQ_XSTRTOIMAX.
64768         Moved the strtol prerequisites to strtol.m4.
64769         Moved the strtoll prerequisites to strtoll.m4.
64770         Moved the strtoimax prerequisites to strtoimax.m4.
64771
64772         Module xstrtoumax.
64773         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64774         jm_AC_PREREQ_XSTRTOUMAX.
64775         Moved the strtoul prerequisites to strtoul.m4.
64776         Moved the strtoull prerequisites to strtoull.m4.
64777         Moved the strtoumax prerequisites to strtoumax.m4.
64778
64779         Module chown.
64780         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64781         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64782
64783         Module dup2.
64784         * m4/dup2.m4: New file.
64785
64786         Module ftruncate.
64787         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64788         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64789
64790         Module getgroups.
64791         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64792         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64793
64794         Module gettimeofday.
64795         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64796         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64797         gl_PREREQ_GETTIMEOFDAY.
64798
64799         Module mkdir.
64800         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64801         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64802
64803         Module mkstemp.
64804         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64805         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64806         jm_AC_TYPE_UINTMAX_T.
64807         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64808
64809         Module stat.
64810         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64811         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64812
64813         Module lstat.
64814         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64815         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64816
64817         Module timespec.
64818         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64819         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64820         * m4/st_mtim.m4: Indentation.
64821
64822         Module nanosleep.
64823         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64824         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64825         gl_PREREQ_NANOSLEEP.
64826
64827         Module regex.
64828         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64829         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64830         (gl_REGEX): New macro.
64831
64832         Module rename.
64833         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64834         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64835
64836         Module rmdir.
64837         * m4/rmdir.m4: New file.
64838
64839         Module utime.
64840         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64841         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64842         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64843
64844         Module dirname.
64845         * m4/dirname.m4: New file.
64846
64847         Module getopt.
64848         * m4/getopt.m4: New file.
64849
64850         Module unistd-safer.
64851         * m4/unistd-safer.m4: New file.
64852
64853         Module fnmatch.
64854         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64855         declaration.
64856         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64857         (gl_FUNC_FNMATCH_POSIX): New macro.
64858         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64859         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64860         simply fnmatch.
64861
64862         Module exclude.
64863         * m4/exclude.m4: New file.
64864
64865         Module human.
64866         * m4/human.m4: New file.
64867
64868         Module acl.
64869         * m4/acl.m4: Nop.
64870
64871         Module backupfile.
64872         * m4/backupfile.m4: New file.
64873         * m4/d-ino.m4: Indentation.
64874
64875         Module fsusage.
64876         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64877         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64878         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64879
64880         Module dirfd.
64881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64882         requirements.
64883
64884         Module euidaccess.
64885         * m4/euidaccess.m4: New file.
64886
64887         Module file-type.
64888         * m4/file-type.m4: New file.
64889
64890         Module fileblocks.
64891         * m4/fileblocks.m4: New file.
64892
64893         Module filemode.
64894         * m4/filemode.m4: New file.
64895
64896         Module isdir.
64897         * m4/isdir.m4: New file.
64898
64899         Module lchown.
64900         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64901         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64902
64903         Module makepath.
64904         * m4/makepath.m4: New file.
64905
64906         Module modechange.
64907         * m4/modechange.m4: New file.
64908
64909         Module mountlist.
64910         * m4/mountlist.m4: New file.
64911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64912         Indentation.
64913
64914         Module path-concat.
64915         * m4/path-concat.m4: New file.
64916
64917         Module pathmax.
64918         * m4/pathmax.m4: New file.
64919
64920         Module same.
64921         * m4/same.m4: New file.
64922
64923         Module save-cwd.
64924         * m4/save-cwd.m4: New file.
64925
64926         Module savedir.
64927         * m4/savedir.m4: New file.
64928
64929         Module xgetcwd.
64930         * m4/xgetcwd.m4: New file.
64931         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
64932
64933         Module xreadlink.
64934         * m4/xreadlink.m4: New file.
64935
64936         Module safe-read.
64937         * m4/safe-read.m4: New file.
64938
64939         Module safe-write.
64940         * m4/safe-write.m4: New file.
64941
64942         Module closeout.
64943         * m4/closeout.m4: New file.
64944
64945         Module stdio-safer.
64946         * m4/stdio-safer.m4: New file.
64947
64948         Module getpass.
64949         * m4/getpass.m4: New file.
64950
64951         Module getugroups.
64952         * m4/getugroups.m4: New file.
64953
64954         Module group-member.
64955         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
64956         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
64957
64958         Module idcache.
64959         * m4/idcache.m4: New file.
64960
64961         Module userspec.
64962         * m4/userspec.m4: New file.
64963
64964         Module gettime.
64965         * m4/clock_time.m4: New file.
64966         * m4/gettime.m4: New file.
64967
64968         Module settime.
64969         * m4/settime.m4: New file.
64970
64971         Module posixtm.
64972         * m4/posixtm.m4: New file.
64973
64974         Module gethostname.
64975         * m4/gethostname.m4: New file.
64976
64977         Module canon-host.
64978         * m4/canon-host.m4: New file.
64979
64980         Module gettext.
64981         * m4/codeset.m4: New file, from gettext-0.11.5.
64982         * m4/gettext.m4: New file, from gettext-0.11.5.
64983         * m4/glibc21.m4: New file, from gettext-0.11.5.
64984         * m4/iconv.m4: New file, from gettext-0.11.5.
64985         * m4/intdiv0.m4: New file, from gettext-0.11.5.
64986         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
64987         * m4/inttypes.m4: New file, from gettext-0.11.5.
64988         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
64989         * m4/isc-posix.m4: New file, from gettext-0.11.5.
64990         * m4/lcmessage.m4: New file, from gettext-0.11.5.
64991         * m4/lib-ld.m4: New file, from gettext-0.11.5.
64992         * m4/lib-link.m4: New file, from gettext-0.11.5.
64993         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
64994         * m4/progtest.m4: New file, from gettext-0.11.5.
64995         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
64996         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
64997         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
64998
64999         Module localcharset.
65000         * m4/localcharset.m4: New file.
65001
65002         Module hard-locale.
65003         * m4/hard-locale.m4: New file.
65004
65005         Module mbswidth.
65006         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65007         onceonly macros.
65008         * m4/mbrtowc.m4: Add comment.
65009
65010         Module memcasecmp.
65011         * m4/memcasecmp.m4: New file.
65012
65013         Module memcoll.
65014         * m4/memcoll.m4: New file.
65015
65016         Module unicodeio.
65017         * m4/unicodeio.m4: New file.
65018
65019         Module rpmatch.
65020         * m4/rpmatch.m4: New file.
65021
65022         Module yesno.
65023         * m4/yesno.m4: New file.
65024
65025         Module exitfail.
65026         * m4/exitfail.m4: New file.
65027
65028         Module c-stack.
65029         * m4/c-stack.m4 (gl_C_STACK): New macro.
65030         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65031
65032         Module error.
65033         * m4/error.m4 (gl_ERROR): New macro.
65034         (jm_PREREQ_ERROR): Use onceonly macros.
65035
65036         Module fatal.
65037         * m4/fatal.m4: New file.
65038
65039         Module getloadavg.
65040         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65041         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65042
65043         Module getpagesize.
65044         * m4/getpagesize.m4: New file.
65045
65046         Module getusershell.
65047         * m4/getusershell.m4: New file.
65048
65049         Module physmem.
65050         * m4/physmem.m4: New file.
65051
65052         Module posixver.
65053         * m4/posixver.m4: New file.
65054
65055         Module quotearg.
65056         * m4/quotearg.m4: New file.
65057
65058         Module quote.
65059         * m4/quote.m4: New file.
65060
65061         Module readutmp.
65062         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65063
65064         Module sig2str.
65065         * m4/sig2str.m4: New file.
65066
65067         Other.
65068         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65069         ulonglong.m4.
65070         * m4/intmax_t.m4: New file.
65071         * m4/d-type.m4: Indentation.
65072         * m4/jm-macros.m4: Update.
65073         * m4/prereq.m4 (jm_PREREQ): Update.
65074         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65075         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65076         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65077         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65078         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65079         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65080         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65081         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65082         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65083         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65084         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65085         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65086         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65087         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65088         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65089         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65090         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65091         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65092         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65093
65094 2002-12-24  Bruno Haible  <bruno@clisp.org>
65095
65096         * MODULES.txt: Update according to m4/ changes.
65097
65098         Module gettext.
65099         * config.rpath: New file, from gettext-0.11.5.
65100
65101         * modules/*: New module descriptions.
65102         * gnulib-tool: New file.
65103         * MODULES.html.sh: New file.
65104
65105 2002-12-21  Karl Berry  <karl@gnu.org>
65106
65107         * doc/fdl.texi: update to version 1.2.
65108
65109 2002-12-19  Karl Berry  <karl@gnu.org>
65110
65111         * config/config.guess: update from prep.
65112
65113 2002-12-18  Bruno Haible  <bruno@clisp.org>
65114
65115         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65116         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65117
65118 2002-12-17  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65121         stdlib.h, string.h.
65122
65123 2002-12-17  Bruno Haible  <bruno@clisp.org>
65124
65125         * lib/canon-host.c (strdup): Remove unused declaration.
65126
65127         * lib/fsusage.c: Include full_read.h.
65128         (get_fs_usage): Use full_read instead of safe_read.
65129
65130         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65131
65132 2002-12-12  Karl Berry  <karl@gnu.org>
65133
65134         * config/config.guess: update from prep.
65135
65136 2002-12-11  Bruno Haible  <bruno@clisp.org>
65137
65138         * m4/setenv.m4: New file, from gettext-0.11.5.
65139
65140 2002-12-11  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65143         not unsetenv().
65144         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65145         modifications:
65146
65147         2002-12-11  Bruno Haible  <bruno@clisp.org>
65148
65149                 * setenv.c (alloca): Fall back to malloc.
65150                 (freea): New macro.
65151                 (setenv): Use freea() to free memory allocated with alloca().
65152
65153         2002-11-13  Bruno Haible  <bruno@clisp.org>
65154
65155                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65156                 function declarations.
65157                 * unsetenv.c (unsetenv): Likewise.
65158
65159         2002-03-04  Bruno Haible  <bruno@clisp.org>
65160
65161                 Portability to AIX 4.3.3.
65162                 * unsetenv.c: New file, extracted from setenv.c.
65163                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65164
65165         2001-12-20  Bruno Haible  <bruno@clisp.org>
65166
65167                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65168                 use malloc instead. For SunOS 4.
65169
65170         2001-12-11  Bruno Haible  <bruno@clisp.org>
65171
65172                 * setenv.c: Declare alloca.
65173                 (compar_fn_t): New typedef.
65174                 (KNOWN_VALUE, STORE_VALUE): Use it.
65175
65176         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65177         setenv.h.
65178
65179 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65180
65181         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65182         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65183         Choose values that are less likely to collide with system fnmatch
65184         options.
65185         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65186         defined (e.g., a pure POSIX system).
65187         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65188         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65189
65190 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65191
65192         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65193         a pain in practice to deal with generated m4 files.  This change
65194         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65195
65196         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65197         and jm-glibc-io.m4, as they are no longer a special case.
65198         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65199         kludge and the auto-generation stuff.  Check only whether the
65200         functions are declared, not whether they exist, since older hosts
65201         that don't declare the functions can't use the optimization anyway.
65202
65203 2002-12-06  Jim Meyering  <jim@meyering.net>
65204
65205         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65206
65207         Merge in changes from libc's misc/error.c, in preparation
65208         for the merge of gnulib's changes back into libc.
65209
65210         * lib/error.c (_): Define only if not already defined.
65211         Move definition to follow all #include directives.
65212         Include unlocked-io.h only if !_LIBC.
65213         [_LIBC]: Include <libio/libioP.h>.
65214         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65215         (fflush): Tweak definition to use INTUSE.
65216         (putc): Define.
65217
65218 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65219
65220         * lib/alloca.c [defined emacs]: Include "lisp.h".
65221         (xalloc_die) [defined emacs]: New macro.
65222         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65223         [! defined emacs]: Include <xalloc.h>.
65224         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65225         (pointer): Typedef to POINTER_TYPE *.
65226         (malloc): Remove decl; we now always use xmalloc.
65227         (alloca): Use old-style definition, since Emacs needs this.
65228         Check for arithmetic overflow when computing combined size.
65229
65230 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65231
65232         Do not generate unlocked-io.h automatically, since it's easier to
65233         maintain it by hand.
65234
65235         * lib/unlocked-io.h: New file, from GNU diffutils,
65236         but with proper copyright notice and attribution.
65237         * lib/gen-uio: Remove.
65238         * lib/Makefile.am: Add copyright notice.
65239         (libfetish_a_SOURCES): Add unlocked-io.h.
65240         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65241         (DISTCLEANFILES, io_functions): Remove macros.
65242         (EXTRA_DIST): Remove gen_uio.
65243         (unlocked-io.h): Remove rule.
65244
65245 2002-12-04  Jim Meyering  <jim@meyering.net>
65246
65247         Reflect the fact that stat.c and lstat.c are no longer generated.
65248         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65249         (DISTCLEANFILES): Likewise.
65250         (EXTRA_DIST): Likewise.
65251         (all_local): Don't depend on stat.c or lstat.c.
65252         (stat.c, lstat.c): Remove rules.
65253         (EXTRA_DIST): Remove xstat.in.
65254
65255         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65256         * lib/stat.c: New file.  Contents mostly from xstat.in.
65257         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65258         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65259
65260         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65261         too.
65262         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65263
65264 2002-12-03  Jim Meyering  <jim@meyering.net>
65265
65266         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65267         but not semantics, to minimize the differences between these two files.
65268         (safe_read): Change comment to mention SAFE_READ_ERROR.
65269
65270         * lib/safe-read.c (IS_EINTR): Define.
65271         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65272
65273 2002-12-02  Jim Meyering  <jim@meyering.net>
65274
65275         * lib/safe-read.c (EINTR): Define.
65276         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65277         (INT_MAX): Provide fallback.
65278         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65279
65280         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65281
65282 2002-12-02  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65285         Define, taken from safe-read.c.
65286         (INT_MAX): Provide fallback.
65287         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65288         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65289
65290         * lib/safe-read.c (EINTR): Remove definition.
65291         (safe_read): Don't use EINTR if it is absent.
65292
65293 2002-12-01  Jim Meyering  <jim@meyering.net>
65294
65295         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65296         zero.
65297         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65298
65299 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65300
65301         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65302         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65303         with `if (! (value < limit)) abort ();', for readability.
65304
65305 2002-11-26  Karl Berry  <karl@gnu.org>
65306
65307         * lib/strdup.c: copy from libc again, with jim's ok.
65308         * lib/.cppi-disable: re-add strdup.c
65309
65310 2002-11-25  Karl Berry  <karl@gnu.org>
65311
65312         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65313         instead of "strtol.c".
65314
65315 2002-11-25  Karl Berry  <karl@gnu.org>
65316
65317         * config/install-sh: update from automake for variable quoting, $0 in
65318         error msgs, etc.
65319
65320         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65321         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65322         entry.
65323
65324 2002-11-25  Jim Meyering  <jim@meyering.net>
65325
65326         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65327
65328 2002-11-24  Karl Berry  <karl@gnu.org>
65329
65330         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65331         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65332
65333 2002-11-24  Jim Meyering  <jim@meyering.net>
65334
65335         Update from coreutils:
65336
65337         * lib/mktime.c: Merge in changes from libc.
65338
65339         Avoid a link-time failure on some Linux systems.
65340         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65341         (otherwise).
65342         (__mon_yday): Declare with the STATIC attribute.
65343         (__mktime_internal): Likewise.
65344         Based on a report from Greg Schafer.
65345
65346 2002-11-23  Jim Meyering  <jim@meyering.net>
65347
65348         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65349         Use `unsigned', not `int', as type of index.
65350
65351         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65352
65353         * lib/fsusage.c: Remove unneeded parentheses around operands of
65354         `defined'.
65355
65356 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65357
65358         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65359         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65360         so that we can be included first.
65361         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65362         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65363         No need to include stddef.h or sys/types.h any more.
65364         Surround local include files with "", not "<>".
65365         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65366         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65367         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65368         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65369         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65370         (ISPRINT): Remove; no longer needed now that we assume C89.
65371
65372         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65373         Preserve errno.
65374
65375         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65376         quotearg_char): Use SIZE_MAX rather than
65377         (size_t) -1 when we are talking about "infinity".
65378
65379         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65380
65381 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65382
65383         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65384         hint that one should use `if (! x) abort ();' rather than `assert
65385         (x);', and anyway it's one less thing to worry about configuring.
65386         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65387         hash_rehash, hash_insert): Use abort rather than assert.
65388
65389 2002-11-22  Bruno Haible  <bruno@clisp.org>
65390
65391         * lib/safe-read.h: Assume C89. Add comments.
65392         (safe_read): Change return type to size_t.
65393         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65394         byte counts > SSIZE_MAX correctly.
65395         * lib/safe-write.h: New file.
65396         * lib/safe-write.c: New file.
65397         * lib/full-read.h: New file.
65398         * lib/full-read.c: New file.
65399         * lib/full-write.h: Assume C89. Add comments.
65400         * lib/full-write.c: Include safe-write.h.
65401         (full_write): Rewritten to use safe_write.
65402         Suggested by Jim Meyering and Paul Eggert.
65403
65404 2002-11-21  Jim Meyering  <jim@meyering.net>
65405
65406         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65407
65408         Merge in changes from the coreutils.
65409
65410         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65411         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65412         <stdint.h>.
65413         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65414         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65415         int.  Work more efficiently if X is the same width as uintmax_t.
65416         Do not compare X to -1, to avoid bogus compiler warning.
65417         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65418         Don't assume that f_frsize and f_bsize are the same type.
65419
65420         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65421         warning on FreeBSD.
65422
65423         * lib/makepath.c (make_path): Restore umask *before* creating the final
65424         component.
65425         (make_path): Minor reformatting.
65426
65427         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65428         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65429         HAVE_MALLOC/HAVE_REALLOC.
65430
65431         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65432         dummy ones.  At least on GNU/Linux systems, `auto' means something
65433         else.
65434         From Michael Stone.
65435
65436 2002-11-21  Bruno Haible  <bruno@clisp.org>
65437
65438         Remove case insensitive option matching.
65439         * lib/argmatch.h (argcasematch): Remove declaration.
65440         (ARGCASEMATCH): Remove macro.
65441         (__xargmatch_internal): Remove case_sensitive argument.
65442         (XARGMATCH): Update.
65443         (XARGCASEMATCH): Remove macro.
65444         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65445         case_sensitive argument.
65446         (argcasematch): Remove function.
65447         (__xargmatch_internal): Remove case_sensitive argument.
65448         (main): Use XARGMATCH instead of XARGCASEMATCH.
65449
65450         * lib/xmalloc.c: Change compile-time error message. Add comment about
65451         required autoconf version.
65452
65453 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65454
65455         Merge argmatch cleanups from Bison.  Assume C89.
65456
65457         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65458         Include stdlib.h, for EXIT_FAILURE.
65459         Always include <string.h>, since we assume C89.
65460         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65461         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65462         Include <stddef.h> instead, since it's all we need for size_t.
65463         (PARAMS): Remove.  All uses removed.
65464         (ARRAY_CARDINALITY): Do not bother to #undef.
65465         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65466         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65467         Remove unnecessary parentheses.
65468         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65469         Insert necessary parentheses.
65470         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65471         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65472
65473 2002-11-19  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65476         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65477
65478         * lib/mbswidth.h (PARAMS): Remove macro.
65479         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65480         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65481
65482         * lib/gcd.h (PARAMS): Remove macro.
65483         (gcd): Use ANSI C function declarations.
65484         * lib/gcd.c (gcd): Likewise.
65485
65486 2002-11-15  Bruno Haible  <bruno@clisp.org>
65487
65488         * lib/strcspn.c: Include <stddef.h>.
65489         (strcspn): Use ANSI C function declaration. Change return type to
65490         size_t. Use NULL.
65491         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65492         (strpbrk): Use NULL.
65493         * lib/strpbrk.h (PARAMS): Remove macro.
65494         (strpbrk): Use ANSI C function declaration.
65495         * lib/strstr.c: Don't include <sys/types.h>.
65496         * lib/strstr.h (PARAMS): Remove macro.
65497         (strstr): Use ANSI C function declarations.
65498
65499 2002-11-14  Karl Berry  <karl@gnu.org>
65500
65501         * config/mkinstalldirs: `do' on separate line, instead of
65502         `for var; do'.
65503
65504 2002-11-06  Bruno Haible  <bruno@clisp.org>
65505
65506         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65507         * lib/gcd.c (gcd): Likewise.
65508
65509 2002-11-05  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/gcd.h: New file, from gettext-0.11.5.
65512         * lib/gcd.c: New file, from gettext-0.11.5.
65513
65514 2002-11-05  Bruno Haible  <bruno@clisp.org>
65515
65516         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65517         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65518         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65519         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65520
65521         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65522         <libintl.h>.
65523         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65524         <libintl.h>.
65525
65526         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65527         * lib/human.c: Include gettext.h instead of <libintl.h>.
65528         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65529         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65530         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65531         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65532         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65533         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65534         (textdomain): Remove definition.
65535         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65536
65537         * lib/long-options.c: Remove include of <libintl.h> and definition of
65538         _.
65539         * lib/same.c: Remove include of <libintl.h> and definition of _.
65540
65541 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65542
65543         * lib/config.charset: A few additions for Solaris.
65544
65545 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65546
65547         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65548         * lib/localcharset.c (locale_charset): Declare as extern "C".
65549
65550 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65551
65552         * lib/config.charset: msdos in uk_UA uses CP1125.
65553
65554 2002-11-04  Bruno Haible  <bruno@clisp.org>
65555
65556         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65557         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65558         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65559         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65560         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65561
65562 2002-11-04  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/localcharset.c (locale_charset): Don't return an empty string.
65565
65566 2002-11-04  Bruno Haible  <bruno@clisp.org>
65567
65568         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65569         aliases.
65570
65571 2002-11-04  Bruno Haible  <bruno@clisp.org>
65572
65573         * lib/config.charset: Update for newest glibc. Add canonical names
65574         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65575
65576 2002-11-04  Bruno Haible  <bruno@clisp.org>
65577
65578         * lib/config.charset: Add support for NetBSD.
65579
65580 2002-11-04  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65583
65584 2002-11-01  Bruno Haible  <bruno@clisp.org>
65585
65586         * configure.in: Add AC_CONFIG_AUX_DIR call.
65587         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65588         test/Makefile.
65589         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65590
65591 2002-09-28  Karl Berry  <karl@gnu.org>
65592
65593         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65594         installed automake until the next release, since changes have been
65595         made.
65596
65597 2002-09-25  Karl Berry  <karl@gnu.org>
65598
65599         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65600         * lib/getopt*: copy from libc/posix.
65601         * lib/gettext.h: copy from gettext.
65602         * lib/.cppi-disable: add strdup.c, gettext.h.
65603
65604 2002-09-25  Karl Berry  <karl@gnu.org>
65605
65606         * config/srclist.txt: enable gettext.h check.
65607         * config/config.{guess,sub}: update from prep.
65608         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65609                 from automake 1.6.3.
65610         See srclist*.
65611
65612 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65613
65614         * regex.c (PATFETCH): Remove the translating fetch.
65615         (PATFETCH_RAW): Rename to PATFETCH.
65616         (set_image_of_range): New fun.
65617         (SET_RANGE_TABLE_WORK_AREA): Use it.
65618         (regex_compile): Don't translate the pattern chars so eagerly.
65619         Only do it when inserting an `exactn' bytecode or when handling
65620         a char-range.
65621         (mutually_exclusive_p): Avoid empty statement.
65622
65623 2002-07-06  Jim Meyering  <meyering@lucent.com>
65624
65625         * m4/README: Don't mention Makefile.am.in.
65626         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65627
65628 2002-07-01  Jim Meyering  <meyering@lucent.com>
65629
65630         * lib/c-stack.c: Include sys/time.h.
65631         From Volker Borchert.
65632
65633 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65634
65635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65636
65637 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65638
65639         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65640         New macro.  Use it uniformly instead of
65641         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65642         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65643         reported by Vin Shelton.
65644
65645 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65646
65647         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65648         Do not assume SA_SIGINFO behavior.
65649         Bug reported by Jim Meyering on NetBSD 1.5.2.
65650
65651 2002-06-22  Jim Meyering  <meyering@lucent.com>
65652
65653         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65654         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65655
65656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65657         now that configure.ac uses AC_GNU_SOURCE.
65658         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65659         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65660
65661         Update to latest tools.  Suggestions from Paul Eggert.
65662         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65663         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65664         * m4/fnmatch.m4: Likewise.
65665         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65666         to AC_HEADER_STDBOOL
65667
65668 2002-06-22  Jim Meyering  <meyering@lucent.com>
65669
65670         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65671         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65672
65673 2002-06-22  Jim Meyering  <meyering@lucent.com>
65674
65675         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65676
65677         * lib/exitfail.c, exitfail.h: Likewise.
65678         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65679
65680         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65681         of fnmatch.h.
65682         (EXTRA_DIST): Add fnmatch_loop.c.
65683         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65684
65685         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65686         * lib/fnmatch.c: Update from diffutils-2.8.2.
65687         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65688         * lib/fnmatch.h: Remove file.
65689
65690 2002-06-21  Jim Meyering  <meyering@lucent.com>
65691
65692         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65693         * m4/mbrtowc.m4: Likewise.
65694
65695         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65696         * m4/mbswidth.m4: Reflect name change:
65697         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65699
65700         * m4/lib-link.m4: Update from gettext-0.11.2.
65701         * m4/gettext.m4: Likewise.
65702
65703         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65704         From Alfred M. Szmidt.
65705
65706 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65707
65708         * lib/file-type.h: Report an error if neither S_ISREG nor
65709         S_IFREG is defined, instead of using a test specific to glibc
65710         2.2.  This should be safe, since POSIX requires S_ISREG and
65711         Unix Version 7 had S_IFREG.  We don't need to check for
65712         <sys/types.h> since we don't use any symbols that it defines.
65713
65714 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65715
65716         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65717         $@-t, so that each temporary file name is unique and valid in the first
65718         8 characters, for operation under DOS.
65719
65720 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65721
65722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65723
65724 2002-06-15  Jim Meyering  <meyering@lucent.com>
65725
65726         Work even with DJGPP 2.03, which lacks support for symlinks.
65727         From Richard Dawe.
65728         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65729         is defined.
65730         * lib/lchown.c (S_ISLNK): Likewise.
65731
65732 2002-06-15  Jim Meyering  <meyering@lucent.com>
65733
65734         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65735         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65736         have been included before this file.
65737
65738 2002-06-14  Jim Meyering  <meyering@lucent.com>
65739
65740         * lib/file-type.h: Use the version from diffutils-2.8.2.
65741         * lib/file-type.c: Likewise.
65742
65743 2002-06-07  Jim Meyering  <meyering@lucent.com>
65744
65745         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65746         They're needed at least for NetBSD 1.5.2.
65747         ($statxfs_includes): Include those same headers.
65748         ($statxfs_includes): Include sys/vfs.h if available.
65749         ($statxfs_includes): Likewise for sys/statvfs.h.
65750         Check for the following members in both structs statfs and statvfs:
65751         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65752
65753 2002-06-01  Jim Meyering  <meyering@lucent.com>
65754
65755         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65756         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65757
65758 2002-05-28  Jim Meyering  <meyering@lucent.com>
65759
65760         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65761         Reported by Volker Borchert.
65762
65763 2002-05-27  Jim Meyering  <meyering@lucent.com>
65764
65765         Fix a problem seen only on nonconforming systems whereby ls.c's
65766         use of localtime, and then of gettimeofday would cause trouble:
65767         the localtime call used to initialize rpl_gettimeofday's save
65768         mechanism would clobber ls's current local time information so
65769         that in any long listing the first file would always be listed
65770         with date 1970-01-01.  Analysis by Volker Borchert.
65771
65772         * lib/gettimeofday.c (localtime): Undefine.
65773         (rpl_localtime): New function.
65774
65775 2002-05-27  Jim Meyering  <meyering@lucent.com>
65776
65777         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65778         localtime.
65779
65780         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65781         use the replacement function; it wouldn't resolve at link time.
65782         Reported by Volker Borchert.
65783
65784 2002-05-22  Jim Meyering  <meyering@lucent.com>
65785
65786         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65787         file-type.h.
65788         * lib/file-type.h: New file.
65789         * lib/file-type.c (file_type): New file/function.  Extracted from
65790         diffutils.
65791
65792 2002-04-30  Jim Meyering  <meyering@lucent.com>
65793
65794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65795
65796 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65797
65798         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65799
65800 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65801
65802         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65803         Do not check for alloca.h (no longer used) or stdbool.h (was never
65804         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65805
65806 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65807
65808         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65809
65810 2002-04-29  Jim Meyering  <meyering@lucent.com>
65811
65812         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65813         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65814         Use AC_FUNC_STRNLEN here instead.
65815
65816         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65817         With autoconf-2.53a, it's part of AC_PROG_CC.
65818
65819 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65820
65821         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65822         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65823
65824 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65825
65826         * lib/sig2str.h, lib/sig2str.c: New files.
65827         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65828
65829 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65830
65831         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65832         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65833         of 127, since 64 is the largest conceivable number for ancient
65834         nonstandard hosts.
65835         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65836
65837 2002-04-28  Jim Meyering  <meyering@lucent.com>
65838
65839         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65840
65841 2002-04-24  Jim Meyering  <meyering@lucent.com>
65842
65843         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65844         (jm_PREREQ): Use it.
65845
65846         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65847         mach/mach.h fcntl.h.
65848         Check for this function: setlocale.
65849
65850 2002-04-24  Jim Meyering  <meyering@lucent.com>
65851
65852         * lib/gettext.h: New file, from Gettext.
65853         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65854         (libfetish_a_SOURCES): Add gettext.h.
65855
65856 2002-04-16  Jim Meyering  <meyering@lucent.com>
65857
65858         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65859         ut_pid, ut_id, ut_exit.
65860
65861 2002-04-16  Jim Meyering  <meyering@lucent.com>
65862
65863         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65864         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65865         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65866
65867 2002-04-12  Jim Meyering  <meyering@lucent.com>
65868
65869         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65870         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65871         existence of the getmntinfo function.  Needed for Darwin 5.3.
65872
65873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65874         This is necessary at least on Darwin 5.3.
65875
65876         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65877         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65878         strnlen.o in the library, and that makes some versions of ranlib
65879         object.
65880
65881 2002-04-12  Jim Meyering  <meyering@lucent.com>
65882
65883         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65884
65885 2002-04-09  Jim Meyering  <meyering@lucent.com>
65886
65887         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65888         to be more precise.  Rather than saying we're checking whether the
65889         function `works', say what we're testing.
65890         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65891         Reported by Bruno Haible.
65892
65893 2002-03-10  Jim Meyering  <meyering@lucent.com>
65894
65895         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65896         Suggestion from Santiago Vila.
65897
65898 2002-03-08  Jim Meyering  <meyering@lucent.com>
65899
65900         * lib/rename.c: Mention that this wrapper is needed also on
65901         mips-dec-ultrix4.4 systems.
65902
65903 2002-03-02  Jim Meyering  <meyering@lucent.com>
65904
65905         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65906         not HAVE_CLOCK_SETTIME.
65907
65908 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65909
65910         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65911         Check for clock_settime.
65912
65913 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65914
65915         * lib/nanosleep.h: Rename to....
65916         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65917
65918         * lib/gettime.c: New file.
65919         * lib/settime.c: New file.
65920         * lib/stime.c: Remove.
65921
65922         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
65923         timespec.h.  Remove nanosleep.h.
65924
65925 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65926
65927         * m4/acl.m4: New file.
65928         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
65929         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
65930
65931 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65932
65933         * lib/acl.c, lib/acl.h: New files.
65934         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
65935
65936 2002-02-24  Jim Meyering  <meyering@lucent.com>
65937
65938         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
65939         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
65940         cause trouble.  Reported by Nelson Beebe.
65941
65942 2002-02-23  Paul Eggert  <eggert@twinsun.com>
65943
65944         * lib/path-concat.c (xpath_concat): Reorder code to pacify
65945         compilers that don't know that xalloc_die never returns.
65946
65947 2002-02-20  Jim Meyering  <meyering@lucent.com>
65948
65949         * lib/getdate.c: Regenerate using bison-1.33.
65950
65951 2002-02-17  Jim Meyering  <meyering@lucent.com>
65952
65953         * config/config.guess (main): Don't use `head -1'; it's no longer
65954         portable. Use `sed 1q' instead.
65955
65956 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
65957
65958         * m4/codeset.m4: Upgrade to gettext-0.11.
65959         * m4/gettext.m4: Upgrade to gettext-0.11.
65960         * m4/glibc21.m4: Upgrade to gettext-0.11.
65961         * m4/iconv.m4: Upgrade to gettext-0.11.
65962         * m4/isc-posix.m4: Upgrade to gettext-0.11.
65963         * m4/lcmessage.m4: Upgrade to gettext-0.11.
65964         * m4/lib-ld.m4: New file, from gettext-0.11.
65965         * m4/lib-link.m4: New file, from gettext-0.11.
65966         * m4/lib-prefix.m4: New file, from gettext-0.11.
65967         * m4/progtest.m4: Upgrade to gettext-0.11.
65968
65969 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65970
65971         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
65972         (jm_PREREQ): Use it.
65973
65974 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65975
65976         * lib/posixver.c, lib/posixver.h: New files.
65977         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65978
65979 2002-02-02  Paul Eggert  <eggert@twinsun.com>
65980             Bruno Haible  <bruno@clisp.org>
65981
65982         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
65983         (fwrite_success_callback): New declaration.
65984         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
65985         print_unicode_char. Call failure callback instead of error.
65986         (fwrite_success_callback): New function.
65987         (exit_failure_callback): New function.
65988         (fallback_failure_callback): New function.
65989         (print_unicode_char): Call unicode_to_mb.
65990
65991 2002-01-26  Jim Meyering  <meyering@lucent.com>
65992
65993         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
65994         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
65995
65996 2002-01-26  Jim Meyering  <meyering@lucent.com>
65997
65998         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
65999
66000 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66001
66002         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66003
66004 2002-01-22  Jim Meyering  <meyering@lucent.com>
66005
66006         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66007         Otherwise, some versions of automake would omit the rule that makes
66008         Makefile from Makefile.in.
66009
66010 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66011
66012         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66013         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66014         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66015         (memcoll): Set errno to zero if there is no error.
66016
66017         * lib/quotearg.c (quotearg_buffer_restyled):
66018         Fix bug with quoting buffers containing NUL when backslashing escapes.
66019         This bug was exposed by the other changes in this patch.
66020         (quotearg_n_options): New arg ARGSIZE.
66021         All callers changed.
66022         (quoting_options_from_style): New function.
66023         (quotearg_n_style): Use it.
66024         (quotearg_n_style_mem): New function.
66025
66026         * lib/quotearg.h (quotearg_n_style_mem): New function.
66027
66028 2002-01-19  Jim Meyering  <meyering@lucent.com>
66029
66030         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66031         Remove useless quotes: DF_PROG="df".
66032         * m4/strnlen.m4: New file.
66033
66034 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66035
66036         * lib/backupfile.c (ISDIGIT): Comment fix.
66037         * lib/getdate.y (ISDIGIT): Likewise.
66038         * lib/posixtm.c (ISDIGIT, year): Likewise.
66039         * lib/strverscmp.c (ISDIGIT): Likewise.
66040         * lib/userspec.c (ISDIGIT): Likewise.
66041
66042 2002-01-16  Jim Meyering  <meyering@lucent.com>
66043
66044         * lib/getdate.y: Add three semicolons, each just before a closing
66045         brace. Bison (as of version 1.31) no longer papers over that mistake.
66046
66047 2002-01-05  Jim Meyering  <meyering@lucent.com>
66048
66049         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66050
66051 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66052
66053         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66054         not silently exit merely because the output buffer happens to
66055         have nothing pending.
66056
66057 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66058
66059         See the big note in ../ChangeLog.
66060         * lib/human.c (suffixes): Prefer K to k for 1024.
66061         (generate_suffix_backwards): New function.
66062         (human_readable_inexact): Use it.
66063         * lib/xstrtol.c (__xstrtol): If there is no number but there
66064         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66065         Accept 'K' as well as 'k'.
66066
66067 2001-12-15  Jim Meyering  <meyering@lucent.com>
66068
66069         * lib/regex.h (__restrict_arr): Update from libc.
66070
66071         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66072         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66073         (STREQ): Define.
66074
66075 2001-12-14  Jim Meyering  <meyering@lucent.com>
66076
66077         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66078         Suggestion from Bruno Haible.
66079
66080 2001-12-10  Jim Meyering  <meyering@lucent.com>
66081
66082         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66083         xrealloc, Instead, include "xalloc.h".
66084         (initbuffer): Don't cast xmalloc return value to char*.
66085         (readline): Reword comment.
66086         Don't cast xrealloc return value to char*
66087         Return NULL, not 0.
66088
66089 2001-12-09  Jim Meyering  <meyering@lucent.com>
66090
66091         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66092         about `signed and unsigned type in conditional expression'.
66093         * lib/posixtm.c (posix_time_parse): Likewise.
66094
66095         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66096
66097         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66098         to avoid a pedantic warning.
66099
66100         * lib/getstr.c: Don't include assert.h.
66101         (getstr): Remove warning-evoking assertions.
66102         Return -1 if offset parameter is out of bounds.
66103         Change the type of a local from int to size_t.
66104
66105         * lib/strftime.c (my_strftime_localtime_r): Include this function
66106         definition in the `#if ! HAVE_TM_GMTOFF' block.
66107
66108         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66109         Include xalloc.h instead.
66110
66111 2001-12-02  Jim Meyering  <meyering@lucent.com>
66112
66113         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66114         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66115         included.
66116
66117         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66118         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66119
66120 2001-11-30  Akim Demaille  <akim@epita.fr>
66121
66122         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66123         before being defined.
66124
66125 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66126
66127         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66128         First arg is int, not unsigned.
66129         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66130         (SIZE_MAX, UINT_MAX): New macros.
66131         (quotearg_n_options): Abort if N is negative.
66132         Avoid overflow check on hosts where size_t is 64 bits and int
66133         is 32 bits, as overflow is impossible there.
66134         Fix off-by-one typo that caused unnecessary reallocation.
66135
66136 2001-11-27  Jim Meyering  <meyering@lucent.com>
66137
66138         * lib/tempname.c: Merge with version from libc.
66139         * lib/regex.c: Likewise.
66140
66141         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66142         systems for which STDC_HEADERS is 0, it was not included, resulting in
66143         a warning about an integer-to-pointer conversion problem with getenv.
66144         Reported by Volker Borchert.
66145
66146 2001-11-26  Jim Meyering  <meyering@lucent.com>
66147
66148         * lib/gtod.h: Remove file.
66149         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66150         * lib/gettimeofday.c: Don't include gtod.h.
66151         (GTOD_init): Remove function.
66152         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66153         Suggestion from Volker Borchert.
66154
66155 2001-11-23  Jim Meyering  <meyering@lucent.com>
66156
66157         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66158         it.
66159         * lib/hash.c (struct hash_table): Define it here instead.
66160
66161 2001-11-22  Jim Meyering  <meyering@lucent.com>
66162
66163         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66164
66165 2001-11-20  Jim Meyering  <meyering@lucent.com>
66166
66167         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66168         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66169
66170 2001-11-19  Jim Meyering  <meyering@lucent.com>
66171
66172         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66173         directory.  Use "conftestXXXXXX" as the template.
66174         Suggestion from Paul Eggert.
66175
66176         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66177         immediately, so the test doesn't mistakenly hit the max-open-files
66178         limit.
66179
66180 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66181
66182         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66183         (TEMPORARIES): New macro.
66184         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66185         removes an artificial limitation (e.g. HP-UX 10.20, where
66186         TMP_MAX is 17576).
66187
66188 2001-11-18  Jim Meyering  <meyering@lucent.com>
66189
66190         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66191
66192 2001-11-18  Jim Meyering  <meyering@lucent.com>
66193
66194         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66195         on SunOS 4.
66196
66197         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66198         files will be created before anything else.
66199
66200 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66201
66202         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66203         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66204
66205 2001-11-17  Jim Meyering  <meyering@lucent.com>
66206
66207         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66208         Prompted by a report from Bob Proulx.
66209
66210         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66211         Instead, require UTILS_FUNC_MKSTEMP.
66212
66213 2001-11-17  Jim Meyering  <meyering@lucent.com>
66214
66215         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66216         Now, that's done as part of AC_FUNC_STRTOD.
66217
66218 2001-11-17  Jim Meyering  <meyering@lucent.com>
66219
66220         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66221         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66222         rather than group writable.  Patch by Juan F. Codagnone.
66223
66224         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66225         xrealloc, Instead, include "xalloc.h".
66226
66227         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66228         Remove explicit declarations of xmalloc, xrealloc,
66229         and xstrdup.  Instead, include "xalloc.h".
66230
66231         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66232         unlocked-io.h.
66233         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66234         Likewise.
66235         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66236
66237         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66238         Reported by Padraig Brady.
66239
66240         * lib/mkstemp.c: #undef mkstemp.
66241         Include config.h.
66242         (rpl_mkstemp): Rename from mkstemp.
66243         Protoize.
66244
66245 2001-11-16  Jim Meyering  <meyering@lucent.com>
66246
66247         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66248         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66249         determine the amount of total physical memory, use pstat_getstatic.
66250         HPUX-11 doesn't define _SC_PHYS_PAGES.
66251         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66252         If sysconf couldn't be used to determine the amount of available
66253         physical memory, use both pstat_getstatic and pstat_getdynamic.
66254         Based on a patch from Bob Proulx.
66255
66256 2001-11-10  Jim Meyering  <meyering@lucent.com>
66257
66258         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66259         (jm_PREREQ): Use it.
66260
66261 2001-11-09  Jim Meyering  <meyering@lucent.com>
66262
66263         * m4/jm-macros.m4: Require autoconf-2.52f.
66264         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66265         Use these AC_-prefixed names, not the AM_-prefixed ones.
66266
66267         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66268
66269 2001-11-05  Jim Meyering  <meyering@lucent.com>
66270
66271         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66272
66273 2001-11-04  Jim Meyering  <meyering@lucent.com>
66274
66275         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66276         $DEFS.
66277
66278 2001-11-03  Jim Meyering  <meyering@lucent.com>
66279
66280         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66281         of AC_DEFUN.
66282
66283         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66284         know the name of the variable in the macro definition.
66285
66286 2001-11-03  Jim Meyering  <meyering@lucent.com>
66287
66288         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66289         in argmatch_to_argument call.
66290
66291         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66292         argument.
66293
66294         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66295         e.g., a fault due to an attempt to free a NULL pointer.
66296
66297 2001-11-01  Jim Meyering  <meyering@lucent.com>
66298
66299         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66300         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66301
66302 2001-11-01  Jim Meyering  <meyering@lucent.com>
66303
66304         * lib/dirfd.c, lib/dirfd.h: New files.
66305         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66306
66307         * lib/hash.c (hash_print) [TESTING]: Clean up.
66308
66309 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66310
66311         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66312         to avoid a warning if -Wall.
66313
66314 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66315
66316         * README: New file
66317         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66318         (per RMS's instructions, this is now the canonical source)
66319         * lgpl/, gpl/: New directories.
66320
66321 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66322
66323         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66324
66325 2001-10-21  Jim Meyering  <meyering@lucent.com>
66326
66327         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66328         this code would end up calling gettext even in packages built
66329         with --disable-nls.
66330         * lib/getopt.c (_): Likewise.
66331         * lib/regex.c (_): Likewise.
66332
66333 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66334
66335         * m4/error.m4 (jm_PREREQ_ERROR):
66336         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66337         AC_FUNC_STRERROR_R does that.
66338         Check for strerror declaration.
66339
66340         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66341         are supposed to have them these days.
66342         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66343         Merge changes from latest Autoconf CVS.
66344         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66345         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66346         POSIX decided to standardize on the int flavor of strerror_r.
66347
66348 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66349
66350         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66351         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66352         Use strerror_r that is only a macro, even if it is not a function.
66353         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66354         (private_strerror): Use prototypes, not old-style function definition.
66355         (print_errno_message): New function.
66356         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66357         char*-flavored one.
66358         (error_tail, error, error_at_line): Use it.
66359
66360 2001-10-11  Jim Meyering  <meyering@lucent.com>
66361
66362         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66363         and quote_n (1, ... to avoid clobbering a buffer.
66364
66365 2001-10-05  Jim Meyering  <meyering@lucent.com>
66366
66367         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66368         hash-pjw.h.
66369         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66370         * lib/hash-pjw.h: New file.
66371
66372 2001-09-30  Jim Meyering  <meyering@lucent.com>
66373
66374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66375         `struct fsstat' has the `f_fstypename' member.
66376         Use that to define FS_TYPE, which is now used to make
66377         the getfsstat link test tighter.
66378
66379 2001-09-30  Jim Meyering  <meyering@lucent.com>
66380
66381         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66382         Include <sys/ucred.h>, for Apple Darwin.
66383         Include sys/mount.h and sys/fs_types.h only if available.
66384         (FS_TYPE): Define.
66385         (read_filesystem_list): Use FS_TYPE.
66386
66387 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66388
66389         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66390         a boolean context.
66391
66392 2001-09-29  Jim Meyering  <meyering@lucent.com>
66393
66394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66395         [one-argument getmntent function]): Include stdio.h before mntent.h.
66396         SunOS 4.1.x needs it for the declaration of `FILE'.
66397         Patch by Volker Borchert.
66398
66399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66400         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66401         sys/fs_types.h, and make the link-test for getfsstat guard #include
66402         directives with appropriate #if HAVE_*_H tests so that we can
66403         detect getfsstat on Apple Darwin1.3.7 systems.
66404         Reported by Nelson Beebe.
66405         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66406
66407 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66408
66409         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66410         #defines strtoimax.  Also treat the other strto* functions
66411         like strtoimax.
66412
66413         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66414         Check for strtoul and strtoumax,
66415         as those declarations are made even in the signed case.
66416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66417         Likewise, for strtol and strtoimax.
66418
66419 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66420
66421         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66422         #defines strtoimax.  Also treat the other strto* functions
66423         like strtoimax.
66424
66425         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66426         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66427         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66428
66429 2001-09-26  Jim Meyering  <meyering@lucent.com>
66430
66431         Most macros in unlocked-io.h had the wrong number of arguments.
66432         * lib/gen-uio: New script.
66433         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66434         * lib/unlocked-io.hin: Remove file.
66435         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66436         rather than trying to embed it here.
66437         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66438         Reported by Padraig Brady.
66439
66440 2001-09-25  Volker Borchert  <bt@teknon.de>
66441
66442         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66443         `result'.
66444
66445 2001-09-24  Jim Meyering  <meyering@lucent.com>
66446
66447         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66448
66449 2001-09-23  Jim Meyering  <meyering@lucent.com>
66450
66451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66452         instead of the mere test for existence of mntent.h.  The latter
66453         would get a false-positive on AIX 3.4 systems.
66454         In the outer getmntent if-block, don't die if neither of the getmntent
66455         tests succeeds.  Instead, just fall through and continue with the
66456         remaining tests.
66457
66458 2001-09-23  Jim Meyering  <meyering@lucent.com>
66459
66460         * lib/mountlist.c: Remove useless parentheses in #if directives.
66461         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66462         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66463
66464 2001-09-22  Jim Meyering  <meyering@lucent.com>
66465
66466         * m4/gettext.m4: New file.  From gettext.
66467         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66468         * m4/progtest.m4: Likewise
66469         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66470         * m4/glibc21.m4: Likewise.
66471
66472         * m4/libintl.m4: Remove.  No longer used.
66473
66474 2001-09-22  Jim Meyering  <meyering@lucent.com>
66475
66476         * lib/localcharset.c: Update from latest gettext.
66477         * lib/config.charset: Likewise.
66478
66479 2001-09-20  Jim Meyering  <meyering@lucent.com>
66480
66481         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66482         strtoimax.
66483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66484         strtoumax.
66485
66486 2001-09-20  Jim Meyering  <meyering@lucent.com>
66487
66488         * lib/xstrtol.c (strtoimax): Guard declaration with
66489         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66490         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66491         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66492         (strtoumax): Likewise, for completeness (it wasn't necessary).
66493
66494 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66495
66496         * lib/strtoimax.c (HAVE_LONG_LONG):
66497         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66498         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66499         to work around bug in IBM C compiler.
66500
66501 2001-09-17  Jim Meyering  <meyering@lucent.com>
66502
66503         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66504         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66505         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66506         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66507         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66508         whenever the right hand side need not be expanded by the shell.
66509
66510 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66511
66512         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66513         library.  It's not correct, as some older glibcs are buggy.
66514         fnmatch wasn't fixed until glibc 2.2.
66515
66516         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66517         special shell magic here.
66518
66519 2001-09-16  Jim Meyering  <meyering@lucent.com>
66520
66521         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66522         * m4/jm-macros.m4: Require it.
66523
66524 2001-09-16  Jim Meyering  <meyering@lucent.com>
66525
66526         * lib/mkdir.c: New file.
66527
66528 2001-09-15  Jim Meyering  <meyering@lucent.com>
66529
66530         * m4/jm-macros.m4: Check for help2man.
66531
66532 2001-09-11  Jim Meyering  <meyering@lucent.com>
66533
66534         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66535         The body, by Paul Eggert, was moved here from configure.in.
66536         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66537
66538 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66539
66540         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66541         (jm_PREREQ): Use it.
66542
66543 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66544
66545         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66546         Use ssize_t, not int, to store result of readlink.
66547         Check for ssize_t overflow as well as size_t overflow,
66548         as POSIX says the result of readlink is implementation-defined
66549         when ssize_t overflows.
66550         Remove unnecessary cast to char*.
66551         Use free+malloc instead of realloc, as the storage doesn't need
66552         to be preserved and it's clearer and can be more efficient that way.
66553         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66554         * lib/xreadlink.h (xreadlink): Update prototype.
66555
66556 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66557
66558         * lib/xgetcwd.c: Revert some of the previous change; intead,
66559         fix the HAVE_GETCWD_NULL code to behave more like the
66560         !HAVE_GETCWD_NULL code used to.
66561
66562         Include "xalloc.h".
66563         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66564         invoke xalloc_die.
66565
66566 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66567
66568         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66569         sys/param.h, as pathmax.h includes them.
66570
66571 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66572
66573         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66574         (jm_PREREQ_XGETCWD): New macro.
66575
66576         * m4/getcwd.m4: New file.
66577
66578 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66579
66580         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66581         like the HAVE_GETCWD_NULL code.
66582         Include pathmax.h if not HAVE_GETCWD.
66583         Do not include xalloc.h.
66584         (INITIAL_BUFFER_SIZE): New symbol.
66585         Do not use xmalloc / xrealloc, since the caller is responsible for
66586         handling errors.  Preserve errno around `free' during failure.
66587         Do not overrun buffer when using getwd.
66588
66589 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66590
66591         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66592         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66593         getcwd (NULL, 0).
66594
66595 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66596
66597         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66598         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66599         spotted by Jim Meyering.
66600
66601 2001-09-03  Jim Meyering  <meyering@lucent.com>
66602
66603         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66604         failure.
66605
66606 2001-09-02  Jim Meyering  <meyering@lucent.com>
66607
66608         * lib/error.c: Update from GNU libc.
66609
66610 2001-09-01  Jim Meyering  <meyering@lucent.com>
66611
66612         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66613         Used by df.
66614
66615 2001-09-01  Jim Meyering  <meyering@lucent.com>
66616
66617         * lib/xreadlink.c: New file.
66618         * lib/xreadlink.h: New file.
66619         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66620         xreadlink.h.
66621
66622         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66623         doesn't conflict with sparc Solaris 7's definition in
66624         /usr/include/sys/int_types.h.
66625
66626         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66627         files.
66628         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66629         and strncasecmp as r-values.  Unixware didn't have declarations.
66630
66631 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66632
66633         * lib/xstrtol.h: Add copyright notice.
66634         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66635         LONGINT_INVALID_SUFFIX_CHAR.
66636
66637 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66638
66639         * lib/xstrtol.c (strtoimax): New decl.
66640
66641 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66642
66643         * lib/xgetcwd.c: Don't include pathmax.h.
66644         Include stdlib.h and unistd.h if available.
66645         Include xalloc.h.
66646         (xmalloc, xstrdup, free): Remove decls.
66647         (xgetcwd): Don't assume sizes fit in unsigned.
66648         Check for overflow when computing sizes.
66649         Simplify reallocation code.
66650
66651 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66652
66653         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66654         a directory's st_size can have an arbitrary value, so the old
66655         usage could waste an arbitrary amount of memory.  All uses
66656         changed.
66657         * lib/savedir.h: Update prototype.
66658
66659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66660
66661         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66662
66663         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66664         old strtoimax.c.
66665
66666         Also, make the following further changes to make this file's
66667         configuration more similar to that of strtol.c:
66668         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66669         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66670         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66671         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66672         changed to signed values.
66673
66674         And make the following changes as well:
66675         Fix copyright notice, as 1999 was missing.
66676         (verify): New macro.
66677         (strtoimax): Check sizes at compile-time, not run-time.
66678         Prefer strtol to strtoll if both work.
66679         (main): Remove; it was not that useful and was a pain to maintain.
66680
66681         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66682
66683 2001-08-31  Jim Meyering  <meyering@lucent.com>
66684
66685         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66686         Use an initial, malloc'd, buffer of length 128 rather than
66687         a statically allocated one of length 1024.
66688
66689 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66690
66691         Simplify code, partly by assuming autoconf 2.52 semantics.
66692
66693         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66694
66695         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66696         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66697         All uses removed.
66698         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66699         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66700         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66701         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66702         jm_AC_HEADER_INTTYPES_H.
66703         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66704
66705         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66706
66707         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66708         Quote first arg of AC_DEFUN.
66709         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66710         since they are needed to parse the include file even if we need
66711         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66712         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66713         but with opposite signedness.
66714
66715 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66716
66717         Merge 'exclude' changes from tar 1.13.22.
66718         This fixes one or two unlikely storage allocation overflow bugs,
66719         but doesn't change user-visible behavior otherwise.
66720
66721 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66722
66723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66724         (jm_PREREQ_EXCLUDE): New macro.
66725
66726 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66727
66728         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66729         tm to be declared.
66730
66731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66732
66733         * lib/hash.c: Remove '2001' from copyright notice.
66734
66735 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66736
66737         * lib/full-write.h: New file.
66738         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66739         * lib/full-write.c: Correct credits, as cccp.c no longer
66740         exists and anyway it was so heavily changed from the old cccp
66741         code as to be unrecognizable.  Include full-write.h.
66742         (full_write) Return size_t, with short writes meaning failure.
66743         All callers changed.  This fixes a bug with large buffers
66744         on 64-bit hosts.
66745         * lib/utime.c: Include full-write.h.
66746
66747 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66748
66749         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66750         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66751         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66752         Include if available.
66753         (<xalloc.h>): Include
66754         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66755         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66756         collide with FNM macros.
66757         (struct patopts): New struct.
66758         (struct exclude): Use it, as exclude patterns now come with options.
66759         (new_exclude): Support above changes.
66760         (new_exclude, add_exclude_file):
66761         Initial size must now be a power of two to simplify overflow checking.
66762         (free_exclude, fnmatch_no_wildcards): New function.
66763         (excluded_filename): No longer requires options arg, as the options
66764         are determined by add_exclude.  Now returns bool, not int.
66765         (excluded_filename, add_exclude):
66766         Add support for the fancy new exclusion options.
66767         (add_exclude, add_exclude_file): Now takes int options arg.
66768         Check for arithmetic overflow when computing sizes.
66769         (add_exclude_file): xrealloc might modify errno, so don't
66770         realloc until after errno might be used.
66771
66772         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66773         New macros.
66774         (free_exclude): New decl.
66775         (add_exclude, add_exclude_file): Now takes int options arg.
66776         (excluded_filename): No longer requires options arg, as the options
66777         are determined by add_exclude.  Now returns bool, not int.
66778
66779 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66780
66781         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66782
66783 2001-08-27  Jim Meyering  <meyering@lucent.com>
66784
66785         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66786
66787         * lib/version-etc.c (N_): Remove definition.
66788         Revert most of last change.
66789         Instead, simply don't mark the `Copyright...' string for translation.
66790         Based on advice from Paul Eggert.
66791
66792         * lib/strtoxmax.c: Tweak comment.
66793
66794 2001-08-26  Jim Meyering  <meyering@lucent.com>
66795
66796         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66797
66798         * m4/xstrtoimax.m4: New file.
66799         * m4/xstrtoumax.m4: Add comments explaining why we
66800         AC_REPLACE_FUNCS(strtol).
66801
66802 2001-08-26  Jim Meyering  <meyering@lucent.com>
66803
66804         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66805         of copyright with `%s' so translators don't get an untranslated
66806         message in 2002.
66807         (COPYRIGHT_YEAR): Define.
66808         (version_etc): Use fprintf rather than fputs.
66809         Suggestion from Ulrich Drepper.
66810
66811         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66812
66813         * lib/strtoll.c: New file, from GNU libc.
66814         * lib/xstrtoimax.c: New file.
66815
66816         * lib/xstrtol.h: Add xstrtoimax.
66817         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66818         * lib/strtoimax.c: New file.  Likewise, but first define
66819         STRTOUXMAX_SIGNED.
66820
66821         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66822         ...
66823         * lib/strtoxmax.c: ... then renamed to this.
66824
66825 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66826
66827         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66828         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66829         (jm_AC_TYPE_INTMAX_T): New macro.
66830         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66831
66832         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66833
66834         * m4/longlong.m4: Renamed from ulonglong.m4.
66835         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66836         * m4/uintmax_t.m4: Removed.
66837
66838 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66839
66840         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66841         Port to Solaris 8, where 'sed' requires a space after the 'r'
66842         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66843         Redirect output to $tmp just once.
66844
66845 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66846
66847         * lib/addext.c (<errno.h>): Include.
66848         (errno): Declare if not defined.
66849         (addext): Work correctly when pathconf returns -1 and leaves
66850         errno alone because there is no limit.  Also, work even if
66851         pathconf returns a value greater than SIZE_MAX.
66852
66853 2001-08-12  Jim Meyering  <meyering@lucent.com>
66854
66855         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66856         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66857         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66858         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66859         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66860         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66861         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66862         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66863         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66864         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66865         utime.m4, utimes.m4, xstrtoumax.m4:
66866         Quote the first argument in each use of AC_DEFUN.
66867
66868 2001-08-12  Jim Meyering  <meyering@lucent.com>
66869
66870         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66871         Simply `return getcwd (NULL, 0);'.
66872         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66873         Use 1300 as initial value for length, not PATH_MAX.
66874
66875         * lib/pathmax.h: Clean up cpp syntax.
66876
66877 2001-08-12  Jim Meyering  <meyering@lucent.com>
66878
66879         * lib/gettimeofday.c: New file.
66880         * lib/gtod.h: New file.
66881         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66882
66883 2001-08-05  Jim Meyering  <meyering@lucent.com>
66884
66885         * m4/jm-macros.m4: Require autoconf-2.52.
66886
66887 2001-08-04  Jim Meyering  <meyering@lucent.com>
66888
66889         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66890         stmt, to get in sync with glibc.
66891
66892 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66893
66894         The following changes are from gettext 0.10.39 as maintained by
66895         Bruno Haible.
66896
66897         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66898         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66899         with inverted sense.  All uses changed.
66900
66901         * lib/mbswidth.c: Don't include <limits.h>.
66902         Include <stdlib.h> and <string.h> unconditionally.
66903         (iswcntrl, mbsinit, ISCNTRL): New macros.
66904         (mbsnwidth): Use K&R style function declarations.
66905         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66906         can optimize it when MB_CUR_MAX == 1.
66907         The width of control characters is zero, not 1.
66908
66909 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66910
66911         The following changes are from gettext 0.10.39 as maintained by
66912         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66913
66914         * m4/codeset.m4: Upgrade to serial AM1.
66915         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66916         all uses changed.  Quote first arg of AC_DEFUN.
66917         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66918
66919         * m4/iconv.m4: Upgrade to serial AM2.
66920         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
66921         Add --with-libconv-prefix.
66922         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
66923         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
66924         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
66925         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
66926         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
66927
66928         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
66929         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
66930         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
66931         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
66932         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
66933         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
66934         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66935         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
66936         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66937
66938         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
66939         string.h any more.
66940
66941         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
66942         not the default value.
66943
66944         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
66945         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
66946         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
66947         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
66948         Also check for iswcntrl, used for wcwidth fallback.
66949         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
66950         to Autoconf 2.13.
66951
66952 2001-08-03  Jim Meyering  <meyering@lucent.com>
66953
66954         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
66955         as it was in the original.  Reported by Paul Eggert.
66956
66957 2001-07-16  Jim Meyering  <meyering@lucent.com>
66958
66959         * m4/gettimeofday.m4: New file.
66960         Prompted by a report from Bernhard Baehr.
66961
66962 2001-07-15  Jim Meyering  <meyering@lucent.com>
66963
66964         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
66965         stuff. Now it's in ../Makefile.cfg.
66966
66967 2001-07-15  Jim Meyering  <meyering@lucent.com>
66968
66969         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
66970         (BUILT_SOURCES): Add unlocked-io.h.
66971         (io_functions): Define.
66972         (unlocked-io.h): New rule.
66973         (DISTCLEANFILES): Add unlocked-io.h.
66974         (all-local): Depend on unlocked-io.h, to ensure it is created.
66975
66976         * lib/unlocked-io.hin: New file
66977
66978         * lib/regex.c: Update from glibc.
66979
66980 2001-07-05  Jim Meyering  <meyering@lucent.com>
66981
66982         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
66983         recommendation.
66984         (libfetish_a_SOURCES): Put all .h files here instead.
66985         Remove a thus-exposed (better checks in automake) duplicate and
66986         two unnecessary .h files.
66987
66988 2001-07-04  Jim Meyering  <meyering@lucent.com>
66989
66990         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
66991         that generates jm-glibc-io.m4 so that it doesn't trigger any make
66992         distcheck failure.
66993
66994 2001-07-02  Jim Meyering  <meyering@lucent.com>
66995
66996         The following changes were prompted by suggestions from Bruno Haible.
66997
66998         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
66999         is now generated.
67000         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67001         definition of EXTRA_DIST.
67002         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67003         ensure that the generated file is created/updated whenever the list
67004         of $(unlocked_functions) is changed.
67005         (jm-glibc-io.m4): New rule.
67006         (unlocked-io.h): New rule -- currently unused.
67007
67008 2001-06-24  Jim Meyering  <meyering@lucent.com>
67009
67010         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67011         unmatched right bracket, rather than kludging it with an extra,
67012         falsely-matching quote in a comment.  Patch by Akim Demaille.
67013
67014 2001-06-11  Jim Meyering  <meyering@lucent.com>
67015
67016         * lib/regex.c: Update from GNU libc.
67017
67018 2001-05-27  Jim Meyering  <meyering@lucent.com>
67019
67020         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67021         Check for ut_type in struct utmp.
67022
67023 2001-05-27  Jim Meyering  <meyering@lucent.com>
67024
67025         * lib/readutmp.h (UT_TYPE): Define.
67026
67027 2001-05-24  Jim Meyering  <meyering@lucent.com>
67028
67029         * lib/argmatch.c: Include "quote.h".
67030         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67031         quote function.  Reported by Göran Uddeborg.
67032
67033 2001-05-22  Jim Meyering  <meyering@lucent.com>
67034
67035         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67036         now that we use the package-supplied version unconditionally.
67037         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67038
67039 2001-05-21  Jim Meyering  <meyering@lucent.com>
67040
67041         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67042         shell syntax errors.
67043
67044 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67045
67046         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67047
67048 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67049
67050         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67051         Don't bother to check library strftime, since
67052         we'll be using our own my_strftime function anyway.
67053         Define my_strftime instead of strftime.
67054
67055 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67056
67057         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67058         which is not yet declared.
67059
67060 2001-05-15  Jim Meyering  <meyering@lucent.com>
67061
67062         * m4/regex.m4: Use proper quoting so brackets appear in the test
67063         program.
67064         Reported by, and with help from, Bruno Haible.
67065
67066 2001-05-13  Jim Meyering  <meyering@lucent.com>
67067
67068         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67069         undefined.
67070
67071 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67072
67073         dirname code cleanup.  base_name now behaves more compatibly
67074         with POSIX basename when given file names that have trailing
67075         slashes, and similarly for dir_name.  Add new primitives
67076         base_len and dir_len.  Put the directory-name-related decls
67077         into dirname.h.
67078
67079         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67080         * lib/backupfile.c (base_name): Likewise.
67081         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67082         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67083         * lib/makepath.c (strip_trailing_slashes): Likewise.
67084         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67085         ISSLASH): Likewise.
67086         * lib/rename.c (strip_trailing_slashes): Likewise.
67087         * lib/same.c (base_name): Likewise.
67088         * lib/stripslash.c (ISSLASH): Likewise.
67089
67090         * lib/addext.c: Include <dirname.h> after size_t is defined.
67091         * lib/backupfile.c: Likewise.
67092
67093         * lib/addext.c (addext): Use base_len to trim redundant
67094         trailing slashes instead of doing it ourselves.
67095         But do not trim the last slash if it is not redundant.
67096
67097         * lib/backupfile.c (find_backup_file_name,
67098         max_backup_version): Use base_len instead of rolling it ourselves.
67099         Handle the case of "" and (on DOS) "C:" correctly.
67100
67101         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67102         needed. Include <string.h>, <dirname.h>.
67103         (base_name): Allow file names ending in slashes, other than names
67104         that are all slashes.  In this case, return the basename followed
67105         by the slashes.  This is more general, and can be used in places
67106         where the original base_name purposely had an assertion failure.
67107         (base_len): New function.
67108
67109         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67110         Do not include <assert.h>; no longer needed.
67111         Include xalloc.h.
67112         (memrchr): Remove decl.
67113         (dir_name_r): Remove.
67114         (dir_len): Renamed from dirlen.  All callers changed.
67115         Rewrite in terms of base_name, for simplicity and consistency.
67116         (dir_name): Never return NULL.  All callers changed.
67117         Do not include <stdlib.h> in test program; no longer needed.
67118         return 0; is fine for test program.
67119
67120         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67121         New macros.
67122         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67123
67124         * lib/path-concat.c (path_concat): Use base_len to compute
67125         base length, not strlen; this means we cannot rely on memcpy
67126         to null-terminate.
67127
67128         * lib/same.c (STREQ): Remove.
67129         (same_name): Handle the case where the basename ends in trailing '/'.
67130
67131         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67132         a slash was stripped.  Do not strip the last slash after a
67133         file system prefix.
67134
67135 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67136
67137         * lib/Makefile.am (libfetish_a_SOURCES):
67138         Add strftime.c, since we now compile it on all hosts.
67139
67140         * lib/strftime.c (my_strftime):
67141         Define to nstrftime if emacs, but only if my_strftime is not defined.
67142         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67143         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67144         Add one more extra argument: a nanoseconds value.
67145         All uses changed.
67146         (ns): New macro.
67147         (my_strftime function): Add %N format.
67148         (emacs_strftimeu): Renamed from emacs_strftime,
67149         with extra ut argument.
67150
67151 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67152
67153         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67154
67155 2001-04-21  Jim Meyering  <meyering@lucent.com>
67156
67157         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67158         doesn't interfere.
67159
67160 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67161
67162         * m4/ftruncate.m4: Check for chsize.
67163         Link with ftruncate.o unconditionally if ftruncate is missing.
67164         This was required when cross-compiling to i586-mingw32msvc.
67165
67166 2001-04-08  Jim Meyering  <meyering@lucent.com>
67167
67168         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67169         recomputed; that's necessary when the offset spans a DST transition.
67170         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67171
67172 2001-04-02  Jim Meyering  <meyering@lucent.com>
67173
67174         * lib/regex.h, regex.c: Update from GNU libc.
67175
67176 2001-03-24  Jim Meyering  <meyering@lucent.com>
67177
67178         * m4/jm-macros.m4: Require autoconf-2.49d.
67179
67180 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67181
67182         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67183
67184 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67185
67186         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67187
67188 2001-03-17  Jim Meyering  <meyering@lucent.com>
67189
67190         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67191         now that the version in autoconf is equivalent.
67192         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67193
67194         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67195         Suggestion from Akim Demaille.
67196
67197         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67198         (jm_PREREQ_TEMPNAME): New function.
67199
67200 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67201
67202         * lib/tempname.c (uint64_t): Define to uintmax_t if
67203         not defined, and if UINT64_MAX is not defined.
67204         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67205         Reported by John David Anglin.
67206
67207 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67208
67209         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67210         resolve alias if codeset is empty.
67211         * lib/config.charset (BeOS): Use wildcard syntax.
67212
67213 2001-03-13  Jim Meyering  <meyering@lucent.com>
67214
67215         * lib/path-concat.c (path_concat)
67216         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67217         concatenating e.g., `C:' and `foo'.
67218         From Bruno Haible.
67219
67220 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67221
67222         * lib/localcharset.c (locale_charset): Don't use
67223         setlocale(LC_CTYPE,NULL). Don't return NULL.
67224         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67225
67226 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67227
67228         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67229         support for DOS/DJGPP.
67230
67231 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67232
67233         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67234         lacks mkstemp.  Compile our own tempname.c if we compile our own
67235         mkstemp.c, as mkstemp relies on tempname.
67236
67237 2001-03-01  Jim Meyering  <meyering@lucent.com>
67238
67239         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67240         AH_VERBATIM really does output its argument verbatim.
67241
67242 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67243
67244         * lib/Makefile.am (libfetish_a_SOURCES):
67245         Add dup-safer.c, fopen-safer.c.
67246         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67247
67248         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67249         * lib/unistd-safer.h: New files.
67250
67251 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67252
67253         The mkstemp replacement is taken from glibc 2.2.2, with some
67254         portability fixes for use outside glibc, as follows:
67255
67256         * lib/tempname.c (struct_stat64): New macro.
67257         (direxists, __gen_tempname): Use it.
67258         This avoids a portability problem with Solaris 8.
67259
67260         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67261         (<stddef.h>, <stdint.h>, <string.h>):
67262         Include only if STDC_HEADERS || _LIBC.
67263         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67264         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67265         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67266         (__set_errno): Define this macro if <errno.h> doesn't.
67267         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67268         Define these macros if <stdio.h> doesn't.
67269         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67270         Define these macros if <sys/stat.h>
67271         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67272         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67273         __xstat64): Define if not _LIBC.
67274         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67275         (__gen_tempname): Invoke gettimeofday only if
67276         HAVE_GETTIMEOFDAY || _LIBC;
67277         otherwise, fall back on plain "time".
67278         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67279
67280         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67281
67282         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67283
67284 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67285
67286         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67287
67288 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67289
67290         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67291         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67292         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67293         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67294
67295 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67296
67297         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67298         Remove workaround macros for hosts that have mbrtowc but not
67299         mbstate_t, as we now insist on proper declarations for both
67300         before using mbrtowc.
67301
67302 2001-02-17  Jim Meyering  <meyering@lucent.com>
67303
67304         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67305         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67306         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67307         UnixWare 7.1.1.
67308
67309         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67310         rather than AC_CACHE_VAL.
67311
67312 2001-02-17  Jim Meyering  <meyering@lucent.com>
67313
67314         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67315         around included file name.
67316
67317         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67318
67319         * lib/strftime.c: Update from GNU libc (the only changes were to
67320         comments).
67321
67322 2001-02-17  Jim Meyering  <meyering@lucent.com>
67323
67324         * lib/regex.c: Update from libc.
67325
67326 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67327
67328         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67329         clash.
67330
67331 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67332
67333         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67334         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67335         Reported by Mark Hounschell via Paul Eggert.
67336
67337 2001-02-07  Jim Meyering  <meyering@lucent.com>
67338
67339         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67340
67341 2001-02-05  Jim Meyering  <meyering@lucent.com>
67342
67343         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67344         it includes the patch required for `large file' support with at least
67345         HP-UX's 10.20 /bin/cc.
67346
67347 2001-02-03  Jim Meyering  <meyering@lucent.com>
67348
67349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67350         AS_IF, now that it works once again (mysteriously).
67351         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67352
67353 2001-01-30  Jim Meyering  <meyering@lucent.com>
67354
67355         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67356         * m4/chown.m4: Rename conftestchown to conftest.chown.
67357         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67358         s/conftestdir2/conftest.d2/.
67359         * m4/utimes.m4: s/conftestdata/conftest.data/
67360         Inspired by Pavel Roskin's change in autoconf.
67361
67362 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67363
67364         * lib/config.charset: Update for FreeBSD 4.2.
67365
67366 2001-01-27  Jim Meyering  <meyering@lucent.com>
67367
67368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67369         a use of AS_IF.
67370         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67371
67372 2001-01-26  Jim Meyering  <meyering@lucent.com>
67373
67374         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67375         quotearg.c includes it.
67376
67377 2001-01-26  Jim Meyering  <meyering@lucent.com>
67378
67379         * lib/quotearg.c: Include stddef.h.
67380         * lib/quote.c: Include stddef.h.
67381         Reported by Axel Kittenberger.
67382
67383         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67384         line in double quotes so that it evokes a better diagnostic.
67385         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67386         Reported by Axel Kittenberger.
67387
67388 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67389
67390         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67391         as if it was a `charset'.
67392
67393 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67394
67395         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67396         has const.
67397
67398 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67399
67400         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67401         to avoid a warning.  Add back 'const' to inptr.
67402
67403 2001-01-20  Jim Meyering  <meyering@lucent.com>
67404
67405         Be sure that headers are checked before used in code compiled
67406         for the type checks.
67407         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67408         In place of that, invoke jm_CHECK_ALL_TYPES.
67409         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67410         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67411         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67412         The check for ssize_t was mistakenly run before the test for unistd.h.
67413
67414         The configure-time check for stdbool.h was missing.
67415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67416         (jm_PREREQ_HASH): New function.
67417
67418 2001-01-17  Jim Meyering  <meyering@lucent.com>
67419
67420         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67421         for autoconf-2.49c.
67422         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67423
67424 2001-01-16  Jim Meyering  <meyering@lucent.com>
67425
67426         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67427         From Bruno Haible.
67428
67429 2001-01-14  Jim Meyering  <meyering@lucent.com>
67430
67431         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67432         foo and bar.  Create conftestdir/ in the script, not in the C code.
67433         Remove directories in the script, not in the C code.
67434         Remove conftestdir{,2} before trying to create the directory.
67435         Make the entire configure script fail if the mkdir fails.
67436
67437 2001-01-14  Jim Meyering  <meyering@lucent.com>
67438
67439         * lib/rename.c: New file.  From Volker Borchert.
67440         Include stdlib.h, string.h or strings.h, and xalloc.h.
67441         Use strip_trailing_slashes rather than open-coding it.
67442
67443 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67444
67445         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67446
67447 2001-01-03  Jim Meyering  <meyering@lucent.com>
67448
67449         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67450         of local `inptr' to avoid warning with some system declarations of
67451         iconv.
67452
67453 2001-01-02  Volker Borchert  <bt@teknon.de>
67454
67455         * m4/rename.m4: New file.
67456         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67457
67458 2001-01-01  Jim Meyering  <meyering@lucent.com>
67459
67460         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67461         even on systems with utmpx.h.  It's necessary for the declaration of
67462         utmp's ut_user member.  Reported by Andreas Jaeger.
67463
67464         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67465         available. They are required for the declarations of getgrgid and
67466         getpwuid resp.
67467         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67468         Reported by Andreas Jaeger.
67469
67470 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67471
67472         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67473         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67474         so `make install' also works in VPATH builds.
67475
67476 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67477
67478         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67479         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67480         can be used in subdirectories.
67481
67482 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67483
67484         * lib/modechange.c: Do not assume that mode_t uses the
67485         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67486         the other-execute bit of FOO even if S_IXOTH != 1.
67487
67488         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67489         WOTH, XOTH, ALLM): New macros.
67490         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67491          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67492         Use them.
67493         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67494         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67495         (mode_compile):
67496         No need to use uintmax_t; unsigned long is long enough.
67497         Don't bother to get suffix since we don't use it.
67498
67499 2000-12-26  Jim Meyering  <meyering@lucent.com>
67500
67501         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67502         better with autoheader.
67503
67504 2000-12-24  Jim Meyering  <meyering@lucent.com>
67505
67506         * lib/hash.c (is_prime): Return explicit boolean values.
67507         (hash_get_first): Return NULL to appease Irix5.6's 89.
67508         Reported by Nelson Beebe.
67509
67510 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67511
67512         * lib/localcharset.c (locale_charset): Add support for Win32.
67513
67514 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67515
67516         * lib/physmem.h, lib/physmem.c: New files.
67517
67518         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67519         (noinst_HEADERS): Add physmem.h.
67520
67521         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67522         't' for compatibility with Solaris 8 sort.
67523
67524 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67525
67526         * lib/config.charset: Add support for BeOS.
67527
67528 2000-12-17  Jim Meyering  <meyering@lucent.com>
67529
67530         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67531         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67532
67533 2000-12-16  Jim Meyering  <meyering@lucent.com>
67534
67535         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67536         N and M) would have treated it like `chown N:N FILE'.
67537
67538         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67539
67540 2000-12-16  Jim Meyering  <meyering@lucent.com>
67541
67542         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67543         SHELLS_FILE to a file name that's useful on djgpp systems.
67544         Include stdlib.h.
67545         (ADDITIONAL_DEFAULT_SHELLS): Define.
67546         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67547         Based mostly on a patch from Prashant TR.
67548
67549 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67550
67551         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67552         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67553         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67554
67555 2000-12-08  Andreas Schwab  <schwab@suse.de>
67556
67557         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67558         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67559
67560 2000-12-07  Jim Meyering  <meyering@lucent.com>
67561
67562         * lib/stripslash.c (ISSLASH): Define.
67563         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67564         `/'.
67565         From Prashant TR.
67566
67567         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67568         (dir_name_r): Declare this function as static.
67569         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67570         manifest itself on a name containing a mix of slashes and
67571         backslashes.
67572         Make this function work with names starting with a DOS-style
67573         drive letter and colon prefix.
67574         (dir_name): Append `.' if necessary.
67575         Based mostly on patches from Prashant TR and Eli Zaretskii.
67576
67577         * lib/dirname.h (dir_name_r): Remove prototype.
67578
67579 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67580
67581         * m4/off_t-format.m4: Remove this file.
67582         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67583
67584 2000-12-06  Jim Meyering  <meyering@lucent.com>
67585
67586         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67587         replacement strtoull, we may well need the replacement strtoul, too.
67588         Check for declarations of strtoul and strtoull.
67589         Check for strtol.  Mainly as a cue to cause automake to include
67590         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67591         Check for limits.h -- strtol.c needs it.
67592
67593 2000-12-05  Jim Meyering  <meyering@lucent.com>
67594
67595         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67596
67597 2000-12-04  Jim Meyering  <meyering@lucent.com>
67598
67599         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67600         Also include memory.h, stdlib.h, unistd.h if appropriate.
67601         Reported by Andreas Jaeger (conflicting declaration of malloc).
67602
67603 2000-12-02  Jim Meyering  <meyering@lucent.com>
67604
67605         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67606         * m4/jm-macros.m4 (jm_MACROS): require it.
67607
67608 2000-12-02  Jim Meyering  <meyering@lucent.com>
67609
67610         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67611
67612 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67613
67614         * lib/memrchr.c: Include <config.h> before any system include file.
67615
67616 2000-11-30  Jim Meyering  <meyering@lucent.com>
67617
67618         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67619
67620 2000-11-30  Jim Meyering  <meyering@lucent.com>
67621
67622         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67623
67624 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67625
67626         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67627
67628 2000-11-26  Jim Meyering  <meyering@lucent.com>
67629
67630         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67631
67632 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67633
67634         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67635         size of (size_t) -1; it's not portable.
67636
67637 2000-11-17  Jim Meyering  <meyering@lucent.com>
67638
67639         * lib/strstr.c: Update from GNU libc.
67640
67641 2000-11-17  Akim Demaille  <akim@epita.fr>
67642
67643         * lib/obstack.h: Formatting changes.
67644         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67645         prevent type checking.
67646         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67647         cast the value to (void *): assigning a `foo *' to a `void *'
67648         variable is valid.
67649         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67650
67651 2000-11-16  Jim Meyering  <meyering@lucent.com>
67652
67653         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67654
67655 2000-11-11  Jim Meyering  <meyering@lucent.com>
67656
67657         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67658
67659 2000-11-10  Jim Meyering  <meyering@lucent.com>
67660
67661         * lib/obstack.h: Update from GNU libc.
67662         * lib/obstack.c: Likewise.
67663
67664 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67665
67666         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67667
67668 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67669
67670         * lib/getusershell.c (setusershell): Use rewind rather than
67671         fseek/fseeko, to avoid configuration hassles with fseeko.
67672         Don't bother opening SHELLS_FILE if shellstream is NULL;
67673         it's not necessary.
67674
67675 2000-11-05  Jim Meyering  <meyering@lucent.com>
67676
67677         * lib/makepath.h (make_dir): Declare.
67678         * lib/makepath.c (make_dir): Remove `static' attribute.
67679         Tweak a comment.
67680
67681 2000-11-04  Jim Meyering  <meyering@lucent.com>
67682
67683         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67684
67685 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67686
67687         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67688         last one in a bucket, advance to the next bucket.
67689
67690 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67691
67692         * lib/fnmatch.c: Do not comment out all the code if we are using
67693         the GNU C library, because in some cases we are replacing buggy
67694         code in the GNU C library itself.
67695
67696 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67697
67698         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67699         (regex_compile): Catch bogus \(\1\).
67700
67701 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67702
67703         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67704         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67705         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67706
67707 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67708
67709         * lib/error.h, getline.h, modechange.h:
67710         Remove "2000" from Copyright line, as the file hasn't been
67711         changed this year other than in the copyright notice.
67712
67713         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67714         was changed this year.
67715
67716 2000-10-29  Jim Meyering  <meyering@lucent.com>
67717
67718         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67719         renaming.
67720         * m4/ls-mntd-fs.m4: Likewise
67721
67722 2000-10-29  Jim Meyering  <meyering@lucent.com>
67723
67724         * lib/xstat.in: Fix grammar in comment.
67725
67726 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67727
67728         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67729         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67730         doesn't define __restrict_arr.
67731
67732 2000-10-28  Jim Meyering  <meyering@lucent.com>
67733
67734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67735         (jm_PREREQ_MEMCHR): New function.
67736
67737 2000-10-28  Jim Meyering  <meyering@lucent.com>
67738
67739         * lib/memchr.c: Update from libc.
67740         Adjust for portability:
67741         [HAVE_STDLIB_H]: Include stdlib.h.
67742         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67743         Undef __memchr, too.
67744         [!weak_alias]: Define __memchr to memchr.
67745
67746         * lib/regex.c: Update from libc.
67747         * lib/regex.h: Likewise.
67748         * lib/getopt1.c: Likewise.
67749         * lib/memcmp.c: Likewise.
67750
67751         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67752         Avoid using fseek, when possible -- it's broken by design.
67753         Patch by Ulrich Drepper.
67754
67755 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67756
67757         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67758         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67759         Giving in to popular pressure to shut up the compiler with casts.
67760
67761 2000-10-26  Jim Meyering  <meyering@lucent.com>
67762
67763         * lib/strftime.c: Update from libc.
67764
67765 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67766
67767         * regex.c: More `unsigned char' -> `re_char' changes.
67768         Also change several `int' into `re_wchar_t'.
67769         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67770         (PUSH_FAILURE_POINTER): Don't cast any more.
67771         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67772         We want GCC to complain, since this piece of code makes
67773         re_match non-reentrant, which *should* be fixed.
67774         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67775         (EXTEND_BUFFER): Use RETALLOC.
67776         (SET_LIST_BIT): Don't cast.
67777         (re_wchar_t): New type.
67778         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67779         that those two functions will always properly return.
67780         (IMMEDIATE_QUIT_CHECK): Cast to void.
67781         (analyse_first): Use recursion rather than an explicit stack.
67782         (re_compile_fastmap): Can't fail anymore.
67783         (re_search_2): Don't check re_compile_fastmap for failure.
67784         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67785         Now also sets the new value (passed in a new argument).
67786         (re_match_2_internal): Use it.
67787         Also, use a new var `reg' of type size_t when looping through regs
67788         rather than reuse the inappropriate `mcnt'.
67789
67790 2000-10-25  Jim Meyering  <meyering@lucent.com>
67791
67792         * lib/obstack.c: Update from libc.
67793
67794 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67795
67796         * regex.c (regex_compile): Change the way of handling a range from
67797         a char less than 256 to a char not less than 256.
67798
67799 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67800
67801         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67802         NT-Emacs only.
67803         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67804         so that re_search functions only quit when callers expect them to.
67805
67806 2000-10-23  Jim Meyering  <meyering@lucent.com>
67807
67808         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67809         wrong.  That set_locale call must not have any side effects.
67810         From Paul Eggert.
67811
67812 2000-10-22  Jim Meyering  <meyering@lucent.com>
67813
67814         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67815         [CYCLIC]: Remove now-unused definition.
67816
67817         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67818         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67819         Suggestion from Ulrich Drepper.
67820
67821 2000-10-21  Jim Meyering  <meyering@lucent.com>
67822
67823         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67824         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67825         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67826
67827 2000-10-21  Jim Meyering  <meyering@lucent.com>
67828
67829         * lib/dirname.c (memrchr): Declare if necessary.
67830         (dir_name): Remove the restriction that there be no
67831         trailing slashes.  Now, this code skips past them, effectively
67832         ignoring them.
67833         [TEST_DIRNAME] (main): New unit tests.
67834
67835         * lib/memrchr.c: New file from GNU libc.
67836         Undef __memrchr, too.
67837         [!weak_alias]: Define __memrchr to memrchr.
67838         Guard weak_alias use with `#ifdef weak_alias'.
67839
67840 2000-10-21  Jim Meyering  <meyering@lucent.com>
67841
67842         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67843         (dir_name): Use dir_name_r.
67844         * lib/dirname.h (dir_name_r): Declare it.
67845
67846 2000-10-17  Jim Meyering  <meyering@lucent.com>
67847
67848         * lib/quote.h (PARAMS): Define and use.
67849         Reported by Akim Demaille.
67850
67851         * lib/getopt.c: Update from libc.
67852
67853 2000-10-16  Jim Meyering  <meyering@lucent.com>
67854
67855         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67856         setlocale.
67857         From Jan Fedak.
67858
67859 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67860
67861         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67862
67863 2000-09-25  Jim Meyering  <meyering@lucent.com>
67864
67865         * lib/md5.h (rol): Define (from GnuPG).
67866
67867         * lib/sha.c: Give credit (GnuPG) where due.
67868         (M): Use rol rather than open-coding it.
67869         Add a FIXME comment.
67870
67871 2000-09-21  Jim Meyering  <meyering@lucent.com>
67872
67873         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67874         Reported by Michael Stone.
67875
67876 2000-09-20  Jim Meyering  <meyering@lucent.com>
67877
67878         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67879         (noinst_HEADERS): Add sha.h.
67880         Based on code from Scott G. Miller and from GnuPG.
67881
67882 2000-09-18  Jim Meyering  <meyering@lucent.com>
67883
67884         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67885         LIBS. Otherwise, everyone ends up linking with -lelf for some
67886         configurations.
67887         Reported by Mike Stone.
67888
67889 2000-09-15  Jim Meyering  <meyering@lucent.com>
67890
67891         * lib/regex.c: Update from libc.
67892
67893 2000-09-10  Jim Meyering  <meyering@lucent.com>
67894
67895         * lib/getopt.c (_getopt_internal): Update from glibc.
67896
67897 2000-09-09  Jim Meyering  <meyering@lucent.com>
67898
67899         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67900         think it should be used as a general replacement for isascii.
67901         * lib/fnmatch.c: Likewise.
67902         * lib/mbswidth.c: Likewise
67903         * lib/regex.c: Likewise.
67904
67905         Don't use atoi.
67906         * lib/userspec.c: Include sys/param.h and limits.h.
67907         Include xstrtol.h.
67908         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67909         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67910         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67911         UID, GID.  Check range.
67912
67913 2000-09-06  Jim Meyering  <meyering@lucent.com>
67914
67915         * lib/getopt.c (_getopt_internal): Update from glibc.
67916
67917 2000-08-30  Jim Meyering  <meyering@lucent.com>
67918
67919         * lib/strftime.c: Merge in changes from GNU libc.
67920
67921 2000-08-26  Jim Meyering  <meyering@lucent.com>
67922
67923         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
67924         * m4/fpending.m4: New file.
67925
67926 2000-08-26  Jim Meyering  <meyering@lucent.com>
67927
67928         * lib/closeout.c: Include "__fpending.h".
67929         (close_stdout_status): Return right away if there's nothing to flush.
67930
67931         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
67932         * lib/__fpending.c: New file.
67933         * lib/__fpending.h: New file.
67934
67935 2000-08-20  Jim Meyering  <meyering@lucent.com>
67936
67937         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
67938         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
67939         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
67940
67941 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
67942
67943         Improve fileutils installation on systems where running
67944         programs (like install) can't be unlinked.
67945         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
67946         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
67947
67948 2000-08-07  Paul Eggert  <eggert@twinsun.com>
67949
67950         Standardize on "memory exhausted" instead of "Memory exhausted"
67951         or "virtual memory exhausted".
67952         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
67953         "virtual memory exhausted".
67954         * lib/same.c (same_name): Invoke xalloc_die instead of printing
67955         our own message.
67956         * lib/userspec.c (parse_user_spec): Likewise.
67957         * lib/bumpalloc.h: comment fix
67958         * lib/same.c, userspec.c: Include xalloc.h.
67959
67960         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
67961         not char *const and pointing to a constant array.
67962         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
67963         (xrealloc): Comment fix.
67964
67965         * lib/userspec.c (parse_user_spec):
67966         Don't translate a message until just before returning,
67967         to avoid unnecessary translation.
67968
67969 2000-08-07  Jim Meyering  <meyering@lucent.com>
67970
67971         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
67972         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
67973         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
67974         getgroups.c, gethostname.c, getopt.h, group-member.c,
67975         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
67976         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
67977         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
67978         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
67979         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
67980         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
67981         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
67982         yesno.c: Back out Copyright date changes for each file with no change
67983         this year.  This eases coordination with other programs using the same
67984         source code modules.  From Paul Eggert.
67985
67986 2000-08-06  Paul Eggert  <eggert@twinsun.com>
67987
67988         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
67989         not char, for compatibility with glibc 2.1.3 strftime.c.
67990
67991 2000-08-03  Greg McGary  <greg@mcgary.org>
67992
67993         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
67994         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
67995         (EXTEND_BUFFER): Use them.
67996
67997 2000-08-01  Jim Meyering  <meyering@lucent.com>
67998
67999         * lib/dirname.c (ISSLASH): Define.
68000         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68001         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68002         both `\' and `/' may be use as path separators.
68003         Based on a patch from Prashant TR.
68004
68005 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68006
68007         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68008         slot vector a constant, since it might get modified.
68009
68010 2000-07-31  Jim Meyering  <meyering@lucent.com>
68011
68012         * lib/xmalloc.c: Use `virtual memory exhausted', not
68013         `Memory exhausted'.
68014         * lib/obstack.c (print_and_abort): Likewise.
68015
68016 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68017
68018         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68019         buffer, so that the caller can always quote one small
68020         component of a "memory exhausted" message in slot 0.
68021         From a suggestion by Jim Meyering.
68022
68023 2000-07-30  Jim Meyering  <meyering@lucent.com>
68024
68025         * lib/makepath.c (make_path): Quote the other instance, too.
68026
68027         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68028         (STATIC_BUF_SIZE): Define.
68029         (quotearg_n_options): Use only statically allocated storage when
68030         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68031         than STATIC_BUF_SIZE.
68032
68033 2000-07-29  Jim Meyering  <meyering@lucent.com>
68034
68035         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68036         * lib/dirname.c (dir_name): Likewise.
68037
68038         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68039         `/'.
68040
68041         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68042         (dir_name): Assert that there are no trailing slashes.
68043
68044 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68045
68046         * lib/mbswidth.h (mbswidth): Add a flags argument.
68047         (mbswidth): New declaration.
68048         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68049         * lib/mbswidth.c (mbswidth): Add a flags argument.
68050         (mbsnwidth): New function.
68051
68052 2000-07-24  Jim Meyering  <meyering@lucent.com>
68053
68054         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68055
68056 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68057
68058         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68059
68060 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68061
68062         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68063         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68064         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68065         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68066         invoke multibyte primitives.
68067
68068 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68069
68070         * lib/quotearg.c:
68071         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68072         so that mbstate_t is always defined.
68073
68074         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68075         be 1 in at least one GCC installation, and this configuration
68076         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68077         performance on hosts that have mbrtowc but have only unibyte
68078         locales, but I assume these hosts are rare.
68079
68080 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68081
68082         * lib/mbswidth.c (_XOPEN_SOURCE):
68083         Don't define; this causes problems on Solaris 7.
68084         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68085
68086 2000-07-23  Jim Meyering  <meyering@lucent.com>
68087
68088         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68089         too: getgrgid, getpwuid, getuid.
68090
68091 2000-07-23  Jim Meyering  <meyering@lucent.com>
68092
68093         * lib/basename.c (base_name): Add an assertion.
68094
68095 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68096
68097         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68098         shadow its mbsinit function.
68099
68100 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68101
68102         * lib/mbswidth.h: New file.
68103         * lib/mbswidth.c: New file.
68104         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68105         (noinst_HEADERS): Add mbswidth.h.
68106
68107 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68108
68109         * lib/config.charset: Add support for FreeBSD. Improve support for
68110         HP-UX and IRIX 6.
68111
68112 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68113
68114         * m4/mbswidth.m4: New file.
68115         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68116
68117 2000-07-15  Jim Meyering  <meyering@lucent.com>
68118
68119         * lib/makepath.c: Include quote.h.
68120         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68121         corresponding argument in a `quote (...)' call.
68122         Give better diagnostics.
68123
68124         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68125         (noinst_HEADERS): Add quote.h.
68126
68127         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68128         from tar's src/misc.c.
68129         * lib/quote.h: New file.  Prototypes for same.
68130
68131 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68132
68133         From a suggestion by Bruno Haible.
68134         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68135         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68136         to decide whether to define the BeOS workaround macro;
68137         this adjusts to the change to AC_MBSTATE_T.
68138
68139 2000-07-14  Jim Meyering  <meyering@lucent.com>
68140
68141         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68142         jm_AC_TYPE_UINTMAX_T.
68143
68144 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68145
68146         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68147
68148         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68149         quotearg_buffer_restyled): Add support for
68150         clocale_quoting_style.  Undo previous change to
68151         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68152         and "{RIGHT QUOTATION MARK}" msgids.
68153
68154 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68155
68156         From a suggestion by Bruno Haible.
68157         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68158         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68159         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68160         and mbstate_t, to a single-part test that simply defines mbstate_t.
68161         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68162         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68163
68164 2000-07-10  Jim Meyering  <meyering@lucent.com>
68165
68166         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68167
68168         * m4/gnu-source.m4: Output to confdefs.h directly.
68169         Suggestion from Akim Demaille.
68170
68171 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68172
68173         The old behavior of quoting `like this' doesn't look good with
68174         newer, ISO-style fonts.  See:
68175         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68176
68177         Instead, quote "like this" by default.  Let the translator
68178         tailor the locale-specific quoting behavior by providing
68179         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68180
68181         * lib/quotearg.c (N_): New macro.
68182         (gettext_default): New function.
68183         (quotearg_buffer_restyled): Use
68184         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68185         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68186
68187 2000-07-09  Jim Meyering  <meyering@lucent.com>
68188
68189         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68190         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68191
68192         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68194
68195 2000-07-09  Jim Meyering  <meyering@lucent.com>
68196
68197         * lib/Most files: Update copyright dates to include 2000.
68198
68199 2000-07-08  Jim Meyering  <meyering@lucent.com>
68200
68201         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68202         if not defined.
68203         (xgethostname): Remove now-unnecessary #ifdef.
68204         Move declaration of `err' into loop where it's used.
68205
68206 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68207         and Bruno Haible  <haible@clisp.cons.org>
68208
68209         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68210         only if the test for an object-type mbstate_t fails.  This
68211         prevents us from mistakenly reporting that mbstate_t is a
68212         system object type after we "#define mbstate_t int" to work
68213         around its lack.
68214
68215 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68216         and Bruno Haible  <haible@clisp.cons.org>
68217
68218         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68219
68220 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68221
68222         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68223         to strerror_r.
68224         Include <ctype.h> for use of isalpha.
68225
68226 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68227
68228         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68229         by allocating a larger buffer. Test the gethostname return value for
68230         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68231         returns an error and ENAMETOOLONG isn't defined.
68232
68233 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68234
68235         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68236         dimension.
68237
68238 2000-07-04  Jim Meyering  <meyering@lucent.com>
68239
68240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68241         of the deprecated AC_CHECKING.
68242
68243 2000-07-04  Jim Meyering  <meyering@lucent.com>
68244
68245         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68246         Reported by Bruno Haible.
68247
68248 2000-07-04  Jim Meyering  <meyering@lucent.com>
68249
68250         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68251         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68252         lacks mbrtowc.
68253
68254 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68255
68256         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68257         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68258
68259 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68260         and Bruno Haible  <haible@clisp.cons.org>
68261
68262         * lib/quotearg.c (mbrtowc):
68263         Assign to *pwc, and return 1 only if result is nonzero.
68264         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68265
68266 2000-07-03  Jim Meyering  <meyering@lucent.com>
68267
68268         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68269
68270 2000-07-03  Jim Meyering  <meyering@lucent.com>
68271
68272         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68273         This is necessary to get a definition of e.g., UTMP_FILE on
68274         HP-UX 10.20.
68275         From Bob Proulx.
68276
68277 2000-07-02  Jim Meyering  <meyering@lucent.com>
68278
68279         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68280
68281         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68282         AC_LIBOBJ(function_name).
68283         * m4/chown.m4: Likewise.
68284         * m4/fnmatch.m4: Likewise.
68285         * m4/ftruncate.m4: Likewise.
68286         * m4/getgroups.m4: Likewise.
68287         * m4/getline.m4: Likewise.
68288         * m4/group-member.m4: Likewise.
68289         * m4/jm-macros.m4: Likewise.
68290         * m4/lstat.m4: Likewise.
68291         * m4/malloc.m4: Likewise.
68292         * m4/memcmp.m4: Likewise.
68293         * m4/nanosleep.m4: Likewise.
68294         * m4/putenv.m4: Likewise.
68295         * m4/realloc.m4: Likewise.
68296         * m4/regex.m4: Likewise.
68297         * m4/stat.m4: Likewise.
68298         * m4/strftime.m4: Likewise.
68299
68300 2000-07-02  Jim Meyering  <meyering@lucent.com>
68301
68302         * lib/quotearg.c (mbstate_t): Don't define here.
68303
68304 2000-07-02  Jim Meyering  <meyering@lucent.com>
68305
68306         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68307
68308 2000-07-01  Jim Meyering  <meyering@lucent.com>
68309
68310         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68311
68312 2000-07-01  Jim Meyering  <meyering@lucent.com>
68313
68314         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68315         problem.
68316
68317 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68318
68319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68320         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68321
68322 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68323
68324         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68325         per change in ../m4/ls-mntd-fs.m4.
68326         (read_filesystem_list): Ignore symbolic links.
68327
68328 2000-06-29  Jim Meyering  <meyering@lucent.com>
68329
68330         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68331         for declaration of strcmp.
68332
68333         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68334
68335         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68336         Avoid warning by casting result to `char *' to remove `const'.
68337
68338 2000-06-28  Jim Meyering  <meyering@lucent.com>
68339
68340         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68341         included by quotearg.c, for which we perform this test.  From
68342         Bruno Haible.
68343
68344 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68345
68346         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68347         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68348         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68349
68350 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68351
68352         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68353
68354 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68355
68356         savedir now sets errno on failure and invokes xmalloc to get memory.
68357         Fix a couple of other minor bugs while we're at it.
68358
68359         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68360         (NAMLEN): Remove macro.
68361         (malloc, realloc): Remove decls.
68362         (stpcpy): Likewise.
68363         ("xalloc.h"): Include.
68364         (NAME_SIZE_DEFAULT): New macro.
68365         (savedir): Use xmalloc / xrealloc to allocate memory.
68366         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68367         Skip "" directory entries.
68368         Use strlen to calculate directory entry length, since the old method
68369         is rarely used these days and isn't worth supporting.
68370         Don't use a pointer after freeing it.
68371         Check for integer overflow when calculating allocation size.
68372         Use memcpy to copy entries, instead of stpcpy.
68373         Set errno properly when returning NULL.
68374         Check for readdir error.
68375
68376 2000-06-26  Jim Meyering  <meyering@lucent.com>
68377
68378         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68379
68380 2000-06-25  Jim Meyering  <meyering@lucent.com>
68381
68382         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68383         Linux header bug when _XOPEN_SOURCE is defined to 500.
68384
68385 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68386
68387         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68388         deficiency.
68389
68390 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68391
68392         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68393         Include xalloc.h.
68394         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68395
68396 2000-06-24  Jim Meyering  <meyering@lucent.com>
68397
68398         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68399         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68400         for which strerror does return char*, but which lacks a conveniently
68401         accessible declaration of the function.  If the compile-test says
68402         strerror_r doesn't work, then resort to a `run'-test that works on
68403         BeOS and segfaults on DEC Unix.
68404
68405 2000-06-24  Jim Meyering  <meyering@lucent.com>
68406
68407         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68408
68409 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68410
68411         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68412         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68413
68414 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68415
68416         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68417         (mbrtowc, mbstate_t): Define substitutes if
68418         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68419         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68420         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68421
68422 2000-06-23  Jim Meyering  <meyering@lucent.com>
68423
68424         * m4/afs.m4: Add missing AC_MSG_RESULT.
68425         Reported by Bruno Haible.
68426
68427         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68428         Suggestion from Bruno Haible.
68429
68430 2000-06-23  Jim Meyering  <meyering@lucent.com>
68431
68432         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68433
68434 2000-06-21  Jim Meyering  <meyering@lucent.com>
68435
68436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68437
68438 2000-06-21  Jim Meyering  <meyering@lucent.com>
68439
68440         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68441         (noinst_HEADERS): Add getstr.h.
68442
68443         * lib/getline.c (getstr): Move into a separate file.
68444         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68445         the following changes: new parameter, delim2; both delim[12]
68446         parameters have type `int', not `char'.  The latter would lose
68447         with 8-bit delimiters.
68448         * lib/getstr.h: New file.
68449
68450 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68451
68452         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68453         than 1024, return a memory chunk of least possible size, instead
68454         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68455         Use free/xmalloc instead of xrealloc to avoid copying for very long
68456         paths.
68457
68458 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68459
68460         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68461         the empty string.
68462
68463 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68464
68465         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68466         address, not strdup.  Include <stdlib.h> and don't declare free().
68467
68468 2000-06-19  Jim Meyering  <meyering@lucent.com>
68469
68470         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68471
68472 2000-06-18  Jim Meyering  <meyering@lucent.com>
68473
68474         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68475
68476         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68477         `checking whether...' message to be consistent with that of the
68478         lstat test.
68479
68480 2000-06-18  Jim Meyering  <meyering@lucent.com>
68481
68482         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68483         Besides, these days every porting target provides a mkdir function.
68484
68485         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68486         needed. (this snippet comes from src/system.h).
68487
68488 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68489
68490         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68491
68492 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68493
68494         * lib/human.c (adjust_value): New function.
68495         (human_readable_inexact): Apply rounding style even when
68496         printing approximate values.
68497
68498 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68499
68500         * lib/human.c (human_readable_inexact): Allow an input block
68501         size that is not a multiple of the output block size, and vice versa.
68502         Reported by Piergiorgio Sartor.
68503
68504 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68505
68506         * lib/getdate.y (get_date): Apply relative times after time
68507         zone indicator, not before.  Reported by Todd A. Jacobs.
68508
68509 2000-06-13  Jim Meyering  <meyering@lucent.com>
68510
68511         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68512
68513         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68514
68515 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68516
68517         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68518
68519 2000-06-12  Jim Meyering  <meyering@lucent.com>
68520
68521         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68522         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68523         optional argument.
68524         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68525         the optional argument, `lib'.
68526
68527 2000-06-08  Jim Meyering  <meyering@lucent.com>
68528
68529         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68530
68531 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68532
68533         Rewrite largefile configuration so that we don't need to run
68534         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68535         AC_CANONICAL_HOST in configure.in -- jmm]
68536
68537         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68538         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68539         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68540         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68541         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68542         All uses changed.
68543         Instead of inspecting the output of getconf, try to compile the
68544         test program without and with the macro definition.
68545         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68546         for getconf.  Instead, check for the needed flags by compiling
68547         test programs.
68548
68549 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68550
68551         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68552
68553 2000-06-04  Jim Meyering  <meyering@lucent.com>
68554
68555         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68556         SunOS 4.1.4 for which gid_t is an unsigned type.
68557
68558 2000-06-03  Jim Meyering  <meyering@lucent.com>
68559
68560         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68561         now that autoconf requires that.
68562
68563         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68564         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68565         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68566
68567 2000-06-03  Jim Meyering  <meyering@lucent.com>
68568
68569         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68570
68571 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68572
68573         * m4/glibc21.m4: New file.
68574         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68575
68576 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68577
68578         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68579         newer, don't install charset.alias.
68580         * lib/config.charset: Change the Linux/glibc rules so they become empty
68581         on glibc-2.1 or newer.
68582
68583 2000-06-02  Jim Meyering  <meyering@lucent.com>
68584
68585         * lib/mountlist.c: Back out last change.  Instead, do this...
68586         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68587         me_dummy member using the same `ignore'-testing code.
68588         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68589         fs_type strings.
68590         From Mark D. Roth.
68591
68592 2000-05-29  Jim Meyering  <meyering@lucent.com>
68593
68594         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68595         mounts with the `ignore' attribute.  Based on a patch from
68596         Mark D. Roth.
68597
68598 2000-05-28  Jim Meyering  <meyering@lucent.com>
68599
68600         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68601         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68602         * m4/stat.m4: Likewise.
68603         * m4/lstat.m4: Likewise.
68604         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68605
68606         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68607         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68608
68609 2000-05-26  Jim Meyering  <meyering@lucent.com>
68610
68611         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68612
68613 2000-05-24  Jim Meyering  <meyering@lucent.com>
68614
68615         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68616         autoconf requires that.
68617         * m4/lib-check.m4: Likewise.
68618         * m4/jm-macros.m4: Likewise.
68619         * m4/strftime.m4: Likewise.
68620
68621         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68622         AC_CHECK_DECLS, now that autoconf requires that.
68623
68624 2000-05-22  Jim Meyering  <meyering@lucent.com>
68625
68626         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68627         * m4/lstat.m4: Likewise.
68628
68629 2000-05-22  Jim Meyering  <meyering@lucent.com>
68630
68631         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68632
68633 2000-05-20  Jim Meyering  <meyering@lucent.com>
68634
68635         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68636         (jm_PREREQ): Use it.
68637
68638 2000-05-18  Jim Meyering  <meyering@lucent.com>
68639
68640         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68641         back, too, since it may have been modified by allocate_entry.
68642         (hash_delete): Rewrite to use neither the assignment operator
68643         nor the comma operator in an if-expression.
68644
68645 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68646
68647         * lib/closeout.c:
68648         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68649         Remove; no longer needed.
68650         "quotearg.h": Add include.
68651         (file_name): Do not bother to explicitly initialize to NULL; it's less
68652         efficient on some hosts.
68653         (close_stdout_status): Remove test as to whether stdout was already
68654         closed; it breaks for the case "echo x | sort >&-".
68655         Quote file name colons.
68656         Do not assume that _("write error") lacks format strings.
68657
68658 2000-05-15  Jim Meyering  <meyering@lucent.com>
68659
68660         * lib/version-etc.c (version_etc_copyright): Update the copyright
68661         string used in all --version output.
68662
68663 2000-05-14  Jim Meyering  <meyering@lucent.com>
68664
68665         * lib/closeout.c (close_stdout_set_file_name): New function.
68666         (close_stdout_status): Use new file-scoped global.
68667         Return right away if fstat says the stdout file descriptor is invalid.
68668         * lib/closeout.h (close_stdout_set_file_name): Declare.
68669
68670 2000-05-10  Jim Meyering  <meyering@lucent.com>
68671
68672         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68673         (close_stdout_set_status): New function.
68674         * lib/closeout.h (close_stdout_set_status): Declare.
68675
68676 2000-05-09  Jim Meyering  <meyering@lucent.com>
68677
68678         * m4/gettext.m4: Rename this...
68679         * m4/libintl.m4: ...to this.
68680
68681 2000-05-08  Jim Meyering  <meyering@lucent.com>
68682
68683         * lib/long-options.c: Don't include closeout.h.
68684         (parse_long_options): Don't call close_stdout for --version.
68685
68686 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68687
68688         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68689         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68690         2.1.3 bug.  This avoids a clash when files like regex.c define
68691         _GNU_SOURCE.
68692
68693 2000-05-06  Jim Meyering  <meyering@lucent.com>
68694
68695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68696         (AC_REPLACE_FUNCS): Add strnlen.
68697
68698         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68699         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68700
68701         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68702         AC_SEARCH_LIBS call for nanosleep.
68703         (LIB_NANOSLEEP): Set and AC_SUBST.
68704
68705 2000-05-06  Jim Meyering  <meyering@lucent.com>
68706
68707         * lib/strnlen.c: Undefine __strnlen and strnlen.
68708         [!weak_alias]: Define __strnlen to strnlen.
68709
68710         * lib/atexit.c: New file, from libiberty.
68711
68712 2000-05-06  Jim Meyering  <meyering@lucent.com>
68713
68714         * lib/closeout.c (close_stdout_status): Also check for errors on the
68715         stderr stream.
68716
68717 2000-05-05  Jim Meyering  <meyering@lucent.com>
68718
68719         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68720         AC_SEARCH_LIBS call for clock_gettime.
68721         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68722
68723         * m4/search-libs.m4: Update from autoconf.
68724
68725         su doesn't work on Solaris 2.6.
68726         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68727         <shadow.h>.  Reported by Dragos Harabor.
68728
68729 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68730
68731         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68732         memcpy instead of xmalloc, xrealloc, path_concat.
68733         (locale_charset): Treat empty environment variables as absent.
68734         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68735
68736 2000-05-04  Jim Meyering  <meyering@lucent.com>
68737
68738         * lib/getopt.c: Update from glibc.
68739         * lib/obstack.c: Likewise.
68740         * lib/obstack.h: Likewise.
68741         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68742         file
68743
68744         * lib/regex.h: Likewise.
68745         * lib/strndup.c: Likewise.
68746         * lib/strnlen.c: New file, from glibc.
68747
68748 2000-05-03  Jim Meyering  <meyering@lucent.com>
68749
68750         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68751
68752 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68753
68754         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68755         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68756         compile-time test, rather than inspecting host and OS, to
68757         decide whether to define _LARGEFILE_SOURCE.
68758
68759 2000-05-01  Jim Meyering  <meyering@lucent.com>
68760
68761         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68762
68763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68764         Based on a patch from Bruno Haible.
68765
68766 2000-05-01  Jim Meyering  <meyering@lucent.com>
68767
68768         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68769
68770 2000-04-29  Jim Meyering  <meyering@lucent.com>
68771
68772         * lib/path-concat.c: Declare strdup only if it's not defined.
68773         * lib/canon-host.c: Likewise.
68774
68775 2000-04-28  Jim Meyering  <meyering@lucent.com>
68776
68777         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68778         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68779         is included first, then limits.h is included by locale.h by libintl.h.
68780         From John David Anglin.
68781
68782 2000-04-25  Jim Meyering  <meyering@lucent.com>
68783
68784         * lib/makepath.c (S_IRWXUGO): Define.
68785         (make_path): Always perform explicit chmod if MODE specifies any
68786         of the `special' permission bits.  Prompted by a bug report against
68787         install from Mate Wierdl and Joost van Baal.
68788
68789 2000-04-18  Jim Meyering  <meyering@lucent.com>
68790
68791         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68792         (jm_PREREQ): Use it.
68793
68794 2000-04-18  Jim Meyering  <meyering@lucent.com>
68795
68796         * lib/README: New file.
68797
68798         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68799         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68800
68801 2000-04-17  Jim Meyering  <meyering@lucent.com>
68802
68803         Get it right :-)
68804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68805         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68806         Suggestion from Akim Demaille.
68807
68808 2000-04-17  Jim Meyering  <meyering@lucent.com>
68809
68810         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68811         the definition of it to rpl_strftime also defined-away the system's
68812         declaration.
68813
68814 2000-04-15  Jim Meyering  <meyering@lucent.com>
68815
68816         Use `C' to denote so-called `contiguous' files, the same way
68817         that tar does.
68818         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68819         (ftypelet): Use S_ISCTG.
68820         From Michael Deutschmann.
68821
68822 2000-04-14  Jim Meyering  <meyering@lucent.com>
68823
68824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68825         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68826         clobbered.
68827
68828 2000-04-14  Jim Meyering  <meyering@lucent.com>
68829
68830         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68831
68832 2000-04-13  Jim Meyering  <meyering@lucent.com>
68833
68834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68835         AH_VERBATIM to insert required #ifndef into config.h.in.
68836         Suggestion from Akim Demaille.
68837
68838 2000-04-12  Jim Meyering  <meyering@lucent.com>
68839
68840         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68841         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68842         Christian Krackowizer.
68843
68844         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68845         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68846         (AC_SYS_LARGEFILE): Require.
68847         (AM_C_PROTOTYPES): Require.
68848
68849 2000-04-08  Jim Meyering  <meyering@lucent.com>
68850
68851         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68852         names don't conflict.  Reported by Eli Zaretskii.
68853
68854 2000-04-07  Jim Meyering  <meyering@lucent.com>
68855
68856         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68857         sys/types.h, to work around system header problems on AIX 3.2.5.
68858         From Bruno Haible.
68859
68860 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68861
68862         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68863         bug.  Deal with the different error behavior of Irix iconv.
68864
68865 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68866
68867         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68868         IRIX if the installer said otherwise.
68869
68870 2000-04-05  Jim Meyering  <meyering@lucent.com>
68871
68872         Portability tweaks required for ultrix4.3.
68873         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68874         (jm_CHECK_DECLS): Add getutent to the list of functions.
68875         (_jm_DECL_HEADERS): Add utmpx.h.
68876         From John David Anglin.
68877
68878         * m4/strftime.m4: Back out the 2000-04-02 change.
68879         Instead of that change, simply undefine putenv in the test program.
68880
68881 2000-04-05  Jim Meyering  <meyering@lucent.com>
68882
68883         Portability tweaks required for ultrix4.3.
68884         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68885         getutent.
68886         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68887         * lib/canon-host.c: Declare strdup.
68888         * lib/path-concat.c: Likewise.
68889         From John David Anglin.
68890
68891 2000-04-04  Jim Meyering  <meyering@lucent.com>
68892
68893         Be more DOS 8.3-friendly.
68894         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68895         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68896         * lib/Makefile.am: Reflect renaming.
68897         Reported by Eli Zaretskii.
68898
68899         Use a temporary file name that won't clash with `charset.alias'
68900         in the DOS 8.3 name space.
68901         * lib/Makefile.am (charset_tmp): Define.
68902         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68903         (uninstall-local): Likewise.
68904         Reported by Eli Zaretskii.
68905
68906 2000-04-03  Jim Meyering  <meyering@lucent.com>
68907
68908         * m4/gettext.m4: Fix typo in comment.
68909
68910         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68911         textutils/configure.in).  Suggestion from Paul Eggert.
68912         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68913
68914 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68915
68916         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68917         variable in the shell rather than using putenv, which isn't
68918         portable.  This avoids the configure-time inter-test dependency
68919         on the potentially-renamed putenv function.
68920
68921 2000-03-30  Paul Eggert  <eggert@twinsun.com>
68922
68923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
68924         before checking struct stat.st_blksize, so that
68925         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
68926
68927 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68928
68929         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
68930         since strftime.c uses HAVE_STRFTIME to decide whether to use
68931         the underlying strftime.
68932
68933 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68934
68935         * lib/time/strftime.c (my_strftime): Make sure we call the system
68936         strftime, not ourselves, when invoking the underlying strftime.
68937
68938 2000-03-24  Jim Meyering  <meyering@lucent.com>
68939
68940         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
68941         (charset_alias): Define.
68942         (install-exec-local): Factor out common code.
68943         (uninstall-local): Split lines longer than 80.
68944         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
68945         (SUFFIXES): Define.
68946         (.sed.in.sed): New rule.  Don't redirect directly to $@.
68947         (CLEANFILES): Add ref-add.sed and ref-del.sed.
68948
68949 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
68950
68951         * lib/config.charset: Output a line containing "Packages using this
68952         file".
68953         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
68954         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
68955         ref-del.sed): New rules.
68956
68957 2000-03-17  Jim Meyering  <meyering@lucent.com>
68958
68959         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
68960         Otherwise, include <strings.h>
68961
68962 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
68963
68964         * lib/unicodeio.c (utf8_wctomb): New function.
68965         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
68966         format instead of in UCS-4 with platform dependent endianness.
68967
68968 2000-03-10  Jim Meyering  <meyering@lucent.com>
68969
68970         * m4/lib-check.m4: Look for getspnam in -lgen, too.
68971         From Marco Franzen.
68972
68973 2000-03-07  Paul Eggert  <eggert@twinsun.com>
68974
68975         * lib/savedir.c (savedir): Work even if directory size is
68976         negative; this can happen with some screwy NFS configurations.
68977
68978 2000-03-06  Jim Meyering  <meyering@lucent.com>
68979
68980         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
68981         if it's NULL (because we ran out of memory).  From Bruno Haible.
68982
68983 2000-03-05  Jim Meyering  <meyering@lucent.com>
68984
68985         * lib/localcharset.c ("path-concat.h"): Include.
68986         (get_charset_aliases): Use path_concat instead of ANSI string
68987         concatenation.
68988
68989         * lib/unicodeio.h (PARAMS): Define.
68990         Use it to guard prototype.
68991
68992 2000-03-04  Jim Meyering  <meyering@lucent.com>
68993
68994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
68995         for lib/localcharset.c.
68996
68997 2000-03-04  Jim Meyering  <meyering@lucent.com>
68998
68999         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69000         installing into it.
69001         (uninstall-local): Uncomment this rule so `make distcheck' works
69002         once again.
69003
69004         * lib/unicodeio.c (<errno.h>): Include it.
69005         (errno): Declare if not defined.
69006
69007         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69008
69009         * lib/config.charset: New version, incorporating remarks from a linux
69010         i18n mailing list.  From Bruno Haible.
69011
69012 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69013
69014         * m4/codeset.m4: New file.
69015         * m4/iconv.m4: New file.
69016         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69017
69018 2000-03-03  Jim Meyering  <meyering@lucent.com>
69019
69020         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69021
69022 2000-03-02  Jim Meyering  <meyering@lucent.com>
69023
69024         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69025         the messages come out on separate lines.
69026
69027         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69028         rather than jm_CHECK_DECLARATIONS.
69029         * m4/decl.m4: Remove now-unused file.
69030
69031         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69032         geteuid.
69033
69034 2000-03-02  Jim Meyering  <meyering@lucent.com>
69035
69036         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69037
69038 2000-03-01  Jim Meyering  <meyering@lucent.com>
69039
69040         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69041         * lib/unicodeio.c: Likewise.
69042
69043 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69044
69045         * lib/config.charset: New file.
69046         * lib/localcharset.c: New file.
69047         * lib/unicodeio.h, lib/unicodeio.c: New files.
69048         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69049         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69050         (noinst_HEADERS): Add unicodeio.h.
69051         (all-local, install-exec-local, charset.alias): New targets.
69052
69053 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69054
69055         * lib/quotearg.c (ALERT_CHAR): New macro.
69056         (quotearg_buffer_restyled): Use it.
69057
69058 2000-02-27  Jim Meyering  <meyering@lucent.com>
69059
69060         * m4/check-decl.m4: Add getenv to the list.
69061
69062 2000-02-27  Jim Meyering  <meyering@lucent.com>
69063
69064         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69065         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69066
69067         * lib/backupfile.c: Guard inclusion of stdlib.h with
69068         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69069         Declare malloc if needed.
69070
69071         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69072         `#ifndef HAVE_DECL..'
69073         now that autoconf always defines the HAVE_DECL_ symbols.
69074         * lib/human.c: Likewise.
69075         * lib/same.c: Likewise.
69076         * lib/strtoumax.c: Likewise.
69077
69078         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69079         declaration check was not run.
69080         * lib/hash.c: Likewise.
69081         * lib/human.c: Likewise.
69082         * lib/same.c: Likewise.
69083         * lib/strtoumax.c: Likewise.
69084
69085         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69086         `.', then first look up the entire `.'-containing string as a login
69087         name.
69088
69089 2000-02-23  Jim Meyering  <meyering@lucent.com>
69090
69091         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69092         in place of my hack.
69093
69094 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69095
69096         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69097         (textint): New typedef.
69098         (parser_control): Member year changed from int to textint.
69099         All uses changed.
69100         (YYSTYPE): Removed; replaced by %union with int and textint members.
69101         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69102         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69103         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69104         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69105         (date, number, to_year): Use width of number in digits, not its value,
69106         to determine whether it's a 2-digit year, or a 2-digit time.
69107         (yylex): Store number of digits of numeric tokens.
69108         Reported by John Kendall.
69109
69110         (parser_control): Changed from struct parser_control to typedef (for
69111         consistency).  All uses changed.
69112
69113         (tID): Removed; not used.
69114         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69115
69116 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69117
69118         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69119         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69120
69121 2000-02-12  Jim Meyering  <meyering@lucent.com>
69122
69123         * lib/userspec.c (ISDIGIT): Define it.
69124         (isdigit): Remove definition.
69125         (is_number): Use ISDIGIT, not isdigit.
69126         <libintl.h>: Include.
69127         (_ and N_): Define.
69128         (parse_user_spec): Mark translatable strings.
69129
69130 2000-02-10  Jim Meyering  <meyering@lucent.com>
69131
69132         With these changes, nanosleep.[ch] are finally enough like the other
69133         lib/* replacement files to compile on a few more losing systems.
69134
69135         * lib/nanosleep.h: Don't include config.h.
69136         Remove prototype from declaration of nanosleep.
69137         (PARAMS): Remove now-unneeded definition.
69138         * lib/nanosleep.c: #undef nanosleep.
69139         (rpl_nanosleep): Rename from nanosleep.
69140
69141 2000-02-10  Jim Meyering  <meyering@lucent.com>
69142
69143         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69144         gnu_nanosleep to rpl_nanosleep.
69145
69146 2000-02-09  Jim Meyering  <meyering@lucent.com>
69147
69148         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69149         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69150
69151 2000-02-08  Akim Demaille  <akim@epita.fr>
69152
69153         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69154         `[' and `]' and remove uses of `changequote'.
69155         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69156         (AC_SYS_LARGEFILE): Likewise.
69157         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69158         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69159         of changequote.
69160         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69161         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69162         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69163         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69164
69165 2000-02-05  Jim Meyering  <meyering@lucent.com>
69166
69167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69168         Remove explicit use of AC_HEADER_TIME.  It is required by
69169         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69170         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69171         in autoconf whereby the expansion of the latter ended up preceding
69172         the expansion of its prerequisite, AC_HEADER_TIME.
69173         Reported by Volker Borchert.
69174
69175 2000-02-03  Jim Meyering  <meyering@lucent.com>
69176
69177         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69178
69179 2000-02-03  Jim Meyering  <meyering@lucent.com>
69180
69181         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69182         rather than with `#if HAVE_UTMPNAME'.
69183
69184 2000-02-02  Jim Meyering  <meyering@lucent.com>
69185
69186         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69187         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69188         Reported by Eli Zaretskii.
69189
69190 2000-02-01  Jim Meyering  <meyering@lucent.com>
69191
69192         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69193
69194 2000-01-31  Jim Meyering  <meyering@lucent.com>
69195
69196         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69197         functions.  Add the time.h and sys/time.h headers along with the
69198         AC_REQUIRE'ment of AC_HEADER_TIME.
69199
69200 2000-01-31  Jim Meyering  <meyering@lucent.com>
69201
69202         * lib/nanosleep.h (nanosleep): Guard declaration with
69203         `#if ! HAVE_DECL_NANOSLEEP'.
69204         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69205         the declaration in that vendor's sys/timers.h.
69206         Reported by Christian Krackowizer.
69207
69208         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69209         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69210         (ISPRINT): Likewise.
69211         Reported by Tom Tromey.
69212
69213 2000-01-30  Jim Meyering  <meyering@lucent.com>
69214
69215         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69216
69217         * m4/prereq.m4 (utmp_includes): Define.
69218         Check for ut_user and ut_name members in both struct utmpx
69219         and struct utmp.
69220
69221 2000-01-30  Jim Meyering  <meyering@lucent.com>
69222
69223         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69224         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69225         header files where only utmpx.ut_user is declared.
69226
69227         * lib/readutmp.h (UT_USER): Define.
69228
69229 2000-01-29  Jim Meyering  <meyering@lucent.com>
69230
69231         * m4/lib-check.m4: New file containing library-related checks from
69232         fileutils and sh-utils (textutils had none).
69233
69234 2000-01-28  Jim Meyering  <meyering@lucent.com>
69235
69236         * m4/perl.m4: Change format of warning message to look more like that
69237         from the missing script.  Suggestion from François Pinard.
69238
69239 2000-01-25  Jim Meyering  <meyering@lucent.com>
69240
69241         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69242         well as time.h in the compile check.
69243         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69244         Fix typo in cross-compiling case: s/yes/no/.
69245
69246 2000-01-23  Jim Meyering  <meyering@lucent.com>
69247
69248         * m4/jm-macros.m4: Move df-related tests here from
69249         fileutils/configure.in
69250
69251         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69252         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69253
69254         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69255         s/space/ac_fsusage_space/.
69256         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69257
69258         * m4/ftruncate.m4: New file (derived from part of
69259         fileutils/configure.in).
69260         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69261         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69262
69263         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69264         AC_SUBST these here, rather than just in sh-util/configure.in, so
69265         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69266         all the same.
69267         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69268         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69269         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69270         (AC_SUBST(POW_LIBM)): Likewise.
69271         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69272
69273 2000-01-23  Jim Meyering  <meyering@lucent.com>
69274
69275         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69276         obstack.c.
69277
69278 2000-01-22  Jim Meyering  <meyering@lucent.com>
69279
69280         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69281
69282         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69283
69284         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69285         configure.in
69286         (AC_CHECK_HEADERS): Likewise for sh-utils.
69287         (AC_CHECK_HEADERS): Likewise for textutils.
69288         Merge the three lists of headers.
69289
69290         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69291         from fileutils' configure.in.
69292
69293         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69294         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69295         check-decl.m4.
69296
69297         * m4/check-decl.m4: Use #if rather than #ifdef.
69298         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69299         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69300         (_jm_DECL_HEADERS): Define new function.
69301         (jm_CHECK_DECLARATIONS): Require it.
69302
69303 2000-01-22  Jim Meyering  <meyering@lucent.com>
69304
69305         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69306         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69307         Required for some AIX systems.  Reported by Christian Krackowizer.
69308         [TESTING] (main): New function.
69309
69310         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69311         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69312         letters.
69313
69314         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69315         iswprint.
69316
69317         * lib/strverscmp.c (ISDIGIT): Define.
69318         (strverscmp): Use ISDIGIT, not isdigit.
69319
69320 2000-01-19  Jim Meyering  <meyering@lucent.com>
69321
69322         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69323         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69324         defines `struct timespec' in <sys/time.h>
69325
69326         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69327         Thanks to Akim for explaining.
69328
69329 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69330
69331         * lib/nanosleep.c (nanosleep):
69332         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69333         POSIX.1 doesn't require SA_INTERRUPT and some systems
69334         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69335         it's been part of POSIX.1 since day 1 (in 1988).
69336
69337 2000-01-17  Jim Meyering  <meyering@lucent.com>
69338
69339         * lib/interlock: Remove unused file.  Reported by François Pinard.
69340
69341 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69342
69343         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69344         alert, backslash, formfeed, and vertical tab unnecessarily in
69345         shell quoting style.
69346
69347 2000-01-16  Jim Meyering  <meyering@lucent.com>
69348
69349         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69350         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69351         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69352         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69353
69354 2000-01-16  Jim Meyering  <meyering@lucent.com>
69355
69356         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69357         because the latter didn't work.
69358
69359 2000-01-15  Jim Meyering  <meyering@lucent.com>
69360
69361         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69362         (AC_REPLACE_FUNCS): Add memcpy and memset.
69363         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69364         Add strpbrk.
69365         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69366
69367 2000-01-12  Jim Meyering  <meyering@lucent.com>
69368
69369         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69370         (jm_PREREQ): Use it.
69371         (jm_PREREQ_READUTMP): New macro.
69372         (jm_PREREQ): Use it.
69373
69374 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69375
69376         Quote multibyte characters correctly.
69377         * m4/c-bs-a.m4: New file.
69378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69379         (jm_PREREQ): Use it.
69380
69381 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69382
69383         * m4/uintmax_t.m4: Port to autoconf 2.13.
69384
69385 2000-01-08  Jim Meyering  <meyering@ascend.com>
69386
69387         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69388         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69389
69390 2000-01-04  Jim Meyering  <meyering@ascend.com>
69391
69392         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69393         jm_STRUCT_DIRENT_D_TYPE.
69394         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69395         jm_STRUCT_DIRENT_D_INO.
69396         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69397         jm_STRUCT_UTIMBUF.
69398         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69399         renamings.
69400         * m4/utime.m4: Likewise.
69401
69402         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69403         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69404
69405 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69406
69407         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69408         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69409
69410 2000-01-02  Jim Meyering  <meyering@ascend.com>
69411
69412         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69413         remember if this is necessary.
69414
69415 1999-12-26  Jim Meyering  <meyering@ascend.com>
69416
69417         * m4/jm-macros.m4: Use it here.
69418         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69419
69420 1999-12-23  Jim Meyering  <meyering@ascend.com>
69421
69422         * m4/jm-macros.m4: Check for clock_gettime (moved from
69423         fileutils/configure.in)
69424         Check for gettimeofday.
69425
69426 1999-12-20  Jim Meyering  <meyering@ascend.com>
69427
69428         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69429         autoconf-2.14a-1999-12-20.
69430
69431 1999-12-19  Jim Meyering  <meyering@ascend.com>
69432
69433         * m4/lstat-slash.m4: New file.
69434         * m4/jm-macros.m4: Use the new macro:
69435         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69436
69437 1999-12-07  Jim Meyering  <meyering@ascend.com>
69438
69439         * m4/perl.m4: Require that File::Compare be available, too.
69440         Too many systems seem to lack it.
69441
69442         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69443         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69444
69445 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69446
69447         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69448         problem with the QNX 4.25 shell, which doesn't propagate exit
69449         status of failed commands inside shell assignments.
69450
69451 1999-11-17  Jim Meyering  <meyering@ascend.com>
69452
69453         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69454
69455 1999-11-07  Jim Meyering  <meyering@ascend.com>
69456
69457         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69458
69459 1999-11-06  Jim Meyering  <meyering@ascend.com>
69460
69461         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69462         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69463
69464 1999-11-05  Jim Meyering  <meyering@ascend.com>
69465
69466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69467         configure.in of textutils, fileutils, and sh-utils into this one
69468         (shared between those packages) file.
69469         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69470         AC_STRUCT_ST_BLKSIZE.
69471
69472 1999-11-03  Jim Meyering  <meyering@ascend.com>
69473
69474         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69475         of AC_CHECK_TYPE checks includes unistd.h.
69476         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69477         Suggestion from Akim Demaille.
69478
69479 1999-10-30  Jim Meyering  <meyering@ascend.com>
69480
69481         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69482         m4-quoted string.
69483         * m4/ls-mntd-fs.m4: Likewise.
69484         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69485         * m4/jm-winsz1.m4: Likewise.
69486
69487         * m4/const.m4: Remove file, since the fix made it into the experimental
69488         version of autoconf.
69489         * m4/mktime.m4: Likewise.
69490
69491         * m4/check-type.m4: Remove file, now that the latest version of
69492         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69493
69494         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69495         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69496         AC_CHECK_TYPE.
69497
69498 1999-10-04  Jim Meyering  <meyering@ascend.com>
69499
69500         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69501
69502 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69503
69504         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69505         2.95.1 bug with HP-UX 10.20.
69506
69507 1999-09-17  Jim Meyering  <meyering@ascend.com>
69508
69509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69510         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69511         due to missing strdup (against sh-utils-2.0).
69512
69513 1999-08-29  Jim Meyering  <meyering@ascend.com>
69514
69515         * m4/jm-macros.m4: Require jm_BISON.
69516         * m4/bison.m4: New file.
69517
69518 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69519
69520         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69521         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69522
69523 1999-08-05  Jim Meyering  <meyering@ascend.com>
69524
69525         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69526         to avoid conflicts with `conftest' on 8+3 filesystems.
69527         Suggestion from Eli Zaretskii.
69528
69529 1999-08-04  Jim Meyering  <meyering@ascend.com>
69530
69531         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69532         fileutils and sh-utils (textutils's getline test was inadequate).
69533         (AM_FUNC_GETLINE): Run this test.
69534         (AC_CHECK_FUNCS): Check for getdelim.
69535         Reported by Bob Proulx.
69536
69537 1999-08-02  Jim Meyering  <meyering@ascend.com>
69538
69539         * m4/jm-macros.m4: Add a comment.
69540
69541 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69542
69543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69544         <inttypes.h> defines strtoumax as a macro (and not as a
69545         function).
69546
69547 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69548
69549         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69550         that we can shift, multiply and divide unsigned long long
69551         values; Ultrix cc can't do it.
69552
69553 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69554
69555         * m4/mktime.m4: New file, which is a preview of what should appear
69556         in the next public autoconf release.
69557
69558 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69559
69560         * m4/lfs.m4: Remove this file.
69561         * m4/largefile.m4: New file.  It contains the old contents of
69562         lfs.m4, except that all names with prefix AC_LFS have been
69563         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69564         compatible with future autoconf versions.  Also, some minor m4
69565         quoting problems have been fixed.
69566
69567 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69568
69569         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69570         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69571         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69572         and simplify the shell code.
69573
69574 1999-08-01  Jim Meyering  <meyering@ascend.com>
69575
69576         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69577         m4.
69578
69579 1999-07-20  Jim Meyering  <meyering@ascend.com>
69580
69581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69582
69583 1999-07-15  Jim Meyering  <meyering@ascend.com>
69584
69585         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69586
69587 1999-05-22  Jim Meyering  <meyering@ascend.com>
69588
69589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69590
69591 1999-05-20  Jim Meyering  <meyering@ascend.com>
69592
69593         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69594         Add a colon after each `then' in case $4 is empty.
69595
69596 1999-05-16  Jim Meyering  <meyering@ascend.com>
69597
69598         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69599
69600 1999-05-10  Jim Meyering  <meyering@ascend.com>
69601
69602         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69603
69604         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69605         AC_FUNC_MKTIME.
69606
69607 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69608
69609         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69610
69611 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69612
69613         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69614         not CPPFLAGS, so that linking works correctly in IRIX.
69615
69616 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69617
69618         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69619
69620 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69621
69622         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69623         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69625         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69626         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69627
69628         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69629
69630 1999-04-20  Jim Meyering  <meyering@ascend.com>
69631
69632         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69633         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69634         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69635
69636 1999-04-18  Jim Meyering  <meyering@ascend.com>
69637
69638         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69639         * m4/jm-macros.m4: Use it.
69640
69641 1999-04-06  Jim Meyering  <meyering@ascend.com>
69642
69643         * m4/strftime.m4: Remove test for %f.
69644
69645 1999-03-29  Jim Meyering  <meyering@ascend.com>
69646
69647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69648         superset of the AC_TYPE_* checks in the textutils, fileutils,
69649         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69650         AC_TYPE_PID_T.
69651
69652 1999-03-28  Jim Meyering  <meyering@ascend.com>
69653
69654         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69655         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69656         replaced e.g., in the *.sh files of the sh-utils.
69657
69658 1999-03-20  Jim Meyering  <meyering@ascend.com>
69659
69660         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69661         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69662         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69663
69664 1999-03-19  Jim Meyering  <meyering@ascend.com>
69665
69666         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69667
69668 1999-03-12  Jim Meyering  <meyering@ascend.com>
69669
69670         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69671
69672 1999-03-07  Jim Meyering  <meyering@ascend.com>
69673
69674         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69675         declared.
69676
69677 1999-02-17  Jim Meyering  <meyering@ascend.com>
69678
69679         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69680         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69681
69682 1999-02-07  Jim Meyering  <meyering@ascend.com>
69683
69684         * m4/group-member.m4: New file -- extracted from sh-utils'
69685         configure.in.
69686
69687         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69688         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69689
69690 1999-02-06  Jim Meyering  <meyering@ascend.com>
69691
69692         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69693         * m4/fnmatch.m4: Likewise.
69694         * m4/getgroups.m4: Likewise.
69695         * m4/lstat.m4: Likewise.
69696         * m4/malloc.m4: Likewise.
69697         * m4/putenv.m4: Likewise.
69698         * m4/realloc.m4: Likewise.
69699         * m4/regex.m4: Likewise.
69700         * m4/stat.m4: Likewise.
69701         * m4/strftime.m4: Likewise.
69702         Suggestion from Alain Magloire.
69703
69704         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69705         * m4/fnmatch.m4: Likewise.
69706         * m4/getgroups.m4: Likewise.
69707         * m4/getline.m4: Likewise.
69708         * m4/lstat.m4: Likewise.
69709         * m4/malloc.m4: Likewise.
69710         * m4/memcmp.m4: Likewise.
69711         * m4/putenv.m4: Likewise.
69712         * m4/realloc.m4: Likewise.
69713         * m4/regex.m4: Likewise.
69714         * m4/stat.m4: Likewise.
69715         * m4/strftime.m4: Likewise.
69716         Suggestion from Alain Magloire.
69717
69718         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69719         an argument.
69720
69721         * m4/regex.m4: Add a run-time Test for proper operation of
69722         re_compile_pattern.
69723
69724 1999-01-31  Jim Meyering  <meyering@ascend.com>
69725
69726         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69727
69728 1999-01-30  Jim Meyering  <meyering@ascend.com>
69729
69730         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69731
69732         * m4/jm-mktime.m4: Make this a wrapper around the official
69733         AM_FUNC_MKTIME rather than my private copy, now that the official one
69734         is up to date.
69735         * m4/mktime.m4: Remove file.
69736
69737         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69738         * m4/uptime.m4: Likewise.
69739         * m4/uintmax_t.m4: Likewise.
69740
69741 1999-01-28  Jim Meyering  <meyering@ascend.com>
69742
69743         * m4/jm-macros.m4: Use jm_AFS.
69744         * m4/afs.m4: New file (from fileutils' configure.in).
69745
69746         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69747         * m4/chown.m4: Likewise.
69748         * m4/d-ino.m4: Likewise.
69749         * m4/d-type.m4: Likewise.
69750         * m4/fnmatch.m4: Likewise.
69751         * m4/getgroups.m4: Likewise.
69752         * m4/gettext.m4: Likewise.
69753         * m4/jm-mktime.m4: Likewise.
69754         * m4/jm-winsz2.m4: Likewise.
69755         * m4/lcmessage.m4: Likewise.
69756         * m4/ls-mntd-fs.m4: Likewise.
69757         * m4/malloc.m4: Likewise.
69758         * m4/memcmp.m4: Likewise.
69759         * m4/putenv.m4: Likewise.
69760         * m4/realloc.m4: Likewise.
69761         * m4/st_mtim.m4: Likewise.
69762         * m4/strftime.m4: Likewise.
69763
69764 1999-01-16  Jim Meyering  <meyering@ascend.com>
69765
69766         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69767         (ARGMATCH_DIE_DECL): Define.
69768
69769 1999-01-12  Jim Meyering  <meyering@ascend.com>
69770
69771         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69772         Reported by Lars Hecking.
69773
69774 1999-01-10  Jim Meyering  <meyering@ascend.com>
69775
69776         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69777         gross kludge.
69778         * m4/inttypes_h.m4: Likewise.
69779         * m4/lstat.m4: Likewise.
69780         * m4/malloc.m4: Likewise.
69781         * m4/readdir.m4: Likewise.
69782         * m4/realloc.m4: Likewise.
69783         * m4/st_dm_mode.m4: Likewise.
69784         * m4/stat.m4: Likewise.
69785         * m4/utimbuf.m4: Likewise.
69786         * m4/utimes.m4: Likewise.
69787
69788         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69789         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69790         comments in config.h.in are meaningful.
69791
69792         * m4/jm-macros.m4: Require autoconf-2.13 here.
69793
69794         * m4/regex.m4: By default, don't use the included regex.c on systems
69795         with glibc 2.  Suggestion from Uli Drepper.
69796
69797 1999-01-02  Jim Meyering  <meyering@ascend.com>
69798
69799         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69800
69801 1998-12-18  Jim Meyering  <meyering@ascend.com>
69802
69803         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69804         Based on a suggestion from Lars Hecking.
69805
69806 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69807
69808         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69809
69810 1998-11-16  Jim Meyering  <meyering@ascend.com>
69811
69812         * m4/lfs.m4: Double-quote the `uname...` expression.
69813
69814 1998-11-14  Jim Meyering  <meyering@ascend.com>
69815
69816         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69817         * m4/stat.m4: Likewise.
69818
69819 1998-11-03  Jim Meyering  <meyering@ascend.com>
69820
69821         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69822         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69823
69824 1998-10-18  Jim Meyering  <meyering@ascend.com>
69825
69826         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69827
69828 1998-10-17  Jim Meyering  <meyering@ascend.com>
69829
69830         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69831         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69832         calls for those previously hard-coded headers.  Instead, take a new
69833         parameter.
69834         (jm_CHECK_DECLARATIONS): Reflect interface change.
69835         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69836         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69837
69838         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69839
69840 1998-10-14  Jim Meyering  <meyering@ascend.com>
69841
69842         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69843         instead of "TZ=America/Vancouver".  From Paul Eggert.
69844
69845 1998-10-11  Jim Meyering  <meyering@ascend.com>
69846
69847         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69848         This adds a test for a recently added compatibility fix for mktime.c.
69849         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69850
69851 1998-09-27  Jim Meyering  <meyering@ascend.com>
69852
69853         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69854
69855         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69856         ../configure.in, including a change from Gordon Matzigkeit to allow
69857         cross-compiling for the Hurd.
69858
69859         * m4/glibc.m4: New file/macro to test for the GNU C Library
69860         versions 1 and 2.  From Gordon Matzigkeit.
69861         Indent.
69862
69863 1998-09-21  Jim Meyering  <meyering@ascend.com>
69864
69865         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69866
69867 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69868
69869         Port nanosecond-resolution times to UnixWare 2.1.2 and
69870         pedantic Solaris 2.6.
69871
69872         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69873         AC_STRUCT_ST_MTIM.
69874         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69875         Generate name of ns member, instead of just 1 or undef.
69876         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69877
69878 1998-08-15  Jim Meyering  <meyering@ascend.com>
69879
69880         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69881         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69882         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69883         instead of jm_TYPE_SSIZE_T.
69884
69885 1998-08-12  Jim Meyering  <meyering@ascend.com>
69886
69887         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69888
69889 1998-08-02  Jim Meyering  <meyering@ascend.com>
69890
69891         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69892         in acconfig.h manually.
69893
69894 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69895
69896         * m4/st_mtim.m4: New file.
69897
69898 1998-07-28  Jim Meyering  <meyering@ascend.com>
69899
69900         * m4/utimes.m4: Undef stat.
69901
69902 1998-07-25  Jim Meyering  <meyering@ascend.com>
69903
69904         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69905         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69906
69907 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69908
69909         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69910         uid and gid actually remain unchanged.
69911
69912 1998-07-07  Jim Meyering  <meyering@ascend.com>
69913
69914         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69915
69916 1998-07-04  Jim Meyering  <meyering@ascend.com>
69917
69918         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69919         to prove that this macro can be used in packages without regex.c.
69920
69921 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69922
69923         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
69924         is to be used.
69925
69926 1998-07-03  Jim Meyering  <meyering@ascend.com>
69927
69928         * m4/gettext.m4: Add -lintl if it's found to be necessary.
69929
69930         * m4/gettext.m4: New file -- from gettext-0.10.35.
69931         * m4/lcmessage.m4: Likewise.
69932         * m4/progtest.m4: Likewise.
69933
69934         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
69935         * m4/jm-macros.m4: Require the new macro.
69936
69937 1998-06-29  Jim Meyering  <meyering@ascend.com>
69938
69939         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
69940         for the definition of NGROUPS (used in a system header included
69941         by sys/mount.h).
69942
69943 1998-06-28  Jim Meyering  <meyering@ascend.com>
69944
69945         * m4/ls-mntd-fs.m4: New file.
69946         * m4/fstypename.m4: New file.
69947
69948         * m4/jm-macros.m4: Require the new macro.
69949         * m4/jm-glibc-io.m4: New file.
69950
69951 1998-05-19  Jim Meyering  <meyering@ascend.com>
69952
69953         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
69954         * m4/lchown.m4: New file.
69955
69956         * m4/Makefile.am.in: New file.
69957         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
69958
69959 1998-05-14  Jim Meyering  <meyering@ascend.com>
69960
69961         * m4/Makefile.am (EXTRA_DIST): Add them.
69962         * m4/jm-macros.m4: New file.
69963         * m4/utimbuf.m4: New file.
69964
69965 1998-05-12  Jim Meyering  <meyering@ascend.com>
69966
69967         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
69968
69969 1998-05-11  Jim Meyering  <meyering@ascend.com>
69970
69971         * m4/isc-posix.m4: New file.
69972
69973 1998-05-10  Jim Meyering  <meyering@ascend.com>
69974
69975         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
69976
69977 1998-05-09  Jim Meyering  <meyering@ascend.com>
69978
69979         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
69980         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
69981         with automake.
69982
69983         * m4/ssize_t.m4: New file.
69984         * m4/mktime.m4: Remove file -- the new automake has this now.
69985
69986 1998-04-26  Jim Meyering  <meyering@ascend.com>
69987
69988         * m4/assert.m4: New file.
69989         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
69990
69991 1998-04-05  Jim Meyering  <meyering@ascend.com>
69992
69993         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
69994         (jm_PREREQ): Use it here.
69995
69996 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
69997
69998         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
69999         in acconfig.h.
70000
70001 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70002
70003         * m4/prereq.m4: New file.
70004         * m4/error.m4: New file.
70005         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70006
70007 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70008
70009         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70010         cache-check for the same variable -- that defeated the purpose of
70011         the test; the test program was never run.  This was a problem only
70012         on systems with losing getline functions -- HP-UX 10.20 is one.
70013         Reported by Bjorn Helgaas.
70014
70015 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70016
70017         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70018
70019 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70020
70021         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70022
70023         * m4/const.m4: New file.  Use an initializer in this declaration
70024         typedef int charset[2]; const charset x;
70025         Reported by Bob Glickstein.
70026
70027 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70028
70029         * m4/chown.m4: Fix reversed types on -1 args to chown.
70030         From Kaveh Ghazi.
70031
70032 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70033
70034         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70035         Add lseek and memchr.
70036
70037         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70038         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70039         have a 20-character limit on names.
70040
70041 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70042
70043         * m4/inttypes_h.m4: New file.
70044         * m4/uintmax_t.m4: New file.
70045         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70046
70047
70048         -----
70049
70050         Local Variables:
70051         coding: utf-8
70052         End:
70053
70054         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70055
70056         Copying and distribution of this file, with or without
70057         modification, are permitted provided the copyright notice
70058         and this notice are preserved.